vant 3.6.6 → 3.6.7

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.
@@ -200,7 +200,12 @@ var stdin_default = defineComponent({
200
200
  value = props.formatter(value);
201
201
  }
202
202
  if (inputRef.value && inputRef.value.value !== value) {
203
+ const {
204
+ selectionStart,
205
+ selectionEnd
206
+ } = inputRef.value;
203
207
  inputRef.value.value = value;
208
+ inputRef.value.setSelectionRange(selectionStart, selectionEnd);
204
209
  }
205
210
  if (value !== props.modelValue) {
206
211
  emit("update:modelValue", value);
package/es/index.d.ts CHANGED
@@ -91,4 +91,4 @@ declare namespace _default {
91
91
  }
92
92
  export default _default;
93
93
  export function install(app: any): void;
94
- export const version: "3.6.6";
94
+ export const version: "3.6.7";
package/es/index.mjs CHANGED
@@ -84,7 +84,7 @@ import { Tag } from "./tag/index.mjs";
84
84
  import { Toast } from "./toast/index.mjs";
85
85
  import { TreeSelect } from "./tree-select/index.mjs";
86
86
  import { Uploader } from "./uploader/index.mjs";
87
- const version = "3.6.6";
87
+ const version = "3.6.7";
88
88
  function install(app) {
89
89
  const components = [
90
90
  ActionBar,
@@ -223,7 +223,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
223
223
  value = props.formatter(value);
224
224
  }
225
225
  if (inputRef.value && inputRef.value.value !== value) {
226
+ const {
227
+ selectionStart,
228
+ selectionEnd
229
+ } = inputRef.value;
226
230
  inputRef.value.value = value;
231
+ inputRef.value.setSelectionRange(selectionStart, selectionEnd);
227
232
  }
228
233
  if (value !== props.modelValue) {
229
234
  emit("update:modelValue", value);
package/lib/index.d.ts CHANGED
@@ -91,4 +91,4 @@ declare namespace _default {
91
91
  }
92
92
  export default _default;
93
93
  export function install(app: any): void;
94
- export const version: "3.6.6";
94
+ export const version: "3.6.7";
package/lib/index.js CHANGED
@@ -196,7 +196,7 @@ __reExport(stdin_exports, require("./tag"), module.exports);
196
196
  __reExport(stdin_exports, require("./toast"), module.exports);
197
197
  __reExport(stdin_exports, require("./tree-select"), module.exports);
198
198
  __reExport(stdin_exports, require("./uploader"), module.exports);
199
- const version = "3.6.6";
199
+ const version = "3.6.7";
200
200
  function install(app) {
201
201
  const components = [
202
202
  import_action_bar.ActionBar,
package/lib/vant.cjs.js CHANGED
@@ -2854,7 +2854,12 @@ var stdin_default$1m = vue.defineComponent({
2854
2854
  value = props.formatter(value);
2855
2855
  }
2856
2856
  if (inputRef.value && inputRef.value.value !== value) {
2857
+ const {
2858
+ selectionStart,
2859
+ selectionEnd
2860
+ } = inputRef.value;
2857
2861
  inputRef.value.value = value;
2862
+ inputRef.value.setSelectionRange(selectionStart, selectionEnd);
2858
2863
  }
2859
2864
  if (value !== props.modelValue) {
2860
2865
  emit("update:modelValue", value);
@@ -14956,7 +14961,7 @@ const Lazyload = {
14956
14961
  });
14957
14962
  }
14958
14963
  };
14959
- const version = "3.6.6";
14964
+ const version = "3.6.7";
14960
14965
  function install(app) {
14961
14966
  const components = [
14962
14967
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -2852,7 +2852,12 @@ var stdin_default$1m = defineComponent({
2852
2852
  value = props.formatter(value);
2853
2853
  }
2854
2854
  if (inputRef.value && inputRef.value.value !== value) {
2855
+ const {
2856
+ selectionStart,
2857
+ selectionEnd
2858
+ } = inputRef.value;
2855
2859
  inputRef.value.value = value;
2860
+ inputRef.value.setSelectionRange(selectionStart, selectionEnd);
2856
2861
  }
2857
2862
  if (value !== props.modelValue) {
2858
2863
  emit("update:modelValue", value);
@@ -14954,7 +14959,7 @@ const Lazyload = {
14954
14959
  });
14955
14960
  }
14956
14961
  };
14957
- const version = "3.6.6";
14962
+ const version = "3.6.7";
14958
14963
  function install(app) {
14959
14964
  const components = [
14960
14965
  ActionBar,
package/lib/vant.js CHANGED
@@ -3210,7 +3210,12 @@
3210
3210
  value = props.formatter(value);
3211
3211
  }
3212
3212
  if (inputRef.value && inputRef.value.value !== value) {
3213
+ const {
3214
+ selectionStart,
3215
+ selectionEnd
3216
+ } = inputRef.value;
3213
3217
  inputRef.value.value = value;
3218
+ inputRef.value.setSelectionRange(selectionStart, selectionEnd);
3214
3219
  }
3215
3220
  if (value !== props.modelValue) {
3216
3221
  emit("update:modelValue", value);
@@ -16153,7 +16158,7 @@
16153
16158
  });
16154
16159
  }
16155
16160
  };
16156
- const version = "3.6.6";
16161
+ const version = "3.6.7";
16157
16162
  function install(app) {
16158
16163
  const components = [
16159
16164
  ActionBar,