@blueking/ai-ui-sdk 0.3.0-beta.4 → 0.3.0-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.
- package/README.md +290 -290
- package/dist/common/util.ts.js +102 -102
- package/dist/components/render-agent/agent-download.vue.css +2 -2
- package/dist/components/render-agent/agent-type.vue.css +9 -9
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auth/auth-dialog.vue.css +2 -2
- package/dist/components/render-auto-height-textarea/index.vue.css +26 -26
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +30 -30
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/actions.script.vue.js.js +16 -17
- package/dist/components/render-card/agent/actions.vue.d.ts +3 -0
- package/dist/components/render-card/agent/index.script.vue.js.js +23 -6
- package/dist/components/render-card/agent/index.vue.d.ts +8 -1
- package/dist/components/render-card/agent/prefix-info-tool.script.vue.js.js +5 -2
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +18 -18
- package/dist/components/render-card/agent/prefix-info-tool.vue.d.ts +1 -0
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/agent-command/index.script.vue.js.js +15 -4
- package/dist/components/render-card/agent-command/index.vue.d.ts +13 -1
- package/dist/components/render-card/base/reference-icon.script.vue.js.js +10 -2
- package/dist/components/render-card/base/reference-icon.vue.d.ts +6 -1
- package/dist/components/render-card/base.script.vue.js +10 -3
- package/dist/components/render-card/base.vue.css +30 -30
- package/dist/components/render-card/base.vue.d.ts +6 -2
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/knowledge/index.script.vue.js.js +19 -6
- package/dist/components/render-card/knowledge/index.vue.d.ts +10 -2
- package/dist/components/render-card/knowledge/info-tool.script.vue.js.js +16 -14
- package/dist/components/render-card/knowledge/info-tool.vue.d.ts +6 -1
- package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +38 -18
- package/dist/components/render-card/knowledgebase/actions.vue.d.ts +3 -0
- package/dist/components/render-card/knowledgebase/index.script.vue.js.js +21 -7
- package/dist/components/render-card/knowledgebase/index.vue.d.ts +7 -1
- package/dist/components/render-card/knowledgebase/info-tool.script.vue.js.js +15 -13
- package/dist/components/render-card/knowledgebase/info-tool.vue.d.ts +6 -1
- package/dist/components/render-card/llm/actions.script.vue.js.js +10 -2
- package/dist/components/render-card/llm/actions.vue.d.ts +6 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +12 -12
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +3 -3
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/index.script.vue.js.js +12 -4
- package/dist/components/render-card/llm/index.vue.d.ts +4 -1
- package/dist/components/render-card/llm/info.vue.css +8 -8
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +6 -6
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/actions.script.vue.js.js +12 -14
- package/dist/components/render-card/mcp/actions.vue.d.ts +3 -0
- package/dist/components/render-card/mcp/index.script.vue.js.js +22 -5
- package/dist/components/render-card/mcp/index.vue.d.ts +8 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +7 -7
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +2 -2
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/prompt/index.script.vue.js.js +19 -6
- package/dist/components/render-card/prompt/index.vue.d.ts +7 -1
- package/dist/components/render-card/role/index.script.vue.js.js +20 -6
- package/dist/components/render-card/role/index.vue.d.ts +7 -1
- package/dist/components/render-card/skill/index.script.vue.js.js +24 -7
- package/dist/components/render-card/skill/index.vue.d.ts +16 -1
- package/dist/components/render-card/skill/tag-prefix.vue.css +7 -7
- package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/tool/actions.script.vue.js.js +7 -2
- package/dist/components/render-card/tool/actions.vue.d.ts +3 -0
- package/dist/components/render-card/tool/index.script.vue.js.js +18 -5
- package/dist/components/render-card/tool/index.vue.d.ts +7 -1
- package/dist/components/render-checkbox/index.vue.css +41 -41
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +2 -1
- package/dist/components/render-choose-tag/index.vue.css +29 -29
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +6 -6
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/actions/index.script.vue.js.js +10 -11
- package/dist/components/render-collection/actions/index.vue.d.ts +3 -0
- package/dist/components/render-collection/content/index.vue.css +15 -15
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +2 -2
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +2 -2
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +9 -9
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +10 -10
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +8 -8
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +8 -8
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +4 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +6 -6
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +3 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +3 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.css +4 -4
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +21 -21
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +8 -6
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +6 -1
- package/dist/components/render-dataset-detail/index.script.vue.js.js +16 -10
- package/dist/components/render-dataset-detail/index.vue.d.ts +6 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +9 -9
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +7 -2
- package/dist/components/render-dataset-list/components/main.vue.css +9 -9
- package/dist/components/render-dataset-list/components/main.vue.d.ts +3 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +6 -9
- package/dist/components/render-dataset-list/components/table.vue.d.ts +3 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +12 -3
- package/dist/components/render-dataset-list/index.vue.css +4 -4
- package/dist/components/render-dataset-list/index.vue.d.ts +6 -1
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-footer.script.vue.js.js +9 -17
- package/dist/components/render-dialog/choose-footer.vue.d.ts +3 -0
- package/dist/components/render-dialog/choose-resource.script.vue.js +75 -25
- package/dist/components/render-dialog/choose-resource.vue.css +6 -4
- package/dist/components/render-dialog/choose-resource.vue.d.ts +6 -0
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +31 -31
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +17 -17
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/{index.script.vue.js.js → index.script.vue.js} +73 -73
- package/dist/components/render-dialog/index.vue.css +12 -12
- package/dist/components/render-dialog/index.vue.d.ts +6 -0
- package/dist/components/render-dialog/index.vue.js +2 -2
- package/dist/components/render-dropdown/index.vue.css +15 -15
- package/dist/components/render-file-card/index.vue.css +28 -28
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +12 -12
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +7 -7
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-image/index.script.vue.js.js +16 -4
- package/dist/components/render-image/index.vue.d.ts +1 -0
- package/dist/components/render-knowledge/icon/index.vue.css +2 -2
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +10 -10
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-markdown/edit.postcss.css +92 -92
- package/dist/components/render-markdown/katex.ts.js +8 -8
- package/dist/components/render-markdown/prism-atom-one-dark.postcss.css +192 -192
- package/dist/components/render-markdown/view.postcss.css +99 -99
- package/dist/components/render-permission-tag/index.vue.css +2 -2
- package/dist/components/render-prompt/actions/index.script.vue.js.js +10 -11
- package/dist/components/render-prompt/actions/index.vue.d.ts +3 -0
- package/dist/components/render-prompt/content/index.vue.css +5 -5
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.script.vue.js +40 -41
- package/dist/components/render-reference/index.vue.css +4 -4
- package/dist/components/render-reference/index.vue.d.ts +3 -0
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-relate-agent/index.script.vue.js.js +59 -23
- package/dist/components/render-relate-agent/index.vue.d.ts +10 -4
- package/dist/components/render-resource-version/index.vue.css +7 -7
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.script.vue.js.js +5 -3
- package/dist/components/render-router-tab/index.vue.css +15 -15
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-select-plus-extension/index.vue.css +11 -11
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-skill/actions/index.script.vue.js.js +11 -13
- package/dist/components/render-skill/actions/index.vue.d.ts +3 -0
- package/dist/components/render-t-table/index.vue.css +118 -118
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +17 -17
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.vue.css +12 -12
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components/render-tree/index.vue.css +12 -12
- package/dist/css/fonts/iconcool.svg +163 -163
- package/dist/css/g-utilities.css +0 -4
- package/dist/css/g-utilities.manifest.json +0 -1
- package/dist/css/style.css +154 -154
- package/dist/hooks/use-chat.ts.js +6 -6
- package/dist/hooks/use-ellipsis-tooltip.ts.js +28 -28
- package/dist/hooks/use-loading-version.ts.js +4 -4
- package/dist/hooks/use-reference-doc.ts.js +137 -137
- package/dist/hooks/use-think.ts.js +67 -67
- package/dist/http/helper/agent.ts.js +36 -36
- package/dist/http/helper/collection.ts.js +12 -12
- package/dist/http/helper/common.ts.js +36 -36
- package/dist/http/helper/dataset.ts.js +76 -76
- package/dist/http/helper/knowledge.ts.js +41 -41
- package/dist/http/helper/mcp.ts.js +36 -36
- package/dist/http/helper/permission.ts.js +12 -12
- package/dist/http/helper/prompt.ts.js +12 -12
- package/dist/http/helper/session.ts.js +32 -32
- package/dist/http/helper/skill.ts.js +20 -20
- package/dist/http/helper/space.ts.js +12 -12
- package/dist/http/helper/tool.ts.js +20 -20
- package/dist/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/dist/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/dist/node_modules/vue-router/dist/vue-router.cjs.js +2774 -0
- package/dist/node_modules/vue-router/dist/vue-router.prod.cjs.js +23 -0
- package/dist/node_modules/vue-router/index.js +7 -0
- package/dist/types/enum.d.ts +23 -0
- package/dist/types/enum.ts.js +24 -0
- package/dist/types/navigate.d.ts +82 -0
- package/dist/types/navigate.ts.js +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.ts.js +1 -0
- package/package.json +117 -115
- package/dist/components/render-card/base/application-code-suffix.vue.d.ts +0 -13
- package/dist/components/render-card/base/base-info.vue.d.ts +0 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx } from "vue";
|
|
2
|
+
import { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, withCtx as _withCtx } from "vue";
|
|
3
3
|
import RenderBase from '../base.vue.js';
|
|
4
4
|
import RenderReferenceIcon from '../base/reference-icon.vue.js';
|
|
5
5
|
import RenderActions from './actions.vue.js';
|
|
@@ -30,7 +30,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
30
30
|
},
|
|
31
31
|
spaceId: {},
|
|
32
32
|
spaces: {},
|
|
33
|
-
apiPrefix: {}
|
|
33
|
+
apiPrefix: {},
|
|
34
|
+
defaultIcon: {},
|
|
35
|
+
showGenerateType: {
|
|
36
|
+
type: Boolean
|
|
37
|
+
}
|
|
34
38
|
},
|
|
35
39
|
emits: [
|
|
36
40
|
"delete",
|
|
@@ -38,7 +42,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
38
42
|
"edit",
|
|
39
43
|
"success-delete",
|
|
40
44
|
"success-restore",
|
|
41
|
-
"update:commands"
|
|
45
|
+
"update:commands",
|
|
46
|
+
"navigate"
|
|
42
47
|
],
|
|
43
48
|
setup (__props, { emit: __emit }) {
|
|
44
49
|
const props = __props;
|
|
@@ -63,6 +68,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
63
68
|
const handleChoose = ()=>{
|
|
64
69
|
emits('choose', props.agent);
|
|
65
70
|
};
|
|
71
|
+
const handleNavigate = (route)=>{
|
|
72
|
+
emits('navigate', route);
|
|
73
|
+
};
|
|
66
74
|
return (_ctx, _cache)=>{
|
|
67
75
|
return _openBlock(), _createBlock(RenderBase, {
|
|
68
76
|
class: "g-relative",
|
|
@@ -91,6 +99,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
91
99
|
"used-by": props.agent.usedBy,
|
|
92
100
|
"resource-id": props.agent.resourceId,
|
|
93
101
|
spaces: props.spaces,
|
|
102
|
+
"default-icon": __props.defaultIcon,
|
|
103
|
+
"show-generate-type": __props.showGenerateType,
|
|
94
104
|
onDelete: handleDelete,
|
|
95
105
|
onChoose: handleChoose
|
|
96
106
|
}, {
|
|
@@ -131,7 +141,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
131
141
|
name: props.agent.agentName,
|
|
132
142
|
module: _unref(Module).Agent,
|
|
133
143
|
"space-id": props.spaceId,
|
|
134
|
-
"api-prefix": props.apiPrefix
|
|
144
|
+
"api-prefix": props.apiPrefix,
|
|
145
|
+
onNavigate: handleNavigate
|
|
135
146
|
}, null, 8 /* PROPS */ , [
|
|
136
147
|
"type",
|
|
137
148
|
"ref-count",
|
|
@@ -142,6 +153,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
142
153
|
"api-prefix"
|
|
143
154
|
])) : _createCommentVNode("v-if", true)
|
|
144
155
|
]),
|
|
156
|
+
"pre-actions": _withCtx(()=>[
|
|
157
|
+
_renderSlot(_ctx.$slots, "pre-actions", {}, undefined, true)
|
|
158
|
+
]),
|
|
145
159
|
actions: _withCtx(()=>[
|
|
146
160
|
_createVNode(RenderActions, {
|
|
147
161
|
type: __props.type,
|
|
@@ -150,6 +164,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
150
164
|
"space-id": props.spaceId,
|
|
151
165
|
spaces: props.spaces,
|
|
152
166
|
"api-prefix": __props.apiPrefix,
|
|
167
|
+
onNavigate: handleNavigate,
|
|
153
168
|
onEdit: handleEdit,
|
|
154
169
|
onSuccessDelete: handleSuccessDelete,
|
|
155
170
|
onSuccessRestore: handleSuccessRestore
|
|
@@ -162,7 +177,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
162
177
|
"api-prefix"
|
|
163
178
|
])
|
|
164
179
|
]),
|
|
165
|
-
_:
|
|
180
|
+
_: 3 /* FORWARDED */
|
|
166
181
|
}, 8 /* PROPS */ , [
|
|
167
182
|
"module",
|
|
168
183
|
"type",
|
|
@@ -188,7 +203,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
188
203
|
"applied-at",
|
|
189
204
|
"used-by",
|
|
190
205
|
"resource-id",
|
|
191
|
-
"spaces"
|
|
206
|
+
"spaces",
|
|
207
|
+
"default-icon",
|
|
208
|
+
"show-generate-type"
|
|
192
209
|
]);
|
|
193
210
|
};
|
|
194
211
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IAgent, IAgentCommand, IApplicationAgent } from '@/types/agent';
|
|
2
2
|
import { GroupType, ResourceCardType } from '@/types/enum';
|
|
3
|
+
import type { ISdkNavigateAction } from '@/types/navigate';
|
|
3
4
|
import type { ISpace } from '@/types/space';
|
|
4
5
|
declare const __VLS_export: <T extends IAgent | IApplicationAgent>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
@@ -16,10 +17,13 @@ declare const __VLS_export: <T extends IAgent | IApplicationAgent>(__VLS_props:
|
|
|
16
17
|
spaceId?: string;
|
|
17
18
|
spaces?: ISpace[];
|
|
18
19
|
apiPrefix: string;
|
|
20
|
+
defaultIcon?: string;
|
|
21
|
+
showGenerateType?: boolean;
|
|
19
22
|
} & {
|
|
20
23
|
onChoose?: (agent: T) => any;
|
|
21
24
|
onEdit?: (agent: T) => any;
|
|
22
25
|
onDelete?: (agent: T) => any;
|
|
26
|
+
onNavigate?: (route: ISdkNavigateAction) => any;
|
|
23
27
|
"onSuccess-delete"?: () => any;
|
|
24
28
|
"onSuccess-restore"?: () => any;
|
|
25
29
|
"onUpdate:commands"?: (commands: IAgentCommand[]) => any;
|
|
@@ -28,11 +32,14 @@ declare const __VLS_export: <T extends IAgent | IApplicationAgent>(__VLS_props:
|
|
|
28
32
|
} ? P : {});
|
|
29
33
|
expose: (exposed: {}) => void;
|
|
30
34
|
attrs: any;
|
|
31
|
-
slots: {
|
|
35
|
+
slots: {
|
|
36
|
+
'pre-actions'?: (props: {}) => any;
|
|
37
|
+
};
|
|
32
38
|
emit: {
|
|
33
39
|
(event: "delete" | "choose" | "edit", agent: T): void;
|
|
34
40
|
(event: "success-delete" | "success-restore"): void;
|
|
35
41
|
(event: "update:commands", commands: IAgentCommand[]): void;
|
|
42
|
+
(event: "navigate", route: ISdkNavigateAction): void;
|
|
36
43
|
};
|
|
37
44
|
}>) => import("vue").VNode & {
|
|
38
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -26,7 +26,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
26
26
|
type: Boolean
|
|
27
27
|
},
|
|
28
28
|
apiPrefix: {},
|
|
29
|
-
spaceId: {}
|
|
29
|
+
spaceId: {},
|
|
30
|
+
defaultIcon: {}
|
|
30
31
|
},
|
|
31
32
|
emits: [
|
|
32
33
|
"update:commands",
|
|
@@ -153,9 +154,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
153
154
|
_createVNode(RenderImage, {
|
|
154
155
|
url: command.icon,
|
|
155
156
|
size: 12,
|
|
157
|
+
"default-url": props.defaultIcon,
|
|
156
158
|
class: "g-mr-6"
|
|
157
159
|
}, null, 8 /* PROPS */ , [
|
|
158
|
-
"url"
|
|
160
|
+
"url",
|
|
161
|
+
"default-url"
|
|
159
162
|
]),
|
|
160
163
|
_createElementVNode("p", _hoisted_2, [
|
|
161
164
|
_createElementVNode("span", _hoisted_3, _toDisplayString(command.name), 1 /* TEXT */ ),
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
.command-number[data-v-
|
|
3
|
-
width: 24px;
|
|
4
|
-
border-radius: 2px;
|
|
2
|
+
.command-number[data-v-zvqhb2ez] {
|
|
3
|
+
width: 24px;
|
|
4
|
+
border-radius: 2px;
|
|
5
5
|
background: #A3C5FD;
|
|
6
6
|
}
|
|
7
|
-
.delete-icon[data-v-
|
|
8
|
-
width: 18px;
|
|
9
|
-
height: 17px;
|
|
10
|
-
background: #C4C6CC;
|
|
11
|
-
border-radius: 0 4px 0 4px;
|
|
12
|
-
top: 0;
|
|
7
|
+
.delete-icon[data-v-zvqhb2ez] {
|
|
8
|
+
width: 18px;
|
|
9
|
+
height: 17px;
|
|
10
|
+
background: #C4C6CC;
|
|
11
|
+
border-radius: 0 4px 0 4px;
|
|
12
|
+
top: 0;
|
|
13
13
|
right: 0;
|
|
14
14
|
}
|
|
15
|
-
.li-content[data-v-
|
|
16
|
-
width: 220px;
|
|
17
|
-
border: 1px solid #DCDEE5;
|
|
18
|
-
border-radius: 12px;
|
|
19
|
-
height: 24px;
|
|
20
|
-
margin-left: 15px;
|
|
15
|
+
.li-content[data-v-zvqhb2ez] {
|
|
16
|
+
width: 220px;
|
|
17
|
+
border: 1px solid #DCDEE5;
|
|
18
|
+
border-radius: 12px;
|
|
19
|
+
height: 24px;
|
|
20
|
+
margin-left: 15px;
|
|
21
21
|
padding: 0 10px;
|
|
22
22
|
}
|
|
23
|
-
.confirm-button[data-v-
|
|
23
|
+
.confirm-button[data-v-zvqhb2ez] {
|
|
24
24
|
margin: 0 8px 0 68px;
|
|
25
25
|
}
|
|
26
|
-
.command-name-text[data-v-
|
|
26
|
+
.command-name-text[data-v-zvqhb2ez] {
|
|
27
27
|
max-width: 165px;
|
|
28
|
-
}
|
|
28
|
+
}
|
|
@@ -6,6 +6,7 @@ interface IProps {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
apiPrefix: string;
|
|
8
8
|
spaceId?: string;
|
|
9
|
+
defaultIcon?: string;
|
|
9
10
|
}
|
|
10
11
|
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
12
|
delete: () => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './prefix-info-tool.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-zvqhb2ez";
|
|
3
3
|
script.__file = "./src/components/render-card/agent/prefix-info-tool.vue";
|
|
4
4
|
import './prefix-info-tool.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
import { unref as _unref, createVNode as _createVNode, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
3
|
import RenderBase from '../base.vue.js';
|
|
4
4
|
import RenderInfoTool from './info-tool.vue.js';
|
|
5
5
|
import RenderNameSuffix from './name-suffix.vue.js';
|
|
@@ -18,7 +18,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
18
18
|
isShowOperation: {
|
|
19
19
|
type: Boolean
|
|
20
20
|
},
|
|
21
|
-
spaces: {}
|
|
21
|
+
spaces: {},
|
|
22
|
+
defaultIcon: {},
|
|
23
|
+
showGenerateType: {
|
|
24
|
+
type: Boolean
|
|
25
|
+
}
|
|
22
26
|
},
|
|
23
27
|
emits: [
|
|
24
28
|
"choose",
|
|
@@ -58,6 +62,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
58
62
|
"updated-at": props.command.updatedAt,
|
|
59
63
|
"updated-by": props.command.updatedBy,
|
|
60
64
|
spaces: props.spaces,
|
|
65
|
+
"default-icon": __props.defaultIcon,
|
|
66
|
+
"show-generate-type": __props.showGenerateType,
|
|
61
67
|
onChoose: handleChoose,
|
|
62
68
|
onDelete: handleDelete
|
|
63
69
|
}, {
|
|
@@ -86,7 +92,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
86
92
|
"disabled"
|
|
87
93
|
])
|
|
88
94
|
]),
|
|
89
|
-
|
|
95
|
+
"pre-actions": _withCtx(()=>[
|
|
96
|
+
_renderSlot(_ctx.$slots, "pre-actions", {}, undefined, true)
|
|
97
|
+
]),
|
|
98
|
+
_: 3 /* FORWARDED */
|
|
90
99
|
}, 8 /* PROPS */ , [
|
|
91
100
|
"module",
|
|
92
101
|
"type",
|
|
@@ -101,7 +110,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
101
110
|
"is-show-operation",
|
|
102
111
|
"updated-at",
|
|
103
112
|
"updated-by",
|
|
104
|
-
"spaces"
|
|
113
|
+
"spaces",
|
|
114
|
+
"default-icon",
|
|
115
|
+
"show-generate-type"
|
|
105
116
|
]);
|
|
106
117
|
};
|
|
107
118
|
}
|
|
@@ -9,8 +9,14 @@ interface IProps {
|
|
|
9
9
|
checked?: boolean;
|
|
10
10
|
isShowOperation?: boolean;
|
|
11
11
|
spaces?: ISpace[];
|
|
12
|
+
defaultIcon?: string;
|
|
13
|
+
showGenerateType?: boolean;
|
|
12
14
|
}
|
|
13
|
-
declare
|
|
15
|
+
declare var __VLS_28: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
'pre-actions'?: (props: typeof __VLS_28) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
20
|
choose: (command: IAgentCommand) => any;
|
|
15
21
|
edit: (command: IAgentCommand) => any;
|
|
16
22
|
delete: (command: IAgentCommand) => any;
|
|
@@ -21,5 +27,11 @@ declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}
|
|
|
21
27
|
onDelete?: (command: IAgentCommand) => any;
|
|
22
28
|
"onEdit-alias"?: (command: IAgentCommand) => any;
|
|
23
29
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
31
|
declare const _default: typeof __VLS_export;
|
|
25
32
|
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -14,12 +14,19 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
14
14
|
spaceName: {},
|
|
15
15
|
apiPrefix: {}
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
emits: [
|
|
18
|
+
"navigate"
|
|
19
|
+
],
|
|
20
|
+
setup (__props, { emit: __emit }) {
|
|
18
21
|
const props = __props;
|
|
22
|
+
const emits = __emit;
|
|
19
23
|
const isShowReferenceDetail = ref(false);
|
|
20
24
|
const handleClickReference = ()=>{
|
|
21
25
|
isShowReferenceDetail.value = true;
|
|
22
26
|
};
|
|
27
|
+
const handleNavigate = (route)=>{
|
|
28
|
+
emits('navigate', route);
|
|
29
|
+
};
|
|
23
30
|
return (_ctx, _cache)=>{
|
|
24
31
|
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
25
32
|
var _props_refCount, _props_refCount1;
|
|
@@ -51,7 +58,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
51
58
|
id: props.id,
|
|
52
59
|
module: props.module,
|
|
53
60
|
"space-id": props.spaceId,
|
|
54
|
-
"api-prefix": props.apiPrefix
|
|
61
|
+
"api-prefix": props.apiPrefix,
|
|
62
|
+
onNavigate: handleNavigate
|
|
55
63
|
}, null, 8 /* PROPS */ , [
|
|
56
64
|
"is-show",
|
|
57
65
|
"name",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Module, ResourceCardType } from '@/types/enum';
|
|
2
|
+
import type { ISdkNavigateAction } from '@/types/navigate';
|
|
2
3
|
interface IProps {
|
|
3
4
|
module: Module;
|
|
4
5
|
type: ResourceCardType;
|
|
@@ -9,6 +10,10 @@ interface IProps {
|
|
|
9
10
|
spaceName?: string;
|
|
10
11
|
apiPrefix: string;
|
|
11
12
|
}
|
|
12
|
-
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
+
navigate: (value: ISdkNavigateAction) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
16
|
+
onNavigate?: (value: ISdkNavigateAction) => any;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
18
|
declare const _default: typeof __VLS_export;
|
|
14
19
|
export default _default;
|
|
@@ -79,7 +79,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
79
79
|
isClickToView: {
|
|
80
80
|
type: Boolean
|
|
81
81
|
},
|
|
82
|
-
spaces: {}
|
|
82
|
+
spaces: {},
|
|
83
|
+
defaultIcon: {},
|
|
84
|
+
showGenerateType: {
|
|
85
|
+
type: Boolean
|
|
86
|
+
}
|
|
83
87
|
},
|
|
84
88
|
emits: [
|
|
85
89
|
"delete",
|
|
@@ -135,10 +139,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
135
139
|
_unref(ResourceCardType).Application,
|
|
136
140
|
_unref(ResourceCardType).Market
|
|
137
141
|
].includes(props.type) ? 40 : 32,
|
|
142
|
+
"default-url": props.defaultIcon,
|
|
138
143
|
class: "g-border-radio-100 g-mr-8"
|
|
139
144
|
}, null, 8 /* PROPS */ , [
|
|
140
145
|
"url",
|
|
141
|
-
"size"
|
|
146
|
+
"size",
|
|
147
|
+
"default-url"
|
|
142
148
|
])) : _createCommentVNode("v-if", true)
|
|
143
149
|
], true),
|
|
144
150
|
_createElementVNode("section", _hoisted_4, [
|
|
@@ -155,7 +161,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
155
161
|
![
|
|
156
162
|
_unref(ResourceCardType).Record,
|
|
157
163
|
_unref(ResourceCardType).Market
|
|
158
|
-
].includes(props.type) ? (_openBlock(), _createBlock(RenderGenerateTag, {
|
|
164
|
+
].includes(props.type) && props.showGenerateType ? (_openBlock(), _createBlock(RenderGenerateTag, {
|
|
159
165
|
key: 0,
|
|
160
166
|
"generate-type": props.generateType,
|
|
161
167
|
module: props.module,
|
|
@@ -369,6 +375,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
369
375
|
_cache[2] || (_cache[2] = _createElementVNode("span", {
|
|
370
376
|
class: "g-flex-1"
|
|
371
377
|
}, null, -1 /* CACHED */ )),
|
|
378
|
+
_renderSlot(_ctx.$slots, "pre-actions", {}, undefined, true),
|
|
372
379
|
_renderSlot(_ctx.$slots, "actions", {}, undefined, true)
|
|
373
380
|
])) : _createCommentVNode("v-if", true)
|
|
374
381
|
], 2 /* CLASS */ );
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
|
|
2
|
-
.resource-card-home[data-v-
|
|
2
|
+
.resource-card-home[data-v-jmpno9pr] {
|
|
3
3
|
background: #FFFFFF;
|
|
4
4
|
}
|
|
5
|
-
.resource-card-home .resource-card-sub-name[data-v-
|
|
5
|
+
.resource-card-home .resource-card-sub-name[data-v-jmpno9pr] {
|
|
6
6
|
margin-right: -4px;
|
|
7
7
|
}
|
|
8
|
-
.resource-card-home.full[data-v-
|
|
9
|
-
padding: 16px 16px 0;
|
|
10
|
-
box-shadow: 0 2px 4px 0 #0000000d;
|
|
8
|
+
.resource-card-home.full[data-v-jmpno9pr], .resource-card-home.application[data-v-jmpno9pr], .resource-card-home.market[data-v-jmpno9pr] {
|
|
9
|
+
padding: 16px 16px 0;
|
|
10
|
+
box-shadow: 0 2px 4px 0 #0000000d;
|
|
11
11
|
border-radius: 8px;
|
|
12
12
|
}
|
|
13
|
-
.resource-card-home.full[data-v-
|
|
13
|
+
.resource-card-home.full[data-v-jmpno9pr]:hover, .resource-card-home.application[data-v-jmpno9pr]:hover, .resource-card-home.market[data-v-jmpno9pr]:hover {
|
|
14
14
|
box-shadow: 0 2px 10px 0 #0000001f;
|
|
15
15
|
}
|
|
16
|
-
.resource-card-home.full .resource-card-name[data-v-
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
color: #313238;
|
|
16
|
+
.resource-card-home.full .resource-card-name[data-v-jmpno9pr], .resource-card-home.application .resource-card-name[data-v-jmpno9pr], .resource-card-home.market .resource-card-name[data-v-jmpno9pr] {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
color: #313238;
|
|
19
19
|
font-weight: bold;
|
|
20
20
|
}
|
|
21
|
-
.resource-card-home.full .resource-card-description[data-v-
|
|
22
|
-
color: #4D4F56;
|
|
23
|
-
height: 60px;
|
|
24
|
-
white-space: pre-wrap;
|
|
21
|
+
.resource-card-home.full .resource-card-description[data-v-jmpno9pr], .resource-card-home.application .resource-card-description[data-v-jmpno9pr], .resource-card-home.market .resource-card-description[data-v-jmpno9pr] {
|
|
22
|
+
color: #4D4F56;
|
|
23
|
+
height: 60px;
|
|
24
|
+
white-space: pre-wrap;
|
|
25
25
|
word-break: break-all;
|
|
26
26
|
}
|
|
27
|
-
.resource-card-home.choose[data-v-
|
|
28
|
-
padding: 10px 12px 0;
|
|
29
|
-
border: 1px solid #DCDEE5;
|
|
27
|
+
.resource-card-home.choose[data-v-jmpno9pr] {
|
|
28
|
+
padding: 10px 12px 0;
|
|
29
|
+
border: 1px solid #DCDEE5;
|
|
30
30
|
border-radius: 4px;
|
|
31
31
|
}
|
|
32
|
-
.resource-card-home.choose .resource-card-name[data-v-
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
color: #000000;
|
|
32
|
+
.resource-card-home.choose .resource-card-name[data-v-jmpno9pr] {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
color: #000000;
|
|
35
35
|
font-weight: bold;
|
|
36
36
|
}
|
|
37
|
-
.resource-card-home.choose .resource-card-description[data-v-
|
|
38
|
-
color: #4D4F56;
|
|
37
|
+
.resource-card-home.choose .resource-card-description[data-v-jmpno9pr] {
|
|
38
|
+
color: #4D4F56;
|
|
39
39
|
height: 20px;
|
|
40
40
|
}
|
|
41
|
-
.resource-card-home.info[data-v-
|
|
42
|
-
padding: 10px 12px;
|
|
43
|
-
border: 1px solid #DCDEE5;
|
|
41
|
+
.resource-card-home.info[data-v-jmpno9pr],.resource-card-home.record[data-v-jmpno9pr] {
|
|
42
|
+
padding: 10px 12px;
|
|
43
|
+
border: 1px solid #DCDEE5;
|
|
44
44
|
border-radius: 4px;
|
|
45
45
|
}
|
|
46
|
-
.resource-card-home.info .resource-card-name[data-v-
|
|
47
|
-
font-size: 12px;
|
|
46
|
+
.resource-card-home.info .resource-card-name[data-v-jmpno9pr], .resource-card-home.record .resource-card-name[data-v-jmpno9pr] {
|
|
47
|
+
font-size: 12px;
|
|
48
48
|
color: #313238;
|
|
49
49
|
}
|
|
50
|
-
.resource-card-actions[data-v-
|
|
51
|
-
border-top: 1px solid #F5F7FA;
|
|
52
|
-
height: 58px;
|
|
50
|
+
.resource-card-actions[data-v-jmpno9pr] {
|
|
51
|
+
border-top: 1px solid #F5F7FA;
|
|
52
|
+
height: 58px;
|
|
53
53
|
gap: 0 8px;
|
|
54
|
-
}
|
|
54
|
+
}
|
|
@@ -34,8 +34,10 @@ interface IProps {
|
|
|
34
34
|
isShowCheckbox?: boolean;
|
|
35
35
|
isClickToView?: boolean;
|
|
36
36
|
spaces?: ISpace[];
|
|
37
|
+
defaultIcon?: string;
|
|
38
|
+
showGenerateType?: boolean;
|
|
37
39
|
}
|
|
38
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_10: {}, __VLS_35: {}, __VLS_44: {}, __VLS_60: {}, __VLS_62: {}, __VLS_72: {}, __VLS_74: {}, __VLS_76: {}, __VLS_78: {};
|
|
40
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_10: {}, __VLS_35: {}, __VLS_44: {}, __VLS_60: {}, __VLS_62: {}, __VLS_72: {}, __VLS_74: {}, __VLS_76: {}, __VLS_78: {}, __VLS_80: {};
|
|
39
41
|
type __VLS_Slots = {} & {
|
|
40
42
|
'corner-badge'?: (props: typeof __VLS_1) => any;
|
|
41
43
|
} & {
|
|
@@ -57,7 +59,9 @@ type __VLS_Slots = {} & {
|
|
|
57
59
|
} & {
|
|
58
60
|
'footer-icons'?: (props: typeof __VLS_76) => any;
|
|
59
61
|
} & {
|
|
60
|
-
actions?: (props: typeof __VLS_78) => any;
|
|
62
|
+
'pre-actions'?: (props: typeof __VLS_78) => any;
|
|
63
|
+
} & {
|
|
64
|
+
actions?: (props: typeof __VLS_80) => any;
|
|
61
65
|
};
|
|
62
66
|
declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
63
67
|
choose: () => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { unref as _unref, normalizeClass as _normalizeClass, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
2
|
+
import { unref as _unref, normalizeClass as _normalizeClass, createVNode as _createVNode, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
3
|
import RenderBase from '../base.vue.js';
|
|
4
4
|
import RenderInfoTool from './info-tool.vue.js';
|
|
5
5
|
import RenderTooltip from './tooltip.vue.js';
|
|
@@ -29,11 +29,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
29
29
|
isShowCheckbox: {
|
|
30
30
|
type: Boolean
|
|
31
31
|
},
|
|
32
|
-
spaces: {}
|
|
32
|
+
spaces: {},
|
|
33
|
+
showGenerateType: {
|
|
34
|
+
type: Boolean
|
|
35
|
+
}
|
|
33
36
|
},
|
|
34
37
|
emits: [
|
|
35
38
|
"choose",
|
|
36
|
-
"delete"
|
|
39
|
+
"delete",
|
|
40
|
+
"navigate"
|
|
37
41
|
],
|
|
38
42
|
setup (__props, { emit: __emit }) {
|
|
39
43
|
const props = __props;
|
|
@@ -44,6 +48,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
44
48
|
const handleChoose = ()=>{
|
|
45
49
|
emits('choose', props.knowledge);
|
|
46
50
|
};
|
|
51
|
+
const handleNavigate = (route)=>{
|
|
52
|
+
emits('navigate', route);
|
|
53
|
+
};
|
|
47
54
|
return (_ctx, _cache)=>{
|
|
48
55
|
return _openBlock(), _createBlock(RenderBase, {
|
|
49
56
|
class: "g-relative",
|
|
@@ -66,6 +73,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
66
73
|
approvers: props.knowledge.approvers,
|
|
67
74
|
"ticket-url": props.knowledge.ticketUrl,
|
|
68
75
|
spaces: props.spaces,
|
|
76
|
+
"show-generate-type": __props.showGenerateType,
|
|
69
77
|
onChoose: handleChoose,
|
|
70
78
|
onDelete: handleDelete
|
|
71
79
|
}, {
|
|
@@ -93,13 +101,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
93
101
|
"info-prefix": _withCtx(()=>[
|
|
94
102
|
_createVNode(RenderInfoTool, {
|
|
95
103
|
knowledge: props.knowledge,
|
|
96
|
-
type: props.type
|
|
104
|
+
type: props.type,
|
|
105
|
+
onNavigate: handleNavigate
|
|
97
106
|
}, null, 8 /* PROPS */ , [
|
|
98
107
|
"knowledge",
|
|
99
108
|
"type"
|
|
100
109
|
])
|
|
101
110
|
]),
|
|
102
|
-
|
|
111
|
+
"pre-actions": _withCtx(()=>[
|
|
112
|
+
_renderSlot(_ctx.$slots, "pre-actions", {}, undefined, true)
|
|
113
|
+
]),
|
|
114
|
+
_: 3 /* FORWARDED */
|
|
103
115
|
}, 8 /* PROPS */ , [
|
|
104
116
|
"module",
|
|
105
117
|
"icon",
|
|
@@ -119,7 +131,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
119
131
|
"updated-at",
|
|
120
132
|
"approvers",
|
|
121
133
|
"ticket-url",
|
|
122
|
-
"spaces"
|
|
134
|
+
"spaces",
|
|
135
|
+
"show-generate-type"
|
|
123
136
|
]);
|
|
124
137
|
};
|
|
125
138
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IAgentCommand } from '@/types/agent';
|
|
2
2
|
import { ResourceCardType } from '@/types/enum';
|
|
3
3
|
import { IKnowledge } from '@/types/knowledge';
|
|
4
|
+
import type { ISdkNavigateAction } from '@/types/navigate';
|
|
4
5
|
import type { ISpace } from '@/types/space';
|
|
5
6
|
declare const __VLS_export: <T extends IKnowledge>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
@@ -15,16 +16,23 @@ declare const __VLS_export: <T extends IKnowledge>(__VLS_props: NonNullable<Awai
|
|
|
15
16
|
isShowOperation?: boolean;
|
|
16
17
|
isShowCheckbox?: boolean;
|
|
17
18
|
spaces?: ISpace[];
|
|
19
|
+
showGenerateType?: boolean;
|
|
18
20
|
} & {
|
|
19
21
|
onChoose?: (knowledge: T) => any;
|
|
20
22
|
onDelete?: (knowledge: T) => any;
|
|
23
|
+
onNavigate?: (value: ISdkNavigateAction) => any;
|
|
21
24
|
}> & (typeof globalThis extends {
|
|
22
25
|
__VLS_PROPS_FALLBACK: infer P;
|
|
23
26
|
} ? P : {});
|
|
24
27
|
expose: (exposed: {}) => void;
|
|
25
28
|
attrs: any;
|
|
26
|
-
slots: {
|
|
27
|
-
|
|
29
|
+
slots: {
|
|
30
|
+
'pre-actions'?: (props: {}) => any;
|
|
31
|
+
};
|
|
32
|
+
emit: {
|
|
33
|
+
(event: "choose" | "delete", knowledge: T): void;
|
|
34
|
+
(event: "navigate", value: ISdkNavigateAction): void;
|
|
35
|
+
};
|
|
28
36
|
}>) => import("vue").VNode & {
|
|
29
37
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
38
|
};
|