@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 +150 -161
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +151 -162
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
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.
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
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
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
|
|
24572
|
-
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
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
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24604
|
-
|
|
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
|
-
|
|
24613
|
-
|
|
24614
|
-
|
|
24615
|
-
|
|
24616
|
-
|
|
24617
|
-
|
|
24618
|
-
|
|
24619
|
-
|
|
24620
|
-
|
|
24621
|
-
|
|
24622
|
-
|
|
24623
|
-
|
|
24624
|
-
|
|
24625
|
-
|
|
24626
|
-
|
|
24627
|
-
|
|
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
|
-
|
|
24634
|
-
|
|
24635
|
-
|
|
24636
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
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
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
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
|
-
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
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
|
-
|
|
24704
|
-
|
|
24705
|
-
|
|
24706
|
-
|
|
24707
|
-
|
|
24708
|
-
|
|
24709
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24753
|
-
|
|
24754
|
-
|
|
24755
|
-
|
|
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
|
|