@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.cjs.js
CHANGED
|
@@ -22520,7 +22520,6 @@ var script$h = {
|
|
|
22520
22520
|
|
|
22521
22521
|
const props = __props;
|
|
22522
22522
|
|
|
22523
|
-
|
|
22524
22523
|
// props属性包装,使得页面和js使用相同的命名
|
|
22525
22524
|
const formData_box = props.modelValue;
|
|
22526
22525
|
const scopeThis_box = props.scopeThis;
|
|
@@ -22610,7 +22609,7 @@ var script$g = {
|
|
|
22610
22609
|
|
|
22611
22610
|
const props = __props;
|
|
22612
22611
|
|
|
22613
|
-
// props
|
|
22612
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
22614
22613
|
const formData_box = props.modelValue;
|
|
22615
22614
|
const formProps_box = props.myProps;
|
|
22616
22615
|
const scopeThis_box = props.scopeThis;
|
|
@@ -23355,7 +23354,7 @@ var script$f = {
|
|
|
23355
23354
|
|
|
23356
23355
|
const props = __props;
|
|
23357
23356
|
|
|
23358
|
-
// props
|
|
23357
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
23359
23358
|
const formData_box = props.modelValue;
|
|
23360
23359
|
const formProps_box = props.myProps;
|
|
23361
23360
|
const scopeThis_box = props.scopeThis;
|
|
@@ -23597,10 +23596,10 @@ var script$e = {
|
|
|
23597
23596
|
|
|
23598
23597
|
const props = __props;
|
|
23599
23598
|
|
|
23600
|
-
// props
|
|
23601
|
-
const formData_box = props.modelValue;
|
|
23599
|
+
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
23600
|
+
const formData_box = vue.reactive(props.modelValue);
|
|
23602
23601
|
const formProps_box = vue.reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23603
|
-
const scopeThis_box = props.scopeThis;
|
|
23602
|
+
const scopeThis_box = vue.reactive(props.scopeThis);
|
|
23604
23603
|
|
|
23605
23604
|
return (_ctx, _cache) => {
|
|
23606
23605
|
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
@@ -23620,20 +23619,20 @@ return (_ctx, _cache) => {
|
|
|
23620
23619
|
}, {
|
|
23621
23620
|
default: vue.withCtx(() => [
|
|
23622
23621
|
vue.createVNode(script$f, {
|
|
23623
|
-
modelValue:
|
|
23624
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (
|
|
23622
|
+
modelValue: formData_box,
|
|
23623
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((formData_box) = $event)),
|
|
23625
23624
|
myProps: formProps_box,
|
|
23626
|
-
scopeThis:
|
|
23625
|
+
scopeThis: scopeThis_box
|
|
23627
23626
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
|
|
23628
23627
|
]),
|
|
23629
23628
|
_: 1 /* STABLE */
|
|
23630
23629
|
}, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
|
|
23631
23630
|
: (vue.openBlock(), vue.createBlock(script$f, {
|
|
23632
23631
|
key: 1,
|
|
23633
|
-
modelValue:
|
|
23634
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (
|
|
23632
|
+
modelValue: formData_box,
|
|
23633
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((formData_box) = $event)),
|
|
23635
23634
|
myProps: formProps_box,
|
|
23636
|
-
scopeThis:
|
|
23635
|
+
scopeThis: scopeThis_box
|
|
23637
23636
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
|
|
23638
23637
|
}
|
|
23639
23638
|
}
|
|
@@ -23662,7 +23661,8 @@ var script$d = {
|
|
|
23662
23661
|
setup(__props) {
|
|
23663
23662
|
|
|
23664
23663
|
const props = __props;
|
|
23665
|
-
const myProps_box = vue.
|
|
23664
|
+
const myProps_box = vue.reactive(Object.assign({}, ly0default$1.myProps, props.myProps));
|
|
23665
|
+
const scopeThis_box = vue.reactive(props.scopeThis);
|
|
23666
23666
|
|
|
23667
23667
|
const handleRun = (
|
|
23668
23668
|
index, // 目标索引
|
|
@@ -23677,7 +23677,7 @@ const handleRun = (
|
|
|
23677
23677
|
// 节点存在自定义索引
|
|
23678
23678
|
if (!!menu[i].index && index === menu[i].index) {
|
|
23679
23679
|
if (menu[i].handle) {
|
|
23680
|
-
menu[i].handle(
|
|
23680
|
+
menu[i].handle(scopeThis_box, index);
|
|
23681
23681
|
}
|
|
23682
23682
|
result = true;
|
|
23683
23683
|
break
|
|
@@ -23685,7 +23685,7 @@ const handleRun = (
|
|
|
23685
23685
|
// 节点不存在自定义索引
|
|
23686
23686
|
if (index === index0) {
|
|
23687
23687
|
if (menu[i].handle) {
|
|
23688
|
-
menu[i].handle(
|
|
23688
|
+
menu[i].handle(scopeThis_box, index);
|
|
23689
23689
|
}
|
|
23690
23690
|
result = true;
|
|
23691
23691
|
break
|
|
@@ -23702,7 +23702,7 @@ const handleRun = (
|
|
|
23702
23702
|
};
|
|
23703
23703
|
|
|
23704
23704
|
const handleSelect = key=>{
|
|
23705
|
-
handleRun(key,
|
|
23705
|
+
handleRun(key, myProps_box.menu, '');
|
|
23706
23706
|
};
|
|
23707
23707
|
|
|
23708
23708
|
const handleOpen = key=>{};
|
|
@@ -23714,22 +23714,22 @@ return (_ctx, _cache) => {
|
|
|
23714
23714
|
const _component_el_menu = vue.resolveComponent("el-menu");
|
|
23715
23715
|
|
|
23716
23716
|
return (vue.openBlock(), vue.createBlock(_component_el_menu, {
|
|
23717
|
-
mode: myProps_box.
|
|
23718
|
-
"default-active": myProps_box.
|
|
23717
|
+
mode: myProps_box.mode,
|
|
23718
|
+
"default-active": myProps_box.defaultActive,
|
|
23719
23719
|
onOpen: handleOpen,
|
|
23720
23720
|
onClose: handleClose,
|
|
23721
23721
|
onSelect: handleSelect,
|
|
23722
|
-
"background-color": myProps_box.
|
|
23723
|
-
"text-color": myProps_box.
|
|
23724
|
-
"active-text-color": myProps_box.
|
|
23722
|
+
"background-color": myProps_box.backgroundColor,
|
|
23723
|
+
"text-color": myProps_box.textColor,
|
|
23724
|
+
"active-text-color": myProps_box.activeTextColor,
|
|
23725
23725
|
"menu-trigger": "hover",
|
|
23726
|
-
style: vue.normalizeStyle('--el-menu-horizontal-height: ' + myProps_box.
|
|
23727
|
-
myProps_box.
|
|
23728
|
-
myProps_box.
|
|
23726
|
+
style: vue.normalizeStyle('--el-menu-horizontal-height: ' + myProps_box.horizontalHeight + '; ' +
|
|
23727
|
+
myProps_box.styleBase + ' ' +
|
|
23728
|
+
myProps_box.style)
|
|
23729
23729
|
}, {
|
|
23730
23730
|
default: vue.withCtx(() => [
|
|
23731
23731
|
vue.createCommentVNode(" 第1层 "),
|
|
23732
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
23732
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(myProps_box.menu, (item, index) => {
|
|
23733
23733
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
23734
23734
|
key: item.index ? item.index : String(index)
|
|
23735
23735
|
}, [
|
|
@@ -23741,7 +23741,7 @@ return (_ctx, _cache) => {
|
|
|
23741
23741
|
'disabled' in item
|
|
23742
23742
|
? item.disabled
|
|
23743
23743
|
: 'hdlDisabled' in item
|
|
23744
|
-
? item.hdlDisabled(
|
|
23744
|
+
? item.hdlDisabled(scopeThis_box, item, index)
|
|
23745
23745
|
: false
|
|
23746
23746
|
|
|
23747
23747
|
}, {
|
|
@@ -23770,7 +23770,7 @@ return (_ctx, _cache) => {
|
|
|
23770
23770
|
'disabled' in item0
|
|
23771
23771
|
? item0.disabled
|
|
23772
23772
|
: 'hdlDisabled' in item0
|
|
23773
|
-
? item0.hdlDisabled(
|
|
23773
|
+
? item0.hdlDisabled(scopeThis_box, item0, index0)
|
|
23774
23774
|
: false
|
|
23775
23775
|
|
|
23776
23776
|
}, {
|
|
@@ -23807,7 +23807,7 @@ return (_ctx, _cache) => {
|
|
|
23807
23807
|
'disabled' in item1
|
|
23808
23808
|
? item1.disabled
|
|
23809
23809
|
: 'hdlDisabled' in item1
|
|
23810
|
-
? item1.hdlDisabled(
|
|
23810
|
+
? item1.hdlDisabled(scopeThis_box, item1, index1)
|
|
23811
23811
|
: false
|
|
23812
23812
|
|
|
23813
23813
|
}, {
|
|
@@ -23848,7 +23848,7 @@ return (_ctx, _cache) => {
|
|
|
23848
23848
|
'disabled' in item2
|
|
23849
23849
|
? item2.disabled
|
|
23850
23850
|
: 'hdlDisabled' in item2
|
|
23851
|
-
? item2.hdlDisabled(
|
|
23851
|
+
? item2.hdlDisabled(scopeThis_box, item2, index2)
|
|
23852
23852
|
: false
|
|
23853
23853
|
|
|
23854
23854
|
}, {
|
|
@@ -23886,7 +23886,7 @@ return (_ctx, _cache) => {
|
|
|
23886
23886
|
'disabled' in item3
|
|
23887
23887
|
? item3.disabled
|
|
23888
23888
|
: 'hdlDisabled' in item3
|
|
23889
|
-
? item3.hdlDisabled(
|
|
23889
|
+
? item3.hdlDisabled(scopeThis_box, item3, index3)
|
|
23890
23890
|
: false
|
|
23891
23891
|
|
|
23892
23892
|
}, {
|