@blueking/ai-ui-sdk 0.1.19-beta.1 → 0.1.19-beta.10

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 (155) hide show
  1. package/dist/components/render-auth/auth-dialog.vue.d.ts +2 -1
  2. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  3. package/dist/components/render-auto-height-textarea/index.vue.d.ts +2 -1
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-auto-refresh/index.vue.css +9 -8
  6. package/dist/components/render-auto-refresh/index.vue.d.ts +2 -1
  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.d.ts +2 -1
  10. package/dist/components/render-checkbox/index.vue.js +1 -1
  11. package/dist/components/render-choose-tag/index.script.vue.js.js +15 -4
  12. package/dist/components/render-choose-tag/index.vue.css +7 -7
  13. package/dist/components/render-choose-tag/index.vue.d.ts +5 -1
  14. package/dist/components/render-choose-tag/index.vue.js +1 -1
  15. package/dist/components/render-collapse/index.vue.css +2 -2
  16. package/dist/components/render-collapse/index.vue.d.ts +3 -2
  17. package/dist/components/render-collapse/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +2 -1
  19. package/dist/components/render-dataset/components/dataset-data-level/index.vue.d.ts +2 -1
  20. package/dist/components/render-dataset/components/dataset-data-status/index.vue.d.ts +2 -1
  21. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  22. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.vue.d.ts +2 -1
  23. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  24. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +2 -1
  25. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  26. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  27. package/dist/components/render-dataset/components/operation-record/index.vue.d.ts +2 -1
  28. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  29. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  30. package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +2 -1
  31. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  32. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  33. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.d.ts +2 -1
  34. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  35. package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +2 -1
  36. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +5 -2
  37. package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +4 -2
  38. package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +2 -2
  39. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  40. package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +4 -3
  41. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  42. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  43. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.d.ts +2 -1
  44. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  45. package/dist/components/render-dataset/components/plus-dataset-data/form/category.vue.d.ts +2 -1
  46. package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +4 -2
  47. package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +4 -2
  48. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  49. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.d.ts +2 -1
  50. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  51. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  52. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +2 -1
  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/form/manual.vue.d.ts +4 -2
  55. package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +2 -2
  56. package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +4 -3
  57. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  58. package/dist/components/render-dataset/components/review-dataset-data/index.vue.d.ts +2 -1
  59. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  60. package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +2 -1
  61. package/dist/components/render-dataset/components/search-dataset-data/index.vue.d.ts +2 -1
  62. package/dist/components/render-dataset/components/search-operation-record/index.vue.d.ts +2 -1
  63. package/dist/components/render-dataset/components/source-type-icon/index.vue.d.ts +2 -1
  64. package/dist/components/render-dataset/index.script.vue.js +5 -0
  65. package/dist/components/render-dataset/index.vue.d.ts +2 -6
  66. package/dist/components/render-dataset/index.vue.js +2 -3
  67. package/dist/components/render-dataset-detail/components/header.script.vue.js.js +2 -4
  68. package/dist/components/render-dataset-detail/components/header.vue.d.ts +4 -2
  69. package/dist/components/render-dataset-detail/components/tab.vue.d.ts +2 -1
  70. package/dist/components/render-dataset-detail/index.vue.d.ts +2 -1
  71. package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +2 -1
  72. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +4 -2
  73. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +1 -1
  74. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  75. package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +2 -1
  76. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  77. package/dist/components/render-dataset-list/components/header.script.vue.js.js +60 -15
  78. package/dist/components/render-dataset-list/components/header.vue.d.ts +16 -1
  79. package/dist/components/render-dataset-list/components/main.script.vue.js.js +35 -9
  80. package/dist/components/render-dataset-list/components/main.vue.css +4 -4
  81. package/dist/components/render-dataset-list/components/main.vue.d.ts +15 -6
  82. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  83. package/dist/components/render-dataset-list/components/table.script.vue.js.js +46 -13
  84. package/dist/components/render-dataset-list/components/table.vue.d.ts +15 -3
  85. package/dist/components/render-dataset-list/index.script.vue.js.js +111 -17
  86. package/dist/components/render-dataset-list/index.vue.css +5 -0
  87. package/dist/components/render-dataset-list/index.vue.d.ts +2 -8
  88. package/dist/components/render-dataset-list/index.vue.js +2 -0
  89. package/dist/components/render-file-card/index.vue.css +11 -11
  90. package/dist/components/render-file-card/index.vue.d.ts +8 -7
  91. package/dist/components/render-file-card/index.vue.js +1 -1
  92. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  93. package/dist/components/render-file-type-icon/index.vue.d.ts +2 -1
  94. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  95. package/dist/components/render-header/index.script.vue.js.js +46 -54
  96. package/dist/components/render-header/index.vue.css +6 -27
  97. package/dist/components/render-header/index.vue.d.ts +19 -49
  98. package/dist/components/render-header/index.vue.js +1 -1
  99. package/dist/components/render-like/index.vue.css +5 -5
  100. package/dist/components/render-like/index.vue.d.ts +6 -5
  101. package/dist/components/render-like/index.vue.js +1 -1
  102. package/dist/components/render-router-tab/index.vue.css +3 -3
  103. package/dist/components/render-router-tab/index.vue.d.ts +2 -1
  104. package/dist/components/render-router-tab/index.vue.js +1 -1
  105. package/dist/components/render-search-select/index.vue.d.ts +8 -7
  106. package/dist/components/render-tag-tree/index.script.vue.js.js +143 -0
  107. package/dist/components/render-tag-tree/index.vue.css +30 -0
  108. package/dist/components/render-tag-tree/index.vue.d.ts +22 -0
  109. package/dist/components/render-tag-tree/index.vue.js +5 -0
  110. package/dist/components/render-tree/index.script.vue.js +162 -0
  111. package/dist/components/render-tree/index.vue.css +24 -0
  112. package/dist/components/render-tree/index.vue.d.ts +43 -0
  113. package/dist/components/render-tree/index.vue.js +4 -0
  114. package/dist/components.d.ts +3 -1
  115. package/dist/components.ts.js +3 -1
  116. package/dist/css/fonts/iconcool.eot +0 -0
  117. package/dist/css/fonts/iconcool.svg +6 -0
  118. package/dist/css/fonts/iconcool.ttf +0 -0
  119. package/dist/css/fonts/iconcool.woff +0 -0
  120. package/dist/css/iconcool.js +1 -1
  121. package/dist/css/style.css +6 -0
  122. package/dist/css/tailwind.css +1 -1
  123. package/dist/hooks/use-chat.d.ts +2 -0
  124. package/dist/hooks/use-common-http.d.ts +5 -0
  125. package/dist/hooks/use-common-http.ts.js +16 -0
  126. package/dist/hooks/use-dataset-http.d.ts +2 -1
  127. package/dist/hooks/use-dataset-http.ts.js +3 -1
  128. package/dist/hooks/use-meta-http.d.ts +1 -1
  129. package/dist/hooks/use-meta-http.ts.js +3 -1
  130. package/dist/hooks/use-table.d.ts +2 -7
  131. package/dist/hooks/use-table.ts.js +3 -3
  132. package/dist/http/helper/common.d.ts +25 -0
  133. package/dist/http/helper/common.ts.js +45 -0
  134. package/dist/http/helper/dataset.ts.js +10 -17
  135. package/dist/http/helper/model.ts.js +4 -4
  136. package/dist/http/helper/tool.ts.js +2 -0
  137. package/dist/transforms.d.ts +1 -0
  138. package/dist/transforms.ts.js +1 -0
  139. package/dist/types/common.d.ts +37 -4
  140. package/dist/types/dataset.d.ts +12 -10
  141. package/dist/types/enum.d.ts +13 -1
  142. package/dist/types/enum.ts.js +14 -0
  143. package/dist/types/model.d.ts +8 -8
  144. package/dist/types/tool.d.ts +2 -0
  145. package/package.json +2 -2
  146. package/dist/components/render-aside/index.script.vue.js +0 -69
  147. package/dist/components/render-aside/index.vue.css +0 -49
  148. package/dist/components/render-aside/index.vue.d.ts +0 -26
  149. package/dist/components/render-aside/index.vue.js +0 -5
  150. package/dist/components/render-dataset/index.script.vue.js.js +0 -126
  151. package/dist/components/render-dataset/index.vue.css +0 -6
  152. package/dist/components/render-expand-collapse/index.script.vue.js.js +0 -33
  153. package/dist/components/render-expand-collapse/index.vue.css +0 -23
  154. package/dist/components/render-expand-collapse/index.vue.d.ts +0 -12
  155. package/dist/components/render-expand-collapse/index.vue.js +0 -5
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-oft3crl0] {
2
+ .upload-file-home[data-v-dwns948p] {
3
3
  position: relative;
4
4
  background: #FFFFFF;
5
5
  border: 1px solid #DCDEE5;
6
6
  border-radius: 4px;
7
7
  padding: 12px 12px 10px 12px;
8
8
  }
9
- .upload-file-home[data-v-oft3crl0]:hover {
9
+ .upload-file-home[data-v-dwns948p]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-oft3crl0] {
12
+ .upload-file-home:hover .file-icons[data-v-dwns948p] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-oft3crl0] {
15
+ .upload-file-home .file-icon[data-v-dwns948p] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-oft3crl0] {
18
+ .upload-file-home .file-content[data-v-dwns948p] {
19
19
  font-size: 12px;
20
20
  flex: 1;
21
21
  align-items: flex-start;
@@ -23,28 +23,28 @@
23
23
  font-weight: normal;
24
24
  width: 0;
25
25
  }
26
- .upload-file-home .file-content .file-name[data-v-oft3crl0] {
26
+ .upload-file-home .file-content .file-name[data-v-dwns948p] {
27
27
  width: 100%;
28
28
  font-size: 14px;
29
29
  line-height: 20px;
30
30
  }
31
- .upload-file-home .file-content .file-size[data-v-oft3crl0] {
31
+ .upload-file-home .file-content .file-size[data-v-dwns948p] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-oft3crl0] {
36
+ .upload-file-home .file-icons[data-v-dwns948p] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-oft3crl0] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-dwns948p] {
41
41
  cursor: pointer;
42
42
  margin-right: 15px;
43
43
  font-size: 16px;
44
44
  }
45
- .upload-file-home .file-icons .bkaidev-icon[data-v-oft3crl0]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-dwns948p]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-oft3crl0] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-dwns948p] {
49
49
  margin: 0;
50
50
  }
