@blueking/ai-blueking 0.0.1 → 0.0.3

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
@@ -21,6 +21,7 @@ npm i @blueking/ai-blueking
21
21
  :position-limit="positionLimit"
22
22
  :prompts="prompts"
23
23
  :size-limit="sizeLimit"
24
+ :start-position="startPosition"
24
25
  @choose-prompt="handleChoosePrompt"
25
26
  @clear="handleClear"
26
27
  @close="handleClose"
@@ -97,6 +98,10 @@ npm i @blueking/ai-blueking
97
98
  height: 500,
98
99
  width: 294,
99
100
  };
101
+ const startPosition = {
102
+ right: 0,
103
+ left: window.innerWidth - sizeLimit.width,
104
+ };
100
105
 
101
106
  const handleClear = () => {
102
107
  console.log('trigger clear');
@@ -135,6 +140,7 @@ npm i @blueking/bkui-library
135
140
  :position-limit="positionLimit"
136
141
  :prompts="prompts"
137
142
  :size-limit="sizeLimit"
143
+ :start-position="startPosition"
138
144
  @choose-prompt="handleChoosePrompt"
139
145
  @clear="handleClear"
140
146
  @close="handleClose"
@@ -206,6 +212,10 @@ npm i @blueking/bkui-library
206
212
  height: 500,
207
213
  width: 294,
208
214
  },
215
+ startPosition: {
216
+ right: 0,
217
+ left: window.innerWidth - 294,
218
+ },
209
219
  };
210
220
  },
211
221
  method: {
@@ -18,8 +18,8 @@ export interface ISizeLimit {
18
18
  width: number;
19
19
  }
20
20
  export interface IStartPosition {
21
- top: number;
22
- bottom: number;
23
- left: number;
24
- right: number;
21
+ top?: number;
22
+ bottom?: number;
23
+ left?: number;
24
+ right?: number;
25
25
  }