@deot/vc-components 1.0.59 → 1.0.60
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 +7 -7
- package/dist/index.d.ts +8 -4
- package/dist/index.iife.js +12028 -10239
- package/dist/index.js +7 -7
- package/dist/index.umd.cjs +12028 -10239
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3362,7 +3362,7 @@ const PopoverWrapper = /* @__PURE__ */ defineComponent({
|
|
|
3362
3362
|
* 同时close兼容portal设计
|
|
3363
3363
|
*/
|
|
3364
3364
|
const handleRemove = () => {
|
|
3365
|
-
!instance.isUnmounted && (emit('
|
|
3365
|
+
!instance.isUnmounted && (emit('close'), emit('portal-fulfilled'));
|
|
3366
3366
|
};
|
|
3367
3367
|
|
|
3368
3368
|
/**
|
|
@@ -4002,7 +4002,7 @@ const Cascader = /* @__PURE__ */ defineComponent({
|
|
|
4002
4002
|
separator: props.separator
|
|
4003
4003
|
});
|
|
4004
4004
|
if (!isEqualWith(currentValue.value, v)) {
|
|
4005
|
-
currentValue.value = v;
|
|
4005
|
+
currentValue.value = [...v];
|
|
4006
4006
|
}
|
|
4007
4007
|
emit('close');
|
|
4008
4008
|
};
|
|
@@ -4019,9 +4019,8 @@ const Cascader = /* @__PURE__ */ defineComponent({
|
|
|
4019
4019
|
numerable: props.numerable,
|
|
4020
4020
|
separator: props.separator
|
|
4021
4021
|
});
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
}
|
|
4022
|
+
// 不使用currentValue.value = v; 避免同步修改源数据,这里有取消操作
|
|
4023
|
+
currentValue.value = v && v.length > 0 ? [...v] : [];
|
|
4025
4024
|
}, {
|
|
4026
4025
|
immediate: true
|
|
4027
4026
|
});
|
|
@@ -5609,7 +5608,7 @@ const Counter = /* @__PURE__ */ defineComponent({
|
|
|
5609
5608
|
const duration = ref(props.duration);
|
|
5610
5609
|
const remaining = ref(duration.value);
|
|
5611
5610
|
const startVal = ref(0);
|
|
5612
|
-
const endVal = ref(separated2value(props.value, props));
|
|
5611
|
+
const endVal = ref(!props.value ? 0 : separated2value(props.value, props));
|
|
5613
5612
|
const frameVal = ref(startVal.value);
|
|
5614
5613
|
const finalEndVal = ref(null);
|
|
5615
5614
|
const useEasing = ref(!!props.easing);
|
|
@@ -5632,7 +5631,7 @@ const Counter = /* @__PURE__ */ defineComponent({
|
|
|
5632
5631
|
return typeof props.easing === 'function' ? props.easing : (t, b, c, d) => c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b;
|
|
5633
5632
|
});
|
|
5634
5633
|
const displayValue = computed(() => {
|
|
5635
|
-
if (props.value === '' || typeof props.value !== 'string' && typeof props.value !== 'number') {
|
|
5634
|
+
if (props.value === '' || typeof props.value !== 'string' && typeof props.value !== 'number' || typeof props.value === 'string' && Number.isNaN(parseFloat(props.value))) {
|
|
5636
5635
|
return props.placeholder;
|
|
5637
5636
|
}
|
|
5638
5637
|
return prints.value;
|
|
@@ -10334,6 +10333,7 @@ const DropdownMenu = /* @__PURE__ */ defineComponent({
|
|
|
10334
10333
|
const COMPONENT_NAME$18 = 'vc-dropdown-item';
|
|
10335
10334
|
const DropdownItem = /* @__PURE__ */ defineComponent({
|
|
10336
10335
|
name: COMPONENT_NAME$18,
|
|
10336
|
+
emits: ['click'],
|
|
10337
10337
|
props: {
|
|
10338
10338
|
value: {
|
|
10339
10339
|
type: [String, Number],
|