@blueking/ai-ui-sdk 0.1.0-beta.6 → 0.1.0-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 (86) 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-collapse/index.vue.css +2 -2
  6. package/dist/components/render-collapse/index.vue.js +1 -1
  7. package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +24 -15
  8. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -12
  9. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  10. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  11. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  12. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  13. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  14. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  15. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js +2 -2
  17. package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +3 -3
  18. package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js.js +11 -4
  19. package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.css +3 -3
  20. package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.js +1 -1
  21. package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +3 -3
  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.d.ts +3 -2
  24. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  25. package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +6 -1
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +1 -0
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +3 -2
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.d.ts +1 -0
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  31. package/dist/components/render-dataset/components/plus-dataset-data/form/index.script.vue.js.js +11 -4
  32. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  33. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +1 -0
  34. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  35. package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js.js +51 -2
  36. package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.css +8 -0
  37. package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.js +1 -0
  38. package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +6 -1
  39. package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
  40. package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +1 -1
  41. package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +1 -4
  42. package/dist/components/render-dataset/components/search-operation-record/index.script.vue.js.js +1 -5
  43. package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
  44. package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
  45. package/dist/components/render-dataset/index.script.vue.js.js +18 -4
  46. package/dist/components/render-dataset/index.vue.css +1 -1
  47. package/dist/components/render-dataset/index.vue.js +1 -1
  48. package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +29 -9
  49. package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js.js +1 -0
  50. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  51. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  52. package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +5 -0
  53. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  54. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  55. package/dist/components/render-dataset-list/components/main.script.vue.js.js +15 -4
  56. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  57. package/dist/components/render-dataset-list/components/main.vue.d.ts +6 -1
  58. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  59. package/dist/components/render-dataset-list/components/table.script.vue.js.js +46 -0
  60. package/dist/components/render-dataset-list/index.script.vue.js.js +10 -2
  61. package/dist/components/render-dataset-list/index.vue.d.ts +6 -1
  62. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  63. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  64. package/dist/components/render-file-card/index.vue.css +11 -11
  65. package/dist/components/render-file-card/index.vue.js +1 -1
  66. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  67. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  68. package/dist/components/render-header/index.vue.css +5 -5
  69. package/dist/components/render-header/index.vue.js +1 -1
  70. package/dist/components/render-router-tab/index.vue.css +3 -3
  71. package/dist/components/render-router-tab/index.vue.js +1 -1
  72. package/dist/css/fonts/iconcool.eot +0 -0
  73. package/dist/css/fonts/iconcool.svg +3 -0
  74. package/dist/css/fonts/iconcool.ttf +0 -0
  75. package/dist/css/fonts/iconcool.woff +0 -0
  76. package/dist/css/iconcool.js +1 -1
  77. package/dist/css/style.css +3 -0
  78. package/dist/hooks/use-click-proxy.ts.js +1 -1
  79. package/dist/hooks/use-dataset-http.d.ts +2 -2
  80. package/dist/hooks/use-dataset-http.ts.js +5 -7
  81. package/dist/http/fetch/error-interceptor.ts.js +7 -11
  82. package/dist/http/helper/agent.d.ts +1 -1
  83. package/dist/http/helper/dataset.d.ts +12 -1
  84. package/dist/http/helper/dataset.ts.js +19 -1
  85. package/dist/types/dataset.d.ts +14 -0
  86. package/package.json +2 -2
@@ -46,7 +46,10 @@ export default /*@__PURE__*/ _defineComponent({
46
46
  type: Boolean
47
47
  },
48
48
  apiPrefix: {},
49
- datasetData: {}
49
+ datasetData: {},
50
+ disabledChooseDataset: {
51
+ type: Boolean
52
+ }
50
53
  },
51
54
  emits: [
52
55
  "update:isShow",
@@ -110,12 +113,14 @@ export default /*@__PURE__*/ _defineComponent({
110
113
  }, {
111
114
  footer: _withCtx(()=>[
112
115
  _createVNode(RenderFooter, {
113
- validate: validate,
114
116
  "dataset-data": renderDatasetData.value,
117
+ "api-prefix": _ctx.apiPrefix,
118
+ validate: validate,
115
119
  onClose: handleClose,
116
120
  onSuccessConfirm: handleSuccess
117
121
  }, null, 8 /* PROPS */ , [
118
- "dataset-data"
122
+ "dataset-data",
123
+ "api-prefix"
119
124
  ])
120
125
  ]),
121
126
  default: _withCtx(()=>[
@@ -150,11 +155,13 @@ export default /*@__PURE__*/ _defineComponent({
150
155
  modelValue: renderDatasetData.value,
151
156
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event)=>renderDatasetData.value = $event),
152
157
  "api-prefix": _ctx.apiPrefix,
158
+ "disabled-choose-dataset": _ctx.disabledChooseDataset,
153
159
  ref_key: "datasetRef",
154
160
  ref: datasetRef
155
161
  }, null, 8 /* PROPS */ , [
156
162
  "modelValue",
157
- "api-prefix"
163
+ "api-prefix",
164
+ "disabled-choose-dataset"
158
165
  ])
159
166
  ])) : _createCommentVNode("v-if", true)
