@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.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$6 = { key: 14 };
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$6, [
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 = ["colspan"];
40132
- const _hoisted_3$7 = { key: 0 };
40133
- const _hoisted_4$6 = ["colspan"];
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
- console.log('测试 333', props.myProps.menu);
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 (openBlock(), createElementBlock(Fragment, null, [
40161
- createCommentVNode(" 置顶菜单 "),
40162
- (__props.myProps.hasOwnProperty('menu') && __props.myProps.menu.length > 0)
40163
- ? (openBlock(), createBlock(_component_ly0Menu, {
40164
- key: 0,
40165
- scopeThis: __props.scopeThis,
40166
- myProps: __props.myProps.menu
40167
- }, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
40168
- : createCommentVNode("v-if", true),
40169
- createCommentVNode(" 表单区域可以分为多个列 "),
40170
- createElementVNode("div", {
40171
- style: normalizeStyle(style.root_box)
40172
- }, [
40173
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.myProps.cols, (item, index) => {
40174
- return (openBlock(), createElementBlock("div", { key: index }, [
40175
- createElementVNode("table", null, [
40176
- createElementVNode("tbody", null, [
40177
- (openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
40178
- return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
40179
- (item0.hdlVisible ? item0.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
40180
- ? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
40181
- (!!item0.label)
40182
- ? (openBlock(), createElementBlock("td", {
40183
- key: 0,
40184
- style: normalizeStyle(style.field_box.left)
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
- createVNode(script$g, {
40187
- scopeThis: __props.scopeThis,
40188
- myProps: __props.myProps,
40189
- dataBox: __props.dataBox,
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
- modelValue: item0.activeNames,
40206
- "onUpdate:modelValue": $event => ((item0.activeNames) = $event),
40207
- style: normalizeStyle(style.collapse.style)
40208
- }, {
40209
- default: withCtx(() => [
40210
- (openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
40211
- return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
40212
- (item1.hdlVisible ? item1.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
40213
- ? (openBlock(), createBlock(_component_el_collapse_item, {
40214
- key: 0,
40215
- title: item1.title,
40216
- name: item1.name ? item1.name : index1
40217
- }, {
40218
- default: withCtx(() => [
40219
- createElementVNode("table", {
40220
- style: normalizeStyle(style.collapse.table)
40221
- }, [
40222
- (openBlock(true), createElementBlock(Fragment, null, renderList(item1.items, (item2, index2) => {
40223
- return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
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
- ? (openBlock(), createElementBlock("tr", _hoisted_3$7, [
40230
- (item2.label)
40231
- ? (openBlock(), createElementBlock("td", {
40232
- key: 0,
40233
- style: normalizeStyle(style.field_box.left)
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$g, {
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
- ], 4 /* STYLE */))
40242
- : createCommentVNode("v-if", true),
40243
- createElementVNode("td", {
40244
- style: normalizeStyle(style.field_box.right),
40245
- colspan: style.no_field_label(item2)
40246
- }, [
40247
- createVNode(script$f, {
40248
- scopeThis: __props.scopeThis,
40249
- myProps: __props.myProps,
40250
- dataBox: __props.dataBox,
40251
- item: item2
40252
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
40253
- ], 12 /* STYLE, PROPS */, _hoisted_4$6)
40254
- ]))
40255
- : createCommentVNode("v-if", true)
40256
- ], 64 /* STABLE_FRAGMENT */))
40257
- }), 128 /* KEYED_FRAGMENT */))
40258
- ], 4 /* STYLE */)
40259
- ]),
40260
- _: 2 /* DYNAMIC */
40261
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["title", "name"]))
40262
- : createCommentVNode("v-if", true)
40263
- ], 64 /* STABLE_FRAGMENT */))
40264
- }), 128 /* KEYED_FRAGMENT */))
40265
- ]),
40266
- _: 2 /* DYNAMIC */
40267
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
40268
- : (openBlock(), createBlock(script$f, {
40269
- key: 1,
40270
- scopeThis: __props.scopeThis,
40271
- myProps: __props.myProps,
40272
- dataBox: __props.dataBox,
40273
- item: item0
40274
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"]))
40275
- ], 12 /* STYLE, PROPS */, _hoisted_2$c)
40276
- ]))
40277
- : createCommentVNode("v-if", true)
40278
- ], 64 /* STABLE_FRAGMENT */))
40279
- }), 128 /* KEYED_FRAGMENT */))
40280
- ])
40281
- ])
40282
- ]))
40283
- }), 128 /* KEYED_FRAGMENT */))
40284
- ], 4 /* STYLE */),
40285
- createCommentVNode(" 提交 "),
40286
- (__props.dataBox.hdlSubmit)
40287
- ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
40288
- createElementVNode("div", {
40289
- style: normalizeStyle(style.line)
40290
- }, null, 4 /* STYLE */),
40291
- createElementVNode("div", {
40292
- style: normalizeStyle(style.submit_box.style)
40293
- }, [
40294
- createVNode(_component_el_button, {
40295
- type: style.submit_box.button.facade.type,
40296
- plain: style.submit_box.button.facade.plain,
40297
- style: normalizeStyle(style.submit_box.button.style),
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