@varlet/ui 3.3.4 → 3.3.5

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.3.4",
4
+ "version": "3.3.5",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -5998,7 +5998,7 @@
5998
5998
  }
5999
5999
  },
6000
6000
  {
6001
- "name": "options _**3.3.4**_",
6001
+ "name": "options",
6002
6002
  "description": "Specifies options",
6003
6003
  "default": "-",
6004
6004
  "value": {
@@ -6007,7 +6007,7 @@
6007
6007
  }
6008
6008
  },
6009
6009
  {
6010
- "name": "label-key _**3.3.4**_",
6010
+ "name": "label-key",
6011
6011
  "description": "As the key that uniquely identifies label",
6012
6012
  "default": "label",
6013
6013
  "value": {
@@ -6016,7 +6016,7 @@
6016
6016
  }
6017
6017
  },
6018
6018
  {
6019
- "name": "value-key _**3.3.4**_",
6019
+ "name": "value-key",
6020
6020
  "description": "As the key that uniquely identifies value",
6021
6021
  "default": "value",
6022
6022
  "value": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.3.4",
4
+ "version": "3.3.5",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -6329,7 +6329,7 @@
6329
6329
  }
6330
6330
  },
6331
6331
  {
6332
- "name": "options _**3.3.4**_",
6332
+ "name": "options",
6333
6333
  "description": "指定可选项",
6334
6334
  "default": "-",
6335
6335
  "value": {
@@ -6338,7 +6338,7 @@
6338
6338
  }
6339
6339
  },
6340
6340
  {
6341
- "name": "label-key _**3.3.4**_",
6341
+ "name": "label-key",
6342
6342
  "description": "作为 label 唯一标识的键名",
6343
6343
  "default": "label",
6344
6344
  "value": {
@@ -6347,7 +6347,7 @@
6347
6347
  }
6348
6348
  },
6349
6349
  {
6350
- "name": "value-key _**3.3.4**_",
6350
+ "name": "value-key",
6351
6351
  "description": "作为 value 唯一标识的键名",
6352
6352
  "default": "value",
6353
6353
  "value": {
package/lib/varlet.cjs.js CHANGED
@@ -16936,7 +16936,7 @@ const __sfc__$F = vue.defineComponent({
16936
16936
  if (props2.type === "number") {
16937
16937
  value = formatNumber(value);
16938
16938
  }
16939
- const targetValue = withMaxlength(withTrim(value));
16939
+ const targetValue = withMaxlength(value);
16940
16940
  if (targetValue === props2.modelValue) {
16941
16941
  target.value = targetValue;
16942
16942
  }
@@ -16962,7 +16962,10 @@ const __sfc__$F = vue.defineComponent({
16962
16962
  validateWithTrigger("onInput");
16963
16963
  }
16964
16964
  function handleChange(e) {
16965
- const value = updateValue(e);
16965
+ const value = withTrim(updateValue(e));
16966
+ if (props2.modelModifiers.trim) {
16967
+ call(props2["onUpdate:modelValue"], value);
16968
+ }
16966
16969
  call(props2.onChange, value, e);
16967
16970
  validateWithTrigger("onChange");
16968
16971
  }
@@ -28934,7 +28937,7 @@ withInstall(stdin_default$1);
28934
28937
  withPropsDefaultsSetter(stdin_default$1, props);
28935
28938
  const _WatermarkComponent = stdin_default$1;
28936
28939
  var stdin_default = stdin_default$1;
28937
- const version = "3.3.4";
28940
+ const version = "3.3.5";
28938
28941
  function install(app) {
28939
28942
  stdin_default$5G.install && app.use(stdin_default$5G);
28940
28943
  stdin_default$5E.install && app.use(stdin_default$5E);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.3.4",
3
+ "version": "3.3.5",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "author": "haoziqaq <357229046@qq.com>",
28
28
  "license": "MIT",
29
- "homepage": "https://varlet.pages.dev",
29
+ "homepage": "https://varletjs.org",
30
30
  "repository": {
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/varletjs/varlet.git"
@@ -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.3.4",
52
- "@varlet/shared": "3.3.4",
53
- "@varlet/use": "3.3.4"
51
+ "@varlet/icons": "3.3.5",
52
+ "@varlet/shared": "3.3.5",
53
+ "@varlet/use": "3.3.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.21",
@@ -64,9 +64,9 @@
64
64
  "typescript": "^5.1.5",
65
65
  "vue": "3.4.21",
66
66
  "vue-router": "4.2.0",
67
- "@varlet/ui": "3.3.4",
68
- "@varlet/cli": "3.3.4",
69
- "@varlet/touch-emulator": "3.3.4"
67
+ "@varlet/ui": "3.3.5",
68
+ "@varlet/touch-emulator": "3.3.5",
69
+ "@varlet/cli": "3.3.5"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "varlet-cli dev",
@@ -51,9 +51,9 @@ export class CheckboxGroup extends VarComponent {
51
51
 
52
52
  reset(): void
53
53
 
54
- checkAll(): any
54
+ checkAll(): any[]
55
55
 
56
- inverseAll(): any
56
+ inverseAll(): any[]
57
57
  }
58
58
 
59
59
  export class _CheckboxGroupComponent extends CheckboxGroup {}