@blueking/ai-ui-sdk 0.1.11 → 0.1.12-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 (72) hide show
  1. package/dist/common/util.d.ts +7 -0
  2. package/dist/common/util.ts.js +18 -0
  3. package/dist/components/render-aside/index.vue.css +9 -9
  4. package/dist/components/render-aside/index.vue.js +1 -1
  5. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  6. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  7. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  8. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  9. package/dist/components/render-checkbox/index.vue.css +9 -9
  10. package/dist/components/render-checkbox/index.vue.js +1 -1
  11. package/dist/components/render-choose-tag/index.script.vue.js.js +27 -9
  12. package/dist/components/render-choose-tag/index.vue.css +7 -7
  13. package/dist/components/render-choose-tag/index.vue.d.ts +1 -0
  14. package/dist/components/render-choose-tag/index.vue.js +1 -1
  15. package/dist/components/render-collapse/index.script.vue.js.js +12 -10
  16. package/dist/components/render-collapse/index.vue.css +2 -2
  17. package/dist/components/render-collapse/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +46 -0
  19. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.vue.d.ts +5 -0
  20. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.vue.js +3 -0
  21. package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +54 -35
  22. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  23. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +1 -0
  24. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  25. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  26. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  27. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +35 -5
  28. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  29. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  30. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  31. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  32. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +1 -0
  33. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  34. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  35. package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +4 -1
  36. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  37. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  38. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  39. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  40. package/dist/components/render-dataset/components/plus-dataset-data/form/{manual.script.vue.js → manual.script.vue.js.js} +69 -66
  41. package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.js +1 -1
  42. package/dist/components/render-dataset/components/review-dataset-data/index.script.vue.js.js +1 -0
  43. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +11 -11
  44. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  45. package/dist/components/render-dataset/index.vue.css +1 -1
  46. package/dist/components/render-dataset/index.vue.js +1 -1
  47. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +16 -6
  48. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  49. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  50. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  51. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  52. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  53. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  54. package/dist/components/render-dataset-list/components/table.script.vue.js.js +13 -4
  55. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  56. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  57. package/dist/components/render-file-card/index.vue.css +11 -11
  58. package/dist/components/render-file-card/index.vue.js +1 -1
  59. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  60. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  61. package/dist/components/render-header/index.vue.css +5 -5
  62. package/dist/components/render-header/index.vue.js +1 -1
  63. package/dist/components/render-router-tab/index.vue.css +3 -3
  64. package/dist/components/render-router-tab/index.vue.js +1 -1
  65. package/dist/hooks/use-dataset-http.d.ts +4 -0
  66. package/dist/hooks/use-dataset-http.ts.js +29 -1
  67. package/dist/hooks/use-summary.ts.js +2 -2
  68. package/dist/http/helper/dataset.ts.js +3 -1
  69. package/dist/types/common.d.ts +4 -0
  70. package/dist/types/dataset.d.ts +5 -5
  71. package/package.json +1 -1
  72. package/dist/hooks/use-form-rule.ts.js +0 -101
@@ -88,3 +88,10 @@ export declare const processPromptTemplate: (prompt: string, selectedText: strin
88
88
  * @returns 全屏的父元素
89
89
  */
90
90
  export declare const getFullScreenWrap: (target: HTMLElement) => HTMLElement;
91
+ /**
92
+ * 判断元素的父节点们有没有某个class
93
+ * @param ele 当前元素
94
+ * @param cls class名
95
+ * @returns 是否有
96
+ */
97
+ export declare const isParentHasClass: (ele: HTMLElement, cls: string) => boolean;
@@ -233,3 +233,21 @@ export const handleCopy = (text)=>{
233
233
  }
234
234
  return parentElement;
235
235
  };
