zartui 3.1.36 → 3.1.38

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
@@ -1295,7 +1295,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
1295
1295
  closeOnClickAction: Boolean,
1296
1296
  safeAreaInsetBottom: truthProp
1297
1297
  });
1298
- const popupInheritKeys$1 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1298
+ const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1299
1299
  var stdin_default$1P = vue.defineComponent({
1300
1300
  name: name$1l,
1301
1301
  props: actionSheetProps,
@@ -1403,7 +1403,7 @@ var stdin_default$1P = vue.defineComponent({
1403
1403
  "class": bem$1h(),
1404
1404
  "position": "bottom",
1405
1405
  "onUpdate:show": updateShow
1406
- }, pick(props, popupInheritKeys$1)), {
1406
+ }, pick(props, popupInheritKeys$2)), {
1407
1407
  default: () => {
1408
1408
  var _a;
1409
1409
  return [renderHeader(), renderDescription(), vue.createVNode("div", {
@@ -6999,6 +6999,12 @@ const sharedProps = extend({}, pickerSharedProps$1, {
6999
6999
  }
7000
7000
  });
7001
7001
  const pickerInheritKeys = Object.keys(pickerSharedProps$1);
7002
+ const popupInheritKeys$1 = [
7003
+ ...popupSharedPropKeys,
7004
+ "round",
7005
+ "closeOnPopstate",
7006
+ "safeAreaInsetBottom"
7007
+ ];
7002
7008
  function times(n, iteratee) {
7003
7009
  if (n < 0) {
7004
7010
  return [];
@@ -7927,13 +7933,13 @@ var stdin_default$18 = vue.defineComponent({
7927
7933
  }), pick(slots, pickerToolbarSlots$1))];
7928
7934
  }
7929
7935
  };
7930
- return () => vue.createVNode(stdin_default$1T, {
7936
+ return () => vue.createVNode(stdin_default$1T, vue.mergeProps(pick(props, popupInheritKeys$1), {
7931
7937
  "round": true,
7932
7938
  "position": "bottom",
7933
7939
  "onOpen": onOpen,
7934
7940
  "show": currentShow.value,
7935
7941
  "onUpdate:show": ($event) => currentShow.value = $event
7936
- }, {
7942
+ }), {
7937
7943
  default: () => [renderTitle(), renderPicker(), renderToolbar()]
7938
7944
  });
7939
7945
  }
@@ -11625,7 +11631,11 @@ const hierarchySelectProps = {
11625
11631
  valueKey: makeStringProp("id"),
11626
11632
  textKey: makeStringProp("name"),
11627
11633
  breadcrumbTitle: makeStringProp("全部"),
11628
- autoChangeToChildren: Boolean
11634
+ autoChangeToChildren: Boolean,
11635
+ checkedChildren: {
11636
+ type: Boolean,
11637
+ default: true
11638
+ }
11629
11639
  };
11630
11640
  var stdin_default$S = vue.defineComponent({
11631
11641
  name: name$A,
@@ -11755,7 +11765,7 @@ var stdin_default$S = vue.defineComponent({
11755
11765
  if (item.disabled) {
11756
11766
  return;
11757
11767
  }
11758
- if (getChecked(item)) {
11768
+ if (!props.checkedChildren && getChecked(item)) {
11759
11769
  return;
11760
11770
  }
11761
11771
  if (item.children && item.children.length) {
@@ -11939,7 +11949,7 @@ var stdin_default$S = vue.defineComponent({
11939
11949
  toNextLevel(item, index);
11940
11950
  }
11941
11951
  }, [showSub(item) && vue.createVNode("div", {
11942
- "class": bem$A("sub-level", getChecked(item) || getToSubDisabled(item) ? "disable" : "")
11952
+ "class": bem$A("sub-level", !props.checkedChildren && (getChecked(item) || getToSubDisabled(item)) ? "disable" : "")
11943
11953
  }, [vue.createVNode("span", {
11944
11954
  "class": bem$A("sub-icon")
11945
11955
  }, [SubIcon(bem$A)]), vue.createVNode("span", null, [vue.createTextVNode("下级")])])])]))]);
@@ -20617,7 +20627,7 @@ const Lazyload = {
20617
20627
  });
20618
20628
  }
20619
20629
  };
20620
- const version = "3.1.36";
20630
+ const version = "3.1.37";
20621
20631
  function install(app) {
20622
20632
  const components = [
20623
20633
  ActionSheet,
package/lib/zartui.es.js CHANGED
@@ -1293,7 +1293,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
1293
1293
  closeOnClickAction: Boolean,
1294
1294
  safeAreaInsetBottom: truthProp
1295
1295
  });
1296
- const popupInheritKeys$1 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1296
+ const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1297
1297
  var stdin_default$1P = defineComponent({
1298
1298
  name: name$1l,
1299
1299
  props: actionSheetProps,
@@ -1401,7 +1401,7 @@ var stdin_default$1P = defineComponent({
1401
1401
  "class": bem$1h(),
1402
1402
  "position": "bottom",
1403
1403
  "onUpdate:show": updateShow
1404
- }, pick(props, popupInheritKeys$1)), {
1404
+ }, pick(props, popupInheritKeys$2)), {
1405
1405
  default: () => {
1406
1406
  var _a;
1407
1407
  return [renderHeader(), renderDescription(), createVNode("div", {
@@ -6997,6 +6997,12 @@ const sharedProps = extend({}, pickerSharedProps$1, {
6997
6997
  }
6998
6998
  });
6999
6999
  const pickerInheritKeys = Object.keys(pickerSharedProps$1);
7000
+ const popupInheritKeys$1 = [
7001
+ ...popupSharedPropKeys,
7002
+ "round",
7003
+ "closeOnPopstate",
7004
+ "safeAreaInsetBottom"
7005
+ ];
7000
7006
  function times(n, iteratee) {
7001
7007
  if (n < 0) {
7002
7008
  return [];
@@ -7925,13 +7931,13 @@ var stdin_default$18 = defineComponent({
7925
7931
  }), pick(slots, pickerToolbarSlots$1))];
7926
7932
  }
7927
7933
  };
7928
- return () => createVNode(stdin_default$1T, {
7934
+ return () => createVNode(stdin_default$1T, mergeProps(pick(props, popupInheritKeys$1), {
7929
7935
  "round": true,
7930
7936
  "position": "bottom",
7931
7937
  "onOpen": onOpen,
7932
7938
  "show": currentShow.value,
7933
7939
  "onUpdate:show": ($event) => currentShow.value = $event
7934
- }, {
7940
+ }), {
7935
7941
  default: () => [renderTitle(), renderPicker(), renderToolbar()]
7936
7942
  });
7937
7943
  }
@@ -11623,7 +11629,11 @@ const hierarchySelectProps = {
11623
11629
  valueKey: makeStringProp("id"),
11624
11630
  textKey: makeStringProp("name"),
11625
11631
  breadcrumbTitle: makeStringProp("全部"),
11626
- autoChangeToChildren: Boolean
11632
+ autoChangeToChildren: Boolean,
11633
+ checkedChildren: {
11634
+ type: Boolean,
11635
+ default: true
11636
+ }
11627
11637
  };
11628
11638
  var stdin_default$S = defineComponent({
11629
11639
  name: name$A,
@@ -11753,7 +11763,7 @@ var stdin_default$S = defineComponent({
11753
11763
  if (item.disabled) {
11754
11764
  return;
11755
11765
  }
11756
- if (getChecked(item)) {
11766
+ if (!props.checkedChildren && getChecked(item)) {
11757
11767
  return;
11758
11768
  }
11759
11769
  if (item.children && item.children.length) {
@@ -11937,7 +11947,7 @@ var stdin_default$S = defineComponent({
11937
11947
  toNextLevel(item, index);
11938
11948
  }
11939
11949
  }, [showSub(item) && createVNode("div", {
11940
- "class": bem$A("sub-level", getChecked(item) || getToSubDisabled(item) ? "disable" : "")
11950
+ "class": bem$A("sub-level", !props.checkedChildren && (getChecked(item) || getToSubDisabled(item)) ? "disable" : "")
11941
11951
  }, [createVNode("span", {
11942
11952
  "class": bem$A("sub-icon")
11943
11953
  }, [SubIcon(bem$A)]), createVNode("span", null, [createTextVNode("下级")])])])]))]);
@@ -20615,7 +20625,7 @@ const Lazyload = {
20615
20625
  });
20616
20626
  }
20617
20627
  };
20618
- const version = "3.1.36";
20628
+ const version = "3.1.37";
20619
20629
  function install(app) {
20620
20630
  const components = [
20621
20631
  ActionSheet,
package/lib/zartui.js CHANGED
@@ -1565,7 +1565,7 @@
1565
1565
  closeOnClickAction: Boolean,
1566
1566
  safeAreaInsetBottom: truthProp
1567
1567
  });
1568
- const popupInheritKeys$1 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1568
+ const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
1569
1569
  var stdin_default$1P = vue.defineComponent({
1570
1570
  name: name$1l,
1571
1571
  props: actionSheetProps,
@@ -1673,7 +1673,7 @@
1673
1673
  "class": bem$1h(),
1674
1674
  "position": "bottom",
1675
1675
  "onUpdate:show": updateShow
1676
- }, pick(props, popupInheritKeys$1)), {
1676
+ }, pick(props, popupInheritKeys$2)), {
1677
1677
  default: () => {
1678
1678
  var _a;
1679
1679
  return [renderHeader(), renderDescription(), vue.createVNode("div", {
@@ -7243,6 +7243,12 @@
7243
7243
  }
7244
7244
  });
7245
7245
  const pickerInheritKeys = Object.keys(pickerSharedProps$1);
7246
+ const popupInheritKeys$1 = [
7247
+ ...popupSharedPropKeys,
7248
+ "round",
7249
+ "closeOnPopstate",
7250
+ "safeAreaInsetBottom"
7251
+ ];
7246
7252
  function times(n, iteratee) {
7247
7253
  if (n < 0) {
7248
7254
  return [];
@@ -8171,13 +8177,13 @@
8171
8177
  }), pick(slots, pickerToolbarSlots$1))];
8172
8178
  }
