@yoooloo42/joker 1.0.250 → 1.0.251

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/dist/index.esm.js CHANGED
@@ -24517,11 +24517,11 @@ const props = __props;
24517
24517
  const myProps_box = reactive(unclassified.deepClone.deepDefaults(props.myProps, ly0default$2.myProps));
24518
24518
  const scopeThis_box = reactive(props.scopeThis);
24519
24519
 
24520
- const handleRun = (
24521
- index, // 目标索引
24522
- menu, // 当前菜单
24523
- indexFather, // 父节点索引
24524
- ) => {
24520
+ const handleRun = ({
24521
+ index, // 目标索引
24522
+ menu, // 当前菜单
24523
+ indexFather, // 父节点索引
24524
+ }) => {
24525
24525
  let result = false;
24526
24526
  // 遍历菜单节点
24527
24527
  for (let i = 0; i < menu.length; i++) {
@@ -24530,7 +24530,7 @@ const handleRun = (
24530
24530
  // 节点存在自定义索引
24531
24531
  if (!!menu[i].index && index === menu[i].index) {
24532
24532
  if (menu[i].handle) {
24533
- menu[i].handle(scopeThis_box, index);
24533
+ menu[i].handle({scopeThis: scopeThis_box, index});
24534
24534
  }
24535
24535
  result = true;
24536
24536
  break
@@ -24538,14 +24538,14 @@ const handleRun = (
24538
24538
  // 节点不存在自定义索引
24539
24539
  if (index === index0) {
24540
24540
  if (menu[i].handle) {
24541
- menu[i].handle(scopeThis_box, index);
24541
+ menu[i].handle({scopeThis: scopeThis_box, index});
24542
24542
  }
24543
24543
  result = true;
24544
24544
  break
24545
24545
  }
24546
24546
  // 存在子节点,递归调用
24547
24547
  if (!!menu[i].menu && menu[i].menu.length > 0) {
24548
- result = handleRun(index, menu[i].menu, index0);
24548
+ result = handleRun({index, menu: menu[i].menu, indexFather: index0});
24549
24549
  if (!!result) {
24550
24550
  break
24551
24551
  }
@@ -24555,7 +24555,7 @@ const handleRun = (
24555
24555
  };
24556
24556
 
24557
24557
  const handleSelect = key=>{
24558
- handleRun(key, myProps_box.menu, '');
24558
+ handleRun({index: key, menu: myProps_box.menu, indexFather: ''});
24559
24559
  };
24560
24560
 
24561
24561
  const handleOpen = key=>{};
@@ -24594,7 +24594,7 @@ return (_ctx, _cache) => {
24594
24594
  'disabled' in item
24595
24595
  ? item.disabled
24596
24596
  : 'hdlDisabled' in item
24597
- ? item.hdlDisabled(scopeThis_box, item, index)
24597
+ ? item.hdlDisabled({scopeThis: scopeThis_box, item, index})
24598
24598
  : false
24599
24599
 
24600
24600
  }, {
@@ -24623,7 +24623,7 @@ return (_ctx, _cache) => {
24623
24623
  'disabled' in item0
24624
24624
  ? item0.disabled
24625
24625
  : 'hdlDisabled' in item0
24626
- ? item0.hdlDisabled(scopeThis_box, item0, index0)
24626
+ ? item0.hdlDisabled({scopeThis: scopeThis_box, item: item0, index: index0})
24627
24627
  : false
24628
24628
 
24629
24629
  }, {
@@ -24660,7 +24660,7 @@ return (_ctx, _cache) => {
24660
24660
  'disabled' in item1
24661
24661
  ? item1.disabled
24662
24662
  : 'hdlDisabled' in item1
24663
- ? item1.hdlDisabled(scopeThis_box, item1, index1)
24663
+ ? item1.hdlDisabled({scopeThis: scopeThis_box, item: item1, index: index1})
24664
24664
  : false
24665
24665
 
24666
24666
  }, {
@@ -24701,7 +24701,7 @@ return (_ctx, _cache) => {
24701
24701
  'disabled' in item2
24702
24702
  ? item2.disabled
24703
24703
  : 'hdlDisabled' in item2
24704
- ? item2.hdlDisabled(scopeThis_box, item2, index2)
24704
+ ? item2.hdlDisabled({scopeThis: scopeThis_box, item: item2, index: index2})
24705
24705
  : false
24706
24706
 
24707
24707
  }, {
@@ -24738,7 +24738,7 @@ return (_ctx, _cache) => {
24738
24738
  'disabled' in item3
24739
24739
  ? item3.disabled
24740
24740
  : 'hdlDisabled' in item3
24741
- ? item3.hdlDisabled(scopeThis_box, item3, index3)
24741
+ ? item3.hdlDisabled({scopeThis: scopeThis_box, item: item3, index: index3})
24742
24742
  : false
24743
24743
 
24744
24744
  }, {