@yoooloo42/joker 1.0.43 → 1.0.45
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 +146 -142
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +146 -142
- 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$7 = { 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$7, [
|
|
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,9 +40128,10 @@ 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 =
|
|
40131
|
+
const _hoisted_2$c = { key: 0 };
|
|
40132
|
+
const _hoisted_3$7 = ["colspan"];
|
|
40133
|
+
const _hoisted_4$6 = { key: 0 };
|
|
40134
|
+
const _hoisted_5$6 = ["colspan"];
|
|
40134
40135
|
|
|
40135
40136
|
|
|
40136
40137
|
var script$e = {
|
|
@@ -40139,8 +40140,9 @@ var script$e = {
|
|
|
40139
40140
|
setup(__props) {
|
|
40140
40141
|
|
|
40141
40142
|
const props = __props;
|
|
40142
|
-
|
|
40143
|
-
|
|
40143
|
+
const isMenuVisible = computed(()=>{
|
|
40144
|
+
return props.myProps && props.myProps.menu && props.myProps.menu.length > 0
|
|
40145
|
+
});
|
|
40144
40146
|
|
|
40145
40147
|
const style = reactive({
|
|
40146
40148
|
collapse: computed(() => styleModule.collapse()),
|
|
@@ -40157,155 +40159,157 @@ return (_ctx, _cache) => {
|
|
|
40157
40159
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
40158
40160
|
const _component_el_button = resolveComponent("el-button");
|
|
40159
40161
|
|
|
40160
|
-
return (
|
|
40161
|
-
|
|
40162
|
-
|
|
40163
|
-
|
|
40164
|
-
|
|
40165
|
-
|
|
40166
|
-
|
|
40167
|
-
|
|
40168
|
-
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
-
|
|
40172
|
-
|
|
40173
|
-
|
|
40174
|
-
|
|
40175
|
-
|
|
40176
|
-
|
|
40177
|
-
|
|
40178
|
-
|
|
40179
|
-
|
|
40180
|
-
|
|
40181
|
-
(
|
|
40182
|
-
|
|
40183
|
-
|
|
40184
|
-
|
|
40162
|
+
return (__props.myProps)
|
|
40163
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
40164
|
+
createCommentVNode(" 置顶菜单 "),
|
|
40165
|
+
(isMenuVisible.value)
|
|
40166
|
+
? (openBlock(), createBlock(_component_ly0Menu, {
|
|
40167
|
+
key: 0,
|
|
40168
|
+
scopeThis: __props.scopeThis,
|
|
40169
|
+
myProps: __props.myProps.menu
|
|
40170
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
|
|
40171
|
+
: createCommentVNode("v-if", true),
|
|
40172
|
+
createCommentVNode(" 表单区域可以分为多个列 "),
|
|
40173
|
+
createElementVNode("div", {
|
|
40174
|
+
style: normalizeStyle(style.root_box)
|
|
40175
|
+
}, [
|
|
40176
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.myProps.cols, (item, index) => {
|
|
40177
|
+
return (openBlock(), createElementBlock("div", { key: index }, [
|
|
40178
|
+
createElementVNode("table", null, [
|
|
40179
|
+
createElementVNode("tbody", null, [
|
|
40180
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
|
|
40181
|
+
return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
|
|
40182
|
+
(item0.hdlVisible ? item0.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
|
|
40183
|
+
? (openBlock(), createElementBlock("tr", _hoisted_2$c, [
|
|
40184
|
+
(!!item0.label)
|
|
40185
|
+
? (openBlock(), createElementBlock("td", {
|
|
40186
|
+
key: 0,
|
|
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)
|
|
40185
40200
|
}, [
|
|
40186
|
-
|
|
40187
|
-
|
|
40188
|
-
|
|
40189
|
-
|
|
40190
|
-
item: item0
|
|
40191
|
-
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
40192
|
-
], 4 /* STYLE */))
|
|
40193
|
-
: createCommentVNode("v-if", true),
|
|
40194
|
-
createElementVNode("td", {
|
|
40195
|
-
style: normalizeStyle(style.field_box.right),
|
|
40196
|
-
colspan: style.no_field_label(item0)
|
|
40197
|
-
}, [
|
|
40198
|
-
(item0.inputType === 'collapse')
|
|
40199
|
-
? (openBlock(), createBlock(_component_el_collapse, {
|
|
40200
|
-
key: 0,
|
|
40201
|
-
accordion:
|
|
40201
|
+
(item0.inputType === 'collapse')
|
|
40202
|
+
? (openBlock(), createBlock(_component_el_collapse, {
|
|
40203
|
+
key: 0,
|
|
40204
|
+
accordion:
|
|
40202
40205
|
'accordion' in item0 &&
|
|
40203
40206
|
(item0.accordion === true || item0.accordion === 'true')
|
|
40204
40207
|
,
|
|
40205
|
-
|
|
40206
|
-
|
|
40207
|
-
|
|
40208
|
-
|
|
40209
|
-
|
|
40210
|
-
|
|
40211
|
-
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
|
|
40217
|
-
|
|
40218
|
-
|
|
40219
|
-
|
|
40220
|
-
|
|
40221
|
-
|
|
40222
|
-
|
|
40223
|
-
|
|
40224
|
-
|
|
40208
|
+
modelValue: item0.activeNames,
|
|
40209
|
+
"onUpdate:modelValue": $event => ((item0.activeNames) = $event),
|
|
40210
|
+
style: normalizeStyle(style.collapse.style)
|
|
40211
|
+
}, {
|
|
40212
|
+
default: withCtx(() => [
|
|
40213
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
|
|
40214
|
+
return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
|
|
40215
|
+
(item1.hdlVisible ? item1.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
|
|
40216
|
+
? (openBlock(), createBlock(_component_el_collapse_item, {
|
|
40217
|
+
key: 0,
|
|
40218
|
+
title: item1.title,
|
|
40219
|
+
name: item1.name ? item1.name : index1
|
|
40220
|
+
}, {
|
|
40221
|
+
default: withCtx(() => [
|
|
40222
|
+
createElementVNode("table", {
|
|
40223
|
+
style: normalizeStyle(style.collapse.table)
|
|
40224
|
+
}, [
|
|
40225
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item1.items, (item2, index2) => {
|
|
40226
|
+
return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
40227
|
+
(
|
|
40225
40228
|
item2.hdlVisible
|
|
40226
40229
|
? item2.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue)
|
|
40227
40230
|
: true
|
|
40228
40231
|
)
|
|
40229
|
-
|
|
40230
|
-
|
|
40231
|
-
|
|
40232
|
-
|
|
40233
|
-
|
|
40232
|
+
? (openBlock(), createElementBlock("tr", _hoisted_4$6, [
|
|
40233
|
+
(item2.label)
|
|
40234
|
+
? (openBlock(), createElementBlock("td", {
|
|
40235
|
+
key: 0,
|
|
40236
|
+
style: normalizeStyle(style.field_box.left)
|
|
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)
|
|
40234
40249
|
}, [
|
|
40235
|
-
createVNode(script$
|
|
40250
|
+
createVNode(script$f, {
|
|
40236
40251
|
scopeThis: __props.scopeThis,
|
|
40237
40252
|
myProps: __props.myProps,
|
|
40238
40253
|
dataBox: __props.dataBox,
|
|
40239
40254
|
item: item2
|
|
40240
40255
|
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
|
|
40241
|
-
],
|
|
40242
|
-
|
|
40243
|
-
|
|
40244
|
-
|
|
40245
|
-
|
|
40246
|
-
|
|
40247
|
-
|
|
40248
|
-
|
|
40249
|
-
|
|
40250
|
-
|
|
40251
|
-
|
|
40252
|
-
|
|
40253
|
-
|
|
40254
|
-
|
|
40255
|
-
|
|
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
|
-
onClick: _cache[0] || (_cache[0] = $event => (__props.dataBox.hdlSubmit(__props.scopeThis, __props.dataBox.fieldsValue)))
|
|
40299
|
-
}, {
|
|
40300
|
-
default: withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
40301
|
-
createTextVNode("提交", -1 /* CACHED */)
|
|
40302
|
-
]))]),
|
|
40303
|
-
_: 1 /* STABLE */
|
|
40304
|
-
}, 8 /* PROPS */, ["type", "plain", "style"])
|
|
40305
|
-
], 4 /* STYLE */)
|
|
40306
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
40307
|
-
: createCommentVNode("v-if", true)
|
|
40308
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
40256
|
+
], 12 /* STYLE, PROPS */, _hoisted_5$6)
|
|
40257
|
+
]))
|
|
40258
|
+
: createCommentVNode("v-if", true)
|
|
40259
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40260
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40261
|
+
], 4 /* STYLE */)
|
|
40262
|
+
]),
|
|
40263
|
+
_: 2 /* DYNAMIC */
|
|
40264
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["title", "name"]))
|
|
40265
|
+
: createCommentVNode("v-if", true)
|
|
40266
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40267
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40268
|
+
]),
|
|
40269
|
+
_: 2 /* DYNAMIC */
|
|
40270
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
|
|
40271
|
+
: (openBlock(), createBlock(script$f, {
|
|
40272
|
+
key: 1,
|
|
40273
|
+
scopeThis: __props.scopeThis,
|
|
40274
|
+
myProps: __props.myProps,
|
|
40275
|
+
dataBox: __props.dataBox,
|
|
40276
|
+
item: item0
|
|
40277
|
+
}, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"]))
|
|
40278
|
+
], 12 /* STYLE, PROPS */, _hoisted_3$7)
|
|
40279
|
+
]))
|
|
40280
|
+
: createCommentVNode("v-if", true)
|
|
40281
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40282
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40283
|
+
])
|
|
40284
|
+
])
|
|
40285
|
+
]))
|
|
40286
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
40287
|
+
], 4 /* STYLE */),
|
|
40288
|
+
createCommentVNode(" 提交 "),
|
|
40289
|
+
(__props.dataBox.hdlSubmit)
|
|
40290
|
+
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
40291
|
+
createElementVNode("div", {
|
|
40292
|
+
style: normalizeStyle(style.line)
|
|
40293
|
+
}, null, 4 /* STYLE */),
|
|
40294
|
+
createElementVNode("div", {
|
|
40295
|
+
style: normalizeStyle(style.submit_box.style)
|
|
40296
|
+
}, [
|
|
40297
|
+
createVNode(_component_el_button, {
|
|
40298
|
+
type: style.submit_box.button.facade.type,
|
|
40299
|
+
plain: style.submit_box.button.facade.plain,
|
|
40300
|
+
style: normalizeStyle(style.submit_box.button.style),
|
|
40301
|
+
onClick: _cache[0] || (_cache[0] = $event => (__props.dataBox.hdlSubmit(__props.scopeThis, __props.dataBox.fieldsValue)))
|
|
40302
|
+
}, {
|
|
40303
|
+
default: withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
40304
|
+
createTextVNode("提交", -1 /* CACHED */)
|
|
40305
|
+
]))]),
|
|
40306
|
+
_: 1 /* STABLE */
|
|
40307
|
+
}, 8 /* PROPS */, ["type", "plain", "style"])
|
|
40308
|
+
], 4 /* STYLE */)
|
|
40309
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
40310
|
+
: createCommentVNode("v-if", true)
|
|
40311
|
+
]))
|
|
40312
|
+
: createCommentVNode("v-if", true)
|
|
40309
40313
|
}
|
|
40310
40314
|
}
|
|
40311
40315
|
|