qidian-vue-ui 1.1.40 → 1.1.42

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.
@@ -1,7 +1,7 @@
1
- import { defineComponent, mergeDefaults, ref, reactive, computed, watch, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode, createSlots, renderList, createElementBlock, createTextVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps } from "vue";
1
+ import { defineComponent, mergeDefaults, ref, reactive, computed, createVNode, watch, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createSlots, renderList, createElementBlock, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { isEmpty, identifyType, extractSlotsWithPrefix } from "qidian-shared";
3
3
  import { Popup, Select, Input, Space, Button } from "tdesign-vue-next";
4
- import { SearchIcon, AddIcon } from "tdesign-icons-vue-next";
4
+ import { AddIcon, SearchIcon } from "tdesign-icons-vue-next";
5
5
  import { qdServicePopup, qdServicePopupTableSelectProps } from "./props.mjs";
6
6
  import { useVModels } from "../../node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
7
7
  import { qdDialogTableSelectSearchGrid } from "../service-dialog-table-select/props.mjs";
@@ -19,6 +19,9 @@ import "../crud/search/props.mjs";
19
19
  /* empty css */
20
20
  /* empty css */
21
21
  import QdCrudTable from "../crud/table/index.vue.mjs";
22
+ import "../../hooks/useAgentChat/index.mjs";
23
+ import { useReadonly } from "../../hooks/useReadonly.mjs";
24
+ import { useDisabled } from "../../hooks/useDisabled.mjs";
22
25
  import merge from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs";
23
26
  import get from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs";
24
27
  const _hoisted_1 = {
@@ -32,34 +35,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
35
  __name: "index",
33
36
  props: /* @__PURE__ */ mergeDefaults({
34
37
  tableSize: {},
38
+ addBtn: {},
39
+ addConfirmBtn: {},
40
+ addCancelBtn: {},
41
+ addInput: {},
35
42
  title: {},
36
43
  permiPrefix: {},
37
44
  search: {},
38
45
  searchData: {},
39
46
  detail: {},
40
- headerBg: { type: Boolean },
47
+ headerBg: {
48
+ type: Boolean
49
+ },
41
50
  tree: {},
42
- loadingWithData: { type: Boolean },
43
- beforeDragSort: { type: Function },
51
+ loadingWithData: {
52
+ type: Boolean
53
+ },
54
+ beforeDragSort: {
55
+ type: Function
56
+ },
44
57
  expandedTreeNodes: {},
45
58
  defaultExpandedTreeNodes: {},
46
59
  treeExpandAndFoldIcon: {},
47
- onAbnormalDragSort: { type: Function },
48
- onExpandedTreeNodesChange: { type: Function },
49
- onTreeExpandChange: { type: Function },
60
+ onAbnormalDragSort: {
61
+ type: Function
62
+ },
63
+ onExpandedTreeNodesChange: {
64
+ type: Function
65
+ },
66
+ onTreeExpandChange: {
67
+ type: Function
68
+ },
50
69
  asyncLoading: {},
51
70
  columnController: {},
52
- columnControllerVisible: { type: Boolean },
53
- defaultColumnControllerVisible: { type: Boolean },
71
+ columnControllerVisible: {
72
+ type: Boolean
73
+ },
74
+ defaultColumnControllerVisible: {
75
+ type: Boolean
76
+ },
54
77
  columns: {},
55
78
  displayColumns: {},
56
79
  defaultDisplayColumns: {},
57
80
  dragSort: {},
58
81
  dragSortOptions: {},
59
- editableCellState: { type: Function },
82
+ editableCellState: {
83
+ type: Function
84
+ },
60
85
  editableRowKeys: {},
61
- expandIcon: { type: Boolean },
62
- expandOnRowClick: { type: Boolean },
86
+ expandIcon: {
87
+ type: Boolean
88
+ },
89
+ expandOnRowClick: {
90
+ type: Boolean
91
+ },
63
92
  expandedRow: {},
64
93
  expandedRowKeys: {},
65
94
  defaultExpandedRowKeys: {},
@@ -67,104 +96,222 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
96
  filterRow: {},
68
97
  filterValue: {},
69
98
  defaultFilterValue: {},
70
- hideSortTips: { type: Boolean },
99
+ hideSortTips: {
100
+ type: Boolean
101
+ },
71
102
  indeterminateSelectedRowKeys: {},
72
- multipleSort: { type: Boolean },
73
- rowSelectionAllowUncheck: { type: Boolean },
103
+ multipleSort: {
104
+ type: Boolean
105
+ },
106
+ rowSelectionAllowUncheck: {
107
+ type: Boolean
108
+ },
74
109
  rowSelectionType: {},
75
- selectOnRowClick: { type: Boolean },
110
+ selectOnRowClick: {
111
+ type: Boolean
112
+ },
76
113
  defaultSelectedRowKeys: {},
77
- showSortColumnBgColor: { type: Boolean },
114
+ showSortColumnBgColor: {
115
+ type: Boolean
116
+ },
78
117
  sort: {},
79
118
  defaultSort: {},
80
119
  sortIcon: {},
81
- sortOnRowDraggable: { type: Boolean },
120
+ sortOnRowDraggable: {
121
+ type: Boolean
122
+ },
82
123
  defaultActiveRowKeys: {},
83
- allowResizeColumnWidth: { type: Boolean },
84
- attach: { type: [String, Function] },
85
- bordered: { type: Boolean },
124
+ allowResizeColumnWidth: {
125
+ type: Boolean
126
+ },
127
+ attach: {
128
+ type: [String, Function]
129
+ },
130
+ bordered: {
131
+ type: Boolean
132
+ },
86
133
  bottomContent: {},
87
134
  cellEmptyContent: {},
88
135
  data: {},
89
- disableDataPage: { type: Boolean },
90
- disableSpaceInactiveRow: { type: Boolean },
136
+ disableDataPage: {
137
+ type: Boolean
138
+ },
139
+ disableSpaceInactiveRow: {
140
+ type: Boolean
141
+ },
91
142
  empty: {},
92
143
  firstFullRow: {},
93
144
  fixedRows: {},
94
145
  footData: {},
95
146
  footerAffixProps: {},
96
- footerAffixedBottom: { type: [Boolean, Object] },
147
+ footerAffixedBottom: {
148
+ type: [Boolean, Object]
149
+ },
97
150
  footerSummary: {},
98
151
  headerAffixProps: {},
99
- headerAffixedTop: { type: [Boolean, Object] },
152
+ headerAffixedTop: {
153
+ type: [Boolean, Object]
154
+ },
100
155
  height: {},
101
- horizontalScrollAffixedBottom: { type: [Boolean, Object] },
102
- hover: { type: Boolean },
103
- keyboardRowHover: { type: Boolean },
156
+ horizontalScrollAffixedBottom: {
157
+ type: [Boolean, Object]
158
+ },
159
+ hover: {
160
+ type: Boolean
161
+ },
162
+ keyboardRowHover: {
163
+ type: Boolean
164
+ },
104
165
  lastFullRow: {},
105
- lazyLoad: { type: Boolean },
106
- loading: { type: Boolean },
166
+ lazyLoad: {
167
+ type: Boolean
168
+ },
169
+ loading: {
170
+ type: Boolean
171
+ },
107
172
  loadingProps: {},
108
173
  locale: {},
109
174
  maxHeight: {},
110
- paginationAffixedBottom: { type: [Boolean, Object] },
111
- resizable: { type: Boolean },
112
- rowAttributes: { type: [Object, Function, Array] },
113
- rowClassName: { type: [Object, Array, String, Function] },
114
- rowspanAndColspan: { type: Function },
115
- rowspanAndColspanInFooter: { type: Function },
175
+ paginationAffixedBottom: {
176
+ type: [Boolean, Object]
177
+ },
178
+ resizable: {
179
+ type: Boolean
180
+ },
181
+ rowAttributes: {
182
+ type: [Object, Function, Array]
183
+ },
184
+ rowClassName: {
185
+ type: [Object, Array, String, Function]
186
+ },
187
+ rowspanAndColspan: {
188
+ type: Function
189
+ },
190
+ rowspanAndColspanInFooter: {
191
+ type: Function
192
+ },
116
193
  scroll: {},
117
- showHeader: { type: Boolean },
118
- stripe: { type: Boolean },
194
+ showHeader: {
195
+ type: Boolean
196
+ },
197
+ stripe: {
198
+ type: Boolean
199
+ },
119
200
  tableContentWidth: {},
120
201
  tableLayout: {},
121
202
  topContent: {},
122
203
  verticalAlign: {},
123
- onActiveChange: { type: Function },
124
- onActiveRowAction: { type: Function },
125
- onColumnResizeChange: { type: Function },
126
- onPageChange: { type: Function },
127
- onRowClick: { type: Function },
128
- onRowDblclick: { type: Function },
129
- onRowMousedown: { type: Function },
130
- onRowMouseenter: { type: Function },
131
- onRowMouseleave: { type: Function },
132
- onRowMouseover: { type: Function },
133
- onRowMouseup: { type: Function },
134
- onScroll: { type: Function },
135
- onScrollX: { type: Function },
136
- onScrollY: { type: Function },
137
- cacheKey: { type: [String, Function] },
204
+ onActiveChange: {
205
+ type: Function
206
+ },
207
+ onActiveRowAction: {
208
+ type: Function
209
+ },
210
+ onColumnResizeChange: {
211
+ type: Function
212
+ },
213
+ onPageChange: {
214
+ type: Function
215
+ },
216
+ onRowClick: {
217
+ type: Function
218
+ },
219
+ onRowDblclick: {
220
+ type: Function
221
+ },
222
+ onRowMousedown: {
223
+ type: Function
224
+ },
225
+ onRowMouseenter: {
226
+ type: Function
227
+ },
228
+ onRowMouseleave: {
229
+ type: Function
230
+ },
231
+ onRowMouseover: {
232
+ type: Function
233
+ },
234
+ onRowMouseup: {
235
+ type: Function
236
+ },
237
+ onScroll: {
238
+ type: Function
239
+ },
240
+ onScrollX: {
241
+ type: Function
242
+ },
243
+ onScrollY: {
244
+ type: Function
245
+ },
246
+ cacheKey: {
247
+ type: [String, Function]
248
+ },
138
249
  cacheTime: {},
139
250
  pollingInterval: {},
140
- onBefore: { type: Function },
141
- onAfter: { type: Function },
142
- onSuccess: { type: Function },
143
- onError: { type: Function },
144
- service: { type: Function },
145
- manual: { type: Boolean },
146
- transformParams: { type: Function },
147
- transformRes: { type: Function },
251
+ onBefore: {
252
+ type: Function
253
+ },
254
+ onAfter: {
255
+ type: Function
256
+ },
257
+ onSuccess: {
258
+ type: Function
259
+ },
260
+ onError: {
261
+ type: Function
262
+ },
263
+ service: {
264
+ type: Function
265
+ },
266
+ manual: {
267
+ type: Boolean
268
+ },
269
+ transformParams: {
270
+ type: Function
271
+ },
272
+ transformRes: {
273
+ type: Function
274
+ },
148
275
  pagination: {},
149
276
  modelValue: {},
150
- multiple: { type: Boolean },
151
- readonly: { type: Boolean },
152
- disabled: { type: Boolean },
277
+ multiple: {
278
+ type: Boolean
279
+ },
280
+ readonly: {
281
+ type: Boolean
282
+ },
283
+ disabled: {
284
+ type: Boolean
285
+ },
153
286
  placeholder: {},
154
- clearable: { type: Boolean },
155
- creatable: { type: Boolean },
287
+ clearable: {
288
+ type: Boolean
289
+ },
290
+ creatable: {
291
+ type: Boolean
292
+ },
156
293
  keys: {},
157
294
  size: {},
158
295
  valueType: {},
159
296
  fillOptions: {},
160
- popupVisible: { type: Boolean },
297
+ popupVisible: {
298
+ type: Boolean
299
+ },
161
300
  popupProps: {},
162
- onClear: { type: Function },
163
- onCreate: { type: Function },
164
- onChange: { type: Function }
301
+ onClear: {
302
+ type: Function
303
+ },
304
+ onCreate: {
305
+ type: Function
306
+ },
307
+ onChange: {
308
+ type: Function
309
+ }
165
310
  }, qdServicePopupTableSelectProps),
166
311
  emits: ["update:modelValue", "update:popupVisible", "update:searchData", "update:data", "update:columnControllerVisible", "update:displayColumns", "update:expandedRowKeys", "update:filterValue", "update:sort", "update:expandedTreeNodes"],
167
- setup(__props, { emit: __emit }) {
312
+ setup(__props, {
313
+ emit: __emit
314
+ }) {
168
315
  const props = __props;
169
316
  const emit = __emit;
170
317
  const {
@@ -181,7 +328,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
328
  } = useVModels(props, emit, {
182
329
  passive: true
183
330
  });
184
- const { t } = useConfig("dialogTableSelect");
331
+ const {
332
+ t
333
+ } = useConfig("dialogTableSelect");
334
+ const tdReadonly = useReadonly();
335
+ const tdDisabled = useDisabled();
185
336
  const selectedRowKeys = ref([]);
186
337
  const selectedRows = ref([]);
187
338
  const addCustom = reactive({
@@ -217,9 +368,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
217
368
  onChange,
218
369
  search,
219
370
  tableSize,
371
+ addBtn,
372
+ addConfirmBtn,
373
+ addCancelBtn,
374
+ addInput,
220
375
  ...tableOptions
221
376
  } = props;
222
- const rePopupOptions = merge({}, qdServicePopup, { trigger: "click" }, popupProps);
377
+ const rePopupOptions = merge({}, qdServicePopup, {
378
+ trigger: "click"
379
+ }, popupProps, {
380
+ disabled: tdDisabled.value || tdReadonly.value || disabled || readonly || popupProps?.disabled
381
+ });
223
382
  const onVisibleChange = rePopupOptions.onVisibleChange;
224
383
  rePopupOptions.onVisibleChange = (visible, context) => {
225
384
  onVisibleChange?.(visible, context);
@@ -245,6 +404,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
245
404
  reOverlayClassName["qd-popup-table-select__overlay"] = true;
246
405
  }
247
406
  rePopupOptions.overlayClassName = reOverlayClassName;
407
+ const addBtnOptions = merge({}, {
408
+ block: true,
409
+ theme: "primary",
410
+ variant: "dashed",
411
+ icon: () => createVNode(AddIcon, null, null),
412
+ content: t("addText"),
413
+ onClick: () => {
414
+ addCustom.visible = true;
415
+ }
416
+ }, typeof addBtn === "string" ? {
417
+ content: addBtn
418
+ } : addBtn);
419
+ const addConfirmBtnOptions = merge({}, {
420
+ content: t("addConfirmText"),
421
+ onClick: confirmAddCustom
422
+ }, typeof addConfirmBtn === "string" ? {
423
+ content: addConfirmBtn,
424
+ disabled: addConfirmDisabled.value
425
+ } : {
426
+ ...addConfirmBtn,
427
+ disabled: addConfirmDisabled.value || addConfirmBtn?.disabled
428
+ });
429
+ const addCancelBtnOptions = merge({}, {
430
+ variant: "outline",
431
+ content: t("addCancelText"),
432
+ onClick: cancelAddCustom
433
+ }, typeof addCancelBtn === "string" ? {
434
+ content: addCancelBtn
435
+ } : addCancelBtn);
436
+ const addInputOptions = merge({}, {
437
+ clearable: true
438
+ }, typeof addInput === "string" ? {
439
+ placeholder: addInput
440
+ } : addInput);
248
441
  return {
249
442
  creatable,
250
443
  fillOptions,
@@ -272,6 +465,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
272
465
  onClear,
273
466
  onCreate,
274
467
  onChange,
468
+ addBtnOptions,
469
+ addConfirmBtnOptions,
470
+ addCancelBtnOptions,
471
+ addInputOptions,
275
472
  models: {
276
473
  modelValue: modelValue2,
277
474
  popupVisible: popupVisible2,
@@ -289,7 +486,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
289
486
  let fillOptionsWatchStop;
290
487
  function handleSelectChange(rowKeys, options) {
291
488
  selectedRows.value = options.selectedRowData;
292
- const { selectOptions } = reProps.value;
489
+ const {
490
+ selectOptions
491
+ } = reProps.value;
293
492
  const valueKey = selectOptions.keys?.value || qdServiceSelectKeys.value;
294
493
  const labelKey = selectOptions.keys?.label || qdServiceSelectKeys.label;
295
494
  if (selectOptions.valueType === "value") {
@@ -337,127 +536,93 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
337
536
  value: ""
338
537
  });
339
538
  }
340
- fillOptionsWatchStop = watch(
341
- () => reProps.value.fillOptions,
342
- (fillOpts) => {
343
- if (!fillOpts?.length) return;
344
- selectedRows.value = fillOpts;
345
- },
346
- { immediate: true, deep: true }
347
- );
539
+ fillOptionsWatchStop = watch(() => reProps.value.fillOptions, (fillOpts) => {
540
+ if (!fillOpts?.length) return;
541
+ selectedRows.value = fillOpts;
542
+ }, {
543
+ immediate: true,
544
+ deep: true
545
+ });
348
546
  return (_ctx, _cache) => {
349
547
  return openBlock(), createBlock(unref(Popup), mergeProps({
350
548
  modelValue: unref(popupVisible),
351
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(popupVisible) ? popupVisible.value = $event : null)
549
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(popupVisible) ? popupVisible.value = $event : null)
352
550
  }, reProps.value.popupOptions), {
353
- content: withCtx(() => [
354
- createVNode(unref(QdCrudTable), mergeProps({
355
- class: "qd-popup-table-select__table",
356
- "search-data": unref(searchData),
357
- "onUpdate:searchData": _cache[3] || (_cache[3] = ($event) => isRef(searchData) ? searchData.value = $event : null),
358
- data: unref(data),
359
- "onUpdate:data": _cache[4] || (_cache[4] = ($event) => isRef(data) ? data.value = $event : null),
360
- "selected-row-keys": selectedRowKeys.value,
361
- "onUpdate:selectedRowKeys": _cache[5] || (_cache[5] = ($event) => selectedRowKeys.value = $event),
362
- "active-row-keys": selectedRowKeys.value,
363
- "onUpdate:activeRowKeys": _cache[6] || (_cache[6] = ($event) => selectedRowKeys.value = $event),
364
- "column-controller-visible": unref(columnControllerVisible),
365
- "onUpdate:columnControllerVisible": _cache[7] || (_cache[7] = ($event) => isRef(columnControllerVisible) ? columnControllerVisible.value = $event : null),
366
- "display-columns": unref(displayColumns),
367
- "onUpdate:displayColumns": _cache[8] || (_cache[8] = ($event) => isRef(displayColumns) ? displayColumns.value = $event : null),
368
- "expanded-rowKeys": unref(expandedRowKeys),
369
- "onUpdate:expandedRowKeys": _cache[9] || (_cache[9] = ($event) => isRef(expandedRowKeys) ? expandedRowKeys.value = $event : null),
370
- "filter-value": unref(filterValue),
371
- "onUpdate:filterValue": _cache[10] || (_cache[10] = ($event) => isRef(filterValue) ? filterValue.value = $event : null),
372
- sort: unref(sort),
373
- "onUpdate:sort": _cache[11] || (_cache[11] = ($event) => isRef(sort) ? sort.value = $event : null),
374
- "expanded-tree-nodes": unref(expandedTreeNodes),
375
- "onUpdate:expandedTreeNodes": _cache[12] || (_cache[12] = ($event) => isRef(expandedTreeNodes) ? expandedTreeNodes.value = $event : null),
376
- "reserve-selected-row-on-paginate": "",
377
- "active-row-type": "multiple"
378
- }, reProps.value.tableOptions, { onSelectChange: handleSelectChange }), createSlots({ _: 2 }, [
379
- reProps.value.creatable ? {
380
- name: "table-bottom-content",
381
- fn: withCtx(() => [
382
- addCustom.visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
383
- createVNode(unref(Input), {
384
- modelValue: addCustom.value,
385
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => addCustom.value = $event),
386
- clearable: ""
387
- }, null, 8, ["modelValue"]),
388
- createVNode(unref(Space), { size: "small" }, {
389
- default: withCtx(() => [
390
- createVNode(unref(Button), {
391
- disabled: addConfirmDisabled.value,
392
- onClick: confirmAddCustom
393
- }, {
394
- default: withCtx(() => [
395
- createTextVNode(toDisplayString(unref(t)("addConfirmText")), 1)
396
- ]),
397
- _: 1
398
- }, 8, ["disabled"]),
399
- createVNode(unref(Button), {
400
- variant: "outline",
401
- onClick: cancelAddCustom
402
- }, {
403
- default: withCtx(() => [
404
- createTextVNode(toDisplayString(unref(t)("addCancelText")), 1)
405
- ]),
406
- _: 1
407
- })
408
- ]),
409
- _: 1
410
- })
411
- ])) : (openBlock(), createBlock(unref(Button), {
412
- key: 1,
413
- class: "qd-popup-table-select__table-add",
414
- block: "",
415
- theme: "primary",
416
- variant: "dashed",
417
- onClick: _cache[2] || (_cache[2] = ($event) => addCustom.visible = true)
418
- }, {
419
- icon: withCtx(() => [
420
- createVNode(unref(AddIcon))
421
- ]),
422
- default: withCtx(() => [
423
- createTextVNode(" " + toDisplayString(unref(t)("addText")), 1)
424
- ]),
425
- _: 1
426
- }))
427
- ]),
428
- key: "0"
429
- } : void 0,
430
- renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "search"), (item) => {
431
- return {
432
- name: item.filterName,
433
- fn: withCtx((slotProps) => [
434
- renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
435
- ])
436
- };
437
- }),
438
- renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "table"), (item) => {
439
- return {
440
- name: item.filterName,
441
- fn: withCtx((slotProps) => [
442
- renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
443
- ])
444
- };
445
- })
446
- ]), 1040, ["search-data", "data", "selected-row-keys", "active-row-keys", "column-controller-visible", "display-columns", "expanded-rowKeys", "filter-value", "sort", "expanded-tree-nodes"])
447
- ]),
448
- default: withCtx(() => [
449
- createVNode(unref(Select), mergeProps({
450
- modelValue: unref(modelValue),
451
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
452
- options: selectedRows.value,
453
- "popup-visible": false
454
- }, reProps.value.selectOptions, { onClear: handleClear }), {
455
- suffixIcon: withCtx(() => [
456
- createVNode(unref(SearchIcon))
457
- ]),
458
- _: 1
459
- }, 16, ["modelValue", "options"])
460
- ]),
551
+ content: withCtx(() => [createVNode(unref(QdCrudTable), mergeProps({
552
+ class: "qd-popup-table-select__table",
553
+ "search-data": unref(searchData),
554
+ "onUpdate:searchData": _cache[2] || (_cache[2] = ($event) => isRef(searchData) ? searchData.value = $event : null),
555
+ data: unref(data),
556
+ "onUpdate:data": _cache[3] || (_cache[3] = ($event) => isRef(data) ? data.value = $event : null),
557
+ "selected-row-keys": selectedRowKeys.value,
558
+ "onUpdate:selectedRowKeys": _cache[4] || (_cache[4] = ($event) => selectedRowKeys.value = $event),
559
+ "active-row-keys": selectedRowKeys.value,
560
+ "onUpdate:activeRowKeys": _cache[5] || (_cache[5] = ($event) => selectedRowKeys.value = $event),
561
+ "column-controller-visible": unref(columnControllerVisible),
562
+ "onUpdate:columnControllerVisible": _cache[6] || (_cache[6] = ($event) => isRef(columnControllerVisible) ? columnControllerVisible.value = $event : null),
563
+ "display-columns": unref(displayColumns),
564
+ "onUpdate:displayColumns": _cache[7] || (_cache[7] = ($event) => isRef(displayColumns) ? displayColumns.value = $event : null),
565
+ "expanded-rowKeys": unref(expandedRowKeys),
566
+ "onUpdate:expandedRowKeys": _cache[8] || (_cache[8] = ($event) => isRef(expandedRowKeys) ? expandedRowKeys.value = $event : null),
567
+ "filter-value": unref(filterValue),
568
+ "onUpdate:filterValue": _cache[9] || (_cache[9] = ($event) => isRef(filterValue) ? filterValue.value = $event : null),
569
+ sort: unref(sort),
570
+ "onUpdate:sort": _cache[10] || (_cache[10] = ($event) => isRef(sort) ? sort.value = $event : null),
571
+ "expanded-tree-nodes": unref(expandedTreeNodes),
572
+ "onUpdate:expandedTreeNodes": _cache[11] || (_cache[11] = ($event) => isRef(expandedTreeNodes) ? expandedTreeNodes.value = $event : null),
573
+ "reserve-selected-row-on-paginate": "",
574
+ "active-row-type": "multiple"
575
+ }, reProps.value.tableOptions, {
576
+ onSelectChange: handleSelectChange
577
+ }), createSlots({
578
+ _: 2
579
+ }, [reProps.value.creatable ? {
580
+ name: "table-bottom-content",
581
+ fn: withCtx(() => [addCustom.visible ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "add-input", {
582
+ addCustom
583
+ }, () => [createVNode(unref(Input), mergeProps({
584
+ modelValue: addCustom.value,
585
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => addCustom.value = $event)
586
+ }, reProps.value.addInputOptions), null, 16, ["modelValue"])], true), createVNode(unref(Space), {
587
+ size: "small"
588
+ }, {
589
+ default: withCtx(() => [renderSlot(_ctx.$slots, "add-confirm-btn", {
590
+ addCustom
591
+ }, () => [createVNode(unref(Button), normalizeProps(guardReactiveProps(reProps.value.addConfirmBtnOptions)), null, 16)], true), renderSlot(_ctx.$slots, "add-cancel-btn", {
592
+ addCustom
593
+ }, () => [createVNode(unref(Button), normalizeProps(guardReactiveProps(reProps.value.addCancelBtnOptions)), null, 16)], true)]),
594
+ _: 3
595
+ })])) : renderSlot(_ctx.$slots, "add-btn", {
596
+ key: 1,
597
+ addCustom
598
+ }, () => [createVNode(unref(Button), mergeProps({
599
+ class: "qd-popup-table-select__table-add"
600
+ }, reProps.value.addBtnOptions), null, 16)], true)]),
601
+ key: "0"
602
+ } : void 0, renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "search"), (item) => {
603
+ return {
604
+ name: item.filterName,
605
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
606
+ };
607
+ }), renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "table"), (item) => {
608
+ return {
609
+ name: item.filterName,
610
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, mergeProps({
611
+ addCustom
612
+ }, slotProps), void 0, true)])
613
+ };
614
+ })]), 1040, ["search-data", "data", "selected-row-keys", "active-row-keys", "column-controller-visible", "display-columns", "expanded-rowKeys", "filter-value", "sort", "expanded-tree-nodes"])]),
615
+ default: withCtx(() => [createVNode(unref(Select), mergeProps({
616
+ modelValue: unref(modelValue),
617
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
618
+ options: selectedRows.value,
619
+ "popup-visible": false
620
+ }, reProps.value.selectOptions, {
621
+ onClear: handleClear
622
+ }), {
623
+ suffixIcon: withCtx(() => [createVNode(unref(SearchIcon))]),
624
+ _: 1
625
+ }, 16, ["modelValue", "options"])]),
461
626
  _: 3
462
627
  }, 16, ["modelValue"]);
463
628
  };