@blueking/ai-ui-sdk 0.1.19-beta.4 → 0.1.19-beta.40
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/dist/common/util.d.ts +24 -0
- package/dist/common/util.ts.js +41 -0
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +27 -26
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +9 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +129 -92
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.d.ts +4 -0
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.script.vue.js +86 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.script.vue.js.js +133 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +4 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +5 -0
- package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
- 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.script.vue.js.js +176 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +4 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.d.ts +16 -0
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +5 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +36 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +174 -0
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +5 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +39 -44
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +26 -8
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +21 -29
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- 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/dataset.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- 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 +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +8 -3
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +3 -2
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +21 -31
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/search-dataset-data/index.script.vue.js.js +14 -0
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +61 -39
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +259 -388
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +3 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +8 -7
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/header.script.vue.js.js +6 -3
- package/dist/components/render-dataset-list/components/header.vue.d.ts +4 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +38 -14
- package/dist/components/render-dataset-list/components/main.vue.css +4 -4
- package/dist/components/render-dataset-list/components/main.vue.d.ts +12 -5
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +405 -0
- package/dist/components/render-dataset-list/components/table.vue.d.ts +13 -2
- package/dist/components/render-dataset-list/components/table.vue.js +1 -1
- package/dist/components/render-dataset-list/index.script.vue.js.js +37 -16
- package/dist/components/render-dataset-list/index.vue.css +4 -1
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -6
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.script.vue.js.js +171 -0
- package/dist/components/render-dropdown/index.vue.css +29 -0
- package/dist/components/render-dropdown/index.vue.d.ts +64 -0
- package/dist/components/render-dropdown/index.vue.js +4 -0
- package/dist/components/render-file-card/index.script.vue.js.js +5 -15
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.script.vue.js.js +11 -3
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.d.ts +1 -1
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.script.vue.js.js +3 -3
- package/dist/components/render-like/index.vue.css +14 -13
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +4 -4
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.script.vue.js.js +61 -0
- package/dist/components/render-search-empty/index.vue.d.ts +20 -0
- package/dist/components/render-search-empty/index.vue.js +3 -0
- package/dist/components/render-search-select/index.script.vue.js.js +1 -0
- package/dist/components/render-t-table/index.script.vue.js +351 -0
- package/dist/components/render-t-table/index.vue.css +208 -0
- package/dist/components/render-t-table/index.vue.d.ts +59 -0
- package/dist/components/render-t-table/index.vue.js +5 -0
- package/dist/components/render-tag-tree/index.script.vue.js.js +112 -26
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.d.ts +7 -3
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +17 -8
- package/dist/components/render-tree/index.vue.d.ts +4 -1
- package/dist/components.d.ts +4 -1
- package/dist/components.ts.js +4 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +5 -2
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +5 -2
- package/dist/css/tailwind.css +105 -11
- package/dist/hooks/use-chat.d.ts +14 -4
- package/dist/hooks/use-common-http.d.ts +5 -2
- package/dist/hooks/use-common-http.ts.js +8 -6
- package/dist/hooks/use-dataset-http.d.ts +6 -4
- package/dist/hooks/use-dataset-http.ts.js +17 -6
- package/dist/hooks/use-ellipsis-tooltip.d.ts +3 -0
- package/dist/hooks/use-ellipsis-tooltip.ts.js +86 -0
- package/dist/hooks/use-member-http.d.ts +8 -0
- package/dist/hooks/use-member-http.ts.js +30 -0
- package/dist/hooks/use-meta-http.d.ts +3 -3
- package/dist/hooks/use-meta-http.ts.js +9 -5
- package/dist/hooks/use-style.d.ts +1 -0
- package/dist/hooks/use-style.ts.js +1 -0
- package/dist/hooks/use-t-table.d.ts +39 -0
- package/dist/hooks/use-t-table.ts.js +82 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.ts.js +3 -0
- package/dist/http/fetch/index.ts.js +3 -2
- package/dist/http/helper/agent.d.ts +13 -1
- package/dist/http/helper/agent.ts.js +69 -24
- package/dist/http/helper/common.ts.js +4 -4
- package/dist/http/helper/dataset.d.ts +7 -1
- package/dist/http/helper/dataset.ts.js +20 -4
- package/dist/http/helper/knowledge.ts.js +9 -3
- package/dist/http/helper/tool.ts.js +7 -4
- package/dist/images/market.png +0 -0
- package/dist/transforms.d.ts +1 -0
- package/dist/transforms.ts.js +1 -0
- package/dist/types/agent.d.ts +41 -24
- package/dist/types/common.d.ts +28 -1
- package/dist/types/dataset.d.ts +16 -0
- package/dist/types/enum.d.ts +15 -2
- package/dist/types/enum.ts.js +16 -1
- package/dist/types/knowledge.d.ts +6 -0
- package/dist/types/model.d.ts +4 -4
- package/dist/types/tool.d.ts +5 -3
- package/dist/util.d.ts +1 -0
- package/dist/util.ts.js +1 -0
- package/package.json +11 -2
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -580
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
30
|
+
import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
31
|
+
import tippy from 'tippy.js';
|
|
32
|
+
import { onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
|
33
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
34
|
+
props: {
|
|
35
|
+
placement: {
|
|
36
|
+
default: 'bottom-start'
|
|
37
|
+
},
|
|
38
|
+
arrow: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
theme: {
|
|
43
|
+
default: 'light'
|
|
44
|
+
},
|
|
45
|
+
animation: {
|
|
46
|
+
default: 'shift-away'
|
|
47
|
+
},
|
|
48
|
+
delay: {
|
|
49
|
+
default: ()=>[
|
|
50
|
+
0,
|
|
51
|
+
100
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
maxWidth: {
|
|
55
|
+
default: 'none'
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false
|
|
60
|
+
},
|
|
61
|
+
tippyOptions: {}
|
|
62
|
+
},
|
|
63
|
+
emits: [
|
|
64
|
+
"show",
|
|
65
|
+
"hide",
|
|
66
|
+
"mount",
|
|
67
|
+
"shown",
|
|
68
|
+
"hidden"
|
|
69
|
+
],
|
|
70
|
+
setup (__props, { expose: __expose, emit: __emit }) {
|
|
71
|
+
const props = __props;
|
|
72
|
+
const emit = __emit;
|
|
73
|
+
const triggerRef = ref();
|
|
74
|
+
const contentRef = ref();
|
|
75
|
+
const tippyInstance = ref();
|
|
76
|
+
const isShow = ref(false);
|
|
77
|
+
// 创建 Tippy 实例
|
|
78
|
+
const createTippy = ()=>{
|
|
79
|
+
if (!triggerRef.value || !contentRef.value) return;
|
|
80
|
+
// 销毁旧实例
|
|
81
|
+
if (tippyInstance.value) {
|
|
82
|
+
tippyInstance.value.destroy();
|
|
83
|
+
}
|
|
84
|
+
// 合并配置
|
|
85
|
+
const config = _object_spread({
|
|
86
|
+
content: contentRef.value,
|
|
87
|
+
placement: props.placement,
|
|
88
|
+
arrow: props.arrow,
|
|
89
|
+
theme: props.theme,
|
|
90
|
+
interactive: true,
|
|
91
|
+
animation: props.animation,
|
|
92
|
+
delay: props.delay,
|
|
93
|
+
maxWidth: props.maxWidth,
|
|
94
|
+
trigger: 'mouseenter focus',
|
|
95
|
+
hideOnClick: 'toggle',
|
|
96
|
+
appendTo: ()=>document.body,
|
|
97
|
+
// 事件回调
|
|
98
|
+
onShow: (instance)=>{
|
|
99
|
+
isShow.value = true;
|
|
100
|
+
emit('show', instance);
|
|
101
|
+
},
|
|
102
|
+
onHide: (instance)=>{
|
|
103
|
+
isShow.value = false;
|
|
104
|
+
emit('hide', instance);
|
|
105
|
+
}
|
|
106
|
+
}, props.tippyOptions);
|
|
107
|
+
tippyInstance.value = tippy(triggerRef.value, config);
|
|
108
|
+
// 处理禁用状态
|
|
109
|
+
if (props.disabled) {
|
|
110
|
+
tippyInstance.value.disable();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
// 显示下拉菜单
|
|
114
|
+
const show = ()=>{
|
|
115
|
+
var _tippyInstance_value;
|
|
116
|
+
(_tippyInstance_value = tippyInstance.value) === null || _tippyInstance_value === void 0 ? void 0 : _tippyInstance_value.show();
|
|
117
|
+
};
|
|
118
|
+
// 隐藏下拉菜单
|
|
119
|
+
const hide = ()=>{
|
|
120
|
+
var _tippyInstance_value;
|
|
121
|
+
(_tippyInstance_value = tippyInstance.value) === null || _tippyInstance_value === void 0 ? void 0 : _tippyInstance_value.hide();
|
|
122
|
+
};
|
|
123
|
+
// 监听其他配置变化
|
|
124
|
+
watch(()=>[
|
|
125
|
+
props.placement,
|
|
126
|
+
props.theme,
|
|
127
|
+
props.animation,
|
|
128
|
+
props.delay,
|
|
129
|
+
props.maxWidth,
|
|
130
|
+
props.disabled,
|
|
131
|
+
props.tippyOptions
|
|
132
|
+
], createTippy, {
|
|
133
|
+
deep: true
|
|
134
|
+
});
|
|
135
|
+
onMounted(()=>{
|
|
136
|
+
createTippy();
|
|
137
|
+
});
|
|
138
|
+
onBeforeUnmount(()=>{
|
|
139
|
+
if (tippyInstance.value) {
|
|
140
|
+
tippyInstance.value.destroy();
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
// 暴露方法给父组件
|
|
144
|
+
__expose({
|
|
145
|
+
show,
|
|
146
|
+
hide
|
|
147
|
+
});
|
|
148
|
+
return (_ctx, _cache)=>{
|
|
149
|
+
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
150
|
+
_createElementVNode("span", {
|
|
151
|
+
ref_key: "triggerRef",
|
|
152
|
+
ref: triggerRef
|
|
153
|
+
}, [
|
|
154
|
+
_renderSlot(_ctx.$slots, "trigger", {}, undefined, true)
|
|
155
|
+
], 512 /* NEED_PATCH */ ),
|
|
156
|
+
_withDirectives(_createElementVNode("section", {
|
|
157
|
+
ref_key: "contentRef",
|
|
158
|
+
ref: contentRef,
|
|
159
|
+
class: "render-dropdown-content"
|
|
160
|
+
}, [
|
|
161
|
+
_renderSlot(_ctx.$slots, "content", {}, undefined, true)
|
|
162
|
+
], 512 /* NEED_PATCH */ ), [
|
|
163
|
+
[
|
|
164
|
+
_vShow,
|
|
165
|
+
isShow.value
|
|
166
|
+
]
|
|
167
|
+
])
|
|
168
|
+
], 64 /* STABLE_FRAGMENT */ );
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
.tippy-box[data-theme~='light'] {
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
color: #333;
|
|
5
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
}
|
|
8
|
+
.tippy-box[data-theme~='light'] .tippy-arrow {
|
|
9
|
+
color: #fff;
|
|
10
|
+
}
|
|
11
|
+
.tippy-box[data-theme~='light'] .tippy-content {
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
.tippy-box[data-theme~='light-border'] {
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
color: #333;
|
|
17
|
+
border: 1px solid #dcdee5;
|
|
18
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
19
|
+
border-radius: 2px;
|
|
20
|
+
}
|
|
21
|
+
.tippy-box[data-theme~='light-border'] .tippy-arrow {
|
|
22
|
+
color: #fff;
|
|
23
|
+
}
|
|
24
|
+
.tippy-box[data-theme~='light-border'] .tippy-arrow::before {
|
|
25
|
+
border-color: transparent transparent #dcdee5 transparent;
|
|
26
|
+
}
|
|
27
|
+
.tippy-box[data-theme~='light-border'] .tippy-content {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type Instance, type Placement, type Props } from 'tippy.js';
|
|
2
|
+
export interface IProps {
|
|
3
|
+
/** 位置 */
|
|
4
|
+
placement?: Placement;
|
|
5
|
+
/** 是否显示箭头 */
|
|
6
|
+
arrow?: boolean;
|
|
7
|
+
/** 主题 */
|
|
8
|
+
theme?: 'light' | 'light-border' | 'material' | 'translucent';
|
|
9
|
+
/** 动画效果 */
|
|
10
|
+
animation?: 'fade' | 'shift-away' | 'shift-toward' | 'scale' | 'perspective';
|
|
11
|
+
/** 延迟显示(毫秒) */
|
|
12
|
+
delay?: number | [number | null, number | null];
|
|
13
|
+
/** 最大宽度 */
|
|
14
|
+
maxWidth?: number | string;
|
|
15
|
+
/** 是否禁用 */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** 额外的 Tippy 配置 */
|
|
18
|
+
tippyOptions?: Partial<Props>;
|
|
19
|
+
}
|
|
20
|
+
export interface IEmits {
|
|
21
|
+
show: [instance: Instance];
|
|
22
|
+
hide: [instance: Instance];
|
|
23
|
+
mount: [instance: Instance];
|
|
24
|
+
shown: [instance: Instance];
|
|
25
|
+
hidden: [instance: Instance];
|
|
26
|
+
}
|
|
27
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
28
|
+
type __VLS_Slots = {} & {
|
|
29
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
30
|
+
} & {
|
|
31
|
+
content?: (props: typeof __VLS_3) => any;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<IProps, {
|
|
34
|
+
show: () => void;
|
|
35
|
+
hide: () => void;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
hidden: (instance: Instance<Props>) => any;
|
|
38
|
+
mount: (instance: Instance<Props>) => any;
|
|
39
|
+
show: (instance: Instance<Props>) => any;
|
|
40
|
+
hide: (instance: Instance<Props>) => any;
|
|
41
|
+
shown: (instance: Instance<Props>) => any;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
43
|
+
onHidden?: (instance: Instance<Props>) => any;
|
|
44
|
+
onMount?: (instance: Instance<Props>) => any;
|
|
45
|
+
onShow?: (instance: Instance<Props>) => any;
|
|
46
|
+
onHide?: (instance: Instance<Props>) => any;
|
|
47
|
+
onShown?: (instance: Instance<Props>) => any;
|
|
48
|
+
}>, {
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
theme: "light" | "light-border" | "material" | "translucent";
|
|
51
|
+
placement: Placement;
|
|
52
|
+
arrow: boolean;
|
|
53
|
+
animation: "fade" | "shift-away" | "shift-toward" | "scale" | "perspective";
|
|
54
|
+
delay: number | [number | null, number | null];
|
|
55
|
+
maxWidth: number | string;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { createVNode as _createVNode, toDisplayString as _toDisplayString,
|
|
2
|
+
import { createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, renderSlot as _renderSlot, withModifiers as _withModifiers, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
class: "upload-file-home g-flex-row"
|
|
5
5
|
};
|
|
6
6
|
const _hoisted_2 = {
|
|
7
|
-
class: "file-content g-flex-column"
|
|
7
|
+
class: "file-content g-flex-column g-align-center"
|
|
8
8
|
};
|
|
9
9
|
const _hoisted_3 = {
|
|
10
|
-
class: "file-name g-truncate"
|
|
10
|
+
class: "file-name g-truncate",
|
|
11
|
+
"data-ellipsis-tooltip": ""
|
|
11
12
|
};
|
|
12
13
|
const _hoisted_4 = {
|
|
13
14
|
class: "file-size"
|
|
@@ -32,7 +33,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
32
33
|
};
|
|
33
34
|
return (_ctx, _cache)=>{
|
|
34
35
|
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
35
|
-
const _directive_overflow_title = _resolveDirective("overflow-title");
|
|
36
36
|
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
37
37
|
return _openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
38
38
|
_createVNode(RenderFileTypeIcon, {
|
|
@@ -42,17 +42,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
42
42
|
"type"
|
|
43
43
|
]),
|
|
44
44
|
_createElementVNode("p", _hoisted_2, [
|
|
45
|
-
|
|
46
|
-
_createTextVNode(_toDisplayString(_ctx.file.fileName), 1 /* TEXT */ )
|
|
47
|
-
])), [
|
|
48
|
-
[
|
|
49
|
-
_directive_overflow_title,
|
|
50
|
-
{
|
|
51
|
-
type: 'tips',
|
|
52
|
-
content: _ctx.file.fileName
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
]),
|
|
45
|
+
_createElementVNode("span", _hoisted_3, _toDisplayString(_ctx.file.fileName), 1 /* TEXT */ ),
|
|
56
46
|
_createElementVNode("span", _hoisted_4, _toDisplayString(_unref(getFileSizeTxt)(_ctx.file.fileSize)), 1 /* TEXT */ )
|
|
57
47
|
]),
|
|
58
48
|
_createElementVNode("span", _hoisted_5, [
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-m9xweak4] {
|
|
3
3
|
position: relative;
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
border: 1px solid #DCDEE5;
|
|
6
6
|
border-radius: 4px;
|
|
7
7
|
padding: 12px 12px 10px 12px;
|
|
8
8
|
}
|
|
9
|
-
.upload-file-home[data-v-
|
|
9
|
+
.upload-file-home[data-v-m9xweak4]:hover {
|
|
10
10
|
border: 1px solid #3A84FF;
|
|
11
11
|
}
|
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
|
12
|
+
.upload-file-home:hover .file-icons[data-v-m9xweak4] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-m9xweak4] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-m9xweak4] {
|
|
19
19
|
font-size: 12px;
|
|
20
20
|
flex: 1;
|
|
21
21
|
align-items: flex-start;
|
|
@@ -23,28 +23,28 @@
|
|
|
23
23
|
font-weight: normal;
|
|
24
24
|
width: 0;
|
|
25
25
|
}
|
|
26
|
-
.upload-file-home .file-content .file-name[data-v-
|
|
26
|
+
.upload-file-home .file-content .file-name[data-v-m9xweak4] {
|
|
27
27
|
width: 100%;
|
|
28
28
|
font-size: 14px;
|
|
29
29
|
line-height: 20px;
|
|
30
30
|
}
|
|
31
|
-
.upload-file-home .file-content .file-size[data-v-
|
|
31
|
+
.upload-file-home .file-content .file-size[data-v-m9xweak4] {
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
color: #979BA5;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
}
|
|
36
|
-
.upload-file-home .file-icons[data-v-
|
|
36
|
+
.upload-file-home .file-icons[data-v-m9xweak4] {
|
|
37
37
|
display: none;
|
|
38
38
|
color: #979BA5;
|
|
39
39
|
}
|
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-m9xweak4] {
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
margin-right: 15px;
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
}
|
|
45
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-m9xweak4]:hover {
|
|
46
46
|
color: #3A84FF;
|
|
47
47
|
}
|
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-m9xweak4] {
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-5h4215zw] {
|
|
3
3
|
color: #EA3636;
|
|
4
4
|
}
|
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-5h4215zw], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-5h4215zw], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-5h4215zw] {
|
|
6
6
|
color: #3A84FF;
|
|
7
7
|
}
|
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-5h4215zw] {
|
|
9
9
|
color: #C4C6CC;
|
|
10
10
|
}
|
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-5h4215zw] {
|
|
12
12
|
color: #2DCB56;
|
|
13
13
|
}
|
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-5h4215zw] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass
|
|
2
|
+
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass } from "vue";
|
|
3
|
+
import _imports_0 from '../../images/market.png';
|
|
3
4
|
const _hoisted_1 = {
|
|
4
|
-
class: "header-home g-pl-24"
|
|
5
|
+
class: "header-home g-pl-24 g-pr-24"
|
|
5
6
|
};
|
|
6
7
|
const _hoisted_2 = {
|
|
7
8
|
class: "g-learning-24 g-text-black g-text-16 g-pt-14 g-pb-14"
|
|
@@ -13,6 +14,12 @@ const _hoisted_3 = {
|
|
|
13
14
|
const _hoisted_4 = [
|
|
14
15
|
"onClick"
|
|
15
16
|
];
|
|
17
|
+
const _hoisted_5 = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "g-mr-8 g-height-16",
|
|
20
|
+
src: _imports_0
|
|
21
|
+
};
|
|
22
|
+
import { GroupType } from '../../types/enum.ts.js';
|
|
16
23
|
export default /*@__PURE__*/ _defineComponent({
|
|
17
24
|
props: {
|
|
18
25
|
title: {},
|
|
@@ -48,7 +55,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
48
55
|
}),
|
|
49
56
|
onClick: ($event)=>handleChoose(tab.id)
|
|
50
57
|
}, [
|
|
51
|
-
|
|
58
|
+
tab.id === _unref(GroupType).All ? (_openBlock(), _createElementBlock("img", _hoisted_5)) : _createCommentVNode("v-if", true),
|
|
59
|
+
_createTextVNode(" " + _toDisplayString(tab.name) + " ", 1 /* TEXT */ ),
|
|
52
60
|
_createVNode(_component_bk_loading, {
|
|
53
61
|
class: "g-number-font",
|
|
54
62
|
mode: "spin",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-nvpvlz2a] {
|
|
3
3
|
width: 100%;
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
box-shadow: 0 3px 4px 0 #0000000a;
|
|
6
6
|
}
|
|
7
|
-
.render-tab[data-v-
|
|
7
|
+
.render-tab[data-v-nvpvlz2a] {
|
|
8
8
|
border-bottom: 2px solid transparent;
|
|
9
9
|
}
|
|
10
|
-
.render-tab.active[data-v-
|
|
10
|
+
.render-tab.active[data-v-nvpvlz2a] {
|
|
11
11
|
color: #3A84FF;
|
|
12
12
|
border-bottom: 2px solid #3A84FF;
|
|
13
13
|
}
|
|
@@ -32,7 +32,7 @@ const _hoisted_1 = {
|
|
|
32
32
|
class: "select-options"
|
|
33
33
|
};
|
|
34
34
|
const _hoisted_2 = {
|
|
35
|
-
class: "g-text-16 g-mb-16"
|
|
35
|
+
class: "g-text-16 g-mb-16 g-text-black"
|
|
36
36
|
};
|
|
37
37
|
const _hoisted_3 = [
|
|
38
38
|
"onClick"
|
|
@@ -270,7 +270,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
270
270
|
_renderSlot(_ctx.$slots, "like", {}, ()=>[
|
|
271
271
|
_withDirectives(_createElementVNode("i", {
|
|
272
272
|
class: _normalizeClass([
|
|
273
|
-
'ai-ui-sdk-icon g-hover-text-blue g-cursor-pointer g-mr-8',
|
|
273
|
+
'ai-ui-sdk-icon g-hover-text-blue g-cursor-pointer g-mr-8 g-text-18',
|
|
274
274
|
formData.value.rate === 5 ? 'g-text-blue ai-ui-sdk-like' : 'g-text-gray ai-ui-sdk-unlike'
|
|
275
275
|
])
|
|
276
276
|
}, null, 2 /* CLASS */ ), [
|
|
@@ -293,7 +293,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
293
293
|
_renderSlot(_ctx.$slots, "dislike", {}, ()=>[
|
|
294
294
|
_withDirectives(_createElementVNode("i", {
|
|
295
295
|
class: _normalizeClass([
|
|
296
|
-
'ai-ui-sdk-icon dislike-icon g-inline-block g-cursor-pointer g-hover-text-red',
|
|
296
|
+
'ai-ui-sdk-icon dislike-icon g-inline-block g-cursor-pointer g-hover-text-red g-text-18',
|
|
297
297
|
formData.value.rate === 1 ? 'g-text-red ai-ui-sdk-like' : 'g-text-gray ai-ui-sdk-unlike'
|
|
298
298
|
])
|
|
299
299
|
}, null, 2 /* CLASS */ ), [
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
.dislike-icon[data-v-
|
|
3
|
-
|
|
2
|
+
.dislike-icon[data-v-t2yh6ggl] {
|
|
3
|
+
transform: rotateX(180deg);
|
|
4
4
|
}
|
|
5
|
-
.option-items[data-v-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
.option-items[data-v-t2yh6ggl] {
|
|
6
|
+
padding: 1px 8px;
|
|
7
|
+
background-color: #F0F1F5;
|
|
8
|
+
line-height: 22px;
|
|
9
|
+
border-radius: 2px;
|
|
9
10
|
}
|
|
10
|
-
.option-items[data-v-
|
|
11
|
-
background-color: #E1ECFF;
|
|
12
|
-
color: #3A84FF;
|
|
13
|
-
}
|
|
14
|
-
.option-items-selected[data-v-cgj7h30w]{
|
|
11
|
+
.option-items[data-v-t2yh6ggl]:hover {
|
|
15
12
|
background-color: #E1ECFF;
|
|
13
|
+
color: #3A84FF;
|
|
14
|
+
}
|
|
15
|
+
.option-items-selected[data-v-t2yh6ggl]{
|
|
16
|
+
background-color: #E1ECFF;
|
|
16
17
|
}
|
|
17
|
-
[data-v-
|
|
18
|
-
|
|
18
|
+
[data-v-t2yh6ggl] .bk-form-item {
|
|
19
|
+
margin-bottom: 17px;
|
|
19
20
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-nzm7h77v] {
|
|
3
3
|
margin-top: 2px;
|
|
4
4
|
height: 42px;
|
|
5
5
|
background: #FFFFFF;
|
|
6
6
|
box-shadow: 0 2px 4px 0 #1919290d;
|
|
7
|
-
padding: 0
|
|
7
|
+
padding: 0 24px;
|
|
8
8
|
}
|
|
9
|
-
.router-tab a[data-v-
|
|
9
|
+
.router-tab a[data-v-nzm7h77v] {
|
|
10
10
|
padding: 0 8px;
|
|
11
11
|
margin-right: 24px;
|
|
12
12
|
font-size: 14px;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
color: #4D4F56;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
}
|
|
18
|
-
.router-tab a.router-link-exact-active[data-v-
|
|
18
|
+
.router-tab a.router-link-exact-active[data-v-nzm7h77v] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { unref as _unref, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "g-flex-column g-align-center g-mb-40"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "g-text-12 g-text-gray g-flex-row g-justify-center g-flex-wrap g-items-center g-ml-8 g-mr-8"
|
|
9
|
+
};
|
|
10
|
+
import { isEmpty } from '../../common/util.ts.js';
|
|
11
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
12
|
+
props: {
|
|
13
|
+
search: {},
|
|
14
|
+
scene: {},
|
|
15
|
+
description: {}
|
|
16
|
+
},
|
|
17
|
+
emits: [
|
|
18
|
+
"update:search"
|
|
19
|
+
],
|
|
20
|
+
setup (__props, { emit: __emit }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const getDescription = ()=>{
|
|
24
|
+
return isEmpty(props.description) ? '暂无数据' : props.description;
|
|
25
|
+
};
|
|
26
|
+
const handleClearSearch = ()=>{
|
|
27
|
+
if (typeof props.search === 'string') {
|
|
28
|
+
emit('update:search', '');
|
|
29
|
+
}
|
|
30
|
+
if (typeof props.search === 'object') {
|
|
31
|
+
emit('update:search', {});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return (_ctx, _cache)=>{
|
|
35
|
+
const _component_bk_exception = _resolveComponent("bk-exception");
|
|
36
|
+
return _openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
37
|
+
_createVNode(_component_bk_exception, {
|
|
38
|
+
class: _normalizeClass([
|
|
39
|
+
'g-exception',
|
|
40
|
+
props.scene === 'page' ? 'g-mt-100' : 'g-mt-30'
|
|
41
|
+
]),
|
|
42
|
+
scene: props.scene,
|
|
43
|
+
type: _unref(isEmpty)(props.search) ? 'empty' : 'search-empty',
|
|
44
|
+
description: _unref(isEmpty)(props.search) ? getDescription() : '搜索结果为空'
|
|
45
|
+
}, null, 8 /* PROPS */ , [
|
|
46
|
+
"class",
|
|
47
|
+
"scene",
|
|
48
|
+
"type",
|
|
49
|
+
"description"
|
|
50
|
+
]),
|
|
51
|
+
!_unref(isEmpty)(props.search) ? (_openBlock(), _createElementBlock("div", _hoisted_2, [
|
|
52
|
+
_cache[0] || (_cache[0] = _createTextVNode(" 可以尝试调整筛选条件或 ")),
|
|
53
|
+
_createElementVNode("button", {
|
|
54
|
+
class: "g-text-blue g-cursor-pointer g-ml-4",
|
|
55
|
+
onClick: handleClearSearch
|
|
56
|
+
}, " 清空筛选条件 ")
|
|
57
|
+
])) : _createCommentVNode("v-if", true)
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|