@yoooloo42/joker 1.0.213 → 1.0.215

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) {
@@ -22758,7 +22758,8 @@ const refresh = async _ref => {
22758
22758
  sort: scopeThis.query.sort,
22759
22759
  limit: scopeThis.query.pageSize,
22760
22760
  page: scopeThis.query.currentPage
22761
- }
22761
+ },
22762
+ routerInstance: scopeThis.routerInstance || null
22762
22763
  });
22763
22764
  scopeThis.tableProps.table.loading.visible = false;
22764
22765
  if (result.code === 0) {
@@ -22920,7 +22921,8 @@ const submitInsertOne = async _ref0 => {
22920
22921
  });
22921
22922
  const result = await ly0request.storpro({
22922
22923
  storproName: scopeThis.storpro.insertOne,
22923
- data: scopeThis.formData
22924
+ data: scopeThis.formData,
22925
+ routerInstance: scopeThis.routerInstance || null
22924
22926
  });
22925
22927
  if (result.code === 0) {
22926
22928
  // 关闭表单窗口
@@ -22958,7 +22960,8 @@ const submitUpdateOne = async _ref1 => {
22958
22960
  });
22959
22961
  const result = await ly0request.storpro({
22960
22962
  storproName: scopeThis.storpro.updateOne,
22961
- data: scopeThis.formData
22963
+ data: scopeThis.formData,
22964
+ routerInstance: scopeThis.routerInstance || null
22962
22965
  });
22963
22966
  if (result.code === 0) {
22964
22967
  // 关闭表单窗口
@@ -22993,7 +22996,9 @@ const submitDeleteOne = async _ref10 => {
22993
22996
  });
22994
22997
  const result = await ly0request.storpro({
22995
22998
  storproName: scopeThis.storpro.deleteOne,
22996
- data: row // 继承行记录的值
22999
+ data: row,
23000
+ // 继承行记录的值
23001
+ routerInstance: scopeThis.routerInstance || null
22997
23002
  });
