zartui 3.1.21 → 3.1.22

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
@@ -11141,7 +11141,11 @@ var stdin_default$S = vue.defineComponent({
11141
11141
  }
11142
11142
  emitChange && emit("change", checkedList.value);
11143
11143
  };
11144
- const selected = (item) => {
11144
+ const selected = (item, index) => {
11145
+ if (showSub(item) && props.disableParent && !item.disabled) {
11146
+ toNextLevel(item, index);
11147
+ return;
11148
+ }
11145
11149
  if (showSub(item) && !props.showParentChecked) {
11146
11150
  return;
11147
11151
  }
@@ -11334,7 +11338,7 @@ var stdin_default$S = vue.defineComponent({
11334
11338
  selected: !props.multiple && choosedValue.value === item[props.valueKey]
11335
11339
  }),
11336
11340
  "onClick": () => {
11337
- selected(item);
11341
+ selected(item, index);
11338
11342
  }
11339
11343
  }, [slots.content ? slots.content(item) : item[props.textKey]]), vue.createVNode("div", {
11340
11344
  "class": bem$A("item-nav"),
@@ -19849,7 +19853,7 @@ const Lazyload = {
19849
19853
  });
19850
19854
  }
19851
19855
  };
19852
- const version = "3.1.21";
19856
+ const version = "3.1.22";
19853
19857
  function install(app) {
19854
19858
  const components = [
19855
19859
  ActionSheet,
package/lib/zartui.es.js CHANGED
@@ -11139,7 +11139,11 @@ var stdin_default$S = defineComponent({
11139
11139
  }
11140
11140
  emitChange && emit("change", checkedList.value);
11141
11141
  };
11142
- const selected = (item) => {
11142
+ const selected = (item, index) => {
11143
+ if (showSub(item) && props.disableParent && !item.disabled) {
11144
+ toNextLevel(item, index);
11145
+ return;
11146
+ }
11143
11147
  if (showSub(item) && !props.showParentChecked) {
11144
11148
  return;
11145
11149
  }
@@ -11332,7 +11336,7 @@ var stdin_default$S = defineComponent({
11332
11336
  selected: !props.multiple && choosedValue.value === item[props.valueKey]
11333
11337
  }),
11334
11338
  "onClick": () => {
11335
- selected(item);
11339
+ selected(item, index);
11336
11340
  }
11337
11341
  }, [slots.content ? slots.content(item) : item[props.textKey]]), createVNode("div", {
11338
11342
  "class": bem$A("item-nav"),
@@ -19847,7 +19851,7 @@ const Lazyload = {
19847
19851
  });
19848
19852
  }
19849
19853
  };
19850
- const version = "3.1.21";
19854
+ const version = "3.1.22";
19851
19855
  function install(app) {
19852
19856
  const components = [
19853
19857
  ActionSheet,
package/lib/zartui.js CHANGED
@@ -11379,7 +11379,11 @@
11379
11379
  }
11380
11380
  emitChange && emit("change", checkedList.value);
11381
11381
  };
11382
- const selected = (item) => {
11382
+ const selected = (item, index) => {
11383
+ if (showSub(item) && props.disableParent && !item.disabled) {
11384
+ toNextLevel(item, index);
11385
+ return;
11386
+ }
11383
11387
  if (showSub(item) && !props.showParentChecked) {
11384
11388
  return;
11385
11389
  }
@@ -11572,7 +11576,7 @@
11572
11576
  selected: !props.multiple && choosedValue.value === item[props.valueKey]
11573
11577
  }),
11574
11578
  "onClick": () => {
11575
- selected(item);
11579
+ selected(item, index);
11576
11580
  }
11577
11581
  }, [slots.content ? slots.content(item) : item[props.textKey]]), vue.createVNode("div", {
11578
11582
  "class": bem$A("item-nav"),
@@ -22895,7 +22899,7 @@
22895
22899
  });
22896
22900
  }
22897
22901
  };
22898
- const version = "3.1.21";
22902
+ const version = "3.1.22";
22899
22903
  function install(app) {
22900
22904
  const components = [
22901
22905
  ActionSheet,