@blueking/ai-ui-sdk 0.1.19-beta.4 → 0.1.19-beta.40

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