22998
23003
  if (result.code === 0) {
22999
23004
  ElMessage('删除一条记录成功');
@@ -24480,18 +24485,6 @@ const props = __props;
24480
24485
  const myProps_box = reactive(unclassified.deepClone.deepDefaults(props.myProps, ly0default$2.myProps));
24481
24486
  const scopeThis_box = reactive(props.scopeThis);
24482
24487
 
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
24488
  const handleRun = (
24496
24489
  index, // 目标索引
24497
24490
  menu, // 当前菜单
@@ -24541,215 +24534,211 @@ return (_ctx, _cache) => {
24541
24534
  const _component_el_sub_menu = resolveComponent("el-sub-menu");
24542
24535
  const _component_el_menu = resolveComponent("el-menu");
24543
24536
 
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 + '; ' +
24537
+ return (openBlock(), createBlock(_component_el_menu, {
24538
+ mode: myProps_box.mode,
24539
+ "default-active": myProps_box.defaultActive,
24540
+ onOpen: handleOpen,
24541
+ onClose: handleClose,
24542
+ onSelect: handleSelect,
24543
+ "background-color": myProps_box.backgroundColor,
24544
+ "text-color": myProps_box.textColor,
24545
+ "active-text-color": myProps_box.activeTextColor,
24546
+ "menu-trigger": "hover",
24547
+ style: normalizeStyle('--el-menu-horizontal-height: ' + myProps_box.horizontalHeight + '; ' +
24558
24548
  myProps_box.styleBase + ' ' +
24559
24549
  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:
24550
+ }, {
24551
+ default: withCtx(() => [
24552
+ createCommentVNode(" 第1层 "),
24553
+ (openBlock(true), createElementBlock(Fragment, null, renderList(myProps_box.menu, (item, index) => {
24554
+ return (openBlock(), createElementBlock(Fragment, {
24555
+ key: item.index ? item.index : String(index)
24556
+ }, [
24557
+ (!item.menu || item.menu.length === 0)
24558
+ ? (openBlock(), createBlock(_component_el_menu_item, {
24559
+ key: 0,
24560
+ index: item.index ? item.index : String(index),
24561
+ disabled:
24572
24562
  'disabled' in item
24573
24563
  ? item.disabled
24574
24564
  : 'hdlDisabled' in item
24575
24565
  ? item.hdlDisabled(scopeThis_box, item, index)
24576
24566
  : false
24577
24567
 
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:
24568
+ }, {
24569
+ default: withCtx(() => [
24570
+ createTextVNode(toDisplayString(item.title), 1 /* TEXT */)
24571
+ ]),
24572
+ _: 2 /* DYNAMIC */
24573
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24574
+ : (openBlock(), createBlock(_component_el_sub_menu, {
24575
+ key: 1,
24576
+ index: item.index ? item.index : String(index)
24577
+ }, {
24578
+ title: withCtx(() => [
24579
+ createTextVNode(toDisplayString(item.title), 1 /* TEXT */)
24580
+ ]),
24581
+ default: withCtx(() => [
24582
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.menu, (item0, index0) => {
24583
+ return (openBlock(), createElementBlock(Fragment, {
24584
+ key: item0.index ? item0.index : String(index) + '-' + String(index0)
24585
+ }, [
24586
+ (!item0.menu || item0.menu.length === 0)
24587
+ ? (openBlock(), createBlock(_component_el_menu_item, {
24588
+ key: 0,
24589
+ index: item0.index ? item0.index : String(index) + '-' + String(index0),
24590
+ disabled:
24601
24591
  'disabled' in item0
24602
24592
  ? item0.disabled
24603
24593
  : 'hdlDisabled' in item0
24604
24594
  ? item0.hdlDisabled(scopeThis_box, item0, index0)
24605
24595
  : false
24606
24596
 
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:
24597
+ }, {
24598
+ default: withCtx(() => [
24599
+ createTextVNode(toDisplayString(item0.title), 1 /* TEXT */)
24600
+ ]),
24601
+ _: 2 /* DYNAMIC */
24602
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24603
+ : (openBlock(), createBlock(_component_el_sub_menu, {
24604
+ key: 1,
24605
+ index: item0.index ? item0.index : String(index) + '-' + String(index0)
24606
+ }, {
24607
+ title: withCtx(() => [
24608
+ createTextVNode(toDisplayString(item0.title), 1 /* TEXT */)
24609
+ ]),
24610
+ default: withCtx(() => [
24611
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item0.menu, (item1, index1) => {
24612
+ return (openBlock(), createElementBlock(Fragment, {
24613
+ key:
24624
24614
  item1.index
24625
24615
  ? item1.index
24626
24616
  : String(index) + '-' + String(index0) + '-' + String(index1)
24627
24617
 
24628
- }, [
24629
- (!item1.menu || item1.menu.length === 0)
24630
- ? (openBlock(), createBlock(_component_el_menu_item, {
24631
- key: 0,
24632
- index:
24618
+ }, [
24619
+ (!item1.menu || item1.menu.length === 0)
24620
+ ? (openBlock(), createBlock(_component_el_menu_item, {
24621
+ key: 0,
24622
+ index:
24633
24623
  item1.index
24634
24624
  ? item1.index
24635
24625
  : String(index) + '-' + String(index0) + '-' + String(index1)
24636
24626
  ,
24637
- disabled:
24627
+ disabled:
24638
24628
  'disabled' in item1
24639
24629
  ? item1.disabled
24640
24630
  : 'hdlDisabled' in item1
24641
24631
  ? item1.hdlDisabled(scopeThis_box, item1, index1)
24642
24632
  : false
24643
24633
 
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:
24634
+ }, {
24635
+ default: withCtx(() => [
24636
+ createTextVNode(toDisplayString(item1.title), 1 /* TEXT */)
24637
+ ]),
24638
+ _: 2 /* DYNAMIC */
24639
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24640
+ : (openBlock(), createBlock(_component_el_sub_menu, {
24641
+ key: 1,
24642
+ index:
24653
24643
  item1.index
24654
24644
  ? item1.index
24655
24645
  : String(index) + '-' + String(index0) + '-' + String(index1)
24656
24646
 
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:
24647
+ }, {
24648
+ title: withCtx(() => [
24649
+ createTextVNode(toDisplayString(item1.title), 1 /* TEXT */)
24650
+ ]),
24651
+ default: withCtx(() => [
24652
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item1.menu, (item2, index2) => {
24653
+ return (openBlock(), createElementBlock(Fragment, {
24654
+ key:
24665
24655
  item2.index
24666
24656
  ? item2.index
24667
24657
  : String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2)
24668
24658
 
24669
- }, [
24670
- (!item2.menu || item2.menu.length === 0)
24671
- ? (openBlock(), createBlock(_component_el_menu_item, {
24672
- key: 0,
24673
- index:
24659
+ }, [
24660
+ (!item2.menu || item2.menu.length === 0)
24661
+ ? (openBlock(), createBlock(_component_el_menu_item, {
24662
+ key: 0,
24663
+ index:
24674
24664
  item2.index
24675
24665
  ? item2.index
24676
24666
  : String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2)
24677
24667
  ,
24678
- disabled:
24668
+ disabled:
24679
24669
  'disabled' in item2
24680
24670
  ? item2.disabled
24681
24671
  : 'hdlDisabled' in item2
24682
24672
  ? item2.hdlDisabled(scopeThis_box, item2, index2)
24683
24673
  : false
24684
24674
 
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:
24675
+ }, {
24676
+ default: withCtx(() => [
24677
+ createTextVNode(toDisplayString(item2.title), 1 /* TEXT */)
24678
+ ]),
24679
+ _: 2 /* DYNAMIC */
24680
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
24681
+ : (openBlock(), createBlock(_component_el_sub_menu, {
24682
+ key: 1,
24683
+ index:
24694
24684
  item2.index
24695
24685
  ? item2.index
24696
24686
  : String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2)
24697
24687
 
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:
24688
+ }, {
24689
+ title: withCtx(() => [
24690
+ createTextVNode(toDisplayString(item2.title), 1 /* TEXT */)
24691
+ ]),
24692
+ default: withCtx(() => [
24693
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item2.menu, (item3, index3) => {
24694
+ return (openBlock(), createBlock(_component_el_menu_item, {
24695
+ key:
24706
24696
  item3.index
24707
24697
  ? item3.index
24708
24698
  : String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2) + '-' + String(index3)
24709
24699
  ,
24710
- index:
24700
+ index:
24711
24701
  item3.index
24712
24702
  ? item3.index
24713
24703
  : String(index) + '-' + String(index0) + '-' + String(index1) + '-' + String(index2) + '-' + String(index3)
24714
24704
  ,
24715
- disabled:
24705
+ disabled:
24716
24706
  'disabled' in item3
24717
24707
  ? item3.disabled
24718
24708
  : 'hdlDisabled' in item3
24719
24709
  ? item3.hdlDisabled(scopeThis_box, item3, index3)
24720
24710
  : false
24721
24711
 
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 */))
24712
+ }, {
24713
+ default: withCtx(() => [
24714
+ createTextVNode(toDisplayString(item3.title), 1 /* TEXT */)
24715
+ ]),
24716
+ _: 2 /* DYNAMIC */
24717
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index", "disabled"]))
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
+ _: 2 /* DYNAMIC */
24736
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["index"]))
24737
+ ], 64 /* STABLE_FRAGMENT */))
24738
+ }), 128 /* KEYED_FRAGMENT */))
24739
+ ]),
24740
+ _: 1 /* STABLE */
24741
+ }, 8 /* PROPS */, ["mode", "default-active", "background-color", "text-color", "active-text-color", "style"]))
24753
24742
  }
24754
24743
  }
24755
24744