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