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