@blueking/ai-ui-sdk 0.1.10-beta.4 → 0.1.10-beta.6

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 (63) 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-checkbox/index.vue.css +9 -9
  6. package/dist/components/render-checkbox/index.vue.js +1 -1
  7. package/dist/components/render-choose-tag/index.script.vue.js.js +176 -4
  8. package/dist/components/render-choose-tag/index.vue.css +19 -12
  9. package/dist/components/render-choose-tag/index.vue.js +1 -1
  10. package/dist/components/render-collapse/index.vue.css +2 -2
  11. package/dist/components/render-collapse/index.vue.js +1 -1
  12. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  13. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  14. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  15. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +2 -7
  17. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  18. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  19. package/dist/components/render-dataset/components/operation-record/view-op-result/index.script.vue.js.js +1 -7
  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/footer.vue.css +1 -1
  25. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  28. package/dist/components/render-dataset/components/review-dataset-data/index.script.vue.js.js +1 -1
  29. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  30. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  31. package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +4 -0
  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/components/table/index.script.vue.js +0 -5
  35. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  36. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  37. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  38. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  39. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  40. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  41. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  42. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  43. package/dist/components/render-file-card/index.vue.css +11 -11
  44. package/dist/components/render-file-card/index.vue.js +1 -1
  45. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  46. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  47. package/dist/components/render-header/index.vue.css +5 -5
  48. package/dist/components/render-header/index.vue.js +1 -1
  49. package/dist/components/render-router-tab/index.vue.css +3 -3
  50. package/dist/components/render-router-tab/index.vue.js +1 -1
  51. package/dist/css/fonts/iconcool.eot +0 -0
  52. package/dist/css/fonts/iconcool.svg +3 -0
  53. package/dist/css/fonts/iconcool.ttf +0 -0
  54. package/dist/css/fonts/iconcool.woff +0 -0
  55. package/dist/css/iconcool.js +1 -1
  56. package/dist/css/style.css +3 -0
  57. package/dist/hooks/use-form-rule.ts.js +101 -0
  58. package/dist/hooks/use-meta-http.ts.js +1 -1
  59. package/dist/http/helper/dataset.ts.js +1 -0
  60. package/dist/types/dataset.d.ts +2 -0
  61. package/dist/types/enum.d.ts +2 -1
  62. package/dist/types/enum.ts.js +1 -0
  63. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-thfre1fd] {
2
+ .aside-home[data-v-1n7l0bya] {
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-thfre1fd] .aside-item {
9
+ [data-v-1n7l0bya] .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-thfre1fd] .aside-item.is-tab {
19
+ [data-v-1n7l0bya] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-thfre1fd] .aside-item.is-tab:hover {
24
+ [data-v-1n7l0bya] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-thfre1fd] .aside-item.active {
27
+ [data-v-1n7l0bya] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-thfre1fd] .aside-item.active .tab-num {
32
+ [data-v-1n7l0bya] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-thfre1fd] .aside-item.active .active-text {
36
+ [data-v-1n7l0bya] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-thfre1fd] .aside-item .tab-name {
39
+ [data-v-1n7l0bya] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-thfre1fd] .aside-item .tab-num {
42
+ [data-v-1n7l0bya] .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-thfre1fd";
2
+ script.__scopeId = "data-v-1n7l0bya";
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-hdfut0uq] {
2
+ .send-container[data-v-ihi7l73t] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-hdfut0uq]:has(textarea:focus) {
5
+ .send-container[data-v-ihi7l73t]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-hdfut0uq] {
8
+ .send-container:hover .send-clear[data-v-ihi7l73t] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-hdfut0uq] {
11
+ .send-input[data-v-ihi7l73t] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-hdfut0uq]:has(textarea:focus) {
16
+ .send-input[data-v-ihi7l73t]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-hdfut0uq] textarea {
19
+ .send-input[data-v-ihi7l73t] 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-hdfut0uq] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-ihi7l73t] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-hdfut0uq] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-ihi7l73t] 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-hdfut0uq] textarea::placeholder {
34
+ .send-input[data-v-ihi7l73t] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-hdfut0uq] {
37
+ .send-clear[data-v-ihi7l73t] {
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-hdfut0uq]:hover {
46
+ .send-clear[data-v-ihi7l73t]: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-hdfut0uq";
2
+ script.__scopeId = "data-v-ihi7l73t";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .checkbox[data-v-cfkus1ng] {
2
+ .checkbox[data-v-5a069ur1] {
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-cfkus1ng] {
11
+ .checkbox.disabled[data-v-5a069ur1] {
12
12
  cursor: not-allowed;
13
13
  background: #fafbfd;
14
14
  border-color: #dcdee5;
15
15
  }
16
- .checkbox.disabled.checked[data-v-cfkus1ng] {
16
+ .checkbox.disabled.checked[data-v-5a069ur1] {
17
17
  background-color: #a3c5fd;
18
18
  border-color: #a3c5fd;
19
19
  }
20
- .checkbox.disabled.indeterminate[data-v-cfkus1ng] {
20
+ .checkbox.disabled.indeterminate[data-v-5a069ur1] {
21
21
  background-color: #fafbfd;
22
22
  border-color: #dcdee5;
23
23
  }
24
- .checkbox.disabled.indeterminate[data-v-cfkus1ng]:after {
24
+ .checkbox.disabled.indeterminate[data-v-5a069ur1]:after {
25
25
  background: #dcdee5;
26
26
  }
27
- .checkbox.checked[data-v-cfkus1ng] {
27
+ .checkbox.checked[data-v-5a069ur1] {
28
28
  background-color: #3a84ff;
29
29
  border: 1px solid #3a84ff;
30
30
  }
31
- .checkbox.checked[data-v-cfkus1ng]:after {
31
+ .checkbox.checked[data-v-5a069ur1]: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-cfkus1ng] {
44
+ .checkbox.indeterminate[data-v-5a069ur1] {
45
45
  background-color: #3a84ff;
46
46
  border: 1px solid #3a84ff;
47
47
  }
48
- .checkbox.indeterminate[data-v-cfkus1ng]:after {
48
+ .checkbox.indeterminate[data-v-5a069ur1]: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-cfkus1ng";
2
+ script.__scopeId = "data-v-5a069ur1";
3
3
  script.__file = "./src/components/render-checkbox/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,6 +1,41 @@
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
+ try {
3
+ var info = gen[key](arg);
4
+ var value = info.value;
5
+ } catch (error) {
6
+ reject(error);
7
+ return;
8
+ }
9
+ if (info.done) {
10
+ resolve(value);
11
+ } else {
12
+ Promise.resolve(value).then(_next, _throw);
13
+ }
14
+ }
15
+ function _async_to_generator(fn) {
16
+ return function() {
17
+ var self = this, args = arguments;
18
+ return new Promise(function(resolve, reject) {
19
+ var gen = fn.apply(self, args);
20
+ function _next(value) {
21
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
22
+ }
23
+ function _throw(err) {
24
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
25
+ }
26
+ _next(undefined);
27
+ });
28
+ };
29
+ }
1
30
  import { defineComponent as _defineComponent } from 'vue';
2
- import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue";
3
- import { onBeforeMount, ref, toRef, watch } from 'vue';
31
+ import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, unref as _unref, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, createBlock as _createBlock } from "vue";
32
+ const _hoisted_1 = {
33
+ key: 0,
34
+ class: "g-flex-row plus-tag-input render-tag"
35
+ };
36
+ import { Done, Error } from 'bkui-vue/lib/icon';
37
+ import { nextTick, onBeforeMount, ref, toRef, watch } from 'vue';
38
+ import { useFormRule } from '../../hooks/use-form-rule.ts.js';
4
39
  import { useMetaHttp } from '../../hooks/use-meta-http.ts.js';
5
40
  export default /*@__PURE__*/ _defineComponent({
6
41
  props: {
@@ -15,12 +50,77 @@ export default /*@__PURE__*/ _defineComponent({
15
50
  setup (__props, { emit: __emit }) {
16
51
  const props = __props;
17
52
  const emits = __emit;
18
- const { getTags } = useMetaHttp(props.apiPrefix, toRef(props, 'spaceId'));
53
+ const { getLengthRule } = useFormRule(props.apiPrefix, toRef(props, 'spaceId'));
54
+ const { getTags, plusTag, checkTag } = useMetaHttp(props.apiPrefix, toRef(props, 'spaceId'));
55
+ const isShowEdit = ref(false);
56
+ const isPulsingTag = ref(false);
57
+ const tempTagName = ref('');
58
+ const tagRef = ref();
59
+ const tagFormRef = ref();
19
60
  const isLoadingTag = ref(false);
20
61
  const tags = ref([]);
62
+ const checkTagRule = {
63
+ validator: (value)=>checkTag(handleGetTagNames(value)).then(()=>true).catch(()=>false),
64
+ message: '标签名称重复',
65
+ trigger: 'change'
66
+ };
67
+ const tagRules = {
68
+ tempTagName: [
69
+ checkTagRule,
70
+ getLengthRule('标签名称', 16)
71
+ ]
72
+ };
21
73
  const handleChange = (val)=>{
22
74
  emits('update:modelValue', val);
23
75
  };
76
+ const handleTagKeyDown = (value, event)=>{
77
+ if (event.keyCode === 13 || event.key === 'Enter') {
78
+ handlePlusTag();
79
+ }
80
+ };
81
+ const handleGetTagNames = (tagName)=>{
82
+ const tagGroups = tagName.split('、');
83
+ return tagGroups.reduce((acc, cur)=>{
84
+ if (cur.trim()) {
85
+ const tagNames = cur.split('/').filter(Boolean);
86
+ acc.push(tagNames);
87
+ }
88
+ return acc;
89
+ }, []);
90
+ };
91
+ const handlePlusTag = function() {
92
+ var _ref = _async_to_generator(function*() {
93
+ try {
94
+ isPulsingTag.value = true;
95
+ const tagNames = handleGetTagNames(tempTagName.value);
96
+ yield tagFormRef.value.validate();
97
+ yield plusTag(tagNames);
98
+ emits('update:modelValue', [
99
+ ...props.modelValue,
100
+ ...tagNames
101
+ ]);
102
+ handleGetTags();
103
+ handleHidePlusTag();
104
+ } catch (error) {
105
+ console.error(error.message || error);
106
+ } finally{
107
+ isPulsingTag.value = false;
108
+ }
109
+ });
110
+ return function handlePlusTag() {
111
+ return _ref.apply(this, arguments);
112
+ };
113
+ }();
114
+ const handleShowPlusTag = ()=>{
115
+ isShowEdit.value = true;
116
+ nextTick(()=>{
117
+ tagRef.value.focus();
118
+ });
119
+ };
120
+ const handleHidePlusTag = ()=>{
121
+ isShowEdit.value = false;
122
+ tempTagName.value = '';
123
+ };
24
124
  const handleGetTags = ()=>{
25
125
  isLoadingTag.value = true;
26
126
  getTags().then((result)=>{
@@ -32,17 +132,89 @@ export default /*@__PURE__*/ _defineComponent({
32
132
  watch(()=>props.spaceId, handleGetTags);
33
133
  onBeforeMount(handleGetTags);
34
134
  return (_ctx, _cache)=>{
135
+ const _component_bk_input = _resolveComponent("bk-input");
136
+ const _component_bk_form_item = _resolveComponent("bk-form-item");
137
+ const _component_bk_form = _resolveComponent("bk-form");
35
138
  const _component_bk_cascader = _resolveComponent("bk-cascader");
139
+ const _directive_bkloading = _resolveDirective("bkloading");
36
140
  return _openBlock(), _createBlock(_component_bk_cascader, {
37
141
  filterable: "",
38
142
  "id-key": "tagName",
39
143
  "name-key": "tagName",
144
+ "ext-cls": "tag-cascader",
40
145
  multiple: true,
41
146
  loading: isLoadingTag.value,
42
147
  list: tags.value,
43
148
  "model-value": _ctx.modelValue,
44
149
  "onUpdate:modelValue": handleChange
45
- }, null, 8 /* PROPS */ , [
150
+ }, {
151
+ extension: _withCtx(()=>[
152
+ isShowEdit.value ? (_openBlock(), _createElementBlock("section", _hoisted_1, [
153
+ _createVNode(_component_bk_form, {
154
+ class: "plus-tag-form",
155
+ ref_key: "tagFormRef",
156
+ ref: tagFormRef,
157
+ model: {
158
+ tempTagName: tempTagName.value
159
+ },
160
+ rules: tagRules
161
+ }, {
162
+ default: _withCtx(()=>[
163
+ _createVNode(_component_bk_form_item, {
164
+ class: "plus-tag-form-item",
165
+ "label-width": 0,
166
+ property: "tempTagName",
167
+ "error-display-type": "tooltips",
168
+ required: ""
169
+ }, {
170
+ default: _withCtx(()=>[
171
+ _createVNode(_component_bk_input, {
172
+ modelValue: tempTagName.value,
173
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tempTagName.value = $event),
174
+ maxlength: 20,
175
+ ref_key: "tagRef",
176
+ ref: tagRef,
177
+ placeholder: "请输入标签名称",
178
+ onKeydown: handleTagKeyDown
179
+ }, null, 8 /* PROPS */ , [
180
+ "modelValue"
181
+ ])
182
+ ]),
183
+ _: 1 /* STABLE */
184
+ })
185
+ ]),
186
+ _: 1 /* STABLE */
187
+ }, 8 /* PROPS */ , [
188
+ "model"
189
+ ]),
190
+ _withDirectives(_createVNode(_unref(Done), {
191
+ class: "plus-tag-done",
192
+ onClick: handlePlusTag
193
+ }, null, 512 /* NEED_PATCH */ ), [
194
+ [
195
+ _directive_bkloading,
196
+ {
197
+ loading: isPulsingTag.value
198
+ }
199
+ ]
200
+ ]),
201
+ _createVNode(_unref(Error), {
202
+ class: "plus-tag-error",
203
+ onClick: handleHidePlusTag
204
+ })
205
+ ])) : (_openBlock(), _createElementBlock("span", {
206
+ key: 1,
207
+ class: "plus-tag render-tag",
208
+ onClick: handleShowPlusTag
209
+ }, _cache[1] || (_cache[1] = [
210
+ _createElementVNode("i", {
211
+ class: "ai-ui-sdk-icon ai-ui-sdk-plus-circle g-text-14 g-mr-6"
212
+ }, null, -1 /* HOISTED */ ),
213
+ _createTextVNode(" 新建标签 ")
214
+ ])))
215
+ ]),
216
+ _: 1 /* STABLE */
217
+ }, 8 /* PROPS */ , [
46
218
  "loading",
47
219
  "list",
48
220
  "model-value"
@@ -1,39 +1,46 @@
1
1
 
2
- .plus-tag-input[data-v-0j1bkbi9] {
2
+ .plus-tag-input[data-v-uev584cx] {
3
3
  padding: 7px 12px;
4
- width: 100%;
4
+ height: 40px;
5
+ background: #FAFBFD;
6
+ border-top: 1px solid #DCDEE5;
5
7
  }
6
- .plus-tag-input .plus-tag-done[data-v-0j1bkbi9] {
8
+ .plus-tag-input .plus-tag-done[data-v-uev584cx] {
7
9
  cursor: pointer;
8
10
  font-size: 22px;
9
11
  color: #2DCB56;
10
12
  margin: 0 5px 0 10px;
11
13
  }
12
- .plus-tag-input .plus-tag-error[data-v-0j1bkbi9] {
14
+ .plus-tag-input .plus-tag-error[data-v-uev584cx] {
13
15
  cursor: pointer;
14
16
  font-size: 16px;
15
17
  color: #C4C6CC;
16
18
  margin-right: 5px;
17
19
  }
18
- .plus-tag-input .plus-tag-form[data-v-0j1bkbi9] {
20
+ .plus-tag-input .plus-tag-form[data-v-uev584cx] {
19
21
  flex: 1;
20
22
  }
21
- .plus-tag-input .plus-tag-form-item[data-v-0j1bkbi9] {
23
+ .plus-tag-input .plus-tag-form-item[data-v-uev584cx] {
22
24
  margin-bottom: 0;
23
25
  }
24
- .plus-tag[data-v-0j1bkbi9] {
26
+ .plus-tag[data-v-uev584cx] {
25
27
  cursor: pointer;
26
28
  width: 100%;
29
+ height: 40px;
30
+ background: #FAFBFD;
31
+ border-top: 1px solid #DCDEE5;
32
+ border-radius: 0 0 2px 2px;
27
33
  display: flex;
28
34
  justify-content: center;
29
35
  align-items: center;
30
36
  font-size: 12px;
31
37
  line-height: 20px;
32
38
  }
33
- .plus-tag .bkaidev-plus-circle[data-v-0j1bkbi9] {
34
- font-size: 14px;
35
- margin-right: 6px;
36
- }
37
- .plus-tag[data-v-0j1bkbi9]:hover {
39
+ .plus-tag[data-v-uev584cx]:hover {
38
40
  color: #3A84FF;
39
41
  }
42
+
43
+
44
+ .bk-cascader-popover:has(.render-tag) .bk-cascader-node {
45
+ width: 240px !important;
46
+ }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-0j1bkbi9";
2
+ script.__scopeId = "data-v-uev584cx";
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,10 @@
1
1
 
2
- .collapse-title[data-v-qw5wps5f] {
2
+ .collapse-title[data-v-zy0afabo] {
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-qw5wps5f] {
8
+ .collapse-title .is-hidden[data-v-zy0afabo] {
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-qw5wps5f";
2
+ script.__scopeId = "data-v-zy0afabo";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-wfg2qurw] {
2
+ .content[data-v-lys5woyq] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .data-set-edit-slider .value-content[data-v-wfg2qurw] {
7
+ .data-set-edit-slider .value-content[data-v-lys5woyq] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-wfg2qurw] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-lys5woyq] .bk-sideslider-title {
13
13
  justify-content: space-between;
14
14
  width: 100%;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-wfg2qurw";
2
+ script.__scopeId = "data-v-lys5woyq";
3
3
  script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,18 +1,18 @@
1
1
 
2
- .content[data-v-33ebkza1] {
2
+ .content[data-v-g4xpbsff] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-33ebkza1] {
6
+ .content .toolbar[data-v-g4xpbsff] {
7
7
  margin: 16px 0;
8
8
  display: flex;
9
9
  align-items: center;
10
10
  justify-content: right;
11
11
  gap: 8px;
12
12
  }
13
- .content .toolbar .record-search[data-v-33ebkza1] {
13
+ .content .toolbar .record-search[data-v-g4xpbsff] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-33ebkza1] {
16
+ .content .toolbar .record-data-picker[data-v-g4xpbsff] {
17
17
  width: 260px;
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-33ebkza1";
2
+ script.__scopeId = "data-v-g4xpbsff";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -38,7 +38,7 @@ import { ref, toRef, watch } from 'vue';
38
38
  import ViewOpResult from '../view-op-result/index.vue.js';
39
39
  import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
40
40
  import useTable from '../../../../../hooks/use-table.ts.js';
41
- import { DatasetDataOperatRecordActionId, DatasetDataOperatRecordResultCode } from '../../../../../types/enum.ts.js';
41
+ import { DatasetDataOperatRecordResultCode } from '../../../../../types/enum.ts.js';
42
42
  export default /*@__PURE__*/ _defineComponent({
43
43
  props: {
44
44
  search: {},
@@ -52,11 +52,6 @@ export default /*@__PURE__*/ _defineComponent({
52
52
  [DatasetDataOperatRecordResultCode.Failed]: '失败',
53
53
  [DatasetDataOperatRecordResultCode.Success]: '成功'
54
54
  };
55
- const actionIdMap = {
56
- [DatasetDataOperatRecordActionId.AddDatasetItem]: '新增数据',
57
- [DatasetDataOperatRecordActionId.EditDatasetItem]: '编辑数据',
58
- [DatasetDataOperatRecordActionId.DeleteDatasetItem]: '删除数据'
59
- };
60
55
  const isShowView = ref(false);
61
56
  const viewData = ref();
62
57
  const handleGetOperateRecordList = (params)=>{
@@ -107,7 +102,7 @@ export default /*@__PURE__*/ _defineComponent({
107
102
  width: "142"
108
103
  }, {
109
104
  default: _withCtx(({ row })=>[
110
- _createTextVNode(_toDisplayString(actionIdMap[row.actionId]), 1 /* TEXT */ )
105
+ _createTextVNode(_toDisplayString(row.actionName), 1 /* TEXT */ )
111
106
  ]),
112
107
  _: 1 /* STABLE */
113
108
  }),
@@ -1,5 +1,5 @@
1
1
 
2
- .text[data-v-nsyhpfwe] {
2
+ .text[data-v-nuel0to3] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-nsyhpfwe";
2
+ script.__scopeId = "data-v-nuel0to3";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -10,7 +10,6 @@ const _hoisted_3 = {
10
10
  class: "value-content g-white-space-pre-line"
11
11
  };
12
12
  import Collapse from '../../../../render-collapse/index.vue.js';
13
- import { DatasetDataOperatRecordActionId } from '../../../../../types/enum.ts.js';
14
13
  export default /*@__PURE__*/ _defineComponent({
15
14
  props: {
16
15
  isShow: {
@@ -23,11 +22,6 @@ export default /*@__PURE__*/ _defineComponent({
23
22
  ],
24
23
  setup (__props, { emit: __emit }) {
25
24
  const emits = __emit;
26
- const actionIdMap = {
27
- [DatasetDataOperatRecordActionId.AddDatasetItem]: '新增数据',
28
- [DatasetDataOperatRecordActionId.EditDatasetItem]: '编辑数据',
29
- [DatasetDataOperatRecordActionId.DeleteDatasetItem]: '删除数据'
30
- };
31
25
  const handleClose = ()=>{
32
26
  emits('update:isShow', false);
33
27
  return true;
@@ -43,7 +37,7 @@ export default /*@__PURE__*/ _defineComponent({
43
37
  header: _withCtx(()=>[
44
38
  _createElementVNode("div", null, [
45
39
  _cache[0] || (_cache[0] = _createElementVNode("span", null, "查看操作结果", -1 /* HOISTED */ )),
46
- _createElementVNode("span", _hoisted_1, _toDisplayString(`操作类型: ${actionIdMap[_ctx.data.actionId]}`), 1 /* TEXT */ )
40
+ _createElementVNode("span", _hoisted_1, _toDisplayString(`操作类型: ${_ctx.data.actionName}`), 1 /* TEXT */ )
47
41
  ])
48
42
  ]),
49
43
  default: _withCtx(()=>[
@@ -1,10 +1,10 @@
1
1
 
2
- .content[data-v-7nvir2e9] {
2
+ .content[data-v-lzromk9b] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .content .value-content[data-v-7nvir2e9] {
7
+ .content .value-content[data-v-lzromk9b] {
8
8
  margin-top: 8px;
9
9
  padding: 16px;
10
10
  border: 1px solid #DCDEE5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-7nvir2e9";
2
+ script.__scopeId = "data-v-lzromk9b";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,8 +1,8 @@
1
1
 
2
- .dataset-data-content[data-v-gw52npk0] {
2
+ .dataset-data-content[data-v-4ukk3hhq] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .dataset-data-slider[data-v-gw52npk0] .bk-modal-content {
6
+ .dataset-data-slider[data-v-4ukk3hhq] .bk-modal-content {
7
7
  scrollbar-gutter: inherit !important;
8
8
  }