@yoooloo42/joker 1.0.133 → 1.0.135

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
@@ -1,5 +1,5 @@
1
1
  import { useRouter } from 'vue-router';
2
- import { ref, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, unref, reactive, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, isRef, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1 } from 'vue';
2
+ import { ref, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, unref, reactive, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, isRef, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1, resolveDirective, withDirectives } from 'vue';
3
3
  import { ElMessage } from 'element-plus';
4
4
 
5
5
  function _mergeNamespaces(n, m) {
@@ -22138,7 +22138,7 @@ var request = {
22138
22138
 
22139
22139
  // 默认值
22140
22140
 
22141
- var ly0default$2 = {
22141
+ var ly0default$3 = {
22142
22142
  myProps: {
22143
22143
  popup: {
22144
22144
  visible: false,
@@ -22494,7 +22494,7 @@ var styleModule = {
22494
22494
  input
22495
22495
  };
22496
22496
 
22497
- var script$h = {
22497
+ var script$k = {
22498
22498
  __name: 'LabelBox',
22499
22499
  props: {
22500
22500
  modelValue: {
@@ -22551,13 +22551,13 @@ return (_ctx, _cache) => {
22551
22551
 
22552
22552
  };
22553
22553
 
22554
- script$h.__file = "src/form/LabelBox.vue";
22554
+ script$k.__file = "src/form/LabelBox.vue";
22555
22555
 
22556
- const _hoisted_1$d = { key: 12 };
22557
- const _hoisted_2$d = { key: 0 };
22558
- const _hoisted_3$6 = { key: 13 };
22559
- const _hoisted_4$4 = { key: 0 };
22560
- const _hoisted_5$1 = { key: 14 };
22556
+ const _hoisted_1$e = { key: 12 };
22557
+ const _hoisted_2$e = { key: 0 };
22558
+ const _hoisted_3$7 = { key: 13 };
22559
+ const _hoisted_4$5 = { key: 0 };
22560
+ const _hoisted_5$2 = { key: 14 };
22561
22561
  const _hoisted_6 = { key: 0 };
22562
22562
  const _hoisted_7 = { key: 16 };
22563
22563
  const _hoisted_8 = ["innerHTML"];
@@ -22583,7 +22583,7 @@ const _hoisted_27 = { key: 29 };
22583
22583
  const _hoisted_28 = { key: 30 };
22584
22584
 
22585
22585
 
22586
- var script$g = {
22586
+ var script$j = {
22587
22587
  __name: 'InputBox',
22588
22588
  props: {
22589
22589
  modelValue: {
@@ -22992,7 +22992,7 @@ return (_ctx, _cache) => {
22992
22992
  }, 8 /* PROPS */, ["modelValue", "disabled", "onChange"]))
22993
22993
  : createCommentVNode("v-if", true),
22994
22994
  (unref(propsItem_box).inputType === 'button-group' && unref(propsItem_box).box && unref(propsItem_box).box.length > 0)
22995
- ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
22995
+ ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
22996
22996
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(propsItem_box).box, (item0, index0) => {
22997
22997
  return (openBlock(), createBlock(_component_el_button_group, {
22998
22998
  key: index0,
@@ -23021,7 +23021,7 @@ return (_ctx, _cache) => {
23021
23021
  }, {
23022
23022
  default: withCtx(() => [
23023
23023
  (item1.text)
23024
- ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(item1.text), 1 /* TEXT */))
23024
+ ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(item1.text), 1 /* TEXT */))
23025
23025
  : createCommentVNode("v-if", true)
23026
23026
  ]),
23027
23027
  _: 2 /* DYNAMIC */
@@ -23039,7 +23039,7 @@ return (_ctx, _cache) => {
23039
23039
  createCommentVNode(" 图片&富文本&视频 "),
23040
23040
  createCommentVNode(" 图片 "),
23041
23041
  (unref(propsItem_box).inputType === 'image')
23042
- ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
23042
+ ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
23043
23043
  createElementVNode("div", null, [
23044
23044
  createVNode(_component_el_image, {
23045
23045
  style: normalizeStyle(style.image(unref(propsItem_box), unref(formProps_box))),
@@ -23051,7 +23051,7 @@ return (_ctx, _cache) => {
23051
23051
  ]),
23052
23052
  createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
23053
23053
  (!!unref(propsItem_box).imageDelete && !!unref(formData_box)[unref(propsItem_box).fieldName])
23054
- ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
23054
+ ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
23055
23055
  createVNode(_component_el_button, {
23056
23056
  size: "small",
23057
23057
  icon: !unref(formData_box)[unref(propsItem_box).imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
@@ -23068,7 +23068,7 @@ return (_ctx, _cache) => {
23068
23068
  : createCommentVNode("v-if", true),
23069
23069
  createCommentVNode(" 多个图片 "),
23070
23070
  (unref(propsItem_box).inputType === 'images')
23071
- ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
23071
+ ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
23072
23072
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formData_box)[unref(propsItem_box).fieldName], (itemImages, indexImages) => {
23073
23073
  return (openBlock(), createElementBlock("div", {
23074
23074
  key: indexImages,
@@ -23323,16 +23323,16 @@ return (_ctx, _cache) => {
23323
23323
 
23324
23324
  };
23325
23325
 
23326
- script$g.__scopeId = "data-v-a94fa4ba";
23327
- script$g.__file = "src/form/InputBox.vue";
23326
+ script$j.__scopeId = "data-v-a94fa4ba";
23327
+ script$j.__file = "src/form/InputBox.vue";
23328
23328
 
23329
- const _hoisted_1$c = { key: 0 };
23330
- const _hoisted_2$c = ["colspan"];
23331
- const _hoisted_3$5 = { key: 0 };
23332
- const _hoisted_4$3 = ["colspan"];
23329
+ const _hoisted_1$d = { key: 0 };
23330
+ const _hoisted_2$d = ["colspan"];
23331
+ const _hoisted_3$6 = { key: 0 };
23332
+ const _hoisted_4$4 = ["colspan"];
23333
23333
 
23334
23334
 
23335
- var script$f = {
23335
+ var script$i = {
23336
23336
  __name: 'Form',
23337
23337
  props: {
23338
23338
  modelValue: {
@@ -23434,13 +23434,13 @@ return (_ctx, _cache) => {
23434
23434
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
23435
23435
  return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
23436
23436
  (item0.hdlVisible ? item0.hdlVisible({formData: unref(formData_box), scopeThis: unref(scopeThis_box)}) : true)
23437
- ? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
23437
+ ? (openBlock(), createElementBlock("tr", _hoisted_1$d, [
23438
23438
  (!!item0.label)
23439
23439
  ? (openBlock(), createElementBlock("td", {
23440
23440
  key: 0,
23441
23441
  style: normalizeStyle(style.field_box.left)
23442
23442
  }, [
23443
- createVNode(script$h, {
23443
+ createVNode(script$k, {
23444
23444
  modelValue: unref(formData_box),
23445
23445
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23446
23446
  myProps: unref(formProps_box),
@@ -23484,13 +23484,13 @@ return (_ctx, _cache) => {
23484
23484
  ? item2.hdlVisible({formData: unref(formData_box), scopeThis: unref(scopeThis_box)})
23485
23485
  : true
23486
23486
  )
23487
- ? (openBlock(), createElementBlock("tr", _hoisted_3$5, [
23487
+ ? (openBlock(), createElementBlock("tr", _hoisted_3$6, [
23488
23488
  (item2.label)
23489
23489
  ? (openBlock(), createElementBlock("td", {
23490
23490
  key: 0,
23491
23491
  style: normalizeStyle(style.field_box.left)
23492
23492
  }, [
23493
- createVNode(script$h, {
23493
+ createVNode(script$k, {
23494
23494
  modelValue: unref(formData_box),
23495
23495
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23496
23496
  myProps: unref(formProps_box),
@@ -23503,14 +23503,14 @@ return (_ctx, _cache) => {
23503
23503
  style: normalizeStyle(style.field_box.right),
23504
23504
  colspan: style.no_field_label(item2)
23505
23505
  }, [
23506
- createVNode(script$g, {
23506
+ createVNode(script$j, {
23507
23507
  modelValue: unref(formData_box),
23508
23508
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23509
23509
  myProps: unref(formProps_box),
23510
23510
  scopeThis: unref(scopeThis_box),
23511
23511
  item: item2
23512
23512
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis", "item"])
23513
- ], 12 /* STYLE, PROPS */, _hoisted_4$3)
23513
+ ], 12 /* STYLE, PROPS */, _hoisted_4$4)
23514
23514
  ]))
23515
23515
  : createCommentVNode("v-if", true)
23516
23516
  ], 64 /* STABLE_FRAGMENT */))
@@ -23526,14 +23526,14 @@ return (_ctx, _cache) => {
23526
23526
  _: 2 /* DYNAMIC */
23527
23527
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
23528
23528
  : createCommentVNode("v-if", true),
23529
- createVNode(script$g, {
23529
+ createVNode(script$j, {
23530
23530
  modelValue: unref(formData_box),
23531
23531
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23532
23532
  myProps: unref(formProps_box),
23533
23533
  scopeThis: unref(scopeThis_box),
23534
23534
  item: item0
23535
23535
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis", "item"])
23536
- ], 12 /* STYLE, PROPS */, _hoisted_2$c)
23536
+ ], 12 /* STYLE, PROPS */, _hoisted_2$d)
23537
23537
  ]))
23538
23538
  : createCommentVNode("v-if", true)
23539
23539
  ], 64 /* STABLE_FRAGMENT */))
@@ -23572,7 +23572,7 @@ return (_ctx, _cache) => {
23572
23572
 
23573
23573
  };
23574
23574
 
23575
- script$f.__file = "src/form/Form.vue";
23575
+ script$i.__file = "src/form/Form.vue";
23576
23576
 
23577
23577
  // 引用标准:GB/T 2260
23578
23578
 
@@ -24064,7 +24064,7 @@ var deepClone = {
24064
24064
  var unclassified = {
24065
24065
  deepClone};
24066
24066
 
24067
- var script$e = {
24067
+ var script$h = {
24068
24068
  __name: 'index',
24069
24069
  props: {
24070
24070
  modelValue: {
@@ -24087,7 +24087,7 @@ const props = __props;
24087
24087
  // 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
24088
24088
  let formData_box = reactive(props.modelValue);
24089
24089
  const formProps_box = reactive(unclassified.deepClone.deepMerge(
24090
- unclassified.deepClone.deepClone(ly0default$2.myProps),
24090
+ unclassified.deepClone.deepClone(ly0default$3.myProps),
24091
24091
  props.myProps
24092
24092
  ));
24093
24093
  const scopeThis_box = reactive(props.scopeThis);
@@ -24109,7 +24109,7 @@ return (_ctx, _cache) => {
24109
24109
  "destroy-on-close": true
24110
24110
  }, {
24111
24111
  default: withCtx(() => [
24112
- createVNode(script$f, {
24112
+ createVNode(script$i, {
24113
24113
  modelValue: unref(formData_box),
24114
24114
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
24115
24115
  myProps: formProps_box,
@@ -24118,7 +24118,7 @@ return (_ctx, _cache) => {
24118
24118
  ]),
24119
24119
  _: 1 /* STABLE */
24120
24120
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
24121
- : (openBlock(), createBlock(script$f, {
24121
+ : (openBlock(), createBlock(script$i, {
24122
24122
  key: 1,
24123
24123
  modelValue: unref(formData_box),
24124
24124
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
@@ -24130,9 +24130,9 @@ return (_ctx, _cache) => {
24130
24130
 
24131
24131
  };
24132
24132
 
24133
- script$e.__file = "src/form/index.vue";
24133
+ script$h.__file = "src/form/index.vue";
24134
24134
 
24135
- var ly0default$1 = {
24135
+ var ly0default$2 = {
24136
24136
  myProps: {
24137
24137
  mode: 'horizontal',
24138
24138
  defaultActive: '',
@@ -24146,14 +24146,14 @@ var ly0default$1 = {
24146
24146
  }
24147
24147
  };
24148
24148
 
24149
- var script$d = {
24149
+ var script$g = {
24150
24150
  __name: 'index',
24151
24151
  props: ["myProps", "scopeThis"],
24152
24152
  setup(__props) {
24153
24153
 
24154
24154
  const props = __props;
24155
24155
  const myProps_box = reactive(unclassified.deepClone.deepMerge(
24156
- unclassified.deepClone.deepClone(ly0default$1.myProps),
24156
+ unclassified.deepClone.deepClone(ly0default$2.myProps),
24157
24157
  props.myProps
24158
24158
  ));
24159
24159
  const scopeThis_box = reactive(props.scopeThis);
@@ -24418,7 +24418,7 @@ return (_ctx, _cache) => {
24418
24418
 
24419
24419
  };
24420
24420
 
24421
- script$d.__file = "src/menu/index.vue";
24421
+ script$g.__file = "src/menu/index.vue";
24422
24422
 
24423
24423
  var quill$1 = {exports: {}};
24424
24424
 
@@ -41274,7 +41274,7 @@ v-model 是一个语法糖(syntactic sugar)。当你在一个自定义组件
41274
41274
  2. 监听一个名为 update:modelValue 的自定义事件(用于更新值)
41275
41275
  */
41276
41276
 
41277
- var script$c = {
41277
+ var script$f = {
41278
41278
  __name: 'index',
41279
41279
  props: {
41280
41280
  // v-model 对应的 prop
@@ -41416,7 +41416,805 @@ return (_ctx, _cache) => {
41416
41416
 
41417
41417
  };
41418
41418
 
41419
- script$c.__file = "src/richtext/index.vue";
41419
+ script$f.__file = "src/richtext/index.vue";
41420
+
41421
+ var script$e = {
41422
+ __name: 'PickCol',
41423
+ props: {
41424
+ tableProps: {
41425
+ type: Object,
41426
+ default: () => ({})
41427
+ }
41428
+ },
41429
+ setup(__props) {
41430
+
41431
+ const props = __props;
41432
+ // props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
41433
+ const tableProps_box = props.tableProps;
41434
+
41435
+ let checkedAll = ref(true); // 是否全选状态
41436
+ let isIndeterminate = ref(false); // 不确定状态:非全选、非全空
41437
+ let itemsChecked = reactive([]); // 已选中条目
41438
+
41439
+ const hdl = {
41440
+ // 获取键值数组
41441
+ getKeys(p) {
41442
+ let a = [];
41443
+ p.forEach(i => {
41444
+ a.push(i.key);
41445
+ });
41446
+ return a
41447
+ },
41448
+ // 全选
41449
+ checkedAll(val) {
41450
+ itemsChecked = val ? hdl.getKeys(tableProps_box.table.pickCol.colsInit) : [];
41451
+ isIndeterminate.value = false;
41452
+ },
41453
+ // 选中或取消某一条
41454
+ checkedItemsChange(val) {
41455
+ checkedAll.value = val.length === tableProps_box.table.pickCol.colsInit.length;
41456
+ isIndeterminate.value = val.length > 0 && val.length < tableProps_box.table.pickCol.colsInit.length;
41457
+ },
41458
+ confirm() { // 确认提交
41459
+ tableProps_box.table.cols = [];
41460
+ itemsChecked.forEach(i => {
41461
+ tableProps_box.table.cols.push(tableProps_box.table.pickCol.colsInit.find(j => {
41462
+ return j.key === i
41463
+ }));
41464
+ });
41465
+ tableProps_box.table.pickCol.popup.visible = false;
41466
+ }
41467
+ };
41468
+
41469
+ // 窗口弹出监听
41470
+ watch(
41471
+ ref(tableProps_box.table.pickCol.popup.visible),
41472
+ (newVal, oldVal) => {
41473
+ if (newVal) {
41474
+ checkedAll.value = tableProps_box.table.cols.length === tableProps_box.table.pickCol.colsInit.length;
41475
+ isIndeterminate.value = tableProps_box.table.cols.length !== tableProps_box.table.pickCol.colsInit.length;
41476
+ itemsChecked = hdl.getKeys(tableProps_box.table.cols);
41477
+ }
41478
+ }
41479
+ );
41480
+
41481
+ return (_ctx, _cache) => {
41482
+ const _component_el_checkbox = resolveComponent("el-checkbox");
41483
+ const _component_el_row = resolveComponent("el-row");
41484
+ const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
41485
+ const _component_el_button = resolveComponent("el-button");
41486
+ const _component_el_dialog = resolveComponent("el-dialog");
41487
+
41488
+ return (openBlock(), createElementBlock("div", null, [
41489
+ createVNode(_component_el_dialog, {
41490
+ modelValue: unref(tableProps_box).table.pickCol.popup.visible,
41491
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(tableProps_box).table.pickCol.popup.visible) = $event)),
41492
+ "custom-class": 'code-template-dialog',
41493
+ "close-on-press-escape": true,
41494
+ "append-to-body": "",
41495
+ title: "选择列",
41496
+ width: "400px"
41497
+ }, {
41498
+ default: withCtx(() => [
41499
+ createVNode(_component_el_checkbox, {
41500
+ indeterminate: unref(isIndeterminate),
41501
+ modelValue: unref(checkedAll),
41502
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(checkedAll) ? (checkedAll).value = $event : checkedAll = $event)),
41503
+ onChange: hdl.checkedAll
41504
+ }, {
41505
+ default: withCtx(() => [...(_cache[3] || (_cache[3] = [
41506
+ createTextVNode("全选", -1 /* CACHED */)
41507
+ ]))]),
41508
+ _: 1 /* STABLE */
41509
+ }, 8 /* PROPS */, ["indeterminate", "modelValue", "onChange"]),
41510
+ createVNode(_component_el_row, { style: {"height":"1px","background-color":"#bdbdbd","margin-top":"10px","margin-bottom":"10px"} }),
41511
+ createVNode(_component_el_checkbox_group, {
41512
+ modelValue: unref(itemsChecked),
41513
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(itemsChecked) ? (itemsChecked).value = $event : itemsChecked = $event)),
41514
+ onChange: hdl.checkedItemsChange
41515
+ }, {
41516
+ default: withCtx(() => [
41517
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tableProps_box).table.pickCol.colsInit, (item) => {
41518
+ return (openBlock(), createBlock(_component_el_checkbox, {
41519
+ style: {"display":"block","margin-bottom":"10px"},
41520
+ label: item ? item.key : '',
41521
+ key: item ? item.key : ''
41522
+ }, {
41523
+ default: withCtx(() => [
41524
+ createTextVNode(toDisplayString(item ? item.label : ''), 1 /* TEXT */)
41525
+ ]),
41526
+ _: 2 /* DYNAMIC */
41527
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["label"]))
41528
+ }), 128 /* KEYED_FRAGMENT */))
41529
+ ]),
41530
+ _: 1 /* STABLE */
41531
+ }, 8 /* PROPS */, ["modelValue", "onChange"]),
41532
+ createVNode(_component_el_row, { style: {"height":"1px","background-color":"#bdbdbd","margin-top":"10px","margin-bottom":"10px"} }),
41533
+ createVNode(_component_el_row, { style: {"text-align":"center"} }, {
41534
+ default: withCtx(() => [
41535
+ createVNode(_component_el_button, {
41536
+ type: "success",
41537
+ round: "",
41538
+ onClick: hdl.confirm
41539
+ }, {
41540
+ default: withCtx(() => [...(_cache[4] || (_cache[4] = [
41541
+ createTextVNode("确认", -1 /* CACHED */)
41542
+ ]))]),
41543
+ _: 1 /* STABLE */
41544
+ }, 8 /* PROPS */, ["onClick"])
41545
+ ]),
41546
+ _: 1 /* STABLE */
41547
+ })
41548
+ ]),
41549
+ _: 1 /* STABLE */
41550
+ }, 8 /* PROPS */, ["modelValue"])
41551
+ ]))
41552
+ }
41553
+ }
41554
+
41555
+ };
41556
+
41557
+ script$e.__file = "src/table/PickCol.vue";
41558
+
41559
+ const _hoisted_1$c = { style: {"padding":"10px"} };
41560
+ const _hoisted_2$c = { key: 0 };
41561
+ const _hoisted_3$5 = ["onClick", "onMouseover"];
41562
+ const _hoisted_4$3 = ["href", "download"];
41563
+ const _hoisted_5$1 = {
41564
+ key: 1,
41565
+ style: {"color":"#6a6a6a"}
41566
+ };
41567
+
41568
+
41569
+ var script$d = {
41570
+ __name: 'Table',
41571
+ props: {
41572
+ modelValue: {
41573
+ type: Object,
41574
+ default: () => ({})
41575
+ },
41576
+ myProps: {
41577
+ type: Object,
41578
+ default: () => ({})
41579
+ },
41580
+ scopeThis: {
41581
+ type: Object,
41582
+ default: () => ({})
41583
+ }
41584
+ },
41585
+ setup(__props) {
41586
+
41587
+ const props = __props;
41588
+
41589
+ // props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
41590
+ let tableData_box = props.modelValue;
41591
+ const tableProps_box = props.myProps;
41592
+ const scopeThis_box = props.scopeThis;
41593
+ // 设置列选择初始化参数
41594
+ tableProps_box.table.pickCol.colsInit = unclassified.deepClone.deepClone(tableProps_box.table.cols);
41595
+
41596
+ const hdl = {
41597
+ cellMouseEnter(row, column, cell, event) {
41598
+ // 当单元格hover进入时会触发该事件
41599
+ if (tableProps_box.table.hdlCellMouseEnter) {
41600
+ tableProps_box.table.hdlCellMouseEnter({scopeThis: scopeThis_box, tableProps: tableProps_box, inherit: {
41601
+ row,
41602
+ column,
41603
+ cell,
41604
+ event
41605
+ }});
41606
+ } else {
41607
+ tableProps_box.table.cellTooltip = [];
41608
+ }
41609
+ },
41610
+ rowClick(row, column, event) {
41611
+ // 当某一行被点击时会触发该事件
41612
+ if (tableProps_box.table.hdlRowClick) {
41613
+ tableProps_box.table.hdlRowClick({scopeThis: scopeThis_box, inherit: {
41614
+ row,
41615
+ column,
41616
+ event
41617
+ }});
41618
+ }
41619
+ },
41620
+ selectionChange(selection) {
41621
+ // 当选择项发生变化时会触发该事件
41622
+ if (tableProps_box.table.hdlSelectionChange) {
41623
+ tableProps_box.table.hdlSelectionChange({scopeThis: scopeThis_box, inherit: {
41624
+ selection
41625
+ }});
41626
+ }
41627
+ },
41628
+ sortChange(para) {
41629
+ // 当表格的排序条件发生变化的时候会触发该事件,一般用于远程排序
41630
+ // para.column
41631
+ // para.prop
41632
+ // para.order
41633
+
41634
+ if (tableProps_box.table.hdlSortChange) {
41635
+ tableProps_box.table.hdlSortChange({scopeThis: scopeThis_box, inherit: {
41636
+ column: para.column,
41637
+ prop: para.prop,
41638
+ order: para.order,
41639
+ }});
41640
+ }
41641
+ },
41642
+ cellMouseover({col, row}) {
41643
+ if (col.hdlMouseover) {
41644
+ col.hdlMouseover({scopeThis: scopeThis_box, row, col});
41645
+ } else {
41646
+ tableData_box.cellTooltip = [];
41647
+ }
41648
+ },
41649
+ download({row, col}) {
41650
+ if(!col.hdlGetSrc){
41651
+ return {
41652
+ src: '',
41653
+ label: tableProps_box.table.colShow.download.downloadLabelNoSrc,
41654
+ fileName: tableProps_box.table.colShow.download.fileName
41655
+ }
41656
+ }
41657
+
41658
+ const src = col.hdlGetSrc({scopeThis: scopeThis_box, row});
41659
+ const label = col.hdlGetDownloadLabel
41660
+ ? col.hdlGetDownloadLabel({scopeThis: scopeThis_box, row})
41661
+ : tableProps_box.table.colShow.download.downloadLabel;
41662
+ const fileName = col.hdlGetFileName
41663
+ ? col.hdlGetFileName({scopeThis: scopeThis_box, row})
41664
+ : tableProps_box.table.colShow.download.fileName;
41665
+ return {
41666
+ src: src || '',
41667
+ label: src ? label : tableProps_box.table.colShow.download.downloadLabelNoSrc,
41668
+ fileName: src ? fileName : tableProps_box.table.colShow.download.fileName
41669
+ }
41670
+ },
41671
+ pageSizeChange(pageSize) {
41672
+ // 重新分页
41673
+ tableProps_box.query.pageSize = pageSize;
41674
+ tableProps_box.query.currentPage = 1;
41675
+ },
41676
+ currentPageChange(currentPage) {
41677
+ // 修改当前页号
41678
+ tableProps_box.query.currentPage = currentPage;
41679
+ }
41680
+ };
41681
+
41682
+ const style = {
41683
+ topButtonGroups: {
41684
+ rootBox: {
41685
+ display: 'flex',
41686
+ 'justify-content': 'space-between',
41687
+ 'margin-bottom': '10px'
41688
+ },
41689
+ button(index, index0){return {
41690
+ style: tableProps_box.topButtonGroups[index][index0].style || {
41691
+ "background-color": "#009f95",
41692
+ color: "#ffffff"
41693
+ },
41694
+ icon: tableProps_box.topButtonGroups[index][index0].icon || "", // el-图标
41695
+ type: tableProps_box.topButtonGroups[index][index0].type || "",
41696
+ size: tableProps_box.topButtonGroups[index][index0].size || "",
41697
+ plain: tableProps_box.topButtonGroups[index][index0].plain || false,
41698
+ round: tableProps_box.topButtonGroups[index][index0].round || false,
41699
+ circle: tableProps_box.topButtonGroups[index][index0].circle || false
41700
+ }}
41701
+ },
41702
+ cell: {
41703
+ text: {
41704
+ 'white-space': 'pre-line' // 保留换行符
41705
+ },
41706
+ buttonGroup({item}){return {
41707
+ style: item.style || {
41708
+ 'background-color': '#009f95',
41709
+ color: '#ffffff'
41710
+ },
41711
+ icon: item.icon || "", // el-图标
41712
+ type: item.type || "",
41713
+ size: item.size || "",
41714
+ plain: item.plain || false,
41715
+ round: item.round || false,
41716
+ circle: item.circle || false
41717
+ }},
41718
+ image({col}){return {
41719
+ width: col.imageWidth || tableProps_box.table.colShow.image.width,
41720
+ height: col.imageHeight || tableProps_box.table.colShow.image.height,
41721
+ }}
41722
+ },
41723
+ pagination: {
41724
+ "text-align": "left",
41725
+ "margin-top": "10px"
41726
+ }
41727
+ };
41728
+
41729
+ return (_ctx, _cache) => {
41730
+ const _component_el_divider = resolveComponent("el-divider");
41731
+ const _component_ly0Menu = resolveComponent("ly0Menu");
41732
+ const _component_el_button = resolveComponent("el-button");
41733
+ const _component_el_tooltip = resolveComponent("el-tooltip");
41734
+ const _component_el_button_group = resolveComponent("el-button-group");
41735
+ const _component_el_table_column = resolveComponent("el-table-column");
41736
+ const _component_el_switch = resolveComponent("el-switch");
41737
+ const _component_el_image = resolveComponent("el-image");
41738
+ const _component_ly0d7thumb = resolveComponent("ly0d7thumb");
41739
+ const _component_ly0d7group = resolveComponent("ly0d7group");
41740
+ const _component_ly0d7size = resolveComponent("ly0d7size");
41741
+ const _component_ly0d7price = resolveComponent("ly0d7price");
41742
+ const _component_el_table = resolveComponent("el-table");
41743
+ const _component_el_pagination = resolveComponent("el-pagination");
41744
+ const _directive_loading = resolveDirective("loading");
41745
+
41746
+ return (openBlock(), createElementBlock("div", _hoisted_1$c, [
41747
+ createCommentVNode(" 标题线 "),
41748
+ (unref(tableProps_box).titleLine.text)
41749
+ ? (openBlock(), createElementBlock("div", {
41750
+ key: 0,
41751
+ style: normalizeStyle(unref(tableProps_box).titleLine.style.line)
41752
+ }, [
41753
+ createVNode(_component_el_divider, { "content-position": "left" }, {
41754
+ default: withCtx(() => [
41755
+ createElementVNode("span", {
41756
+ style: normalizeStyle(unref(tableProps_box).titleLine.style.text)
41757
+ }, toDisplayString(unref(tableProps_box).titleLine.text), 5 /* TEXT, STYLE */)
41758
+ ]),
41759
+ _: 1 /* STABLE */
41760
+ })
41761
+ ], 4 /* STYLE */))
41762
+ : createCommentVNode("v-if", true),
41763
+ createCommentVNode(" 置顶菜单 "),
41764
+ (!!unref(tableProps_box).menu)
41765
+ ? (openBlock(), createBlock(_component_ly0Menu, {
41766
+ key: 1,
41767
+ myProps: unref(tableProps_box).menu,
41768
+ scopeThis: unref(scopeThis_box)
41769
+ }, null, 8 /* PROPS */, ["myProps", "scopeThis"]))
41770
+ : createCommentVNode("v-if", true),
41771
+ createCommentVNode(" 置顶快捷按钮组 "),
41772
+ (unref(tableProps_box).topButtonGroups.length > 0)
41773
+ ? (openBlock(), createElementBlock("div", {
41774
+ key: 2,
41775
+ style: normalizeStyle(style.topButtonGroups.rootBox)
41776
+ }, [
41777
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tableProps_box).topButtonGroups, (item, index) => {
41778
+ return (openBlock(), createBlock(_component_el_button_group, { key: index }, {
41779
+ default: withCtx(() => [
41780
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item, (item0, index0) => {
41781
+ return (openBlock(), createBlock(_component_el_tooltip, {
41782
+ key: index0,
41783
+ disabled: !item0.tip,
41784
+ content: item0.tip && item0.tip.content ? item0.tip.content : '',
41785
+ placement: item0.tip && item0.tip.placement ? item0.tip.placement : 'bottom',
41786
+ effect: "light"
41787
+ }, {
41788
+ default: withCtx(() => [
41789
+ createVNode(_component_el_button, {
41790
+ style: normalizeStyle(style.topButtonGroups.button(index, index0).style),
41791
+ icon: style.topButtonGroups.button(index, index0).icon,
41792
+ type: style.topButtonGroups.button(index, index0).type,
41793
+ size: style.topButtonGroups.button(index, index0).size,
41794
+ plain: style.topButtonGroups.button(index, index0).plain,
41795
+ round: style.topButtonGroups.button(index, index0).round,
41796
+ circle: style.topButtonGroups.button(index, index0).circle,
41797
+ onClick: $event => (item0.hdlClick ? item0.hdlClick({scopeThis: unref(scopeThis_box)}) : null)
41798
+ }, {
41799
+ default: withCtx(() => [
41800
+ (item0.text)
41801
+ ? (openBlock(), createElementBlock("span", _hoisted_2$c, toDisplayString(item0.text), 1 /* TEXT */))
41802
+ : createCommentVNode("v-if", true)
41803
+ ]),
41804
+ _: 2 /* DYNAMIC */
41805
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["style", "icon", "type", "size", "plain", "round", "circle", "onClick"])
41806
+ ]),
41807
+ _: 2 /* DYNAMIC */
41808
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "content", "placement"]))
41809
+ }), 128 /* KEYED_FRAGMENT */))
41810
+ ]),
41811
+ _: 2 /* DYNAMIC */
41812
+ }, 1024 /* DYNAMIC_SLOTS */))
41813
+ }), 128 /* KEYED_FRAGMENT */))
41814
+ ], 4 /* STYLE */))
41815
+ : createCommentVNode("v-if", true),
41816
+ createCommentVNode(" 表体 "),
41817
+ withDirectives((openBlock(), createBlock(_component_el_table, {
41818
+ data: unref(tableData_box).data,
41819
+ stripe: "",
41820
+ border: "",
41821
+ onCellMouseEnter: hdl.cellMouseEnter,
41822
+ onRowClick: hdl.rowClick,
41823
+ onSelectionChange: hdl.selectionChange,
41824
+ onSortChange: hdl.sortChange
41825
+ }, {
41826
+ default: withCtx(() => [
41827
+ createCommentVNode(" 左手第1列:是否可以选择记录行 "),
41828
+ (unref(tableProps_box).table.selection.yes)
41829
+ ? (openBlock(), createBlock(_component_el_table_column, {
41830
+ key: 0,
41831
+ type: "selection",
41832
+ width: unref(tableProps_box).table.selection.width
41833
+ }, null, 8 /* PROPS */, ["width"]))
41834
+ : createCommentVNode("v-if", true),
41835
+ createCommentVNode(" 列 "),
41836
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tableProps_box).table.cols, (col, colIndex) => {
41837
+ return (openBlock(), createElementBlock(Fragment, { key: colIndex }, [
41838
+ (col.hdlVisible ? col.hdlVisible({scopeThis: unref(scopeThis_box)}) : true)
41839
+ ? (openBlock(), createBlock(_component_el_table_column, {
41840
+ key: 0,
41841
+ modelValue: col.fieldName,
41842
+ "onUpdate:modelValue": $event => ((col.fieldName) = $event),
41843
+ label: col.label,
41844
+ sortable: col.sortable,
41845
+ "sort-method": (row2, row1)=>{
41846
+ if(col.hdlSortMethod){
41847
+ return col.hdlSortMethod({inherit: {row2, row1}})
41848
+ }else {
41849
+ if(row2.name > row1.name){
41850
+ return 1 // 升序
41851
+ } else {
41852
+ return -1 // 降序
41853
+ }
41854
+ }
41855
+ },
41856
+ width: col.width ? col.width : ''
41857
+ }, {
41858
+ default: withCtx((scope) => [
41859
+ createVNode(_component_el_tooltip, {
41860
+ placement: "left",
41861
+ effect: "dark",
41862
+ disabled: unref(tableProps_box).table.cellTooltip.length === 0
41863
+ }, {
41864
+ content: withCtx(() => [
41865
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tableProps_box).table.cellTooltip, (item, index) => {
41866
+ return (openBlock(), createElementBlock("div", { key: index }, toDisplayString(item), 1 /* TEXT */))
41867
+ }), 128 /* KEYED_FRAGMENT */))
41868
+ ]),
41869
+ default: withCtx(() => [
41870
+ createElementVNode("div", {
41871
+ onClick: $event => (col.hdlClick ? col.hdlClick({scopeThis: unref(scopeThis_box), row: scope.row}) : null),
41872
+ onMouseover: $event => (hdl.cellMouseover({col, row: scope.row}))
41873
+ }, [
41874
+ (col.show === 'text')
41875
+ ? (openBlock(), createElementBlock("span", {
41876
+ key: 0,
41877
+ style: normalizeStyle(style.cell.text)
41878
+ }, toDisplayString(scope.row[col.fieldName]), 5 /* TEXT, STYLE */))
41879
+ : createCommentVNode("v-if", true),
41880
+ (!col.show)
41881
+ ? (openBlock(), createElementBlock("span", {
41882
+ key: 1,
41883
+ style: normalizeStyle(style.cell.text)
41884
+ }, toDisplayString(scope.row[col.fieldName]), 5 /* TEXT, STYLE */))
41885
+ : createCommentVNode("v-if", true),
41886
+ (col.show === 'expression')
41887
+ ? (openBlock(), createElementBlock("span", {
41888
+ key: 2,
41889
+ style: normalizeStyle(style.cell.text)
41890
+ }, toDisplayString(col.hdlExpression({scopeThis: __props.scopeThis, row: scope.row})), 5 /* TEXT, STYLE */))
41891
+ : createCommentVNode("v-if", true),
41892
+ (col.show === 'switch')
41893
+ ? (openBlock(), createBlock(_component_el_switch, {
41894
+ key: 3,
41895
+ modelValue: scope.row[col.fieldName],
41896
+ "onUpdate:modelValue": $event => ((scope.row[col.fieldName]) = $event),
41897
+ "active-value": col.activeValue,
41898
+ "inactive-value": col.inactiveValue,
41899
+ "active-text": col.activeText,
41900
+ "inactive-text": col.inactiveText,
41901
+ "active-color": col.activeColor,
41902
+ onChange:
41903
+ (valNew) => {
41904
+ if(col.hdlChange){
41905
+ col.hdlChange({scopeThis: unref(scopeThis_box), row: scope.row, inherit: {valNew}});
41906
+ }
41907
+ }
41908
+
41909
+ }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "active-text", "inactive-text", "active-color", "onChange"]))
41910
+ : createCommentVNode("v-if", true),
41911
+ (col.show === 'button-group')
41912
+ ? (openBlock(), createBlock(_component_el_button_group, { key: 4 }, {
41913
+ default: withCtx(() => [
41914
+ (openBlock(true), createElementBlock(Fragment, null, renderList(col.buttonGroup, (item, index) => {
41915
+ return (openBlock(), createElementBlock(Fragment, { key: index }, [
41916
+ (item.hdlVisible ? item.hdlVisible({scopeThis: unref(scopeThis_box), row: scope.row}) : true)
41917
+ ? (openBlock(), createBlock(_component_el_button, {
41918
+ key: index,
41919
+ style: normalizeStyle(style.cell.buttonGroup({item}).style),
41920
+ icon: style.cell.buttonGroup({item}).icon,
41921
+ type: style.cell.buttonGroup({item}).type,
41922
+ size: style.cell.buttonGroup({item}).size,
41923
+ plain: style.cell.buttonGroup({item}).plain,
41924
+ round: style.cell.buttonGroup({item}).round,
41925
+ circle: style.cell.buttonGroup({item}).circle,
41926
+ onClick: $event => (item.hdlClick({scopeThis: unref(scopeThis_box), row: scope.row}))
41927
+ }, {
41928
+ default: withCtx(() => [
41929
+ createTextVNode(toDisplayString(item.text ? item.text : item.hdlText({scopeThis: unref(scopeThis_box), row: scope.row})), 1 /* TEXT */)
41930
+ ]),
41931
+ _: 2 /* DYNAMIC */
41932
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["style", "icon", "type", "size", "plain", "round", "circle", "onClick"]))
41933
+ : createCommentVNode("v-if", true)
41934
+ ], 64 /* STABLE_FRAGMENT */))
41935
+ }), 128 /* KEYED_FRAGMENT */))
41936
+ ]),
41937
+ _: 2 /* DYNAMIC */
41938
+ }, 1024 /* DYNAMIC_SLOTS */))
41939
+ : createCommentVNode("v-if", true),
41940
+ (col.show === 'image')
41941
+ ? (openBlock(), createBlock(_component_el_image, {
41942
+ key: 5,
41943
+ style: normalizeStyle(style.cell.image({col})),
41944
+ src: scope.row[col.fieldName][0] || '',
41945
+ "preview-src-list": scope.row[col.fieldName] || [''],
41946
+ "preview-teleported": true,
41947
+ "hide-on-click-modal": true
41948
+ }, null, 8 /* PROPS */, ["style", "src", "preview-src-list"]))
41949
+ : createCommentVNode("v-if", true),
41950
+ (col.show === 'download')
41951
+ ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
41952
+ (hdl.download({col, row: scope.row}).src)
41953
+ ? (openBlock(), createElementBlock("a", {
41954
+ key: 0,
41955
+ style: {"text-decoration":"underline","color":"#0000ff"},
41956
+ href: hdl.download({col, row: scope.row}).src,
41957
+ download: hdl.download({col, row: scope.row}).fileName
41958
+ }, [
41959
+ createElementVNode("span", null, toDisplayString(hdl.download({col, row: scope.row}).label), 1 /* TEXT */)
41960
+ ], 8 /* PROPS */, _hoisted_4$3))
41961
+ : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(hdl.download({col, row: scope.row}).label), 1 /* TEXT */))
41962
+ ], 64 /* STABLE_FRAGMENT */))
41963
+ : createCommentVNode("v-if", true),
41964
+ createCommentVNode(" 商品缩略图 "),
41965
+ (col.show === 'd7thumb')
41966
+ ? (openBlock(), createBlock(_component_ly0d7thumb, {
41967
+ key: 7,
41968
+ modelValue: scope.row,
41969
+ "onUpdate:modelValue": $event => ((scope.row) = $event),
41970
+ myProps: {
41971
+ thumb: {
41972
+ fieldName: col.thumb.fieldName,
41973
+ width: col.thumb.width || unref(tableProps_box).table.colShow.ly0d7thumb.thumb.width,
41974
+ height: col.thumb.height || unref(tableProps_box).table.colshow.ly0d7thumb.thumb.height
41975
+ },
41976
+ number: {
41977
+ fieldName: col.number.fieldName
41978
+ },
41979
+ name: {
41980
+ fieldName: col.name.fieldName
41981
+ },
41982
+ readOnly: !!col.readOnly
41983
+ }
41984
+ }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "myProps"]))
41985
+ : createCommentVNode("v-if", true),
41986
+ createCommentVNode(" 商品分类 "),
41987
+ (col.show === 'd7group')
41988
+ ? (openBlock(), createBlock(_component_ly0d7group, {
41989
+ key: 8,
41990
+ modelValue: scope.row[col.fieldName],
41991
+ "onUpdate:modelValue": $event => ((scope.row[col.fieldName]) = $event),
41992
+ myProps: {readOnly: !!col.readOnly}
41993
+ }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "myProps"]))
41994
+ : createCommentVNode("v-if", true),
41995
+ createCommentVNode(" 商品规格 "),
41996
+ (col.show === 'd7size')
41997
+ ? (openBlock(), createBlock(_component_ly0d7size, {
41998
+ key: 9,
41999
+ modelValue: scope.row[col.fieldName],
42000
+ "onUpdate:modelValue": $event => ((scope.row[col.fieldName]) = $event),
42001
+ myProps: {readOnly: !!col.readOnly}
42002
+ }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "myProps"]))
42003
+ : createCommentVNode("v-if", true),
42004
+ createCommentVNode(" 商品标价 "),
42005
+ (col.show === 'd7price')
42006
+ ? (openBlock(), createBlock(_component_ly0d7price, {
42007
+ key: 10,
42008
+ modelValue: scope.row[col.fieldName],
42009
+ "onUpdate:modelValue": $event => ((scope.row[col.fieldName]) = $event),
42010
+ myProps: {readOnly: !!col.readOnly}
42011
+ }, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "myProps"]))
42012
+ : createCommentVNode("v-if", true)
42013
+ ], 40 /* PROPS, NEED_HYDRATION */, _hoisted_3$5)
42014
+ ]),
42015
+ _: 2 /* DYNAMIC */
42016
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"])
42017
+ ]),
42018
+ _: 2 /* DYNAMIC */
42019
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "label", "sortable", "sort-method", "width"]))
42020
+ : createCommentVNode("v-if", true)
42021
+ ], 64 /* STABLE_FRAGMENT */))
42022
+ }), 128 /* KEYED_FRAGMENT */))
42023
+ ]),
42024
+ _: 1 /* STABLE */
42025
+ }, 8 /* PROPS */, ["data", "onCellMouseEnter", "onRowClick", "onSelectionChange", "onSortChange"])), [
42026
+ [_directive_loading, unref(tableProps_box).query.loading.visible],
42027
+ [
42028
+ _directive_loading,
42029
+ unref(tableProps_box).query.loading.visible ? unref(tableProps_box).query.loading.text : '',
42030
+ void 0,
42031
+ { text: true }
42032
+ ],
42033
+ [
42034
+ _directive_loading,
42035
+ unref(tableProps_box).query.loading.visible ? unref(tableProps_box).query.loading.spinner : '',
42036
+ void 0,
42037
+ { spinner: true }
42038
+ ],
42039
+ [
42040
+ _directive_loading,
42041
+ unref(tableProps_box).query.loading.visible ? unref(tableProps_box).query.loading.background : '',
42042
+ void 0,
42043
+ { background: true }
42044
+ ]
42045
+ ]),
42046
+ createCommentVNode(" 分页 "),
42047
+ createVNode(_component_el_pagination, {
42048
+ total: unref(tableData_box).total,
42049
+ "page-size": unref(tableProps_box).query.pageSize,
42050
+ "page-sizes": [unref(tableProps_box).query.pageSize],
42051
+ "current-page": unref(tableProps_box).query.currentPage,
42052
+ style: normalizeStyle(style.pagination),
42053
+ onSizeChange: hdl.pageSizeChange,
42054
+ onCurrentChange: hdl.currentPageChange,
42055
+ layout: "total, sizes, prev, pager, next, jumper"
42056
+ }, null, 8 /* PROPS */, ["total", "page-size", "page-sizes", "current-page", "style", "onSizeChange", "onCurrentChange"]),
42057
+ createCommentVNode(" 选择列 "),
42058
+ createVNode(script$e, { tableProps: unref(tableProps_box) }, null, 8 /* PROPS */, ["tableProps"])
42059
+ ]))
42060
+ }
42061
+ }
42062
+
42063
+ };
42064
+
42065
+ script$d.__file = "src/table/Table.vue";
42066
+
42067
+ // 默认值
42068
+
42069
+ var ly0default$1 = {
42070
+ myProps: {
42071
+ popup: {
42072
+ visible: false,
42073
+ title: '',
42074
+ width: "1024px",
42075
+ top: "15vh"
42076
+ },
42077
+ titleLine: {
42078
+ // 标题线
42079
+ text: '',
42080
+ style: {
42081
+ Line: {
42082
+ "margin-bottom": "50px"
42083
+ },
42084
+ text: {
42085
+ "font-size": "large",
42086
+ color: "#828282"
42087
+ }
42088
+ }
42089
+ },
42090
+ topButtonGroups: [],
42091
+ table: {
42092
+ colShow: {
42093
+ // 列元素类型
42094
+ image: {
42095
+ // 图标
42096
+ width: "40px",
42097
+ height: "30px"
42098
+ },
42099
+ download: {
42100
+ // 下载
42101
+ fileName: "new-file",
42102
+ // 下载文件名
42103
+ downloadLabel: "点击这里下载",
42104
+ // 下载标签
42105
+ downloadLabelNoSrc: "没有可供下载的资源" // 下载标签
42106
+ },
42107
+ ly0d7thumb: {
42108
+ // 商品图标
42109
+ thumb: {
42110
+ width: "80px",
42111
+ height: "60px"
42112
+ }
42113
+ }
42114
+ },
42115
+ selection: {
42116
+ // 行选择器
42117
+ yes: false,
42118
+ width: "48px" // 行选择器的列宽度
42119
+ },
42120
+ cellTooltip: [],
42121
+ // 单元格提示信息
42122
+ pickCol: {
42123
+ // 选择列
42124
+ colsInit: [],
42125
+ popup: {
42126
+ visible: false
42127
+ }
42128
+ },
42129
+ excel: {
42130
+ fileName: "table-to-excel.xlsx" // 另存excel文件名}
42131
+ }
42132
+ },
42133
+ query: {
42134
+ // 查询体
42135
+ sort: {
42136
+ label: "",
42137
+ order: ""
42138
+ },
42139
+ pageSize: 10,
42140
+ currentPage: 1,
42141
+ loading: {
42142
+ visible: false,
42143
+ text: "加载中...",
42144
+ spinner: 'el-icon-loading',
42145
+ background: 'rgba(0, 0, 0, 0.8)'
42146
+ }
42147
+ }
42148
+ }};
42149
+
42150
+ var script$c = {
42151
+ __name: 'Index',
42152
+ props: {
42153
+ modelValue: {
42154
+ type: Object,
42155
+ default: () => ({})
42156
+ },
42157
+ myProps: {
42158
+ type: Object,
42159
+ default: () => ({})
42160
+ },
42161
+ scopeThis: {
42162
+ type: Object,
42163
+ default: () => ({})
42164
+ }
42165
+ },
42166
+ setup(__props) {
42167
+
42168
+ const props = __props;
42169
+
42170
+ // 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
42171
+ let tableData_box = reactive(props.modelValue);
42172
+ const tableProps_box = reactive(unclassified.deepClone.deepMerge(
42173
+ unclassified.deepClone.deepClone(ly0default$1.myProps),
42174
+ props.myProps
42175
+ ));
42176
+
42177
+ const scopeThis_box = reactive(props.scopeThis);
42178
+
42179
+ return (_ctx, _cache) => {
42180
+ const _component_el_dialog = resolveComponent("el-dialog");
42181
+
42182
+ return (tableProps_box.popup.visible)
42183
+ ? (openBlock(), createBlock(_component_el_dialog, {
42184
+ key: 0,
42185
+ modelValue: tableProps_box.popup.visible,
42186
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((tableProps_box.popup.visible) = $event)),
42187
+ "custom-class": 'code-template-dialog',
42188
+ "close-on-press-escape": true,
42189
+ "append-to-body": "",
42190
+ title: tableProps_box.popup.title,
42191
+ width: tableProps_box.popup.width,
42192
+ top: tableProps_box.popup.top,
42193
+ "destroy-on-close": true
42194
+ }, {
42195
+ default: withCtx(() => [
42196
+ createVNode(script$d, {
42197
+ modelValue: unref(tableData_box),
42198
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(tableData_box) ? (tableData_box).value = $event : tableData_box = $event)),
42199
+ myProps: tableProps_box,
42200
+ scopeThis: scopeThis_box
42201
+ }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
42202
+ ]),
42203
+ _: 1 /* STABLE */
42204
+ }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
42205
+ : (openBlock(), createBlock(script$d, {
42206
+ key: 1,
42207
+ modelValue: unref(tableData_box),
42208
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(tableData_box) ? (tableData_box).value = $event : tableData_box = $event)),
42209
+ myProps: tableProps_box,
42210
+ scopeThis: scopeThis_box
42211
+ }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
42212
+ }
42213
+ }
42214
+
42215
+ };
42216
+
42217
+ script$c.__file = "src/table/Index.vue";
41420
42218
 
41421
42219
  var ly0default = {
41422
42220
  myProps: {
@@ -44275,9 +45073,10 @@ script.__file = "src/ly0d7thumb/index.vue";
44275
45073
  var index = {
44276
45074
  install(app, options) {
44277
45075
  // 全局注册组件
44278
- app.component('ly0Form', script$e);
44279
- app.component('ly0Menu', script$d);
44280
- app.component('ly0Richtext', script$c);
45076
+ app.component('ly0Form', script$h);
45077
+ app.component('ly0Menu', script$g);
45078
+ app.component('ly0Table', script$c);
45079
+ app.component('ly0Richtext', script$f);
44281
45080
  app.component('ly0Upload', upload.Upload);
44282
45081
  app.component('ly0Upload_avatar', upload.Upload_avatar);
44283
45082
  app.component('ly0Upload_carplate', upload.Upload_carplate);