@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 CHANGED
@@ -95,12 +95,15 @@ npm i @blueking/ai-blueking
95
95
  };
96
96
  // 组件最小尺寸
97
97
  const sizeLimit = {
98
- height: 500,
99
- width: 294,
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: 500,
213
- width: 294,
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, ISizeLimit, IStartPosition } from './types';
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?: ISizeLimit | undefined;
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?: ISizeLimit | undefined;
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, ISizeLimit, IStartPosition } from '../types';
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?: ISizeLimit | undefined;
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?: ISizeLimit | undefined;
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: ISizeLimit;
61
+ sizeLimit: ISize;
50
62
  logo: string;
63
+ startPosition: IStartPosition;
51
64
  }, {}>, {
52
65
  default?(_: {}): any;
53
66
  }>;
@@ -13,7 +13,7 @@ export interface IPositionLimit {
13
13
  left: number;
14
14
  right: number;
15
15
  }
16
- export interface ISizeLimit {
16
+ export interface ISize {
17
17
  height: number;
18
18
  width: number;
19
19
  }