@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.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, watch, onMounted, defineComponent, h, onBeforeUnmount, nextTick as nextTick$1, resolveDirective, withDirectives } from 'vue';
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(), 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 + '; ' +
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
- 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:
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
- 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:
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
- 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:
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
- (!item1.menu || item1.menu.length === 0)
24630
- ? (openBlock(), createBlock(_component_el_menu_item, {
24631
- key: 0,
24632
- index:
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
- disabled:
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
- 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:
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
- 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:
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
- (!item2.menu || item2.menu.length === 0)
24671
- ? (openBlock(), createBlock(_component_el_menu_item, {
24672
- key: 0,
24673
- index:
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
- disabled:
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
- 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:
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
- 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:
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
- index:
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
- disabled:
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
- 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 */))
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