@varlet/ui 3.2.5 → 3.2.6-alpha.1713858357643
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/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/snackbar/style/index.mjs +1 -1
- 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/es/index.bundle.mjs
CHANGED
|
@@ -262,7 +262,7 @@ import './tooltip/style/index.mjs'
|
|
|
262
262
|
import './uploader/style/index.mjs'
|
|
263
263
|
import './watermark/style/index.mjs'
|
|
264
264
|
|
|
265
|
-
const version = '3.2.
|
|
265
|
+
const version = '3.2.6-alpha.1713858357643'
|
|
266
266
|
|
|
267
267
|
function install(app) {
|
|
268
268
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -174,7 +174,7 @@ export * from './tooltip/index.mjs'
|
|
|
174
174
|
export * from './uploader/index.mjs'
|
|
175
175
|
export * from './watermark/index.mjs'
|
|
176
176
|
|
|
177
|
-
const version = '3.2.
|
|
177
|
+
const version = '3.2.6-alpha.1713858357643'
|
|
178
178
|
|
|
179
179
|
function install(app) {
|
|
180
180
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/input/Input.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { props } from "./props.mjs";
|
|
|
5
5
|
import { isEmpty, preventDefault, toNumber, call } from "@varlet/shared";
|
|
6
6
|
import { useValidation, createNamespace } from "../utils/components.mjs";
|
|
7
7
|
import { useForm } from "../form/provide.mjs";
|
|
8
|
-
import { onSmartMounted,
|
|
8
|
+
import { onSmartMounted, useClientId } from "@varlet/use";
|
|
9
9
|
const { name, n, classes } = createNamespace("input");
|
|
10
10
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, createSlots as _createSlots, createVNode as _createVNode, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
11
11
|
const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
|
|
@@ -177,7 +177,7 @@ const __sfc__ = defineComponent({
|
|
|
177
177
|
},
|
|
178
178
|
props,
|
|
179
179
|
setup(props2) {
|
|
180
|
-
const id =
|
|
180
|
+
const id = useClientId();
|
|
181
181
|
const el = ref(null);
|
|
182
182
|
const isFocusing = ref(false);
|
|
183
183
|
const isComposing = ref(false);
|
package/es/progress/Progress.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed } from "vue";
|
|
2
2
|
import { props } from "./props.mjs";
|
|
3
3
|
import { isPlainObject, toNumber, clamp } from "@varlet/shared";
|
|
4
|
-
import {
|
|
4
|
+
import { useClientId } from "@varlet/use";
|
|
5
5
|
import { toSizeUnit, toPxNum } from "../utils/elements.mjs";
|
|
6
6
|
import { createNamespace } from "../utils/components.mjs";
|
|
7
7
|
const MAX = 100;
|
|
@@ -195,7 +195,7 @@ const __sfc__ = defineComponent({
|
|
|
195
195
|
name,
|
|
196
196
|
props,
|
|
197
197
|
setup(props2) {
|
|
198
|
-
const id =
|
|
198
|
+
const id = useClientId();
|
|
199
199
|
const linearProps = computed(() => {
|
|
200
200
|
const value = toNumber(props2.value);
|
|
201
201
|
const width = clamp(value, MIN, MAX);
|