2022-12-28 20:28:11 +08:00
|
|
|
<label
|
|
|
|
class="wizard-container__button wizard-container__button-upload
|
|
|
|
{{if this.uploading 'disabled'}}"
|
|
|
|
>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.uploading}}
|
2016-09-09 04:58:07 +08:00
|
|
|
{{i18n "wizard.uploading"}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n "wizard.upload"}}
|
|
|
|
{{/if}}
|
|
|
|
|
2022-12-28 20:28:11 +08:00
|
|
|
<input
|
|
|
|
class="wizard-hidden-upload-field"
|
|
|
|
disabled={{this.uploading}}
|
|
|
|
type="file"
|
|
|
|
accept="image/*"
|
|
|
|
/>
|
2016-09-09 04:58:07 +08:00
|
|
|
</label>
|
2022-12-20 08:24:09 +08:00
|
|
|
|
|
|
|
{{#if this.field.value}}
|
2022-12-28 20:28:11 +08:00
|
|
|
{{component
|
|
|
|
this.previewComponent
|
|
|
|
field=this.field
|
|
|
|
fieldClass=this.fieldClass
|
|
|
|
wizard=this.wizard
|
|
|
|
}}
|
|
|
|
{{/if}}
|