@yoooloo42/joker 1.0.213 → 1.0.214
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 +141 -157
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +142 -158
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -24484,18 +24484,6 @@ const props = __props;
|
|
|
24484
24484
|
const myProps_box = vue.reactive(unclassified.deepClone.deepDefaults(props.myProps, ly0default$2.myProps));
|
|
24485
24485
|
const scopeThis_box = vue.reactive(props.scopeThis);
|
|
24486
24486
|
|
|
24487
|
-
vue.watch(()=>props.myProps.menu, (newVal, oldVal) => {
|
|
24488
|
-
console.log('测试 000', newVal);
|
|
24489
|
-
});
|
|
24490
|
-
vue.watch(()=>myProps_box.menu, (newVal, oldVal) => {
|
|
24491
|
-
console.log('测试 111', newVal);
|
|
24492
|
-
});
|
|
24493
|
-
|
|
24494
|
-
vue.onMounted(()=>{
|
|
24495
|
-
console.log('测试 222', props.myProps.menu);
|
|
24496
|
-
console.log('测试 333', myProps_box.menu);
|
|
24497
|
-
});
|
|
24498
|
-
|
|
24499
24487
|
const handleRun = (
|
|
24500
24488
|
index, // 目标索引
|
|
24501
24489
|
menu, // 当前菜单
|
|
@@ -24545,215 +24533,211 @@ return (_ctx, _cache) => {
|
|
|
24545
24533
|
const _component_el_sub_menu = vue.resolveComponent("el-sub-menu");
|
|
24546
24534
|
const _component_el_menu = vue.resolveComponent("el-menu");
|
|
24547
24535
|
|
|
24548
|
-
return (vue.openBlock(), vue.
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
24559
|
-
"active-text-color": myProps_box.activeTextColor,
|
|
24560
|
-
"menu-trigger": "hover",
|
|
24561
|
-
style: vue.normalizeStyle('--el-menu-horizontal-height: ' + myProps_box.horizontalHeight + '; ' +
|
|
24536
|
+
return (vue.openBlock(), vue.createBlock(_component_el_menu, {
|
|
24537
|
+
mode: myProps_box.mode,
|
|
24538
|
+
"default-active": myProps_box.defaultActive,
|
|
24539
|
+
onOpen: handleOpen,
|
|
24540
|
+
onClose: handleClose,
|
|
24541
|
+
onSelect: handleSelect,
|
|
24542
|
+
"background-color": myProps_box.backgroundColor,
|
|
24543
|
+
"text-color": myProps_box.textColor,
|
|
24544
|
+
"active-text-color": myProps_box.activeTextColor,
|
|
24545
|
+
"menu-trigger": "hover",
|
|
24546
|
+
style: vue.normalizeStyle('--el-menu-horizontal-height: ' + myProps_box.horizontalHeight + '; ' +
|
|
24562
24547
|
myProps_box.styleBase + ' ' +
|
|
24563
24548
|
myProps_box.style)
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
|
|
24572
|
-
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
24549
|
+
}, {
|
|
24550
|
+
default: vue.withCtx(() => [
|
|
24551
|
+
vue.createCommentVNode(" 第1层 "),
|
|
24552
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(myProps_box.menu, (item, index) => {
|
|
24553
|
+
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
24554
|
+
key: item.index ? item.index : String(index)
|
|
24555
|
+
}, [
|
|
24556
|
+
(!item.menu || item.menu.length === 0)
|
|
24557
|
+
? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
|
|
24558
|
+
key: 0,
|
|
24559
|
+
index: item.index ? item.index : String(index),
|
|
24560
|
+
disabled:
|
|
24576
24561
|
'disabled' in item
|
|
24577
24562
|
? item.disabled
|
|
24578
24563
|
: 'hdlDisabled' in item
|
|
24579
24564
|
? item.hdlDisabled(scopeThis_box, item, index)
|
|
24580
24565
|
: false
|
|
24581
24566
|
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24604
|
-
|
|
24567
|
+
}, {
|
|
24568
|
+
default: vue.withCtx(() => [
|
|
24569
|
+
vue.createTextVNode(vue.toDisplayString(item.title), 1 /* TEXT */)
|
|
24570
|
+
]),
|
|
24571
|
+
_: 2 /* DYNAMIC */
|
|
24572
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
|
|
24573
|
+
: (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
|
|
24574
|
+
key: 1,
|
|
24575
|
+
index: item.index ? item.index : String(index)
|
|
24576
|
+
}, {
|
|
24577
|
+
title: vue.withCtx(() => [
|
|
24578
|
+
vue.createTextVNode(vue.toDisplayString(item.title), 1 /* TEXT */)
|
|
24579
|
+
]),
|
|
24580
|
+
default: vue.withCtx(() => [
|
|
24581
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.menu, (item0, index0) => {
|
|
24582
|
+
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
24583
|
+
key: item0.index ? item0.index : String(index) + '-' + String(index0)
|
|
24584
|
+
}, [
|
|
24585
|
+
(!item0.menu || item0.menu.length === 0)
|
|
24586
|
+
? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
|
|
24587
|
+
key: 0,
|
|
24588
|
+
index: item0.index ? item0.index : String(index) + '-' + String(index0),
|
|
24589
|
+
disabled:
|
|
24605
24590
|
'disabled' in item0
|
|
24606
24591
|
? item0.disabled
|
|
24607
24592
|
: 'hdlDisabled' in item0
|
|
24608
24593
|
? item0.hdlDisabled(scopeThis_box, item0, index0)
|
|
24609
24594
|
: false
|
|
24610
24595
|
|
|
24611
|
-
|
|
24612
|
-
|
|
24613
|
-
|
|
24614
|
-
|
|
24615
|
-
|
|
24616
|
-
|
|
24617
|
-
|
|
24618
|
-
|
|
24619
|
-
|
|
24620
|
-
|
|
24621
|
-
|
|
24622
|
-
|
|
24623
|
-
|
|
24624
|
-
|
|
24625
|
-
|
|
24626
|
-
|
|
24627
|
-
|
|
24596
|
+
}, {
|
|
24597
|
+
default: vue.withCtx(() => [
|
|
24598
|
+
vue.createTextVNode(vue.toDisplayString(item0.title), 1 /* TEXT */)
|
|
24599
|
+
]),
|
|
24600
|
+
_: 2 /* DYNAMIC */
|
|
24601
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
|
|
24602
|
+
: (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
|
|
24603
|
+
key: 1,
|
|
24604
|
+
index: item0.index ? item0.index : String(index) + '-' + String(index0)
|
|
24605
|
+
}, {
|
|
24606
|
+
title: vue.withCtx(() => [
|
|
24607
|
+
vue.createTextVNode(vue.toDisplayString(item0.title), 1 /* TEXT */)
|
|
24608
|
+
]),
|
|
24609
|
+
default: vue.withCtx(() => [
|
|
24610
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item0.menu, (item1, index1) => {
|
|
24611
|
+
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
24612
|
+
key:
|
|
24628
24613
|
item1.index
|
|
24629
24614
|
? item1.index
|
|
24630
24615
|
: String(index) + '-' + String(index0) + '-' + String(index1)
|
|
24631
24616
|
|
|
24632
|
-
|
|
24633
|
-
|
|
24634
|
-
|
|
24635
|
-
|
|
24636
|
-
|
|
24617
|
+
}, [
|
|
24618
|
+
(!item1.menu || item1.menu.length === 0)
|
|
24619
|
+
? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
|
|
24620
|
+
key: 0,
|
|
24621
|
+
index:
|
|
24637
24622
|
item1.index
|
|
24638
24623
|
? item1.index
|
|
24639
24624
|
: String(index) + '-' + String(index0) + '-' + String(index1)
|
|
24640
24625
|
,
|
|
24641
|
-
|
|
24626
|
+
disabled:
|
|
24642
24627
|
'disabled' in item1
|
|
24643
24628
|
? item1.disabled
|
|
24644
24629
|
: 'hdlDisabled' in item1
|
|
24645
24630
|
? item1.hdlDisabled(scopeThis_box, item1, index1)
|
|
24646
24631
|
: false
|
|
24647
24632
|
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24633
|
+
}, {
|
|
24634
|
+
default: vue.withCtx(() => [
|
|
24635
|
+
vue.createTextVNode(vue.toDisplayString(item1.title), 1 /* TEXT */)
|
|
24636
|
+
]),
|
|
24637
|
+
_: 2 /* DYNAMIC */
|
|
24638
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
|
|
24639
|
+
: (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
|
|
24640
|
+
key: 1,
|
|
24641
|
+
index:
|
|
24657
24642
|
item1.index
|
|
24658
24643
|
? item1.index
|
|
24659
24644
|
: String(index) + '-' + String(index0) + '-' + String(index1)
|
|
24660
24645
|
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24646
|
+
}, {
|
|
24647
|
+
title: vue.withCtx(() => [
|
|
24648
|
+
vue.createTextVNode(vue.toDisplayString(item1.title), 1 /* TEXT */)
|
|
24649
|
+
]),
|
|
24650
|
+
default: vue.withCtx(() => [
|
|
24651
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item1.menu, (item2, index2) => {
|
|
24652
|
+
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
24653
|
+
key:
|
|
24669
24654
|
item2.index
|
|
24670
24655
|
? item2.index
|
|
24671
24656
|
: String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2)
|
|
24672
24657
|
|
|
24673
|
-
|
|
24674
|
-
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
24658
|
+
}, [
|
|
24659
|
+
(!item2.menu || item2.menu.length === 0)
|
|
24660
|
+
? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
|
|
24661
|
+
key: 0,
|
|
24662
|
+
index:
|
|
24678
24663
|
item2.index
|
|
24679
24664
|
? item2.index
|
|
24680
24665
|
: String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2)
|
|
24681
24666
|
,
|
|
24682
|
-
|
|
24667
|
+
disabled:
|
|
24683
24668
|
'disabled' in item2
|
|
24684
24669
|
? item2.disabled
|
|
24685
24670
|
: 'hdlDisabled' in item2
|
|
24686
24671
|
? item2.hdlDisabled(scopeThis_box, item2, index2)
|
|
24687
24672
|
: false
|
|
24688
24673
|
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24674
|
+
}, {
|
|
24675
|
+
default: vue.withCtx(() => [
|
|
24676
|
+
vue.createTextVNode(vue.toDisplayString(item2.title), 1 /* TEXT */)
|
|
24677
|
+
]),
|
|
24678
|
+
_: 2 /* DYNAMIC */
|
|
24679
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
|
|
24680
|
+
: (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
|
|
24681
|
+
key: 1,
|
|
24682
|
+
index:
|
|
24698
24683
|
item2.index
|
|
24699
24684
|
? item2.index
|
|
24700
24685
|
: String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2)
|
|
24701
24686
|
|
|
24702
|
-
|
|
24703
|
-
|
|
24704
|
-
|
|
24705
|
-
|
|
24706
|
-
|
|
24707
|
-
|
|
24708
|
-
|
|
24709
|
-
|
|
24687
|
+
}, {
|
|
24688
|
+
title: vue.withCtx(() => [
|
|
24689
|
+
vue.createTextVNode(vue.toDisplayString(item2.title), 1 /* TEXT */)
|
|
24690
|
+
]),
|
|
24691
|
+
default: vue.withCtx(() => [
|
|
24692
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item2.menu, (item3, index3) => {
|
|
24693
|
+
return (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
|
|
24694
|
+
key:
|
|
24710
24695
|
item3.index
|
|
24711
24696
|
? item3.index
|
|
24712
24697
|
: String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2) + '-' + String(index3)
|
|
24713
24698
|
,
|
|
24714
|
-
|
|
24699
|
+
index:
|
|
24715
24700
|
item3.index
|
|
24716
24701
|
? item3.index
|
|
24717
24702
|
: String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2) + '-' + String(index3)
|
|
24718
24703
|
,
|
|
24719
|
-
|
|
24704
|
+
disabled:
|
|
24720
24705
|
'disabled' in item3
|
|
24721
24706
|
? item3.disabled
|
|
24722
24707
|
: 'hdlDisabled' in item3
|
|
24723
24708
|
? item3.hdlDisabled(scopeThis_box, item3, index3)
|
|
24724
24709
|
: false
|
|
24725
24710
|
|
|
24726
|
-
|
|
24727
|
-
|
|
24728
|
-
|
|
24729
|
-
|
|
24730
|
-
|
|
24731
|
-
|
|
24732
|
-
|
|
24733
|
-
|
|
24734
|
-
|
|
24735
|
-
|
|
24736
|
-
|
|
24737
|
-
|
|
24738
|
-
|
|
24739
|
-
|
|
24740
|
-
|
|
24741
|
-
|
|
24742
|
-
|
|
24743
|
-
|
|
24744
|
-
|
|
24745
|
-
|
|
24746
|
-
|
|
24747
|
-
|
|
24748
|
-
|
|
24749
|
-
|
|
24750
|
-
|
|
24751
|
-
|
|
24752
|
-
|
|
24753
|
-
|
|
24754
|
-
|
|
24755
|
-
|
|
24756
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
24711
|
+
}, {
|
|
24712
|
+
default: vue.withCtx(() => [
|
|
24713
|
+
vue.createTextVNode(vue.toDisplayString(item3.title), 1 /* TEXT */)
|
|
24714
|
+
]),
|
|
24715
|
+
_: 2 /* DYNAMIC */
|
|
24716
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
|
|
24717
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
24718
|
+
]),
|
|
24719
|
+
_: 2 /* DYNAMIC */
|
|
24720
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
|
|
24721
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
24722
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
24723
|
+
]),
|
|
24724
|
+
_: 2 /* DYNAMIC */
|
|
24725
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
|
|
24726
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
24727
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
24728
|
+
]),
|
|
24729
|
+
_: 2 /* DYNAMIC */
|
|
24730
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
|
|
24731
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
24732
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
24733
|
+
]),
|
|
24734
|
+
_: 2 /* DYNAMIC */
|
|
24735
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
|
|
24736
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
24737
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
24738
|
+
]),
|
|
24739
|
+
_: 1 /* STABLE */
|
|
24740
|
+
}, 8 /* PROPS */, ["mode", "default-active", "background-color", "text-color", "active-text-color", "style"]))
|
|
24757
24741
|
}
|
|
24758
24742
|
}
|
|
24759
24743
|
|