8173
8179
  };
8174
- return () => vue.createVNode(stdin_default$1T, {
8180
+ return () => vue.createVNode(stdin_default$1T, vue.mergeProps(pick(props, popupInheritKeys$1), {
8175
8181
  "round": true,
8176
8182
  "position": "bottom",
8177
8183
  "onOpen": onOpen,
8178
8184
  "show": currentShow.value,
8179
8185
  "onUpdate:show": ($event) => currentShow.value = $event
8180
- }, {
8186
+ }), {
8181
8187
  default: () => [renderTitle(), renderPicker(), renderToolbar()]
8182
8188
  });
8183
8189
  }
@@ -11863,7 +11869,11 @@
11863
11869
  valueKey: makeStringProp("id"),
11864
11870
  textKey: makeStringProp("name"),
11865
11871
  breadcrumbTitle: makeStringProp("全部"),
11866
- autoChangeToChildren: Boolean
11872
+ autoChangeToChildren: Boolean,
11873
+ checkedChildren: {
11874
+ type: Boolean,
11875
+ default: true
11876
+ }
11867
11877
  };
11868
11878
  var stdin_default$S = vue.defineComponent({
11869
11879
  name: name$A,
@@ -11993,7 +12003,7 @@
11993
12003
  if (item.disabled) {
11994
12004
  return;
11995
12005
  }
11996
- if (getChecked(item)) {
12006
+ if (!props.checkedChildren && getChecked(item)) {
11997
12007
  return;
11998
12008
  }
11999
12009
  if (item.children && item.children.length) {
@@ -12177,7 +12187,7 @@
12177
12187
  toNextLevel(item, index2);
12178
12188
  }
12179
12189
  }, [showSub(item) && vue.createVNode("div", {
12180
- "class": bem$A("sub-level", getChecked(item) || getToSubDisabled(item) ? "disable" : "")
12190
+ "class": bem$A("sub-level", !props.checkedChildren && (getChecked(item) || getToSubDisabled(item)) ? "disable" : "")
12181
12191
  }, [vue.createVNode("span", {
12182
12192
  "class": bem$A("sub-icon")
12183
12193
  }, [SubIcon(bem$A)]), vue.createVNode("span", null, [vue.createTextVNode("下级")])])])]))]);
@@ -24677,7 +24687,7 @@
24677
24687
  });
24678
24688
  }
24679
24689
  };
24680
- const version = "3.1.36";
24690
+ const version = "3.1.37";
24681
24691
  function install(app) {
24682
24692
  const components = [
24683
24693
  ActionSheet,