dfish-widget 1.0.111 → 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
@@ -3124,6 +3124,7 @@ const onScroll = function(e) {
3124
3124
  var script$1h = {
3125
3125
  mixins: [script$1i],
3126
3126
  props: ['scrollX', 'scrollY', 'scrollView', 'scrollFlex'],
3127
+ emits: ['scroll'],
3127
3128
  data() {
3128
3129
  return {
3129
3130
  wScrollPercentX: false,
@@ -3158,6 +3159,7 @@ const onScroll = function(e) {
3158
3159
  methods: {
3159
3160
  onScroll(e) {
3160
3161
  //implement
3162
+ this.$emit('scroll', e);
3161
3163
  },
3162
3164
  onScrollPosition() {
3163
3165
  //implement
@@ -10807,7 +10809,8 @@ const suffixHooks = {
10807
10809
  text: '选择文件',
10808
10810
  icon: '.f-i .f-i-upload',
10809
10811
  class: 'w-fileupload-button',
10810
- onclick: this.chooseFile
10812
+ onclick: this.chooseFile,
10813
+ disabled: !this.canUpload
10811
10814
  }),
10812
10815
  this.slot('right')
10813
10816
  ]
@@ -10819,12 +10822,10 @@ const suffixHooks = {
10819
10822
  return this.list.length ? h('div', {
10820
10823
  ref: 'list',
10821
10824
  class: ['w-fileupload-list', {'f-clearfix': this.x.vertical}]
10822
- }, this.html_list()) : !this.isNormal ? h('div', {
10823
- class: 'w-fileupload-nofile f-flex-align'
10824
- }, $$1.loc.form.no_files) : null
10825
+ }, this.html_list()) : null
10825
10826
  },
10826
10827
  html_input() {
10827
- 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())
10828
10829
  },
10829
10830
  html_main() {
10830
10831
  return h('div', {class: 'w-formbase-main'}, this.html_form())