160
167
  ]),
@@ -1,7 +1,7 @@
1
1
 
2
- .plus-dataset-data[data-v-ibl12tyq] {
2
+ .plus-dataset-data[data-v-8huad9r0] {
3
3
  padding: 20px 24px;
4
4
  }
5
- .plus-dataset-sideslider[data-v-ibl12tyq] .bk-modal-content {
5
+ .plus-dataset-sideslider[data-v-8huad9r0] .bk-modal-content {
6
6
  scrollbar-gutter: inherit !important;
7
7
  }
@@ -3,6 +3,7 @@ interface IProps {
3
3
  isShow: boolean;
4
4
  apiPrefix: string;
5
5
  datasetData?: Partial<IDatasetDataForm>;
6
+ disabledChooseDataset?: boolean;
6
7
  }
7
8
  declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
9
  "update:isShow": (val: boolean) => any;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ibl12tyq";
2
+ script.__scopeId = "data-v-8huad9r0";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -51,7 +51,22 @@ function _object_spread_props(target, source) {
51
51
  return target;
52
52
  }
53
53
  import { defineComponent as _defineComponent } from 'vue';
54
- import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
54
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createTextVNode as _createTextVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
55
+ const _hoisted_1 = {
56
+ class: "g-flex-row g-justify-between"
57
+ };
58
+ const _hoisted_2 = {
59
+ class: "bk-form-label"
60
+ };
61
+ const _hoisted_3 = {
62
+ class: "g-text-blue"
63
+ };
64
+ const _hoisted_4 = {
65
+ class: /*@__PURE__*/ _normalizeClass([
66
+ 'ai-ui-sdk-icon ai-ui-sdk-info-line',
67
+ 'g-cursor-pointer g-text-14 g-mr-2'
68
+ ])
69
+ };
55
70
  import { ref, useTemplateRef, watch } from 'vue';
56
71
  import AutoHeightTextarea from '../../../../render-auto-height-textarea/index.vue.js';
57
72
  import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
@@ -140,6 +155,7 @@ export default /*@__PURE__*/ _defineComponent({
140
155
  const _component_bk_form_item = _resolveComponent("bk-form-item");
141
156
  const _component_bk_form = _resolveComponent("bk-form");
142
157
  const _component_bk_loading = _resolveComponent("bk-loading");
158
+ const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
143
159
  return _ctx.modelValue.sourceType === _unref(DatasetDataSourceType).ManualImport ? (_openBlock(), _createBlock(_component_bk_loading, {
144
160
  key: 0,
145
161
  loading: loading.value
@@ -158,13 +174,46 @@ export default /*@__PURE__*/ _defineComponent({
158
174
  key: key,
159
175
  label: key,
160
176
  property: `data.${key}`,
177
+ class: "full-screen-wrap g-no-validate-form-item",
161
178
  required: ""
162
179
  }, {
180
+ label: _withCtx(()=>[
181
+ _createElementVNode("span", _hoisted_1, [
182
+ _createElementVNode("span", _hoisted_2, _toDisplayString(key), 1 /* TEXT */ ),
183
+ _createElementVNode("span", _hoisted_3, [
184
+ _withDirectives(_createElementVNode("i", _hoisted_4, null, 512 /* NEED_PATCH */ ), [
185
+ [
186
+ _directive_bk_tooltips,
187
+ {
188
+ content: schema.value[key],
189
+ boundary: 'parent'
190
+ }
191
+ ]
192
+ ]),
193
+ _cache[0] || (_cache[0] = _createTextVNode(" 示例 ")),
194
+ _cache[1] || (_cache[1] = _createElementVNode("i", {
195
+ class: _normalizeClass([
196
+ 'ai-ui-sdk-icon ai-ui-sdk-full-screen',
197
+ 'click-full-screen',
198
+ 'g-cursor-pointer g-text-14 g-ml-24 g-mr-2'
199
+ ])
200
+ }, null, -1 /* HOISTED */ )),
201
+ _cache[2] || (_cache[2] = _createElementVNode("i", {
202
+ class: _normalizeClass([
203
+ 'ai-ui-sdk-icon ai-ui-sdk-un-full-screen',
204
+ 'click-un-full-screen',
205
+ 'g-cursor-pointer g-text-14 g-ml-24 g-mr-2'
206
+ ])
207
+ }, null, -1 /* HOISTED */ )),
208
+ _cache[3] || (_cache[3] = _createTextVNode(" 全屏 "))
209
+ ])
210
+ ])
211
+ ]),
163
212
  default: _withCtx(()=>[
164
213
  _createVNode(AutoHeightTextarea, {
165
214
  "model-value": _ctx.modelValue.data[key],
166
215
  placeholder: schema.value[key],
167
- height: 150,
216
+ height: 300,
168
217
  onInput: (value)=>handleUpdate(key, value)
169
218
  }, null, 8 /* PROPS */ , [
170
219
  "model-value",
@@ -0,0 +1,8 @@
1
+
2
+ .full-screen-wrap.full-screen.bk-form-item {
3
+ padding: 0 20px;
4
+ background: #fff;
5
+ }
6
+ .full-screen-wrap.full-screen.bk-form-item .bk-form-label {
7
+ float: none;
8
+ }
@@ -1,3 +1,4 @@
1
1
  import script from './manual.script.vue.js.js';
2
2
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/manual.vue";
3
+ import './manual.vue.css';
3
4
  export default script;
@@ -5,6 +5,9 @@ import RenderForm from './form/index.vue.js';
5
5
  export default /*@__PURE__*/ _defineComponent({
6
6
  props: {
7
7
  datasetData: {},
8
+ disabledChooseDataset: {
9
+ type: Boolean
10
+ },
8
11
  apiPrefix: {}
9
12
  },
10
13
  emits: [
@@ -39,11 +42,13 @@ export default /*@__PURE__*/ _defineComponent({
39
42
  "onUpdate:isShow": _cache[0] || (_cache[0] = ($event)=>isShow.value = $event),
40
43
  "dataset-data": _ctx.datasetData,
41
44
  "api-prefix": _ctx.apiPrefix,
45
+ "disabled-choose-dataset": _ctx.disabledChooseDataset,
42
46
  onSuccessConfirm: handleSuccessPlus
43
47
  }, null, 8 /* PROPS */ , [
44
48
  "is-show",
45
49
  "dataset-data",
46
- "api-prefix"
50
+ "api-prefix",
51
+ "disabled-choose-dataset"
47
52
  ])
48
53
  ], 64 /* STABLE_FRAGMENT */ );
49
54
  };
@@ -1,6 +1,7 @@
1
1
  import type { IDatasetDataForm } from '@/types/dataset';
2
2
  interface IProps {
3
3
  datasetData?: Partial<IDatasetDataForm>;
4
+ disabledChooseDataset?: boolean;
4
5
  apiPrefix: string;
5
6
  }
6
7
  declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -49,7 +49,7 @@ export default /*@__PURE__*/ _defineComponent({
49
49
  onBeforeMount(handleGetSchemaList);
50
50
  return (_ctx, _cache)=>{
51
51
  return _openBlock(), _createBlock(RenderSearchSelect, {
52
- placeholder: "数据集名称、数据集类型、组件、创建人",
52
+ placeholder: "按关键字搜索",
53
53
  data: data.value,
54
54
  "model-value": _ctx.modelValue,
55
55
  "onUpdate:modelValue": handleUpdate
@@ -30,7 +30,6 @@ export default /*@__PURE__*/ _defineComponent({
30
30
  ]
31
31
  }
32
32
  ]);
33
- const placeholder = ref('数据来源、');
34
33
  const handleUpdate = (modelValue)=>{
35
34
  emits('update:modelValue', modelValue);
36
35
  };
@@ -43,17 +42,15 @@ export default /*@__PURE__*/ _defineComponent({
43
42
  return acc;
44
43
  }, []);
45
44
  data.value.push(...searchSelectItems);
46
- placeholder.value += searchSelectItems.map((item)=>item.id).join('、');
47
45
  };
48
46
  onBeforeMount(handleInitData);
49
47
  return (_ctx, _cache)=>{
50
48
  return _openBlock(), _createBlock(RenderSearchSelect, {
51
- placeholder: placeholder.value,
49
+ placeholder: "按关键字搜索",
52
50
  data: data.value,
53
51
  "model-value": _ctx.modelValue,
54
52
  "onUpdate:modelValue": handleUpdate
55
53
  }, null, 8 /* PROPS */ , [
56
- "placeholder",
57
54
  "data",
58
55
  "model-value"
59
56
  ]);
@@ -14,10 +14,6 @@ export default /*@__PURE__*/ _defineComponent({
14
14
  setup (__props, { emit: __emit }) {
15
15
  const emits = __emit;
16
16
  const data = ref([
17
- {
18
- id: 'instanceId',
19
- name: 'ID'
20
- },
21
17
  {
22
18
  id: 'actionId',
23
19
  name: '操作类型',
@@ -64,7 +60,7 @@ export default /*@__PURE__*/ _defineComponent({
64
60
  };
65
61
  return (_ctx, _cache)=>{
66
62
  return _openBlock(), _createBlock(RenderSearchSelect, {
67
- placeholder: "ID、操作类型、操作状态、操作结果、操作人",
63
+ placeholder: "按关键字搜索",
68
64
  data: data.value,
69
65
  "model-value": _ctx.modelValue,
70
66
  "onUpdate:modelValue": handleUpdate
@@ -1,10 +1,10 @@
1
1
 
2
- .bkaidev-markdown[data-v-d2yaklnp] {
2
+ .bkaidev-markdown[data-v-350go9bt] {
3
3
  color: #3a84ff;
4
4
  }
5
- .bkaidev-wangye[data-v-d2yaklnp] {
5
+ .bkaidev-wangye[data-v-350go9bt] {
6
6
  color: #14A568;
7
7
  }
8
- .bkaidev-wenben[data-v-d2yaklnp] {
8
+ .bkaidev-wenben[data-v-350go9bt] {
9
9
  color: #979ba5;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-d2yaklnp";
2
+ script.__scopeId = "data-v-350go9bt";
3
3
  script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -6,7 +6,8 @@ const _hoisted_1 = {
6
6
  const _hoisted_2 = {
7
7
  class: "dataset-main"
8
8
  };
9
- import { onBeforeMount, provide, ref } from 'vue';
9
+ import { onBeforeMount, ref } from 'vue';
10
+ import { useRouter } from 'vue-router';
10
11
  import RenderAside from '../render-aside/index.vue.js';
11
12
  import RenderExpandCollapse from '../render-expand-collapse/index.vue.js';
12
13
  import { useDatasetHttp } from '../../hooks/use-dataset-http.ts.js';
@@ -16,7 +17,7 @@ export default /*@__PURE__*/ _defineComponent({
16
17
  },
17
18
  setup (__props) {
18
19
  const props = __props;
19
- provide('apiPrefix', props.apiPrefix);
20
+ const router = useRouter();
20
21
  const { getDatasetMineInfo } = useDatasetHttp(props.apiPrefix);
21
22
  const tabs = ref([
22
23
  {
@@ -41,6 +42,18 @@ export default /*@__PURE__*/ _defineComponent({
41
42
  loading.value = false;
42
43
  });
43
44
  };
45
+ const handleGoToDatasetData = (data)=>{
46
+ router.push({
47
+ name: 'dataset-detail-origin-data',
48
+ params: {
49
+ id: data.id
50
+ }
51
+ });
52
+ };
53
+ const handleSuccessPlusDataset = (data)=>{
54
+ handleGetDatasetMineInfo();
55
+ handleGoToDatasetData(data);
56
+ };
44
57
  onBeforeMount(handleGetDatasetMineInfo);
45
58
  return (_ctx, _cache)=>{
46
59
  const _component_router_view = _resolveComponent("router-view");
@@ -66,8 +79,9 @@ export default /*@__PURE__*/ _defineComponent({
66
79
  _createVNode(_component_router_view, null, {
67
80
  default: _withCtx(({ Component })=>[
68
81
  (_openBlock(), _createBlock(_resolveDynamicComponent(Component), {
69
- "tab-id": tabId.value
70
- }, null, 8 /* PROPS */ , [
82
+ "tab-id": tabId.value,
83
+ onSuccessPlusDataset: handleSuccessPlusDataset
84
+ }, null, 40 /* PROPS, NEED_HYDRATION */ , [
71
85
  "tab-id"
72
86
  ]))
73
87
  ]),
@@ -1,5 +1,5 @@
1
1
 
2
- .dataset-main[data-v-ge3zwymw] {
2
+ .dataset-main[data-v-izgluw7t] {
3
3
  flex: 1;
4
4
  width: calc(100vw - 300px);
5
5
  height: 100%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ge3zwymw";
2
+ script.__scopeId = "data-v-izgluw7t";
3
3
  script.__file = "./src/components/render-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,9 +1,7 @@
1
1
  import { defineComponent as _defineComponent } from 'vue';
2
- import { unref as _unref, createVNode as _createVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
3
- const _hoisted_1 = {
4
- class: "g-more-menu"
5
- };
2
+ import { unref as _unref, createVNode as _createVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createBlock as _createBlock } from "vue";
6
3
  import { AngleDown } from 'bkui-vue/lib/icon';
4
+ import { ref } from 'vue';
7
5
  import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
8
6
  export default /*@__PURE__*/ _defineComponent({
9
7
  props: {
@@ -18,6 +16,13 @@ export default /*@__PURE__*/ _defineComponent({
18
16
  const props = __props;
19
17
  const emits = __emit;
20
18
  const { batchDeleteDatasetData } = useDatasetHttp(props.apiPrefix);
19
+ const showMore = ref(false);
20
+ const handleShowMore = ()=>{
21
+ showMore.value = true;
22
+ };
23
+ const handleHideMore = ()=>{
24
+ showMore.value = false;
25
+ };
21
26
  const handleDeleteDatasetDatas = ()=>{
22
27
  batchDeleteDatasetData(props.selectedDatasetDatas.map((item)=>item.id)).then(()=>{
23
28
  emits('update:selectedDatasetDatas', []);
@@ -28,20 +33,29 @@ export default /*@__PURE__*/ _defineComponent({
28
33
  const _component_bk_button = _resolveComponent("bk-button");
29
34
  const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
30
35
  const _component_bk_popover = _resolveComponent("bk-popover");
36
+ const _directive_clickoutside = _resolveDirective("clickoutside");
31
37
  return _openBlock(), _createBlock(_component_bk_popover, {
32
38
  placement: "bottom-start",
33
39
  theme: "light",
34
- "render-type": "show",
35
40
  "ext-cls": "empty-padding",
36
- ref: "popoverRef"
41
+ trigger: "manual",
42
+ arrow: false,
43
+ "is-show": true,
44
+ width: 107
37
45
  }, {
38
46
  content: _withCtx(()=>[
39
- _createElementVNode("ul", _hoisted_1, [
47
+ _withDirectives((_openBlock(), _createElementBlock("ul", {
48
+ class: _normalizeClass({
49
+ 'g-more-menu': true,
50
+ 'g-none': !showMore.value || _ctx.selectedDatasetDatas.length <= 0
51
+ })
52
+ }, [
40
53
  _createVNode(_component_bk_pop_confirm, {
41
54
  trigger: "click",
42
55
  title: "确认删除?",
43
56
  content: "删除操作无法撤回,请谨慎操作!",
44
57
  "ext-cls": "g-confirm-delete",
58
+ placement: "right",
45
59
  onConfirm: handleDeleteDatasetDatas
46
60
  }, {
47
61
  default: _withCtx(()=>_cache[1] || (_cache[1] = [
@@ -52,11 +66,17 @@ export default /*@__PURE__*/ _defineComponent({
52
66
  1
53
67
  ]
54
68
  })
69
+ ], 2 /* CLASS */ )), [
70
+ [
71
+ _directive_clickoutside,
72
+ ()=>handleHideMore()
73
+ ]
55
74
  ])
56
75
  ]),
57
76
  default: _withCtx(()=>[
58
77
  _createVNode(_component_bk_button, {
59
- disabled: _ctx.selectedDatasetDatas.length <= 0
78
+ disabled: _ctx.selectedDatasetDatas.length <= 0,
79
+ onClick: handleShowMore
60
80
  }, {
61
81
  default: _withCtx(()=>[
62
82
  _cache[0] || (_cache[0] = _createTextVNode(" 批量操作 ")),
@@ -73,7 +93,7 @@ export default /*@__PURE__*/ _defineComponent({
73
93
  ])
74
94
  ]),
75
95
  _: 1 /* STABLE */
76
- }, 512 /* NEED_PATCH */ );
96
+ });
77
97
  };
78
98
  }
79
99
  });
@@ -224,6 +224,7 @@ export default /*@__PURE__*/ _defineComponent({
224
224
  trigger: "click",
225
225
  title: "确认删除?",
226
226
  content: "删除操作无法撤回,请谨慎操作!",
227
+ placement: "left",
227
228
  "ext-cls": "g-confirm-delete",
228
229
  onConfirm: ($event)=>handleDeleteDatasetData(row)
229
230
  }, {
@@ -1,5 +1,5 @@
1
1
 
2
- .ellipsis-text[data-v-r9o9anhd] {
2
+ .ellipsis-text[data-v-3ikvkfax] {
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-r9o9anhd";
2
+ script.__scopeId = "data-v-3ikvkfax";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -29,6 +29,9 @@ export default /*@__PURE__*/ _defineComponent({
29
29
  const schema = ref();
30
30
  const loading = ref(false);
31
31
  const selectedDatasetDatas = ref([]);
32
+ const datasetData = {
33
+ datasetId: props.datasetId
34
+ };
32
35
  const handleUpdate = ()=>{
33
36
  tableRef.value.triggerApi();
34
37
  };
@@ -54,6 +57,8 @@ export default /*@__PURE__*/ _defineComponent({
54
57
  _createVNode(RenderPlusDatasetData, {
55
58
  class: "g-mr-8",
56
59
  "api-prefix": _ctx.apiPrefix,
60
+ "disabled-choose-dataset": true,
61
+ "dataset-data": datasetData,
57
62
  onSuccessPlus: handleUpdate
58
63
  }, null, 8 /* PROPS */ , [
59
64
  "api-prefix"
@@ -1,15 +1,15 @@
1
1
 
2
- .origin-data-content[data-v-9c26i2if] {
2
+ .origin-data-content[data-v-opg35l8w] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-9c26i2if] {
6
+ .origin-data-panel[data-v-opg35l8w] {
7
7
  height: 100%;
8
8
  padding: 20px;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .origin-data-panel .toolbar-search[data-v-9c26i2if] {
13
+ .origin-data-panel .toolbar-search[data-v-opg35l8w] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-9c26i2if";
2
+ script.__scopeId = "data-v-opg35l8w";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -21,20 +21,31 @@ export default /*@__PURE__*/ _defineComponent({
21
21
  props: {
22
22
  apiPrefix: {}
23
23
  },
24
- setup (__props) {
24
+ emits: [
25
+ "success-plus-dataset"
26
+ ],
27
+ setup (__props, { emit: __emit }) {
28
+ const emits = __emit;
25
29
  const search = ref({});
30
+ const handleSuccessPlusDataset = (data)=>{
31
+ emits('success-plus-dataset', data);
32
+ };
26
33
  return (_ctx, _cache)=>{
27
34
  return _openBlock(), _createElementBlock("article", _hoisted_1, [
28
35
  _createElementVNode("main", _hoisted_2, [
29
36
  _createElementVNode("section", _hoisted_3, [
30
37
  _createElementVNode("section", _hoisted_4, [
31
38
  _createVNode(RenderPlusDatasetData, {
32
- class: "g-mr-8"
33
- }),
34
- _createVNode(RenderPlusDataset, {
39
+ class: "g-mr-8",
35
40
  "api-prefix": _ctx.apiPrefix
36
41
  }, null, 8 /* PROPS */ , [
37
42
  "api-prefix"
43
+ ]),
44
+ _createVNode(RenderPlusDataset, {
45
+ "api-prefix": _ctx.apiPrefix,
46
+ onSuccessPlus: handleSuccessPlusDataset
47
+ }, null, 8 /* PROPS */ , [
48
+ "api-prefix"
38
49
  ])
39
50
  ]),
40
51
  _createVNode(RenderSearchDataset, {
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-9u2aac3v] {
2
+ .main-content[data-v-dgnj72ns] {
3
3
  padding: 20px 24px;
4
4
  height: calc(100% - 52px);
5
5
  }
6
- .main-panel[data-v-9u2aac3v] {
6
+ .main-panel[data-v-dgnj72ns] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 0;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .main-search[data-v-9u2aac3v] {
13
+ .main-search[data-v-dgnj72ns] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,10 @@
1
+ import type { IDataset } from '@/types/dataset';
1
2
  interface IProps {
2
3
  apiPrefix: string;
3
4
  }
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
+ declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ "success-plus-dataset": (data: IDataset) => any;
7
+ }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
8
+ "onSuccess-plus-dataset"?: (data: IDataset) => any;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
10
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-9u2aac3v";
2
+ script.__scopeId = "data-v-dgnj72ns";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;