dfish-widget 1.0.107 → 1.0.109

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
@@ -1739,9 +1739,8 @@ $$1.config = function(opt) {
1739
1739
  }
1740
1740
  };
1741
1741
 
1742
- $$1.pop = (template, props, options = {}) => {
1743
- const commander = $$1(options.target) || $$1.vm();
1744
- return $$1.vm(commander).createPop(commander, template, props, options)
1742
+ $$1.pop = (template, props, target, mode) => {
1743
+ return (target ? $$1(target) : $$1.vm()).pop(template, props, {mode})
1745
1744
  };
1746
1745
 
1747
1746
  $$1.submit = (request, options = {}) => {
@@ -3538,7 +3537,7 @@ const O = {},
3538
3537
  T = true,
3539
3538
  F = false;
3540
3539
 
3541
- const positionHooks = {
3540
+ const positionCodes = {
3542
3541
  t: 'tt', r: 'rr', b: 'bb', l: 'll', c: 'cc', lt: '11', tl: '11', tr: '22', rt: '22', rb: '33', br: '33', bl: '44', lb: '44',
3543
3542
  '-t': 'tb', '-r': 'rl', '-b': 'bt', '-l': 'lr', '-c': 'cc', '-tl': '14', '-tr': '23', '-rt': '21', '-rb': '34', '-bl': '41', '-br': '32', '-lt': '12', '-lb': '43',
3544
3543
  };
@@ -3546,7 +3545,7 @@ const O = {},
3546
3545
  const boundary = ['minWidth', 'maxWidth', 'minHeight', 'maxHeight'];
3547
3546
 
3548
3547
  const dialogPosition = (a) => {
3549
- return typeof a === 'string' && a.split(',').map(v => positionHooks[v] || v).join()
3548
+ return typeof a === 'string' && a.split(',').map(v => positionCodes[v] || v).join()
3550
3549
  };
3551
3550
 
3552
3551
  var script$1b = {
@@ -3859,7 +3858,7 @@ const O = {},
3859
3858
  ['z-face-' + this.x.face]: this.x.face,
3860
3859
  ['z-mag-' + (r.mag_t ? 't' : r.mag_l ? 'l' : r.mag_b ? 'b' : 'r')]: r.type,
3861
3860
  ['z-snap z-snap-' + r.type]: r.type,
3862
- [`w-dialog-animate-${p}`]: p && typeof p === 'string' && this.animateState != 'animating'
3861
+ [`w-dialog-animate-${p}`]: positionCodes[p] && typeof p === 'string' && this.animateState != 'animating'
3863
3862
  }]
3864
3863
  },
3865
3864
  html_style() {
@@ -4494,7 +4493,7 @@ script$14.__file = "src/widgets/Img.vue";
4494
4493
  var script$13 = {
4495
4494
  pubParentName: 'w-buttonbar',
4496
4495
  mixins: [script$1i],
4497
- props: ['text', 'icon', 'focusIcon', 'face', 'target', 'closable', 'dropToggle', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', 'dropIcon', 'showDropIcon'],
4496
+ props: ['text', 'icon', 'focusIcon', 'dropIcon', 'focusDropIcon', 'arrowIcon', 'face', 'target', 'closable', 'dropToggle', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', 'showArrowIcon'],
4498
4497
  inject: ['providePubParent', 'provideMenu_w'],
4499
4498
  emits: ['click:close', 'dropClose'],
4500
4499
  data() {
@@ -4594,8 +4593,11 @@ var script$13 = {
4594
4593
  })));
4595
4594
  }
4596
4595
  if (this.x.icon) {
4597
- r.push(this.html_icon(this.x.focusIcon && this.isCurrent ? this.x.focusIcon : this.x.icon,
4598
- 'w-button-icon f-flex-center' + (this.x.vertical ? '' : ' f-height')));
4596
+ let icon = this.x.focusDropIcon && this.isCurrent && this.showDrop ? this.x.focusDropIcon :
4597
+ this.x.focusIcon && this.isCurrent ? this.x.focusIcon :
4598
+ this.x.dropIcon && this.showDrop ? this.x.dropIcon :
4599
+ this.x.icon;
4600
+ r.push(this.html_icon(icon, 'w-button-icon f-flex-center' + (this.x.vertical ? '' : ' f-height')));
4599
4601
  }
4600
4602
  if (t) {
4601
4603
  const title = this.pubParent && this.pubParent.x.flexSize && t;
@@ -4603,10 +4605,10 @@ var script$13 = {
4603
4605
  class: 'w-button-text'
4604
4606
  }, h('span', {class: 'w-button-text-line f-line-1', title}, t)));
4605
4607
  }
