dfish-widget 1.0.97 → 1.0.99

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
@@ -1845,7 +1845,7 @@ function directive(Vue) {
1845
1845
 
1846
1846
  const bindCache = {};
1847
1847
 
1848
- var script$1o = {
1848
+ var script$1p = {
1849
1849
  props: ['data', 'width', 'height', 'colspan', 'rowspan', 'ownproperty', 'orientUid'],
1850
1850
  data() {
1851
1851
  return {
@@ -2107,9 +2107,9 @@ const bindCache = {};
2107
2107
  }
2108
2108
  };
2109
2109
 
2110
- script$1o.__file = "src/widgets/WidgetAbs.vue";
2110
+ script$1p.__file = "src/widgets/WidgetAbs.vue";
2111
2111
 
2112
- var script$1n = {
2112
+ var script$1o = {
2113
2113
  props: ['src', 'children', 'parentItem'],
2114
2114
  data() {
2115
2115
  return {
@@ -2143,11 +2143,11 @@ var script$1n = {
2143
2143
  }
2144
2144
  };
2145
2145
 
2146
- script$1n.__file = "src/widgets/SrcParent.vue";
2146
+ script$1o.__file = "src/widgets/SrcParent.vue";
2147
2147
 
2148
- var script$1m = {
2148
+ var script$1n = {
2149
2149
  name: 'w-view',
2150
- mixins: [script$1n],
2150
+ mixins: [script$1o],
2151
2151
  provide() {
2152
2152
  return {
2153
2153
  provideView: this
@@ -2270,6 +2270,12 @@ var script$1m = {
2270
2270
  },
2271
2271
  // 表单验证。验证通过返回true /@ range -> validaterange
2272
2272
  async valid(range) {
2273
+ if (this._err_ns) {
2274
+ this._err_ns.forEach(v => {
2275
+ const wg = $$1.vueMap.get(v.wid);
2276
+ wg && wg.warn(false);
2277
+ });
2278
+ }
2273
2279
  let e = await this.getValidError(range);
2274
2280
  if (e) {
2275
2281
  e.forEach(v => $$1.vueMap.get(v.wid).warn());
@@ -2353,9 +2359,9 @@ var script$1m = {
2353
2359
  }
2354
2360
  };
2355
2361
 
2356
- script$1m.__file = "src/widgets/ViewAbs.vue";
2362
+ script$1n.__file = "src/widgets/ViewAbs.vue";
2357
2363
 
2358
- var script$1l = {
2364
+ var script$1m = {
2359
2365
  name: 'w-svg-loading'
2360
2366
  };
2361
2367
 
@@ -2385,10 +2391,10 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
2385
2391
  return (openBlock(), createElementBlock("svg", _hoisted_1$b, _hoisted_6$3))
2386
2392
  }
2387
2393
 
2388
- script$1l.render = render$8;
2389
- script$1l.__file = "src/assets/SVGIcon.vue";
2394
+ script$1m.render = render$8;
2395
+ script$1m.__file = "src/assets/SVGIcon.vue";
2390
2396
 
2391
- var script$1k = {
2397
+ var script$1l = {
2392
2398
  props: ['data'],
2393
2399
  data() {
2394
2400
  return {
@@ -2507,10 +2513,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
2507
2513
  }))
2508
2514
  }
2509
2515
 
2510
- script$1k.render = render$7;
2511
- script$1k.__file = "src/template/TemplatePreviewMedia.vue";
2516
+ script$1l.render = render$7;
2517
+ script$1l.__file = "src/template/TemplatePreviewMedia.vue";
2512
2518
 
2513
- var script$1j = {
2519
+ var script$1k = {
2514
2520
  props: ['data'],
2515
2521
  data() {
2516
2522
  let f = this.data.format || 'yyyy-MM-dd';
@@ -3011,12 +3017,12 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
3011
3017
  }))
3012
3018
  }
3013
3019
 
3014
- script$1j.render = render$6;
3015
- script$1j.__file = "src/template/TemplateDateSheet.vue";
3020
+ script$1k.render = render$6;
3021
+ script$1k.__file = "src/template/TemplateDateSheet.vue";
3016
3022
 
3017
- var script$1i = {
3023
+ var script$1j = {
3018
3024
  name: 'w-docview',
3019
- mixins: [script$1o, script$1m],
3025
+ mixins: [script$1p, script$1n],
3020
3026
  provide() {
3021
3027
  return {
3022
3028
  providePubParent: null,
@@ -3038,15 +3044,15 @@ var script$1i = {
3038
3044
  return null
3039
3045
  },
3040
3046
  previewVideo(src) {
3041
- this.pop(script$1k, {data: {type: 'video', src}});
3047
+ this.pop(script$1l, {data: {type: 'video', src}});
3042
3048
  },
3043
3049
  previewImage(imgs, options) {
3044
- this.pop(script$1k, {data: {type: 'image', imgs, options}});
3050
+ this.pop(script$1l, {data: {type: 'image', imgs, options}});
3045
3051
  },
3046
3052
  //dateOptions: {value, format, minValue, maxValue, success}
3047
3053
  dateSheet(dateOptions, dialogOptions) {
3048
- this.pop(script$1j, {
3049
- template: script$1j,
3054
+ this.pop(script$1k, {
3055
+ template: script$1k,
3050
3056
  width: '100%',
3051
3057
  height: '55%',
3052
3058
  position: 'b',
@@ -3062,20 +3068,20 @@ var script$1i = {
3062
3068
  return [
3063
3069
  this.$slots.default && this.$slots.default(),
3064
3070
  this.html_pops(),
3065
- h(script$1l),
3071
+ h(script$1m),
3066
3072
  ]
3067
3073
  }
3068
3074
  }
3069
3075
  };
3070
3076
 
3071
- script$1i.__file = "src/widgets/DocView.vue";
3077
+ script$1j.__file = "src/widgets/DocView.vue";
3072
3078
 
3073
- var script$1h = {
3074
- mixins: [script$1o],
3079
+ var script$1i = {
3080
+ mixins: [script$1p],
3075
3081
  inject: ['provideView']
3076
3082
  };
3077
3083
 
3078
- script$1h.__file = "src/widgets/WidgetBase.vue";
3084
+ script$1i.__file = "src/widgets/WidgetBase.vue";
3079
3085
 
3080
3086
  const onScroll = function(e) {
3081
3087
  if (this.wScrollPercentX) {
@@ -3116,8 +3122,8 @@ const onScroll = function(e) {
3116
3122
  }, dnEv);
3117
3123
  };
3118
3124
 
3119
- var script$1g = {
3120
- mixins: [script$1h],
3125
+ var script$1h = {
3126
+ mixins: [script$1i],
3121
3127
  props: ['scrollX', 'scrollY', 'scrollView', 'scrollFlex'],
3122
3128
  data() {
3123
3129
  return {
@@ -3403,9 +3409,9 @@ const onScroll = function(e) {
3403
3409
  }
3404
3410
  };
3405
3411
 
3406
- script$1g.__file = "src/widgets/Scroll.vue";
3412
+ script$1h.__file = "src/widgets/Scroll.vue";
3407
3413
 
3408
- var script$1f = {
3414
+ var script$1g = {
3409
3415
  props: ['align', 'valign', 'gap'],
3410
3416
  computed: {
3411
3417
  dir() {
@@ -3420,11 +3426,11 @@ var script$1f = {
3420
3426
  }
3421
3427
  };
3422
3428
 
3423
- script$1f.__file = "src/widgets/AlignParent.vue";
3429
+ script$1g.__file = "src/widgets/AlignParent.vue";
3424
3430
 
3425
- var script$1e = {
3431
+ var script$1f = {
3426
3432
  name: 'w-horizontal',
3427
- mixins: [script$1g, script$1f],
3433
+ mixins: [script$1h, script$1g],
3428
3434
  props: ['br', 'reverse'],
3429
3435
  provide() {
3430
3436
  return {
@@ -3476,11 +3482,11 @@ var script$1e = {
3476
3482
  }
3477
3483
  };
3478
3484
 
3479
- script$1e.__file = "src/widgets/Horizontal.vue";
3485
+ script$1f.__file = "src/widgets/Horizontal.vue";
3480
3486
 
3481
- var script$1d = {
3487
+ var script$1e = {
3482
3488
  name: 'w-vertical',
3483
- mixins: [script$1e],
3489
+ mixins: [script$1f],
3484
3490
  computed: {
3485
3491
  dir() {
3486
3492
  return 'v'
@@ -3488,11 +3494,11 @@ var script$1d = {
3488
3494
  }
3489
3495
  };
3490
3496
 
3491
- script$1d.__file = "src/widgets/Vertical.vue";
3497
+ script$1e.__file = "src/widgets/Vertical.vue";
3492
3498
 
3493
- var script$1c = {
3499
+ var script$1d = {
3494
3500
  name: 'w-view',
3495
- mixins: [script$1d, script$1m],
3501
+ mixins: [script$1e, script$1n],
3496
3502
  inject: ['provideView'],
3497
3503
  methods: {
3498
3504
  html_slots() {
@@ -3509,9 +3515,9 @@ var script$1c = {
3509
3515
  }
3510
3516
  };
3511
3517
 
3512
- script$1c.__file = "src/widgets/View.vue";
3518
+ script$1d.__file = "src/widgets/View.vue";
3513
3519
 
3514
- var script$1b = {
3520
+ var script$1c = {
3515
3521
  __name: 'DialogTarget',
3516
3522
  setup(__props) {
3517
3523
 
@@ -3526,7 +3532,7 @@ return (_ctx, _cache) => {
3526
3532
 
3527
3533
  };
3528
3534
 
3529
- script$1b.__file = "src/widgets/DialogTarget.vue";
3535
+ script$1c.__file = "src/widgets/DialogTarget.vue";
3530
3536
 
3531
3537
  const O = {},
3532
3538
  T = true,
@@ -3543,9 +3549,9 @@ const O = {},
3543
3549
  return typeof a === 'string' && a.split(',').map(v => positionHooks[v] || v).join()
3544
3550
  };
3545
3551
 
3546
- var script$1a = {
3552
+ var script$1b = {
3547
3553
  name: 'w-dialog',
3548
- mixins: [script$1c],
3554
+ mixins: [script$1d],
3549
3555
  props: ['title', 'autoHide', 'context', 'prong', 'independent', 'timeout', 'cover', 'coverProps',
3550
3556
  'position', 'snap', 'indent', 'offsetRange', 'local', 'fullScreen', 'hoverShowDrop', 'visible',
3551
3557
  ...boundary
@@ -3813,7 +3819,7 @@ const O = {},
3813
3819
  }
3814
3820
  let s = [cover, this.html_self(true)];
3815
3821
  let r = to ? h(Teleport, {to}, s) : s;
3816
- return this.slotTarget ? [r, h(script$1b, null, {default: () => [this.slotTarget()]})] : r
3822
+ return this.slotTarget ? [r, h(script$1c, null, {default: () => [this.slotTarget()]})] : r
3817
3823
  }
3818
3824
  },
3819
3825
  computed: {
@@ -3930,12 +3936,12 @@ const O = {},
3930
3936
  }
3931
3937
  };
3932
3938
 
3933
- script$1a.__file = "src/widgets/Dialog.vue";
3939
+ script$1b.__file = "src/widgets/Dialog.vue";
3934
3940
 
3935
3941
  const _hoisted_1$9 = /*#__PURE__*/createElementVNode("i", { class: "w-alert-close-icon f-i f-i-close" }, null, -1 /* HOISTED */);
3936
3942
 
3937
3943
 
3938
- var script$19 = {
3944
+ var script$1a = {
3939
3945
  __name: 'TemplateAlert',
3940
3946
  props: ['text', 'escape', 'title', 'icon', 'showButton'],
3941
3947
  emits: ['save', 'close'],
@@ -4068,11 +4074,11 @@ return (_ctx, _cache) => {
4068
4074
 
4069
4075
  };
4070
4076
 
4071
- script$19.__file = "src/template/TemplateAlert.vue";
4077
+ script$1a.__file = "src/template/TemplateAlert.vue";
4072
4078
 
4073
- var script$18 = {
4079
+ var script$19 = {
4074
4080
  name: 'w-alert',
4075
- mixins: [script$1a],
4081
+ mixins: [script$1b],
4076
4082
  props: ['text', 'title', 'escape', 'yes', 'no', 'showButton'],
4077
4083
  methods: {
4078
4084
  x_default() {
@@ -4102,7 +4108,7 @@ var script$18 = {
4102
4108
  },
4103
4109
  html_slots_default() {
4104
4110
  return h(
4105
- script$19,
4111
+ script$1a,
4106
4112
  {
4107
4113
  text: this.x.text,
4108
4114
  title: this.x.title,
@@ -4118,12 +4124,12 @@ var script$18 = {
4118
4124
  }
4119
4125
  };
4120
4126
 
4121
- script$18.__file = "src/widgets/Alert.vue";
4127
+ script$19.__file = "src/widgets/Alert.vue";
4122
4128
 
4123
4129
  const _hoisted_1$8 = /*#__PURE__*/createElementVNode("i", { class: "w-alert-close-icon f-i f-i-close" }, null, -1 /* HOISTED */);
4124
4130
 
4125
4131
 
4126
- var script$17 = {
4132
+ var script$18 = {
4127
4133
  __name: 'TemplateConfirm',
4128
4134
  props: ['text', 'escape', 'title', 'icon', 'showButton'],
4129
4135
  emits: ['save', 'close'],
@@ -4263,11 +4269,11 @@ return (_ctx, _cache) => {
4263
4269
 
4264
4270
  };
4265
4271
 
4266
- script$17.__file = "src/template/TemplateConfirm.vue";
4272
+ script$18.__file = "src/template/TemplateConfirm.vue";
4267
4273
 
4268
- var script$16 = {
4274
+ var script$17 = {
4269
4275
  name: 'w-confirm',
4270
- mixins: [script$1a],
4276
+ mixins: [script$1b],
4271
4277
  props: ['text', 'title', 'escape', 'yes', 'no', 'showButton'],
4272
4278
  methods: {
4273
4279
  x_default() {
@@ -4297,7 +4303,7 @@ var script$16 = {
4297
4303
  },
4298
4304
  html_slots_default() {
4299
4305
  return h(
4300
- script$17,
4306
+ script$18,
4301
4307
  {
4302
4308
  text: this.x.text,
4303
4309
  title: this.x.title,
@@ -4313,7 +4319,7 @@ var script$16 = {
4313
4319
  }
4314
4320
  };
4315
4321
 
4316
- script$16.__file = "src/widgets/Confirm.vue";
4322
+ script$17.__file = "src/widgets/Confirm.vue";
4317
4323
 
4318
4324
  const _hoisted_1$7 = { class: "w-tip-body" };
4319
4325
  const _hoisted_2$7 = {
@@ -4323,7 +4329,7 @@ const _hoisted_2$7 = {
4323
4329
  const _hoisted_3$5 = ["innerHTML"];
4324
4330
 
4325
4331
 
4326
- var script$15 = {
4332
+ var script$16 = {
4327
4333
  __name: 'TemplateTip',
4328
4334
  props: ['text', 'escape'],
4329
4335
  setup(__props) {
@@ -4347,16 +4353,16 @@ return (_ctx, _cache) => {
4347
4353
 
4348
4354
  };
4349
4355
 
4350
- script$15.__file = "src/template/TemplateTip.vue";
4356
+ script$16.__file = "src/template/TemplateTip.vue";
4351
4357
 
4352
4358
  let inst$1 = null;
4353
4359
  let tipCache = {
4354
4360
  time: new Date().getTime()
4355
4361
  };
4356
4362
 
4357
- var script$14 = {
4363
+ var script$15 = {
4358
4364
  name: 'w-tip',
4359
- mixins: [script$1a],
4365
+ mixins: [script$1b],
4360
4366
  props: ['face', 'text', 'escape'],
4361
4367
  provide() {
4362
4368
  return {
@@ -4373,7 +4379,7 @@ let inst$1 = null;
4373
4379
  }
4374
4380
  },
4375
4381
  html_slots_default() {
4376
- return h(script$15, {text: this.x.text, escape: this.x.escape}, this.$slots)
4382
+ return h(script$16, {text: this.x.text, escape: this.x.escape}, this.$slots)
4377
4383
  }
4378
4384
  },
4379
4385
  computed: {
@@ -4398,12 +4404,12 @@ let inst$1 = null;
4398
4404
  }
4399
4405
  };
4400
4406
 
4401
- script$14.__file = "src/widgets/Tip.vue";
4407
+ script$15.__file = "src/widgets/Tip.vue";
4402
4408
 
4403
- var script$13 = {
4409
+ var script$14 = {
4404
4410
  name: 'w-img',
4405
4411
  pubParentName: 'w-album',
4406
- mixins: [script$1h],
4412
+ mixins: [script$1i],
4407
4413
  inject: ['providePubParent'],
4408
4414
  props: ['src', 'text', 'square', 'imgWidth', 'imgHeight', 'dataUrl', 'vertical', 'disabled'],
4409
4415
  data() {
@@ -4449,7 +4455,7 @@ var script$13 = {
4449
4455
  class: 'w-img-cover f-abs-full'
4450
4456
  }, this.$slots.cover())
4451
4457
  ]),
4452
- cont && h(script$1d, {
4458
+ cont && h(script$1e, {
4453
4459
  class: 'w-img-description'
4454
4460
  }, cont)
4455
4461
  ]
@@ -4483,11 +4489,11 @@ var script$13 = {
4483
4489
  }
4484
4490
  };
4485
4491
 
4486
- script$13.__file = "src/widgets/Img.vue";
4492
+ script$14.__file = "src/widgets/Img.vue";
4487
4493
 
4488
- var script$12 = {
4494
+ var script$13 = {
4489
4495
  pubParentName: 'w-buttonbar',
4490
- mixins: [script$1h],
4496
+ mixins: [script$1i],
4491
4497
  props: ['text', 'icon', 'focusIcon', 'face', 'target', 'closable', 'dropToggle', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', 'dropIcon', 'showDropIcon'],
4492
4498
  inject: ['providePubParent', 'provideMenu_w'],
4493
4499
  emits: ['click:close', 'dropClose'],
@@ -4583,7 +4589,7 @@ var script$12 = {
4583
4589
  if (this.x.loading) {
4584
4590
  r.push(h('div', {
4585
4591
  class: 'w-button-loading f-abs-full f-flex-center'
4586
- }, h(script$13, {
4592
+ }, h(script$14, {
4587
4593
  src: '#f-svg-loading'
4588
4594
  })));
4589
4595
  }
@@ -4598,7 +4604,7 @@ var script$12 = {
4598
4604
  }, h('span', {class: 'w-button-text-line f-line-1', title}, t)));
4599
4605
  }
4600
4606
  if (this.isMore && this.x.showDropIcon) {
4601
- r.push(h(script$13, {
4607
+ r.push(h(script$14, {
4602
4608
  class: 'w-button-more f-flex-center f-height',
4603
4609
  src: this.x.dropIcon || '.f-i .f-i-caret-down'
4604
4610
  }));
@@ -4616,7 +4622,7 @@ var script$12 = {
4616
4622
  class: 'w-button-main f-oh f-height',
4617
4623
  ...(this.isCombo && !this.isDisabled && this.mouses),
4618
4624
  }, r),
4619
- this.isCombo && h(script$13, {
4625
+ this.isCombo && h(script$14, {
4620
4626
  class: 'w-button-drop f-flex-center f-height',
4621
4627
  src: this.x.dropIcon || '.f-i .f-i-caret-down',
4622
4628
  ...(!this.isDisabled && this.mouses),
@@ -4667,11 +4673,11 @@ var script$12 = {
4667
4673
  }
4668
4674
  };
4669
4675
 
4670
- script$12.__file = "src/widgets/ButtonAbs.vue";
4676
+ script$13.__file = "src/widgets/ButtonAbs.vue";
4671
4677
 
4672
- var script$11 = {
4678
+ var script$12 = {
4673
4679
  name: 'w-menubutton',
4674
- mixins: [script$12],
4680
+ mixins: [script$13],
4675
4681
  methods: {
4676
4682
  ajax(...args) {
4677
4683
  return this.parentMenu.rootCommander.ajax(...args)
@@ -4734,7 +4740,7 @@ var script$11 = {
4734
4740
  onclick: this.clickClose
4735
4741
  })));
4736
4742
  }
4737
- r.push(h(script$13, {
4743
+ r.push(h(script$14, {
4738
4744
  class: 'w-menubutton-drop f-flex-center f-height',
4739
4745
  src: this.isMore ? (this.x.dropIcon || '.f-i .f-i-caret-right') : ''
4740
4746
  }));
@@ -4786,11 +4792,11 @@ var script$11 = {
4786
4792
  },
4787
4793
  };
4788
4794
 
4789
- script$11.__file = "src/widgets/MenuButton.vue";
4795
+ script$12.__file = "src/widgets/MenuButton.vue";
4790
4796
 
4791
- var script$10 = {
4797
+ var script$11 = {
4792
4798
  name: 'w-button',
4793
- mixins: [script$12],
4799
+ mixins: [script$13],
4794
4800
  props: ['autoMenuButton'],
4795
4801
  methods: {
4796
4802
  x_default() {
@@ -4802,14 +4808,14 @@ var script$10 = {
4802
4808
  },
4803
4809
  render() {
4804
4810
  if (this.provideMenu_w && this.x.autoMenuButton) {
4805
- return h(script$11, this.$props, this.$slots)
4811
+ return h(script$12, this.$props, this.$slots)
4806
4812
  } else {
4807
4813
  return this.html()
4808
4814
  }
4809
4815
  }
4810
4816
  };
4811
4817
 
4812
- script$10.__file = "src/widgets/Button.vue";
4818
+ script$11.__file = "src/widgets/Button.vue";
4813
4819
 
4814
4820
  let inst = null;
4815
4821
 
@@ -4824,9 +4830,9 @@ let inst = null;
4824
4830
  return inst && (ctx.hasBubble(inst.context) || inst.hasBubble(ctx))
4825
4831
  }
4826
4832
 
4827
- var script$$ = {
4833
+ var script$10 = {
4828
4834
  name: 'w-menu',
4829
- mixins: [script$1a],
4835
+ mixins: [script$1b],
4830
4836
  provide() {
4831
4837
  return {
4832
4838
  provideMenu_w: this
@@ -4902,7 +4908,7 @@ let inst = null;
4902
4908
  }, h('i', {
4903
4909
  class: 'f-i f-i-caret-up'
4904
4910
  })),
4905
- h(script$1d, {
4911
+ h(script$1e, {
4906
4912
  class: 'w-menu-bbr',
4907
4913
  height: '*',
4908
4914
  ref: 'bbr',
@@ -4957,11 +4963,11 @@ let inst = null;
4957
4963
  }
4958
4964
  };
4959
4965
 
4960
- script$$.__file = "src/widgets/Menu.vue";
4966
+ script$10.__file = "src/widgets/Menu.vue";
4961
4967
 
4962
- var script$_ = {
4968
+ var script$$ = {
4963
4969
  name: 'w-loading',
4964
- mixins: [script$1a],
4970
+ mixins: [script$1b],
4965
4971
  props: ['text', 'icon'],
4966
4972
  methods: {
4967
4973
  x_default() {
@@ -4970,7 +4976,7 @@ var script$_ = {
4970
4976
  }
4971
4977
  },
4972
4978
  html_slots() {
4973
- return h(script$13, {
4979
+ return h(script$14, {
4974
4980
  src: this.x.icon !== undefined ? this.x.icon : '#f-svg-loading',
4975
4981
  text: this.x.text !== undefined ? this.x.text : $$1.loc.loading
4976
4982
  })
@@ -4983,11 +4989,11 @@ var script$_ = {
4983
4989
  }
4984
4990
  };
4985
4991
 
4986
- script$_.__file = "src/widgets/Loading.vue";
4992
+ script$$.__file = "src/widgets/Loading.vue";
4987
4993
 
4988
- var script$Z = {
4994
+ var script$_ = {
4989
4995
  name: 'w-table',
4990
- mixins: [script$1h],
4996
+ mixins: [script$1i],
4991
4997
  props: ['face', 'scroll-x', 'scroll-y'],
4992
4998
  provide() {
4993
4999
  return {
@@ -5064,22 +5070,22 @@ var script$Z = {
5064
5070
  }
5065
5071
  };
5066
5072
 
5067
- script$Z.__file = "src/widgets/Table.vue";
5073
+ script$_.__file = "src/widgets/Table.vue";
5068
5074
 
5069
- var script$Y = {
5075
+ var script$Z = {
5070
5076
  name: 'w-columns'
5071
5077
  };
5072
5078
 
5073
- script$Y.__file = "src/widgets/TableColumns.vue";
5079
+ script$Z.__file = "src/widgets/TableColumns.vue";
5074
5080
 
5075
- var script$X = {
5081
+ var script$Y = {
5076
5082
  name: 'w-column',
5077
5083
  props: ['width', 'minWidth'],
5078
5084
  };
5079
5085
 
5080
- script$X.__file = "src/widgets/TableColumn.vue";
5086
+ script$Y.__file = "src/widgets/TableColumn.vue";
5081
5087
 
5082
- var script$W = {
5088
+ var script$X = {
5083
5089
  props: ['pub', 'current'],
5084
5090
  provide() {
5085
5091
  return {
@@ -5110,21 +5116,21 @@ var script$W = {
5110
5116
  }
5111
5117
  };
5112
5118
 
5113
- script$W.__file = "src/widgets/PubParent.vue";
5119
+ script$X.__file = "src/widgets/PubParent.vue";
5114
5120
 
5115
5121
  function render$5(_ctx, _cache) {
5116
5122
  return renderSlot(_ctx.$slots, "default")
5117
5123
  }
5118
5124
 
5119
- const script$V = {};
5125
+ const script$W = {};
5120
5126
 
5121
5127
 
5122
- script$V.render = render$5;
5123
- script$V.__file = "src/widgets/SlotDefault.vue";
5128
+ script$W.render = render$5;
5129
+ script$W.__file = "src/widgets/SlotDefault.vue";
5124
5130
 
5125
- var script$U = {
5131
+ var script$V = {
5126
5132
  name: 'w-thead',
5127
- mixins: [script$1h, script$W],
5133
+ mixins: [script$1i, script$X],
5128
5134
  props: ['br', 'sort'],
5129
5135
  inject: ['_provideTable'],
5130
5136
  provide() {
@@ -5161,7 +5167,7 @@ var script$U = {
5161
5167
  return t
5162
5168
  });
5163
5169
  if (key) {
5164
- return h(script$V, {key}, {default: () => row})
5170
+ return h(script$W, {key}, {default: () => row})
5165
5171
  } else {
5166
5172
  return row
5167
5173
  }
@@ -5217,11 +5223,11 @@ var script$U = {
5217
5223
  }
5218
5224
  };
5219
5225
 
5220
- script$U.__file = "src/widgets/TableTHead.vue";
5226
+ script$V.__file = "src/widgets/TableTHead.vue";
5221
5227
 
5222
- var script$T = {
5228
+ var script$U = {
5223
5229
  name: 'w-tbody',
5224
- mixins: [script$U, script$1g],
5230
+ mixins: [script$V, script$1h],
5225
5231
  inject: ['_provideTable'],
5226
5232
  props: ['children'],
5227
5233
  provide() {
@@ -5289,12 +5295,12 @@ var script$T = {
5289
5295
  }
5290
5296
  };
5291
5297
 
5292
- script$T.__file = "src/widgets/TableTBody.vue";
5298
+ script$U.__file = "src/widgets/TableTBody.vue";
5293
5299
 
5294
- var script$S = {
5300
+ var script$T = {
5295
5301
  name: 'w-tr',
5296
5302
  pubParentName: 'w-tbody,w-thead',
5297
- mixins: [script$1h, script$1n],
5303
+ mixins: [script$1i, script$1o],
5298
5304
  props: ['rowIndex', 'expanded', 'children'],
5299
5305
  inject: ['_provideTable', 'providePubParent', 'provideInBody', '_provideTBody', 'provideLevel', 'provideParentTR'],
5300
5306
  provide() {
@@ -5378,7 +5384,7 @@ var script$S = {
5378
5384
  }
5379
5385
  }
5380
5386
  if (key) {
5381
- return h(script$V, {key}, {default: () => row})
5387
+ return h(script$W, {key}, {default: () => row})
5382
5388
  } else {
5383
5389
  return row
5384
5390
  }
@@ -5422,9 +5428,9 @@ var script$S = {
5422
5428
 
5423
5429
  };
5424
5430
 
5425
- script$S.__file = "src/widgets/TableTR.vue";
5431
+ script$T.__file = "src/widgets/TableTR.vue";
5426
5432
 
5427
- var script$R = {
5433
+ var script$S = {
5428
5434
  name: 'w-td',
5429
5435
  props: ['colspan', 'rowspan', 'align', 'valign', 'data'],
5430
5436
  inject: ['_provideTable', 'provideInBody'],
@@ -5461,11 +5467,11 @@ var script$R = {
5461
5467
  }
5462
5468
  };
5463
5469
 
5464
- script$R.__file = "src/widgets/TableTD.vue";
5470
+ script$S.__file = "src/widgets/TableTD.vue";
5465
5471
 
5466
- var script$Q = {
5472
+ var script$R = {
5467
5473
  name: 'w-th',
5468
- mixins: [script$R, script$1h],
5474
+ mixins: [script$S, script$1i],
5469
5475
  props: ['sortable', 'sortOrders', 'sortOrderDefault'],
5470
5476
  inject: ['_provideThead'],
5471
5477
  emits: ['click:sort'],
@@ -5500,7 +5506,7 @@ var script$Q = {
5500
5506
  this.$emit('click:sort', e, o);
5501
5507
  },
5502
5508
  html_slots() {
5503
- return h(script$1e, {class: 'w-th-wrap', valign: 'middle', align: this.align || this.col.align}, {default: () => [
5509
+ return h(script$1f, {class: 'w-th-wrap', valign: 'middle', align: this.align || this.col.align}, {default: () => [
5504
5510
  h('div', {class: 'w-th-title'}, this.$slots),
5505
5511
  this.x.sortable ? h('div', {class: 'w-th-sort f-flex-column f-flex-center f-oh'}, [
5506
5512
  h('i', {class: 'f-i f-i-caret-up f-oh w-th-sort-up', onClick: e => this.clickSort(e, 'asc')}),
@@ -5525,10 +5531,10 @@ var script$Q = {
5525
5531
  }
5526
5532
  };
5527
5533
 
5528
- script$Q.__file = "src/widgets/TableTH.vue";
5534
+ script$R.__file = "src/widgets/TableTH.vue";
5529
5535
 
5530
- var script$P = {
5531
- mixins: [script$1d],
5536
+ var script$Q = {
5537
+ mixins: [script$1e],
5532
5538
  emits: ['scroll'],
5533
5539
  methods: {
5534
5540
  onScroll(e) {
@@ -5537,7 +5543,7 @@ var script$P = {
5537
5543
  }
5538
5544
  };
5539
5545
 
5540
- script$P.__file = "src/widgets/TreeV2Wrap.vue";
5546
+ script$Q.__file = "src/widgets/TreeV2Wrap.vue";
5541
5547
 
5542
5548
  const _hoisted_1$6 = { class: "'w-table-v2-th-text f-line-1" };
5543
5549
  const _hoisted_2$6 = { class: "w-tree-loading w-table-v2-loading" };
@@ -5551,7 +5557,7 @@ const _hoisted_6$2 = { class: "'w-table-v2-td-text f-line-1" };
5551
5557
  name: 'w-table-v2'
5552
5558
  };
5553
5559
 
5554
- var script$O = /*#__PURE__*/Object.assign(__default__$1, {
5560
+ var script$P = /*#__PURE__*/Object.assign(__default__$1, {
5555
5561
  props: {
5556
5562
  alias: {
5557
5563
  type: Object,
@@ -5888,7 +5894,7 @@ return (_ctx, _cache) => {
5888
5894
  ]),
5889
5895
  _: 1 /* STABLE */
5890
5896
  }, 8 /* PROPS */, ["style"]),
5891
- createVNode(script$P, {
5897
+ createVNode(script$Q, {
5892
5898
  ref_key: "wrap",
5893
5899
  ref: wrap,
5894
5900
  height: "*",
@@ -5979,11 +5985,11 @@ return (_ctx, _cache) => {
5979
5985
 
5980
5986
  });
5981
5987
 
5982
- script$O.__file = "src/widgets/TableV2.vue";
5988
+ script$P.__file = "src/widgets/TableV2.vue";
5983
5989
 
5984
- var script$N = {
5990
+ var script$O = {
5985
5991
  name: 'w-grid',
5986
- mixins: [script$1g],
5992
+ mixins: [script$1h],
5987
5993
  props: ['columns', 'rows', 'gap', 'defaultColspan', 'face', 'labelWidth'],
5988
5994
  methods: {
5989
5995
  x_default() {
@@ -6025,13 +6031,13 @@ var script$N = {
6025
6031
  }
6026
6032
  };
6027
6033
 
6028
- script$N.__file = "src/widgets/Grid.vue";
6034
+ script$O.__file = "src/widgets/Grid.vue";
6029
6035
 
6030
- var script$M = {
6036
+ var script$N = {
6031
6037
  name: 'w-swiper-item',
6032
6038
  pubParentName: 'w-swiper',
6033
6039
  inject: ['providePubParent'],
6034
- mixins: [script$1h],
6040
+ mixins: [script$1i],
6035
6041
  props: ['lazy'],
6036
6042
  data() {
6037
6043
  return {
@@ -6064,11 +6070,11 @@ var script$M = {
6064
6070
  }
6065
6071
  };
6066
6072
 
6067
- script$M.__file = "src/widgets/SwiperItem.vue";
6073
+ script$N.__file = "src/widgets/SwiperItem.vue";
6068
6074
 
6069
- var script$L = {
6075
+ var script$M = {
6070
6076
  name: 'w-swiper',
6071
- mixins: [script$1h, script$W],
6077
+ mixins: [script$1i, script$X],
6072
6078
  props: ['arrow', 'indicatorDots', 'duration'],
6073
6079
  data() {
6074
6080
  return {
@@ -6159,11 +6165,11 @@ var script$L = {
6159
6165
  }
6160
6166
  };
6161
6167
 
6162
- script$L.__file = "src/widgets/Swiper.vue";
6168
+ script$M.__file = "src/widgets/Swiper.vue";
6163
6169
 
6164
- var script$K = {
6170
+ var script$L = {
6165
6171
  name: 'w-buttonbar',
6166
- mixins: [script$1e, script$W],
6172
+ mixins: [script$1f, script$X],
6167
6173
  props: ['vertical'],
6168
6174
  emits: ['click:item'],
6169
6175
  methods: {
@@ -6195,11 +6201,11 @@ var script$K = {
6195
6201
  }
6196
6202
  };
6197
6203
 
6198
- script$K.__file = "src/widgets/ButtonBar.vue";
6204
+ script$L.__file = "src/widgets/ButtonBar.vue";
6199
6205
 
6200
- var script$J = {
6206
+ var script$K = {
6201
6207
  name: 'w-tabbar',
6202
- mixins: [script$K],
6208
+ mixins: [script$L],
6203
6209
  props: ['vertical', 'arrow', 'quickCloseButton', 'flexSize', 'buttons'],
6204
6210
  emits: ['click:item', 'click:quickCloseButton'],
6205
6211
  data() {
@@ -6276,7 +6282,7 @@ var script$J = {
6276
6282
  },
6277
6283
  html_slots() {
6278
6284
  let group = h(TransitionGroup, {name: 'w-tabbar', onBeforeEnter: this.onBeforeEnter, onAfterEnter: this.onAfterEnter, onBeforeLeave: this.onBeforeLeave, onAfterLeave: this.onAfterLeave}, {default: () => this.buttons});
6279
- let gut = [h(this.x.vertical ? script$1d : script$1e, {ref: 'gut', width: '*', class: 'w-tabbar-gut', gap: this.x.gap, align: this.x.align, valign: this.x.valign}, {default: () => group})];
6285
+ let gut = [h(this.x.vertical ? script$1e : script$1f, {ref: 'gut', width: '*', class: 'w-tabbar-gut', gap: this.x.gap, align: this.x.align, valign: this.x.valign}, {default: () => group})];
6280
6286
  if (this.x.arrow) {
6281
6287
  gut.unshift(h('div', {class: 'w-tabbar-arrow-start', onClick: () => this.clickArrow(-1)}, h('i', {class: 'f-i f-i-caret-left'})));
6282
6288
  gut.push(h('div', {class: 'w-tabbar-arrow-end', onClick: () => this.clickArrow(1)}, h('i', {class: 'f-i f-i-caret-right'})));
@@ -6284,7 +6290,7 @@ var script$J = {
6284
6290
  if (this.x.quickCloseButton) {
6285
6291
  let closeAllDisabled = !this.buttons.find(c => c.props.closable);
6286
6292
  if (this.buttons.length) {
6287
- gut.push(h(script$10, {
6293
+ gut.push(h(script$11, {
6288
6294
  ref: 'quickCloseButton',
6289
6295
  data: {isQuickCloseButton: true},
6290
6296
  showDropIcon: false,
@@ -6293,7 +6299,7 @@ var script$J = {
6293
6299
  onDropClose: this.onMouseleave
6294
6300
  }, {
6295
6301
  default: () => [
6296
- h(script$10, {text: '关闭全部标签', onClick: this.closeAll, disabled: closeAllDisabled})
6302
+ h(script$11, {text: '关闭全部标签', onClick: this.closeAll, disabled: closeAllDisabled})
6297
6303
  ]
6298
6304
  }));
6299
6305
  }
@@ -6398,12 +6404,12 @@ var script$J = {
6398
6404
  }
6399
6405
  };
6400
6406
 
6401
- script$J.__file = "src/widgets/TabBar.vue";
6407
+ script$K.__file = "src/widgets/TabBar.vue";
6402
6408
 
6403
- var script$I = {
6409
+ var script$J = {
6404
6410
  name: 'w-tabbutton',
6405
6411
  pubParentName: 'w-tabbar',
6406
- mixins: [script$10],
6412
+ mixins: [script$11],
6407
6413
  methods: {
6408
6414
  vis() {
6409
6415
  let add = [20, 20];
@@ -6423,11 +6429,11 @@ var script$I = {
6423
6429
  }
6424
6430
  };
6425
6431
 
6426
- script$I.__file = "src/widgets/TabButton.vue";
6432
+ script$J.__file = "src/widgets/TabButton.vue";
6427
6433
 
6428
- var script$H = {
6434
+ var script$I = {
6429
6435
  name: 'w-tabs',
6430
- mixins: [script$1h],
6436
+ mixins: [script$1i],
6431
6437
  props: ['current', 'position', 'gap', 'face', 'quickCloseButton', 'flexSize'],
6432
6438
  emits: ['click:quickCloseButton'],
6433
6439
  methods: {
@@ -6453,11 +6459,11 @@ var script$H = {
6453
6459
  if (!v.props || v.props.key == null) {
6454
6460
  $$1.lodash.set(v, 'props.key', i);
6455
6461
  }
6456
- buttons.push(h(script$I, v.props));
6457
- pages.push(h(script$M, {lazy: v.props.lazy == null ? true : v.props.lazy, key: v.props.key}, v.children));
6462
+ buttons.push(h(script$J, v.props));
6463
+ pages.push(h(script$N, {lazy: v.props.lazy == null ? true : v.props.lazy, key: v.props.key}, v.children));
6458
6464
  });
6459
6465
  return [
6460
- h(script$J, {
6466
+ h(script$K, {
6461
6467
  ref: 'tabBar',
6462
6468
  class: 'w-tabs-buttonbar',
6463
6469
  current: this.x.current,
@@ -6470,7 +6476,7 @@ var script$H = {
6470
6476
  'onClick:quickCloseButton': this.clickQuickCloseButton,
6471
6477
  buttons,
6472
6478
  }),
6473
- h(script$L, {class: 'w-tabs-swiper f-flex-1 f-oh', current: this.x.current}, {default: () => pages}),
6479
+ h(script$M, {class: 'w-tabs-swiper f-flex-1 f-oh', current: this.x.current}, {default: () => pages}),
6474
6480
  ]
6475
6481
  }
6476
6482
  },
@@ -6485,17 +6491,17 @@ var script$H = {
6485
6491
  }
6486
6492
  };
6487
6493
 
6488
- script$H.__file = "src/widgets/Tabs.vue";
6494
+ script$I.__file = "src/widgets/Tabs.vue";
6489
6495
 
6490
- var script$G = {
6496
+ var script$H = {
6491
6497
  name: 'w-tab',
6492
6498
  };
6493
6499
 
6494
- script$G.__file = "src/widgets/Tab.vue";
6500
+ script$H.__file = "src/widgets/Tab.vue";
6495
6501
 
6496
- var script$F = {
6502
+ var script$G = {
6497
6503
  name: 'w-album',
6498
- mixins: [script$1e, script$W],
6504
+ mixins: [script$1f, script$X],
6499
6505
  methods: {
6500
6506
  x_default() {
6501
6507
  return {
@@ -6512,11 +6518,11 @@ var script$F = {
6512
6518
  }
6513
6519
  };
6514
6520
 
6515
- script$F.__file = "src/widgets/Album.vue";
6521
+ script$G.__file = "src/widgets/Album.vue";
6516
6522
 
6517
- var script$E = {
6523
+ var script$F = {
6518
6524
  name: 'w-html',
6519
- mixins: [script$1h, script$1f],
6525
+ mixins: [script$1i, script$1g],
6520
6526
  props: ['line'],
6521
6527
  computed: {
6522
6528
  html_props() {
@@ -6535,11 +6541,11 @@ var script$E = {
6535
6541
  }
6536
6542
  };
6537
6543
 
6538
- script$E.__file = "src/widgets/Html.vue";
6544
+ script$F.__file = "src/widgets/Html.vue";
6539
6545
 
6540
- var script$D = {
6546
+ var script$E = {
6541
6547
  name: 'w-tree',
6542
- mixins: [script$1g, script$W, script$1n],
6548
+ mixins: [script$1h, script$X, script$1o],
6543
6549
  emits: ['click:item'],
6544
6550
  provide() {
6545
6551
  return {
@@ -6571,7 +6577,7 @@ var script$D = {
6571
6577
  const sl = this.slot('loading');
6572
6578
  r = sl && sl.length ? sl : h('div', {
6573
6579
  class: 'w-tree-loading'
6574
- }, h(script$13, {src: '#f-svg-loading-1', width: 28, height: 28}));
6580
+ }, h(script$14, {src: '#f-svg-loading-1', width: 28, height: 28}));
6575
6581
  } else {
6576
6582
  let chd = this.x.children;
6577
6583
  if (this.$slots.default) {
@@ -6585,7 +6591,7 @@ var script$D = {
6585
6591
  }
6586
6592
  }
6587
6593
  if (key) {
6588
- return h(script$V, {key}, {default: () => leaf})
6594
+ return h(script$W, {key}, {default: () => leaf})
6589
6595
  } else {
6590
6596
  return leaf
6591
6597
  }
@@ -6613,7 +6619,7 @@ var script$D = {
6613
6619
  }
6614
6620
  };
6615
6621
 
6616
- script$D.__file = "src/widgets/Tree.vue";
6622
+ script$E.__file = "src/widgets/Tree.vue";
6617
6623
 
6618
6624
  const _hoisted_1$5 = { class: "w-tree-loading w-tree-v2-loading" };
6619
6625
  const _hoisted_2$5 = ["onClick"];
@@ -6626,7 +6632,7 @@ const _hoisted_5$2 = ["title"];
6626
6632
  name: 'w-tree-v2'
6627
6633
  };
6628
6634
 
6629
- var script$C = /*#__PURE__*/Object.assign(__default__, {
6635
+ var script$D = /*#__PURE__*/Object.assign(__default__, {
6630
6636
  props: {
6631
6637
  alias: {
6632
6638
  type: Object,
@@ -6922,7 +6928,7 @@ const props = __props;
6922
6928
  return (_ctx, _cache) => {
6923
6929
  const _component_w_img = resolveComponent("w-img");
6924
6930
 
6925
- return (openBlock(), createBlock(script$P, {
6931
+ return (openBlock(), createBlock(script$Q, {
6926
6932
  ref_key: "root",
6927
6933
  ref: root,
6928
6934
  class: "w-tree w-tree-v2",
@@ -6989,11 +6995,11 @@ return (_ctx, _cache) => {
6989
6995
 
6990
6996
  });
6991
6997
 
6992
- script$C.__file = "src/widgets/TreeV2.vue";
6998
+ script$D.__file = "src/widgets/TreeV2.vue";
6993
6999
 
6994
- var script$B = {
7000
+ var script$C = {
6995
7001
  name: 'w-label',
6996
- mixins: [script$1h, script$1f],
7002
+ mixins: [script$1i, script$1g],
6997
7003
  props: ['text', 'suffix', 'vertical'],
6998
7004
  methods: {
6999
7005
  html_slots() {
@@ -7015,10 +7021,10 @@ var script$B = {
7015
7021
  }
7016
7022
  };
7017
7023
 
7018
- script$B.__file = "src/widgets/Label.vue";
7024
+ script$C.__file = "src/widgets/Label.vue";
7019
7025
 
7020
- var script$A = {
7021
- mixins: [script$1h, script$1f],
7026
+ var script$B = {
7027
+ mixins: [script$1i, script$1g],
7022
7028
  props: ['name', 'value', 'modelValue', 'placeholder', 'label', 'readonly', 'readonlyValidate', 'disabled', 'required',
7023
7029
  'validateDefault', 'validateHandler', 'inputWidth', 'inputHeight' ],
7024
7030
  emits: ['update:modelValue', 'change', 'blur', 'focus'],
@@ -7263,7 +7269,7 @@ var script$A = {
7263
7269
  if (this.x.label && typeof this.x.label === 'object') {
7264
7270
  const label = $$1.cloneDeep(this.x.label);
7265
7271
  if (label.width == null) delete label.width;
7266
- if (label.width != 0) return h(script$B, label)
7272
+ if (label.width != 0) return h(script$C, label)
7267
7273
  }
7268
7274
  },
7269
7275
  html_input() {
@@ -7468,14 +7474,14 @@ var script$A = {
7468
7474
  }
7469
7475
  };
7470
7476
 
7471
- script$A.__file = "src/widgets/FormBase.vue";
7477
+ script$B.__file = "src/widgets/FormBase.vue";
7472
7478
 
7473
7479
  const {leafSymbol: leafSymbol$1} = $$1.symbol;
7474
7480
 
7475
- var script$z = {
7481
+ var script$A = {
7476
7482
  name: 'w-checkbox',
7477
7483
  pubParentName: 'w-checkboxgroup',
7478
- mixins: [script$A],
7484
+ mixins: [script$B],
7479
7485
  props: ['text', 'checked', 'partialSubmit', 'minSize', 'maxSize'],
7480
7486
  inject: ['providePubParent', 'provideBoxParent'],
7481
7487
  emits: ['change', 'update:checked', 'click'],
@@ -7613,7 +7619,16 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
7613
7619
  onclick: e => {
7614
7620
  if (this.isNormal) {
7615
7621
  this.indeterminate = false;
7616
- } else e.preventDefault();
7622
+ if (this.x.cancelable && this.isChecked) {
7623
+ e.preventDefault();
7624
+ this.val(false);
7625
+ setTimeout(() => {
7626
+ this.$refs.v.checked = false;
7627
+ });
7628
+ }
7629
+ } else {
7630
+ e.preventDefault();
7631
+ }
7617
7632
  },
7618
7633
  onchange: this.onchange,
7619
7634
  ...this.input_prop,
@@ -7636,7 +7651,7 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
7636
7651
  }, this.html_input())
7637
7652
  },
7638
7653
  html_target() {
7639
- return this.$slots.default ? h(script$1e, {
7654
+ return this.$slots.default ? h(script$1f, {
7640
7655
  class: this.$options.name + '-target',
7641
7656
  ref: 'target'
7642
7657
  }, this.$slots) : []
@@ -7721,13 +7736,13 @@ const {leafSymbol: leafSymbol$1} = $$1.symbol;
7721
7736
  },
7722
7737
  };
7723
7738
 
7724
- script$z.__file = "src/widgets/CheckBox.vue";
7739
+ script$A.__file = "src/widgets/CheckBox.vue";
7725
7740
 
7726
7741
  const {leafSymbol} = $$1.symbol;
7727
7742
 
7728
- var script$y = {
7743
+ var script$z = {
7729
7744
  name: 'w-triplebox',
7730
- mixins: [script$z],
7745
+ mixins: [script$A],
7731
7746
  props: ['all'],
7732
7747
  created() {
7733
7748
  if (this.provideBoxParent) {
@@ -7870,12 +7885,12 @@ const {leafSymbol} = $$1.symbol;
7870
7885
 
7871
7886
  };
7872
7887
 
7873
- script$y.__file = "src/widgets/TripleBox.vue";
7888
+ script$z.__file = "src/widgets/TripleBox.vue";
7874
7889
 
7875
- var script$x = {
7890
+ var script$y = {
7876
7891
  name: 'w-leaf',
7877
7892
  pubParentName: 'w-tree',
7878
- mixins: [script$1h, script$1n],
7893
+ mixins: [script$1i, script$1o],
7879
7894
  props: ['text', 'expanded', 'expandedIcon', 'collapsedIcon', 'icon', 'boxSync', 'src', 'disabled'],
7880
7895
  inject: ['providePubParent', 'provideLevel', 'provideParentLeaf', 'provideParentTR'],
7881
7896
  provide() {
@@ -7975,7 +7990,7 @@ var script$x = {
7975
7990
  let ico = this.isFolder() ? (exp ? this.x.expandedIcon : this.x.collapsedIcon) : this.x.icon;
7976
7991
  return h('div', mergeProps(this.html_attrs, this.html_props, this.$attrs), [
7977
7992
  this.loading ?
7978
- h(script$13, {
7993
+ h(script$14, {
7979
7994
  src: '#f-svg-loading',
7980
7995
  class: 'w-leaf-loading'
7981
7996
  }) :
@@ -7987,7 +8002,7 @@ var script$x = {
7987
8002
  }
7988
8003
  }),
7989
8004
  this.$slots.box && this.$slots.box(),
7990
- ico && h(script$13, {
8005
+ ico && h(script$14, {
7991
8006
  src: ico,
7992
8007
  class: 'w-leaf-icon'
7993
8008
  }),
@@ -8011,7 +8026,7 @@ var script$x = {
8011
8026
  }
8012
8027
  }
8013
8028
  if (key) {
8014
- return h(script$V, {key}, {default: () => leaf})
8029
+ return h(script$W, {key}, {default: () => leaf})
8015
8030
  } else {
8016
8031
  return leaf
8017
8032
  }
@@ -8069,11 +8084,11 @@ var script$x = {
8069
8084
 
8070
8085
  };
8071
8086
 
8072
- script$x.__file = "src/widgets/Leaf.vue";
8087
+ script$y.__file = "src/widgets/Leaf.vue";
8073
8088
 
8074
- var script$w = {
8089
+ var script$x = {
8075
8090
  name: 'w-pagebar',
8076
- mixins: [script$K],
8091
+ mixins: [script$L],
8077
8092
  emits: ['click:item'],
8078
8093
  props: ['limit', 'size', 'offset', 'buttonCount', 'noFirstLast', 'face', 'jump'],
8079
8094
  data() {
@@ -8125,13 +8140,13 @@ var script$w = {
8125
8140
  this.html_face_normal()
8126
8141
  },
8127
8142
  html_buttons() {
8128
- return [h(script$10, {
8143
+ return [h(script$11, {
8129
8144
  class: 'w-pagebar-button w-pagebar-prev',
8130
8145
  icon: '.f-i .f-i-angle-left',
8131
8146
  disabled: this.currentPage == 1,
8132
8147
  title: $$1.loc.page_text.prev,
8133
8148
  onclick: e => this.clickItem(e, this.currentPage - 1)
8134
- }), h(script$10, {
8149
+ }), h(script$11, {
8135
8150
  class: 'w-pagebar-button w-pagebar-next',
8136
8151
  icon: '.f-i .f-i-angle-right',
8137
8152
  disabled: this.currentPage == this.sumPage,
@@ -8142,7 +8157,7 @@ var script$w = {
8142
8157
  html_drop() {
8143
8158
  let s = [];
8144
8159
  if (this.x.buttonCount) {
8145
- s.push(h(script$10, {
8160
+ s.push(h(script$11, {
8146
8161
  class: 'w-pagebar-button w-pagebar-button-count w-pagebar-prev',
8147
8162
  ref: 'drop',
8148
8163
  text: this.currentPage + '/' + this.sumPage,
@@ -8151,8 +8166,8 @@ var script$w = {
8151
8166
  }
8152
8167
  if (this.showDrop) {
8153
8168
  let b = [];
8154
- for (let i = 1, sp = this.sumPage; i <= sp; i ++) b.push(h(script$10, {text: i, onClick: e => this.clickItem(e, i)}));
8155
- s.push(h(script$$, {snap: () => this.$refs.drop, position: 'v', indent: 1, onClose: () => this.showDrop = false}, {default: () => b}));
8169
+ for (let i = 1, sp = this.sumPage; i <= sp; i ++) b.push(h(script$11, {text: i, onClick: e => this.clickItem(e, i)}));
8170
+ s.push(h(script$10, {snap: () => this.$refs.drop, position: 'v', indent: 1, onClose: () => this.showDrop = false}, {default: () => b}));
8156
8171
  }
8157
8172
  return s
8158
8173
  },
@@ -8250,11 +8265,11 @@ var script$w = {
8250
8265
  }
8251
8266
  };
8252
8267
 
8253
- script$w.__file = "src/widgets/PageBar.vue";
8268
+ script$x.__file = "src/widgets/PageBar.vue";
8254
8269
 
8255
- var script$v = {
8270
+ var script$w = {
8256
8271
  name: 'w-split',
8257
- mixins: [script$1h],
8272
+ mixins: [script$1i],
8258
8273
  props: ['collapsedIcon', 'expandedIcon', 'movable', 'range', 'toNext', 'expanded'],
8259
8274
  inject: ['provideLayout'],
8260
8275
  created() {
@@ -8351,11 +8366,11 @@ var script$v = {
8351
8366
  }
8352
8367
  };
8353
8368
 
8354
- script$v.__file = "src/widgets/Split.vue";
8369
+ script$w.__file = "src/widgets/Split.vue";
8355
8370
 
8356
- var script$u = {
8371
+ var script$v = {
8357
8372
  name: 'w-toggle',
8358
- mixins: [script$1h, script$1f],
8373
+ mixins: [script$1i, script$1g],
8359
8374
  props: ['collapsedIcon', 'expandedIcon', 'expanded', 'align', 'valign'],
8360
8375
  methods: {
8361
8376
  x_default() {
@@ -8372,7 +8387,7 @@ var script$u = {
8372
8387
  html_slots() {
8373
8388
  let exp = this.x.expanded;
8374
8389
  let ico = exp ? this.x.expandedIcon : this.x.collapsedIcon;
8375
- return [ico && h(script$13, {
8390
+ return [ico && h(script$14, {
8376
8391
  src: ico,
8377
8392
  class: 'w-toggle-icon',
8378
8393
  }), h('div', {class: 'w-toggle-main'}, this.$slots.default())]
@@ -8399,11 +8414,11 @@ var script$u = {
8399
8414
  }
8400
8415
  };
8401
8416
 
8402
- script$u.__file = "src/widgets/Toggle.vue";
8417
+ script$v.__file = "src/widgets/Toggle.vue";
8403
8418
 
8404
- var script$t = {
8419
+ var script$u = {
8405
8420
  name: 'w-video',
8406
- mixins: [script$1h],
8421
+ mixins: [script$1i],
8407
8422
  props: ['src', 'poster'],
8408
8423
  data() {
8409
8424
  return {
@@ -8451,11 +8466,11 @@ var script$t = {
8451
8466
 
8452
8467
  };
8453
8468
 
8454
- script$t.__file = "src/widgets/Video.vue";
8469
+ script$u.__file = "src/widgets/Video.vue";
8455
8470
 
8456
- var script$s = {
8471
+ var script$t = {
8457
8472
  name: 'w-progress',
8458
- mixins: [script$1h],
8473
+ mixins: [script$1i],
8459
8474
  props: ['percent', 'range', 'text'],
8460
8475
  methods: {
8461
8476
  html_slots() {
@@ -8496,11 +8511,11 @@ var script$s = {
8496
8511
  }
8497
8512
  };
8498
8513
 
8499
- script$s.__file = "src/widgets/Progress.vue";
8514
+ script$t.__file = "src/widgets/Progress.vue";
8500
8515
 
8501
- var script$r = {
8516
+ var script$s = {
8502
8517
  name: 'w-calendar',
8503
- mixins: [script$1h],
8518
+ mixins: [script$1i],
8504
8519
  emits: ['click:item', 'change'],
8505
8520
  props: ['value', 'minValue', 'maxValue', 'current', 'pad', 'face', 'format', 'success', 'cg', 'start',
8506
8521
  'enableHour', 'enableMinute', 'enableSecond', 'defaultHour', 'defaultMinute', 'defaultSecond'
@@ -9267,12 +9282,12 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
9267
9282
  }, 16 /* FULL_PROPS */, ["class"]))
9268
9283
  }
9269
9284
 
9270
- script$r.render = render$4;
9271
- script$r.__file = "src/widgets/Calendar.vue";
9285
+ script$s.render = render$4;
9286
+ script$s.__file = "src/widgets/Calendar.vue";
9272
9287
 
9273
- var script$q = {
9288
+ var script$r = {
9274
9289
  name: 'w-timeline',
9275
- mixins: [script$1g, script$W],
9290
+ mixins: [script$1h, script$X],
9276
9291
  props: ['face', 'vertical'],
9277
9292
  methods: {
9278
9293
  indent() {
@@ -9422,12 +9437,12 @@ var script$q = {
9422
9437
  }
9423
9438
  };
9424
9439
 
9425
- script$q.__file = "src/widgets/Timeline.vue";
9440
+ script$r.__file = "src/widgets/Timeline.vue";
9426
9441
 
9427
- var script$p = {
9442
+ var script$q = {
9428
9443
  name: 'w-timeline-item',
9429
9444
  pubParentName: 'w-timeline',
9430
- mixins: [script$1h],
9445
+ mixins: [script$1i],
9431
9446
  inject: ['providePubParent'],
9432
9447
  props: ['position', 'index', 'align', 'lineColor'],
9433
9448
  watch: {
@@ -9466,11 +9481,11 @@ var script$p = {
9466
9481
  }
9467
9482
  };
9468
9483
 
9469
- script$p.__file = "src/widgets/TimelineItem.vue";
9484
+ script$q.__file = "src/widgets/TimelineItem.vue";
9470
9485
 
9471
- var script$o = {
9486
+ var script$p = {
9472
9487
  name: 'w-slidepicker',
9473
- mixins: [script$1h],
9488
+ mixins: [script$1i],
9474
9489
  provide() {
9475
9490
  return {
9476
9491
  provideOptionParent: this,
@@ -9696,12 +9711,12 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
9696
9711
  ], 16 /* FULL_PROPS */))
9697
9712
  }
9698
9713
 
9699
- script$o.render = render$3;
9700
- script$o.__file = "src/widgets/SlidePicker.vue";
9714
+ script$p.render = render$3;
9715
+ script$p.__file = "src/widgets/SlidePicker.vue";
9701
9716
 
9702
- var script$n = {
9717
+ var script$o = {
9703
9718
  name: 'w-hidden',
9704
- mixins: [script$A],
9719
+ mixins: [script$B],
9705
9720
  methods: {
9706
9721
  isModified() {
9707
9722
  return false
@@ -9720,11 +9735,11 @@ var script$n = {
9720
9735
 
9721
9736
  };
9722
9737
 
9723
- script$n.__file = "src/widgets/Hidden.vue";
9738
+ script$o.__file = "src/widgets/Hidden.vue";
9724
9739
 
9725
- var script$m = {
9740
+ var script$n = {
9726
9741
  name: 'w-text',
9727
- mixins: [script$A],
9742
+ mixins: [script$B],
9728
9743
  props: ['minLength', 'maxLength', 'pattern', 'clearable', 'showCount'],
9729
9744
  emits: ['clear'],
9730
9745
  data() {
@@ -9776,11 +9791,11 @@ var script$m = {
9776
9791
  }
9777
9792
  };
9778
9793
 
9779
- script$m.__file = "src/widgets/Text.vue";
9794
+ script$n.__file = "src/widgets/Text.vue";
9780
9795
 
9781
- var script$l = {
9796
+ var script$m = {
9782
9797
  name: 'w-textarea',
9783
- mixins: [script$m],
9798
+ mixins: [script$n],
9784
9799
  methods: {
9785
9800
  html_slot_down() {
9786
9801
  const down = this.slot('down');
@@ -9813,11 +9828,11 @@ var script$l = {
9813
9828
  }
9814
9829
  };
9815
9830
 
9816
- script$l.__file = "src/widgets/Textarea.vue";
9831
+ script$m.__file = "src/widgets/Textarea.vue";
9817
9832
 
9818
- var script$k = {
9833
+ var script$l = {
9819
9834
  name: 'w-checkboxgroup',
9820
- mixins: [script$A],
9835
+ mixins: [script$B],
9821
9836
  props: ['modelValue', 'required', 'vertical', 'gap', 'minSize', 'maxSize'],
9822
9837
  provide() {
9823
9838
  return {
@@ -9851,19 +9866,20 @@ var script$k = {
9851
9866
  }
9852
9867
  };
9853
9868
 
9854
- script$k.__file = "src/widgets/CheckBoxGroup.vue";
9869
+ script$l.__file = "src/widgets/CheckBoxGroup.vue";
9855
9870
 
9856
- var script$j = {
9871
+ var script$k = {
9857
9872
  name: 'w-radiogroup',
9858
- mixins: [script$k]
9873
+ mixins: [script$l]
9859
9874
  };
9860
9875
 
9861
- script$j.__file = "src/widgets/RadioGroup.vue";
9876
+ script$k.__file = "src/widgets/RadioGroup.vue";
9862
9877
 
9863
- var script$i = {
9878
+ var script$j = {
9864
9879
  name: 'w-radio',
9865
9880
  pubParentName: 'w-radiogroup',
9866
- mixins: [script$z],
9881
+ mixins: [script$A],
9882
+ props: ['cancelable'],
9867
9883
  methods: {
9868
9884
 
9869
9885
  },
@@ -9890,12 +9906,12 @@ var script$i = {
9890
9906
  }
9891
9907
  };
9892
9908
 
9893
- script$i.__file = "src/widgets/Radio.vue";
9909
+ script$j.__file = "src/widgets/Radio.vue";
9894
9910
 
9895
- var script$h = {
9911
+ var script$i = {
9896
9912
  name: 'w-switch',
9897
9913
  pubParentName: 'w-checkboxgroup',
9898
- mixins: [script$A],
9914
+ mixins: [script$B],
9899
9915
  props: ['checkedText', 'uncheckedText', 'checkedValue', 'uncheckedValue'],
9900
9916
  inject: ['providePubParent'],
9901
9917
  methods: {
@@ -9943,7 +9959,7 @@ var script$h = {
9943
9959
  }
9944
9960
  };
9945
9961
 
9946
- script$h.__file = "src/widgets/Switch.vue";
9962
+ script$i.__file = "src/widgets/Switch.vue";
9947
9963
 
9948
9964
  const mimes = {
9949
9965
  ".323": "text/h323",
@@ -10474,9 +10490,9 @@ const suffixHooks = {
10474
10490
  'T' ? 1024 * 1024 * 1024 * 1024 : 1)
10475
10491
  };
10476
10492
 
10477
- var script$g = {
10493
+ var script$h = {
10478
10494
  name: 'w-fileupload',
10479
- mixins: [script$A],
10495
+ mixins: [script$B],
10480
10496
  props: ['uploadSrc', 'thumbnailSrc', 'downloadSrc', 'uploadLimit', 'sizeLimit', 'maxFileSize', 'minFileSize',
10481
10497
  'fileTypes', 'filter', 'success', 'error', 'itemWidth', 'align', 'vertical', 'gap', 'checkFile'
10482
10498
  ],
@@ -10680,7 +10696,7 @@ const suffixHooks = {
10680
10696
  onclick: e => this.remove(item)
10681
10697
  })];
10682
10698
  if (value && this.$slots.menu) {
10683
- button.push(h(script$$, null, {
10699
+ button.push(h(script$10, null, {
10684
10700
  target: () => h('div', {
10685
10701
  class: 'w-fileupload-value-menu f-i f-i-ellipsis',
10686
10702
  title: $$1.loc.more,
@@ -10732,14 +10748,14 @@ const suffixHooks = {
10732
10748
  },
10733
10749
  html_input_button() {
10734
10750
  return h('div', {}, [
10735
- h(script$K, {
10751
+ h(script$L, {
10736
10752
  ref: 'uploadbbr',
10737
10753
  class: 'w-fileupload-bbr',
10738
10754
  gap: 10,
10739
10755
  }, {
10740
10756
  default: () => [
10741
10757
  this.$slots.button ? this.$slots.button(this) :
10742
- h(script$10, {
10758
+ h(script$11, {
10743
10759
  text: '选择文件',
10744
10760
  icon: '.f-i .f-i-upload',
10745
10761
  class: 'w-fileupload-button',
@@ -10815,9 +10831,9 @@ const suffixHooks = {
10815
10831
  }
10816
10832
  };
10817
10833
 
10818
- script$g.__file = "src/widgets/FileUpload.vue";
10834
+ script$h.__file = "src/widgets/FileUpload.vue";
10819
10835
 
10820
- var script$f = {
10836
+ var script$g = {
10821
10837
  props: ['item'],
10822
10838
  inject: ['provideUpload'],
10823
10839
  data() {
@@ -10996,12 +11012,12 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
10996
11012
  ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "src", "data-url", "width", "img-width", "img-height", "tip", "onClick"]))
10997
11013
  }
10998
11014
 
10999
- script$f.render = render$2;
11000
- script$f.__file = "src/widgets/MediaUploadItem.vue";
11015
+ script$g.render = render$2;
11016
+ script$g.__file = "src/widgets/MediaUploadItem.vue";
11001
11017
 
11002
- var script$e = {
11018
+ var script$f = {
11003
11019
  name: 'w-mediaupload',
11004
- mixins: [script$g],
11020
+ mixins: [script$h],
11005
11021
  props: ['thumbnailWidth', 'thumbnailHeight', 'showFileName'],
11006
11022
  provide() {
11007
11023
  return {
@@ -11022,17 +11038,17 @@ var script$e = {
11022
11038
  return this.list.map((item, index) => {
11023
11039
  let key = item.value ? item.value.id : item.key;
11024
11040
  if (!key) {item.key = key = $$1.uid();}
11025
- return h(script$f, {item, index, key})
11041
+ return h(script$g, {item, index, key})
11026
11042
  })
11027
11043
  },
11028
11044
  html_input_button() {
11029
11045
  return h('div', {}, [
11030
- h(script$K, {
11046
+ h(script$L, {
11031
11047
  ref: 'uploadbbr',
11032
11048
  class: 'w-fileupload-bbr'
11033
11049
  }, {
11034
11050
  default: () => [
11035
- this.$slots.button ? this.$slots.button(this) : h(script$10, {
11051
+ this.$slots.button ? this.$slots.button(this) : h(script$11, {
11036
11052
  ref: 'uploadbutton',
11037
11053
  title: $$1.loc.form.choose_image,
11038
11054
  icon: '.f-i .f-i-plus',
@@ -11050,7 +11066,7 @@ var script$e = {
11050
11066
  ])
11051
11067
  },
11052
11068
  html_input() {
11053
- return this.html_input_form().concat(h(script$1e, {
11069
+ return this.html_input_form().concat(h(script$1f, {
11054
11070
  width: '*',
11055
11071
  class: 'w-mediaupload-list',
11056
11072
  align: this.x.align,
@@ -11069,11 +11085,11 @@ var script$e = {
11069
11085
  }
11070
11086
  };
11071
11087
 
11072
- script$e.__file = "src/widgets/MediaUpload.vue";
11088
+ script$f.__file = "src/widgets/MediaUpload.vue";
11073
11089
 
11074
- var script$d = {
11090
+ var script$e = {
11075
11091
  name: 'w-imageupload',
11076
- mixins: [script$e],
11092
+ mixins: [script$f],
11077
11093
  methods: {
11078
11094
  x_default() {
11079
11095
  return {
@@ -11092,11 +11108,11 @@ var script$d = {
11092
11108
  },
11093
11109
  };
11094
11110
 
11095
- script$d.__file = "src/widgets/ImageUpload.vue";
11111
+ script$e.__file = "src/widgets/ImageUpload.vue";
11096
11112
 
11097
- var script$c = {
11113
+ var script$d = {
11098
11114
  name: 'w-option',
11099
- mixins: [script$1h],
11115
+ mixins: [script$1i],
11100
11116
  props: ['value', 'text', 'disabled'],
11101
11117
  inject: ['provideOptionParent'],
11102
11118
  methods: {
@@ -11141,12 +11157,12 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
11141
11157
  ], 16 /* FULL_PROPS */, _hoisted_1$1))
11142
11158
  }
11143
11159
 
11144
- script$c.render = render$1;
11145
- script$c.__file = "src/widgets/Option.vue";
11160
+ script$d.render = render$1;
11161
+ script$d.__file = "src/widgets/Option.vue";
11146
11162
 
11147
- var script$b = {
11163
+ var script$c = {
11148
11164
  name: 'w-spinner',
11149
- mixins: [script$m],
11165
+ mixins: [script$n],
11150
11166
  inject: ['provideRangeParent'],
11151
11167
  props: ['decimal', 'format', 'showButton', 'buttonPosition', 'step', 'autoFix', 'compare', 'minValue', 'maxValue'],
11152
11168
  mounted() {
@@ -11353,11 +11369,11 @@ var script$b = {
11353
11369
  }
11354
11370
  };
11355
11371
 
11356
- script$b.__file = "src/widgets/Spinner.vue";
11372
+ script$c.__file = "src/widgets/Spinner.vue";
11357
11373
 
11358
- var script$a = {
11374
+ var script$b = {
11359
11375
  name: 'w-datepicker',
11360
- mixins: [script$m],
11376
+ mixins: [script$n],
11361
11377
  inject: ['provideRangeParent'],
11362
11378
  props: ['showButton', 'multiple', 'format', 'autoFix', 'compare', 'minValue', 'maxValue', 'dropProps', 'enableHour', 'enableMinute', 'enableSecond',
11363
11379
  'defaultHour', 'defaultMinute', 'defaultSecond'],
@@ -11365,7 +11381,7 @@ var script$a = {
11365
11381
  return {
11366
11382
  showDrop: false,
11367
11383
  currentDate: null,
11368
- focusValue: null,
11384
+ lastValue: null,
11369
11385
  placeholder_type: 'placeholder_select',
11370
11386
  }
11371
11387
  },
@@ -11391,7 +11407,7 @@ var script$a = {
11391
11407
  return true
11392
11408
  },
11393
11409
  onfocus(e) {
11394
- this.focusValue = this.x.modelValue;
11410
+ this.lastValue = this.x.modelValue;
11395
11411
  this.baseFocus(e);
11396
11412
  },
11397
11413
  onkeyup() {
@@ -11414,7 +11430,7 @@ var script$a = {
11414
11430
  let v = this.x.modelValue;
11415
11431
  if (v) {
11416
11432
  if (!this.isUsableVal(v)) {
11417
- this.x.autoFix && this.val(this.focusValue);
11433
+ this.x.autoFix && this.val(this.lastValue);
11418
11434
  } else {
11419
11435
  let re = /\b(\d)\b/g;
11420
11436
  if (re.test(v)) {
@@ -11508,8 +11524,8 @@ var script$a = {
11508
11524
  indent: 1
11509
11525
  };
11510
11526
  dropProps = this.mergeDropProps(dropProps);
11511
- r.push(h(script$1a, dropProps, {
11512
- default: () => h(script$r, {
11527
+ r.push(h(script$1b, dropProps, {
11528
+ default: () => h(script$s, {
11513
11529
  height: '*',
11514
11530
  pad: true,
11515
11531
  current: this.currentDate || this.x.modelValue || '',
@@ -11591,14 +11607,26 @@ var script$a = {
11591
11607
  'z-clearable': this.x.clearable,
11592
11608
  }
11593
11609
  }
11610
+ },
11611
+ mounted() {
11612
+ this.$watch('modelValue', (v) => {
11613
+ if (this.x.autoFix && v && (v = $$1.strTrim(v))) {
11614
+ if (!$$1.dateValid(v, this.x.format)) {
11615
+ let d = $$1.dateParse(v, this.x.format);
11616
+ v = $$1.dateFormat(d, this.x.format);
11617
+ this.val(v);
11618
+ }
11619
+ this.lastValue = v;
11620
+ }
11621
+ }, {immediate: true});
11594
11622
  }
11595
11623
  };
11596
11624
 
11597
- script$a.__file = "src/widgets/DatePicker.vue";
11625
+ script$b.__file = "src/widgets/DatePicker.vue";
11598
11626
 
11599
- var script$9 = {
11627
+ var script$a = {
11600
11628
  name: 'w-dropbox',
11601
- mixins: [script$A],
11629
+ mixins: [script$B],
11602
11630
  provide() {
11603
11631
  return {
11604
11632
  provideOptionParent: this,
@@ -11670,7 +11698,7 @@ var script$9 = {
11670
11698
  scrollView: '.z-on'
11671
11699
  };
11672
11700
  dropProps = this.mergeDropProps(dropProps);
11673
- r.push(h(script$1a, dropProps, this.$slots));
11701
+ r.push(h(script$1b, dropProps, this.$slots));
11674
11702
  }
11675
11703
  return r
11676
11704
  },
@@ -11713,11 +11741,11 @@ var script$9 = {
11713
11741
  }
11714
11742
  };
11715
11743
 
11716
- script$9.__file = "src/widgets/DropBox.vue";
11744
+ script$a.__file = "src/widgets/DropBox.vue";
11717
11745
 
11718
- var script$8 = {
11746
+ var script$9 = {
11719
11747
  name: 'w-pickbox',
11720
- mixins: [script$9],
11748
+ mixins: [script$a],
11721
11749
  props: ['picker'],
11722
11750
  methods: {
11723
11751
  // implement
@@ -11787,11 +11815,11 @@ var script$8 = {
11787
11815
  }
11788
11816
  };
11789
11817
 
11790
- script$8.__file = "src/widgets/PickBox.vue";
11818
+ script$9.__file = "src/widgets/PickBox.vue";
11791
11819
 
11792
- var script$7 = {
11820
+ var script$8 = {
11793
11821
  name: 'w-password',
11794
- mixins: [script$m],
11822
+ mixins: [script$n],
11795
11823
  props: ['compare'],
11796
11824
  methods: {
11797
11825
  getCompareError(v, r) {
@@ -11821,17 +11849,17 @@ var script$7 = {
11821
11849
  }
11822
11850
  };
11823
11851
 
11824
- script$7.__file = "src/widgets/Password.vue";
11852
+ script$8.__file = "src/widgets/Password.vue";
11825
11853
 
11826
- var script$6 = {
11854
+ var script$7 = {
11827
11855
  name: 'w-range',
11828
- mixins: [script$A],
11856
+ mixins: [script$B],
11829
11857
  provide() {
11830
11858
  return {
11831
11859
  provideRangeParent: this
11832
11860
  }
11833
11861
  },
11834
- props: ['compare'],
11862
+ props: ['mode'],
11835
11863
  methods: {
11836
11864
  getRangeError() {
11837
11865
  let f = this.forms();
@@ -11862,11 +11890,11 @@ var script$6 = {
11862
11890
  }
11863
11891
  };
11864
11892
 
11865
- script$6.__file = "src/widgets/Range.vue";
11893
+ script$7.__file = "src/widgets/Range.vue";
11866
11894
 
11867
- var script$5 = {
11895
+ var script$6 = {
11868
11896
  name: 'w-combobox',
11869
- mixins: [script$A],
11897
+ mixins: [script$B],
11870
11898
  props: ['multiple', 'strict', 'dropper', 'picker', 'dropProps', 'br', 'clearable'],
11871
11899
  emits: ['input', 'click:item', 'blur', 'focus', 'clear'],
11872
11900
  data() {
@@ -12104,7 +12132,7 @@ var script$5 = {
12104
12132
  scrollY: true
12105
12133
  };
12106
12134
  dropProps = this.mergeDropProps(dropProps);
12107
- r.push(h(script$1a, dropProps, this.$slots));
12135
+ r.push(h(script$1b, dropProps, this.$slots));
12108
12136
  }
12109
12137
  return [
12110
12138
  this.html_input_hidden(),
@@ -12191,11 +12219,11 @@ var script$5 = {
12191
12219
  }
12192
12220
  };
12193
12221
 
12194
- script$5.__file = "src/widgets/ComboBox.vue";
12222
+ script$6.__file = "src/widgets/ComboBox.vue";
12195
12223
 
12196
- var script$4 = {
12224
+ var script$5 = {
12197
12225
  name: 'w-linkbox',
12198
- mixins: [script$A],
12226
+ mixins: [script$B],
12199
12227
  props: ['multiple', 'picker', 'dropProps', 'separator', 'strict', 'br', 'clearable'],
12200
12228
  emits: ['input', 'dblclick:item', 'clear'],
12201
12229
  created() {
@@ -12576,7 +12604,7 @@ var script$4 = {
12576
12604
  scrollY: true
12577
12605
  };
12578
12606
  dropProps = this.mergeDropProps(dropProps);
12579
- r.push(h(script$1a, dropProps, this.$slots));
12607
+ r.push(h(script$1b, dropProps, this.$slots));
12580
12608
  }
12581
12609
  return [
12582
12610
  this.html_input_hidden(),
@@ -12653,9 +12681,9 @@ var script$4 = {
12653
12681
  }
12654
12682
  };
12655
12683
 
12656
- script$4.__file = "src/widgets/LinkBox.vue";
12684
+ script$5.__file = "src/widgets/LinkBox.vue";
12657
12685
 
12658
- var script$3 = {
12686
+ var script$4 = {
12659
12687
  props: ['width', 'height', 'context'],
12660
12688
  data() {
12661
12689
  return {
@@ -12733,14 +12761,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
12733
12761
  }, 8 /* PROPS */, ["width", "height", "context"]))
12734
12762
  }
12735
12763
 
12736
- script$3.render = render;
12737
- script$3.__file = "src/template/TemplateJigsaw.vue";
12764
+ script$4.render = render;
12765
+ script$4.__file = "src/template/TemplateJigsaw.vue";
12738
12766
 
12739
12767
  const init_text = $$1.loc.form.jigsaw_drag_right;
12740
12768
 
12741
- var script$2 = {
12769
+ var script$3 = {
12742
12770
  name: 'w-jigsaw',
12743
- mixins: [script$A],
12771
+ mixins: [script$B],
12744
12772
  emits: ['drop', 'click:refresh'],
12745
12773
  props: ['big', 'small', 'dropWidth'],
12746
12774
  data() {
@@ -12883,7 +12911,7 @@ const init_text = $$1.loc.form.jigsaw_drag_right;
12883
12911
  if (this.showDrop) {
12884
12912
  let width = Math.max($$1.number(this.x.dropWidth), $$1.bcr(this.el('form')).width);
12885
12913
  let height = Math.ceil(width * (this.x.big.height / this.x.big.width));
12886
- r.push(h(script$3, {
12914
+ r.push(h(script$4, {
12887
12915
  ownproperty: true,
12888
12916
  width,
12889
12917
  height,
@@ -12921,11 +12949,11 @@ const init_text = $$1.loc.form.jigsaw_drag_right;
12921
12949
  }
12922
12950
  };
12923
12951
 
12924
- script$2.__file = "src/widgets/Jigsaw.vue";
12952
+ script$3.__file = "src/widgets/Jigsaw.vue";
12925
12953
 
12926
- var script$1 = {
12954
+ var script$2 = {
12927
12955
  name: 'w-form',
12928
- mixins: [script$A],
12956
+ mixins: [script$B],
12929
12957
  props: ['vertical'],
12930
12958
  methods: {
12931
12959
  getInputValue(mv) {
@@ -12967,11 +12995,11 @@ var script$1 = {
12967
12995
  },
12968
12996
  };
12969
12997
 
12970
- script$1.__file = "src/widgets/Form.vue";
12998
+ script$2.__file = "src/widgets/Form.vue";
12971
12999
 
12972
- var script = {
13000
+ var script$1 = {
12973
13001
  name: 'w-rate',
12974
- mixins: [script$A],
13002
+ mixins: [script$B],
12975
13003
  props: ['allowHalf', 'cancelable', 'sum', 'count', 'text'],
12976
13004
  data() {
12977
13005
  return {
@@ -12995,7 +13023,7 @@ var script = {
12995
13023
  this.x.modelValue = this.x.cancelable && this.x.modelValue == i ? '' : i;
12996
13024
  },
12997
13025
  html_star(i) {
12998
- return h(script$13, {
13026
+ return h(script$14, {
12999
13027
  class: ['w-rate-star-icon', {'z-hv': this.hoverWrap && i <= this.hoverIndex, 'z-on': !this.hoverWrap && i <= this.x.modelValue}],
13000
13028
  src: '.f-i .f-i-star-full',
13001
13029
  onMouseenter: e => this.hoverItem(e, i),
@@ -13036,14 +13064,93 @@ var script = {
13036
13064
  }
13037
13065
  };
13038
13066
 
13039
- script.__file = "src/widgets/Rate.vue";
13067
+ script$1.__file = "src/widgets/Rate.vue";
13068
+
13069
+ var script = {
13070
+ name: 'w-slider',
13071
+ mixins: [script$B],
13072
+ props: ['minValue', 'maxValue'],
13073
+ emits: ['drop'],
13074
+ data() {
13075
+ return {
13076
+ grabbing: false
13077
+ }
13078
+ },
13079
+ methods: {
13080
+ x_default() {
13081
+ return {
13082
+ minValue: 0,
13083
+ maxValue: 100
13084
+ }
13085
+ },
13086
+ onmousedown(e) {
13087
+ const bar = $$1.bcr(this.$refs.form);
13088
+ let mv = $$1.number(this.x.modelValue);
13089
+ let dn_x = e.clientX;
13090
+ this.grabbing = true;
13091
+ $$1.moveup((e) => {
13092
+ let dist = e.clientX - dn_x;
13093
+ let v = mv + (dist / bar.width) * (this.x.maxValue - this.x.minValue);
13094
+ v = $$1.numRange(v, this.x.minValue, this.x.maxValue);
13095
+ this.val(v);
13096
+ }, (e) => {
13097
+ this.grabbing = false;
13098
+ this.trigger('drop', this.x.modelValue);
13099
+ }, e);
13100
+ },
13101
+ onclick(e) {
13102
+ if (e.target !== this.$refs.button) {
13103
+ const bar = $$1.bcr(this.$refs.form);
13104
+ let dist = e.clientX - bar.left;
13105
+ let v = (dist / (bar.width)) * (this.x.maxValue - this.x.minValue);
13106
+ v = $$1.numRange(v, this.x.minValue, this.x.maxValue);
13107
+ this.val(v);
13108
+ this.trigger('drop', v);
13109
+ }
13110
+ },
13111
+ html_input() {
13112
+ return [
13113
+ this.html_input_hidden(),
13114
+ h('div', {
13115
+ onClick: this.onclick,
13116
+ class: ['w-slider-wrap'],
13117
+ },
13118
+ [
13119
+ h('div', {
13120
+ class: ['w-slider-progress'],
13121
+ }),
13122
+ h('div', {
13123
+ ref: 'button',
13124
+ onMousedown: this.onmousedown,
13125
+ class: ['w-slider-button', {'z-grabbing': this.grabbing}],
13126
+ })
13127
+ ]
13128
+ )
13129
+ ]
13130
+ },
13131
+ },
13132
+ computed: {
13133
+ percent() {
13134
+ let v = this.x.modelValue;
13135
+ if (!v) return 0
13136
+ return v
13137
+ },
13138
+ html_style() {
13139
+ return {
13140
+ '--w-slider-left': `${this.percent}%`
13141
+ }
13142
+ }
13143
+ }
13144
+ };
13145
+
13146
+ script.__file = "src/widgets/Slider.vue";
13040
13147
 
13041
13148
  const components = [
13042
- script$1i, script$1c, script$1a, script$18, script$16, script$14, script$$, script$_,
13043
- script$N, script$1d, script$1e, script$Z, script$Y, script$X, script$T, script$U, script$S, script$R, script$Q, script$O, script$L, script$M, script$H, script$G,
13044
- script$F, script$13, script$K, script$10, script$11, script$E, script$D, script$x, script$C, script$w, script$v, script$u, script$t, script$s, script$r, script$q, script$p, script$o,
13045
- 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,
13046
- script$b, script$a, script$9, script$8, script$7, script$6, script$5, script$4, script$2, script$1, script
13149
+ script$1j, script$1d, script$1b, script$19, script$17, script$15, script$10, script$$,
13150
+ script$O, script$1e, script$1f, script$_, script$Z, script$Y, script$U, script$V, script$T, script$S, script$R, script$P, script$M, script$N, script$I, script$H,
13151
+ script$G, script$14, script$L, script$11, script$12, script$F, script$E, script$y, script$D, script$x, script$w, script$v, script$u, script$t, script$s, script$r, script$q, script$p,
13152
+ script$C, script$o, script$n, script$m, script$l, script$A, script$k, script$j, script$z, script$i, script$h, script$f, script$e, script$d,
13153
+ script$c, script$b, script$a, script$9, script$8, script$7, script$6, script$5, script$3, script$2, script$1, script
13047
13154
  ];
13048
13155
 
13049
13156
  //每个组件从这里曝露,以便在某些特殊需求情境下,业务可以修改源码