@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.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,
|
|
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(),
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
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
|
-
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
|
|
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
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
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
|
-
|
|
24609
|
-
|
|
24610
|
-
|
|
24611
|
-
|
|
24612
|
-
|
|
24613
|
-
|
|
24614
|
-
|
|
24615
|
-
|
|
24616
|
-
|
|
24617
|
-
|
|
24618
|
-
|
|
24619
|
-
|
|
24620
|
-
|
|
24621
|
-
|
|
24622
|
-
|
|
24623
|
-
|
|
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
|
-
|
|
24630
|
-
|
|
24631
|
-
|
|
24632
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
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
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
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
|
-
|
|
24671
|
-
|
|
24672
|
-
|
|
24673
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
|
|
24693
|
-
|
|
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
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24702
|
-
|
|
24703
|
-
|
|
24704
|
-
|
|
24705
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
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
|
-
], 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
|
|