@varlet/ui 3.3.5 → 3.3.6-alpha.1720620017198

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.5",
4
+ "version": "3.3.6-alpha.1720620017198",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3697,7 +3697,7 @@
3697
3697
  },
3698
3698
  {
3699
3699
  "name": "type",
3700
- "description": "Input type, The optional value is `text` `password` `number` `tel`",
3700
+ "description": "Input type, The optional value is `text` `password` `number` `tel` `decimal`",
3701
3701
  "default": "text",
3702
3702
  "value": {
3703
3703
  "type": "string",
@@ -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.5",
4
+ "version": "3.3.6-alpha.1720620017198",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3856,7 +3856,7 @@
3856
3856
  },
3857
3857
  {
3858
3858
  "name": "type",
3859
- "description": "输入框类型, 可选值为 `text` `password` `number` `tel`",
3859
+ "description": "输入框类型, 可选值为 `text` `password` `number` `tel` `decimal`",
3860
3860
  "default": "text",
3861
3861
  "value": {
3862
3862
  "type": "string",
package/lib/varlet.cjs.js CHANGED
@@ -747,6 +747,7 @@ function useValidation() {
747
747
  return true;
748
748
  }
749
749
  const resArr = yield Promise.all(rules.map((rule) => rule(value, apis)));
750
+ resetValidation();
750
751
  return !resArr.some((res) => {
751
752
  if (res !== true) {
752
753
  errorMessage.value = String(res);
@@ -16770,7 +16771,7 @@ function __render__$D(_ctx, _cache) {
16770
16771
  maxlength: _ctx.maxlength,
16771
16772
  rows: _ctx.rows,
16772
16773
  enterkeyhint: _ctx.enterkeyhint,
16773
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
16774
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
16774
16775
  style: vue.normalizeStyle({
16775
16776
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
16776
16777
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -16803,7 +16804,7 @@ function __render__$D(_ctx, _cache) {
16803
16804
  placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
16804
16805
  maxlength: _ctx.maxlength,
16805
16806
  enterkeyhint: _ctx.enterkeyhint,
16806
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
16807
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
16807
16808
  style: vue.normalizeStyle({
16808
16809
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
16809
16810
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -28937,7 +28938,7 @@ withInstall(stdin_default$1);
28937
28938
  withPropsDefaultsSetter(stdin_default$1, props);
28938
28939
  const _WatermarkComponent = stdin_default$1;
28939
28940
  var stdin_default = stdin_default$1;
28940
- const version = "3.3.5";
28941
+ const version = "3.3.6-alpha.1720620017198";
28941
28942
  function install(app) {
28942
28943
  stdin_default$5G.install && app.use(stdin_default$5G);
28943
28944
  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.5",
3
+ "version": "3.3.6-alpha.1720620017198",
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.3.5",
52
- "@varlet/shared": "3.3.5",
53
- "@varlet/use": "3.3.5"
51
+ "@varlet/icons": "3.3.6-alpha.1720620017198",
52
+ "@varlet/shared": "3.3.6-alpha.1720620017198",
53
+ "@varlet/use": "3.3.6-alpha.1720620017198"
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.5",
68
- "@varlet/touch-emulator": "3.3.5",
69
- "@varlet/cli": "3.3.5"
67
+ "@varlet/ui": "3.3.6-alpha.1720620017198",
68
+ "@varlet/cli": "3.3.6-alpha.1720620017198",
69
+ "@varlet/touch-emulator": "3.3.6-alpha.1720620017198"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "varlet-cli dev",