@blueking/ai-ui-sdk 0.1.19-beta.9 → 0.1.19

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 (130) hide show
  1. package/dist/common/util.d.ts +24 -0
  2. package/dist/common/util.ts.js +41 -0
  3. package/dist/components/render-auth/auth-dialog.script.vue.js.js +27 -26
  4. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  5. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  6. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  7. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  8. package/dist/components/render-checkbox/index.vue.css +9 -9
  9. package/dist/components/render-checkbox/index.vue.js +1 -1
  10. package/dist/components/render-choose-tag/index.script.vue.js.js +123 -91
  11. package/dist/components/render-choose-tag/index.vue.css +7 -7
  12. package/dist/components/render-choose-tag/index.vue.d.ts +1 -0
  13. package/dist/components/render-choose-tag/index.vue.js +1 -1
  14. package/dist/components/render-collapse/index.vue.css +2 -2
  15. package/dist/components/render-collapse/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
  17. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  18. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  19. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  20. package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +36 -1
  21. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  22. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  23. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +174 -0
  24. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  25. package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +5 -1
  26. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
  27. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  28. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  29. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +34 -42
  30. package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +24 -6
  31. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  32. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  33. package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +21 -29
  34. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  35. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  36. package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +4 -1
  37. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  38. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  39. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  40. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  41. package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +6 -1
  42. package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
  43. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  44. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  45. package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +21 -31
  46. package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +1 -0
  47. package/dist/components/render-dataset-detail/components/header.script.vue.js.js +1 -1
  48. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +245 -388
  49. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
  50. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +7 -6
  51. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  52. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  53. package/dist/components/render-dataset-list/components/header.script.vue.js.js +2 -2
  54. package/dist/components/render-dataset-list/components/main.script.vue.js.js +11 -7
  55. package/dist/components/render-dataset-list/components/main.vue.css +4 -4
  56. package/dist/components/render-dataset-list/components/main.vue.d.ts +1 -0
  57. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  58. package/dist/components/render-dataset-list/components/table.script.vue.js +408 -0
  59. package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
  60. package/dist/components/render-dataset-list/components/table.vue.js +1 -1
  61. package/dist/components/render-dataset-list/index.script.vue.js.js +7 -2
  62. package/dist/components/render-dataset-list/index.vue.css +4 -1
  63. package/dist/components/render-dataset-list/index.vue.d.ts +1 -0
  64. package/dist/components/render-dataset-list/index.vue.js +1 -1
  65. package/dist/components/render-file-card/index.script.vue.js.js +5 -15
  66. package/dist/components/render-file-card/index.vue.css +11 -11
  67. package/dist/components/render-file-card/index.vue.js +1 -1
  68. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  69. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  70. package/dist/components/render-header/index.script.vue.js.js +10 -2
  71. package/dist/components/render-header/index.vue.css +3 -3
  72. package/dist/components/render-header/index.vue.d.ts +1 -1
  73. package/dist/components/render-header/index.vue.js +1 -1
  74. package/dist/components/render-like/index.script.vue.js.js +3 -3
  75. package/dist/components/render-like/index.vue.css +14 -13
  76. package/dist/components/render-like/index.vue.js +1 -1
  77. package/dist/components/render-router-tab/index.vue.css +4 -4
  78. package/dist/components/render-router-tab/index.vue.js +1 -1
  79. package/dist/components/render-search-empty/index.script.vue.js.js +61 -0
  80. package/dist/components/render-search-empty/index.vue.d.ts +20 -0
  81. package/dist/components/render-search-empty/index.vue.js +3 -0
  82. package/dist/components/render-t-table/index.script.vue.js +317 -0
  83. package/dist/components/render-t-table/index.vue.css +196 -0
  84. package/dist/components/render-t-table/index.vue.d.ts +58 -0
  85. package/dist/components/render-t-table/index.vue.js +5 -0
  86. package/dist/components/render-tag-tree/index.script.vue.js.js +101 -24
  87. package/dist/components/render-tag-tree/index.vue.css +7 -7
  88. package/dist/components/render-tag-tree/index.vue.d.ts +2 -1
  89. package/dist/components/render-tag-tree/index.vue.js +1 -1
  90. package/dist/components/render-tree/index.script.vue.js +17 -8
  91. package/dist/components/render-tree/index.vue.d.ts +4 -1
  92. package/dist/components.d.ts +3 -1
  93. package/dist/components.ts.js +3 -1
  94. package/dist/css/fonts/iconcool.eot +0 -0
  95. package/dist/css/fonts/iconcool.svg +3 -0
  96. package/dist/css/fonts/iconcool.ttf +0 -0
  97. package/dist/css/fonts/iconcool.woff +0 -0
  98. package/dist/css/iconcool.js +1 -1
  99. package/dist/css/style.css +3 -0
  100. package/dist/css/tailwind.css +88 -10
  101. package/dist/hooks/use-chat.d.ts +12 -4
  102. package/dist/hooks/use-common-http.d.ts +5 -2
  103. package/dist/hooks/use-common-http.ts.js +7 -5
  104. package/dist/hooks/use-dataset-http.d.ts +2 -2
  105. package/dist/hooks/use-dataset-http.ts.js +6 -4
  106. package/dist/hooks/use-ellipsis-tooltip.d.ts +4 -0
  107. package/dist/hooks/use-ellipsis-tooltip.ts.js +87 -0
  108. package/dist/hooks/use-member-http.d.ts +8 -0
  109. package/dist/hooks/use-member-http.ts.js +30 -0
  110. package/dist/hooks/use-meta-http.d.ts +3 -3
  111. package/dist/hooks/use-meta-http.ts.js +9 -5
  112. package/dist/hooks/use-t-table.d.ts +39 -0
  113. package/dist/hooks/use-t-table.ts.js +82 -0
  114. package/dist/hooks.d.ts +3 -0
  115. package/dist/hooks.ts.js +3 -0
  116. package/dist/http/fetch/index.ts.js +3 -2
  117. package/dist/http/helper/common.ts.js +4 -4
  118. package/dist/http/helper/dataset.ts.js +4 -2
  119. package/dist/http/helper/knowledge.ts.js +9 -3
  120. package/dist/http/helper/tool.ts.js +5 -4
  121. package/dist/images/market.png +0 -0
  122. package/dist/types/common.d.ts +23 -0
  123. package/dist/types/dataset.d.ts +2 -0
  124. package/dist/types/knowledge.d.ts +6 -0
  125. package/dist/types/tool.d.ts +3 -3
  126. package/dist/util.d.ts +1 -0
  127. package/dist/util.ts.js +1 -0
  128. package/package.json +11 -2
  129. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
  130. package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -592
