@varlet/ui 3.10.2 → 3.10.3
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/select/Select.mjs +9 -5
- package/es/snackbar/style/index.mjs +1 -1
- package/es/varlet.esm.js +723 -723
- 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 +5 -5
package/lib/varlet.cjs.js
CHANGED
|
@@ -24315,7 +24315,7 @@ const __sfc__$i = vue.defineComponent({
|
|
|
24315
24315
|
}
|
|
24316
24316
|
}
|
|
24317
24317
|
function handleClear() {
|
|
24318
|
-
const { disabled, readonly, multiple: multiple2, clearable, onClear } = props2;
|
|
24318
|
+
const { disabled, readonly, multiple: multiple2, clearable, onClear, onChange } = props2;
|
|
24319
24319
|
if ((form == null ? void 0 : form.disabled.value) || (form == null ? void 0 : form.readonly.value) || disabled || readonly || !clearable) {
|
|
24320
24320
|
return;
|
|
24321
24321
|
}
|
|
@@ -24323,6 +24323,8 @@ const __sfc__$i = vue.defineComponent({
|
|
|
24323
24323
|
call(props2["onUpdate:modelValue"], changedModelValue);
|
|
24324
24324
|
call(onClear, changedModelValue);
|
|
24325
24325
|
validateWithTrigger("onClear");
|
|
24326
|
+
call(onChange, changedModelValue);
|
|
24327
|
+
validateWithTrigger("onChange");
|
|
24326
24328
|
}
|
|
24327
24329
|
function handleClick(e) {
|
|
24328
24330
|
const { disabled, onClick } = props2;
|
|
@@ -24333,20 +24335,22 @@ const __sfc__$i = vue.defineComponent({
|
|
|
24333
24335
|
validateWithTrigger("onClick");
|
|
24334
24336
|
}
|
|
24335
24337
|
function handleClose(text) {
|
|
24336
|
-
const { disabled, readonly, modelValue, onClose } = props2;
|
|
24338
|
+
const { disabled, readonly, modelValue, onClose, onChange } = props2;
|
|
24337
24339
|
if ((form == null ? void 0 : form.disabled.value) || (form == null ? void 0 : form.readonly.value) || disabled || readonly) {
|
|
24338
24340
|
return;
|
|
24339
24341
|
}
|
|
24340
24342
|
const option = options.find(({ label: label2 }) => label2.value === text);
|
|
24341
|
-
const
|
|
24343
|
+
const changedModelValue = modelValue.filter(
|
|
24342
24344
|
(value) => {
|
|
24343
24345
|
var _a;
|
|
24344
24346
|
return value !== ((_a = option.value.value) != null ? _a : option.label.value);
|
|
24345
24347
|
}
|
|
24346
24348
|
);
|
|
24347
|
-
call(props2["onUpdate:modelValue"],
|
|
24348
|
-
call(onClose,
|
|
24349
|
+
call(props2["onUpdate:modelValue"], changedModelValue);
|
|
24350
|
+
call(onClose, changedModelValue);
|
|
24349
24351
|
validateWithTrigger("onClose");
|
|
24352
|
+
call(onChange, changedModelValue);
|
|
24353
|
+
validateWithTrigger("onChange");
|
|
24350
24354
|
}
|
|
24351
24355
|
function focus() {
|
|
24352
24356
|
offsetY.value = toPxNum(props2.offsetY);
|
|
@@ -32013,7 +32017,7 @@ withInstall(stdin_default$1);
|
|
|
32013
32017
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32014
32018
|
const _WatermarkComponent = stdin_default$1;
|
|
32015
32019
|
var stdin_default = stdin_default$1;
|
|
32016
|
-
const version = "3.10.
|
|
32020
|
+
const version = "3.10.3";
|
|
32017
32021
|
function install(app) {
|
|
32018
32022
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32019
32023
|
stdin_default$5_.install && app.use(stdin_default$5_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.3",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/icons": "3.10.
|
|
48
|
-
"@varlet/shared": "3.10.
|
|
49
|
-
"@varlet/use": "3.10.
|
|
47
|
+
"@varlet/icons": "3.10.3",
|
|
48
|
+
"@varlet/shared": "3.10.3",
|
|
49
|
+
"@varlet/use": "3.10.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^18.7.18",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.13",
|
|
63
63
|
"vue-router": "4.5.0",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/cli": "3.10.
|
|
66
|
-
"@varlet/ui": "3.10.
|
|
67
|
-
"@varlet/touch-emulator": "3.10.
|
|
65
|
+
"@varlet/cli": "3.10.3",
|
|
66
|
+
"@varlet/ui": "3.10.3",
|
|
67
|
+
"@varlet/touch-emulator": "3.10.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|