zartui 3.1.26 → 3.1.27

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/lib/zartui.cjs.js CHANGED
@@ -14580,9 +14580,8 @@ var stdin_default$z = vue.defineComponent({
14580
14580
  slots
14581
14581
  }) {
14582
14582
  const currentOptions2 = vue.ref(props.options);
14583
- vue.watch(props.options, (newVal) => {
14584
- currentOptions2.value = newVal;
14585
- });
14583
+ const currentSelectedIndex = vue.computed(() => props.selectedIndex);
14584
+ const currentSelectedValue = vue.computed(() => props.selectedValue);
14586
14585
  const confirmIndexes = vue.ref(props.selectedIndex);
14587
14586
  const confirmValues = vue.ref(props.selectedValue);
14588
14587
  const resetOptions = (props2) => {
@@ -14634,8 +14633,8 @@ var stdin_default$z = vue.defineComponent({
14634
14633
  if (newValue !== props.showPicker) {
14635
14634
  emit("update:showPicker", newValue);
14636
14635
  }
14637
- confirmIndexes.value = deepClone(props.selectedIndex);
14638
- confirmValues.value = deepClone(props.selectedValue);
14636
+ confirmIndexes.value = deepClone(currentSelectedIndex.value);
14637
+ confirmValues.value = deepClone(currentSelectedValue.value);
14639
14638
  getIndexesByValues();
14640
14639
  });
14641
14640
  vue.watch(() => props.showPicker, (newValue) => {
@@ -20542,7 +20541,7 @@ const Lazyload = {
20542
20541
  });
20543
20542
  }
20544
20543
  };
20545
- const version = "3.1.26";
20544
+ const version = "3.1.27";
20546
20545
  function install(app) {
20547
20546
  const components = [
20548
20547
  ActionSheet,
package/lib/zartui.es.js CHANGED
@@ -14578,9 +14578,8 @@ var stdin_default$z = defineComponent({
14578
14578
  slots
14579
14579
  }) {
14580
14580
  const currentOptions2 = ref(props.options);
14581
- watch(props.options, (newVal) => {
14582
- currentOptions2.value = newVal;
14583
- });
14581
+ const currentSelectedIndex = computed(() => props.selectedIndex);
14582
+ const currentSelectedValue = computed(() => props.selectedValue);
14584
14583
  const confirmIndexes = ref(props.selectedIndex);
14585
14584
  const confirmValues = ref(props.selectedValue);
14586
14585
  const resetOptions = (props2) => {
@@ -14632,8 +14631,8 @@ var stdin_default$z = defineComponent({
14632
14631
  if (newValue !== props.showPicker) {
14633
14632
  emit("update:showPicker", newValue);
14634
14633
  }
14635
- confirmIndexes.value = deepClone(props.selectedIndex);
14636
- confirmValues.value = deepClone(props.selectedValue);
14634
+ confirmIndexes.value = deepClone(currentSelectedIndex.value);
14635
+ confirmValues.value = deepClone(currentSelectedValue.value);
14637
14636
  getIndexesByValues();
14638
14637
  });
14639
14638
  watch(() => props.showPicker, (newValue) => {
@@ -20540,7 +20539,7 @@ const Lazyload = {
20540
20539
  });
20541
20540
  }
20542
20541
  };
20543
- const version = "3.1.26";
20542
+ const version = "3.1.27";
20544
20543
  function install(app) {
20545
20544
  const components = [
20546
20545
  ActionSheet,
package/lib/zartui.js CHANGED
@@ -16325,9 +16325,8 @@
16325
16325
  slots
16326
16326
  }) {
16327
16327
  const currentOptions2 = vue.ref(props.options);
16328
- vue.watch(props.options, (newVal) => {
16329
- currentOptions2.value = newVal;
16330
- });
16328
+ const currentSelectedIndex = vue.computed(() => props.selectedIndex);
16329
+ const currentSelectedValue = vue.computed(() => props.selectedValue);
16331
16330
  const confirmIndexes = vue.ref(props.selectedIndex);
16332
16331
  const confirmValues = vue.ref(props.selectedValue);
16333
16332
  const resetOptions = (props2) => {
@@ -16379,8 +16378,8 @@
16379
16378
  if (newValue !== props.showPicker) {
16380
16379
  emit("update:showPicker", newValue);
16381
16380
  }
16382
- confirmIndexes.value = deepClone(props.selectedIndex);
16383
- confirmValues.value = deepClone(props.selectedValue);
16381
+ confirmIndexes.value = deepClone(currentSelectedIndex.value);
16382
+ confirmValues.value = deepClone(currentSelectedValue.value);
16384
16383
  getIndexesByValues();
16385
16384
  });
16386
16385
  vue.watch(() => props.showPicker, (newValue) => {
@@ -24540,7 +24539,7 @@
24540
24539
  });
24541
24540
  }
24542
24541
  };
24543
- const version = "3.1.26";
24542
+ const version = "3.1.27";
24544
24543
  function install(app) {
24545
24544
  const components = [
24546
24545
  ActionSheet,