dfish-widget 1.0.43 → 1.0.45

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
@@ -1804,7 +1804,7 @@ function directive(Vue) {
1804
1804
 
1805
1805
  const bindCache = {};
1806
1806
 
1807
- var script$1j = {
1807
+ var script$1k = {
1808
1808
  props: ['data', 'width', 'height', 'colspan', 'rowspan', 'ownproperty', 'orientUid'],
1809
1809
  data() {
1810
1810
  return {
@@ -2069,9 +2069,9 @@ const bindCache = {};
2069
2069
  }
2070
2070
  };
2071
2071
 
2072
- script$1j.__file = "src/widgets/WidgetAbs.vue";
2072
+ script$1k.__file = "src/widgets/WidgetAbs.vue";
2073
2073
 
2074
- var script$1i = {
2074
+ var script$1j = {
2075
2075
  props: ['src', 'children', 'parentItem'],
2076
2076
  data() {
2077
2077
  return {
@@ -2105,11 +2105,11 @@ var script$1i = {
2105
2105
  }
2106
2106
  };
2107
2107
 
2108
- script$1i.__file = "src/widgets/SrcParent.vue";
2108
+ script$1j.__file = "src/widgets/SrcParent.vue";
2109
2109
 
2110
- var script$1h = {
2110
+ var script$1i = {
2111
2111
  name: 'w-view',
2112
- mixins: [script$1i],
2112
+ mixins: [script$1j],
2113
2113
  provide() {
2114
2114
  return {
2115
2115
  provideView: this
@@ -2308,9 +2308,9 @@ var script$1h = {
2308
2308
  }
2309
2309
  };
2310
2310
 
2311
- script$1h.__file = "src/widgets/ViewAbs.vue";
2311
+ script$1i.__file = "src/widgets/ViewAbs.vue";
2312
2312
 
2313
- var script$1g = {
2313
+ var script$1h = {
2314
2314
  name: 'w-svg-loading'
2315
2315
  };
2316
2316
 
@@ -2340,10 +2340,10 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
2340
2340
  return (openBlock(), createElementBlock("svg", _hoisted_1$9, _hoisted_6$2))
2341
2341
  }
2342
2342
 
2343
- script$1g.render = render$8;
2344
- script$1g.__file = "src/assets/SVGIcon.vue";
2343
+ script$1h.render = render$8;
2344
+ script$1h.__file = "src/assets/SVGIcon.vue";
2345
2345
 
2346
- var script$1f = {
2346
+ var script$1g = {
2347
2347
  props: ['data'],
2348
2348
  data() {
2349
2349
  return {
@@ -2457,10 +2457,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
2457
2457
  }))
2458
2458
  }
2459
2459
 
2460
- script$1f.render = render$7;
2461
- script$1f.__file = "src/template/TemplatePreviewMedia.vue";
2460
+ script$1g.render = render$7;
2461
+ script$1g.__file = "src/template/TemplatePreviewMedia.vue";
2462
2462
 
2463
- var script$1e = {
2463
+ var script$1f = {
2464
2464
  props: ['data'],
2465
2465
  data() {
2466
2466
  let f = this.data.format || 'yyyy-MM-dd';
@@ -2961,18 +2961,19 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
2961
2961
  }))
2962
2962
  }
2963
2963
 
2964
- script$1e.render = render$6;
2965
- script$1e.__file = "src/template/TemplateDateSheet.vue";
2964
+ script$1f.render = render$6;
2965
+ script$1f.__file = "src/template/TemplateDateSheet.vue";
2966
2966
 
2967
- var script$1d = {
2967
+ var script$1e = {
2968
2968
  name: 'w-docview',
2969
- mixins: [script$1j, script$1h],
2969
+ mixins: [script$1k, script$1i],
2970
2970
  provide() {
2971
2971
  return {
2972
2972
  providePubParent: null,
2973
2973
  provideBoxParent: null,
2974
2974
  provideRangeParent: null,
2975
2975
  provideCompatGap: null,
2976
+ provideMenu_w: null,
2976
2977
  }
2977
2978
  },
2978
2979
  beforeCreate() {
@@ -2987,15 +2988,15 @@ var script$1d = {
2987
2988
  return null
2988
2989
  },
2989
2990
  previewVideo(src) {
2990
- this.pop(script$1f, {data: {type: 'video', src}});
2991
+ this.pop(script$1g, {data: {type: 'video', src}});
2991
2992
  },
2992
2993
  previewImage(imgs, options) {
2993
- this.pop(script$1f, {data: {type: 'image', imgs, options}});
2994
+ this.pop(script$1g, {data: {type: 'image', imgs, options}});
2994
2995
  },
2995
2996
  //dateOptions: {value, format, minValue, maxValue, success}
2996
2997
  dateSheet(dateOptions, dialogOptions) {
2997
- this.pop(script$1e, {
2998
- template: script$1e,
2998
+ this.pop(script$1f, {
2999
+ template: script$1f,
2999
3000
  width: '100%',
3000
3001
  height: '55%',
3001
3002
  position: 'b',
@@ -3011,20 +3012,20 @@ var script$1d = {
3011
3012
  return [
3012
3013
  this.$slots.default && this.$slots.default(),
3013
3014
  this.html_pops(),
3014
- h(script$1g),
3015
+ h(script$1h),
3015
3016
  ]
3016
3017
  }
3017
3018
  }
3018
3019
  };
3019
3020
 
3020
- script$1d.__file = "src/widgets/DocView.vue";
3021
+ script$1e.__file = "src/widgets/DocView.vue";
3021
3022
 
3022
- var script$1c = {
3023
- mixins: [script$1j],
3023
+ var script$1d = {
3024
+ mixins: [script$1k],
3024
3025
  inject: ['provideView']
3025
3026
  };
3026
3027
 
3027
- script$1c.__file = "src/widgets/WidgetBase.vue";
3028
+ script$1d.__file = "src/widgets/WidgetBase.vue";
3028
3029
 
3029
3030
  const onScroll = function(e) {
3030
3031
  if (this.wScrollPercentX) {
@@ -3065,8 +3066,8 @@ const onScroll = function(e) {
3065
3066
  }, dnEv);
3066
3067
  };
3067
3068
 
3068
- var script$1b = {
3069
- mixins: [script$1c],
3069
+ var script$1c = {
3070
+ mixins: [script$1d],
3070
3071
  props: ['scrollX', 'scrollY', 'scrollView', 'scrollFlex'],
3071
3072
  data() {
3072
3073
  return {
@@ -3352,9 +3353,9 @@ const onScroll = function(e) {
3352
3353
  }
3353
3354
  };
3354
3355
 
3355
- script$1b.__file = "src/widgets/Scroll.vue";
3356
+ script$1c.__file = "src/widgets/Scroll.vue";
3356
3357
 
3357
- var script$1a = {
3358
+ var script$1b = {
3358
3359
  props: ['align', 'valign', 'gap'],
3359
3360
  computed: {
3360
3361
  dir() {
@@ -3369,11 +3370,11 @@ var script$1a = {
3369
3370
  }
3370
3371
  };
3371
3372
 
3372
- script$1a.__file = "src/widgets/AlignParent.vue";
3373
+ script$1b.__file = "src/widgets/AlignParent.vue";
3373
3374
 
3374
- var script$19 = {
3375
+ var script$1a = {
3375
3376
  name: 'w-horizontal',
3376
- mixins: [script$1b, script$1a],
3377
+ mixins: [script$1c, script$1b],
3377
3378
  props: ['br', 'reverse'],
3378
3379
  provide() {
3379
3380
  return {
@@ -3425,11 +3426,11 @@ var script$19 = {
3425
3426
  }
3426
3427
  };
3427
3428
 
3428
- script$19.__file = "src/widgets/Horizontal.vue";
3429
+ script$1a.__file = "src/widgets/Horizontal.vue";
3429
3430
 
3430
- var script$18 = {
3431
+ var script$19 = {
3431
3432
  name: 'w-vertical',
3432
- mixins: [script$19],
3433
+ mixins: [script$1a],
3433
3434
  computed: {
3434
3435
  dir() {
3435
3436
  return 'v'
@@ -3437,11 +3438,11 @@ var script$18 = {
3437
3438
  }
3438
3439
  };
3439
3440
 
3440
- script$18.__file = "src/widgets/Vertical.vue";
3441
+ script$19.__file = "src/widgets/Vertical.vue";
3441
3442
 
3442
- var script$17 = {
3443
+ var script$18 = {
3443
3444
  name: 'w-view',
3444
- mixins: [script$18, script$1h],
3445
+ mixins: [script$19, script$1i],
3445
3446
  inject: ['provideView'],
3446
3447
  methods: {
3447
3448
  html_slots() {
@@ -3458,7 +3459,7 @@ var script$17 = {
3458
3459
  }
3459
3460
  };
3460
3461
 
3461
- script$17.__file = "src/widgets/View.vue";
3462
+ script$18.__file = "src/widgets/View.vue";
3462
3463
 
3463
3464
  const O = {},
3464
3465
  T = true,
@@ -3475,9 +3476,9 @@ const O = {},
3475
3476
  return typeof a === 'string' && a.split(',').map(v => positionHooks[v] || v).join()
3476
3477
  };
3477
3478
 
3478
- var script$16 = {
3479
+ var script$17 = {
3479
3480
  name: 'w-dialog',
3480
- mixins: [script$17],
3481
+ mixins: [script$18],
3481
3482
  props: ['title', 'autoHide', 'context', 'prong', 'independent', 'timeout',
3482
3483
  'cover', 'position', 'snap', 'indent', 'local', 'fullScreen', 'hoverShowDrop', 'visible',
3483
3484
  ...boundary
@@ -3852,12 +3853,12 @@ const O = {},
3852
3853
  }
3853
3854
  };
3854
3855
 
3855
- script$16.__file = "src/widgets/Dialog.vue";
3856
+ script$17.__file = "src/widgets/Dialog.vue";
3856
3857
 
3857
3858
  const _hoisted_1$7 = /*#__PURE__*/createElementVNode("i", { class: "w-alert-close-icon f-i f-i-close" }, null, -1 /* HOISTED */);
3858
3859
 
3859
3860
 
3860
- var script$15 = {
3861
+ var script$16 = {
3861
3862
  __name: 'TemplateAlert',
3862
3863
  props: ['text', 'escape', 'title', 'icon', 'showButton'],
3863
3864
  emits: ['save', 'close'],
@@ -3990,11 +3991,11 @@ return (_ctx, _cache) => {
3990
3991
 
3991
3992
  };
3992
3993
 
3993
- script$15.__file = "src/template/TemplateAlert.vue";
3994
+ script$16.__file = "src/template/TemplateAlert.vue";
3994
3995
 
3995
- var script$14 = {
3996
+ var script$15 = {
3996
3997
  name: 'w-alert',
3997
- mixins: [script$16],
3998
+ mixins: [script$17],
3998
3999
  props: ['text', 'title', 'escape', 'yes', 'no', 'showButton'],
3999
4000
  methods: {
4000
4001
  x_default() {
@@ -4012,7 +4013,7 @@ var script$14 = {
4012
4013
  },
4013
4014
  html_slots_default() {
4014
4015
  return h(
4015
- script$15,
4016
+ script$16,
4016
4017
  {
4017
4018
  text: this.x.text,
4018
4019
  title: this.x.title,
@@ -4028,12 +4029,12 @@ var script$14 = {
4028
4029
  }
4029
4030
  };
4030
4031
 
4031
- script$14.__file = "src/widgets/Alert.vue";
4032
+ script$15.__file = "src/widgets/Alert.vue";
4032
4033
 
4033
4034
  const _hoisted_1$6 = /*#__PURE__*/createElementVNode("i", { class: "w-alert-close-icon f-i f-i-close" }, null, -1 /* HOISTED */);
4034
4035
 
4035
4036
 
4036
- var script$13 = {
4037
+ var script$14 = {
4037
4038
  __name: 'TemplateConfirm',
4038
4039
  props: ['text', 'escape', 'title', 'icon', 'showButton'],
4039
4040
  emits: ['save', 'close'],
@@ -4173,11 +4174,11 @@ return (_ctx, _cache) => {
4173
4174
 
4174
4175
  };
4175
4176
 
4176
- script$13.__file = "src/template/TemplateConfirm.vue";
4177
+ script$14.__file = "src/template/TemplateConfirm.vue";
4177
4178
 
4178
- var script$12 = {
4179
+ var script$13 = {
4179
4180
  name: 'w-confirm',
4180
- mixins: [script$16],
4181
+ mixins: [script$17],
4181
4182
  props: ['text', 'title', 'escape', 'yes', 'no', 'showButton'],
4182
4183
  methods: {
4183
4184
  x_default() {
@@ -4196,7 +4197,7 @@ var script$12 = {
4196
4197
  },
4197
4198
  html_slots_default() {
4198
4199
  return h(
4199
- script$13,
4200
+ script$14,
4200
4201
  {
4201
4202
  text: this.x.text,
4202
4203
  title: this.x.title,
@@ -4212,7 +4213,7 @@ var script$12 = {
4212
4213
  }
4213
4214
  };
4214
4215
 
4215
- script$12.__file = "src/widgets/Confirm.vue";
4216
+ script$13.__file = "src/widgets/Confirm.vue";
4216
4217
 
4217
4218
  const _hoisted_1$5 = { class: "w-tip-body" };
4218
4219
  const _hoisted_2$5 = {
@@ -4222,7 +4223,7 @@ const _hoisted_2$5 = {
4222
4223
  const _hoisted_3$3 = ["innerHTML"];
4223
4224
 
4224
4225
 
4225
- var script$11 = {
4226
+ var script$12 = {
4226
4227
  __name: 'TemplateTip',
4227
4228
  props: ['text', 'escape'],
4228
4229
  setup(__props) {
@@ -4246,16 +4247,16 @@ return (_ctx, _cache) => {
4246
4247
 
4247
4248
  };
4248
4249
 
4249
- script$11.__file = "src/template/TemplateTip.vue";
4250
+ script$12.__file = "src/template/TemplateTip.vue";
4250
4251
 
4251
4252
  let inst$1 = null;
4252
4253
  let tipCache = {
4253
4254
  time: new Date().getTime()
4254
4255
  };
4255
4256
 
4256
- var script$10 = {
4257
+ var script$11 = {
4257
4258
  name: 'w-tip',
4258
- mixins: [script$16],
4259
+ mixins: [script$17],
4259
4260
  props: ['face', 'text', 'escape'],
4260
4261
  methods: {
4261
4262
  x_default() {
@@ -4267,7 +4268,7 @@ let inst$1 = null;
4267
4268
  }
4268
4269
  },
4269
4270
  html_slots_default() {
4270
- return h(script$11, {text: this.x.text, escape: this.x.escape}, this.$slots)
4271
+ return h(script$12, {text: this.x.text, escape: this.x.escape}, this.$slots)
4271
4272
  }
4272
4273
  },
4273
4274
  computed: {
@@ -4292,12 +4293,12 @@ let inst$1 = null;
4292
4293
  }
4293
4294
  };
4294
4295
 
4295
- script$10.__file = "src/widgets/Tip.vue";
4296
+ script$11.__file = "src/widgets/Tip.vue";
4296
4297
 
4297
- var script$$ = {
4298
+ var script$10 = {
4298
4299
  name: 'w-img',
4299
4300
  pubParentName: 'w-album',
4300
- mixins: [script$1c],
4301
+ mixins: [script$1d],
4301
4302
  inject: ['providePubParent'],
4302
4303
  props: ['src', 'text', 'square', 'imgWidth', 'imgHeight', 'dataUrl', 'vertical', 'disabled'],
4303
4304
  data() {
@@ -4343,7 +4344,7 @@ var script$$ = {
4343
4344
  class: 'w-img-cover f-abs-full'
4344
4345
  }, this.$slots.cover())
4345
4346
  ]),
4346
- cont && h(script$18, {
4347
+ cont && h(script$19, {
4347
4348
  class: 'w-img-description'
4348
4349
  }, cont)
4349
4350
  ]
@@ -4377,14 +4378,13 @@ var script$$ = {
4377
4378
  }
4378
4379
  };
4379
4380
 
4380
- script$$.__file = "src/widgets/Img.vue";
4381
+ script$10.__file = "src/widgets/Img.vue";
4381
4382
 
4382
- var script$_ = {
4383
- name: 'w-button',
4383
+ var script$$ = {
4384
4384
  pubParentName: 'w-buttonbar',
4385
- mixins: [script$1c],
4385
+ mixins: [script$1d],
4386
4386
  props: ['text', 'icon', 'focusIcon', 'face', 'target', 'closable', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', 'dropIcon', 'showDropIcon'],
4387
- inject: ['providePubParent'],
4387
+ inject: ['providePubParent', 'provideMenu_w'],
4388
4388
  emits: ['click:close', 'dropClose'],
4389
4389
  data() {
4390
4390
  return {
@@ -4413,11 +4413,6 @@ var script$_ = {
4413
4413
  }
4414
4414
  },
4415
4415
  methods: {
4416
- x_default() {
4417
- return {
4418
- showDropIcon: true
4419
- }
4420
- },
4421
4416
  ajaxLock(a) {
4422
4417
  a = a == null ? true : a;
4423
4418
  this.x.loading = a;
@@ -4476,7 +4471,7 @@ var script$_ = {
4476
4471
  if (this.x.loading) {
4477
4472
  r.push(h('div', {
4478
4473
  class: 'w-button-loading f-abs-full f-flex-center'
4479
- }, h(script$$, {
4474
+ }, h(script$10, {
4480
4475
  src: '#f-svg-loading'
4481
4476
  })));
4482
4477
  }
@@ -4491,7 +4486,7 @@ var script$_ = {
4491
4486
  }, h('span', {class: 'w-button-text-line f-line-1', title}, t)));
4492
4487
  }
4493
4488
  if (this.isMore && this.x.showDropIcon) {
4494
- r.push(h(script$$, {
4489
+ r.push(h(script$10, {
4495
4490
  class: 'w-button-more f-flex-center f-height',
4496
4491
  src: this.x.dropIcon || '.f-i .f-i-caret-down'
4497
4492
  }));
@@ -4509,7 +4504,7 @@ var script$_ = {
4509
4504
  class: 'w-button-main f-oh f-height',
4510
4505
  ...(this.isCombo && !this.isDisabled && this.mouses),
4511
4506
  }, r),
4512
- this.isCombo && h(script$$, {
4507
+ this.isCombo && h(script$10, {
4513
4508
  class: 'w-button-drop f-flex-center f-height',
4514
4509
  src: this.x.dropIcon || '.f-i .f-i-caret-down',
4515
4510
  ...(!this.isDisabled && this.mouses),
@@ -4560,11 +4555,11 @@ var script$_ = {
4560
4555
  }
4561
4556
  };
4562
4557
 
4563
- script$_.__file = "src/widgets/Button.vue";
4558
+ script$$.__file = "src/widgets/ButtonAbs.vue";
4564
4559
 
4565
- var script$Z = {
4560
+ var script$_ = {
4566
4561
  name: 'w-menubutton',
4567
- mixins: [script$_],
4562
+ mixins: [script$$],
4568
4563
  methods: {
4569
4564
  ajax(...args) {
4570
4565
  return this.parentMenu.rootCommander.ajax(...args)
@@ -4627,7 +4622,7 @@ var script$Z = {
4627
4622
  onclick: this.clickClose
4628
4623
  })));
4629
4624
  }
4630
- r.push(h(script$$, {
4625
+ r.push(h(script$10, {
4631
4626
  class: 'w-menubutton-drop f-flex-center f-height',
4632
4627
  src: this.isMore ? (this.x.dropIcon || '.f-i .f-i-caret-right') : ''
4633
4628
  }));
@@ -4652,7 +4647,7 @@ var script$Z = {
4652
4647
  return 'button'
4653
4648
  },
4654
4649
  isMore() {
4655
- return !!this.$slots.default
4650
+ return !!this.hasChild
4656
4651
  },
4657
4652
  parentMenu() {
4658
4653
  let p = this.provideView;
@@ -4677,7 +4672,30 @@ var script$Z = {
4677
4672
  },
4678
4673
  };
4679
4674
 
4680
- script$Z.__file = "src/widgets/MenuButton.vue";
4675
+ script$_.__file = "src/widgets/MenuButton.vue";
4676
+
4677
+ var script$Z = {
4678
+ name: 'w-button',
4679
+ mixins: [script$$],
4680
+ props: ['autoMenuButton'],
4681
+ methods: {
4682
+ x_default() {
4683
+ return {
4684
+ showDropIcon: true,
4685
+ autoMenuButton: true,
4686
+ }
4687
+ },
4688
+ },
4689
+ render() {
4690
+ if (this.provideMenu_w && this.x.autoMenuButton) {
4691
+ return h(script$_, this.$props, this.$slots)
4692
+ } else {
4693
+ return this.html()
4694
+ }
4695
+ }
4696
+ };
4697
+
4698
+ script$Z.__file = "src/widgets/Button.vue";
4681
4699
 
4682
4700
  let inst = null;
4683
4701
 
@@ -4694,7 +4712,12 @@ let inst = null;
4694
4712
 
4695
4713
  var script$Y = {
4696
4714
  name: 'w-menu',
4697
- mixins: [script$16],
4715
+ mixins: [script$17],
4716
+ provide() {
4717
+ return {
4718
+ provideMenu_w: this
4719
+ }
4720
+ },
4698
4721
  methods: {
4699
4722
  x_default() {
4700
4723
  return {
@@ -4748,12 +4771,7 @@ let inst = null;
4748
4771
  }
4749
4772
  },
4750
4773
  html_buttons() {
4751
- return this.slots_children().map(s => {
4752
- if (s.type === script$_) {
4753
- s.type = script$Z;
4754
- }
4755
- return s
4756
- })
4774
+ return this.slots_children()
4757
4775
  },
4758
4776
  html_slots() {
4759
4777
  return [
@@ -4763,14 +4781,12 @@ let inst = null;
4763
4781
  }, h('i', {
4764
4782
  class: 'f-i f-i-caret-up'
4765
4783
  })),
4766
- h(script$18, {
4784
+ h(script$19, {
4767
4785
  class: 'w-menu-bbr',
4768
4786
  height: '*',
4769
4787
  ref: 'bbr',
4770
4788
  onwheel: this.mousewheel
4771
- }, {
4772
- default: () => this.html_buttons()
4773
- }),
4789
+ }, this.$slots),
4774
4790
  this.x.maxHeight && h('div', {
4775
4791
  class: 'w-menu-arr f-oh',
4776
4792
  onclick: e => this.arrow(1)
@@ -4824,7 +4840,7 @@ script$Y.__file = "src/widgets/Menu.vue";
4824
4840
 
4825
4841
  var script$X = {
4826
4842
  name: 'w-loading',
4827
- mixins: [script$16],
4843
+ mixins: [script$17],
4828
4844
  props: ['text', 'icon'],
4829
4845
  methods: {
4830
4846
  x_default() {
@@ -4833,7 +4849,7 @@ var script$X = {
4833
4849
  }
4834
4850
  },
4835
4851
  html_slots() {
4836
- return h(script$$, {
4852
+ return h(script$10, {
4837
4853
  src: this.x.icon !== undefined ? this.x.icon : '#f-svg-loading',
4838
4854
  text: this.x.text !== undefined ? this.x.text : $$1.loc.loading
4839
4855
  })
@@ -4850,7 +4866,7 @@ script$X.__file = "src/widgets/Loading.vue";
4850
4866
 
4851
4867
  var script$W = {
4852
4868
  name: 'w-table',
4853
- mixins: [script$1c],
4869
+ mixins: [script$1d],
4854
4870
  props: ['face', 'scroll-x', 'scroll-y'],
4855
4871
  provide() {
4856
4872
  return {
@@ -4987,7 +5003,7 @@ script$S.__file = "src/widgets/SlotDefault.vue";
4987
5003
 
4988
5004
  var script$R = {
4989
5005
  name: 'w-thead',
4990
- mixins: [script$1c, script$T],
5006
+ mixins: [script$1d, script$T],
4991
5007
  props: ['br', 'sort'],
4992
5008
  inject: ['_provideTable'],
4993
5009
  provide() {
@@ -5084,7 +5100,7 @@ script$R.__file = "src/widgets/TableTHead.vue";
5084
5100
 
5085
5101
  var script$Q = {
5086
5102
  name: 'w-tbody',
5087
- mixins: [script$R, script$1b],
5103
+ mixins: [script$R, script$1c],
5088
5104
  inject: ['_provideTable'],
5089
5105
  props: ['children'],
5090
5106
  provide() {
@@ -5157,7 +5173,7 @@ script$Q.__file = "src/widgets/TableTBody.vue";
5157
5173
  var script$P = {
5158
5174
  name: 'w-tr',
5159
5175
  pubParentName: 'w-tbody,w-thead',
5160
- mixins: [script$1c, script$1i],
5176
+ mixins: [script$1d, script$1j],
5161
5177
  props: ['rowIndex', 'expanded', 'children'],
5162
5178
  inject: ['_provideTable', 'providePubParent', 'provideInBody', '_provideTBody', 'provideLevel', 'provideParentTR'],
5163
5179
  provide() {
@@ -5328,7 +5344,7 @@ script$O.__file = "src/widgets/TableTD.vue";
5328
5344
 
5329
5345
  var script$N = {
5330
5346
  name: 'w-th',
5331
- mixins: [script$O, script$1c],
5347
+ mixins: [script$O, script$1d],
5332
5348
  props: ['sortable', 'sortOrders', 'sortOrderDefault'],
5333
5349
  inject: ['_provideThead'],
5334
5350
  emits: ['click:sort'],
@@ -5363,7 +5379,7 @@ var script$N = {
5363
5379
  this.$emit('click:sort', e, o);
5364
5380
  },
5365
5381
  html_slots() {
5366
- return h(script$19, {class: 'w-th-wrap', valign: 'middle', align: this.align || this.col.align}, {default: () => [
5382
+ return h(script$1a, {class: 'w-th-wrap', valign: 'middle', align: this.align || this.col.align}, {default: () => [
5367
5383
  h('div', {class: 'w-th-title'}, this.$slots),
5368
5384
  this.x.sortable ? h('div', {class: 'w-th-sort f-flex-column f-flex-center f-oh'}, [
5369
5385
  h('i', {class: 'f-i f-i-caret-up f-oh w-th-sort-up', onClick: e => this.clickSort(e, 'asc')}),
@@ -5392,7 +5408,7 @@ script$N.__file = "src/widgets/TableTH.vue";
5392
5408
 
5393
5409
  var script$M = {
5394
5410
  name: 'w-grid',
5395
- mixins: [script$1b],
5411
+ mixins: [script$1c],
5396
5412
  props: ['columns', 'rows', 'gap', 'defaultColspan', 'face', 'labelWidth'],
5397
5413
  methods: {
5398
5414
  x_default() {
@@ -5440,7 +5456,7 @@ var script$L = {
5440
5456
  name: 'w-swiper-item',
5441
5457
  pubParentName: 'w-swiper',
5442
5458
  inject: ['providePubParent'],
5443
- mixins: [script$1c],
5459
+ mixins: [script$1d],
5444
5460
  props: ['lazy'],
5445
5461
  data() {
5446
5462
  return {
@@ -5477,7 +5493,7 @@ script$L.__file = "src/widgets/SwiperItem.vue";
5477
5493
 
5478
5494
  var script$K = {
5479
5495
  name: 'w-swiper',
5480
- mixins: [script$1c, script$T],
5496
+ mixins: [script$1d, script$T],
5481
5497
  props: ['arrow', 'indicatorDots', 'duration'],
5482
5498
  data() {
5483
5499
  return {
@@ -5566,7 +5582,7 @@ script$K.__file = "src/widgets/Swiper.vue";
5566
5582
 
5567
5583
  var script$J = {
5568
5584
  name: 'w-buttonbar',
5569
- mixins: [script$19, script$T],
5585
+ mixins: [script$1a, script$T],
5570
5586
  props: ['vertical'],
5571
5587
  emits: ['click:item'],
5572
5588
  methods: {
@@ -5679,7 +5695,7 @@ var script$I = {
5679
5695
  },
5680
5696
  html_slots() {
5681
5697
  let group = h(TransitionGroup, {name: 'w-tabbar', onBeforeEnter: this.onBeforeEnter, onAfterEnter: this.onAfterEnter, onBeforeLeave: this.onBeforeLeave, onAfterLeave: this.onAfterLeave}, {default: () => this.buttons});
5682
- let gut = [h(this.x.vertical ? script$18 : script$19, {ref: 'gut', class: 'w-tabbar-gut', gap: this.x.gap, align: this.x.align, valign: this.x.valign}, {default: () => group})];
5698
+ let gut = [h(this.x.vertical ? script$19 : script$1a, {ref: 'gut', class: 'w-tabbar-gut', gap: this.x.gap, align: this.x.align, valign: this.x.valign}, {default: () => group})];
5683
5699
  if (this.x.arrow) {
5684
5700
  gut.unshift(h('div', {class: 'w-tabbar-arrow-start', onClick: () => this.clickArrow(-1)}, h('i', {class: 'f-i f-i-caret-left'})));
5685
5701
  gut.push(h('div', {class: 'w-tabbar-arrow-end', onClick: () => this.clickArrow(1)}, h('i', {class: 'f-i f-i-caret-right'})));
@@ -5687,7 +5703,7 @@ var script$I = {
5687
5703
  if (this.x.quickCloseButton) {
5688
5704
  let closeAllDisabled = !this.buttons.find(c => c.props.closable);
5689
5705
  if (this.buttons.length) {
5690
- gut.push(h(script$_, {
5706
+ gut.push(h(script$Z, {
5691
5707
  ref: 'quickCloseButton',
5692
5708
  data: {isQuickCloseButton: true},
5693
5709
  showDropIcon: false,
@@ -5696,7 +5712,7 @@ var script$I = {
5696
5712
  onDropClose: this.onMouseleave
5697
5713
  }, {
5698
5714
  default: () => [
5699
- h(script$_, {text: '关闭全部标签', onClick: this.closeAll, disabled: closeAllDisabled})
5715
+ h(script$Z, {text: '关闭全部标签', onClick: this.closeAll, disabled: closeAllDisabled})
5700
5716
  ]
5701
5717
  }));
5702
5718
  }
@@ -5803,7 +5819,7 @@ script$I.__file = "src/widgets/TabBar.vue";
5803
5819
  var script$H = {
5804
5820
  name: 'w-tabbutton',
5805
5821
  pubParentName: 'w-tabbar',
5806
- mixins: [script$_],
5822
+ mixins: [script$Z],
5807
5823
  methods: {
5808
5824
  vis() {
5809
5825
  let add = [20, 20];
@@ -5827,7 +5843,7 @@ script$H.__file = "src/widgets/TabButton.vue";
5827
5843
 
5828
5844
  var script$G = {
5829
5845
  name: 'w-tabs',
5830
- mixins: [script$1c],
5846
+ mixins: [script$1d],
5831
5847
  props: ['current', 'position', 'gap', 'face', 'quickCloseButton', 'flexSize'],
5832
5848
  emits: ['click:quickCloseButton'],
5833
5849
  methods: {
@@ -5894,7 +5910,7 @@ script$F.__file = "src/widgets/Tab.vue";
5894
5910
 
5895
5911
  var script$E = {
5896
5912
  name: 'w-album',
5897
- mixins: [script$19, script$T],
5913
+ mixins: [script$1a, script$T],
5898
5914
  methods: {
5899
5915
  x_default() {
5900
5916
  return {
@@ -5915,7 +5931,7 @@ script$E.__file = "src/widgets/Album.vue";
5915
5931
 
5916
5932
  var script$D = {
5917
5933
  name: 'w-html',
5918
- mixins: [script$1c, script$1a],
5934
+ mixins: [script$1d, script$1b],
5919
5935
  props: ['line'],
5920
5936
  computed: {
5921
5937
  html_props() {
@@ -5938,7 +5954,7 @@ script$D.__file = "src/widgets/Html.vue";
5938
5954
 
5939
5955
  var script$C = {
5940
5956
  name: 'w-tree',
5941
- mixins: [script$1b, script$T, script$1i],
5957
+ mixins: [script$1c, script$T, script$1j],
5942
5958
  emits: ['click:item'],
5943
5959
  provide() {
5944
5960
  return {
@@ -6006,7 +6022,7 @@ script$C.__file = "src/widgets/Tree.vue";
6006
6022
 
6007
6023
  var script$B = {
6008
6024
  name: 'w-label',
6009
- mixins: [script$1c, script$1a],
6025
+ mixins: [script$1d, script$1b],
6010
6026
  props: ['text', 'suffix', 'vertical'],
6011
6027
  methods: {
6012
6028
  html_slots() {
@@ -6031,7 +6047,7 @@ var script$B = {
6031
6047
  script$B.__file = "src/widgets/Label.vue";
6032
6048
 
6033
6049
  var script$A = {
6034
- mixins: [script$1c, script$1a],
6050
+ mixins: [script$1d, script$1b],
6035
6051
  props: ['name', 'value', 'modelValue', 'placeholder', 'label', 'readonly', 'readonlyValidate', 'disabled', 'required',
6036
6052
  'validateDefault', 'validateHandler', 'inputWidth', 'inputHeight' ],
6037
6053
  emits: ['update:modelValue', 'change', 'blur', 'focus'],
@@ -6625,7 +6641,7 @@ var script$z = {
6625
6641
  }, this.html_input())
6626
6642
  },
6627
6643
  html_target() {
6628
- return this.$slots.default ? h(script$19, {
6644
+ return this.$slots.default ? h(script$1a, {
6629
6645
  class: this.$options.name + '-target',
6630
6646
  ref: 'target'
6631
6647
  }, this.$slots) : []
@@ -6801,7 +6817,7 @@ script$y.__file = "src/widgets/TripleBox.vue";
6801
6817
  var script$x = {
6802
6818
  name: 'w-leaf',
6803
6819
  pubParentName: 'w-tree',
6804
- mixins: [script$1c, script$1i],
6820
+ mixins: [script$1d, script$1j],
6805
6821
  props: ['text', 'expanded', 'expandedIcon', 'collapsedIcon', 'icon', 'boxSync', 'src', 'disabled'],
6806
6822
  inject: ['providePubParent', 'provideLevel', 'provideParentLeaf', 'provideParentTR'],
6807
6823
  provide() {
@@ -6901,7 +6917,7 @@ var script$x = {
6901
6917
  let ico = this.isFolder() ? (exp ? this.x.expandedIcon : this.x.collapsedIcon) : this.x.icon;
6902
6918
  return h('div', mergeProps(this.html_attrs, this.html_props, this.$attrs), [
6903
6919
  this.loading ?
6904
- h(script$$, {
6920
+ h(script$10, {
6905
6921
  src: '#f-svg-loading',
6906
6922
  class: 'w-leaf-loading'
6907
6923
  }) :
@@ -6913,7 +6929,7 @@ var script$x = {
6913
6929
  }
6914
6930
  }),
6915
6931
  this.$slots.box && this.$slots.box(),
6916
- ico && h(script$$, {
6932
+ ico && h(script$10, {
6917
6933
  src: ico,
6918
6934
  class: 'w-leaf-icon'
6919
6935
  }),
@@ -7058,13 +7074,13 @@ var script$w = {
7058
7074
  this.html_face_normal()
7059
7075
  },
7060
7076
  html_buttons() {
7061
- return [h(script$_, {
7077
+ return [h(script$Z, {
7062
7078
  class: 'w-pagebar-button w-pagebar-prev',
7063
7079
  icon: '.f-i .f-i-angle-left',
7064
7080
  disabled: this.currentPage == 1,
7065
7081
  title: $$1.loc.page_text.prev,
7066
7082
  onclick: e => this.clickItem(e, this.currentPage - 1)
7067
- }), h(script$_, {
7083
+ }), h(script$Z, {
7068
7084
  class: 'w-pagebar-button w-pagebar-next',
7069
7085
  icon: '.f-i .f-i-angle-right',
7070
7086
  disabled: this.currentPage == this.sumPage,
@@ -7075,7 +7091,7 @@ var script$w = {
7075
7091
  html_drop() {
7076
7092
  let s = [];
7077
7093
  if (this.x.buttonCount) {
7078
- s.push(h(script$_, {
7094
+ s.push(h(script$Z, {
7079
7095
  class: 'w-pagebar-button w-pagebar-button-count w-pagebar-prev',
7080
7096
  ref: 'drop',
7081
7097
  text: this.currentPage + '/' + this.sumPage,
@@ -7084,7 +7100,7 @@ var script$w = {
7084
7100
  }
7085
7101
  if (this.showDrop) {
7086
7102
  let b = [];
7087
- for (let i = 1, sp = this.sumPage; i <= sp; i ++) b.push(h(script$_, {text: i, onClick: e => this.clickItem(e, i)}));
7103
+ for (let i = 1, sp = this.sumPage; i <= sp; i ++) b.push(h(script$Z, {text: i, onClick: e => this.clickItem(e, i)}));
7088
7104
  s.push(h(script$Y, {snap: () => this.$refs.drop, position: 'v', indent: 1, onClose: () => this.showDrop = false}, {default: () => b}));
7089
7105
  }
7090
7106
  return s
@@ -7187,7 +7203,7 @@ script$w.__file = "src/widgets/PageBar.vue";
7187
7203
 
7188
7204
  var script$v = {
7189
7205
  name: 'w-split',
7190
- mixins: [script$1c],
7206
+ mixins: [script$1d],
7191
7207
  props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
7192
7208
  inject: ['provideLayout'],
7193
7209
  created() {
@@ -7288,7 +7304,7 @@ script$v.__file = "src/widgets/Split.vue";
7288
7304
 
7289
7305
  var script$u = {
7290
7306
  name: 'w-toggle',
7291
- mixins: [script$1c, script$1a],
7307
+ mixins: [script$1d, script$1b],
7292
7308
  props: ['collapsedIcon', 'expandedIcon', 'expanded', 'align', 'valign'],
7293
7309
  methods: {
7294
7310
  x_default() {
@@ -7305,7 +7321,7 @@ var script$u = {
7305
7321
  html_slots() {
7306
7322
  let exp = this.x.expanded;
7307
7323
  let ico = exp ? this.x.expandedIcon : this.x.collapsedIcon;
7308
- return [ico && h(script$$, {
7324
+ return [ico && h(script$10, {
7309
7325
  src: ico,
7310
7326
  class: 'w-toggle-icon',
7311
7327
  }), h('div', {class: 'w-toggle-main'}, this.$slots.default())]
@@ -7336,7 +7352,7 @@ script$u.__file = "src/widgets/Toggle.vue";
7336
7352
 
7337
7353
  var script$t = {
7338
7354
  name: 'w-video',
7339
- mixins: [script$1c],
7355
+ mixins: [script$1d],
7340
7356
  props: ['src', 'poster'],
7341
7357
  data() {
7342
7358
  return {
@@ -7388,7 +7404,7 @@ script$t.__file = "src/widgets/Video.vue";
7388
7404
 
7389
7405
  var script$s = {
7390
7406
  name: 'w-progress',
7391
- mixins: [script$1c],
7407
+ mixins: [script$1d],
7392
7408
  props: ['percent', 'range', 'text'],
7393
7409
  methods: {
7394
7410
  html_slots() {
@@ -7433,7 +7449,7 @@ script$s.__file = "src/widgets/Progress.vue";
7433
7449
 
7434
7450
  var script$r = {
7435
7451
  name: 'w-calendar',
7436
- mixins: [script$1c],
7452
+ mixins: [script$1d],
7437
7453
  emits: ['click:item', 'change'],
7438
7454
  props: ['value', 'minValue', 'maxValue', 'current', 'pad', 'face', 'format', 'success', 'cg', 'start',
7439
7455
  'enableHour', 'enableMinute', 'enableSecond', 'defaultHour', 'defaultMinute', 'defaultSecond'
@@ -8179,7 +8195,7 @@ script$r.__file = "src/widgets/Calendar.vue";
8179
8195
 
8180
8196
  var script$q = {
8181
8197
  name: 'w-timeline',
8182
- mixins: [script$1b, script$T],
8198
+ mixins: [script$1c, script$T],
8183
8199
  props: ['face', 'vertical'],
8184
8200
  methods: {
8185
8201
  indent() {
@@ -8312,7 +8328,7 @@ script$q.__file = "src/widgets/Timeline.vue";
8312
8328
  var script$p = {
8313
8329
  name: 'w-timeline-item',
8314
8330
  pubParentName: 'w-timeline',
8315
- mixins: [script$1c],
8331
+ mixins: [script$1d],
8316
8332
  inject: ['providePubParent'],
8317
8333
  props: ['position', 'index'],
8318
8334
  methods: {
@@ -8349,7 +8365,7 @@ script$p.__file = "src/widgets/TimelineItem.vue";
8349
8365
 
8350
8366
  var script$o = {
8351
8367
  name: 'w-slidepicker',
8352
- mixins: [script$1c],
8368
+ mixins: [script$1d],
8353
8369
  provide() {
8354
8370
  return {
8355
8371
  provideOptionParent: this,
@@ -9570,8 +9586,8 @@ const suffixHooks = {
9570
9586
  gap: 10,
9571
9587
  }, {
9572
9588
  default: () => [
9573
- this.$slots.button ? this.$slots.button({chooseFile: this.chooseFile}) :
9574
- h(script$_, {
9589
+ this.$slots.button ? this.$slots.button(this) :
9590
+ h(script$Z, {
9575
9591
  text: '选择文件',
9576
9592
  icon: '.f-i .f-i-upload',
9577
9593
  class: 'w-fileupload-button',
@@ -9865,7 +9881,7 @@ var script$e = {
9865
9881
  class: 'w-fileupload-bbr'
9866
9882
  }, {
9867
9883
  default: () => [
9868
- this.$slots.button ? this.$slots.button({chooseFile: this.chooseFile}) : h(script$_, {
9884
+ this.$slots.button ? this.$slots.button(this) : h(script$Z, {
9869
9885
  ref: 'uploadbutton',
9870
9886
  title: $$1.loc.form.choose_image,
9871
9887
  icon: '.f-i .f-i-plus',
@@ -9926,7 +9942,7 @@ script$d.__file = "src/widgets/ImageUpload.vue";
9926
9942
 
9927
9943
  var script$c = {
9928
9944
  name: 'w-option',
9929
- mixins: [script$1c],
9945
+ mixins: [script$1d],
9930
9946
  props: ['value', 'text', 'disabled'],
9931
9947
  inject: ['provideOptionParent'],
9932
9948
  methods: {
@@ -10336,7 +10352,7 @@ var script$a = {
10336
10352
  onClose: this.onclose
10337
10353
  };
10338
10354
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
10339
- r.push(h(script$16, dropProps, {
10355
+ r.push(h(script$17, dropProps, {
10340
10356
  default: () => h(script$r, {
10341
10357
  height: '*',
10342
10358
  pad: true,
@@ -10496,7 +10512,7 @@ var script$9 = {
10496
10512
  onClose: () => this.showDrop = false
10497
10513
  };
10498
10514
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
10499
- r.push(h(script$16, dropProps, {default: () => h(script$18, {height: '*', scrollY: true, scrollView: '.z-on'}, this.$slots)}));
10515
+ r.push(h(script$17, dropProps, {default: () => h(script$19, {height: '*', scrollY: true, scrollView: '.z-on'}, this.$slots)}));
10500
10516
  }
10501
10517
  return r
10502
10518
  },
@@ -10895,7 +10911,7 @@ var script$5 = {
10895
10911
  onClose: () => this.showSuggest = false
10896
10912
  };
10897
10913
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
10898
- r.push(h(script$16, dropProps, {default: () => h(script$18, {height: '*', scrollY: true}, this.$slots)}));
10914
+ r.push(h(script$17, dropProps, {default: () => h(script$19, {height: '*', scrollY: true}, this.$slots)}));
10899
10915
  }
10900
10916
  return [
10901
10917
  this.html_input_hidden(),
@@ -11351,7 +11367,7 @@ var script$4 = {
11351
11367
  onClose: () => this.showSuggest = false
11352
11368
  };
11353
11369
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
11354
- r.push(h(script$16, dropProps, {default: () => h(script$18, {height: '*', scrollY: true}, this.$slots)}));
11370
+ r.push(h(script$17, dropProps, {default: () => h(script$19, {height: '*', scrollY: true}, this.$slots)}));
11355
11371
  }
11356
11372
  return [
11357
11373
  this.html_input_hidden(),
@@ -11774,7 +11790,7 @@ var script = {
11774
11790
  this.x.modelValue = this.x.cancelable && this.x.modelValue == i ? '' : i;
11775
11791
  },
11776
11792
  html_star(i) {
11777
- return h(script$$, {
11793
+ return h(script$10, {
11778
11794
  class: ['w-rate-star-icon', {'z-hv': this.hoverWrap && i <= this.hoverIndex, 'z-on': !this.hoverWrap && i <= this.x.modelValue}],
11779
11795
  src: '.f-i .f-i-star-full',
11780
11796
  onMouseenter: e => this.hoverItem(e, i),
@@ -11818,9 +11834,9 @@ var script = {
11818
11834
  script.__file = "src/widgets/Rate.vue";
11819
11835
 
11820
11836
  const components = [
11821
- script$1d, script$17, script$16, script$14, script$12, script$10, script$Y, script$X,
11822
- script$M, script$18, script$19, script$W, script$V, script$U, script$Q, script$R, script$P, script$O, script$N, script$K, script$L, script$G, script$F,
11823
- script$E, script$$, script$J, script$_, script$Z, script$D, script$C, script$x, script$w, script$v, script$u, script$t, script$s, script$r, script$q, script$p, script$o,
11837
+ script$1e, script$18, script$17, script$15, script$13, script$11, script$Y, script$X,
11838
+ script$M, script$19, script$1a, script$W, script$V, script$U, script$Q, script$R, script$P, script$O, script$N, script$K, script$L, script$G, script$F,
11839
+ script$E, script$10, script$J, script$Z, script$_, script$D, script$C, script$x, script$w, script$v, script$u, script$t, script$s, script$r, script$q, script$p, script$o,
11824
11840
  script$B, script$n, script$m, script$l, script$k, script$z, script$j, script$i, script$y, script$h, script$g, script$e, script$d, script$c,
11825
11841
  script$b, script$a, script$9, script$8, script$7, script$6, script$5, script$4, script$2, script$1, script
11826
11842
  ];