@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 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.createElementBlock(vue.Fragment, null, [
24549
- vue.createElementVNode("pre", null, vue.toDisplayString(myProps_box), 1 /* TEXT */),
24550
- vue.createElementVNode("pre", null, vue.toDisplayString(myProps_box.menu), 1 /* TEXT */),
24551
- vue.createVNode(_component_el_menu, {
24552
- mode: myProps_box.mode,
24553
- "default-active": myProps_box.defaultActive,
24554
- onOpen: handleOpen,
24555
- onClose: handleClose,
24556
- onSelect: handleSelect,
24557
- "background-color": myProps_box.backgroundColor,
24558
- "text-color": myProps_box.textColor,
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
- default: vue.withCtx(() => [
24566
- vue.createCommentVNode(" 第1层 "),
24567
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(myProps_box.menu, (item, index) => {
24568
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
24569
- key: item.index ? item.index : String(index)
24570
- }, [
24571
- (!item.menu || item.menu.length === 0)
24572
- ? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
24573
- key: 0,
24574
- index: item.index ? item.index : String(index),
24575
- disabled:
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
- default: vue.withCtx(() => [
24584
- vue.createTextVNode(vue.toDisplayString(item.title), 1 /* TEXT */)
24585
- ]),
24586
- _: 2 /* DYNAMIC */
24587
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24588
- : (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
24589
- key: 1,
24590
- index: item.index ? item.index : String(index)
24591
- }, {
24592
- title: vue.withCtx(() => [
24593
- vue.createTextVNode(vue.toDisplayString(item.title), 1 /* TEXT */)
24594
- ]),
24595
- default: vue.withCtx(() => [
24596
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.menu, (item0, index0) => {
24597
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
24598
- key: item0.index ? item0.index : String(index) + '-' + String(index0)
24599
- }, [
24600
- (!item0.menu || item0.menu.length === 0)
24601
- ? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
24602
- key: 0,
24603
- index: item0.index ? item0.index : String(index) + '-' + String(index0),
24604
- disabled:
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
- default: vue.withCtx(() => [
24613
- vue.createTextVNode(vue.toDisplayString(item0.title), 1 /* TEXT */)
24614
- ]),
24615
- _: 2 /* DYNAMIC */
24616
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24617
- : (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
24618
- key: 1,
24619
- index: item0.index ? item0.index : String(index) + '-' + String(index0)
24620
- }, {
24621
- title: vue.withCtx(() => [
24622
- vue.createTextVNode(vue.toDisplayString(item0.title), 1 /* TEXT */)
24623
- ]),
24624
- default: vue.withCtx(() => [
24625
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item0.menu, (item1, index1) => {
24626
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
24627
- key:
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
- (!item1.menu || item1.menu.length === 0)
24634
- ? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
24635
- key: 0,
24636
- index:
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
- disabled:
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
- default: vue.withCtx(() => [
24650
- vue.createTextVNode(vue.toDisplayString(item1.title), 1 /* TEXT */)
24651
- ]),
24652
- _: 2 /* DYNAMIC */
24653
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24654
- : (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
24655
- key: 1,
24656
- index:
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
- title: vue.withCtx(() => [
24663
- vue.createTextVNode(vue.toDisplayString(item1.title), 1 /* TEXT */)
24664
- ]),
24665
- default: vue.withCtx(() => [
24666
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item1.menu, (item2, index2) => {
24667
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
24668
- key:
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
- (!item2.menu || item2.menu.length === 0)
24675
- ? (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
24676
- key: 0,
24677
- index:
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
- disabled:
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
- default: vue.withCtx(() => [
24691
- vue.createTextVNode(vue.toDisplayString(item2.title), 1 /* TEXT */)
24692
- ]),
24693
- _: 2 /* DYNAMIC */
24694
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24695
- : (vue.openBlock(), vue.createBlock(_component_el_sub_menu, {
24696
- key: 1,
24697
- index:
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
- title: vue.withCtx(() => [
24704
- vue.createTextVNode(vue.toDisplayString(item2.title), 1 /* TEXT */)
24705
- ]),
24706
- default: vue.withCtx(() => [
24707
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item2.menu, (item3, index3) => {
24708
- return (vue.openBlock(), vue.createBlock(_component_el_menu_item, {
24709
- key:
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
- index:
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
- disabled:
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
- default: vue.withCtx(() => [
24728
- vue.createTextVNode(vue.toDisplayString(item3.title), 1 /* TEXT */)
24729
- ]),
24730
- _: 2 /* DYNAMIC */
24731
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24732
- }), 128 /* KEYED_FRAGMENT */))
24733
- ]),
24734
- _: 2 /* DYNAMIC */
24735
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
24736
- ], 64 /* STABLE_FRAGMENT */))
24737
- }), 128 /* KEYED_FRAGMENT */))
24738
- ]),
24739
- _: 2 /* DYNAMIC */
24740
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
24741
- ], 64 /* STABLE_FRAGMENT */))
24742
- }), 128 /* KEYED_FRAGMENT */))
24743
- ]),
24744
- _: 2 /* DYNAMIC */
24745
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
24746
- ], 64 /* STABLE_FRAGMENT */))
24747
- }), 128 /* KEYED_FRAGMENT */))
24748
- ]),
24749
- _: 2 /* DYNAMIC */
24750
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
24751
- ], 64 /* STABLE_FRAGMENT */))
24752
- }), 128 /* KEYED_FRAGMENT */))
24753
- ]),
24754
- _: 1 /* STABLE */
24755
- }, 8 /* PROPS */, ["mode", "default-active", "background-color", "text-color", "active-text-color", "style"])
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