@blueking/ai-blueking 0.0.3 → 0.0.5
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 +11 -6
- package/dist/ai-blueking.vue.d.ts +3 -3
- package/dist/components/render-modal.vue.d.ts +17 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/vue2/index.es.min.js +4128 -4109
- package/dist/vue2/index.iife.min.js +32 -32
- package/dist/vue2/index.umd.min.js +29 -29
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.es.min.js +305 -300
- package/dist/vue3/index.iife.min.js +2 -2
- package/dist/vue3/index.umd.min.js +2 -2
- package/dist/vue3/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,12 +95,15 @@ npm i @blueking/ai-blueking
|
|
|
95
95
|
};
|
|
96
96
|
// 组件最小尺寸
|
|
97
97
|
const sizeLimit = {
|
|
98
|
-
height:
|
|
99
|
-
width:
|
|
98
|
+
height: 320,
|
|
99
|
+
width: 400,
|
|
100
100
|
};
|
|
101
|
+
// 初始位置
|
|
101
102
|
const startPosition = {
|
|
103
|
+
top: window.innerHeight - 560,
|
|
104
|
+
bottom: 0,
|
|
105
|
+
left: window.innerWidth - 400,
|
|
102
106
|
right: 0,
|
|
103
|
-
left: window.innerWidth - sizeLimit.width,
|
|
104
107
|
};
|
|
105
108
|
|
|
106
109
|
const handleClear = () => {
|
|
@@ -209,12 +212,14 @@ npm i @blueking/bkui-library
|
|
|
209
212
|
right: 0,
|
|
210
213
|
},
|
|
211
214
|
sizeLimit: {
|
|
212
|
-
height:
|
|
213
|
-
width:
|
|
215
|
+
height: 320,
|
|
216
|
+
width: 400,
|
|
214
217
|
},
|
|
215
218
|
startPosition: {
|
|
219
|
+
top: window.innerHeight - 560,
|
|
220
|
+
bottom: 0,
|
|
221
|
+
left: window.innerWidth - 400,
|
|
216
222
|
right: 0,
|
|
217
|
-
left: window.innerWidth - 294,
|
|
218
223
|
},
|
|
219
224
|
};
|
|
220
225
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMessage, IPrompt, IPositionLimit,
|
|
1
|
+
import type { IMessage, IPrompt, IPositionLimit, ISize, IStartPosition } from './types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
messages: IMessage[];
|
|
4
4
|
prompts?: IPrompt[] | undefined;
|
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
6
6
|
headBackground?: string | undefined;
|
|
7
7
|
background?: string | undefined;
|
|
8
8
|
positionLimit?: IPositionLimit | undefined;
|
|
9
|
-
sizeLimit?:
|
|
9
|
+
sizeLimit?: ISize | undefined;
|
|
10
10
|
startPosition?: IStartPosition | undefined;
|
|
11
11
|
userPhoto?: string | undefined;
|
|
12
12
|
logo?: string | undefined;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
22
22
|
headBackground?: string | undefined;
|
|
23
23
|
background?: string | undefined;
|
|
24
24
|
positionLimit?: IPositionLimit | undefined;
|
|
25
|
-
sizeLimit?:
|
|
25
|
+
sizeLimit?: ISize | undefined;
|
|
26
26
|
startPosition?: IStartPosition | undefined;
|
|
27
27
|
userPhoto?: string | undefined;
|
|
28
28
|
logo?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IPositionLimit,
|
|
1
|
+
import type { IPositionLimit, ISize, IStartPosition } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
headBackground: string;
|
|
4
4
|
positionLimit?: IPositionLimit | undefined;
|
|
5
|
-
sizeLimit?:
|
|
5
|
+
sizeLimit?: ISize | undefined;
|
|
6
6
|
logo?: string | undefined;
|
|
7
7
|
startPosition?: IStartPosition | undefined;
|
|
8
8
|
}>, {
|
|
@@ -17,6 +17,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
17
|
height: number;
|
|
18
18
|
width: number;
|
|
19
19
|
};
|
|
20
|
+
startPosition: () => {
|
|
21
|
+
top: number;
|
|
22
|
+
bottom: number;
|
|
23
|
+
left: number;
|
|
24
|
+
right: number;
|
|
25
|
+
};
|
|
20
26
|
logo: string;
|
|
21
27
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
28
|
close: () => void;
|
|
@@ -24,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
25
31
|
headBackground: string;
|
|
26
32
|
positionLimit?: IPositionLimit | undefined;
|
|
27
|
-
sizeLimit?:
|
|
33
|
+
sizeLimit?: ISize | undefined;
|
|
28
34
|
logo?: string | undefined;
|
|
29
35
|
startPosition?: IStartPosition | undefined;
|
|
30
36
|
}>, {
|
|
@@ -39,6 +45,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
45
|
height: number;
|
|
40
46
|
width: number;
|
|
41
47
|
};
|
|
48
|
+
startPosition: () => {
|
|
49
|
+
top: number;
|
|
50
|
+
bottom: number;
|
|
51
|
+
left: number;
|
|
52
|
+
right: number;
|
|
53
|
+
};
|
|
42
54
|
logo: string;
|
|
43
55
|
}>>> & {
|
|
44
56
|
onClear?: (() => any) | undefined;
|
|
@@ -46,8 +58,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
58
|
}, {
|
|
47
59
|
headBackground: string;
|
|
48
60
|
positionLimit: IPositionLimit;
|
|
49
|
-
sizeLimit:
|
|
61
|
+
sizeLimit: ISize;
|
|
50
62
|
logo: string;
|
|
63
|
+
startPosition: IStartPosition;
|
|
51
64
|
}, {}>, {
|
|
52
65
|
default?(_: {}): any;
|
|
53
66
|
}>;
|