dfish-widget 1.0.112 → 1.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -10809,7 +10809,8 @@ const suffixHooks = {
10809
10809
  text: '选择文件',
10810
10810
  icon: '.f-i .f-i-upload',
10811
10811
  class: 'w-fileupload-button',
10812
- onclick: this.chooseFile
10812
+ onclick: this.chooseFile,
10813
+ disabled: !this.canUpload
10813
10814
  }),
10814
10815
  this.slot('right')
10815
10816
  ]
@@ -10821,12 +10822,10 @@ const suffixHooks = {
10821
10822
  return this.list.length ? h('div', {
10822
10823
  ref: 'list',
10823
10824
  class: ['w-fileupload-list', {'f-clearfix': this.x.vertical}]
10824
- }, this.html_list()) : !this.isNormal ? h('div', {
10825
- class: 'w-fileupload-nofile f-flex-align'
10826
- }, $$1.loc.form.no_files) : null
10825
+ }, this.html_list()) : null
10827
10826
  },
10828
10827
  html_input() {
10829
- return this.html_input_form().concat(this.canUpload && this.html_input_button(), this.html_input_list())
10828
+ return this.html_input_form().concat(this.html_input_button(), this.html_input_list())
10830
10829
  },
10831
10830
  html_main() {
10832
10831
  return h('div', {class: 'w-formbase-main'}, this.html_form())