@@ -1,11 +1,11 @@
1
1
  import type { IFileInfo } from '@/types/file';
2
- declare const _default: <T extends IFileInfo>(__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<Pick<Partial<{}> & Omit<{
4
- readonly onDelete?: (file: T) => any;
5
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onDelete"> & {
2
+ declare const __VLS_export: <T extends IFileInfo>(__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<{
6
4
  file: T;
7
- } & Partial<{}>> & import("vue").PublicProps;
8
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
5
+ } & {
6
+ onDelete?: (file: T) => any;
7
+ }> & import("vue").PublicProps;
8
+ expose: (exposed: {}) => void;
9
9
  attrs: any;
10
10
  slots: {
11
11
  tool?: (props: {}) => any;
@@ -14,7 +14,8 @@ declare const _default: <T extends IFileInfo>(__VLS_props: NonNullable<Awaited<t
14
14
  }>) => import("vue").VNode & {
15
15
  __ctx?: Awaited<typeof __VLS_setup>;
16
16
  };
17
+ declare const _default: typeof __VLS_export;
17
18
  export default _default;
18
19
  type __VLS_PrettifyLocal<T> = {
19
- [K in keyof T]: T[K];
20
+ [K in keyof T as K]: T[K];
20
21
  } & {};
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-oft3crl0";
2
+ script.__scopeId = "data-v-dwns948p";
3
3
  script.__file = "./src/components/render-file-card/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,16 +1,16 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-xp3f16du] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-jct3onsa] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-xp3f16du], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-xp3f16du], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-xp3f16du] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-jct3onsa], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-jct3onsa], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-jct3onsa] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-xp3f16du] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-jct3onsa] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-xp3f16du] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-jct3onsa] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-xp3f16du] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-jct3onsa] {
15
15
  color: #14A568;
16
16
  }
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  type: string;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
5
6
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-xp3f16du";
2
+ script.__scopeId = "data-v-jct3onsa";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,78 +1,70 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
- import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
2
+ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode } from "vue";
3
3
  const _hoisted_1 = {
4
- class: "header-home"
4
+ class: "header-home g-pl-24 g-pr-24"
5
5
  };
