@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.esm.js
CHANGED
|
@@ -22516,9 +22516,8 @@ var script$h = {
|
|
|
22516
22516
|
|
|
22517
22517
|
const props = __props;
|
|
22518
22518
|
|
|
22519
|
-
|
|
22520
22519
|
// props属性包装,使得页面和js使用相同的命名
|
|
22521
|
-
|
|
22520
|
+
let formData_box = props.modelValue;
|
|
22522
22521
|
const scopeThis_box = props.scopeThis;
|
|
22523
22522
|
const propsItem_box = props.item;
|
|
22524
22523
|
|
|
@@ -22606,8 +22605,8 @@ var script$g = {
|
|
|
22606
22605
|
|
|
22607
22606
|
const props = __props;
|
|
22608
22607
|
|
|
22609
|
-
// props
|
|
22610
|
-
|
|
22608
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
22609
|
+
let formData_box = props.modelValue;
|
|
22611
22610
|
const formProps_box = props.myProps;
|
|
22612
22611
|
const scopeThis_box = props.scopeThis;
|
|
22613
22612
|
const propsItem_box = props.item;
|
|
@@ -23297,7 +23296,7 @@ return (_ctx, _cache) => {
|
|
|
23297
23296
|
? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
23298
23297
|
createVNode(_component_ly0d7thumb, {
|
|
23299
23298
|
modelValue: unref(formData_box),
|
|
23300
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23299
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23301
23300
|
myProps: {
|
|
23302
23301
|
thumb: {
|
|
23303
23302
|
fieldName: unref(propsItem_box).thumb.fieldName || unref(formProps_box).para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23351,8 +23350,8 @@ var script$f = {
|
|
|
23351
23350
|
|
|
23352
23351
|
const props = __props;
|
|
23353
23352
|
|
|
23354
|
-
// props
|
|
23355
|
-
|
|
23353
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
23354
|
+
let formData_box = props.modelValue;
|
|
23356
23355
|
const formProps_box = props.myProps;
|
|
23357
23356
|
const scopeThis_box = props.scopeThis;
|
|
23358
23357
|
|
|
@@ -23441,7 +23440,7 @@ return (_ctx, _cache) => {
|
|
|
23441
23440
|
}, [
|
|
23442
23441
|
createVNode(script$h, {
|
|
23443
23442
|
modelValue: unref(formData_box),
|
|
23444
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23443
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23445
23444
|
myProps: unref(formProps_box),
|
|
23446
23445
|
scopeThis: unref(scopeThis_box),
|
|
23447
23446
|
item: item0
|
|
@@ -23491,7 +23490,7 @@ return (_ctx, _cache) => {
|
|
|
23491
23490
|
}, [
|
|
23492
23491
|
createVNode(script$h, {
|
|
23493
23492
|
modelValue: unref(formData_box),
|
|
23494
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23493
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23495
23494
|
myProps: unref(formProps_box),
|
|
23496
23495
|
scopeThis: unref(scopeThis_box),
|
|
23497
23496
|
item: item2
|
|
@@ -23504,7 +23503,7 @@ return (_ctx, _cache) => {
|
|
|
23504
23503
|
}, [
|
|
23505
23504
|
createVNode(script$g, {
|
|
23506
23505
|
modelValue: unref(formData_box),
|
|
23507
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23506
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23508
23507
|
myProps: unref(formProps_box),
|
|
23509
23508
|
scopeThis: unref(scopeThis_box),
|
|
23510
23509
|
item: item2
|
|
@@ -23527,7 +23526,7 @@ return (_ctx, _cache) => {
|
|
|
23527
23526
|
: createCommentVNode("v-if", true),
|
|
23528
23527
|
createVNode(script$g, {
|
|
23529
23528
|
modelValue: unref(formData_box),
|
|
23530
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23529
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23531
23530
|
myProps: unref(formProps_box),
|
|
23532
23531
|
scopeThis: unref(scopeThis_box),
|
|
23533
23532
|
item: item0
|
|
@@ -23593,10 +23592,10 @@ var script$e = {
|
|
|
23593
23592
|
|
|
23594
23593
|
const props = __props;
|
|
23595
23594
|
|
|
23596
|
-
// props
|
|
23597
|
-
|
|
23595
|
+
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
23596
|
+
let 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");
|
|
@@ -23617,9 +23616,9 @@ return (_ctx, _cache) => {
|
|
|
23617
23616
|
default: withCtx(() => [
|
|
23618
23617
|
createVNode(script$f, {
|
|
23619
23618
|
modelValue: unref(formData_box),
|
|
23620
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23619
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $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 */
|
|
@@ -23627,9 +23626,9 @@ return (_ctx, _cache) => {
|
|
|
23627
23626
|
: (openBlock(), createBlock(script$f, {
|
|
23628
23627
|
key: 1,
|
|
23629
23628
|
modelValue: unref(formData_box),
|
|
23630
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23629
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $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
|
}, {
|