@blueking/ai-blueking 0.0.5 → 0.0.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 CHANGED
@@ -26,6 +26,7 @@ npm i @blueking/ai-blueking
26
26
  @clear="handleClear"
27
27
  @close="handleClose"
28
28
  @send="handleSend"
29
+ @scroll="handleScroll"
29
30
  />
30
31
  </div>
31
32
  </template>
@@ -114,6 +115,10 @@ npm i @blueking/ai-blueking
114
115
  console.log('trigger send', val);
115
116
  };
116
117
 
118
+ const handleScroll = (event: Event) => {
119
+ console.log('trigger scroll', event);
120
+ };
121
+
117
122
  const handleClose = () => {
118
123
  console.log('trigger close');
119
124
  };
@@ -148,6 +153,7 @@ npm i @blueking/bkui-library
148
153
  @clear="handleClear"
149
154
  @close="handleClose"
150
155
  @send="handleSend"
156
+ @scroll="handleScroll"
151
157
  />
152
158
  </div>
153
159
  </template>
@@ -236,6 +242,9 @@ npm i @blueking/bkui-library
236
242
  handleChoosePrompt(prompt) {
237
243
  console.log('choose prompt', prompt);
238
244
  },
245
+ handleScroll(event: Event) {
246
+ console.log('trigger scroll', event);
247
+ },
239
248
  },
240
249
  };
241
250
  </script>
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
15
15
  clear: () => void;
16
16
  send: (val: string) => void;
17
17
  "choose-prompt": (prompt: IPrompt) => void;
18
+ scroll: (data: Event) => void;
18
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
19
20
  messages: IMessage[];
20
21
  prompts?: IPrompt[] | undefined;
@@ -27,6 +28,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
27
28
  userPhoto?: string | undefined;
28
29
  logo?: string | undefined;
29
30
  }>>> & {
31
+ onScroll?: ((data: Event) => any) | undefined;
30
32
  "onChoose-prompt"?: ((prompt: IPrompt) => any) | undefined;
31
33
  onClear?: (() => any) | undefined;
32
34
  onSend?: ((val: string) => any) | undefined;
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
10
10
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  send: (userInput: string) => void;
12
12
  "choose-prompt": (prompt: IPrompt) => void;
13
+ scroll: (data: Event) => void;
13
14
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
14
15
  messages: IMessage[];
15
16
  prompts?: IPrompt[] | undefined;
@@ -19,6 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
20
  }>, {
20
21
  background: string;
21
22
  }>>> & {
23
+ onScroll?: ((data: Event) => any) | undefined;
22
24
  "onChoose-prompt"?: ((prompt: IPrompt) => any) | undefined;
23
25
  onSend?: ((userInput: string) => any) | undefined;
24
26
  }, {