dfish-widget 1.0.107 → 1.0.108
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 +16 -25
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -3538,7 +3538,7 @@ const O = {},
|
|
|
3538
3538
|
T = true,
|
|
3539
3539
|
F = false;
|
|
3540
3540
|
|
|
3541
|
-
const
|
|
3541
|
+
const positionCodes = {
|
|
3542
3542
|
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
3543
|
'-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
3544
|
};
|
|
@@ -3546,7 +3546,7 @@ const O = {},
|
|
|
3546
3546
|
const boundary = ['minWidth', 'maxWidth', 'minHeight', 'maxHeight'];
|
|
3547
3547
|
|
|
3548
3548
|
const dialogPosition = (a) => {
|
|
3549
|
-
return typeof a === 'string' && a.split(',').map(v =>
|
|
3549
|
+
return typeof a === 'string' && a.split(',').map(v => positionCodes[v] || v).join()
|
|
3550
3550
|
};
|
|
3551
3551
|
|
|
3552
3552
|
var script$1b = {
|
|
@@ -3859,7 +3859,7 @@ const O = {},
|
|
|
3859
3859
|
['z-face-' + this.x.face]: this.x.face,
|
|
3860
3860
|
['z-mag-' + (r.mag_t ? 't' : r.mag_l ? 'l' : r.mag_b ? 'b' : 'r')]: r.type,
|
|
3861
3861
|
['z-snap z-snap-' + r.type]: r.type,
|
|
3862
|
-
[`w-dialog-animate-${p}`]: p && typeof p === 'string' && this.animateState != 'animating'
|
|
3862
|
+
[`w-dialog-animate-${p}`]: positionCodes[p] && typeof p === 'string' && this.animateState != 'animating'
|
|
3863
3863
|
}]
|
|
3864
3864
|
},
|
|
3865
3865
|
html_style() {
|
|
@@ -4494,7 +4494,7 @@ script$14.__file = "src/widgets/Img.vue";
|
|
|
4494
4494
|
var script$13 = {
|
|
4495
4495
|
pubParentName: 'w-buttonbar',
|
|
4496
4496
|
mixins: [script$1i],
|
|
4497
|
-
props: ['text', 'icon', 'focusIcon', 'face', 'target', 'closable', 'dropToggle', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', '
|
|
4497
|
+
props: ['text', 'icon', 'focusIcon', 'dropIcon', 'focusDropIcon', 'arrowIcon', 'face', 'target', 'closable', 'dropToggle', 'loading', 'disabled', 'vertical', 'hoverShowDrop', 'dropProps', 'showArrowIcon'],
|
|
4498
4498
|
inject: ['providePubParent', 'provideMenu_w'],
|
|
4499
4499
|
emits: ['click:close', 'dropClose'],
|
|
4500
4500
|
data() {
|
|
@@ -4594,8 +4594,11 @@ var script$13 = {
|
|
|
4594
4594
|
})));
|
|
4595
4595
|
}
|
|
4596
4596
|
if (this.x.icon) {
|
|
4597
|
-
|
|
4598
|
-
|
|
4597
|
+
let icon = this.x.focusDropIcon && this.isCurrent && this.showDrop ? this.x.focusDropIcon :
|
|
4598
|
+
this.x.focusIcon && this.isCurrent ? this.x.focusIcon :
|
|
4599
|
+
this.x.dropIcon && this.showDrop ? this.x.dropIcon :
|
|
4600
|
+
this.x.icon;
|
|
4601
|
+
r.push(this.html_icon(icon, 'w-button-icon f-flex-center' + (this.x.vertical ? '' : ' f-height')));
|
|
4599
4602
|
}
|
|
4600
4603
|
if (t) {
|
|
4601
4604
|
const title = this.pubParent && this.pubParent.x.flexSize && t;
|
|
@@ -4603,10 +4606,10 @@ var script$13 = {
|
|
|
4603
4606
|
class: 'w-button-text'
|
|
4604
4607
|
}, h('span', {class: 'w-button-text-line f-line-1', title}, t)));
|
|
4605
4608
|
}
|
|
4606
|
-
if (this.isMore && this.x.
|
|
4609
|
+
if (this.isMore && this.x.showArrowIcon) {
|
|
4607
4610
|
r.push(h(script$14, {
|
|
4608
4611
|
class: 'w-button-more f-flex-center f-height',
|
|
4609
|
-
src: this.x.
|
|
4612
|
+
src: this.x.arrowIcon || '.f-i .f-i-caret-down'
|
|
4610
4613
|
}));
|
|
4611
4614
|
}
|
|
4612
4615
|
if (this.x.closable) {
|
|
@@ -4624,7 +4627,7 @@ var script$13 = {
|
|
|
4624
4627
|
}, r),
|
|
4625
4628
|
this.isCombo && h(script$14, {
|
|
4626
4629
|
class: 'w-button-drop f-flex-center f-height',
|
|
4627
|
-
src:
|
|
4630
|
+
src: '.f-i .f-i-caret-down',
|
|
4628
4631
|
...(!this.isDisabled && this.mouses),
|
|
4629
4632
|
onclick: this.clickDrop
|
|
4630
4633
|
}),
|
|
@@ -4647,7 +4650,7 @@ var script$13 = {
|
|
|
4647
4650
|
return this.hasChild && !this.getOn('click')
|
|
4648
4651
|
},
|
|
4649
4652
|
isCombo() {
|
|
4650
|
-
return !!(this.hasChild && this.x.
|
|
4653
|
+
return !!(this.hasChild && this.x.showArrowIcon && this.getOn('click'))
|
|
4651
4654
|
},
|
|
4652
4655
|
isDisabled() {
|
|
4653
4656
|
return !!this.x.disabled || !!this.x.loading
|
|
@@ -4742,7 +4745,7 @@ var script$12 = {
|
|
|
4742
4745
|
}
|
|
4743
4746
|
r.push(h(script$14, {
|
|
4744
4747
|
class: 'w-menubutton-drop f-flex-center f-height',
|
|
4745
|
-
src: this.isMore ? (this.x.
|
|
4748
|
+
src: this.isMore ? (this.x.arrowIcon || '.f-i .f-i-caret-right') : ''
|
|
4746
4749
|
}));
|
|
4747
4750
|
if (this.showDrop) {
|
|
4748
4751
|
let dropProps = {
|
|
@@ -4801,7 +4804,7 @@ var script$11 = {
|
|
|
4801
4804
|
methods: {
|
|
4802
4805
|
x_default() {
|
|
4803
4806
|
return {
|
|
4804
|
-
|
|
4807
|
+
showArrowIcon: true,
|
|
4805
4808
|
autoMenuButton: true,
|
|
4806
4809
|
}
|
|
4807
4810
|
},
|
|
@@ -6324,25 +6327,13 @@ var script$K = {
|
|
|
6324
6327
|
gut.push(h(script$11, {
|
|
6325
6328
|
ref: 'quickCloseButton',
|
|
6326
6329
|
data: {isQuickCloseButton: true},
|
|
6327
|
-
|
|
6330
|
+
showArrowIcon: false,
|
|
6328
6331
|
icon: '.f-i .f-i-close',
|
|
6329
6332
|
class: 'w-tabbar-quickclosebutton',
|
|
6330
6333
|
onClick: this.closeAll,
|
|
6331
6334
|
disabled: closeAllDisabled,
|
|
6332
6335
|
title: '关闭全部标签'
|
|
6333
6336
|
}));
|
|
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
6337
|
}
|
|
6347
6338
|
}
|
|
6348
6339
|
return this.html_scroll_slots(gut)
|