6
6
  const _hoisted_2 = {
7
- class: "header-title"
7
+ class: "g-learning-24 g-text-black g-text-16 g-pt-14 g-pb-14"
8
8
  };
9
9
  const _hoisted_3 = {
10
10
  key: 0,
11
- class: "header-main"
11
+ class: "g-flex-row g-mt-4"
12
12
  };
13
+ const _hoisted_4 = [
14
+ "onClick"
15
+ ];
13
16
  export default /*@__PURE__*/ _defineComponent({
14
17
  props: {
15
- title: String,
16
- tagName: String,
17
- search: String,
18
- showTag: {
19
- type: Boolean,
20
- default: false
18
+ title: {},
19
+ groupType: {},
20
+ loading: {
21
+ type: Boolean
21
22
  },
22
- showSearch: {
23
- type: Boolean,
24
- default: true
25
- },
26
- showHeaderTool: {
27
- type: Boolean,
28
- default: true
29
- }
23
+ tabs: {}
30
24
  },
31
25
  emits: [
32
- 'update:tagName',
33
- 'update:search'
26
+ "update:groupType"
34
27
  ],
35
28
  setup (__props, { emit: __emit }) {
29
+ const props = __props;
36
30
  const emit = __emit;
37
- const handleTagChange = (val)=>{
38
- emit('update:tagName', val);
39
- };
40
- const handleSearchChange = (val)=>{
41
- emit('update:search', val);
31
+ const handleChoose = (val)=>{
32
+ emit('update:groupType', val);
42
33
  };
43
34
  return (_ctx, _cache)=>{
44
- const _component_bk_input = _resolveComponent("bk-input");
35
+ var _props_tabs;
36
+ const _component_bk_loading = _resolveComponent("bk-loading");
45
37
  return _openBlock(), _createElementBlock("section", _hoisted_1, [
46
38
  _renderSlot(_ctx.$slots, "title", {}, ()=>[
47
- _createElementVNode("span", _hoisted_2, _toDisplayString(__props.title), 1 /* TEXT */ )
39
+ _createElementVNode("section", _hoisted_2, _toDisplayString(props.title), 1 /* TEXT */ )
48
40
  ], true),
49
- __props.showHeaderTool ? (_openBlock(), _createElementBlock("section", _hoisted_3, [
50
- _renderSlot(_ctx.$slots, "search", {}, undefined, true),
51
- __props.showTag ? (_openBlock(), _createBlock(_component_bk_input, {
52
- key: 0,
53
- class: "header-input g-mr-8",
54
- type: "search",
55
- placeholder: "请输入标签",
56
- clearable: true,
57
- "model-value": __props.tagName,
58
- onChange: handleTagChange,
59
- onInput: handleTagChange
60
- }, null, 8 /* PROPS */ , [
61
- "model-value"
62
- ])) : _createCommentVNode("v-if", true),
63
- __props.showSearch ? (_openBlock(), _createBlock(_component_bk_input, {
64
- key: 1,
65
- class: "header-input",
66
- type: "search",
67
- placeholder: "请输入关键字",
68
- clearable: true,
69
- "model-value": __props.search,
70
- onChange: handleSearchChange,
71
- onInput: handleSearchChange
72
- }, null, 8 /* PROPS */ , [
73
- "model-value"
74
- ])) : _createCommentVNode("v-if", true),
75
- _renderSlot(_ctx.$slots, "default", {}, undefined, true)
41
+ ((_props_tabs = props.tabs) === null || _props_tabs === void 0 ? void 0 : _props_tabs.length) > 0 ? (_openBlock(), _createElementBlock("ul", _hoisted_3, [
42
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(props.tabs, (tab)=>{
43
+ return _openBlock(), _createElementBlock("li", {
44
+ key: tab.id,
45
+ class: _normalizeClass({
46
+ 'render-tab g-flex-row g-pl-8 g-pr-8 g-pb-8 g-learning-22 g-mr-24 g-text-14 g-cursor-pointer': true,
47
+ active: props.groupType === tab.id
48
+ }),
49
+ onClick: ($event)=>handleChoose(tab.id)
50
+ }, [
51
+ _createTextVNode(_toDisplayString(tab.name) + " ", 1 /* TEXT */ ),
52
+ _createVNode(_component_bk_loading, {
53
+ class: "g-number-font",
54
+ mode: "spin",
55
+ size: "mini",
56
+ theme: "primary",
57
+ loading: props.loading
58
+ }, {
59
+ default: _withCtx(()=>[
60
+ _createTextVNode(" (" + _toDisplayString(tab.number) + ") ", 1 /* TEXT */ )
61
+ ]),
62
+ _: 2 /* DYNAMIC */
63
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
64
+ "loading"
65
+ ])
66
+ ], 10 /* CLASS, PROPS */ , _hoisted_4);
67
+ }), 128 /* KEYED_FRAGMENT */ ))
76
68
  ])) : _createCommentVNode("v-if", true)
77
69
  ]);
78
70
  };
@@ -1,34 +1,13 @@
1
1
 
2
- .header-home[data-v-6ymnvla2] {
2
+ .header-home[data-v-9fy5skaq] {
3
3
  width: 100%;
4
- height: 52px;
5
4
  background: #FFFFFF;
6
5
  box-shadow: 0 3px 4px 0 #0000000a;
7
- position: relative;
8
- z-index: 2;
9
6
  }
10
- .header-title[data-v-6ymnvla2] {
11
- position: absolute;
12
- left: 24px;
13
- top: 14px;
14
- font-size: 16px;
15
- color: #313238;
7
+ .render-tab[data-v-9fy5skaq] {
8
+ border-bottom: 2px solid transparent;
16
9
  }
17
- .header-main[data-v-6ymnvla2] {
18
- display: flex;
19
- align-items: center;
20
- justify-content: flex-end;
21
- width: 12.5rem;
22
- height: 100%;
23
- margin: 0 auto;
24
- }
25
- .header-select[data-v-6ymnvla2] {
26
- width: 300px;
27
- margin-right: 8px;
28
- z-index: 9;
29
- font-size: 12px;
30
- }
31
- .header-input[data-v-6ymnvla2] {
32
- width: 300px;
33
- font-size: 12px;
10
+ .render-tab.active[data-v-9fy5skaq] {
11
+ color: #3A84FF;
12
+ border-bottom: 2px solid #3A84FF;
34
13
  }
@@ -1,55 +1,25 @@
1
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_23: {};
1
+ import type { GroupType } from '@/types/enum';
2
+ interface IProps {
3
+ title?: string;
4
+ groupType?: GroupType;
5
+ loading?: boolean;
6
+ tabs?: {
7
+ id: GroupType;
8
+ name: string;
9
+ number: number;
10
+ }[];
11
+ }
12
+ declare var __VLS_1: {};
2
13
  type __VLS_Slots = {} & {
3
14
  title?: (props: typeof __VLS_1) => any;
4
- } & {
5
- search?: (props: typeof __VLS_3) => any;
6
- } & {
7
- default?: (props: typeof __VLS_23) => any;
8
15
  };
9
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
- title: StringConstructor;
11
- tagName: StringConstructor;
12
- search: StringConstructor;
13
- showTag: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- showSearch: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- showHeaderTool: {
22
- type: BooleanConstructor;
23
- default: boolean;
24
- };
25
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- "update:tagName": (...args: any[]) => void;
27
- "update:search": (...args: any[]) => void;
28
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
- title: StringConstructor;
30
- tagName: StringConstructor;
31
- search: StringConstructor;
32
- showTag: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- showSearch: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- showHeaderTool: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
- }>> & Readonly<{
45
- "onUpdate:tagName"?: (...args: any[]) => any;
46
- "onUpdate:search"?: (...args: any[]) => any;
47
- }>, {
48
- showTag: boolean;
49
- showSearch: boolean;
50
- showHeaderTool: boolean;
51
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
52
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
+ declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ "update:groupType": (val: GroupType) => any;
18
+ }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
19
+ "onUpdate:groupType"?: (val: GroupType) => any;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
53
23
  export default _default;
54
24
  type __VLS_WithSlots<T, S> = T & {
55
25
  new (): {
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-6ymnvla2";
2
+ script.__scopeId = "data-v-9fy5skaq";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,19 +1,19 @@
1
1
 
2
- .dislike-icon[data-v-ts7uwnf0] {
2
+ .dislike-icon[data-v-ksllk0co] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-ts7uwnf0] {
5
+ .option-items[data-v-ksllk0co] {
6
6
  padding: 1px 8px;
7
7
  background-color: #F0F1F5;
8
8
  border-radius: 2px;
9
9
  }
10
- .option-items[data-v-ts7uwnf0]:hover {
10
+ .option-items[data-v-ksllk0co]:hover {
11
11
  background-color: #E1ECFF;
12
12
  color: #3A84FF;
13
13
  }
14
- .option-items-selected[data-v-ts7uwnf0]{
14
+ .option-items-selected[data-v-ksllk0co]{
15
15
  background-color: #E1ECFF;
16
16
  }
17
- [data-v-ts7uwnf0] .bk-form-item {
17
+ [data-v-ksllk0co] .bk-form-item {
18
18
  margin-bottom: 17px;
19
19
  }
@@ -10,18 +10,19 @@ interface IProps {
10
10
  popoverOptions?: Record<string, unknown>;
11
11
  tooltipOptions?: Record<string, unknown>;
12
12
  }
13
- declare var __VLS_6: {}, __VLS_8: {};
13
+ declare var __VLS_7: {}, __VLS_9: {};
14
14
  type __VLS_Slots = {} & {
15
- like?: (props: typeof __VLS_6) => any;
15
+ like?: (props: typeof __VLS_7) => any;
16
16
  } & {
17
- dislike?: (props: typeof __VLS_8) => any;
17
+ dislike?: (props: typeof __VLS_9) => any;
18
18
  };
19
- declare const __VLS_component: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
+ declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
20
  "update-session-content-list": (data: ISessionFeedback) => any;
21
21
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
22
22
  "onUpdate-session-content-list"?: (data: ISessionFeedback) => any;
23
23
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
25
26
  export default _default;
26
27
  type __VLS_WithSlots<T, S> = T & {
27
28
  new (): {
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ts7uwnf0";
2
+ script.__scopeId = "data-v-ksllk0co";
3
3
  script.__file = "./src/components/render-like/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-8rnbt9m0] {
2
+ .router-tab[data-v-n2r4b1eo] {
3
3
  margin-top: 2px;
4
4
  height: 42px;
5
5
  background: #FFFFFF;
6
6
  box-shadow: 0 2px 4px 0 #1919290d;
7
7
  padding: 0 45px;
8
8
  }
9
- .router-tab a[data-v-8rnbt9m0] {
9
+ .router-tab a[data-v-n2r4b1eo] {
10
10
  padding: 0 8px;
11
11
  margin-right: 24px;
12
12
  font-size: 14px;
@@ -15,7 +15,7 @@
15
15
  color: #4D4F56;
16
16
  box-sizing: border-box;
17
17
  }
18
- .router-tab a.router-link-exact-active[data-v-8rnbt9m0] {
18
+ .router-tab a.router-link-exact-active[data-v-n2r4b1eo] {
19
19
  color: #3A84FF;
20
20
  border-bottom: 2px solid #3A84FF;
21
21
  }
@@ -4,5 +4,6 @@ interface IProps {
4
4
  name: string;
5
5
  }>;
6
6
  }
7
- declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-8rnbt9m0";
2
+ script.__scopeId = "data-v-n2r4b1eo";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,8 +1,6 @@
1
1
  import type { ISearchSelectItem } from '@/types/common';
2
- declare const _default: <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<{
3
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
- readonly "onUpdate:modelValue"?: (value: T) => any;
5
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & {
2
+ 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<{
3
+ props: __VLS_PrettifyLocal<{
6
4
  data: ISearchSelectItem[];
7
5
  modelValue: T;
8
6
  placeholder?: string;
@@ -14,15 +12,18 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
14
12
  id: number;
15
13
  }[]) => Promise<boolean | string> | boolean | string;
16
14
  getMenuList?: Function;
17
- } & Partial<{}>> & import("vue").PublicProps;
18
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
15
+ } & {
16
+ "onUpdate:modelValue"?: (value: T) => any;
17
+ }> & import("vue").PublicProps;
18
+ expose: (exposed: {}) => void;
19
19
  attrs: any;
20
20
  slots: {};
21
21
  emit: (event: "update:modelValue", value: T) => void;
22
22
  }>) => import("vue").VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
25
+ declare const _default: typeof __VLS_export;
25
26
  export default _default;
26
27
  type __VLS_PrettifyLocal<T> = {
27
- [K in keyof T]: T[K];
28
+ [K in keyof T as K]: T[K];
28
29
  } & {};