@fangzhongya/fang-ui 0.0.28 → 0.0.29

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.
Files changed (99) hide show
  1. package/dist/components/array/src/index.cjs +6 -9
  2. package/dist/components/array/src/index.js +6 -9
  3. package/dist/components/cascader/index.d.ts +1 -1
  4. package/dist/components/cascader/src/index.d.ts +2 -2
  5. package/dist/components/checks/src/index.cjs +4 -4
  6. package/dist/components/checks/src/index.js +4 -4
  7. package/dist/components/common/list.cjs +2 -3
  8. package/dist/components/common/list.js +2 -3
  9. package/dist/components/common/use.cjs +11 -11
  10. package/dist/components/common/use.js +11 -11
  11. package/dist/components/cs-slot/src/index.cjs +6 -6
  12. package/dist/components/cs-slot/src/index.js +6 -6
  13. package/dist/components/dialog/src/index.cjs +2 -2
  14. package/dist/components/dialog/src/index.js +2 -2
  15. package/dist/components/edit-float/src/index2.cjs +2 -2
  16. package/dist/components/edit-float/src/index2.js +2 -2
  17. package/dist/components/el-tables/src/columns3.cjs +1 -1
  18. package/dist/components/el-tables/src/columns3.js +1 -1
  19. package/dist/components/el-tables/src/index.cjs +2 -3
  20. package/dist/components/el-tables/src/index.js +2 -3
  21. package/dist/components/forms/src/index.cjs +2 -2
  22. package/dist/components/forms/src/index.js +2 -2
  23. package/dist/components/forms/src/setup.cjs +5 -8
  24. package/dist/components/forms/src/setup.js +5 -8
  25. package/dist/components/forms/src/util.cjs +1 -2
  26. package/dist/components/forms/src/util.js +1 -2
  27. package/dist/components/forms-drag/src/index.cjs +2 -2
  28. package/dist/components/forms-drag/src/index.js +2 -2
  29. package/dist/components/forms-item/src/index.cjs +1 -1
  30. package/dist/components/forms-item/src/index.js +1 -1
  31. package/dist/components/forms-items/src/index.cjs +2 -2
  32. package/dist/components/forms-items/src/index.js +2 -2
  33. package/dist/components/global-config/src/index.cjs +1 -1
  34. package/dist/components/global-config/src/index.js +1 -1
  35. package/dist/components/icon-picker/src/index.cjs +4 -6
  36. package/dist/components/icon-picker/src/index.js +4 -6
  37. package/dist/components/input/index.d.ts +1 -1
  38. package/dist/components/input/src/index.d.ts +2 -2
  39. package/dist/components/input-number/index.d.ts +1 -1
  40. package/dist/components/input-number/src/index.d.ts +2 -2
  41. package/dist/components/input-select/index.d.ts +1 -1
  42. package/dist/components/input-select/src/index.d.ts +2 -2
  43. package/dist/components/input-select/src/index2.cjs +1 -1
  44. package/dist/components/input-select/src/index2.js +1 -1
  45. package/dist/components/labels/src/index2.cjs +1 -2
  46. package/dist/components/labels/src/index2.js +1 -2
  47. package/dist/components/menus/src/menu-ll.cjs +1 -1
  48. package/dist/components/menus/src/menu-ll.js +1 -1
  49. package/dist/components/page/src/index.cjs +65 -85
  50. package/dist/components/page/src/index.js +65 -85
  51. package/dist/components/page/src/set-column2.cjs +2 -2
  52. package/dist/components/page/src/set-column2.js +2 -2
  53. package/dist/components/right-key/index.d.ts +15 -0
  54. package/dist/components/right-key/src/data.cjs +4 -0
  55. package/dist/components/right-key/src/data.d.ts +4 -0
  56. package/dist/components/right-key/src/data.js +4 -0
  57. package/dist/components/right-key/src/index.cjs +5 -1
  58. package/dist/components/right-key/src/index.d.ts +9 -0
  59. package/dist/components/right-key/src/index.js +5 -1
  60. package/dist/components/role-select/src/index.cjs +1 -1
  61. package/dist/components/role-select/src/index.js +1 -1
  62. package/dist/components/selector/src/index2.cjs +2 -2
  63. package/dist/components/selector/src/index2.js +2 -2
  64. package/dist/components/selects/src/index.cjs +1 -1
  65. package/dist/components/selects/src/index.js +1 -1
  66. package/dist/components/stick-window/src/index.cjs +1 -1
  67. package/dist/components/stick-window/src/index.js +1 -1
  68. package/dist/components/switchs/src/index.cjs +4 -4
  69. package/dist/components/switchs/src/index.js +4 -4
  70. package/dist/components/table-list/src/table-list.cjs +10 -15
  71. package/dist/components/table-list/src/table-list.js +10 -15
  72. package/dist/components/tables/common/pagin.cjs +40 -57
  73. package/dist/components/tables/common/pagin.js +40 -57
  74. package/dist/components/tables/common/table-but.cjs +1 -2
  75. package/dist/components/tables/common/table-but.js +1 -2
  76. package/dist/components/tables/common/table-color.cjs +4 -5
  77. package/dist/components/tables/common/table-color.js +4 -5
  78. package/dist/components/tables/common/table-list.cjs +1 -2
  79. package/dist/components/tables/common/table-list.js +1 -2
  80. package/dist/components/tables/common/util.cjs +2 -3
  81. package/dist/components/tables/common/util.js +2 -3
  82. package/dist/components/tables/src/index.cjs +4 -5
  83. package/dist/components/tables/src/index.js +4 -5
  84. package/dist/components/tables-form/src/columns3.cjs +1 -1
  85. package/dist/components/tables-form/src/columns3.js +1 -1
  86. package/dist/components/tables-form/src/index.cjs +4 -7
  87. package/dist/components/tables-form/src/index.js +4 -7
  88. package/dist/components/tables-pagin/src/index.cjs +3 -4
  89. package/dist/components/tables-pagin/src/index.js +3 -4
  90. package/dist/components/vxe-tables/src/columns3.cjs +1 -1
  91. package/dist/components/vxe-tables/src/columns3.js +1 -1
  92. package/dist/components/vxe-tables/src/index.cjs +2 -3
  93. package/dist/components/vxe-tables/src/index.js +2 -3
  94. package/dist/directives/adjust/index.cjs +1 -2
  95. package/dist/directives/adjust/index.js +1 -2
  96. package/dist/hooks/global-config/index.cjs +2 -5
  97. package/dist/hooks/global-config/index.js +2 -5
  98. package/package.json +13 -13
  99. /package/dist/components/{forms-items → forms-item}/index.css +0 -0
