@vunk/plus 1.9.1 → 1.9.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/components/broadcasting-markdown/index.mjs +5 -5
- package/components/bubble-list/src/core/index.vue.d.ts +7 -5
- package/components/bubble-list/src/index.vue.d.ts +6 -5
- package/components/chat-independent/index.mjs +0 -1
- package/components/chat-independent/src/index.vue.d.ts +6 -5
- package/components/index3.mjs +7 -4
- package/package.json +1 -1
|
@@ -4199,17 +4199,17 @@ var _sfc_main = defineComponent({
|
|
|
4199
4199
|
return theData.value.find((item) => item.status === ParagraphStatus.pending);
|
|
4200
4200
|
});
|
|
4201
4201
|
watch(() => props2.status, () => {
|
|
4202
|
+
if (props2.status === TickerStatus.stop) {
|
|
4203
|
+
theData.value.forEach((item) => {
|
|
4204
|
+
item.broadcast = Broadcast.stop;
|
|
4205
|
+
});
|
|
4206
|
+
}
|
|
4202
4207
|
if (!currentPragraph.value) {
|
|
4203
4208
|
return;
|
|
4204
4209
|
}
|
|
4205
4210
|
if (currentPragraph.value.broadcast !== props2.status) {
|
|
4206
4211
|
currentPragraph.value.broadcast = props2.status;
|
|
4207
4212
|
}
|
|
4208
|
-
if (props2.status === TickerStatus.stop) {
|
|
4209
|
-
theData.value.forEach((item) => {
|
|
4210
|
-
item.broadcast = Broadcast.stop;
|
|
4211
|
-
});
|
|
4212
|
-
}
|
|
4213
4213
|
}, { immediate: true });
|
|
4214
4214
|
function handleParagraphStatus(para, v) {
|
|
4215
4215
|
if (para.status === ParagraphStatus.pending) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { __VkAgentChatProvider } from '@vunk/plus/components/agent-chat-provider';
|
|
2
|
+
import type { AnyFunc } from '@vunk/shared';
|
|
2
3
|
import type { PropType, Ref, TeleportProps } from 'vue';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
list: {
|
|
@@ -115,8 +116,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
115
116
|
onComplete?: ((...args: any[]) => any) | undefined;
|
|
116
117
|
}> & {}>;
|
|
117
118
|
scrollbarRef: Ref<({
|
|
118
|
-
scrollToBottom:
|
|
119
|
-
scrollToTop:
|
|
119
|
+
scrollToBottom: AnyFunc;
|
|
120
|
+
scrollToTop: AnyFunc;
|
|
120
121
|
} & {
|
|
121
122
|
$: import("vue").ComponentInternalInstance;
|
|
122
123
|
$data: {};
|
|
@@ -452,8 +453,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
452
453
|
default?(_: {}): any;
|
|
453
454
|
};
|
|
454
455
|
}) | undefined, ({
|
|
455
|
-
scrollToBottom:
|
|
456
|
-
scrollToTop:
|
|
456
|
+
scrollToBottom: AnyFunc;
|
|
457
|
+
scrollToTop: AnyFunc;
|
|
457
458
|
} & {
|
|
458
459
|
$: import("vue").ComponentInternalInstance;
|
|
459
460
|
$data: {};
|
|
@@ -794,7 +795,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
794
795
|
scrollViewEl: Ref<HTMLDivElement, HTMLDivElement>;
|
|
795
796
|
btnShow: import("vue").ComputedRef<boolean>;
|
|
796
797
|
getDistanceToBottom: () => number | undefined;
|
|
797
|
-
scrollToBottom: () => void;
|
|
798
|
+
scrollToBottom: (...args: any[]) => void;
|
|
799
|
+
scrollToTop: (...args: any[]) => void;
|
|
798
800
|
scrollToBubble: (index: number) => void;
|
|
799
801
|
readonly ArrowDownBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
800
802
|
readonly VkScrollbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -478,8 +478,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
478
478
|
onComplete?: ((...args: any[]) => any) | undefined;
|
|
479
479
|
}> & {}>;
|
|
480
480
|
scrollbarRef: import("vue").Ref<({
|
|
481
|
-
scrollToBottom: ()
|
|
482
|
-
scrollToTop: ()
|
|
481
|
+
scrollToBottom: import("@vunk/shared").AnyFunc;
|
|
482
|
+
scrollToTop: import("@vunk/shared").AnyFunc;
|
|
483
483
|
} & {
|
|
484
484
|
$: import("vue").ComponentInternalInstance;
|
|
485
485
|
$data: {};
|
|
@@ -815,8 +815,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
815
815
|
default?(_: {}): any;
|
|
816
816
|
};
|
|
817
817
|
}) | undefined, ({
|
|
818
|
-
scrollToBottom: ()
|
|
819
|
-
scrollToTop: ()
|
|
818
|
+
scrollToBottom: import("@vunk/shared").AnyFunc;
|
|
819
|
+
scrollToTop: import("@vunk/shared").AnyFunc;
|
|
820
820
|
} & {
|
|
821
821
|
$: import("vue").ComponentInternalInstance;
|
|
822
822
|
$data: {};
|
|
@@ -1157,7 +1157,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1157
1157
|
scrollViewEl: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
1158
1158
|
btnShow: import("vue").ComputedRef<boolean>;
|
|
1159
1159
|
getDistanceToBottom: () => number | undefined;
|
|
1160
|
-
scrollToBottom: () => void;
|
|
1160
|
+
scrollToBottom: (...args: any[]) => void;
|
|
1161
|
+
scrollToTop: (...args: any[]) => void;
|
|
1161
1162
|
scrollToBubble: (index: number) => void;
|
|
1162
1163
|
readonly ArrowDownBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1163
1164
|
readonly VkScrollbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -215,7 +215,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
withDirectives(createVNode($setup["VkSender"], {
|
|
216
216
|
modelValue: $setup.content,
|
|
217
217
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.content = $event),
|
|
218
|
-
"auto-size": true,
|
|
219
218
|
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
|
|
220
219
|
"send-disabled": $setup.senderDisabled,
|
|
221
220
|
loading: $setup.clientLoading,
|
|
@@ -1028,8 +1028,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1028
1028
|
onComplete?: ((...args: any[]) => any) | undefined;
|
|
1029
1029
|
}> & {}>;
|
|
1030
1030
|
scrollbarRef: import("vue").Ref<({
|
|
1031
|
-
scrollToBottom: ()
|
|
1032
|
-
scrollToTop: ()
|
|
1031
|
+
scrollToBottom: import("@vunk/shared").AnyFunc;
|
|
1032
|
+
scrollToTop: import("@vunk/shared").AnyFunc;
|
|
1033
1033
|
} & {
|
|
1034
1034
|
$: import("vue").ComponentInternalInstance;
|
|
1035
1035
|
$data: {};
|
|
@@ -1365,8 +1365,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1365
1365
|
default?(_: {}): any;
|
|
1366
1366
|
};
|
|
1367
1367
|
}) | undefined, ({
|
|
1368
|
-
scrollToBottom: ()
|
|
1369
|
-
scrollToTop: ()
|
|
1368
|
+
scrollToBottom: import("@vunk/shared").AnyFunc;
|
|
1369
|
+
scrollToTop: import("@vunk/shared").AnyFunc;
|
|
1370
1370
|
} & {
|
|
1371
1371
|
$: import("vue").ComponentInternalInstance;
|
|
1372
1372
|
$data: {};
|
|
@@ -1707,7 +1707,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1707
1707
|
scrollViewEl: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
1708
1708
|
btnShow: import("vue").ComputedRef<boolean>;
|
|
1709
1709
|
getDistanceToBottom: () => number | undefined;
|
|
1710
|
-
scrollToBottom: () => void;
|
|
1710
|
+
scrollToBottom: (...args: any[]) => void;
|
|
1711
|
+
scrollToTop: (...args: any[]) => void;
|
|
1711
1712
|
scrollToBubble: (index: number) => void;
|
|
1712
1713
|
readonly ArrowDownBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1713
1714
|
readonly VkScrollbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
package/components/index3.mjs
CHANGED
|
@@ -79237,8 +79237,11 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
79237
79237
|
distanceToBottom.value = wrap.scrollHeight - wrap.scrollTop - wrap.clientHeight;
|
|
79238
79238
|
return distanceToBottom.value;
|
|
79239
79239
|
}
|
|
79240
|
-
function scrollToBottom() {
|
|
79241
|
-
scrollbarRef.value?.scrollToBottom();
|
|
79240
|
+
function scrollToBottom(...args) {
|
|
79241
|
+
scrollbarRef.value?.scrollToBottom(...args);
|
|
79242
|
+
}
|
|
79243
|
+
function scrollToTop(...args) {
|
|
79244
|
+
scrollbarRef.value?.scrollToTop(...args);
|
|
79242
79245
|
}
|
|
79243
79246
|
if (props.autoScroll) {
|
|
79244
79247
|
useResizeObserver$1(scrollViewEl, () => {
|
|
@@ -79266,11 +79269,11 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
79266
79269
|
});
|
|
79267
79270
|
}
|
|
79268
79271
|
__expose({
|
|
79269
|
-
scrollToTop
|
|
79272
|
+
scrollToTop,
|
|
79270
79273
|
scrollToBottom,
|
|
79271
79274
|
scrollToBubble
|
|
79272
79275
|
});
|
|
79273
|
-
const __returned__ = { props, scrollbarRef, initStyle, distanceToBottom, scrollViewEl, btnShow, getDistanceToBottom, scrollToBottom, scrollToBubble, get ArrowDownBold() {
|
|
79276
|
+
const __returned__ = { props, scrollbarRef, initStyle, distanceToBottom, scrollViewEl, btnShow, getDistanceToBottom, scrollToBottom, scrollToTop, scrollToBubble, get ArrowDownBold() {
|
|
79274
79277
|
return arrow_down_bold_default$1;
|
|
79275
79278
|
}, get VkScrollbar() {
|
|
79276
79279
|
return VkScrollbar;
|