@yoooloo42/joker 1.0.107 → 1.0.109
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 +30 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +30 -30
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22516,7 +22516,6 @@ var script$h = {
|
|
|
22516
22516
|
|
|
22517
22517
|
const props = __props;
|
|
22518
22518
|
|
|
22519
|
-
|
|
22520
22519
|
// props属性包装,使得页面和js使用相同的命名
|
|
22521
22520
|
const formData_box = props.modelValue;
|
|
22522
22521
|
const scopeThis_box = props.scopeThis;
|
|
@@ -22606,7 +22605,7 @@ var script$g = {
|
|
|
22606
22605
|
|
|
22607
22606
|
const props = __props;
|
|
22608
22607
|
|
|
22609
|
-
// props
|
|
22608
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
22610
22609
|
const formData_box = props.modelValue;
|
|
22611
22610
|
const formProps_box = props.myProps;
|
|
22612
22611
|
const scopeThis_box = props.scopeThis;
|
|
@@ -23351,7 +23350,7 @@ var script$f = {
|
|
|
23351
23350
|
|
|
23352
23351
|
const props = __props;
|
|
23353
23352
|
|
|
23354
|
-
// props
|
|
23353
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
23355
23354
|
const formData_box = props.modelValue;
|
|
23356
23355
|
const formProps_box = props.myProps;
|
|
23357
23356
|
const scopeThis_box = props.scopeThis;
|
|
@@ -23593,10 +23592,10 @@ var script$e = {
|
|
|
23593
23592
|
|
|
23594
23593
|
const props = __props;
|
|
23595
23594
|
|
|
23596
|
-
// props
|
|
23597
|
-
const formData_box = props.modelValue;
|
|
23595
|
+
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
23596
|
+
const formData_box = reactive(props.modelValue);
|
|
23598
23597
|
const formProps_box = reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23599
|
-
const scopeThis_box = props.scopeThis;
|
|
23598
|
+
const scopeThis_box = reactive(props.scopeThis);
|
|
23600
23599
|
|
|
23601
23600
|
return (_ctx, _cache) => {
|
|
23602
23601
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
@@ -23616,20 +23615,20 @@ return (_ctx, _cache) => {
|
|
|
23616
23615
|
}, {
|
|
23617
23616
|
default: withCtx(() => [
|
|
23618
23617
|
createVNode(script$f, {
|
|
23619
|
-
modelValue:
|
|
23620
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (
|
|
23618
|
+
modelValue: formData_box,
|
|
23619
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((formData_box) = $event)),
|
|
23621
23620
|
myProps: formProps_box,
|
|
23622
|
-
scopeThis:
|
|
23621
|
+
scopeThis: scopeThis_box
|
|
23623
23622
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
|
|
23624
23623
|
]),
|
|
23625
23624
|
_: 1 /* STABLE */
|
|
23626
23625
|
}, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
|
|
23627
23626
|
: (openBlock(), createBlock(script$f, {
|
|
23628
23627
|
key: 1,
|
|
23629
|
-
modelValue:
|
|
23630
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (
|
|
23628
|
+
modelValue: formData_box,
|
|
23629
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((formData_box) = $event)),
|
|
23631
23630
|
myProps: formProps_box,
|
|
23632
|
-
scopeThis:
|
|
23631
|
+
scopeThis: scopeThis_box
|
|
23633
23632
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
|
|
23634
23633
|
}
|
|
23635
23634
|
}
|
|
@@ -23658,7 +23657,8 @@ var script$d = {
|
|
|
23658
23657
|
setup(__props) {
|
|
23659
23658
|
|
|
23660
23659
|
const props = __props;
|
|
23661
|
-
const myProps_box =
|
|
23660
|
+
const myProps_box = reactive(Object.assign({}, ly0default$1.myProps, props.myProps));
|
|
23661
|
+
const scopeThis_box = reactive(props.scopeThis);
|
|
23662
23662
|
|
|
23663
23663
|
const handleRun = (
|
|
23664
23664
|
index, // 目标索引
|
|
@@ -23673,7 +23673,7 @@ const handleRun = (
|
|
|
23673
23673
|
// 节点存在自定义索引
|
|
23674
23674
|
if (!!menu[i].index && index === menu[i].index) {
|
|
23675
23675
|
if (menu[i].handle) {
|
|
23676
|
-
menu[i].handle(
|
|
23676
|
+
menu[i].handle(scopeThis_box, index);
|
|
23677
23677
|
}
|
|
23678
23678
|
result = true;
|
|
23679
23679
|
break
|
|
@@ -23681,7 +23681,7 @@ const handleRun = (
|
|
|
23681
23681
|
// 节点不存在自定义索引
|
|
23682
23682
|
if (index === index0) {
|
|
23683
23683
|
if (menu[i].handle) {
|
|
23684
|
-
menu[i].handle(
|
|
23684
|
+
menu[i].handle(scopeThis_box, index);
|
|
23685
23685
|
}
|
|
23686
23686
|
result = true;
|
|
23687
23687
|
break
|
|
@@ -23698,7 +23698,7 @@ const handleRun = (
|
|
|
23698
23698
|
};
|
|
23699
23699
|
|
|
23700
23700
|
const handleSelect = key=>{
|
|
23701
|
-
handleRun(key,
|
|
23701
|
+
handleRun(key, myProps_box.menu, '');
|
|
23702
23702
|
};
|
|
23703
23703
|
|
|
23704
23704
|
const handleOpen = key=>{};
|
|
@@ -23710,22 +23710,22 @@ return (_ctx, _cache) => {
|
|
|
23710
23710
|
const _component_el_menu = resolveComponent("el-menu");
|
|
23711
23711
|
|
|
23712
23712
|
return (openBlock(), createBlock(_component_el_menu, {
|
|
23713
|
-
mode: myProps_box.
|
|
23714
|
-
"default-active": myProps_box.
|
|
23713
|
+
mode: myProps_box.mode,
|
|
23714
|
+
"default-active": myProps_box.defaultActive,
|
|
23715
23715
|
onOpen: handleOpen,
|
|
23716
23716
|
onClose: handleClose,
|
|
23717
23717
|
onSelect: handleSelect,
|
|
23718
|
-
"background-color": myProps_box.
|
|
23719
|
-
"text-color": myProps_box.
|
|
23720
|
-
"active-text-color": myProps_box.
|
|
23718
|
+
"background-color": myProps_box.backgroundColor,
|
|
23719
|
+
"text-color": myProps_box.textColor,
|
|
23720
|
+
"active-text-color": myProps_box.activeTextColor,
|
|
23721
23721
|
"menu-trigger": "hover",
|
|
23722
|
-
style: normalizeStyle('--el-menu-horizontal-height: ' + myProps_box.
|
|
23723
|
-
myProps_box.
|
|
23724
|
-
myProps_box.
|
|
23722
|
+
style: normalizeStyle('--el-menu-horizontal-height: ' + myProps_box.horizontalHeight + '; ' +
|
|
23723
|
+
myProps_box.styleBase + ' ' +
|
|
23724
|
+
myProps_box.style)
|
|
23725
23725
|
}, {
|
|
23726
23726
|
default: withCtx(() => [
|
|
23727
23727
|
createCommentVNode(" 第1层 "),
|
|
23728
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
23728
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(myProps_box.menu, (item, index) => {
|
|
23729
23729
|
return (openBlock(), createElementBlock(Fragment, {
|
|
23730
23730
|
key: item.index ? item.index : String(index)
|
|
23731
23731
|
}, [
|
|
@@ -23737,7 +23737,7 @@ return (_ctx, _cache) => {
|
|
|
23737
23737
|
'disabled' in item
|
|
23738
23738
|
? item.disabled
|
|
23739
23739
|
: 'hdlDisabled' in item
|
|
23740
|
-
? item.hdlDisabled(
|
|
23740
|
+
? item.hdlDisabled(scopeThis_box, item, index)
|
|
23741
23741
|
: false
|
|
23742
23742
|
|
|
23743
23743
|
}, {
|
|
@@ -23766,7 +23766,7 @@ return (_ctx, _cache) => {
|
|
|
23766
23766
|
'disabled' in item0
|
|
23767
23767
|
? item0.disabled
|
|
23768
23768
|
: 'hdlDisabled' in item0
|
|
23769
|
-
? item0.hdlDisabled(
|
|
23769
|
+
? item0.hdlDisabled(scopeThis_box, item0, index0)
|
|
23770
23770
|
: false
|
|
23771
23771
|
|
|
23772
23772
|
}, {
|
|
@@ -23803,7 +23803,7 @@ return (_ctx, _cache) => {
|
|
|
23803
23803
|
'disabled' in item1
|
|
23804
23804
|
? item1.disabled
|
|
23805
23805
|
: 'hdlDisabled' in item1
|
|
23806
|
-
? item1.hdlDisabled(
|
|
23806
|
+
? item1.hdlDisabled(scopeThis_box, item1, index1)
|
|
23807
23807
|
: false
|
|
23808
23808
|
|
|
23809
23809
|
}, {
|
|
@@ -23844,7 +23844,7 @@ return (_ctx, _cache) => {
|
|
|
23844
23844
|
'disabled' in item2
|
|
23845
23845
|
? item2.disabled
|
|
23846
23846
|
: 'hdlDisabled' in item2
|
|
23847
|
-
? item2.hdlDisabled(
|
|
23847
|
+
? item2.hdlDisabled(scopeThis_box, item2, index2)
|
|
23848
23848
|
: false
|
|
23849
23849
|
|
|
23850
23850
|
}, {
|
|
@@ -23882,7 +23882,7 @@ return (_ctx, _cache) => {
|
|
|
23882
23882
|
'disabled' in item3
|
|
23883
23883
|
? item3.disabled
|
|
23884
23884
|
: 'hdlDisabled' in item3
|
|
23885
|
-
? item3.hdlDisabled(
|
|
23885
|
+
? item3.hdlDisabled(scopeThis_box, item3, index3)
|
|
23886
23886
|
: false
|
|
23887
23887
|
|
|
23888
23888
|
}, {
|