dfish-widget 1.0.38 → 1.0.40

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
@@ -1800,7 +1800,7 @@ function directive(Vue) {
1800
1800
 
1801
1801
  const bindCache = {};
1802
1802
 
1803
- var script$1i = {
1803
+ var script$1j = {
1804
1804
  props: ['data', 'width', 'height', 'colspan', 'rowspan', 'ownproperty', 'orientUid'],
1805
1805
  data() {
1806
1806
  return {
@@ -2065,10 +2065,10 @@ const bindCache = {};
2065
2065
  }
2066
2066
  };
2067
2067
 
2068
- script$1i.__file = "src/widgets/WidgetAbs.vue";
2068
+ script$1j.__file = "src/widgets/WidgetAbs.vue";
2069
2069
 
2070
- var script$1h = {
2071
- props: ['src', 'children'],
2070
+ var script$1i = {
2071
+ props: ['src', 'children', 'parentItem'],
2072
2072
  data() {
2073
2073
  return {
2074
2074
  loading: false,
@@ -2101,11 +2101,11 @@ var script$1h = {
2101
2101
  }
2102
2102
  };
2103
2103
 
2104
- script$1h.__file = "src/widgets/SrcParent.vue";
2104
+ script$1i.__file = "src/widgets/SrcParent.vue";
2105
2105
 
2106
- var script$1g = {
2106
+ var script$1h = {
2107
2107
  name: 'w-view',
2108
- mixins: [script$1h],
2108
+ mixins: [script$1i],
2109
2109
  provide() {
2110
2110
  return {
2111
2111
  provideView: this
@@ -2304,9 +2304,9 @@ var script$1g = {
2304
2304
  }
2305
2305
  };
2306
2306
 
2307
- script$1g.__file = "src/widgets/ViewAbs.vue";
2307
+ script$1h.__file = "src/widgets/ViewAbs.vue";
2308
2308
 
2309
- var script$1f = {
2309
+ var script$1g = {
2310
2310
  name: 'w-svg-loading'
2311
2311
  };
2312
2312
 
@@ -2332,14 +2332,14 @@ const _hoisted_6$2 = [
2332
2332
  _hoisted_5$2
2333
2333
  ];
2334
2334
 
2335
- function render$7(_ctx, _cache, $props, $setup, $data, $options) {
2335
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
2336
2336
  return (openBlock(), createElementBlock("svg", _hoisted_1$9, _hoisted_6$2))
2337
2337
  }
2338
2338
 
2339
- script$1f.render = render$7;
2340
- script$1f.__file = "src/assets/SVGIcon.vue";
2339
+ script$1g.render = render$8;
2340
+ script$1g.__file = "src/assets/SVGIcon.vue";
2341
2341
 
2342
- var script$1e = {
2342
+ var script$1f = {
2343
2343
  props: ['data'],
2344
2344
  data() {
2345
2345
  return {
@@ -2385,7 +2385,7 @@ const _hoisted_2$6 = ["src"];
2385
2385
  const _hoisted_3$4 = { class: "_rotate" };
2386
2386
  const _hoisted_4$2 = /*#__PURE__*/createElementVNode("span", { class: "_s" }, "|", -1 /* HOISTED */);
2387
2387
 
2388
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
2388
+ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
2389
2389
  const _component_w_swiper_item = resolveComponent("w-swiper-item");
2390
2390
  const _component_w_swiper = resolveComponent("w-swiper");
2391
2391
  const _component_w_video = resolveComponent("w-video");
@@ -2453,10 +2453,10 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
2453
2453
  }))
2454
2454
  }
2455
2455
 
2456
- script$1e.render = render$6;
2457
- script$1e.__file = "src/template/TemplatePreviewMedia.vue";
2456
+ script$1f.render = render$7;
2457
+ script$1f.__file = "src/template/TemplatePreviewMedia.vue";
2458
2458
 
2459
- var script$1d = {
2459
+ var script$1e = {
2460
2460
  props: ['data'],
2461
2461
  data() {
2462
2462
  let f = this.data.format || 'yyyy-MM-dd';
@@ -2640,7 +2640,7 @@ var script$1d = {
2640
2640
  }
2641
2641
  };
2642
2642
 
2643
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2643
+ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
2644
2644
  const _component_w_button = resolveComponent("w-button");
2645
2645
  const _component_w_buttonbar = resolveComponent("w-buttonbar");
2646
2646
  const _component_w_html = resolveComponent("w-html");
@@ -2957,12 +2957,12 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2957
2957
  }))
2958
2958
  }
2959
2959
 
2960
- script$1d.render = render$5;
2961
- script$1d.__file = "src/template/TemplateDateSheet.vue";
2960
+ script$1e.render = render$6;
2961
+ script$1e.__file = "src/template/TemplateDateSheet.vue";
2962
2962
 
2963
- var script$1c = {
2963
+ var script$1d = {
2964
2964
  name: 'w-docview',
2965
- mixins: [script$1i, script$1g],
2965
+ mixins: [script$1j, script$1h],
2966
2966
  provide() {
2967
2967
  return {
2968
2968
  providePubParent: null,
@@ -2983,15 +2983,15 @@ var script$1c = {
2983
2983
  return null
2984
2984
  },
2985
2985
  previewVideo(src) {
2986
- this.pop(script$1e, {data: {type: 'video', src}});
2986
+ this.pop(script$1f, {data: {type: 'video', src}});
2987
2987
  },
2988
2988
  previewImage(imgs, options) {
2989
- this.pop(script$1e, {data: {type: 'image', imgs, options}});
2989
+ this.pop(script$1f, {data: {type: 'image', imgs, options}});
2990
2990
  },
2991
2991
  //dateOptions: {value, format, minValue, maxValue, success}
2992
2992
  dateSheet(dateOptions, dialogOptions) {
2993
- this.pop(script$1d, {
2994
- template: script$1d,
2993
+ this.pop(script$1e, {
2994
+ template: script$1e,
2995
2995
  width: '100%',
2996
2996
  height: '55%',
2997
2997
  position: 'b',
@@ -3007,20 +3007,20 @@ var script$1c = {
3007
3007
  return [
3008
3008
  this.$slots.default && this.$slots.default(),
3009
3009
  this.html_pops(),
3010
- h(script$1f),
3010
+ h(script$1g),
3011
3011
  ]
3012
3012
  }
3013
3013
  }
3014
3014
  };
3015
3015
 
3016
- script$1c.__file = "src/widgets/DocView.vue";
3016
+ script$1d.__file = "src/widgets/DocView.vue";
3017
3017
 
3018
- var script$1b = {
3019
- mixins: [script$1i],
3018
+ var script$1c = {
3019
+ mixins: [script$1j],
3020
3020
  inject: ['provideView']
3021
3021
  };
3022
3022
 
3023
- script$1b.__file = "src/widgets/WidgetBase.vue";
3023
+ script$1c.__file = "src/widgets/WidgetBase.vue";
3024
3024
 
3025
3025
  const onScroll = function(e) {
3026
3026
  if (this.wScrollPercentX) {
@@ -3061,8 +3061,8 @@ const onScroll = function(e) {
3061
3061
  }, dnEv);
3062
3062
  };
3063
3063
 
3064
- var script$1a = {
3065
- mixins: [script$1b],
3064
+ var script$1b = {
3065
+ mixins: [script$1c],
3066
3066
  props: ['scrollX', 'scrollY', 'scrollView', 'scrollFlex'],
3067
3067
  data() {
3068
3068
  return {
@@ -3348,9 +3348,9 @@ const onScroll = function(e) {
3348
3348
  }
3349
3349
  };
3350
3350
 
3351
- script$1a.__file = "src/widgets/Scroll.vue";
3351
+ script$1b.__file = "src/widgets/Scroll.vue";
3352
3352
 
3353
- var script$19 = {
3353
+ var script$1a = {
3354
3354
  props: ['align', 'valign', 'gap'],
3355
3355
  computed: {
3356
3356
  dir() {
@@ -3365,11 +3365,11 @@ var script$19 = {
3365
3365
  }
3366
3366
  };
3367
3367
 
3368
- script$19.__file = "src/widgets/AlignParent.vue";
3368
+ script$1a.__file = "src/widgets/AlignParent.vue";
3369
3369
 
3370
- var script$18 = {
3370
+ var script$19 = {
3371
3371
  name: 'w-horizontal',
3372
- mixins: [script$1a, script$19],
3372
+ mixins: [script$1b, script$1a],
3373
3373
  props: ['br', 'reverse'],
3374
3374
  provide() {
3375
3375
  return {
@@ -3421,11 +3421,11 @@ var script$18 = {
3421
3421
  }
3422
3422
  };
3423
3423
 
3424
- script$18.__file = "src/widgets/Horizontal.vue";
3424
+ script$19.__file = "src/widgets/Horizontal.vue";
3425
3425
 
3426
- var script$17 = {
3426
+ var script$18 = {
3427
3427
  name: 'w-vertical',
3428
- mixins: [script$18],
3428
+ mixins: [script$19],
3429
3429
  computed: {
3430
3430
  dir() {
3431
3431
  return 'v'
@@ -3433,11 +3433,11 @@ var script$17 = {
3433
3433
  }
3434
3434
  };
3435
3435
 
3436
- script$17.__file = "src/widgets/Vertical.vue";
3436
+ script$18.__file = "src/widgets/Vertical.vue";
3437
3437
 
3438
- var script$16 = {
3438
+ var script$17 = {
3439
3439
  name: 'w-view',
3440
- mixins: [script$17, script$1g],
3440
+ mixins: [script$18, script$1h],
3441
3441
  inject: ['provideView'],
3442
3442
  methods: {
3443
3443
  html_slots() {
@@ -3454,7 +3454,7 @@ var script$16 = {
3454
3454
  }
3455
3455
  };
3456
3456
 
3457
- script$16.__file = "src/widgets/View.vue";
3457
+ script$17.__file = "src/widgets/View.vue";
3458
3458
 
3459
3459
  const O = {},
3460
3460
  T = true,
@@ -3471,9 +3471,9 @@ const O = {},
3471
3471
  return typeof a === 'string' && a.split(',').map(v => positionHooks[v] || v).join()
3472
3472
  };
3473
3473
 
3474
- var script$15 = {
3474
+ var script$16 = {
3475
3475
  name: 'w-dialog',
3476
- mixins: [script$16],
3476
+ mixins: [script$17],
3477
3477
  props: ['title', 'autoHide', 'context', 'prong', 'independent', 'timeout',
3478
3478
  'cover', 'position', 'snap', 'indent', 'local', 'fullScreen', 'hoverShowDrop', 'visible',
3479
3479
  ...boundary
@@ -3848,12 +3848,12 @@ const O = {},
3848
3848
  }
3849
3849
  };
3850
3850
 
3851
- script$15.__file = "src/widgets/Dialog.vue";
3851
+ script$16.__file = "src/widgets/Dialog.vue";
3852
3852
 
3853
3853
  const _hoisted_1$7 = /*#__PURE__*/createElementVNode("i", { class: "w-alert-close-icon f-i f-i-close" }, null, -1 /* HOISTED */);
3854
3854
 
3855
3855
 
3856
- var script$14 = {
3856
+ var script$15 = {
3857
3857
  __name: 'TemplateAlert',
3858
3858
  props: ['text', 'escape', 'title', 'icon', 'showButton'],
3859
3859
  emits: ['save', 'close'],
@@ -3986,11 +3986,11 @@ return (_ctx, _cache) => {
3986
3986
 
3987
3987
  };
3988
3988
 
3989
- script$14.__file = "src/template/TemplateAlert.vue";
3989
+ script$15.__file = "src/template/TemplateAlert.vue";
3990
3990
 
3991
- var script$13 = {
3991
+ var script$14 = {
3992
3992
  name: 'w-alert',
3993
- mixins: [script$15],
3993
+ mixins: [script$16],
3994
3994
  props: ['text', 'title', 'escape', 'yes', 'no', 'showButton'],
3995
3995
  methods: {
3996
3996
  x_default() {
@@ -4008,7 +4008,7 @@ var script$13 = {
4008
4008
  },
4009
4009
  html_slots_default() {
4010
4010
  return h(
4011
- script$14,
4011
+ script$15,
4012
4012
  {
4013
4013
  text: this.x.text,
4014
4014
  title: this.x.title,
@@ -4024,12 +4024,12 @@ var script$13 = {
4024
4024
  }
4025
4025
  };
4026
4026
 
4027
- script$13.__file = "src/widgets/Alert.vue";
4027
+ script$14.__file = "src/widgets/Alert.vue";
4028
4028
 
4029
4029
  const _hoisted_1$6 = /*#__PURE__*/createElementVNode("i", { class: "w-alert-close-icon f-i f-i-close" }, null, -1 /* HOISTED */);
4030
4030
 
4031
4031
 
4032
- var script$12 = {
4032
+ var script$13 = {
4033
4033
  __name: 'TemplateConfirm',
4034
4034
  props: ['text', 'escape', 'title', 'icon', 'showButton'],
4035
4035
  emits: ['save', 'close'],
@@ -4169,11 +4169,11 @@ return (_ctx, _cache) => {
4169
4169
 
4170
4170
  };
4171
4171
 
4172
- script$12.__file = "src/template/TemplateConfirm.vue";
4172
+ script$13.__file = "src/template/TemplateConfirm.vue";
4173
4173
 
4174
- var script$11 = {
4174
+ var script$12 = {
4175
4175
  name: 'w-confirm',
4176
- mixins: [script$15],
4176
+ mixins: [script$16],
4177
4177
  props: ['text', 'title', 'escape', 'yes', 'no', 'showButton'],
4178
4178
  methods: {
4179
4179
  x_default() {
@@ -4192,7 +4192,7 @@ var script$11 = {
4192
4192
  },
4193
4193
  html_slots_default() {
4194
4194
  return h(
4195
- script$12,
4195
+ script$13,
4196
4196
  {
4197
4197
  text: this.x.text,
4198
4198
  title: this.x.title,
@@ -4208,7 +4208,7 @@ var script$11 = {
4208
4208
  }
4209
4209
  };
4210
4210
 
4211
- script$11.__file = "src/widgets/Confirm.vue";
4211
+ script$12.__file = "src/widgets/Confirm.vue";
4212
4212
 
4213
4213
  const _hoisted_1$5 = { class: "w-tip-body" };
4214
4214
  const _hoisted_2$5 = {
@@ -4218,7 +4218,7 @@ const _hoisted_2$5 = {
4218
4218
  const _hoisted_3$3 = ["innerHTML"];
4219
4219
 
4220
4220
 
4221
- var script$10 = {
4221
+ var script$11 = {
4222
4222
  __name: 'TemplateTip',
4223
4223
  props: ['text', 'escape'],
4224
4224
  setup(__props) {
@@ -4242,16 +4242,16 @@ return (_ctx, _cache) => {
4242
4242
 
4243
4243
  };
4244
4244
 
4245
- script$10.__file = "src/template/TemplateTip.vue";
4245
+ script$11.__file = "src/template/TemplateTip.vue";
4246
4246
 
4247
4247
  let inst$1 = null;
4248
4248
  let tipCache = {
4249
4249
  time: new Date().getTime()
4250
4250
  };
4251
4251
 
4252
- var script$$ = {
4252
+ var script$10 = {
4253
4253
  name: 'w-tip',
4254
- mixins: [script$15],
4254
+ mixins: [script$16],
4255
4255
  props: ['face', 'text', 'escape'],
4256
4256
  methods: {
4257
4257
  x_default() {
@@ -4263,7 +4263,7 @@ let inst$1 = null;
4263
4263
  }
4264
4264
  },
4265
4265
  html_slots_default() {
4266
- return h(script$10, {text: this.x.text, escape: this.x.escape}, this.$slots)
4266
+ return h(script$11, {text: this.x.text, escape: this.x.escape}, this.$slots)
4267
4267
  }
4268
4268
  },
4269
4269
  computed: {
@@ -4288,12 +4288,12 @@ let inst$1 = null;
4288
4288
  }
4289
4289
  };
4290
4290
 
4291
- script$$.__file = "src/widgets/Tip.vue";
4291
+ script$10.__file = "src/widgets/Tip.vue";
4292
4292
 
4293
- var script$_ = {
4293
+ var script$$ = {
4294
4294
  name: 'w-img',
4295
4295
  pubParentName: 'w-album',
4296
- mixins: [script$1b],
4296
+ mixins: [script$1c],
4297
4297
  inject: ['providePubParent'],
4298
4298
  props: ['src', 'text', 'square', 'imgWidth', 'imgHeight', 'dataUrl', 'vertical', 'disabled'],
4299
4299
  data() {
@@ -4339,7 +4339,7 @@ var script$_ = {
4339
4339
  class: 'w-img-cover f-abs-full'
4340
4340
  }, this.$slots.cover())
4341
4341
  ]),
4342
- cont && h(script$17, {
4342
+ cont && h(script$18, {
4343
4343
  class: 'w-img-description'
4344
4344
  }, cont)
4345
4345
  ]
@@ -4373,12 +4373,12 @@ var script$_ = {
4373
4373
  }
4374
4374
  };
4375
4375
 
4376
- script$_.__file = "src/widgets/Img.vue";
4376
+ script$$.__file = "src/widgets/Img.vue";
4377
4377
 
4378
- var script$Z = {
4378
+ var script$_ = {
4379
4379
  name: 'w-button',
4380
4380
  pubParentName: 'w-buttonbar',
4381
- mixins: [script$1b],
4381
+ mixins: [script$1c],
4382
4382
  props: ['text', 'icon', 'focusIcon', 'face', 'target', 'closable', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', 'dropIcon', 'showDropIcon'],
4383
4383
  inject: ['providePubParent'],
4384
4384
  emits: ['click:close', 'dropClose'],
@@ -4472,7 +4472,7 @@ var script$Z = {
4472
4472
  if (this.x.loading) {
4473
4473
  r.push(h('div', {
4474
4474
  class: 'w-button-loading f-abs-full f-flex-center'
4475
- }, h(script$_, {
4475
+ }, h(script$$, {
4476
4476
  src: '#f-svg-loading'
4477
4477
  })));
4478
4478
  }
@@ -4487,7 +4487,7 @@ var script$Z = {
4487
4487
  }, h('span', {class: 'w-button-text-line f-line-1', title}, t)));
4488
4488
  }
4489
4489
  if (this.isMore && this.x.showDropIcon) {
4490
- r.push(h(script$_, {
4490
+ r.push(h(script$$, {
4491
4491
  class: 'w-button-more f-flex-center f-height',
4492
4492
  src: this.x.dropIcon || '.f-i .f-i-caret-down'
4493
4493
  }));
@@ -4505,7 +4505,7 @@ var script$Z = {
4505
4505
  class: 'w-button-main f-oh f-height',
4506
4506
  ...(this.isCombo && !this.isDisabled && this.mouses),
4507
4507
  }, r),
4508
- this.isCombo && h(script$_, {
4508
+ this.isCombo && h(script$$, {
4509
4509
  class: 'w-button-drop f-flex-center f-height',
4510
4510
  src: this.x.dropIcon || '.f-i .f-i-caret-down',
4511
4511
  ...(!this.isDisabled && this.mouses),
@@ -4552,11 +4552,11 @@ var script$Z = {
4552
4552
  }
4553
4553
  };
4554
4554
 
4555
- script$Z.__file = "src/widgets/Button.vue";
4555
+ script$_.__file = "src/widgets/Button.vue";
4556
4556
 
4557
- var script$Y = {
4557
+ var script$Z = {
4558
4558
  name: 'w-menubutton',
4559
- mixins: [script$Z],
4559
+ mixins: [script$_],
4560
4560
  methods: {
4561
4561
  ajax(...args) {
4562
4562
  return this.parentMenu.rootCommander.ajax(...args)
@@ -4619,7 +4619,7 @@ var script$Y = {
4619
4619
  onclick: this.clickClose
4620
4620
  })));
4621
4621
  }
4622
- r.push(h(script$_, {
4622
+ r.push(h(script$$, {
4623
4623
  class: 'w-menubutton-drop f-flex-center f-height',
4624
4624
  src: this.isMore ? (this.x.dropIcon || '.f-i .f-i-caret-right') : ''
4625
4625
  }));
@@ -4669,7 +4669,7 @@ var script$Y = {
4669
4669
  },
4670
4670
  };
4671
4671
 
4672
- script$Y.__file = "src/widgets/MenuButton.vue";
4672
+ script$Z.__file = "src/widgets/MenuButton.vue";
4673
4673
 
4674
4674
  let inst = null;
4675
4675
 
@@ -4684,9 +4684,9 @@ let inst = null;
4684
4684
  return inst && (ctx.hasBubble(inst.context) || inst.hasBubble(ctx))
4685
4685
  }
4686
4686
 
4687
- var script$X = {
4687
+ var script$Y = {
4688
4688
  name: 'w-menu',
4689
- mixins: [script$15],
4689
+ mixins: [script$16],
4690
4690
  methods: {
4691
4691
  x_default() {
4692
4692
  return {
@@ -4741,8 +4741,8 @@ let inst = null;
4741
4741
  },
4742
4742
  html_buttons() {
4743
4743
  return this.slots_children().map(s => {
4744
- if (s.type === script$Z) {
4745
- s.type = script$Y;
4744
+ if (s.type === script$_) {
4745
+ s.type = script$Z;
4746
4746
  }
4747
4747
  return s
4748
4748
  })
@@ -4755,7 +4755,7 @@ let inst = null;
4755
4755
  }, h('i', {
4756
4756
  class: 'f-i f-i-caret-up'
4757
4757
  })),
4758
- h(script$17, {
4758
+ h(script$18, {
4759
4759
  class: 'w-menu-bbr',
4760
4760
  height: '*',
4761
4761
  ref: 'bbr',
@@ -4812,11 +4812,11 @@ let inst = null;
4812
4812
  }
4813
4813
  };
4814
4814
 
4815
- script$X.__file = "src/widgets/Menu.vue";
4815
+ script$Y.__file = "src/widgets/Menu.vue";
4816
4816
 
4817
- var script$W = {
4817
+ var script$X = {
4818
4818
  name: 'w-loading',
4819
- mixins: [script$15],
4819
+ mixins: [script$16],
4820
4820
  props: ['text', 'icon'],
4821
4821
  methods: {
4822
4822
  x_default() {
@@ -4825,7 +4825,7 @@ var script$W = {
4825
4825
  }
4826
4826
  },
4827
4827
  html_slots() {
4828
- return h(script$_, {
4828
+ return h(script$$, {
4829
4829
  src: this.x.icon !== undefined ? this.x.icon : '#f-svg-loading',
4830
4830
  text: this.x.text !== undefined ? this.x.text : $$1.loc.loading
4831
4831
  })
@@ -4838,11 +4838,11 @@ var script$W = {
4838
4838
  }
4839
4839
  };
4840
4840
 
4841
- script$W.__file = "src/widgets/Loading.vue";
4841
+ script$X.__file = "src/widgets/Loading.vue";
4842
4842
 
4843
- var script$V = {
4843
+ var script$W = {
4844
4844
  name: 'w-table',
4845
- mixins: [script$1b],
4845
+ mixins: [script$1c],
4846
4846
  props: ['face', 'scroll-x', 'scroll-y'],
4847
4847
  provide() {
4848
4848
  return {
@@ -4919,22 +4919,22 @@ var script$V = {
4919
4919
  }
4920
4920
  };
4921
4921
 
4922
- script$V.__file = "src/widgets/Table.vue";
4922
+ script$W.__file = "src/widgets/Table.vue";
4923
4923
 
4924
- var script$U = {
4924
+ var script$V = {
4925
4925
  name: 'w-columns'
4926
4926
  };
4927
4927
 
4928
- script$U.__file = "src/widgets/TableColumns.vue";
4928
+ script$V.__file = "src/widgets/TableColumns.vue";
4929
4929
 
4930
- var script$T = {
4930
+ var script$U = {
4931
4931
  name: 'w-column',
4932
4932
  props: ['width', 'minWidth'],
4933
4933
  };
4934
4934
 
4935
- script$T.__file = "src/widgets/TableColumn.vue";
4935
+ script$U.__file = "src/widgets/TableColumn.vue";
4936
4936
 
4937
- var script$S = {
4937
+ var script$T = {
4938
4938
  props: ['pub', 'current'],
4939
4939
  provide() {
4940
4940
  return {
@@ -4965,11 +4965,21 @@ var script$S = {
4965
4965
  }
4966
4966
  };
4967
4967
 
4968
- script$S.__file = "src/widgets/PubParent.vue";
4968
+ script$T.__file = "src/widgets/PubParent.vue";
4969
+
4970
+ function render$5(_ctx, _cache) {
4971
+ return renderSlot(_ctx.$slots, "default")
4972
+ }
4973
+
4974
+ const script$S = {};
4975
+
4976
+
4977
+ script$S.render = render$5;
4978
+ script$S.__file = "src/widgets/SlotDefault.vue";
4969
4979
 
4970
4980
  var script$R = {
4971
4981
  name: 'w-thead',
4972
- mixins: [script$1b, script$S],
4982
+ mixins: [script$1c, script$T],
4973
4983
  props: ['br', 'sort'],
4974
4984
  inject: ['_provideTable'],
4975
4985
  provide() {
@@ -4997,7 +5007,20 @@ var script$R = {
4997
5007
  let chd = this.x.children;
4998
5008
  if (Array.isArray(chd)) {
4999
5009
  let i = 0;
5000
- r = chd.map((item, index) => this.$slots.row({item, index}).map(t => $$1.lodash.set(t, 'props.rowIndex', i++)));
5010
+ r = chd.map((item, index) => {
5011
+ let key;
5012
+ const row = this.$slots.row({item, index}).map(t => {
5013
+ if (!t.props) t.props = {};
5014
+ t.props.rowIndex = i++;
5015
+ if (!key) key = t.key;
5016
+ return t
5017
+ });
5018
+ if (key) {
5019
+ return h(script$S, {key}, {default: () => row})
5020
+ } else {
5021
+ return row
5022
+ }
5023
+ });
5001
5024
  }
5002
5025
  return r || []
5003
5026
  } else {
@@ -5053,7 +5076,7 @@ script$R.__file = "src/widgets/TableTHead.vue";
5053
5076
 
5054
5077
  var script$Q = {
5055
5078
  name: 'w-tbody',
5056
- mixins: [script$R, script$1a],
5079
+ mixins: [script$R, script$1b],
5057
5080
  inject: ['_provideTable'],
5058
5081
  props: ['children'],
5059
5082
  provide() {
@@ -5126,7 +5149,7 @@ script$Q.__file = "src/widgets/TableTBody.vue";
5126
5149
  var script$P = {
5127
5150
  name: 'w-tr',
5128
5151
  pubParentName: 'w-tbody,w-thead',
5129
- mixins: [script$1b, script$1h],
5152
+ mixins: [script$1c, script$1i],
5130
5153
  props: ['rowIndex', 'expanded', 'children'],
5131
5154
  inject: ['_provideTable', 'providePubParent', 'provideInBody', '_provideTBody', 'provideLevel', 'provideParentTR'],
5132
5155
  provide() {
@@ -5199,7 +5222,23 @@ var script$P = {
5199
5222
  },
5200
5223
  html() {
5201
5224
  if (this.x.children && Array.isArray(this.x.children) && this._provideTBody && this._provideTBody.$slots.row) {
5202
- return [this.html_self(true), this.x.children.map((item, index) => this._provideTBody.$slots.row({item, index}))]
5225
+ return [
5226
+ this.html_self(true),
5227
+ this.x.children.map((item, index) => {
5228
+ let key;
5229
+ const row = this._provideTBody.$slots.row({item, index});
5230
+ for (let r of row) {
5231
+ if (!key) {
5232
+ key = r.key;
5233
+ }
5234
+ }
5235
+ if (key) {
5236
+ return h(script$S, {key}, {default: () => row})
5237
+ } else {
5238
+ return row
5239
+ }
5240
+ })
5241
+ ]
5203
5242
  }
5204
5243
  return this.$slots.row ? [this.html_self(true), this.$slots.row()] : this.html_self()
5205
5244
  },
@@ -5281,7 +5320,7 @@ script$O.__file = "src/widgets/TableTD.vue";
5281
5320
 
5282
5321
  var script$N = {
5283
5322
  name: 'w-th',
5284
- mixins: [script$O, script$1b],
5323
+ mixins: [script$O, script$1c],
5285
5324
  props: ['sortable', 'sortOrders', 'sortOrderDefault'],
5286
5325
  inject: ['_provideThead'],
5287
5326
  emits: ['click:sort'],
@@ -5316,7 +5355,7 @@ var script$N = {
5316
5355
  this.$emit('click:sort', e, o);
5317
5356
  },
5318
5357
  html_slots() {
5319
- return h(script$18, {class: 'w-th-wrap', valign: 'middle', align: this.align || this.col.align}, {default: () => [
5358
+ return h(script$19, {class: 'w-th-wrap', valign: 'middle', align: this.align || this.col.align}, {default: () => [
5320
5359
  h('div', {class: 'w-th-title'}, this.$slots),
5321
5360
  this.x.sortable ? h('div', {class: 'w-th-sort f-flex-column f-flex-center f-oh'}, [
5322
5361
  h('i', {class: 'f-i f-i-caret-up f-oh w-th-sort-up', onClick: e => this.clickSort(e, 'asc')}),
@@ -5345,7 +5384,7 @@ script$N.__file = "src/widgets/TableTH.vue";
5345
5384
 
5346
5385
  var script$M = {
5347
5386
  name: 'w-grid',
5348
- mixins: [script$1a],
5387
+ mixins: [script$1b],
5349
5388
  props: ['columns', 'rows', 'gap', 'defaultColspan', 'face', 'labelWidth'],
5350
5389
  methods: {
5351
5390
  x_default() {
@@ -5393,7 +5432,7 @@ var script$L = {
5393
5432
  name: 'w-swiper-item',
5394
5433
  pubParentName: 'w-swiper',
5395
5434
  inject: ['providePubParent'],
5396
- mixins: [script$1b],
5435
+ mixins: [script$1c],
5397
5436
  props: ['lazy'],
5398
5437
  data() {
5399
5438
  return {
@@ -5430,7 +5469,7 @@ script$L.__file = "src/widgets/SwiperItem.vue";
5430
5469
 
5431
5470
  var script$K = {
5432
5471
  name: 'w-swiper',
5433
- mixins: [script$1b, script$S],
5472
+ mixins: [script$1c, script$T],
5434
5473
  props: ['arrow', 'indicatorDots', 'duration'],
5435
5474
  data() {
5436
5475
  return {
@@ -5519,7 +5558,7 @@ script$K.__file = "src/widgets/Swiper.vue";
5519
5558
 
5520
5559
  var script$J = {
5521
5560
  name: 'w-buttonbar',
5522
- mixins: [script$18, script$S],
5561
+ mixins: [script$19, script$T],
5523
5562
  props: ['vertical'],
5524
5563
  emits: ['click:item'],
5525
5564
  methods: {
@@ -5632,7 +5671,7 @@ var script$I = {
5632
5671
  },
5633
5672
  html_slots() {
5634
5673
  let group = h(TransitionGroup, {name: 'w-tabbar', onBeforeEnter: this.onBeforeEnter, onAfterEnter: this.onAfterEnter, onBeforeLeave: this.onBeforeLeave, onAfterLeave: this.onAfterLeave}, {default: () => this.buttons});
5635
- let gut = [h(this.x.vertical ? script$17 : script$18, {ref: 'gut', class: 'w-tabbar-gut', gap: this.x.gap, align: this.x.align, valign: this.x.valign}, {default: () => group})];
5674
+ 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})];
5636
5675
  if (this.x.arrow) {
5637
5676
  gut.unshift(h('div', {class: 'w-tabbar-arrow-start', onClick: () => this.clickArrow(-1)}, h('i', {class: 'f-i f-i-caret-left'})));
5638
5677
  gut.push(h('div', {class: 'w-tabbar-arrow-end', onClick: () => this.clickArrow(1)}, h('i', {class: 'f-i f-i-caret-right'})));
@@ -5640,7 +5679,7 @@ var script$I = {
5640
5679
  if (this.x.quickCloseButton) {
5641
5680
  let closeAllDisabled = !this.buttons.find(c => c.props.closable);
5642
5681
  if (this.buttons.length) {
5643
- gut.push(h(script$Z, {
5682
+ gut.push(h(script$_, {
5644
5683
  ref: 'quickCloseButton',
5645
5684
  data: {isQuickCloseButton: true},
5646
5685
  showDropIcon: false,
@@ -5649,7 +5688,7 @@ var script$I = {
5649
5688
  onDropClose: this.onMouseleave
5650
5689
  }, {
5651
5690
  default: () => [
5652
- h(script$Z, {text: '关闭全部标签', onClick: this.closeAll, disabled: closeAllDisabled})
5691
+ h(script$_, {text: '关闭全部标签', onClick: this.closeAll, disabled: closeAllDisabled})
5653
5692
  ]
5654
5693
  }));
5655
5694
  }
@@ -5756,7 +5795,7 @@ script$I.__file = "src/widgets/TabBar.vue";
5756
5795
  var script$H = {
5757
5796
  name: 'w-tabbutton',
5758
5797
  pubParentName: 'w-tabbar',
5759
- mixins: [script$Z],
5798
+ mixins: [script$_],
5760
5799
  methods: {
5761
5800
  vis() {
5762
5801
  let add = [20, 20];
@@ -5780,7 +5819,7 @@ script$H.__file = "src/widgets/TabButton.vue";
5780
5819
 
5781
5820
  var script$G = {
5782
5821
  name: 'w-tabs',
5783
- mixins: [script$1b],
5822
+ mixins: [script$1c],
5784
5823
  props: ['current', 'position', 'gap', 'face', 'quickCloseButton', 'flexSize'],
5785
5824
  emits: ['click:quickCloseButton'],
5786
5825
  methods: {
@@ -5847,7 +5886,7 @@ script$F.__file = "src/widgets/Tab.vue";
5847
5886
 
5848
5887
  var script$E = {
5849
5888
  name: 'w-album',
5850
- mixins: [script$18, script$S],
5889
+ mixins: [script$19, script$T],
5851
5890
  methods: {
5852
5891
  x_default() {
5853
5892
  return {
@@ -5868,7 +5907,7 @@ script$E.__file = "src/widgets/Album.vue";
5868
5907
 
5869
5908
  var script$D = {
5870
5909
  name: 'w-html',
5871
- mixins: [script$1b, script$19],
5910
+ mixins: [script$1c, script$1a],
5872
5911
  props: ['line'],
5873
5912
  computed: {
5874
5913
  html_props() {
@@ -5891,7 +5930,7 @@ script$D.__file = "src/widgets/Html.vue";
5891
5930
 
5892
5931
  var script$C = {
5893
5932
  name: 'w-tree',
5894
- mixins: [script$1a, script$S, script$1h],
5933
+ mixins: [script$1b, script$T, script$1i],
5895
5934
  emits: ['click:item'],
5896
5935
  provide() {
5897
5936
  return {
@@ -5919,7 +5958,20 @@ var script$C = {
5919
5958
  let chd = this.x.children;
5920
5959
  if (this.$slots.default) {
5921
5960
  if (Array.isArray(chd)) {
5922
- r = chd.map((item, index) => this.$slots.default({item, index}));
5961
+ r = chd.map((item, index) => {
5962
+ let key;
5963
+ const leaf = this.$slots.default({item, index});
5964
+ for (let f of leaf) {
5965
+ if (!key) {
5966
+ key = f.key;
5967
+ }
5968
+ }
5969
+ if (key) {
5970
+ return h(script$S, {key}, {default: () => leaf})
5971
+ } else {
5972
+ return leaf
5973
+ }
5974
+ });
5923
5975
  } else {
5924
5976
  r = [];
5925
5977
  }
@@ -5946,7 +5998,7 @@ script$C.__file = "src/widgets/Tree.vue";
5946
5998
 
5947
5999
  var script$B = {
5948
6000
  name: 'w-label',
5949
- mixins: [script$1b, script$19],
6001
+ mixins: [script$1c, script$1a],
5950
6002
  props: ['text', 'suffix', 'vertical'],
5951
6003
  methods: {
5952
6004
  html_slots() {
@@ -5971,7 +6023,7 @@ var script$B = {
5971
6023
  script$B.__file = "src/widgets/Label.vue";
5972
6024
 
5973
6025
  var script$A = {
5974
- mixins: [script$1b, script$19],
6026
+ mixins: [script$1c, script$1a],
5975
6027
  props: ['name', 'value', 'modelValue', 'placeholder', 'label', 'readonly', 'readonlyValidate', 'disabled', 'required',
5976
6028
  'validateDefault', 'validateHandler', 'inputWidth', 'inputHeight' ],
5977
6029
  emits: ['update:modelValue', 'change', 'blur', 'focus'],
@@ -5982,6 +6034,7 @@ var script$A = {
5982
6034
  isFocus: false,
5983
6035
  hasBorder: false,
5984
6036
  isPlural: false,
6037
+ isEdit: false,
5985
6038
  loading: false,
5986
6039
  warnClass: '',
5987
6040
  labelVertical: false,
@@ -5991,6 +6044,18 @@ var script$A = {
5991
6044
  validIndex: 0,
5992
6045
  }
5993
6046
  },
6047
+ watch: {
6048
+ modelValue(v, ov) {
6049
+ if (this.isEdit) {
6050
+ this.isEdit = false;
6051
+ } else {
6052
+ if (v == null) v = '';
6053
+ if (ov == null) ov = '';
6054
+ this.watchModelValue(v, ov);
6055
+ }
6056
+ }
6057
+ },
6058
+
5994
6059
  methods: {
5995
6060
  val(v) {
5996
6061
  if (arguments.length == 0)
@@ -6010,6 +6075,7 @@ var script$A = {
6010
6075
  if (changed) {
6011
6076
  this.warnClass && this.warn(false);
6012
6077
  if (this.isUsableVal(v)) {
6078
+ this.isEdit = true;
6013
6079
  this.$emit('update:modelValue', v);
6014
6080
  this.trigger('change', v);
6015
6081
  }
@@ -6031,6 +6097,11 @@ var script$A = {
6031
6097
  return r && r.value ? r.value : r
6032
6098
  }
6033
6099
  },
6100
+ watchModelValue(v, ov) {
6101
+ if (ov != v) {
6102
+ this.trigger('change', v);
6103
+ }
6104
+ },
6034
6105
  async valid(trigger) {
6035
6106
  let error = await this.getValidError(trigger);
6036
6107
  if (error) {
@@ -6444,6 +6515,15 @@ var script$z = {
6444
6515
  }
6445
6516
  $$1.lodash.each(this.siblings(), f => f.val($$1.idsAny(a, f.checkValue)));
6446
6517
  },
6518
+ watchModelValue(v, ov) {
6519
+ if (ov != v) {
6520
+ this.trigger('change', v);
6521
+ if (this.pubParent && this.pubParent.watchValue != v) {
6522
+ this.pubParent.watchValue = v;
6523
+ this.pubParent.trigger('change', v);
6524
+ }
6525
+ }
6526
+ },
6447
6527
  check(a) {
6448
6528
  if (!this.isNormal) return
6449
6529
  this.val(a);
@@ -6469,8 +6549,8 @@ var script$z = {
6469
6549
  e.stopPropagation();
6470
6550
  },
6471
6551
  onbasechange(e) {
6472
- if (this.warnClass && this.x.name) {
6473
- this.ownerView.fAll(this.x.name).forEach(v => v.warn && v.warn(false));
6552
+ if (this.warnClass) {
6553
+ this.siblings().forEach(v => v.warn && v.warn(false));
6474
6554
  }
6475
6555
  this.setVal(e.target.checked, e);
6476
6556
  },
@@ -6533,7 +6613,7 @@ var script$z = {
6533
6613
  }, this.html_input())
6534
6614
  },
6535
6615
  html_target() {
6536
- return this.$slots.default ? h(script$18, {
6616
+ return this.$slots.default ? h(script$19, {
6537
6617
  class: this.$options.name + '-target',
6538
6618
  ref: 'target'
6539
6619
  }, this.$slots) : []
@@ -6709,7 +6789,7 @@ script$y.__file = "src/widgets/TripleBox.vue";
6709
6789
  var script$x = {
6710
6790
  name: 'w-leaf',
6711
6791
  pubParentName: 'w-tree',
6712
- mixins: [script$1b, script$1h],
6792
+ mixins: [script$1c, script$1i],
6713
6793
  props: ['text', 'expanded', 'expandedIcon', 'collapsedIcon', 'icon', 'boxSync', 'src', 'disabled'],
6714
6794
  inject: ['providePubParent', 'provideLevel', 'provideParentLeaf', 'provideParentTR'],
6715
6795
  provide() {
@@ -6809,7 +6889,7 @@ var script$x = {
6809
6889
  let ico = this.isFolder() ? (exp ? this.x.expandedIcon : this.x.collapsedIcon) : this.x.icon;
6810
6890
  return h('div', mergeProps(this.html_attrs, this.html_props, this.$attrs), [
6811
6891
  this.loading ?
6812
- h(script$_, {
6892
+ h(script$$, {
6813
6893
  src: '#f-svg-loading',
6814
6894
  class: 'w-leaf-loading'
6815
6895
  }) :
@@ -6821,7 +6901,7 @@ var script$x = {
6821
6901
  }
6822
6902
  }),
6823
6903
  this.$slots.box && this.$slots.box(),
6824
- ico && h(script$_, {
6904
+ ico && h(script$$, {
6825
6905
  src: ico,
6826
6906
  class: 'w-leaf-icon'
6827
6907
  }),
@@ -6836,7 +6916,20 @@ var script$x = {
6836
6916
  let chd = this.x.children;
6837
6917
  let tree = this.pubParent;
6838
6918
  if (Array.isArray(chd) && tree) {
6839
- r = chd.map((item, index) => tree.$slots.default({item, index}));
6919
+ r = chd.map((item, index) => {
6920
+ let key;
6921
+ const leaf = tree.$slots.default({item, index});
6922
+ for (let f of leaf) {
6923
+ if (!key) {
6924
+ key = f.key;
6925
+ }
6926
+ }
6927
+ if (key) {
6928
+ return h(script$S, {key}, {default: () => leaf})
6929
+ } else {
6930
+ return leaf
6931
+ }
6932
+ });
6840
6933
  }
6841
6934
  return h('div', {
6842
6935
  id: this.uid + 'cont',
@@ -6953,13 +7046,13 @@ var script$w = {
6953
7046
  this.html_face_normal()
6954
7047
  },
6955
7048
  html_buttons() {
6956
- return [h(script$Z, {
7049
+ return [h(script$_, {
6957
7050
  class: 'w-pagebar-button w-pagebar-prev',
6958
7051
  icon: '.f-i .f-i-angle-left',
6959
7052
  disabled: this.currentPage == 1,
6960
7053
  title: $$1.loc.page_text.prev,
6961
7054
  onclick: e => this.clickItem(e, this.currentPage - 1)
6962
- }), h(script$Z, {
7055
+ }), h(script$_, {
6963
7056
  class: 'w-pagebar-button w-pagebar-next',
6964
7057
  icon: '.f-i .f-i-angle-right',
6965
7058
  disabled: this.currentPage == this.sumPage,
@@ -6970,7 +7063,7 @@ var script$w = {
6970
7063
  html_drop() {
6971
7064
  let s = [];
6972
7065
  if (this.x.buttonCount) {
6973
- s.push(h(script$Z, {
7066
+ s.push(h(script$_, {
6974
7067
  class: 'w-pagebar-button w-pagebar-button-count w-pagebar-prev',
6975
7068
  ref: 'drop',
6976
7069
  text: this.currentPage + '/' + this.sumPage,
@@ -6979,8 +7072,8 @@ var script$w = {
6979
7072
  }
6980
7073
  if (this.showDrop) {
6981
7074
  let b = [];
6982
- for (let i = 1, sp = this.sumPage; i <= sp; i ++) b.push(h(script$Z, {text: i, onClick: e => this.clickItem(e, i)}));
6983
- s.push(h(script$X, {snap: () => this.$refs.drop, position: 'v', indent: 1, onClose: () => this.showDrop = false}, {default: () => b}));
7075
+ for (let i = 1, sp = this.sumPage; i <= sp; i ++) b.push(h(script$_, {text: i, onClick: e => this.clickItem(e, i)}));
7076
+ s.push(h(script$Y, {snap: () => this.$refs.drop, position: 'v', indent: 1, onClose: () => this.showDrop = false}, {default: () => b}));
6984
7077
  }
6985
7078
  return s
6986
7079
  },
@@ -7082,7 +7175,7 @@ script$w.__file = "src/widgets/PageBar.vue";
7082
7175
 
7083
7176
  var script$v = {
7084
7177
  name: 'w-split',
7085
- mixins: [script$1b],
7178
+ mixins: [script$1c],
7086
7179
  props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
7087
7180
  inject: ['provideLayout'],
7088
7181
  created() {
@@ -7183,7 +7276,7 @@ script$v.__file = "src/widgets/Split.vue";
7183
7276
 
7184
7277
  var script$u = {
7185
7278
  name: 'w-toggle',
7186
- mixins: [script$1b, script$19],
7279
+ mixins: [script$1c, script$1a],
7187
7280
  props: ['collapsedIcon', 'expandedIcon', 'expanded', 'align', 'valign'],
7188
7281
  methods: {
7189
7282
  x_default() {
@@ -7200,7 +7293,7 @@ var script$u = {
7200
7293
  html_slots() {
7201
7294
  let exp = this.x.expanded;
7202
7295
  let ico = exp ? this.x.expandedIcon : this.x.collapsedIcon;
7203
- return [ico && h(script$_, {
7296
+ return [ico && h(script$$, {
7204
7297
  src: ico,
7205
7298
  class: 'w-toggle-icon',
7206
7299
  }), h('div', {class: 'w-toggle-main'}, this.$slots.default())]
@@ -7231,7 +7324,7 @@ script$u.__file = "src/widgets/Toggle.vue";
7231
7324
 
7232
7325
  var script$t = {
7233
7326
  name: 'w-video',
7234
- mixins: [script$1b],
7327
+ mixins: [script$1c],
7235
7328
  props: ['src', 'poster'],
7236
7329
  data() {
7237
7330
  return {
@@ -7283,7 +7376,7 @@ script$t.__file = "src/widgets/Video.vue";
7283
7376
 
7284
7377
  var script$s = {
7285
7378
  name: 'w-progress',
7286
- mixins: [script$1b],
7379
+ mixins: [script$1c],
7287
7380
  props: ['percent', 'range', 'text'],
7288
7381
  methods: {
7289
7382
  html_slots() {
@@ -7328,7 +7421,7 @@ script$s.__file = "src/widgets/Progress.vue";
7328
7421
 
7329
7422
  var script$r = {
7330
7423
  name: 'w-calendar',
7331
- mixins: [script$1b],
7424
+ mixins: [script$1c],
7332
7425
  emits: ['click:item', 'change'],
7333
7426
  props: ['value', 'minValue', 'maxValue', 'current', 'pad', 'face', 'format', 'success', 'cg', 'start',
7334
7427
  'enableHour', 'enableMinute', 'enableSecond', 'defaultHour', 'defaultMinute', 'defaultSecond'
@@ -8074,7 +8167,7 @@ script$r.__file = "src/widgets/Calendar.vue";
8074
8167
 
8075
8168
  var script$q = {
8076
8169
  name: 'w-timeline',
8077
- mixins: [script$1a, script$S],
8170
+ mixins: [script$1b, script$T],
8078
8171
  props: ['face', 'vertical'],
8079
8172
  methods: {
8080
8173
  indent() {
@@ -8207,7 +8300,7 @@ script$q.__file = "src/widgets/Timeline.vue";
8207
8300
  var script$p = {
8208
8301
  name: 'w-timeline-item',
8209
8302
  pubParentName: 'w-timeline',
8210
- mixins: [script$1b],
8303
+ mixins: [script$1c],
8211
8304
  inject: ['providePubParent'],
8212
8305
  props: ['position', 'index'],
8213
8306
  methods: {
@@ -8244,7 +8337,7 @@ script$p.__file = "src/widgets/TimelineItem.vue";
8244
8337
 
8245
8338
  var script$o = {
8246
8339
  name: 'w-slidepicker',
8247
- mixins: [script$1b],
8340
+ mixins: [script$1c],
8248
8341
  provide() {
8249
8342
  return {
8250
8343
  provideOptionParent: this,
@@ -8567,6 +8660,11 @@ var script$k = {
8567
8660
  providePubParent: this
8568
8661
  }
8569
8662
  },
8663
+ data() {
8664
+ return {
8665
+ watchValue: ''
8666
+ }
8667
+ },
8570
8668
  methods: {
8571
8669
  x_default() {
8572
8670
  return {
@@ -9394,7 +9492,7 @@ const suffixHooks = {
9394
9492
  onclick: e => this.remove(item)
9395
9493
  })];
9396
9494
  if (value && this.$slots.menu) {
9397
- button.push(h(script$X, null, {
9495
+ button.push(h(script$Y, null, {
9398
9496
  target: () => h('div', {
9399
9497
  class: 'w-fileupload-value-menu f-i f-i-ellipsis',
9400
9498
  title: $$1.loc.more,
@@ -9447,7 +9545,7 @@ const suffixHooks = {
9447
9545
  class: 'w-fileupload-bbr',
9448
9546
  gap: 10,
9449
9547
  }, {
9450
- default: () => [this.$slots.button ? this.$slots.button() : h(script$Z, {
9548
+ default: () => [this.$slots.button ? this.$slots.button() : h(script$_, {
9451
9549
  text: '选择文件',
9452
9550
  icon: '.f-i .f-i-upload',
9453
9551
  class: 'w-fileupload-button',
@@ -9728,7 +9826,7 @@ var script$e = {
9728
9826
  ref: 'uploadbbr',
9729
9827
  class: 'w-fileupload-bbr'
9730
9828
  }, {
9731
- default: () => [this.$slots.button ? this.$slots.button() : h(script$Z, {
9829
+ default: () => [this.$slots.button ? this.$slots.button() : h(script$_, {
9732
9830
  ref: 'uploadbutton',
9733
9831
  title: $$1.loc.form.choose_image,
9734
9832
  icon: '.f-i .f-i-plus',
@@ -9785,7 +9883,7 @@ script$d.__file = "src/widgets/ImageUpload.vue";
9785
9883
 
9786
9884
  var script$c = {
9787
9885
  name: 'w-option',
9788
- mixins: [script$1b],
9886
+ mixins: [script$1c],
9789
9887
  props: ['value', 'text', 'disabled'],
9790
9888
  inject: ['provideOptionParent'],
9791
9889
  methods: {
@@ -10195,7 +10293,7 @@ var script$a = {
10195
10293
  onClose: this.onclose
10196
10294
  };
10197
10295
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
10198
- r.push(h(script$15, dropProps, {
10296
+ r.push(h(script$16, dropProps, {
10199
10297
  default: () => h(script$r, {
10200
10298
  height: '*',
10201
10299
  pad: true,
@@ -10355,7 +10453,7 @@ var script$9 = {
10355
10453
  onClose: () => this.showDrop = false
10356
10454
  };
10357
10455
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
10358
- r.push(h(script$15, dropProps, {default: () => h(script$17, {height: '*', scrollY: true, scrollView: '.z-on'}, this.$slots)}));
10456
+ r.push(h(script$16, dropProps, {default: () => h(script$18, {height: '*', scrollY: true, scrollView: '.z-on'}, this.$slots)}));
10359
10457
  }
10360
10458
  return r
10361
10459
  },
@@ -10562,14 +10660,19 @@ var script$5 = {
10562
10660
  }
10563
10661
  },
10564
10662
  watch: {
10565
- modelValue(v) {
10566
- this.clear();
10567
- },
10568
10663
  inputValue(v) {
10569
10664
  this.sensor_text = v;
10570
10665
  }
10571
10666
  },
10572
10667
  methods: {
10668
+ watchModelValue(v, ov) {
10669
+ this.clear();
10670
+ const or = ov && ov.map ? ov.map(n => n.value).join(',') : '';
10671
+ const r = v && v.map ? v.map(n => n.value).join(',') : '';
10672
+ if (or != r) {
10673
+ this.trigger('change', v);
10674
+ }
10675
+ },
10573
10676
  addVal(v) {
10574
10677
  let mv;
10575
10678
  if (this.x.multiple) {
@@ -10636,7 +10739,7 @@ var script$5 = {
10636
10739
  let mv = $$1.array(this.x.modelValue, true);
10637
10740
  if (mv.length) {
10638
10741
  mv.splice(mv.length - 1, 1);
10639
- this.x.modelValue = mv;
10742
+ this.val(mv);
10640
10743
  }
10641
10744
  }
10642
10745
  }
@@ -10748,7 +10851,7 @@ var script$5 = {
10748
10851
  onClose: () => this.showSuggest = false
10749
10852
  };
10750
10853
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
10751
- r.push(h(script$15, dropProps, {default: () => h(script$17, {height: '*', scrollY: true}, this.$slots)}));
10854
+ r.push(h(script$16, dropProps, {default: () => h(script$18, {height: '*', scrollY: true}, this.$slots)}));
10752
10855
  }
10753
10856
  return [
10754
10857
  this.html_input_hidden(),
@@ -11204,7 +11307,7 @@ var script$4 = {
11204
11307
  onClose: () => this.showSuggest = false
11205
11308
  };
11206
11309
  if (this.x.dropProps) dropProps = mergeProps(dropProps, this.x.dropProps);
11207
- r.push(h(script$15, dropProps, {default: () => h(script$17, {height: '*', scrollY: true}, this.$slots)}));
11310
+ r.push(h(script$16, dropProps, {default: () => h(script$18, {height: '*', scrollY: true}, this.$slots)}));
11208
11311
  }
11209
11312
  return [
11210
11313
  this.html_input_hidden(),
@@ -11627,7 +11730,7 @@ var script = {
11627
11730
  this.x.modelValue = this.x.cancelable && this.x.modelValue == i ? '' : i;
11628
11731
  },
11629
11732
  html_star(i) {
11630
- return h(script$_, {
11733
+ return h(script$$, {
11631
11734
  class: ['w-rate-star-icon', {'z-hv': this.hoverWrap && i <= this.hoverIndex, 'z-on': !this.hoverWrap && i <= this.x.modelValue}],
11632
11735
  src: '.f-i .f-i-star-full',
11633
11736
  onMouseenter: e => this.hoverItem(e, i),
@@ -11671,9 +11774,9 @@ var script = {
11671
11774
  script.__file = "src/widgets/Rate.vue";
11672
11775
 
11673
11776
  const components = [
11674
- script$1c, script$16, script$15, script$13, script$11, script$$, script$X, script$W,
11675
- script$M, script$17, script$18, script$V, script$U, script$T, script$Q, script$R, script$P, script$O, script$N, script$K, script$L, script$G, script$F,
11676
- script$E, script$_, script$J, script$Z, script$Y, script$D, script$C, script$x, script$w, script$v, script$u, script$t, script$s, script$r, script$q, script$p, script$o,
11777
+ script$1d, script$17, script$16, script$14, script$12, script$10, script$Y, script$X,
11778
+ 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,
11779
+ 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,
11677
11780
  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,
11678
11781
  script$b, script$a, script$9, script$8, script$7, script$6, script$5, script$4, script$2, script$1, script
11679
11782
  ];