@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.cjs.js +14 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -24521,11 +24521,11 @@ const props = __props;
|
|
|
24521
24521
|
const myProps_box = vue.reactive(unclassified.deepClone.deepDefaults(props.myProps, ly0default$2.myProps));
|
|
24522
24522
|
const scopeThis_box = vue.reactive(props.scopeThis);
|
|
24523
24523
|
|
|
24524
|
-
const handleRun = (
|
|
24525
|
-
|
|
24526
|
-
|
|
24527
|
-
|
|
24528
|
-
) => {
|
|
24524
|
+
const handleRun = ({
|
|
24525
|
+
index, // 目标索引
|
|
24526
|
+
menu, // 当前菜单
|
|
24527
|
+
indexFather, // 父节点索引
|
|
24528
|
+
}) => {
|
|
24529
24529
|
let result = false;
|
|
24530
24530
|
// 遍历菜单节点
|
|
24531
24531
|
for (let i = 0; i < menu.length; i++) {
|
|
@@ -24534,7 +24534,7 @@ const handleRun = (
|
|
|
24534
24534
|
// 节点存在自定义索引
|
|
24535
24535
|
if (!!menu[i].index && index === menu[i].index) {
|
|
24536
24536
|
if (menu[i].handle) {
|
|
24537
|
-
menu[i].handle(scopeThis_box, index);
|
|
24537
|
+
menu[i].handle({scopeThis: scopeThis_box, index});
|
|
24538
24538
|
}
|
|
24539
24539
|
result = true;
|
|
24540
24540
|
break
|
|
@@ -24542,14 +24542,14 @@ const handleRun = (
|
|
|
24542
24542
|
// 节点不存在自定义索引
|
|
24543
24543
|
if (index === index0) {
|
|
24544
24544
|
if (menu[i].handle) {
|
|
24545
|
-
menu[i].handle(scopeThis_box, index);
|
|
24545
|
+
menu[i].handle({scopeThis: scopeThis_box, index});
|
|
24546
24546
|
}
|
|
24547
24547
|
result = true;
|
|
24548
24548
|
break
|
|
24549
24549
|
}
|
|
24550
24550
|
// 存在子节点,递归调用
|
|
24551
24551
|
if (!!menu[i].menu && menu[i].menu.length > 0) {
|
|
24552
|
-
result = handleRun(index, menu[i].menu, index0);
|
|
24552
|
+
result = handleRun({index, menu: menu[i].menu, indexFather: index0});
|
|
24553
24553
|
if (!!result) {
|
|
24554
24554
|
break
|
|
24555
24555
|
}
|
|
@@ -24559,7 +24559,7 @@ const handleRun = (
|
|
|
24559
24559
|
};
|
|
24560
24560
|
|
|
24561
24561
|
const handleSelect = key=>{
|
|
24562
|
-
handleRun(key, myProps_box.menu, '');
|
|
24562
|
+
handleRun({index: key, menu: myProps_box.menu, indexFather: ''});
|
|
24563
24563
|
};
|
|
24564
24564
|
|
|
24565
24565
|
const handleOpen = key=>{};
|
|
@@ -24598,7 +24598,7 @@ return (_ctx, _cache) => {
|
|
|
24598
24598
|
'disabled' in item
|
|
24599
24599
|
? item.disabled
|
|
24600
24600
|
: 'hdlDisabled' in item
|
|
24601
|
-
? item.hdlDisabled(scopeThis_box, item, index)
|
|
24601
|
+
? item.hdlDisabled({scopeThis: scopeThis_box, item, index})
|
|
24602
24602
|
: false
|
|
24603
24603
|
|
|
24604
24604
|
}, {
|
|
@@ -24627,7 +24627,7 @@ return (_ctx, _cache) => {
|
|
|
24627
24627
|
'disabled' in item0
|
|
24628
24628
|
? item0.disabled
|
|
24629
24629
|
: 'hdlDisabled' in item0
|
|
24630
|
-
? item0.hdlDisabled(scopeThis_box, item0, index0)
|
|
24630
|
+
? item0.hdlDisabled({scopeThis: scopeThis_box, item: item0, index: index0})
|
|
24631
24631
|
: false
|
|
24632
24632
|
|
|
24633
24633
|
}, {
|
|
@@ -24664,7 +24664,7 @@ return (_ctx, _cache) => {
|
|
|
24664
24664
|
'disabled' in item1
|
|
24665
24665
|
? item1.disabled
|
|
24666
24666
|
: 'hdlDisabled' in item1
|
|
24667
|
-
? item1.hdlDisabled(scopeThis_box, item1, index1)
|
|
24667
|
+
? item1.hdlDisabled({scopeThis: scopeThis_box, item: item1, index: index1})
|
|
24668
24668
|
: false
|
|
24669
24669
|
|
|
24670
24670
|
}, {
|
|
@@ -24705,7 +24705,7 @@ return (_ctx, _cache) => {
|
|
|
24705
24705
|
'disabled' in item2
|
|
24706
24706
|
? item2.disabled
|
|
24707
24707
|
: 'hdlDisabled' in item2
|
|
24708
|
-
? item2.hdlDisabled(scopeThis_box, item2, index2)
|
|
24708
|
+
? item2.hdlDisabled({scopeThis: scopeThis_box, item: item2, index: index2})
|
|
24709
24709
|
: false
|
|
24710
24710
|
|
|
24711
24711
|
}, {
|
|
@@ -24742,7 +24742,7 @@ return (_ctx, _cache) => {
|
|
|
24742
24742
|
'disabled' in item3
|
|
24743
24743
|
? item3.disabled
|
|
24744
24744
|
: 'hdlDisabled' in item3
|
|
24745
|
-
? item3.hdlDisabled(scopeThis_box, item3, index3)
|
|
24745
|
+
? item3.hdlDisabled({scopeThis: scopeThis_box, item: item3, index: index3})
|
|
24746
24746
|
: false
|
|
24747
24747
|
|
|
24748
24748
|
}, {
|