236
+ /**
237
+ * 判断元素的父节点们有没有某个class
238
+ * @param ele 当前元素
239
+ * @param cls class名
240
+ * @returns 是否有
241
+ */ export const isParentHasClass = (ele, cls)=>{
242
+ let result = false;
243
+ let current = ele;
244
+ while(current){
245
+ var _current_className_includes, _current_className;
246
+ if ((_current_className = current.className) === null || _current_className === void 0 ? void 0 : (_current_className_includes = _current_className.includes) === null || _current_className_includes === void 0 ? void 0 : _current_className_includes.call(_current_className, cls)) {
247
+ result = true;
248
+ break;
249
+ }
250
+ current = current.parentElement;
251
+ }
252
+ return result;
253
+ };
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-6kuh91uo] {
2
+ .aside-home[data-v-mtmb3eok] {
3
3
  width: 300px;
4
4
  height: 100%;
5
5
  background: #FFFFFF;
6
6
  padding: 16px;
7
7
  border-right: 1px solid #eaebf0;
8
8
  }
9
- [data-v-6kuh91uo] .aside-item {
9
+ [data-v-mtmb3eok] .aside-item {
10
10
  width: 268px;
11
11
  line-height: 36px;
12
12
  border-radius: 2px;
@@ -16,30 +16,30 @@
16
16
  justify-content: space-between;
17
17
  color: #979BA5;
18
18
  }
19
- [data-v-6kuh91uo] .aside-item.is-tab {
19
+ [data-v-mtmb3eok] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-6kuh91uo] .aside-item.is-tab:hover {
24
+ [data-v-mtmb3eok] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-6kuh91uo] .aside-item.active {
27
+ [data-v-mtmb3eok] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-6kuh91uo] .aside-item.active .tab-num {
32
+ [data-v-mtmb3eok] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-6kuh91uo] .aside-item.active .active-text {
36
+ [data-v-mtmb3eok] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-6kuh91uo] .aside-item .tab-name {
39
+ [data-v-mtmb3eok] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-6kuh91uo] .aside-item .tab-num {
42
+ [data-v-mtmb3eok] .aside-item .tab-num {
43
43
  background: #EAEBF0;
44
44
  border-radius: 2px;
45
45
  margin-left: 5px;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-6kuh91uo";
2
+ script.__scopeId = "data-v-mtmb3eok";
3
3
  script.__file = "./src/components/render-aside/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,40 +1,40 @@
1
1
 
2
- .send-container[data-v-ztndys9t] {
2
+ .send-container[data-v-x6jhq5jl] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-ztndys9t]:has(textarea:focus) {
5
+ .send-container[data-v-x6jhq5jl]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-ztndys9t] {
8
+ .send-container:hover .send-clear[data-v-x6jhq5jl] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-ztndys9t] {
11
+ .send-input[data-v-x6jhq5jl] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-ztndys9t]:has(textarea:focus) {
16
+ .send-input[data-v-x6jhq5jl]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-ztndys9t] textarea {
19
+ .send-input[data-v-x6jhq5jl] textarea {
20
20
  font-size: 12px;
21
21
  line-height: 16px;
22
22
  padding: 7px;
23
23
  resize: none !important;
24
24
  }
25
- .send-input[data-v-ztndys9t] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-x6jhq5jl] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-ztndys9t] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-x6jhq5jl] textarea::-webkit-scrollbar-thumb {
30
30
  height: 5px;
31
31
  border-radius: 3px;
32
32
  background-color: #dcdee5;
33
33
  }
34
- .send-input[data-v-ztndys9t] textarea::placeholder {
34
+ .send-input[data-v-x6jhq5jl] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-ztndys9t] {
37
+ .send-clear[data-v-x6jhq5jl] {
38
38
  display: none !important;
39
39
  position: absolute;
40
40
  right: 10px;
@@ -43,6 +43,6 @@
43
43
  font-size: 14px;
44
44
  cursor: pointer;
45
45
  }
46
- .send-clear[data-v-ztndys9t]:hover {
46
+ .send-clear[data-v-x6jhq5jl]:hover {
47
47
  color: #313238;
48
48
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ztndys9t";
2
+ script.__scopeId = "data-v-x6jhq5jl";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,11 +1,11 @@
1
1
 
2
- .auto-refresh[data-v-tz7zf87d] {
2
+ .auto-refresh[data-v-kpkfn1pu] {
3
3
  position: relative;
4
4
  cursor: pointer;
5
5
  line-height: 26px;
6
6
  padding: 0 4px;
7
7
  }
8
- .auto-refresh[data-v-tz7zf87d]:after {
8
+ .auto-refresh[data-v-kpkfn1pu]:after {
9
9
  content: '';
10
10
  position: absolute;
11
11
  top: 5px;
@@ -15,31 +15,31 @@
15
15
  background-color: #dcdee5;
16
16
  z-index: 1;
17
17
  }
18
- .auto-refresh[data-v-tz7zf87d]:hover {
18
+ .auto-refresh[data-v-kpkfn1pu]:hover {
19
19
  color: #3A84FF;
20
20
  background-color: #E1ECFF;
21
21
  }
22
- .refresh[data-v-tz7zf87d] {
22
+ .refresh[data-v-kpkfn1pu] {
23
23
  cursor: pointer;
24
24
  line-height: 26px;
25
25
  padding: 0 4px;
26
26
  }
27
- .refresh[data-v-tz7zf87d]:hover {
27
+ .refresh[data-v-kpkfn1pu]:hover {
28
28
  color: #3A84FF;
29
29
  background-color: #E1ECFF;
30
30
  }
31
- .textarea-list[data-v-tz7zf87d] {
31
+ .textarea-list[data-v-kpkfn1pu] {
32
32
  padding: 4px 0;
33
33
  line-height: 32px;
34
34
  max-height: 300px;
35
35
  position: relative;
36
36
  z-index: 2;
37
37
  }
38
- .textarea-list .textarea-item[data-v-tz7zf87d] {
38
+ .textarea-list .textarea-item[data-v-kpkfn1pu] {
39
39
  padding: 0 12px;
40
40
  cursor: pointer;
41
41
  }
42
- .textarea-list .textarea-item[data-v-tz7zf87d]:hover {
42
+ .textarea-list .textarea-item[data-v-kpkfn1pu]:hover {
43
43
  background: #E1ECFF;
44
44
  color: #3A84FF;
45
45
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-tz7zf87d";
2
+ script.__scopeId = "data-v-kpkfn1pu";
3
3
  script.__file = "./src/components/render-auto-refresh/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .checkbox[data-v-yye5x8nk] {
2
+ .checkbox[data-v-o7shz6s2] {
3
3
  position: relative;
4
4
  display: inline-block;
5
5
  width: 16px;
@@ -8,27 +8,27 @@
8
8
  border-radius: 2px;
9
9
  cursor: pointer;
10
10
  }
11
- .checkbox.disabled[data-v-yye5x8nk] {
11
+ .checkbox.disabled[data-v-o7shz6s2] {
12
12
  cursor: not-allowed;
13
13
  background: #fafbfd;
14
14
  border-color: #dcdee5;
15
15
  }
16
- .checkbox.disabled.checked[data-v-yye5x8nk] {
16
+ .checkbox.disabled.checked[data-v-o7shz6s2] {
17
17
  background-color: #a3c5fd;
18
18
  border-color: #a3c5fd;
19
19
  }
20
- .checkbox.disabled.indeterminate[data-v-yye5x8nk] {
20
+ .checkbox.disabled.indeterminate[data-v-o7shz6s2] {
21
21
  background-color: #fafbfd;
22
22
  border-color: #dcdee5;
23
23
  }
24
- .checkbox.disabled.indeterminate[data-v-yye5x8nk]:after {
24
+ .checkbox.disabled.indeterminate[data-v-o7shz6s2]:after {
25
25
  background: #dcdee5;
26
26
  }
27
- .checkbox.checked[data-v-yye5x8nk] {
27
+ .checkbox.checked[data-v-o7shz6s2] {
28
28
  background-color: #3a84ff;
29
29
  border: 1px solid #3a84ff;
30
30
  }
31
- .checkbox.checked[data-v-yye5x8nk]:after {
31
+ .checkbox.checked[data-v-o7shz6s2]:after {
32
32
  position: absolute;
33
33
  top: 50%;
34
34
  left: 50%;
@@ -41,11 +41,11 @@
41
41
  transform: translate(-50%, -60%) rotate(45deg);
42
42
  transform-origin: center;
43
43
  }
44
- .checkbox.indeterminate[data-v-yye5x8nk] {
44
+ .checkbox.indeterminate[data-v-o7shz6s2] {
45
45
  background-color: #3a84ff;
46
46
  border: 1px solid #3a84ff;
47
47
  }
48
- .checkbox.indeterminate[data-v-yye5x8nk]:after {
48
+ .checkbox.indeterminate[data-v-o7shz6s2]:after {
49
49
  position: absolute;
50
50
  top: 50%;
51
51
  left: 50%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-yye5x8nk";
2
+ script.__scopeId = "data-v-o7shz6s2";
3
3
  script.__file = "./src/components/render-checkbox/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -35,13 +35,16 @@ const _hoisted_1 = {
35
35
  };
36
36
  import { Done, Error } from 'bkui-vue/lib/icon';
37
37
  import { onBeforeMount, ref, toRef, watch } from 'vue';
38
- import { useFormRule } from '../../hooks/use-form-rule.ts.js';
38
+ import { useDatasetHttp } from '../../hooks/use-dataset-http.ts.js';
39
39
  import { useMetaHttp } from '../../hooks/use-meta-http.ts.js';
40
40
  export default /*@__PURE__*/ _defineComponent({
41
41
  props: {
42
42
  modelValue: {},
43
43
  apiPrefix: {},
44
44
  spaceId: {},
45
+ isDataset: {
46
+ type: Boolean
47
+ },
45
48
  popoverOptions: {}
46
49
  },
47
50
  emits: [
@@ -50,8 +53,8 @@ export default /*@__PURE__*/ _defineComponent({
50
53
  setup (__props, { emit: __emit }) {
51
54
  const props = __props;
52
55
  const emits = __emit;
53
- const { getLengthRule } = useFormRule(props.apiPrefix, toRef(props, 'spaceId'));
54
56
  const { getTags, plusTag, checkTag } = useMetaHttp(props.apiPrefix, toRef(props, 'spaceId'));
57
+ const { getTags: getDatasetTags, plusTag: plusDatasetTag, checkTag: checkDatasetTag } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
55
58
  const isShowEdit = ref(false);
56
59
  const isPulsingTag = ref(false);
57
60
  const tempTagName = ref('');
@@ -60,15 +63,30 @@ export default /*@__PURE__*/ _defineComponent({
60
63
  const isLoadingTag = ref(false);
61
64
  const isShow = ref(false);
62
65
  const tags = ref([]);
66
+ let templateTagNameErrorMessage = '';
63
67
  const checkTagRule = {
64
- validator: (value)=>checkTag(handleGetTagNames(value)).then(()=>true).catch(()=>false),
65
- message: '标签名称重复',
68
+ validator: function() {
69
+ var _ref = _async_to_generator(function*(value) {
70
+ const fun = props.isDataset ? checkDatasetTag : checkTag;
71
+ const tagNames = handleGetTagNames(value);
72
+ try {
73
+ templateTagNameErrorMessage = '';
74
+ yield fun(tagNames);
75
+ } catch (error) {
76
+ templateTagNameErrorMessage = error.message;
77
+ return false;
78
+ }
79
+ });
80
+ return function(value) {
81
+ return _ref.apply(this, arguments);
82
+ };
83
+ }(),
84
+ message: ()=>templateTagNameErrorMessage,
66
85
  trigger: 'change'
67
86
  };
68
87
  const tagRules = {
69
88
  tempTagName: [
70
- checkTagRule,
71
- getLengthRule('标签名称', 16)
89
+ checkTagRule
72
90
  ]
73
91
  };
74
92
  const handleFocus = ()=>{
@@ -100,8 +118,9 @@ export default /*@__PURE__*/ _defineComponent({
100
118
  try {
101
119
  isPulsingTag.value = true;
102
120
  const tagNames = handleGetTagNames(tempTagName.value);
121
+ const plusTagFun = props.isDataset ? plusDatasetTag : plusTag;
103
122
  yield tagFormRef.value.validate();
104
- yield plusTag(tagNames);
123
+ yield plusTagFun(tagNames);
105
124
  emits('update:modelValue', [
106
125
  ...props.modelValue,
107
126
  ...tagNames
@@ -127,7 +146,7 @@ export default /*@__PURE__*/ _defineComponent({
127
146
  };
128
147
  const handleGetTags = ()=>{
129
148
  isLoadingTag.value = true;
130
- getTags().then((result)=>{
149
+ (props.isDataset ? getDatasetTags() : getTags()).then((result)=>{
131
150
  tags.value = result;
132
151
  }).finally(()=>{
133
152
  isLoadingTag.value = false;
@@ -185,7 +204,6 @@ export default /*@__PURE__*/ _defineComponent({
185
204
  _createVNode(_component_bk_input, {
186
205
  modelValue: tempTagName.value,
187
206
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tempTagName.value = $event),
188
- maxlength: 20,
189
207
  ref_key: "tagRef",
190
208
  ref: tagRef,
191
209
  placeholder: "如需定义层级标签,以英文“/”分割层级,多个标签以“、”分隔",
@@ -1,29 +1,29 @@
1
1
 
2
- .plus-tag-input[data-v-i7u70pjw] {
2
+ .plus-tag-input[data-v-onsodwn7] {
3
3
  padding: 7px 12px;
4
4
  height: 40px;
5
5
  background: #FAFBFD;
6
6
  border-top: 1px solid #DCDEE5;
7
7
  }
8
- .plus-tag-input .plus-tag-done[data-v-i7u70pjw] {
8
+ .plus-tag-input .plus-tag-done[data-v-onsodwn7] {
9
9
  cursor: pointer;
10
10
  font-size: 22px;
11
11
  color: #2DCB56;
12
12
  margin: 0 5px 0 10px;
13
13
  }
14
- .plus-tag-input .plus-tag-error[data-v-i7u70pjw] {
14
+ .plus-tag-input .plus-tag-error[data-v-onsodwn7] {
15
15
  cursor: pointer;
16
16
  font-size: 16px;
17
17
  color: #C4C6CC;
18
18
  margin-right: 5px;
19
19
  }
20
- .plus-tag-input .plus-tag-form[data-v-i7u70pjw] {
20
+ .plus-tag-input .plus-tag-form[data-v-onsodwn7] {
21
21
  flex: 1;
22
22
  }
23
- .plus-tag-input .plus-tag-form-item[data-v-i7u70pjw] {
23
+ .plus-tag-input .plus-tag-form-item[data-v-onsodwn7] {
24
24
  margin-bottom: 0;
25
25
  }
26
- .plus-tag[data-v-i7u70pjw] {
26
+ .plus-tag[data-v-onsodwn7] {
27
27
  cursor: pointer;
28
28
  width: 100%;
29
29
  height: 40px;
@@ -36,7 +36,7 @@
36
36
  font-size: 12px;
37
37
  line-height: 20px;
38
38
  }
39
- .plus-tag[data-v-i7u70pjw]:hover {
39
+ .plus-tag[data-v-onsodwn7]:hover {
40
40
  color: #3A84FF;
41
41
  }
42
42
 
@@ -2,6 +2,7 @@ interface IProps {
2
2
  modelValue: string[][];
3
3
  apiPrefix: string;
4
4
  spaceId?: string;
5
+ isDataset?: boolean;
5
6
  popoverOptions?: Record<string, unknown>;
6
7
  }
7
8
  declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-i7u70pjw";
2
+ script.__scopeId = "data-v-onsodwn7";
3
3
  script.__file = "./src/components/render-choose-tag/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,14 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
2
  import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, mergeProps as _mergeProps, Fragment as _Fragment } from "vue";
3
3
  const _hoisted_1 = {
4
+ class: "g-text-black g-text-bold g-text-12"
5
+ };
6
+ const _hoisted_2 = {
4
7
  key: 0,
5
8
  class: "bkaidev-icon bkaidev-help g-text-14 g-ml-4"
6
9
  };
7
10
  import { ref } from 'vue';
11
+ import { isParentHasClass } from '../../common/util.ts.js';
8
12
  export default /*@__PURE__*/ _defineComponent({
9
13
  props: {
10
14
  title: {},
@@ -12,27 +16,25 @@ export default /*@__PURE__*/ _defineComponent({
12
16
  },
13
17
  setup (__props) {
14
18
  const isShow = ref(true);
15
- const toggleShow = ()=>{
19
+ const toggleShow = (event)=>{
20
+ if (isParentHasClass(event.target, 'disable-click-toggle')) return;
16
21
  isShow.value = !isShow.value;
17
22
  };
18
23
  return (_ctx, _cache)=>{
19
24
  const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
20
25
  return _openBlock(), _createElementBlock(_Fragment, null, [
21
26
  _createElementVNode("span", _mergeProps(_ctx.$attrs, {
22
- class: "collapse-title g-flex-row"
27
+ class: "collapse-title g-flex-row g-cursor-pointer",
28
+ onClick: toggleShow
23
29
  }), [
24
30
  _createElementVNode("i", {
25
31
  class: _normalizeClass({
26
- 'bkaidev-icon bkaidev-angle-up-fill-3 g-text-12 g-mr-8 g-cursor-pointer': true,
32
+ 'bkaidev-icon bkaidev-angle-up-fill-3 g-text-12 g-mr-8': true,
27
33
  'is-hidden': !isShow.value
28
- }),
29
- onClick: toggleShow
34
+ })
30
35
  }, null, 2 /* CLASS */ ),
31
- _createElementVNode("span", {
32
- class: "g-text-black g-text-bold g-text-12 g-cursor-pointer",
33
- onClick: toggleShow
34
- }, _toDisplayString(_ctx.title), 1 /* TEXT */ ),
35
- _ctx.tips ? _withDirectives((_openBlock(), _createElementBlock("i", _hoisted_1, null, 512 /* NEED_PATCH */ )), [
36
+ _createElementVNode("span", _hoisted_1, _toDisplayString(_ctx.title), 1 /* TEXT */ ),
37
+ _ctx.tips ? _withDirectives((_openBlock(), _createElementBlock("i", _hoisted_2, null, 512 /* NEED_PATCH */ )), [
36
38
  [
37
39
  _directive_bk_tooltips,
38
40
  {
@@ -1,10 +1,10 @@
1
1
 
2
- .collapse-title[data-v-yavelakb] {
2
+ .collapse-title[data-v-iqg7u1dk] {
3
3
  height: 28px;
4
4
  background: #F0F1F5;
5
5
  border-radius: 2px;
6
6
  padding: 0 12px;
7
7
  }
8
- .collapse-title .is-hidden[data-v-yavelakb] {
8
+ .collapse-title .is-hidden[data-v-iqg7u1dk] {
9
9
  transform: rotate(-90deg);
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-yavelakb";
2
+ script.__scopeId = "data-v-iqg7u1dk";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -0,0 +1,46 @@
1
+ import { defineComponent as _defineComponent, createVNode as _createVNode } from 'vue';
2
+ import { createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createStaticVNode as _createStaticVNode } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "g-text-blue g-flex-row"
5
+ };
6
+ const _hoisted_2 = {
7
+ class: "g-flex-row"
8
+ };
9
+ export default /*@__PURE__*/ _defineComponent({
10
+ props: {
11
+ tips: {}
12
+ },
13
+ setup (__props) {
14
+ const getTooltipContent = (value)=>{
15
+ return _createVNode("section", {
16
+ "class": "g-white-space-pre-line g-max-height-80vh g-max-width-400 g-scrollbar-page"
17
+ }, [
18
+ value
19
+ ]);
20
+ };
21
+ return (_ctx, _cache)=>{
22
+ const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
23
+ return _openBlock(), _createElementBlock("span", _hoisted_1, [
24
+ _withDirectives((_openBlock(), _createElementBlock("span", _hoisted_2, _cache[0] || (_cache[0] = [
25
+ _createElementVNode("i", {
26
+ class: "ai-ui-sdk-icon ai-ui-sdk-info-line g-text-14 g-mr-2"
27
+ }, null, -1 /* HOISTED */ ),
28
+ _createElementVNode("span", {
29
+ class: "g-text-12"
30
+ }, "示例", -1 /* HOISTED */ )
31
+ ]))), [
32
+ [
33
+ _directive_bk_tooltips,
34
+ {
35
+ content: getTooltipContent(_ctx.tips),
36
+ placement: 'left',
37
+ theme: 'light',
38
+ boundary: 'parent'
39
+ }
40
+ ]
41
+ ]),
42
+ _cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-cz64egi1><i class=\"ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-cz64egi1></i><span class=\"g-text-12 click-full-screen\" data-v-cz64egi1>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-cz64egi1><i class=\"ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-cz64egi1></i><span class=\"g-text-12 click-un-full-screen\" data-v-cz64egi1>取消全屏</span></span>", 2))
43
+ ]);
44
+ };
45
+ }
46
+ });
@@ -0,0 +1,5 @@
1
+ interface IProps {
2
+ tips: string;
3
+ }
4
+ 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>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import script from './index.script.vue.js';
2
+ script.__file = "./src/components/render-dataset/components/dataset-data-tool-icons/index.vue";
3
+ export default script;