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