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