@blueking/ai-ui-sdk 0.1.18-beta.5 → 0.1.18-beta.7

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 (54) hide show
  1. package/dist/components/render-aside/index.vue.css +9 -9
  2. package/dist/components/render-aside/index.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  6. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  7. package/dist/components/render-checkbox/index.vue.css +9 -9
  8. package/dist/components/render-checkbox/index.vue.js +1 -1
  9. package/dist/components/render-choose-tag/index.vue.css +7 -7
  10. package/dist/components/render-choose-tag/index.vue.js +1 -1
  11. package/dist/components/render-collapse/index.vue.css +2 -2
  12. package/dist/components/render-collapse/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  14. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  15. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  17. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  19. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  20. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  21. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  22. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  23. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  24. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  25. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  30. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  31. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  32. package/dist/components/render-dataset/index.vue.css +1 -1
  33. package/dist/components/render-dataset/index.vue.js +1 -1
  34. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  35. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  36. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  37. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  38. package/dist/components/render-dataset-list/components/table.script.vue.js.js +7 -9
  39. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  40. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  41. package/dist/components/render-file-card/index.vue.css +11 -11
  42. package/dist/components/render-file-card/index.vue.js +1 -1
  43. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  44. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  45. package/dist/components/render-header/index.vue.css +5 -5
  46. package/dist/components/render-header/index.vue.js +1 -1
  47. package/dist/components/render-like/index.script.vue.js.js +138 -102
  48. package/dist/components/render-like/index.vue.css +5 -5
  49. package/dist/components/render-like/index.vue.d.ts +5 -3
  50. package/dist/components/render-like/index.vue.js +1 -1
  51. package/dist/components/render-router-tab/index.vue.css +3 -3
  52. package/dist/components/render-router-tab/index.vue.js +1 -1
  53. package/dist/http/helper/dataset.ts.js +5 -1
  54. package/package.json +1 -1
@@ -152,7 +152,8 @@ export default /*@__PURE__*/ _defineComponent({
152
152
  'companyName',
153
153
  'componentName'
154
154
  ],
155
- 'description'
155
+ 'description',
156
+ 'createdAt'
156
157
  ],
157
158
  trigger: 'manual'
158
159
  };
