@varlet/ui 3.2.5 → 3.2.6-alpha.1713972861390
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/es/action-sheet/style/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +2 -2
- package/es/progress/Progress.mjs +2 -2
- package/es/varlet.esm.js +133 -131
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +10 -6
- package/package.json +7 -7
- package/umd/varlet.js +2 -2
package/lib/varlet.cjs.js
CHANGED
|
@@ -559,11 +559,15 @@ function useTouch() {
|
|
|
559
559
|
isReachBottom
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
const id = vue.ref();
|
|
562
|
+
function useClientId() {
|
|
564
563
|
const instance = vue.getCurrentInstance();
|
|
565
564
|
const name2 = kebabCase(instance.type.name);
|
|
566
|
-
id
|
|
565
|
+
const id = vue.ref(process.env.NODE_ENV === "test" ? `${name2}-mock-id` : "");
|
|
566
|
+
vue.onMounted(() => {
|
|
567
|
+
if (process.env.NODE_ENV !== "test") {
|
|
568
|
+
id.value = `${name2}-${instance.uid}`;
|
|
569
|
+
}
|
|
570
|
+
});
|
|
567
571
|
return id;
|
|
568
572
|
}
|
|
569
573
|
function useWindowSize(options = {}) {
|
|
@@ -16630,7 +16634,7 @@ const __sfc__$E = vue.defineComponent({
|
|
|
16630
16634
|
},
|
|
16631
16635
|
props: props$A,
|
|
16632
16636
|
setup(props2) {
|
|
16633
|
-
const id =
|
|
16637
|
+
const id = useClientId();
|
|
16634
16638
|
const el = vue.ref(null);
|
|
16635
16639
|
const isFocusing = vue.ref(false);
|
|
16636
16640
|
const isComposing = vue.ref(false);
|
|
@@ -19497,7 +19501,7 @@ const __sfc__$u = vue.defineComponent({
|
|
|
19497
19501
|
name: name$n,
|
|
19498
19502
|
props: props$n,
|
|
19499
19503
|
setup(props2) {
|
|
19500
|
-
const id =
|
|
19504
|
+
const id = useClientId();
|
|
19501
19505
|
const linearProps = vue.computed(() => {
|
|
19502
19506
|
const value = toNumber(props2.value);
|
|
19503
19507
|
const width = clamp$1(value, MIN, MAX);
|
|
@@ -28489,7 +28493,7 @@ withInstall(stdin_default$1);
|
|
|
28489
28493
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
28490
28494
|
const _WatermarkComponent = stdin_default$1;
|
|
28491
28495
|
var stdin_default = stdin_default$1;
|
|
28492
|
-
const version = "3.2.
|
|
28496
|
+
const version = "3.2.6-alpha.1713972861390";
|
|
28493
28497
|
function install(app) {
|
|
28494
28498
|
stdin_default$5E.install && app.use(stdin_default$5E);
|
|
28495
28499
|
stdin_default$5C.install && app.use(stdin_default$5C);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6-alpha.1713972861390",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@popperjs/core": "^2.11.6",
|
|
49
49
|
"dayjs": "^1.10.4",
|
|
50
50
|
"decimal.js": "^10.2.1",
|
|
51
|
-
"@varlet/icons": "3.2.
|
|
52
|
-
"@varlet/
|
|
53
|
-
"@varlet/
|
|
51
|
+
"@varlet/icons": "3.2.6-alpha.1713972861390",
|
|
52
|
+
"@varlet/shared": "3.2.6-alpha.1713972861390",
|
|
53
|
+
"@varlet/use": "3.2.6-alpha.1713972861390"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@vue/runtime-core": "3.4.21",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"typescript": "^5.1.5",
|
|
67
67
|
"vue": "3.4.21",
|
|
68
68
|
"vue-router": "4.2.0",
|
|
69
|
-
"@varlet/cli": "3.2.
|
|
70
|
-
"@varlet/
|
|
71
|
-
"@varlet/
|
|
69
|
+
"@varlet/cli": "3.2.6-alpha.1713972861390",
|
|
70
|
+
"@varlet/touch-emulator": "3.2.6-alpha.1713972861390",
|
|
71
|
+
"@varlet/ui": "3.2.6-alpha.1713972861390"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "varlet-cli dev",
|