@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.
@@ -265,7 +265,7 @@ import './tooltip/style/index.mjs'
265
265
  import './uploader/style/index.mjs'
266
266
  import './watermark/style/index.mjs'
267
267
 
268
- const version = '3.3.5'
268
+ const version = '3.3.6-alpha.1720620017198'
269
269
 
270
270
  function install(app) {
271
271
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -176,7 +176,7 @@ export * from './tooltip/index.mjs'
176
176
  export * from './uploader/index.mjs'
177
177
  export * from './watermark/index.mjs'
178
178
 
179
- const version = '3.3.5'
179
+ const version = '3.3.6-alpha.1720620017198'
180
180
 
181
181
  function install(app) {
182
182
  ActionSheet.install && app.use(ActionSheet)
@@ -86,7 +86,7 @@ function __render__(_ctx, _cache) {
86
86
  maxlength: _ctx.maxlength,
87
87
  rows: _ctx.rows,
88
88
  enterkeyhint: _ctx.enterkeyhint,
89
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
89
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
90
90
  style: _normalizeStyle({
91
91
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
92
92
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -119,7 +119,7 @@ function __render__(_ctx, _cache) {
119
119
  placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
120
120
  maxlength: _ctx.maxlength,
121
121
  enterkeyhint: _ctx.enterkeyhint,
122
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
122
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
123
123
  style: _normalizeStyle({
124
124
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
125
125
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -129,6 +129,7 @@ function useValidation() {
129
129
  return true;
130
130
  }
131
131
  const resArr = yield Promise.all(rules.map((rule) => rule(value, apis)));
132
+ resetValidation();
132
133
  return !resArr.some((res) => {
133
134
  if (res !== true) {
134
135
  errorMessage.value = String(res);