@@ -287,13 +288,15 @@ export default /*@__PURE__*/ _defineComponent({
287
288
  _createVNode(_component_bk_table_column, {
288
289
  label: "数据量",
289
290
  field: "datasetItemCount",
290
- width: "80"
291
+ width: "80",
292
+ sort: true
291
293
  }),
292
294
  _ctx.reviewDataset ? (_openBlock(), _createBlock(_component_bk_table_column, {
293
295
  key: 0,
294
296
  label: "待审核数据量",
295
297
  field: "datasetItemUnreviewedCount",
296
- width: "120"
298
+ width: "120",
299
+ sort: true
297
300
  })) : _createCommentVNode("v-if", true),
298
301
  _createVNode(_component_bk_table_column, {
299
302
  label: "类型",
@@ -337,14 +340,9 @@ export default /*@__PURE__*/ _defineComponent({
337
340
  }),
338
341
  _createVNode(_component_bk_table_column, {
339
342
  label: "创建时间",
340
- field: "created_at",
343
+ field: "createdAt",
341
344
  "min-width": "180",
342
345
  sort: true
343
- }, {
344
- default: _withCtx(({ row })=>[
345
- _createTextVNode(_toDisplayString(row.createdAt), 1 /* TEXT */ )
346
- ]),
347
- _: 1 /* STABLE */
348
346
  }),
349
347
  _createVNode(_component_bk_table_column, {
350
348
  label: "操作",
@@ -1,5 +1,5 @@
1
1
 
2
- .expend-collapse-home[data-v-e710ivmb] {
2
+ .expend-collapse-home[data-v-u9apwqo1] {
3
3
  width: 16px;
4
4
  height: 64px;
5
5
  background: #DCDEE5;
@@ -15,9 +15,9 @@
15
15
  cursor: pointer;
16
16
  z-index: 1550;
17
17
  }
18
- .expend-collapse-home[data-v-e710ivmb]:hover {
18
+ .expend-collapse-home[data-v-u9apwqo1]:hover {
19
19
  background: #979BA5;
20
20
  }
21
- .expend-collapse-home.is-close[data-v-e710ivmb] {
21
+ .expend-collapse-home.is-close[data-v-u9apwqo1] {
22
22
  left: 0;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-e710ivmb";
2
+ script.__scopeId = "data-v-u9apwqo1";
3
3
  script.__file = "./src/components/render-expand-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-8f0owfiy] {
2
+ .upload-file-home[data-v-9iec3xol] {
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-8f0owfiy]:hover {
9
+ .upload-file-home[data-v-9iec3xol]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-8f0owfiy] {
12
+ .upload-file-home:hover .file-icons[data-v-9iec3xol] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-8f0owfiy] {
15
+ .upload-file-home .file-icon[data-v-9iec3xol] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-8f0owfiy] {
18
+ .upload-file-home .file-content[data-v-9iec3xol] {
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-8f0owfiy] {
26
+ .upload-file-home .file-content .file-name[data-v-9iec3xol] {
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-8f0owfiy] {
31
+ .upload-file-home .file-content .file-size[data-v-9iec3xol] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-8f0owfiy] {
36
+ .upload-file-home .file-icons[data-v-9iec3xol] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-8f0owfiy] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-9iec3xol] {
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-8f0owfiy]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-9iec3xol]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-8f0owfiy] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-9iec3xol] {
49
49
  margin: 0;
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-8f0owfiy";
2
+ script.__scopeId = "data-v-9iec3xol";
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-v8p3gq1l] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-str1xf15] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-v8p3gq1l], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-v8p3gq1l], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-v8p3gq1l] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-str1xf15], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-str1xf15], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-str1xf15] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-v8p3gq1l] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-str1xf15] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-v8p3gq1l] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-str1xf15] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-v8p3gq1l] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-str1xf15] {
15
15
  color: #14A568;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-v8p3gq1l";
2
+ script.__scopeId = "data-v-str1xf15";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .header-home[data-v-i2ilwx7i] {
2
+ .header-home[data-v-4yh8aeog] {
3
3
  width: 100%;
4
4
  height: 52px;
5
5
  background: #FFFFFF;
@@ -7,14 +7,14 @@
7
7
  position: relative;
8
8
  z-index: 2;
9
9
  }
10
- .header-title[data-v-i2ilwx7i] {
10
+ .header-title[data-v-4yh8aeog] {
11
11
  position: absolute;
12
12
  left: 24px;
13
13
  top: 14px;
14
14
  font-size: 16px;
15
15
  color: #313238;
16
16
  }
17
- .header-main[data-v-i2ilwx7i] {
17
+ .header-main[data-v-4yh8aeog] {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-end;
@@ -22,13 +22,13 @@
22
22
  height: 100%;
23
23
  margin: 0 auto;
24
24
  }
25
- .header-select[data-v-i2ilwx7i] {
25
+ .header-select[data-v-4yh8aeog] {
26
26
  width: 300px;
27
27
  margin-right: 8px;
28
28
  z-index: 9;
29
29
  font-size: 12px;
30
30
  }
31
- .header-input[data-v-i2ilwx7i] {
31
+ .header-input[data-v-4yh8aeog] {
32
32
  width: 300px;
33
33
  font-size: 12px;
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-i2ilwx7i";
2
+ script.__scopeId = "data-v-4yh8aeog";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,19 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
- import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
2
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createTextVNode as _createTextVNode, unref as _unref } from "vue";
3
3
  const _hoisted_1 = {
4
+ class: "select-options"
5
+ };
6
+ const _hoisted_2 = {
4
7
  class: "g-text-16 g-mb-16"
5
8
  };
6
- const _hoisted_2 = [
9
+ const _hoisted_3 = [
7
10
  "onClick"
8
11
  ];
9
- const _hoisted_3 = {
12
+ const _hoisted_4 = {
10
13
  class: "g-flex-row g-justify-end g-mt-16"
11
14
  };
12
- import { ref } from 'vue';
15
+ import { clickoutside as vClickoutside } from 'bkui-vue';
16
+ import { ref, watch } from 'vue';
13
17
  import RenderAutoHeightTextarea from '../render-auto-height-textarea/index.vue.js';
14
18
  import { useSessionHttp } from '../../hooks/use-session-http.ts.js';
15
19
  export default /*@__PURE__*/ _defineComponent({
@@ -23,7 +27,8 @@ export default /*@__PURE__*/ _defineComponent({
23
27
  labels: {}
24
28
  },
25
29
  emits: [
26
- 'update-session-content-list'
30
+ "update-session-content-list",
31
+ "close"
27
32
  ],
28
33
  setup (__props, { emit: __emit }) {
29
34
  const props = __props;
@@ -36,11 +41,12 @@ export default /*@__PURE__*/ _defineComponent({
36
41
  });
37
42
  const isShow = ref(false);
38
43
  const loading = ref(false);
44
+ const submitting = ref(false);
39
45
  const feedbackOptions = ref([]);
40
46
  const formData = ref({
41
47
  sessionCode: props.sessionCode,
42
48
  sessionContentIds: props.sessionContentIds,
43
- rate: props.rate,
49
+ rate: props.rate === 5 || props.rate === 1 ? props.rate : undefined,
44
50
  comment: props.comment,
45
51
  labels: props.labels || []
46
52
  });
@@ -71,7 +77,7 @@ export default /*@__PURE__*/ _defineComponent({
71
77
  }
72
78
  };
73
79
  const rate = formData.value.rate;
74
- return tooltipMap[number][rate] || '不满意';
80
+ return tooltipMap[number][rate];
75
81
  };
76
82
  const toggleOption = (option)=>{
77
83
  const selected = formData.value.labels || [];
@@ -89,15 +95,34 @@ export default /*@__PURE__*/ _defineComponent({
89
95
  });
90
96
  };
91
97
  const handleSubmit = ()=>{
98
+ submitting.value = true;
92
99
  postSessionFeedback(formData.value).then(()=>{
93
100
  emit('update-session-content-list');
94
101
  handleClose();
102
+ }).finally(()=>{
103
+ submitting.value = false;
95
104
  });
96
105
  };
97
106
  const handleClose = ()=>{
98
107
  isShow.value = false;
99
- formData.value.rate = undefined;
108
+ setTimeout(()=>{
109
+ if (!isShow.value) {
110
+ formData.value.rate = undefined;
111
+ }
112
+ }, 100);
113
+ };
114
+ const handleClickOutside = (event)=>{
115
+ const target = event.target;
116
+ if (!target.closest('.select-options')) {
117
+ handleClose();
118
+ }
100
119
  };
120
+ // 监听sessionContentIds的变化,确保formData中的sessionContentIds同步更新
121
+ watch(()=>props.sessionContentIds, (newIds)=>{
122
+ formData.value.sessionContentIds = newIds;
123
+ }, {
124
+ deep: true
125
+ });
101
126
  return (_ctx, _cache)=>{
102
127
  const _component_bk_form_item = _resolveComponent("bk-form-item");
103
128
  const _component_bk_loading = _resolveComponent("bk-loading");
@@ -114,112 +139,122 @@ export default /*@__PURE__*/ _defineComponent({
114
139
  "is-show": isShow.value
115
140
  }, {
116
141
  content: _withCtx(()=>[
117
- _createVNode(_component_bk_form, {
118
- "form-type": "vertical",
119
- ref: "formRef",
120
- class: "g-small-form g-short-form",
121
- model: formData.value
122
- }, {
123
- default: _withCtx(()=>[
124
- _createVNode(_component_bk_loading, {
125
- loading: loading.value
126
- }, {
127
- default: _withCtx(()=>[
128
- formData.value.rate !== 0 ? (_openBlock(), _createBlock(_component_bk_form_item, {
129
- key: 0
130
- }, {
131
- default: _withCtx(()=>[
132
- _createElementVNode("h5", _hoisted_1, _toDisplayString(formData.value.rate === 5 ? '什么原因让你满意?' : '什么原因让你不满意?'), 1 /* TEXT */ ),
133
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(feedbackOptions.value, (option, index)=>{
134
- return _openBlock(), _createElementBlock("span", {
135
- class: _normalizeClass({
136
- 'option-items g-text-12 g-mr-4 g-mb-4 g-cursor-pointer g-float-left': true,
137
- 'option-items-selected g-text-blue': formData.value.labels.includes(option)
138
- }),
139
- key: index,
140
- onClick: _withModifiers(($event)=>toggleOption(option), [
141
- "stop"
142
- ])
143
- }, _toDisplayString(option), 11 /* TEXT, CLASS, PROPS */ , _hoisted_2);
144
- }), 128 /* KEYED_FRAGMENT */ ))
145
- ]),
146
- _: 1 /* STABLE */
147
- })) : _createCommentVNode("v-if", true),
148
- _createVNode(_component_bk_form_item, null, {
149
- default: _withCtx(()=>[
150
- _cache[3] || (_cache[3] = _createElementVNode("h5", {
151
- class: "g-text-12 g-mb-4"
152
- }, " 其他原因 ", -1 /* HOISTED */ )),
153
- _createVNode(RenderAutoHeightTextarea, {
154
- placeholder: "说出你的想法",
155
- height: 74,
156
- width: 368,
157
- "model-value": formData.value.comment,
158
- "onUpdate:modelValue": _cache[2] || (_cache[2] = (value)=>formData.value.comment = value)
159
- }, null, 8 /* PROPS */ , [
160
- "model-value"
161
- ])
162
- ]),
163
- _: 1 /* STABLE */ ,
164
- __: [
165
- 3
166
- ]
167
- })
168
- ]),
169
- _: 1 /* STABLE */
170
- }, 8 /* PROPS */ , [
171
- "loading"
172
- ])
173
- ]),
174
- _: 1 /* STABLE */
175
- }, 8 /* PROPS */ , [
176
- "model"
177
- ]),
178
- _createElementVNode("section", _hoisted_3, [
179
- _createVNode(_component_bk_button, {
180
- class: "g-width-88",
181
- theme: "primary",
182
- disabled: !formData.value.comment && !(formData.value.labels && formData.value.labels.length > 0),
183
- onClick: _withModifiers(handleSubmit, [
184
- "stop"
185
- ])
142
+ _withDirectives((_openBlock(), _createElementBlock("section", _hoisted_1, [
143
+ _createVNode(_component_bk_form, {
144
+ "form-type": "vertical",
145
+ ref: "formRef",
146
+ class: "g-small-form g-short-form",
147
+ model: formData.value
186
148
  }, {
187
- default: _withCtx(()=>_cache[4] || (_cache[4] = [
188
- _createTextVNode(" 提交 ")
189
- ])),
190
- _: 1 /* STABLE */ ,
191
- __: [
192
- 4
193
- ]
149
+ default: _withCtx(()=>[
150
+ _createVNode(_component_bk_loading, {
151
+ loading: loading.value
152
+ }, {
153
+ default: _withCtx(()=>[
154
+ formData.value.rate !== undefined ? (_openBlock(), _createBlock(_component_bk_form_item, {
155
+ key: 0
156
+ }, {
157
+ default: _withCtx(()=>[
158
+ _createElementVNode("h5", _hoisted_2, _toDisplayString(formData.value.rate === 5 ? '什么原因让你满意?' : '什么原因让你不满意?'), 1 /* TEXT */ ),
159
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(feedbackOptions.value, (option, index)=>{
160
+ return _openBlock(), _createElementBlock("span", {
161
+ class: _normalizeClass({
162
+ 'option-items g-text-12 g-mr-4 g-mb-4 g-cursor-pointer g-float-left': true,
163
+ 'option-items-selected g-text-blue': formData.value.labels.includes(option)
164
+ }),
165
+ key: index,
166
+ onClick: _withModifiers(($event)=>toggleOption(option), [
167
+ "stop"
168
+ ])
169
+ }, _toDisplayString(option), 11 /* TEXT, CLASS, PROPS */ , _hoisted_3);
170
+ }), 128 /* KEYED_FRAGMENT */ ))
171
+ ]),
172
+ _: 1 /* STABLE */
173
+ })) : _createCommentVNode("v-if", true),
174
+ _createVNode(_component_bk_form_item, null, {
175
+ default: _withCtx(()=>[
176
+ _cache[3] || (_cache[3] = _createElementVNode("h5", {
177
+ class: "g-text-12 g-mb-4"
178
+ }, " 其他原因 ", -1 /* HOISTED */ )),
179
+ _createVNode(RenderAutoHeightTextarea, {
180
+ placeholder: "说出你的想法",
181
+ height: 74,
182
+ width: 368,
183
+ "model-value": formData.value.comment,
184
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (value)=>formData.value.comment = value)
185
+ }, null, 8 /* PROPS */ , [
186
+ "model-value"
187
+ ])
188
+ ]),
189
+ _: 1 /* STABLE */ ,
190
+ __: [
191
+ 3
192
+ ]
193
+ })
194
+ ]),
195
+ _: 1 /* STABLE */
196
+ }, 8 /* PROPS */ , [
197
+ "loading"
198
+ ])
199
+ ]),
200
+ _: 1 /* STABLE */
194
201
  }, 8 /* PROPS */ , [
195
- "disabled"
202
+ "model"
196
203
  ]),
197
- _createVNode(_component_bk_button, {
198
- class: "g-width-88 g-ml-8",
199
- onClick: _withModifiers(handleClose, [
200
- "stop"
201
- ])
202
- }, {
203
- default: _withCtx(()=>_cache[5] || (_cache[5] = [
204
- _createTextVNode(" 取消 ")
205
- ])),
206
- _: 1 /* STABLE */ ,
207
- __: [
208
- 5
209
- ]
210
- })
204
+ _createElementVNode("section", _hoisted_4, [
205
+ _createVNode(_component_bk_button, {
206
+ class: "g-width-88",
207
+ theme: "primary",
208
+ disabled: !formData.value.comment && !(formData.value.labels && formData.value.labels.length > 0),
209
+ loading: submitting.value,
210
+ onClick: _withModifiers(handleSubmit, [
211
+ "stop"
212
+ ])
213
+ }, {
214
+ default: _withCtx(()=>_cache[4] || (_cache[4] = [
215
+ _createTextVNode(" 提交 ")
216
+ ])),
217
+ _: 1 /* STABLE */ ,
218
+ __: [
219
+ 4
220
+ ]
221
+ }, 8 /* PROPS */ , [
222
+ "disabled",
223
+ "loading"
224
+ ]),
225
+ _createVNode(_component_bk_button, {
226
+ class: "g-width-88 g-ml-8",
227
+ onClick: _withModifiers(handleClose, [
228
+ "stop"
229
+ ])
230
+ }, {
231
+ default: _withCtx(()=>_cache[5] || (_cache[5] = [
232
+ _createTextVNode(" 取消 ")
233
+ ])),
234
+ _: 1 /* STABLE */ ,
235
+ __: [
236
+ 5
237
+ ]
238
+ })
239
+ ])
240
+ ])), [
241
+ [
242
+ _unref(vClickoutside),
243
+ handleClickOutside
244
+ ]
211
245
  ])
212
246
  ]),
213
247
  default: _withCtx(()=>[
214
248
  _createElementVNode("span", {
215
249
  onClick: _cache[0] || (_cache[0] = _withModifiers(($event)=>handleClick(5), [
216
250
  "stop"
217
- ]))
251
+ ])),
252
+ class: "select-options"
218
253
  }, [
219
254
  _renderSlot(_ctx.$slots, "like", {}, ()=>[
220
255
  _withDirectives(_createElementVNode("i", {
221
256
  class: _normalizeClass([
222
- 'bkaidev-icon g-hover-text-blue g-cursor-pointer',
257
+ 'bkaidev-icon g-hover-text-blue g-cursor-pointer g-mr-6',
223
258
  formData.value.rate === 5 ? 'g-text-blue bkaidev-like' : 'g-text-gray bkaidev-unlike'
224
259
  ])
225
260
  }, null, 2 /* CLASS */ ), [
@@ -236,7 +271,8 @@ export default /*@__PURE__*/ _defineComponent({
236
271
  _createElementVNode("span", {
237
272
  onClick: _cache[1] || (_cache[1] = _withModifiers(($event)=>handleClick(1), [
238
273
  "stop"
239
- ]))
274
+ ])),
275
+ class: "select-options"
240
276
  }, [
241
277
  _renderSlot(_ctx.$slots, "dislike", {}, ()=>[
242
278
  _withDirectives(_createElementVNode("i", {
@@ -1,19 +1,19 @@
1
1
 
2
- .dislike-icon[data-v-ymbxsepp] {
2
+ .dislike-icon[data-v-l9181fmf] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-ymbxsepp] {
5
+ .option-items[data-v-l9181fmf] {
6
6
  padding: 1px 8px;
7
7
  background-color: #F0F1F5;
8
8
  border-radius: 2px;
9
9
  }
10
- .option-items[data-v-ymbxsepp]:hover {
10
+ .option-items[data-v-l9181fmf]:hover {
11
11
  background-color: #E1ECFF;
12
12
  color: #3A84FF;
13
13
  }
14
- .option-items-selected[data-v-ymbxsepp]{
14
+ .option-items-selected[data-v-l9181fmf]{
15
15
  background-color: #E1ECFF;
16
16
  }
17
- [data-v-ymbxsepp] .bk-form-item {
17
+ [data-v-l9181fmf] .bk-form-item {
18
18
  margin-bottom: 17px;
19
19
  }
@@ -13,10 +13,12 @@ type __VLS_Slots = {} & {
13
13
  } & {
14
14
  dislike?: (props: typeof __VLS_8) => any;
15
15
  };
16
- declare const __VLS_component: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- "update-session-content-list": (...args: any[]) => void;
16
+ declare const __VLS_component: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ close: () => any;
18
+ "update-session-content-list": () => any;
18
19
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
19
- "onUpdate-session-content-list"?: (...args: any[]) => any;
20
+ onClose?: () => any;
21
+ "onUpdate-session-content-list"?: () => any;
20
22
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
23
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
22
24
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ymbxsepp";
2
+ script.__scopeId = "data-v-l9181fmf";
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-y3emqoxe] {
2
+ .router-tab[data-v-ptmrappa] {
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-y3emqoxe] {
9
+ .router-tab a[data-v-ptmrappa] {
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-y3emqoxe] {
18
+ .router-tab a.router-link-exact-active[data-v-ptmrappa] {
19
19
  color: #3A84FF;
20
20
  border-bottom: 2px solid #3A84FF;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-y3emqoxe";
2
+ script.__scopeId = "data-v-ptmrappa";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -181,7 +181,11 @@ import { transferResourcePermission } from './permission.ts.js';
181
181
  generate_type: data === null || data === void 0 ? void 0 : data.generateType,
182
182
  page: data === null || data === void 0 ? void 0 : data.page,
183
183
  limit: data === null || data === void 0 ? void 0 : data.limit,
184
- order_by: data === null || data === void 0 ? void 0 : data.order_by,
184
+ order_by: (data === null || data === void 0 ? void 0 : data.order_by) ? ({
185
+ datasetItemCount: 'dataset_item_count',
186
+ datasetItemUnreviewedCount: 'dataset_item_unreviewed_count',
187
+ createdAt: 'created_at'
188
+ })[data.order_by] : undefined,
185
189
  order_method: data === null || data === void 0 ? void 0 : data.order_method
186
190
  };
187
191
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.18-beta.5",
3
+ "version": "0.1.18-beta.7",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",