@@ -0,0 +1,317 @@
1
+ import { defineComponent as _defineComponent, Fragment as _Fragment, createVNode as _createVNode2, createTextVNode as _createTextVNode2 } from 'vue';
2
+ import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, renderSlot as _renderSlot, mergeProps as _mergeProps, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "t-table-row-height"
5
+ };
6
+ import { ref, watch } from 'vue';
7
+ import RenderSearchEmpty from '../render-search-empty/index.vue.js';
8
+ export default /*@__PURE__*/ _defineComponent({
9
+ props: {
10
+ columns: {},
11
+ isLoading: {
12
+ type: Boolean
13
+ },
14
+ tableData: {},
15
+ pagination: {},
16
+ layout: {
17
+ default: (props)=>props.pagination ? [
18
+ 'total',
19
+ 'limit',
20
+ 'list'
21
+ ] : []
22
+ },
23
+ containerHeight: {},
24
+ search: {},
25
+ rowClassName: {},
26
+ rowKey: {},
27
+ height: {}
28
+ },
29
+ emits: [
30
+ "sort-change",
31
+ "page-change",
32
+ "page-size-change",
33
+ "row-mouseleave",
34
+ "select-change",
35
+ "row-click",
36
+ "row-mouseenter",
37
+ "update:search"
38
+ ],
39
+ setup (__props, { emit: __emit }) {
40
+ const props = __props;
41
+ const emits = __emit;
42
+ const rowHeight = ref();
43
+ const columnControllerVisible = ref(false);
44
+ const getMaxHeight = ()=>{
45
+ return props.pagination ? 'calc(100% - 48px)' : '100%';
46
+ };
47
+ const getDefaultColumns = ()=>{
48
+ // 只要有一项配置了 defaultShow 则需要列配置按钮
49
+ const isSetting = props.columns.some((column)=>column.defaultShow);
50
+ if (isSetting) {
51
+ return props.columns.filter((column)=>column.defaultShow).map((item)=>item.colKey);
52
+ }
53
+ return props.columns.map((column)=>column.colKey);
54
+ };
55
+ const displayColumns = ref(getDefaultColumns());
56
+ const getRowClassName = ({ row, rowIndex })=>{
57
+ if (!row || rowIndex === undefined) {
58
+ return;
59
+ }
60
+ const customRowClass = typeof props.rowClassName === 'function' ? props.rowClassName(row, rowIndex) : props.rowClassName;
61
+ const classList = [];
62
+ if (typeof customRowClass === 'string') {
63
+ classList.push(...customRowClass.split(/\s+/).filter(Boolean));
64
+ } else if (Array.isArray(customRowClass)) {
65
+ classList.push(...customRowClass.filter((c)=>typeof c === 'string' && c));
66
+ } else if (customRowClass && typeof customRowClass === 'object') {
67
+ classList.push(...Object.keys(customRowClass).filter((key)=>customRowClass[key]));
68
+ }
69
+ const heightClass = classList.findLast((item)=>item.includes('g-height'));
70
+ if (heightClass && !rowHeight.value) {
71
+ rowHeight.value = heightClass;
72
+ }
73
+ const classNames = classList.filter((item)=>!item.includes('g-height'));
74
+ return [
75
+ ...new Set([
76
+ ...classNames,
77
+ rowHeight.value
78
+ ])
79
+ ].join(' ');
80
+ };
81
+ const getSettingColumns = ()=>{
82
+ if (getDefaultColumns().length === props.columns.length) {
83
+ return props.columns;
84
+ }
85
+ const columns = [
86
+ ...props.columns
87
+ ];
88
+ const lastColKey = displayColumns.value[displayColumns.value.length - 1];
89
+ const lastIndex = columns.findIndex((col)=>col.colKey === lastColKey);
90
+ if (lastIndex === -1) return columns;
91
+ const lastColumn = columns[lastIndex];
92
+ const newColumn = Object.assign(Object.assign({
93
+ minWidth: '120'
94
+ }, lastColumn), {
95
+ title: (...args)=>{
96
+ let originalContent;
97
+ if (typeof lastColumn.title === 'function') {
98
+ originalContent = lastColumn.title(...args);
99
+ } else {
100
+ originalContent = lastColumn.title || '--';
101
+ }
102
+ return _createVNode2(_Fragment, null, [
103
+ _createVNode2("span", null, [
104
+ originalContent
105
+ ]),
106
+ _createVNode2("i", {
107
+ "class": 'bkaidev-icon bkaidev-shezhi g-text-14 g-text-light-gray g-hover-text-blue g-ml-4 g-cursor-pointer',
108
+ "onClick": ()=>showSetting()
109
+ }, null)
110
+ ]);
111
+ }
112
+ });
113
+ columns[lastIndex] = newColumn;
114
+ return columns;
115
+ };
116
+ const handleColumnChange = (columns)=>{
117
+ const colKeyColumns = props.columns.filter((column)=>column.colKey);
118
+ if (!columns.length) {
119
+ return displayColumns.value = colKeyColumns.map((column)=>column.colKey);
120
+ }
121
+ // 根据 columns 重新定义 展示列顺序
122
+ displayColumns.value = colKeyColumns.filter((column)=>columns.includes(column.colKey)).map((item)=>item.colKey);
123
+ };
124
+ const showSetting = ()=>{
125
+ columnControllerVisible.value = true;
126
+ };
127
+ const getColumnControllerConfig = ()=>({
128
+ // 隐藏组件内部的 列配置按钮
129
+ hideTriggerButton: true,
130
+ // 允许哪些列参与显示-隐藏控制
131
+ fields: props.columns.map((item)=>item.colKey),
132
+ // 透传弹框组件全部属性
133
+ dialogProps: {
134
+ preventScrollThrough: true,
135
+ dialogClassName: 't-table-dialog',
136
+ showOverlay: true,
137
+ header: ()=>_createVNode2("span", {
138
+ "class": "t-table-dialog-header"
139
+ }, [
140
+ _createTextVNode2("\u8868\u683C\u8BBE\u7F6E")
141
+ ])
142
+ }
143
+ });
144
+ const handleSelectChange = (keys, { selectedRowData })=>{
145
+ emits('select-change', keys, selectedRowData);
146
+ };
147
+ const handlePageChange = (page)=>{
148
+ emits('page-change', page);
149
+ };
150
+ const handlePageSizeChange = (pageSize)=>{
151
+ emits('page-size-change', pageSize);
152
+ };
153
+ const handleSortChange = (config, { col })=>{
154
+ emits('sort-change', config, {
155
+ col
156
+ });
157
+ };
158
+ const handleRowClick = ({ row })=>{
159
+ emits('row-click', row);
160
+ };
161
+ const handleRowMouseenter = ({ row })=>{
162
+ emits('row-mouseenter', row);
163
+ };
164
+ const handleRowMouseleave = ()=>{
165
+ emits('row-mouseleave');
166
+ };
167
+ const handleUpdateSearch = (search)=>{
168
+ emits('update:search', search);
169
+ };
170
+ watch(()=>props.columns.map((col)=>col.colKey), (newColKeys, oldColKeys)=>{
171
+ if (newColKeys.some((colKey, index)=>colKey !== oldColKeys[index])) {
172
+ displayColumns.value = getDefaultColumns();
173
+ }
174
+ });
175
+ return (_ctx, _cache)=>{
176
+ var _a;
177
+ const _component_bk_radio_button = _resolveComponent("bk-radio-button");
178
+ const _component_bk_radio_group = _resolveComponent("bk-radio-group");
179
+ const _component_bk_loading = _resolveComponent("bk-loading");
180
+ const _component_t_enhanced_table = _resolveComponent("t-enhanced-table");
181
+ const _component_bk_pagination = _resolveComponent("bk-pagination");
182
+ return _openBlock(), _createElementBlock("section", {
183
+ style: _normalizeStyle({
184
+ height: _ctx.height
185
+ })
186
+ }, [
187
+ _createVNode(_component_t_enhanced_table, _mergeProps(_ctx.$attrs, {
188
+ "column-controller-visible": columnControllerVisible.value,
189
+ "onUpdate:columnControllerVisible": _cache[1] || (_cache[1] = ($event)=>columnControllerVisible.value = $event),
190
+ "cell-empty-content": "--",
191
+ "max-height": getMaxHeight(),
192
+ loading: _ctx.isLoading,
193
+ "row-key": _ctx.rowKey,
194
+ "header-affixed-top": !!((_a = _ctx.tableData) === null || _a === void 0 ? void 0 : _a.length),
195
+ "display-columns": displayColumns.value,
196
+ "column-controller": getColumnControllerConfig(),
197
+ class: `t-t-table ${_ctx.$attrs.class}`,
198
+ data: _ctx.tableData,
199
+ columns: getSettingColumns(),
200
+ "row-class-name": getRowClassName,
201
+ "expand-icon": false,
202
+ onSortChange: handleSortChange,
203
+ onDisplayColumnsChange: handleColumnChange,
204
+ onSelectChange: handleSelectChange,
205
+ onRowClick: handleRowClick,
206
+ onRowMouseenter: handleRowMouseenter,
207
+ onRowMouseleave: handleRowMouseleave
208
+ }), {
209
+ columnControllerBottomContent: _withCtx(()=>[
210
+ _createElementVNode("section", _hoisted_1, [
211
+ _cache[5] || (_cache[5] = _createTextVNode(" 表格行高: ")),
212
+ _createVNode(_component_bk_radio_group, {
213
+ modelValue: rowHeight.value,
214
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>rowHeight.value = $event)
215
+ }, {
216
+ default: _withCtx(()=>[
217
+ _createVNode(_component_bk_radio_button, {
218
+ label: "g-height-42"
219
+ }, {
220
+ default: _withCtx(()=>_cache[2] || (_cache[2] = [
221
+ _createTextVNode(" 小 ")
222
+ ])),
223
+ _: 1 /* STABLE */ ,
224
+ __: [
225
+ 2
226
+ ]
227
+ }),
228
+ _createVNode(_component_bk_radio_button, {
229
+ label: "g-height-60"
230
+ }, {
231
+ default: _withCtx(()=>_cache[3] || (_cache[3] = [
232
+ _createTextVNode(" 中 ")
233
+ ])),
234
+ _: 1 /* STABLE */ ,
235
+ __: [
236
+ 3
237
+ ]
238
+ }),
239
+ _createVNode(_component_bk_radio_button, {
240
+ label: "g-height-78"
241
+ }, {
242
+ default: _withCtx(()=>_cache[4] || (_cache[4] = [
243
+ _createTextVNode(" 大 ")
244
+ ])),
245
+ _: 1 /* STABLE */ ,
246
+ __: [
247
+ 4
248
+ ]
249
+ })
250
+ ]),
251
+ _: 1 /* STABLE */
252
+ }, 8 /* PROPS */ , [
253
+ "modelValue"
254
+ ])
255
+ ])
256
+ ]),
257
+ empty: _withCtx(()=>[
258
+ _createVNode(RenderSearchEmpty, {
259
+ scene: "part",
260
+ search: _ctx.search,
261
+ "onUpdate:search": handleUpdateSearch
262
+ }, null, 8 /* PROPS */ , [
263
+ "search"
264
+ ])
265
+ ]),
266
+ expandedRow: _withCtx(({ row })=>[
267
+ _renderSlot(_ctx.$slots, "expandedRow", {
268
+ row: row
269
+ }, undefined, true)
270
+ ]),
271
+ sortIcon: _withCtx(()=>_cache[6] || (_cache[6] = [
272
+ _createElementVNode("i", {
273
+ class: "bkaidev-icon bkaidev-angle-up-fill-3 g-text-light-gray"
274
+ }, null, -1 /* HOISTED */ )
275
+ ])),
276
+ loading: _withCtx(()=>[
277
+ _createVNode(_component_bk_loading, {
278
+ loading: true
279
+ })
280
+ ]),
281
+ _: 3 /* FORWARDED */
282
+ }, 16 /* FULL_PROPS */ , [
283
+ "column-controller-visible",
284
+ "max-height",
285
+ "loading",
286
+ "row-key",
287
+ "header-affixed-top",
288
+ "display-columns",
289
+ "column-controller",
290
+ "class",
291
+ "data",
292
+ "columns"
293
+ ]),
294
+ _ctx.pagination ? (_openBlock(), _createBlock(_component_bk_pagination, {
295
+ key: 0,
296
+ size: "small",
297
+ class: _normalizeClass({
298
+ 't-t-pagination': true,
299
+ 'pagination-loading': _ctx.isLoading
300
+ }),
301
+ "model-value": _ctx.pagination.current,
302
+ count: _ctx.pagination.count,
303
+ limit: _ctx.pagination.limit,
304
+ layout: _ctx.layout,
305
+ onChange: handlePageChange,
306
+ onLimitChange: handlePageSizeChange
307
+ }, null, 8 /* PROPS */ , [
308
+ "class",
309
+ "model-value",
310
+ "count",
311
+ "limit",
312
+ "layout"
313
+ ])) : _createCommentVNode("v-if", true)
314
+ ], 4 /* STYLE */ );
315
+ };
316
+ }
317
+ });
@@ -0,0 +1,196 @@
1
+
2
+ .t-t-pagination[data-v-dswtt8f9] {
3
+ position: relative;
4
+ padding: 16px 16px 0 16px;
5
+ }
6
+ .t-t-pagination[data-v-dswtt8f9] .bk-pagination-list.is-last {
7
+ margin-left: auto;
8
+ }
9
+ .pagination-loading[data-v-dswtt8f9]::after {
10
+ content: '';
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ width: 100%;
15
+ height: 100%;
16
+ background-color: rgba(255, 255, 255, 0.6);
17
+ z-index: 72;
18
+ }
19
+ .t-t-table[data-v-dswtt8f9] {
20
+ display: inline;
21
+ font-size: 12px;
22
+ }
23
+ .t-t-table[data-v-dswtt8f9] .t-table__th-cell-inner {
24
+ color: #313238;
25
+ }
26
+ .t-t-table[data-v-dswtt8f9] th {
27
+ padding: 0 16px;
28
+ height: 42px;
29
+ background-color: #FAFBFD !important;
30
+ }
31
+ .t-t-table[data-v-dswtt8f9] .t-table__body tr {
32
+ color: #63656e;
33
+ font-size: 12px;
34
+ }
35
+ .t-t-table[data-v-dswtt8f9] .t-table__body tr td {
36
+ padding: 0 16px;
37
+ height: 40px;
38
+ background-color: #fff;
39
+ }
40
+ .t-t-table[data-v-dswtt8f9] .t-table__body tr:hover td {
41
+ background-color: #f5f7fa !important;
42
+ color: #63656E;
43
+ }
44
+ .t-t-table[data-v-dswtt8f9] .t-table__content .t-table__body .t-table__empty-row {
45
+ background-color: #fff !important;
46
+ }
47
+ .t-t-table[data-v-dswtt8f9] .t-table__content .t-table__body .t-table__empty-row >td {
48
+ border: none;
49
+ }
50
+ .t-t-table[data-v-dswtt8f9] th .t-table__ellipsis {
51
+ width: auto !important;
52
+ }
53
+ .t-t-table[data-v-dswtt8f9] .t-loading__gradient.t-icon-loading {
54
+ display: none;
55
+ }
56
+ .t-t-table[data-v-dswtt8f9]:first-of-type .t-table__affixed-header-elm-wrap{
57
+ width: calc(100% - 6px) !important;
58
+ }
59
+ .t-t-table[data-v-dswtt8f9] .t-table__affixed-header-elm-wrap>div {
60
+ width: 100% !important;
61
+ scrollbar-width: none;
62
+ }
63
+ .t-t-table[data-v-dswtt8f9] .t-table--layout-fixed{
64
+ width: 100% !important;
65
+ }
66
+ .t-t-table[data-v-dswtt8f9] .bk-exception-description{
67
+ margin-bottom: 0;
68
+ }
69
+ .t-t-table[data-v-dswtt8f9] .t-table__content{
70
+ z-index: 2;
71
+ max-height: 100%;
72
+ overflow: auto;
73
+ }
74
+ .t-t-table[data-v-dswtt8f9] .t-table__content::-webkit-scrollbar {
75
+ width: 6px;
76
+ height: 6px;
77
+ }
78
+ .t-t-table[data-v-dswtt8f9] .t-table__content::-webkit-scrollbar-thumb {
79
+ width: 6px;
80
+ height: 6px;
81
+ border-radius: 3px;
82
+ background-color: #dcdee5;
83
+ }
84
+ .t-t-table[data-v-dswtt8f9] .t-table__content::-webkit-scrollbar-thumb:hover {
85
+ background-color: #979ba5;
86
+ }
87
+ .t-t-table[data-v-dswtt8f9] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
88
+ line-height: 100%;
89
+ }
90
+ .t-t-table[data-v-dswtt8f9] .t-table__cell--sort-trigger.t-table__double-icons{
91
+ gap: 5px;
92
+ }
93
+ .t-t-table[data-v-dswtt8f9] .t-table__sort-icon--active>i{
94
+ color: #3a84ff !important;
95
+ }
96
+ .t-t-table[data-v-dswtt8f9] .t-table__cell--fixed-left:has(.checkbox){
97
+ line-height: 100%;
98
+ }
99
+
100
+
101
+ .t-table-dialog {
102
+ padding: 0px !important;
103
+ border-radius: 0px;
104
+ box-shadow: 0 0 6px #dcdee5;
105
+ color: #26323d;
106
+ }
107
+ .t-table-dialog .t-table-dialog-header {
108
+ margin: 24px;
109
+ font-weight: 400;
110
+ display: inline-block;
111
+ height: 26px;
112
+ font-size: 20px;
113
+ line-height: 26px;
114
+ color: #313238;
115
+ }
116
+ .t-table-dialog .t-dialog__close {
117
+ width: 30px;
118
+ height: 30px;
119
+ position: absolute;
120
+ top: 2px;
121
+ right: 9px;
122
+ }
123
+ .t-table-dialog .t-checkbox__label {
124
+ display: flex;
125
+ align-items: center;
126
+ color: #63656e;
127
+ }
128
+ .t-table-dialog .t-table__column-controller-block {
129
+ justify-content: end;
130
+ display: flex;
131
+ border: none !important;
132
+ padding: 0 !important;
133
+ }
134
+ .t-table-dialog .t-table__column-controller-desc {
135
+ font-size: 14px;
136
+ line-height: 22px;
137
+ color: #313238;
138
+ text-align: left;
139
+ position: absolute;
140
+ top: 74px;
141
+ left: 24px;
142
+ font-weight: 400;
143
+ }
144
+ .t-table-dialog .t-table__column-controller-body {
145
+ padding: 0 24px;
146
+ }
147
+ .t-table-dialog .t-table-row-height {
148
+ display: flex;
149
+ height: 76px;
150
+ font-size: 14px;
151
+ border-top: solid 1px #f0f1f5;
152
+ align-items: center;
153
+ color: #26323d;
154
+ }
155
+ .t-table-dialog .t-table-row-height .bk-radio-button {
156
+ width: 68px;
157
+ height: 26px;
158
+ }
159
+ .t-table-dialog .t-table-row-height .bk-radio-button .bk-radio-button-label {
160
+ line-height: 26px;
161
+ height: 100%;
162
+ }
163
+ .t-table-dialog .t-dialog__footer {
164
+ display: flex;
165
+ height: 50px;
166
+ padding: 0 24px;
167
+ border-top: 1px solid #dcdee5;
168
+ border-radius: 0 0 2px 2px;
169
+ justify-content: flex-end;
170
+ align-items: center;
171
+ }
172
+ .t-table-dialog .t-dialog__footer .t-button--theme-primary {
173
+ background-color: #3a84ff;
174
+ border: none;
175
+ }
176
+ .t-table-dialog .t-dialog__footer .t-button--theme-default {
177
+ background-color: #fff;
178
+ color: #63656e;
179
+ border: 1px solid #c4c6cc;
180
+ }
181
+ .t-table-dialog .t-dialog__body {
182
+ padding: 0;
183
+ }
184
+ .t-table-dialog .t-table__column-controller-item {
185
+ display: flex;
186
+ flex-direction: column;
187
+ gap: 16px;
188
+ }
189
+ .t-table-dialog .t-checkbox.t-is-checked .t-checkbox__input {
190
+ background: #3a84ff;
191
+ border: 1px solid hsl(223, 7%, 62%);
192
+ }
193
+ .t-table-dialog .t-checkbox.t-is-indeterminate .t-checkbox__input {
194
+ background: #3a84ff;
195
+ border: 1px solid #979ba5;
196
+ }
@@ -0,0 +1,58 @@
1
+ import type { IPagination, ITTableCol } from '@/types/common';
2
+ declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<{
4
+ columns: Array<ITTableCol<T>>;
5
+ isLoading?: boolean;
6
+ tableData: T[];
7
+ pagination?: IPagination;
8
+ layout?: string[];
9
+ containerHeight?: string;
10
+ search?: S;
11
+ rowClassName?: string | string[] | Record<string, boolean> | ((row: T, index: number) => string | number | string[] | Record<string, boolean>);
12
+ rowKey: string;
13
+ height?: string;
14
+ } & {
15
+ "onUpdate:search"?: (search: S) => any;
16
+ "onRow-mouseleave"?: () => any;
17
+ "onSort-change"?: (config: {
18
+ descending: boolean;
19
+ }, val: {
20
+ col: {
21
+ sortKey: string;
22
+ };
23
+ }) => any;
24
+ "onSelect-change"?: (keys: string | number[], selectedRowData: T[]) => any;
25
+ "onPage-change"?: (val: number) => any;
26
+ "onPage-size-change"?: (val: number) => any;
27
+ "onRow-click"?: (row: T) => any;
28
+ "onRow-mouseenter"?: (row: T) => any;
29
+ }> & import("vue").PublicProps;
30
+ expose: (exposed: {}) => void;
31
+ attrs: any;
32
+ slots: {
33
+ expandedRow?: (props: {
34
+ row: T;
35
+ }) => any;
36
+ };
37
+ emit: {
38
+ (event: "sort-change", config: {
39
+ descending: boolean;
40
+ }, val: {
41
+ col: {
42
+ sortKey: string;
43
+ };
44
+ }): void;
45
+ (event: "page-change" | "page-size-change", val: number): void;
46
+ (event: "row-mouseleave"): void;
47
+ (event: "select-change", keys: string | number[], selectedRowData: T[]): void;
48
+ (event: "row-click" | "row-mouseenter", row: T): void;
49
+ (event: "update:search", search: S): void;
50
+ };
51
+ }>) => import("vue").VNode & {
52
+ __ctx?: Awaited<typeof __VLS_setup>;
53
+ };
54
+ declare const _default: typeof __VLS_export;
55
+ export default _default;
56
+ type __VLS_PrettifyLocal<T> = {
57
+ [K in keyof T as K]: T[K];
58
+ } & {};
@@ -0,0 +1,5 @@
1
+ import script from './index.script.vue.js';
2
+ script.__scopeId = "data-v-dswtt8f9";
3
+ script.__file = "./src/components/render-t-table/index.vue";
4
+ import './index.vue.css';
5
+ export default script;