4606
- if (this.isMore && this.x.showDropIcon) {
4608
+ if (this.isMore && this.x.showArrowIcon) {
4607
4609
  r.push(h(script$14, {
4608
4610
  class: 'w-button-more f-flex-center f-height',
4609
- src: this.x.dropIcon || '.f-i .f-i-caret-down'
4611
+ src: this.x.arrowIcon || '.f-i .f-i-caret-down'
4610
4612
  }));
4611
4613
  }
4612
4614
  if (this.x.closable) {
@@ -4624,7 +4626,7 @@ var script$13 = {
4624
4626
  }, r),
4625
4627
  this.isCombo && h(script$14, {
4626
4628
  class: 'w-button-drop f-flex-center f-height',
4627
- src: this.x.dropIcon || '.f-i .f-i-caret-down',
4629
+ src: '.f-i .f-i-caret-down',
4628
4630
  ...(!this.isDisabled && this.mouses),
4629
4631
  onclick: this.clickDrop
4630
4632
  }),
@@ -4647,7 +4649,7 @@ var script$13 = {
4647
4649
  return this.hasChild && !this.getOn('click')
4648
4650
  },
4649
4651
  isCombo() {
4650
- return !!(this.hasChild && this.x.showDropIcon && this.getOn('click'))
4652
+ return !!(this.hasChild && this.x.showArrowIcon && this.getOn('click'))
4651
4653
  },
4652
4654
  isDisabled() {
4653
4655
  return !!this.x.disabled || !!this.x.loading
@@ -4742,7 +4744,7 @@ var script$12 = {
4742
4744
  }
4743
4745
  r.push(h(script$14, {
4744
4746
  class: 'w-menubutton-drop f-flex-center f-height',
4745
- src: this.isMore ? (this.x.dropIcon || '.f-i .f-i-caret-right') : ''
4747
+ src: this.isMore ? (this.x.arrowIcon || '.f-i .f-i-caret-right') : ''
4746
4748
  }));
4747
4749
  if (this.showDrop) {
4748
4750
  let dropProps = {
@@ -4801,7 +4803,7 @@ var script$11 = {
4801
4803
  methods: {
4802
4804
  x_default() {
4803
4805
  return {
4804
- showDropIcon: true,
4806
+ showArrowIcon: true,
4805
4807
  autoMenuButton: true,
4806
4808
  }
4807
4809
  },
@@ -6324,25 +6326,13 @@ var script$K = {
6324
6326
  gut.push(h(script$11, {
6325
6327
  ref: 'quickCloseButton',
6326
6328
  data: {isQuickCloseButton: true},
6327
- showDropIcon: false,
6329
+ showArrowIcon: false,
6328
6330
  icon: '.f-i .f-i-close',
6329
6331
  class: 'w-tabbar-quickclosebutton',
6330
6332
  onClick: this.closeAll,
6331
6333
  disabled: closeAllDisabled,
6332
6334
  title: '关闭全部标签'
6333
6335
  }));
6334
- // gut.push(h(Button, {
6335
- // ref: 'quickCloseButton',
6336
- // data: {isQuickCloseButton: true},
6337
- // showDropIcon: false,
6338
- // icon: '.f-i .f-i-ellipsis',
6339
- // class: 'w-tabbar-quickclosebutton',
6340
- // onDropClose: this.onMouseleave
6341
- // }, {
6342
- // default: () => [
6343
- // h(Button, {text: '关闭全部标签', onClick: this.closeAll, disabled: closeAllDisabled})
6344
- // ]
6345
- // }))
6346
6336
  }
6347
6337
  }
6348
6338
  return this.html_scroll_slots(gut)
@@ -11410,6 +11400,20 @@ var script$c = {
11410
11400
  }
11411
11401
  }
11412
11402
  },
11403
+ isReadonly() {
11404
+ if (this.x.readonly == null) {
11405
+ let p = this.provideRangeParent;
11406
+ if (p && p.x.readonly) return true
11407
+ }
11408
+ return !!this.x.readonly
11409
+ },
11410
+ isDisabled() {
11411
+ if (this.x.disabled == null) {
11412
+ let p = this.provideRangeParent;
11413
+ if (p && p.x.disabled) return true
11414
+ }
11415
+ return !!this.x.disabled
11416
+ },
11413
11417
  input_prop() {
11414
11418
  return {
11415
11419
  'w-valuetype': 'number',
@@ -11611,11 +11615,11 @@ var script$b = {
11611
11615
  ...this.pubValidHooks,
11612
11616
  minValue: (v, r, q) => {
11613
11617
  if (v && $$1.dateParse(v, this.x.format) < $$1.dateParse(r, this.x.format))
11614
- return this.formErr(q)
11618
+ return this.formErr(q, [r])
11615
11619
  },
11616
11620
  maxValue: (v, r, q) => {
11617
11621
  if (v && $$1.dateParse(v, this.x.format) > $$1.dateParse(r, this.x.format))
11618
- return this.formErr(q)
11622
+ return this.formErr(q, [r])
11619
11623
  },
11620
11624
  compare: (v, r, q) => {
11621
11625
  let e = this.getCompareError(v, r);
@@ -11645,6 +11649,20 @@ var script$b = {
11645
11649
  }
11646
11650
  }
11647
11651
  },
11652
+ isReadonly() {
11653
+ if (this.x.readonly == null) {
11654
+ let p = this.provideRangeParent;
11655
+ if (p && p.x.readonly) return true
11656
+ }
11657
+ return !!this.x.readonly
11658
+ },
11659
+ isDisabled() {
11660
+ if (this.x.disabled == null) {
11661
+ let p = this.provideRangeParent;
11662
+ if (p && p.x.disabled) return true
11663
+ }
11664
+ return !!this.x.disabled
11665
+ },
11648
11666
  input_prop() {
11649
11667
  return $$1.br.mobile ? {
11650
11668
  readonly: true,
@@ -11936,7 +11954,6 @@ var script$7 = {
11936
11954
  html_form() {
11937
11955
  let c = this.slots_children();
11938
11956
  c.splice(1, 0, h('div', {ref: 'to', class: 'w-range-to'}, $$1.loc.to));
11939
- //c.push(h('input', {type: 'hidden', ref:'v', id: this.uid + 'hdn'}))
11940
11957
  return c
11941
11958
  },
11942
11959
  },