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