@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.cjs
CHANGED
|
@@ -3384,7 +3384,7 @@ const PopoverWrapper = /* @__PURE__ */ vue.defineComponent({
|
|
|
3384
3384
|
* 同时close兼容portal设计
|
|
3385
3385
|
*/
|
|
3386
3386
|
const handleRemove = () => {
|
|
3387
|
-
!instance.isUnmounted && (emit('
|
|
3387
|
+
!instance.isUnmounted && (emit('close'), emit('portal-fulfilled'));
|
|
3388
3388
|
};
|
|
3389
3389
|
|
|
3390
3390
|
/**
|
|
@@ -4024,7 +4024,7 @@ const Cascader = /* @__PURE__ */ vue.defineComponent({
|
|
|
4024
4024
|
separator: props.separator
|
|
4025
4025
|
});
|
|
4026
4026
|
if (!lodashEs.isEqualWith(currentValue.value, v)) {
|
|
4027
|
-
currentValue.value = v;
|
|
4027
|
+
currentValue.value = [...v];
|
|
4028
4028
|
}
|
|
4029
4029
|
emit('close');
|
|
4030
4030
|
};
|
|
@@ -4041,9 +4041,8 @@ const Cascader = /* @__PURE__ */ vue.defineComponent({
|
|
|
4041
4041
|
numerable: props.numerable,
|
|
4042
4042
|
separator: props.separator
|
|
4043
4043
|
});
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
}
|
|
4044
|
+
// 不使用currentValue.value = v; 避免同步修改源数据,这里有取消操作
|
|
4045
|
+
currentValue.value = v && v.length > 0 ? [...v] : [];
|
|
4047
4046
|
}, {
|
|
4048
4047
|
immediate: true
|
|
4049
4048
|
});
|
|
@@ -5631,7 +5630,7 @@ const Counter = /* @__PURE__ */ vue.defineComponent({
|
|
|
5631
5630
|
const duration = vue.ref(props.duration);
|
|
5632
5631
|
const remaining = vue.ref(duration.value);
|
|
5633
5632
|
const startVal = vue.ref(0);
|
|
5634
|
-
const endVal = vue.ref(separated2value(props.value, props));
|
|
5633
|
+
const endVal = vue.ref(!props.value ? 0 : separated2value(props.value, props));
|
|
5635
5634
|
const frameVal = vue.ref(startVal.value);
|
|
5636
5635
|
const finalEndVal = vue.ref(null);
|
|
5637
5636
|
const useEasing = vue.ref(!!props.easing);
|
|
@@ -5654,7 +5653,7 @@ const Counter = /* @__PURE__ */ vue.defineComponent({
|
|
|
5654
5653
|
return typeof props.easing === 'function' ? props.easing : (t, b, c, d) => c * (-Math.pow(2, -10 * t / d) + 1) * 1024 / 1023 + b;
|
|
5655
5654
|
});
|
|
5656
5655
|
const displayValue = vue.computed(() => {
|
|
5657
|
-
if (props.value === '' || typeof props.value !== 'string' && typeof props.value !== 'number') {
|
|
5656
|
+
if (props.value === '' || typeof props.value !== 'string' && typeof props.value !== 'number' || typeof props.value === 'string' && Number.isNaN(parseFloat(props.value))) {
|
|
5658
5657
|
return props.placeholder;
|
|
5659
5658
|
}
|
|
5660
5659
|
return prints.value;
|
|
@@ -10356,6 +10355,7 @@ const DropdownMenu = /* @__PURE__ */ vue.defineComponent({
|
|
|
10356
10355
|
const COMPONENT_NAME$18 = 'vc-dropdown-item';
|
|
10357
10356
|
const DropdownItem = /* @__PURE__ */ vue.defineComponent({
|
|
10358
10357
|
name: COMPONENT_NAME$18,
|
|
10358
|
+
emits: ['click'],
|
|
10359
10359
|
props: {
|
|
10360
10360
|
value: {
|
|
10361
10361
|
type: [String, Number],
|
package/dist/index.d.ts
CHANGED
|
@@ -1783,7 +1783,7 @@ closable: {
|
|
|
1783
1783
|
type: BooleanConstructor;
|
|
1784
1784
|
default: boolean;
|
|
1785
1785
|
};
|
|
1786
|
-
}>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
1786
|
+
}>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "click"[], "click", PublicProps, Readonly<ExtractPropTypes< {
|
|
1787
1787
|
value: {
|
|
1788
1788
|
type: (StringConstructor | NumberConstructor)[];
|
|
1789
1789
|
value: undefined;
|
|
@@ -1808,7 +1808,9 @@ closable: {
|
|
|
1808
1808
|
type: BooleanConstructor;
|
|
1809
1809
|
default: boolean;
|
|
1810
1810
|
};
|
|
1811
|
-
}>> & Readonly<{
|
|
1811
|
+
}>> & Readonly<{
|
|
1812
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
1813
|
+
}>, {
|
|
1812
1814
|
disabled: boolean;
|
|
1813
1815
|
closable: boolean;
|
|
1814
1816
|
selected: boolean;
|
|
@@ -4563,7 +4565,7 @@ closable: {
|
|
|
4563
4565
|
type: BooleanConstructor;
|
|
4564
4566
|
default: boolean;
|
|
4565
4567
|
};
|
|
4566
|
-
}>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
4568
|
+
}>, () => JSX_2.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "click"[], "click", PublicProps, Readonly<ExtractPropTypes< {
|
|
4567
4569
|
value: {
|
|
4568
4570
|
type: (StringConstructor | NumberConstructor)[];
|
|
4569
4571
|
value: undefined;
|
|
@@ -4588,7 +4590,9 @@ closable: {
|
|
|
4588
4590
|
type: BooleanConstructor;
|
|
4589
4591
|
default: boolean;
|
|
4590
4592
|
};
|
|
4591
|
-
}>> & Readonly<{
|
|
4593
|
+
}>> & Readonly<{
|
|
4594
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
4595
|
+
}>, {
|
|
4592
4596
|
disabled: boolean;
|
|
4593
4597
|
closable: boolean;
|
|
4594
4598
|
selected: boolean;
|