@yoooloo42/joker 1.0.107 → 1.0.110
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 +36 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +36 -36
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22520,9 +22520,8 @@ var script$h = {
|
|
|
22520
22520
|
|
|
22521
22521
|
const props = __props;
|
|
22522
22522
|
|
|
22523
|
-
|
|
22524
22523
|
// props属性包装,使得页面和js使用相同的命名
|
|
22525
|
-
|
|
22524
|
+
let formData_box = props.modelValue;
|
|
22526
22525
|
const scopeThis_box = props.scopeThis;
|
|
22527
22526
|
const propsItem_box = props.item;
|
|
22528
22527
|
|
|
@@ -22610,8 +22609,8 @@ var script$g = {
|
|
|
22610
22609
|
|
|
22611
22610
|
const props = __props;
|
|
22612
22611
|
|
|
22613
|
-
// props
|
|
22614
|
-
|
|
22612
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
22613
|
+
let formData_box = props.modelValue;
|
|
22615
22614
|
const formProps_box = props.myProps;
|
|
22616
22615
|
const scopeThis_box = props.scopeThis;
|
|
22617
22616
|
const propsItem_box = props.item;
|
|
@@ -23301,7 +23300,7 @@ return (_ctx, _cache) => {
|
|
|
23301
23300
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
|
|
23302
23301
|
vue.createVNode(_component_ly0d7thumb, {
|
|
23303
23302
|
modelValue: vue.unref(formData_box),
|
|
23304
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23303
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23305
23304
|
myProps: {
|
|
23306
23305
|
thumb: {
|
|
23307
23306
|
fieldName: vue.unref(propsItem_box).thumb.fieldName || vue.unref(formProps_box).para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23355,8 +23354,8 @@ var script$f = {
|
|
|
23355
23354
|
|
|
23356
23355
|
const props = __props;
|
|
23357
23356
|
|
|
23358
|
-
// props
|
|
23359
|
-
|
|
23357
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
23358
|
+
let formData_box = props.modelValue;
|
|
23360
23359
|
const formProps_box = props.myProps;
|
|
23361
23360
|
const scopeThis_box = props.scopeThis;
|
|
23362
23361
|
|
|
@@ -23445,7 +23444,7 @@ return (_ctx, _cache) => {
|
|
|
23445
23444
|
}, [
|
|
23446
23445
|
vue.createVNode(script$h, {
|
|
23447
23446
|
modelValue: vue.unref(formData_box),
|
|
23448
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23447
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23449
23448
|
myProps: vue.unref(formProps_box),
|
|
23450
23449
|
scopeThis: vue.unref(scopeThis_box),
|
|
23451
23450
|
item: item0
|
|
@@ -23495,7 +23494,7 @@ return (_ctx, _cache) => {
|
|
|
23495
23494
|
}, [
|
|
23496
23495
|
vue.createVNode(script$h, {
|
|
23497
23496
|
modelValue: vue.unref(formData_box),
|
|
23498
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23497
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23499
23498
|
myProps: vue.unref(formProps_box),
|
|
23500
23499
|
scopeThis: vue.unref(scopeThis_box),
|
|
23501
23500
|
item: item2
|
|
@@ -23508,7 +23507,7 @@ return (_ctx, _cache) => {
|
|
|
23508
23507
|
}, [
|
|
23509
23508
|
vue.createVNode(script$g, {
|
|
23510
23509
|
modelValue: vue.unref(formData_box),
|
|
23511
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23510
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23512
23511
|
myProps: vue.unref(formProps_box),
|
|
23513
23512
|
scopeThis: vue.unref(scopeThis_box),
|
|
23514
23513
|
item: item2
|
|
@@ -23531,7 +23530,7 @@ return (_ctx, _cache) => {
|
|
|
23531
23530
|
: vue.createCommentVNode("v-if", true),
|
|
23532
23531
|
vue.createVNode(script$g, {
|
|
23533
23532
|
modelValue: vue.unref(formData_box),
|
|
23534
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23533
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23535
23534
|
myProps: vue.unref(formProps_box),
|
|
23536
23535
|
scopeThis: vue.unref(scopeThis_box),
|
|
23537
23536
|
item: item0
|
|
@@ -23597,10 +23596,10 @@ var script$e = {
|
|
|
23597
23596
|
|
|
23598
23597
|
const props = __props;
|
|
23599
23598
|
|
|
23600
|
-
// props
|
|
23601
|
-
|
|
23599
|
+
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
23600
|
+
let 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");
|
|
@@ -23621,9 +23620,9 @@ return (_ctx, _cache) => {
|
|
|
23621
23620
|
default: vue.withCtx(() => [
|
|
23622
23621
|
vue.createVNode(script$f, {
|
|
23623
23622
|
modelValue: vue.unref(formData_box),
|
|
23624
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23623
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $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 */
|
|
@@ -23631,9 +23630,9 @@ return (_ctx, _cache) => {
|
|
|
23631
23630
|
: (vue.openBlock(), vue.createBlock(script$f, {
|
|
23632
23631
|
key: 1,
|
|
23633
23632
|
modelValue: vue.unref(formData_box),
|
|
23634
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event :
|
|
23633
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $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
|
}, {
|