zartui 3.1.28 → 3.1.29

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
@@ -11884,15 +11884,24 @@ var stdin_default$S = vue.defineComponent({
11884
11884
  const chooseSenior = (index) => {
11885
11885
  updateSelectParent(index);
11886
11886
  breadcrumbData.value.splice(index + 1);
11887
- dataList.value = historyLayers.value[index + 1];
11887
+ if (historyLayers.value.length > 0) {
11888
+ dataList.value = historyLayers.value[index + 1];
11889
+ } else {
11890
+ dataList.value = deepClone(props.treeData);
11891
+ }
11888
11892
  historyLayers.value.splice(index + 1);
11889
11893
  };
11890
11894
  const showRadio = (item) => {
11891
11895
  return !showSub(item) || showSub(item) && props.showParentChecked;
11892
11896
  };
11893
11897
  adapterHierarchTree(props.treeData, false);
11898
+ const reset = () => {
11899
+ checkedList.value = [];
11900
+ chooseSenior(-1);
11901
+ };
11894
11902
  useExpose({
11895
- toNodeLevel
11903
+ toNodeLevel,
11904
+ reset
11896
11905
  });
11897
11906
  return () => vue.createVNode("div", {
11898
11907
  "class": bem$A()
@@ -20545,7 +20554,7 @@ const Lazyload = {
20545
20554
  });
20546
20555
  }
20547
20556
  };
20548
- const version = "3.1.28";
20557
+ const version = "3.1.29";
20549
20558
  function install(app) {
20550
20559
  const components = [
20551
20560
  ActionSheet,
package/lib/zartui.es.js CHANGED
@@ -11882,15 +11882,24 @@ var stdin_default$S = defineComponent({
11882
11882
  const chooseSenior = (index) => {
11883
11883
  updateSelectParent(index);
11884
11884
  breadcrumbData.value.splice(index + 1);
11885
- dataList.value = historyLayers.value[index + 1];
11885
+ if (historyLayers.value.length > 0) {
11886
+ dataList.value = historyLayers.value[index + 1];
11887
+ } else {
11888
+ dataList.value = deepClone(props.treeData);
11889
+ }
11886
11890
  historyLayers.value.splice(index + 1);
11887
11891
  };
11888
11892
  const showRadio = (item) => {
11889
11893
  return !showSub(item) || showSub(item) && props.showParentChecked;
11890
11894
  };
11891
11895
  adapterHierarchTree(props.treeData, false);
11896
+ const reset = () => {
11897
+ checkedList.value = [];
11898
+ chooseSenior(-1);
11899
+ };
11892
11900
  useExpose({
11893
- toNodeLevel
11901
+ toNodeLevel,
11902
+ reset
11894
11903
  });
11895
11904
  return () => createVNode("div", {
11896
11905
  "class": bem$A()
@@ -20543,7 +20552,7 @@ const Lazyload = {
20543
20552
  });
20544
20553
  }
20545
20554
  };
20546
- const version = "3.1.28";
20555
+ const version = "3.1.29";
20547
20556
  function install(app) {
20548
20557
  const components = [
20549
20558
  ActionSheet,
package/lib/zartui.js CHANGED
@@ -12122,15 +12122,24 @@
12122
12122
  const chooseSenior = (index) => {
12123
12123
  updateSelectParent(index);
12124
12124
  breadcrumbData.value.splice(index + 1);
12125
- dataList.value = historyLayers.value[index + 1];
12125
+ if (historyLayers.value.length > 0) {
12126
+ dataList.value = historyLayers.value[index + 1];
12127
+ } else {
12128
+ dataList.value = deepClone(props.treeData);
12129
+ }
12126
12130
  historyLayers.value.splice(index + 1);
12127
12131
  };
12128
12132
  const showRadio = (item) => {
12129
12133
  return !showSub(item) || showSub(item) && props.showParentChecked;
12130
12134
  };
12131
12135
  adapterHierarchTree(props.treeData, false);
12136
+ const reset = () => {
12137
+ checkedList.value = [];
12138
+ chooseSenior(-1);
12139
+ };
12132
12140
  useExpose({
12133
- toNodeLevel
12141
+ toNodeLevel,
12142
+ reset
12134
12143
  });
12135
12144
  return () => vue.createVNode("div", {
12136
12145
  "class": bem$A()
@@ -24543,7 +24552,7 @@
24543
24552
  });
24544
24553
  }
24545
24554
  };
24546
- const version = "3.1.28";
24555
+ const version = "3.1.29";
24547
24556
  function install(app) {
24548
24557
  const components = [
24549
24558
  ActionSheet,