@yoooloo42/joker 1.0.45 → 1.0.47
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 +148 -145
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +148 -145
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -39303,7 +39303,7 @@ const _hoisted_1$d = { key: 12 };
|
|
|
39303
39303
|
const _hoisted_2$d = { key: 0 };
|
|
39304
39304
|
const _hoisted_3$8 = { key: 13 };
|
|
39305
39305
|
const _hoisted_4$7 = { key: 0 };
|
|
39306
|
-
const _hoisted_5$
|
|
39306
|
+
const _hoisted_5$6 = { key: 14 };
|
|
39307
39307
|
const _hoisted_6$6 = { key: 0 };
|
|
39308
39308
|
const _hoisted_7$6 = { key: 16 };
|
|
39309
39309
|
const _hoisted_8$5 = ["innerHTML"];
|
|
@@ -39872,7 +39872,7 @@ return (_ctx, _cache) => {
|
|
|
39872
39872
|
: createCommentVNode("v-if", true),
|
|
39873
39873
|
createCommentVNode(" 多个图片 "),
|
|
39874
39874
|
(__props.item.inputType === 'images')
|
|
39875
|
-
? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
39875
|
+
? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
39876
39876
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataBox.fieldsValue[__props.item.fieldName], (itemImages, indexImages) => {
|
|
39877
39877
|
return (openBlock(), createElementBlock("div", {
|
|
39878
39878
|
key: indexImages,
|
|
@@ -40128,10 +40128,9 @@ script$f.__scopeId = "data-v-a94fa4ba";
|
|
|
40128
40128
|
script$f.__file = "src/form/InputBox.vue";
|
|
40129
40129
|
|
|
40130
40130
|
const _hoisted_1$c = { key: 0 };
|
|
40131
|
-
const _hoisted_2$c =
|
|
40132
|
-
const _hoisted_3$7 =
|
|
40133
|
-
const _hoisted_4$6 =
|
|
40134
|
-
const _hoisted_5$6 = ["colspan"];
|
|
40131
|
+
const _hoisted_2$c = ["colspan"];
|
|
40132
|
+
const _hoisted_3$7 = { key: 0 };
|
|
40133
|
+
const _hoisted_4$6 = ["colspan"];
|
|
40135
40134
|
|
|
40136
40135
|
|
|
40137
40136
|
var script$e = {
|
|
@@ -40140,8 +40139,14 @@ var script$e = {
|
|
|
40140
40139
|
setup(__props) {
|
|
40141
40140
|
|
|
40142
40141
|
const props = __props;
|
|
40143
|
-
|
|
40144
|
-
|
|
40142
|
+
// 监听 myProps.menu 的变化
|
|
40143
|
+
watch(() => props.myProps.menu, (newMenu, oldMenu) => {
|
|
40144
|
+
console.log('--- WATCH: myProps.menu 变化 ---');
|
|
40145
|
+
console.log('新值长度:', newMenu ? newMenu.length : 0);
|
|
40146
|
+
// 检查此时 v-if 条件是否应该为 true
|
|
40147
|
+
console.log('v-if 条件现在应为 true:', newMenu && newMenu.length > 0);
|
|
40148
|
+
}, {
|
|
40149
|
+
immediate: true // 立即执行一次,观察初始状态
|
|
40145
40150
|
});
|
|
40146
40151
|
|
|
40147
40152
|
const style = reactive({
|
|
@@ -40159,157 +40164,155 @@ return (_ctx, _cache) => {
|
|
|
40159
40164
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
40160
40165
|
const _component_el_button = resolveComponent("el-button");
|
|
40161
40166
|
|
|
40162
|
-
return (
|
|
40163
|
-
|
|
40164
|
-
|
|
40165
|
-
|
|
40166
|
-
|
|
40167
|
-
|
|
40168
|
-
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
-
|
|
40172
|
-
|
|
40173
|
-
|
|
40174
|
-
|
|
40175
|
-
|
|
40176
|
-
|
|
40177
|
-
|
|
40178
|
-
|
|
40179
|
-
|
|
40180
|
-
|
|
40181
|
-
|
|
40182
|
-
|
|
40183
|
-
|
|
40184
|
-
|
|
40185
|
-
|
|
40186
|
-
|
|
40187
|
-
style: normalizeStyle(style.field_box.left)
|
|
40188
|
-
}, [
|
|
40189
|
-
createVNode(script$g, {
|
|
40190
|
-
scopeThis: __props.scopeThis,
|
|
40191
|
-
myProps: __props.myProps,
|
|
40192
|
-
dataBox: __props.dataBox,
|
|
40193
|
-
item: item0
|
|
40194
|
-
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
40195
|
-
], 4 /* STYLE */))
|
|
40196
|
-
: createCommentVNode("v-if", true),
|
|
40197
|
-
createElementVNode("td", {
|
|
40198
|
-
style: normalizeStyle(style.field_box.right),
|
|
40199
|
-
colspan: style.no_field_label(item0)
|
|
40167
|
+
return (openBlock(), createElementBlock(Fragment, null, [
|
|
40168
|
+
createCommentVNode(" 置顶菜单 "),
|
|
40169
|
+
(__props.myProps.menu && __props.myProps.menu.length > 0)
|
|
40170
|
+
? (openBlock(), createBlock(_component_ly0Menu, {
|
|
40171
|
+
key: 0,
|
|
40172
|
+
scopeThis: __props.scopeThis,
|
|
40173
|
+
myProps: __props.myProps.menu
|
|
40174
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
|
|
40175
|
+
: createCommentVNode("v-if", true),
|
|
40176
|
+
createCommentVNode(" 表单区域可以分为多个列 "),
|
|
40177
|
+
createElementVNode("div", {
|
|
40178
|
+
style: normalizeStyle(style.root_box)
|
|
40179
|
+
}, [
|
|
40180
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.myProps.cols, (item, index) => {
|
|
40181
|
+
return (openBlock(), createElementBlock("div", { key: index }, [
|
|
40182
|
+
createElementVNode("table", null, [
|
|
40183
|
+
createElementVNode("tbody", null, [
|
|
40184
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
|
|
40185
|
+
return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
|
|
40186
|
+
(item0.hdlVisible ? item0.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
|
|
40187
|
+
? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
|
|
40188
|
+
(!!item0.label)
|
|
40189
|
+
? (openBlock(), createElementBlock("td", {
|
|
40190
|
+
key: 0,
|
|
40191
|
+
style: normalizeStyle(style.field_box.left)
|
|
40200
40192
|
}, [
|
|
40201
|
-
(
|
|
40202
|
-
|
|
40203
|
-
|
|
40204
|
-
|
|
40193
|
+
createVNode(script$g, {
|
|
40194
|
+
scopeThis: __props.scopeThis,
|
|
40195
|
+
myProps: __props.myProps,
|
|
40196
|
+
dataBox: __props.dataBox,
|
|
40197
|
+
item: item0
|
|
40198
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
40199
|
+
], 4 /* STYLE */))
|
|
40200
|
+
: createCommentVNode("v-if", true),
|
|
40201
|
+
createElementVNode("td", {
|
|
40202
|
+
style: normalizeStyle(style.field_box.right),
|
|
40203
|
+
colspan: style.no_field_label(item0)
|
|
40204
|
+
}, [
|
|
40205
|
+
(item0.inputType === 'collapse')
|
|
40206
|
+
? (openBlock(), createBlock(_component_el_collapse, {
|
|
40207
|
+
key: 0,
|
|
40208
|
+
accordion:
|
|
40205
40209
|
'accordion' in item0 &&
|
|
40206
40210
|
(item0.accordion === true || item0.accordion === 'true')
|
|
40207
40211
|
,
|
|
40208
|
-
|
|
40209
|
-
|
|
40210
|
-
|
|
40211
|
-
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
|
|
40217
|
-
|
|
40218
|
-
|
|
40219
|
-
|
|
40220
|
-
|
|
40221
|
-
|
|
40222
|
-
|
|
40223
|
-
|
|
40224
|
-
|
|
40225
|
-
|
|
40226
|
-
|
|
40227
|
-
|
|
40212
|
+
modelValue: item0.activeNames,
|
|
40213
|
+
"onUpdate:modelValue": $event => ((item0.activeNames) = $event),
|
|
40214
|
+
style: normalizeStyle(style.collapse.style)
|
|
40215
|
+
}, {
|
|
40216
|
+
default: withCtx(() => [
|
|
40217
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
|
|
40218
|
+
return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
|
|
40219
|
+
(item1.hdlVisible ? item1.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
|
|
40220
|
+
? (openBlock(), createBlock(_component_el_collapse_item, {
|
|
40221
|
+
key: 0,
|
|
40222
|
+
title: item1.title,
|
|
40223
|
+
name: item1.name ? item1.name : index1
|
|
40224
|
+
}, {
|
|
40225
|
+
default: withCtx(() => [
|
|
40226
|
+
createElementVNode("table", {
|
|
40227
|
+
style: normalizeStyle(style.collapse.table)
|
|
40228
|
+
}, [
|
|
40229
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item1.items, (item2, index2) => {
|
|
40230
|
+
return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
40231
|
+
(
|
|
40228
40232
|
item2.hdlVisible
|
|
40229
40233
|
? item2.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue)
|
|
40230
40234
|
: true
|
|
40231
40235
|
)
|
|
40232
|
-
|
|
40233
|
-
|
|
40234
|
-
|
|
40235
|
-
|
|
40236
|
-
|
|
40237
|
-
}, [
|
|
40238
|
-
createVNode(script$g, {
|
|
40239
|
-
scopeThis: __props.scopeThis,
|
|
40240
|
-
myProps: __props.myProps,
|
|
40241
|
-
dataBox: __props.dataBox,
|
|
40242
|
-
item: item2
|
|
40243
|
-
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
40244
|
-
], 4 /* STYLE */))
|
|
40245
|
-
: createCommentVNode("v-if", true),
|
|
40246
|
-
createElementVNode("td", {
|
|
40247
|
-
style: normalizeStyle(style.field_box.right),
|
|
40248
|
-
colspan: style.no_field_label(item2)
|
|
40236
|
+
? (openBlock(), createElementBlock("tr", _hoisted_3$7, [
|
|
40237
|
+
(item2.label)
|
|
40238
|
+
? (openBlock(), createElementBlock("td", {
|
|
40239
|
+
key: 0,
|
|
40240
|
+
style: normalizeStyle(style.field_box.left)
|
|
40249
40241
|
}, [
|
|
40250
|
-
createVNode(script$
|
|
40242
|
+
createVNode(script$g, {
|
|
40251
40243
|
scopeThis: __props.scopeThis,
|
|
40252
40244
|
myProps: __props.myProps,
|
|
40253
40245
|
dataBox: __props.dataBox,
|
|
40254
40246
|
item: item2
|
|
40255
40247
|
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
40256
|
-
],
|
|
40257
|
-
|
|
40258
|
-
|
|
40259
|
-
|
|
40260
|
-
|
|
40261
|
-
|
|
40262
|
-
|
|
40263
|
-
|
|
40264
|
-
|
|
40265
|
-
|
|
40266
|
-
|
|
40267
|
-
|
|
40268
|
-
|
|
40269
|
-
|
|
40270
|
-
|
|
40271
|
-
|
|
40272
|
-
|
|
40273
|
-
|
|
40274
|
-
|
|
40275
|
-
|
|
40276
|
-
|
|
40277
|
-
|
|
40278
|
-
|
|
40279
|
-
|
|
40280
|
-
|
|
40281
|
-
|
|
40282
|
-
|
|
40283
|
-
|
|
40284
|
-
|
|
40285
|
-
|
|
40286
|
-
|
|
40287
|
-
|
|
40288
|
-
|
|
40289
|
-
|
|
40290
|
-
|
|
40291
|
-
|
|
40292
|
-
|
|
40293
|
-
|
|
40294
|
-
|
|
40295
|
-
|
|
40296
|
-
|
|
40297
|
-
|
|
40298
|
-
|
|
40299
|
-
|
|
40300
|
-
|
|
40301
|
-
|
|
40302
|
-
|
|
40303
|
-
|
|
40304
|
-
|
|
40305
|
-
|
|
40306
|
-
|
|
40307
|
-
|
|
40308
|
-
|
|
40309
|
-
|
|
40310
|
-
|
|
40311
|
-
|
|
40312
|
-
|
|
40248
|
+
], 4 /* STYLE */))
|
|
40249
|
+
: createCommentVNode("v-if", true),
|
|
40250
|
+
createElementVNode("td", {
|
|
40251
|
+
style: normalizeStyle(style.field_box.right),
|
|
40252
|
+
colspan: style.no_field_label(item2)
|
|
40253
|
+
}, [
|
|
40254
|
+
createVNode(script$f, {
|
|
40255
|
+
scopeThis: __props.scopeThis,
|
|
40256
|
+
myProps: __props.myProps,
|
|
40257
|
+
dataBox: __props.dataBox,
|
|
40258
|
+
item: item2
|
|
40259
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
40260
|
+
], 12 /* STYLE, PROPS */, _hoisted_4$6)
|
|
40261
|
+
]))
|
|
40262
|
+
: createCommentVNode("v-if", true)
|
|
40263
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40264
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40265
|
+
], 4 /* STYLE */)
|
|
40266
|
+
]),
|
|
40267
|
+
_: 2 /* DYNAMIC */
|
|
40268
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["title", "name"]))
|
|
40269
|
+
: createCommentVNode("v-if", true)
|
|
40270
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40271
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40272
|
+
]),
|
|
40273
|
+
_: 2 /* DYNAMIC */
|
|
40274
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
|
|
40275
|
+
: (openBlock(), createBlock(script$f, {
|
|
40276
|
+
key: 1,
|
|
40277
|
+
scopeThis: __props.scopeThis,
|
|
40278
|
+
myProps: __props.myProps,
|
|
40279
|
+
dataBox: __props.dataBox,
|
|
40280
|
+
item: item0
|
|
40281
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"]))
|
|
40282
|
+
], 12 /* STYLE, PROPS */, _hoisted_2$c)
|
|
40283
|
+
]))
|
|
40284
|
+
: createCommentVNode("v-if", true)
|
|
40285
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40286
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40287
|
+
])
|
|
40288
|
+
])
|
|
40289
|
+
]))
|
|
40290
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40291
|
+
], 4 /* STYLE */),
|
|
40292
|
+
createCommentVNode(" 提交 "),
|
|
40293
|
+
(__props.dataBox.hdlSubmit)
|
|
40294
|
+
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
40295
|
+
createElementVNode("div", {
|
|
40296
|
+
style: normalizeStyle(style.line)
|
|
40297
|
+
}, null, 4 /* STYLE */),
|
|
40298
|
+
createElementVNode("div", {
|
|
40299
|
+
style: normalizeStyle(style.submit_box.style)
|
|
40300
|
+
}, [
|
|
40301
|
+
createVNode(_component_el_button, {
|
|
40302
|
+
type: style.submit_box.button.facade.type,
|
|
40303
|
+
plain: style.submit_box.button.facade.plain,
|
|
40304
|
+
style: normalizeStyle(style.submit_box.button.style),
|
|
40305
|
+
onClick: _cache[0] || (_cache[0] = $event => (__props.dataBox.hdlSubmit(__props.scopeThis, __props.dataBox.fieldsValue)))
|
|
40306
|
+
}, {
|
|
40307
|
+
default: withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
40308
|
+
createTextVNode("提交", -1 /* CACHED */)
|
|
40309
|
+
]))]),
|
|
40310
|
+
_: 1 /* STABLE */
|
|
40311
|
+
}, 8 /* PROPS */, ["type", "plain", "style"])
|
|
40312
|
+
], 4 /* STYLE */)
|
|
40313
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40314
|
+
: createCommentVNode("v-if", true)
|
|
40315
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40313
40316
|
}
|
|
40314
40317
|
}
|
|
40315
40318
|
|