@deot/vc-components 1.0.20 → 1.0.22
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/dist/index.cjs +58 -36
- package/dist/index.d.ts +162 -0
- package/dist/index.iife.js +58 -36
- package/dist/index.js +58 -36
- package/dist/index.style.css +1 -1
- package/dist/index.umd.cjs +58 -36
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -8265,9 +8265,9 @@
|
|
|
8265
8265
|
default: true
|
|
8266
8266
|
},
|
|
8267
8267
|
autoWidth: {
|
|
8268
|
-
//
|
|
8268
|
+
// 当为false是,使用triggerEl宽度
|
|
8269
8269
|
type: Boolean,
|
|
8270
|
-
default:
|
|
8270
|
+
default: true
|
|
8271
8271
|
},
|
|
8272
8272
|
triggerEl: {
|
|
8273
8273
|
type: Object,
|
|
@@ -9437,10 +9437,8 @@
|
|
|
9437
9437
|
wrapperStyle.value = $wrapperStyle;
|
|
9438
9438
|
arrowStyle.value = $arrowStyle;
|
|
9439
9439
|
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
*/
|
|
9443
|
-
if (!props.autoWidth) return;
|
|
9440
|
+
// 自适应高度
|
|
9441
|
+
if (props.autoWidth) return;
|
|
9444
9442
|
wrapperW.value = {
|
|
9445
9443
|
width: `${triggerEl.getBoundingClientRect().width}px`
|
|
9446
9444
|
};
|
|
@@ -10512,7 +10510,7 @@
|
|
|
10512
10510
|
"trigger": props.trigger,
|
|
10513
10511
|
"tag": props.tag,
|
|
10514
10512
|
"placement": props.placement,
|
|
10515
|
-
"autoWidth":
|
|
10513
|
+
"autoWidth": true,
|
|
10516
10514
|
"disabled": props.disabled,
|
|
10517
10515
|
"portalClass": ['is-padding-none', 'vc-date-picker--portal', props.portalClass],
|
|
10518
10516
|
"class": [classes.value, its.value.class, 'vc-date-picker'],
|
|
@@ -14741,6 +14739,14 @@
|
|
|
14741
14739
|
type: [String, Boolean],
|
|
14742
14740
|
default: "取消"
|
|
14743
14741
|
},
|
|
14742
|
+
okDisabled: {
|
|
14743
|
+
type: Boolean,
|
|
14744
|
+
default: false
|
|
14745
|
+
},
|
|
14746
|
+
cancelDisabled: {
|
|
14747
|
+
type: Boolean,
|
|
14748
|
+
default: false
|
|
14749
|
+
},
|
|
14744
14750
|
footer: {
|
|
14745
14751
|
type: Boolean,
|
|
14746
14752
|
default: true
|
|
@@ -14890,11 +14896,13 @@
|
|
|
14890
14896
|
"class": ['vc-drawer__footer']
|
|
14891
14897
|
}, [slots['footer-extra']?.(), !slots.footer ? vue.createVNode(vue.Fragment, null, [props.cancelText && vue.createVNode(Button, {
|
|
14892
14898
|
"style": "margin-right: 8px;",
|
|
14899
|
+
"disabled": props.cancelDisabled,
|
|
14893
14900
|
"onClick": e => handleBefore(e, handleCancel)
|
|
14894
14901
|
}, {
|
|
14895
14902
|
default: () => [props.cancelText]
|
|
14896
14903
|
}), props.okText && vue.createVNode(Button, {
|
|
14897
14904
|
"type": "primary",
|
|
14905
|
+
"disabled": props.okDisabled,
|
|
14898
14906
|
"onClick": e => handleBefore(e, handleOk)
|
|
14899
14907
|
}, {
|
|
14900
14908
|
default: () => [props.okText]
|
|
@@ -17105,6 +17113,14 @@
|
|
|
17105
17113
|
type: Boolean,
|
|
17106
17114
|
default: false
|
|
17107
17115
|
},
|
|
17116
|
+
okDisabled: {
|
|
17117
|
+
type: Boolean,
|
|
17118
|
+
default: false
|
|
17119
|
+
},
|
|
17120
|
+
cancelDisabled: {
|
|
17121
|
+
type: Boolean,
|
|
17122
|
+
default: false
|
|
17123
|
+
},
|
|
17108
17124
|
/**
|
|
17109
17125
|
* 兼容portal设计, 实现Promise方式
|
|
17110
17126
|
*/
|
|
@@ -17450,11 +17466,13 @@
|
|
|
17450
17466
|
}, 'vc-modal__footer']
|
|
17451
17467
|
}, [slots['footer-extra']?.(), !slots.footer ? vue.createVNode(vue.Fragment, null, [props.cancelText && vue.createVNode(Button, {
|
|
17452
17468
|
"style": "margin-right: 8px;",
|
|
17469
|
+
"disabled": props.cancelDisabled,
|
|
17453
17470
|
"onClick": e => handleBefore(e, handleCancel)
|
|
17454
17471
|
}, {
|
|
17455
17472
|
default: () => [props.cancelText]
|
|
17456
17473
|
}), props.okText && vue.createVNode(Button, {
|
|
17457
17474
|
"type": "primary",
|
|
17475
|
+
"disabled": props.okDisabled,
|
|
17458
17476
|
"onClick": e => handleBefore(e, handleOk)
|
|
17459
17477
|
}, {
|
|
17460
17478
|
default: () => [props.okText]
|
|
@@ -18258,7 +18276,7 @@
|
|
|
18258
18276
|
},
|
|
18259
18277
|
autoWidth: {
|
|
18260
18278
|
type: Boolean,
|
|
18261
|
-
default:
|
|
18279
|
+
default: false
|
|
18262
18280
|
},
|
|
18263
18281
|
max: {
|
|
18264
18282
|
type: Number,
|
|
@@ -18510,32 +18528,34 @@
|
|
|
18510
18528
|
"class": "vc-select__loading"
|
|
18511
18529
|
}, [vue.createVNode(Spin, {
|
|
18512
18530
|
"size": 16
|
|
18513
|
-
}, null)]), vue.createVNode(
|
|
18531
|
+
}, null)]), vue.createVNode(Scroller, {
|
|
18514
18532
|
"class": "vc-select__options"
|
|
18515
|
-
},
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18523
|
-
|
|
18524
|
-
|
|
18525
|
-
|
|
18526
|
-
|
|
18527
|
-
|
|
18533
|
+
}, {
|
|
18534
|
+
default: () => [props.data ? vue.createVNode("div", null, [props.data.map(item => {
|
|
18535
|
+
let _slot;
|
|
18536
|
+
return Array.isArray(item.children) ? vue.createVNode(OptionGroup, {
|
|
18537
|
+
"value": item.value,
|
|
18538
|
+
"label": item.label,
|
|
18539
|
+
"key": item.value
|
|
18540
|
+
}, _isSlot$1(_slot = item.children.map($item => {
|
|
18541
|
+
return vue.createVNode(Option, {
|
|
18542
|
+
"key": $item.value,
|
|
18543
|
+
"value": $item.value,
|
|
18544
|
+
"label": $item.label,
|
|
18545
|
+
"disabled": $item.disabled,
|
|
18546
|
+
"filterable": $item.filterable
|
|
18547
|
+
}, null);
|
|
18548
|
+
})) ? _slot : {
|
|
18549
|
+
default: () => [_slot]
|
|
18550
|
+
}) : vue.createVNode(Option, {
|
|
18551
|
+
"key": item.value,
|
|
18552
|
+
"value": item.value,
|
|
18553
|
+
"label": item.label,
|
|
18554
|
+
"disabled": item.disabled,
|
|
18555
|
+
"filterable": item.filterable
|
|
18528
18556
|
}, null);
|
|
18529
|
-
}))
|
|
18530
|
-
|
|
18531
|
-
}) : vue.createVNode(Option, {
|
|
18532
|
-
"key": item.value,
|
|
18533
|
-
"value": item.value,
|
|
18534
|
-
"label": item.label,
|
|
18535
|
-
"disabled": item.disabled,
|
|
18536
|
-
"filterable": item.filterable
|
|
18537
|
-
}, null);
|
|
18538
|
-
})]) : slots.default?.()])]);
|
|
18557
|
+
})]) : slots.default?.()]
|
|
18558
|
+
})]);
|
|
18539
18559
|
}
|
|
18540
18560
|
});
|
|
18541
18561
|
};
|
|
@@ -39962,8 +39982,8 @@
|
|
|
39962
39982
|
scrollPosition.value = 'middle';
|
|
39963
39983
|
}
|
|
39964
39984
|
if (!props.height) {
|
|
39965
|
-
leftFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop;
|
|
39966
|
-
rightFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop;
|
|
39985
|
+
leftFixedBody.value && (leftFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop);
|
|
39986
|
+
rightFixedBody.value && (rightFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop);
|
|
39967
39987
|
}
|
|
39968
39988
|
}, 20);
|
|
39969
39989
|
const handleScollY = e => {
|
|
@@ -40443,9 +40463,10 @@
|
|
|
40443
40463
|
emit('clip', endIndex.value);
|
|
40444
40464
|
};
|
|
40445
40465
|
const handleResize = props.resize === true || props.resize === 0 ? calcPosition : debounce$1(calcPosition, props.resize || 0);
|
|
40466
|
+
let poper;
|
|
40446
40467
|
const handleMouseOver = e => {
|
|
40447
40468
|
if (endIndex.value > 0) {
|
|
40448
|
-
Popover.open({
|
|
40469
|
+
poper = Popover.open({
|
|
40449
40470
|
el: document.body,
|
|
40450
40471
|
name: 'vc-text-popover',
|
|
40451
40472
|
// 确保不重复创建
|
|
@@ -40470,6 +40491,7 @@
|
|
|
40470
40491
|
});
|
|
40471
40492
|
vue.onBeforeUnmount(() => {
|
|
40472
40493
|
props.resize !== false && Resize.off(instance.vnode.el, handleResize);
|
|
40494
|
+
poper?.destroy?.();
|
|
40473
40495
|
});
|
|
40474
40496
|
const Content = props.tag;
|
|
40475
40497
|
return () => {
|
|
@@ -40621,7 +40643,7 @@
|
|
|
40621
40643
|
return vue.createVNode(Text, {
|
|
40622
40644
|
"style": style,
|
|
40623
40645
|
"line": line,
|
|
40624
|
-
"value": value
|
|
40646
|
+
"value": `${value}`
|
|
40625
40647
|
}, null);
|
|
40626
40648
|
}
|
|
40627
40649
|
return value;
|