@@ -107,8 +107,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
107
  const query = ref(props.value);
108
108
  const isSenior = ref(false);
109
109
  const getListQuery = () => {
110
- var _a;
111
- const v = (_a = props.config.query) == null ? void 0 : _a.list;
110
+ const v = props.config.query?.list;
112
111
  if (v && Array.isArray(v) && v.length > 0) {
113
112
  return getColumnList(v);
114
113
  } else {
@@ -121,9 +120,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
120
  };
122
121
  const listQuery = ref([]);
123
122
  const setListQuery = () => {
124
- var _a;
125
123
  const list2 = getListQuery();
126
- if ((_a = props.config.query) == null ? void 0 : _a.senior) {
124
+ if (props.config.query?.senior) {
127
125
  let i = 0;
128
126
  list2.forEach((obj) => {
129
127
  if (obj.querybasis) {
@@ -141,8 +139,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
141
139
  listQuery.value = list2;
142
140
  };
143
141
  const onRefresh = () => {
144
- var _a;
145
- (_a = tableRef.value) == null ? void 0 : _a.getList();
142
+ tableRef.value?.getList();
146
143
  };
147
144
  const onQuery = (data) => {
148
145
  console.log("onQuery", data);
@@ -150,9 +147,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
150
147
  onRefresh();
151
148
  };
152
149
  const onReset = (data) => {
153
- var _a;
154
150
  console.log("onReset", data);
155
- if ((_a = props.config.query) == null ? void 0 : _a.reset) {
151
+ if (props.config.query?.reset) {
156
152
  query.value = data;
157
153
  onRefresh();
158
154
  }
@@ -168,7 +164,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
168
164
  };
169
165
  const butQuery = ref([]);
170
166
  const getButQuery = () => {
171
- var _a;
172
167
  const arr = [
173
168
  {
174
169
  _id: "1",
@@ -181,7 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
176
  type: "default"
182
177
  }
183
178
  ];
184
- if ((_a = props.config.query) == null ? void 0 : _a.senior) {
179
+ if (props.config.query?.senior) {
185
180
  const obj = {
186
181
  _id: "3",
187
182
  label: "高级",
@@ -217,9 +212,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
217
212
  setList.value = getList();
218
213
  };
219
214
  const tableList = computed(() => {
220
- var _a;
221
215
  const arr = [];
222
- if (((_a = props.config.table) == null ? void 0 : _a.operation) !== false) {
216
+ if (props.config.table?.operation !== false) {
223
217
  arr.push({
224
218
  prop: "operation",
225
219
  label: "操作",
@@ -232,9 +226,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
232
226
  });
233
227
  let operationColumn = [];
234
228
  const getOperationColumn = () => {
235
- var _a, _b, _c;
236
229
  const array = [];
237
- if (((_a = props.config.edit) == null ? void 0 : _a.is) !== false) {
230
+ if (props.config.edit?.is !== false) {
238
231
  array.push({
239
232
  prop: 2,
240
233
  label: "编辑",
@@ -242,7 +235,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
242
235
  text: true
243
236
  });
244
237
  }
245
- if (((_b = props.config.delete) == null ? void 0 : _b.is) !== false) {
238
+ if (props.config.delete?.is !== false) {
246
239
  array.push({
247
240
  prop: 4,
248
241
  label: "删除",
@@ -250,7 +243,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
250
243
  text: true
251
244
  });
252
245
  }
253
- if (((_c = props.config.details) == null ? void 0 : _c.is) !== false) {
246
+ if (props.config.details?.is !== false) {
254
247
  array.push({
255
248
  prop: 9,
256
249
  label: "详情",
@@ -262,16 +255,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
262
255
  };
263
256
  let operationTop = [];
264
257
  const getOperationTop = () => {
265
- var _a, _b, _c;
266
258
  const array = [];
267
- if (((_a = props.config.add) == null ? void 0 : _a.is) !== false) {
259
+ if (props.config.add?.is !== false) {
268
260
  array.push({
269
261
  prop: 1,
270
262
  label: "添加",
271
263
  type: "primary"
272
264
  });
273
265
  }
274
- if (((_b = props.config.delete) == null ? void 0 : _b.is) !== false && ((_c = tableConfig.value.config) == null ? void 0 : _c.ischecked)) {
266
+ if (props.config.delete?.is !== false && tableConfig.value.config?.ischecked) {
275
267
  array.push({
276
268
  prop: 8,
277
269
  label: "批量删除",
@@ -281,11 +273,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
281
273
  return array;
282
274
  };
283
275
  const onDelete = (array) => {
284
- var _a, _b, _c;
285
276
  const ts = ["是否删除所选" + props.config.name + "?"];
286
- const label = ((_a = props.config.delete) == null ? void 0 : _a.label) || "name";
287
- const prop = ((_b = props.config.delete) == null ? void 0 : _b.prop) || "id";
288
- const name = ((_c = listObj[label]) == null ? void 0 : _c.label) || "内容";
277
+ const label = props.config.delete?.label || "name";
278
+ const prop = props.config.delete?.prop || "id";
279
+ const name = listObj[label]?.label || "内容";
289
280
  array.forEach((obj) => {
290
281
  ts.push(name + ":" + (obj[label] ?? ""));
291
282
  });
@@ -295,20 +286,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
295
286
  type: "warning",
296
287
  dangerouslyUseHTMLString: true
297
288
  }).then(() => {
298
- var _a2, _b2;
299
- const name2 = ((_a2 = props.config.delete) == null ? void 0 : _a2.name) || "ids";
289
+ const name2 = props.config.delete?.name || "ids";
300
290
  const value = { [name2]: array.map((o) => o[prop]) };
301
291
  console.log("onDelete", value);
302
- const ajax = (_b2 = props.config.delete) == null ? void 0 : _b2.ajax;
292
+ const ajax = props.config.delete?.ajax;
303
293
  if (ajax) {
304
294
  const param = {
305
295
  param: props.value
306
296
  };
307
297
  if (typeof ajax === "object") {
308
- param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
309
- param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
310
- param.ajax = ajax == null ? void 0 : ajax.url;
311
- param.ajaxConfig = ajax == null ? void 0 : ajax.config;
298
+ param.onRequestBefore = ajax?.onRequestBefore;
299
+ param.onRequestAfter = ajax?.onRequestAfter;
300
+ param.ajax = ajax?.url;
301
+ param.ajaxConfig = ajax?.config;
312
302
  } else {
313
303
  param.ajax = ajax;
314
304
  }
@@ -331,10 +321,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
331
321
  });
332
322
  };
333
323
  const onOperation = (item, row = {}) => {
334
- var _a, _b;
335
324
  if (item.prop === 1) {
336
325
  dialog.value = {
337
- ...(_a = props.config.add) == null ? void 0 : _a.value
326
+ ...props.config.add?.value
338
327
  };
339
328
  dialog.type = "add";
340
329
  dialog.visible = true;
@@ -355,16 +344,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
355
344
  } else if (item.prop === 9) {
356
345
  details.value = row;
357
346
  details.visible = true;
358
- const ajax = (_b = props.config.details) == null ? void 0 : _b.ajax;
347
+ const ajax = props.config.details?.ajax;
359
348
  if (ajax) {
360
349
  const param = {
361
350
  param: props.value
362
351
  };
363
352
  if (typeof ajax === "object") {
364
- param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
365
- param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
366
- param.ajax = ajax == null ? void 0 : ajax.url;
367
- param.ajaxConfig = ajax == null ? void 0 : ajax.config;
353
+ param.onRequestBefore = ajax?.onRequestBefore;
354
+ param.onRequestAfter = ajax?.onRequestAfter;
355
+ param.ajax = ajax?.url;
356
+ param.ajaxConfig = ajax?.config;
368
357
  } else {
369
358
  param.ajax = ajax;
370
359
  }
@@ -431,19 +420,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
431
420
  const onConfirm = () => {
432
421
  if (formRef.value) {
433
422
  formRef.value.validate().then((data) => {
434
- var _a, _b;
435
423
  if (dialog.type === "add") {
436
424
  console.log("添加", data);
437
- const ajax = (_a = props.config.add) == null ? void 0 : _a.ajax;
425
+ const ajax = props.config.add?.ajax;
438
426
  if (ajax) {
439
427
  const param = {
440
428
  param: props.value
441
429
  };
442
430
  if (typeof ajax === "object") {
443
- param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
444
- param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
445
- param.ajax = ajax == null ? void 0 : ajax.url;
446
- param.ajaxConfig = ajax == null ? void 0 : ajax.config;
431
+ param.onRequestBefore = ajax?.onRequestBefore;
432
+ param.onRequestAfter = ajax?.onRequestAfter;
433
+ param.ajax = ajax?.url;
434
+ param.ajaxConfig = ajax?.config;
447
435
  } else {
448
436
  param.ajax = ajax;
449
437
  }
@@ -468,16 +456,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
468
456
  }
469
457
  } else if (dialog.type === "edit") {
470
458
  console.log("编辑", data);
471
- const ajax = (_b = props.config.edit) == null ? void 0 : _b.ajax;
459
+ const ajax = props.config.edit?.ajax;
472
460
  if (ajax) {
473
461
  const param = {
474
462
  param: props.value
475
463
  };
476
464
  if (typeof ajax === "object") {
477
- param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
478
- param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
479
- param.ajax = ajax == null ? void 0 : ajax.url;
480
- param.ajaxConfig = ajax == null ? void 0 : ajax.config;
465
+ param.onRequestBefore = ajax?.onRequestBefore;
466
+ param.onRequestAfter = ajax?.onRequestAfter;
467
+ param.ajax = ajax?.url;
468
+ param.ajaxConfig = ajax?.config;
481
469
  } else {
482
470
  param.ajax = ajax;
483
471
  }
@@ -507,9 +495,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
507
495
  }
508
496
  };
509
497
  const getListForm = () => {
510
- var _a, _b;
511
498
  if (dialog.type === "edit") {
512
- const v = (_a = props.config.edit) == null ? void 0 : _a.list;
499
+ const v = props.config.edit?.list;
513
500
  if (v && Array.isArray(v) && v.length > 0) {
514
501
  return getColumnList(v);
515
502
  } else {
@@ -518,7 +505,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
518
505
  });
519
506
  }
520
507
  } else {
521
- const v = (_b = props.config.add) == null ? void 0 : _b.list;
508
+ const v = props.config.add?.list;
522
509
  if (v && Array.isArray(v) && v.length > 0) {
523
510
  return getColumnList(v);
524
511
  } else {
@@ -537,8 +524,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
537
524
  value: {}
538
525
  });
539
526
  const getListDetails = () => {
540
- var _a;
541
- const v = (_a = props.config.details) == null ? void 0 : _a.list;
527
+ const v = props.config.details?.list;
542
528
  if (v && Array.isArray(v) && v.length > 0) {
543
529
  return getColumnList(v);
544
530
  } else {
@@ -552,19 +538,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
552
538
  watch(
553
539
  () => props.config,
554
540
  (newValue) => {
555
- var _a, _b, _c, _d;
556
541
  if (newValue) {
557
542
  if (props.config.table) {
558
543
  tableConfig.value = getTableConfig();
559
544
  }
560
- if (((_a = props.config.query) == null ? void 0 : _a.is) !== false) {
545
+ if (props.config.query?.is !== false) {
561
546
  setListQuery();
562
547
  butQuery.value = getButQuery();
563
548
  }
564
- if (((_b = props.config.details) == null ? void 0 : _b.is) !== false) {
549
+ if (props.config.details?.is !== false) {
565
550
  setListDetails();
566
551
  }
567
- if (((_c = props.config.add) == null ? void 0 : _c.is) !== false || ((_d = props.config.edit) == null ? void 0 : _d.is) !== false) {
552
+ if (props.config.add?.is !== false || props.config.edit?.is !== false) {
568
553
  setListForm();
569
554
  }
570
555
  operationColumn = getOperationColumn();
@@ -579,16 +564,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
579
564
  watch(
580
565
  () => props.list,
581
566
  () => {
582
- var _a, _b, _c, _d;
583
567
  listObj = getListObj();
584
568
  setSetList();
585
- if (((_a = props.config.query) == null ? void 0 : _a.is) !== false) {
569
+ if (props.config.query?.is !== false) {
586
570
  setListQuery();
587
571
  }
588
- if (((_b = props.config.details) == null ? void 0 : _b.is) !== false) {
572
+ if (props.config.details?.is !== false) {
589
573
  setListDetails();
590
574
  }
591
- if (((_c = props.config.add) == null ? void 0 : _c.is) !== false || ((_d = props.config.edit) == null ? void 0 : _d.is) !== false) {
575
+ if (props.config.add?.is !== false || props.config.edit?.is !== false) {
592
576
  setListForm();
593
577
  }
594
578
  },
@@ -598,7 +582,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
598
582
  }
599
583
  );
600
584
  return (_ctx, _cache) => {
601
- var _a, _b, _c;
602
585
  return openBlock(), createElementBlock("div", {
603
586
  class: normalizeClass(unref(cs).z())
604
587
  }, [
@@ -637,37 +620,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
637
620
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => details.visible = $event),
638
621
  "no-footer": ""
639
622
  }, {
640
- default: withCtx(() => {
641
- var _a2;
642
- return [
643
- createVNode(unref(Lists), mergeProps((_a2 = props.config.details) == null ? void 0 : _a2.config, {
644
- value: details.value,
645
- options: props.options,
646
- compons: props.compons,
647
- list: list.value
648
- }), createSlots({ _: 2 }, [
649
- renderList(listSlots, (k) => {
650
- return {
651
- name: k,
652
- fn: withCtx((scope) => [
653
- unref(slots)["list-" + k] ? renderSlot(_ctx.$slots, "list-" + k, normalizeProps(mergeProps({ key: 0 }, scope))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope)))
654
- ])
655
- };
656
- })
657
- ]), 1040, ["value", "options", "compons", "list"])
658
- ];
659
- }),
623
+ default: withCtx(() => [
624
+ createVNode(unref(Lists), mergeProps(props.config.details?.config, {
625
+ value: details.value,
626
+ options: props.options,
627
+ compons: props.compons,
628
+ list: list.value
629
+ }), createSlots({ _: 2 }, [
630
+ renderList(listSlots, (k) => {
631
+ return {
632
+ name: k,
633
+ fn: withCtx((scope) => [
634
+ unref(slots)["list-" + k] ? renderSlot(_ctx.$slots, "list-" + k, normalizeProps(mergeProps({ key: 0 }, scope))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope)))
635
+ ])
636
+ };
637
+ })
638
+ ]), 1040, ["value", "options", "compons", "list"])
639
+ ]),
660
640
  _: 3
661
641
  }, 8, ["title", "modelValue"]),
662
642
  createElementVNode("div", {
663
643
  class: normalizeClass(unref(cs).z("header"))
664
644
  }, [
665
645
  renderSlot(_ctx.$slots, dataSlot.header),
666
- ((_a = props.config.query) == null ? void 0 : _a.is) !== false ? (openBlock(), createElementBlock("div", {
646
+ props.config.query?.is !== false ? (openBlock(), createElementBlock("div", {
667
647
  key: 0,
668
648
  class: normalizeClass(unref(cs).z("query"))
669
649
  }, [
670
- createVNode(unref(Forms), mergeProps((_b = props.config.query) == null ? void 0 : _b.config, {
650
+ createVNode(unref(Forms), mergeProps(props.config.query?.config, {
671
651
  query: "",
672
652
  "label-position": "auto",
673
653
  "model-value": props.value,
@@ -726,7 +706,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
726
706
  createVNode(unref(TablesPagin), {
727
707
  ref_key: "tableRef",
728
708
  ref: tableRef,
729
- load: ((_c = props.config.query) == null ? void 0 : _c.is) === false,
709
+ load: props.config.query?.is === false,
730
710
  config: tableConfig.value,
731
711
  param: query.value,
732
712
  options: props.options,
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
74
74
  }, [
75
75
  vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: onOpen }, {
76
76
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
77
- vue.createTextVNode("列设置")
77
+ vue.createTextVNode("列设置", -1)
78
78
  ])),
79
79
  _: 1,
80
80
  __: [4]
@@ -143,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
143
143
  onClick: vue.withModifiers(($event) => onDelete(element, index2), ["stop"])
144
144
  }, {
145
145
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
146
- vue.createTextVNode(" 删除 ")
146
+ vue.createTextVNode(" 删除 ", -1)
147
147
  ])),
148
148
  _: 2,
149
149
  __: [5]
@@ -72,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  }, [
73
73
  createVNode(unref(ElButton), { onClick: onOpen }, {
74
74
  default: withCtx(() => _cache[4] || (_cache[4] = [
75
- createTextVNode("列设置")
75
+ createTextVNode("列设置", -1)
76
76
  ])),
77
77
  _: 1,
78
78
  __: [4]
@@ -141,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
141
141
  onClick: withModifiers(($event) => onDelete(element, index), ["stop"])
142
142
  }, {
143
143
  default: withCtx(() => _cache[5] || (_cache[5] = [
144
- createTextVNode(" 删除 ")
144
+ createTextVNode(" 删除 ", -1)
145
145
  ])),
146
146
  _: 2,
147
147
  __: [5]
@@ -25,6 +25,10 @@ declare const RightKey: {
25
25
  type: StringConstructor[];
26
26
  default: string;
27
27
  };
28
+ level: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
28
32
  label: {
29
33
  type: (FunctionConstructor | StringConstructor)[];
30
34
  default: string;
@@ -43,6 +47,7 @@ declare const RightKey: {
43
47
  disabled: boolean;
44
48
  options: ObjAny[];
45
49
  domClass: string;
50
+ level: number;
46
51
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
47
52
  refRightKey: HTMLDivElement;
48
53
  refRightKeyBox: HTMLDivElement;
@@ -77,6 +82,10 @@ declare const RightKey: {
77
82
  type: StringConstructor[];
78
83
  default: string;
79
84
  };
85
+ level: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
80
89
  label: {
81
90
  type: (FunctionConstructor | StringConstructor)[];
82
91
  default: string;
@@ -95,6 +104,7 @@ declare const RightKey: {
95
104
  disabled: boolean;
96
105
  options: ObjAny[];
97
106
  domClass: string;
107
+ level: number;
98
108
  }>;
99
109
  __isFragment?: never;
100
110
  __isTeleport?: never;
@@ -123,6 +133,10 @@ declare const RightKey: {
123
133
  type: StringConstructor[];
124
134
  default: string;
125
135
  };
136
+ level: {
137
+ type: NumberConstructor;
138
+ default: number;
139
+ };
126
140
  label: {
127
141
  type: (FunctionConstructor | StringConstructor)[];
128
142
  default: string;
@@ -141,6 +155,7 @@ declare const RightKey: {
141
155
  disabled: boolean;
142
156
  options: ObjAny[];
143
157
  domClass: string;
158
+ level: number;
144
159
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
145
160
  $slots: Partial<Record<string, (_: {}) => any>>;
146
161
  }) & Plugin;
@@ -37,6 +37,10 @@ const dataProps = buildProps.buildProps({
37
37
  type: [String],
38
38
  default: ""
39
39
  },
40
+ level: {
41
+ type: Number,
42
+ default: 5
43
+ },
40
44
  /**
41
45
  * @props { String, Function } label=label 列表中展示名称
42
46
  */
@@ -32,6 +32,10 @@ export declare const dataProps: {
32
32
  type: StringConstructor[];
33
33
  default: string;
34
34
  };
35
+ level: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
35
39
  /**
36
40
  * @props { String, Function } label=label 列表中展示名称
37
41
  */
@@ -35,6 +35,10 @@ const dataProps = buildProps({
35
35
  type: [String],
36
36
  default: ""
37
37
  },
38
+ level: {
39
+ type: Number,
40
+ default: 5
41
+ },
38
42
  /**
39
43
  * @props { String, Function } label=label 列表中展示名称
40
44
  */
@@ -58,7 +58,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
58
58
  function isDomClass(dom2) {
59
59
  if (dom2) {
60
60
  if (props.domClass) {
61
- const v = getPrentClass.getPrentClass(dom2, props.domClass);
61
+ const v = getPrentClass.getPrentClass(
62
+ dom2,
63
+ props.domClass,
64
+ props.level
65
+ );
62
66
  if (v && refRightKey.value.contains(v)) {
63
67
  return v;
64
68
  }
@@ -34,6 +34,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
34
34
  type: StringConstructor[];
35
35
  default: string;
36
36
  };
37
+ level: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
37
41
  label: {
38
42
  type: (FunctionConstructor | StringConstructor)[];
39
43
  default: string;
@@ -71,6 +75,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
71
75
  type: StringConstructor[];
72
76
  default: string;
73
77
  };
78
+ level: {
79
+ type: NumberConstructor;
80
+ default: number;
81
+ };
74
82
  label: {
75
83
  type: (FunctionConstructor | StringConstructor)[];
76
84
  default: string;
@@ -89,6 +97,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
89
97
  disabled: boolean;
90
98
  options: ObjAny[];
91
99
  domClass: string;
100
+ level: number;
92
101
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
93
102
  refRightKey: HTMLDivElement;
94
103
  refRightKeyBox: HTMLDivElement;
@@ -56,7 +56,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
56
  function isDomClass(dom2) {
57
57
  if (dom2) {
58
58
  if (props.domClass) {
59
- const v = getPrentClass(dom2, props.domClass);
59
+ const v = getPrentClass(
60
+ dom2,
61
+ props.domClass,
62
+ props.level
63
+ );
60
64
  if (v && refRightKey.value.contains(v)) {
61
65
  return v;
62
66
  }
@@ -202,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
202
202
  label: row[psprops.value.value]
203
203
  }, {
204
204
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
205
- vue.createTextVNode(vue.toDisplayString(""))
205
+ vue.createTextVNode(vue.toDisplayString(""), -1)
206
206
  ])),
207
207
  _: 2,
208
208
  __: [3]
@@ -200,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
200
200
  label: row[psprops.value.value]
201
201
  }, {
202
202
  default: withCtx(() => _cache[3] || (_cache[3] = [
203
- createTextVNode(toDisplayString(""))
203
+ createTextVNode(toDisplayString(""), -1)
204
204
  ])),
205
205
  _: 2,
206
206
  __: [3]
@@ -169,7 +169,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
169
169
  onClick: vue.withModifiers(onCancel, ["stop"])
170
170
  }, {
171
171
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
172
- vue.createTextVNode(vue.toDisplayString("关闭"))
172
+ vue.createTextVNode(vue.toDisplayString("关闭"), -1)
173
173
  ])),
174
174
  _: 1,
175
175
  __: [3]
@@ -179,7 +179,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
179
179
  onClick: vue.withModifiers(onDetermine, ["stop"])
180
180
  }, {
181
181
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
182
- vue.createTextVNode(vue.toDisplayString("确认"))
182
+ vue.createTextVNode(vue.toDisplayString("确认"), -1)
183
183
  ])),
184
184
  _: 1,
185
185
  __: [4]
@@ -167,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
167
167
  onClick: withModifiers(onCancel, ["stop"])
168
168
  }, {
169
169
  default: withCtx(() => _cache[3] || (_cache[3] = [
170
- createTextVNode(toDisplayString("关闭"))
170
+ createTextVNode(toDisplayString("关闭"), -1)
171
171
  ])),
172
172
  _: 1,
173
173
  __: [3]
@@ -177,7 +177,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
177
  onClick: withModifiers(onDetermine, ["stop"])
178
178
  }, {
179
179
  default: withCtx(() => _cache[4] || (_cache[4] = [
180
- createTextVNode(toDisplayString("确认"))
180
+ createTextVNode(toDisplayString("确认"), -1)
181
181
  ])),
182
182
  _: 1,
183
183
  __: [4]
@@ -51,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
51
51
  return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElOption), {
52
52
  label: vue.unref(use.useVueValue)(item, props.label),
53
53
  value: vue.unref(use.useVueValue)(item, props.prop),
54
- disabled: item == null ? void 0 : item.disabled
54
+ disabled: item?.disabled
55
55
  }, null, 8, ["label", "value", "disabled"]);
56
56
  }), 256))
57
57
  ]),
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  return openBlock(), createBlock(unref(ElOption), {
50
50
  label: unref(useVueValue)(item, props.label),
51
51
  value: unref(useVueValue)(item, props.prop),
52
- disabled: item == null ? void 0 : item.disabled
52
+ disabled: item?.disabled
53
53
  }, null, 8, ["label", "value", "disabled"]);
54
54
  }), 256))
55
55
  ]),
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
25
25
  };
26
26
  function onClick(item, index2) {
27
27
  if (item.value) {
28
- item == null ? void 0 : item.value();
28
+ item?.value();
29
29
  }
30
30
  }
31
31
  function onClose(item, index2) {
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  };
24
24
  function onClick(item, index) {
25
25
  if (item.value) {
26
- item == null ? void 0 : item.value();
26
+ item?.value();
27
27
  }
28
28
  }
29
29
  function onClose(item, index) {