ant-design-x-vue 1.0.8 → 1.1.0
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.en.md +27 -18
- package/README.md +28 -20
- package/dist/index.mjs +7765 -7904
- package/dist/index.umd.js +59 -59
- package/dist/typings/conversations/interface.d.ts +6 -2
- package/dist/typings/sender/Sender.vue.d.ts +20 -0
- package/dist/typings/sender/index.d.ts +20 -0
- package/dist/typings/sender/interface.d.ts +14 -7
- package/dist/typings/transition-collapse/TransitionCollapse.vue.d.ts +2 -2
- package/package.json +2 -2
|
@@ -69,7 +69,7 @@ export interface ConversationsProps extends HTMLAttributes {
|
|
|
69
69
|
* @desc 会话操作菜单
|
|
70
70
|
* @descEN Operation menu for conversations
|
|
71
71
|
*/
|
|
72
|
-
menu?:
|
|
72
|
+
menu?: ConversationsItemProps['menu'] | ((value: Conversation) => ConversationsItemProps['menu']);
|
|
73
73
|
/**
|
|
74
74
|
* @desc 是否支持分组, 开启后默认按 {@link Conversation.group} 字段分组
|
|
75
75
|
* @descEN If grouping is supported, it defaults to the {@link Conversation.group} field
|
|
@@ -100,7 +100,11 @@ export interface ConversationsItemProps extends Omit<HTMLAttributes, 'onClick'>
|
|
|
100
100
|
info: Conversation;
|
|
101
101
|
prefixCls?: string;
|
|
102
102
|
direction?: DirectionType;
|
|
103
|
-
menu?: MenuProps
|
|
103
|
+
menu?: MenuProps & {
|
|
104
|
+
trigger?: VNode | ((conversation: Conversation, info: {
|
|
105
|
+
originNode: VNode;
|
|
106
|
+
}) => VNode);
|
|
107
|
+
};
|
|
104
108
|
active?: boolean;
|
|
105
109
|
onClick?: (info: Conversation) => void;
|
|
106
110
|
}
|
|
@@ -20,6 +20,16 @@ declare function __VLS_template(): {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
}): VNode;
|
|
23
|
+
footer?(props?: {
|
|
24
|
+
info?: {
|
|
25
|
+
components: {
|
|
26
|
+
SendButton: typeof SendButton;
|
|
27
|
+
ClearButton: typeof ClearButton;
|
|
28
|
+
LoadingButton: typeof LoadingButton;
|
|
29
|
+
SpeechButton: typeof SpeechButton;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}): VNode;
|
|
23
33
|
}> & {
|
|
24
34
|
header?(): VNode;
|
|
25
35
|
prefix?(): VNode;
|
|
@@ -34,6 +44,16 @@ declare function __VLS_template(): {
|
|
|
34
44
|
};
|
|
35
45
|
};
|
|
36
46
|
}): VNode;
|
|
47
|
+
footer?(props?: {
|
|
48
|
+
info?: {
|
|
49
|
+
components: {
|
|
50
|
+
SendButton: typeof SendButton;
|
|
51
|
+
ClearButton: typeof ClearButton;
|
|
52
|
+
LoadingButton: typeof LoadingButton;
|
|
53
|
+
SpeechButton: typeof SpeechButton;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}): VNode;
|
|
37
57
|
};
|
|
38
58
|
refs: {};
|
|
39
59
|
rootEl: any;
|
|
@@ -48,6 +48,16 @@ declare const Sender: {
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
}): import("vue").VNode;
|
|
51
|
+
footer?(props?: {
|
|
52
|
+
info?: {
|
|
53
|
+
components: {
|
|
54
|
+
SendButton: typeof import("./components/SendButton.vue").default;
|
|
55
|
+
ClearButton: typeof import("./components/ClearButton.vue").default;
|
|
56
|
+
LoadingButton: typeof import("./components/LoadingButton.vue").default;
|
|
57
|
+
SpeechButton: typeof import("./components/SpeechButton/index.vue").default;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}): import("vue").VNode;
|
|
51
61
|
}> & {
|
|
52
62
|
header?(): import("vue").VNode;
|
|
53
63
|
prefix?(): import("vue").VNode;
|
|
@@ -62,6 +72,16 @@ declare const Sender: {
|
|
|
62
72
|
};
|
|
63
73
|
};
|
|
64
74
|
}): import("vue").VNode;
|
|
75
|
+
footer?(props?: {
|
|
76
|
+
info?: {
|
|
77
|
+
components: {
|
|
78
|
+
SendButton: typeof import("./components/SendButton.vue").default;
|
|
79
|
+
ClearButton: typeof import("./components/ClearButton.vue").default;
|
|
80
|
+
LoadingButton: typeof import("./components/LoadingButton.vue").default;
|
|
81
|
+
SpeechButton: typeof import("./components/SpeechButton/index.vue").default;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}): import("vue").VNode;
|
|
65
85
|
};
|
|
66
86
|
}) & {
|
|
67
87
|
Header: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
@@ -14,13 +14,17 @@ export type SubmitType = 'enter' | 'shiftEnter' | false;
|
|
|
14
14
|
export interface SenderComponents {
|
|
15
15
|
input?: typeof Input.TextArea;
|
|
16
16
|
}
|
|
17
|
+
export type ActionsComponents = {
|
|
18
|
+
SendButton: typeof SendButton;
|
|
19
|
+
ClearButton: typeof ClearButton;
|
|
20
|
+
LoadingButton: typeof LoadingButton;
|
|
21
|
+
SpeechButton: typeof SpeechButton;
|
|
22
|
+
};
|
|
17
23
|
export type ActionsRender = (ori: VNode, info: {
|
|
18
|
-
components:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
SpeechButton: typeof SpeechButton;
|
|
23
|
-
};
|
|
24
|
+
components: ActionsComponents;
|
|
25
|
+
}) => VNode;
|
|
26
|
+
export type FooterRender = (info: {
|
|
27
|
+
components: ActionsComponents;
|
|
24
28
|
}) => VNode;
|
|
25
29
|
export interface SenderProps {
|
|
26
30
|
onKeyPress?: KeyboardEventHandler;
|
|
@@ -45,18 +49,21 @@ export interface SenderProps {
|
|
|
45
49
|
prefix?: CSSProperties;
|
|
46
50
|
input?: CSSProperties;
|
|
47
51
|
actions?: CSSProperties;
|
|
52
|
+
footer?: CSSProperties;
|
|
48
53
|
};
|
|
49
54
|
rootClassName?: string;
|
|
50
55
|
classNames?: {
|
|
51
56
|
prefix?: string;
|
|
52
57
|
input?: string;
|
|
53
58
|
actions?: string;
|
|
59
|
+
footer?: string;
|
|
54
60
|
};
|
|
55
61
|
style?: CSSProperties;
|
|
56
62
|
className?: string;
|
|
57
|
-
actions?: VNode | ActionsRender;
|
|
63
|
+
actions?: VNode | ActionsRender | false;
|
|
58
64
|
allowSpeech?: AvoidValidation<AllowSpeech>;
|
|
59
65
|
prefix?: VNode;
|
|
66
|
+
footer?: VNode | FooterRender;
|
|
60
67
|
header?: VNode;
|
|
61
68
|
autoSize?: boolean | {
|
|
62
69
|
minRows?: number;
|
|
@@ -4,9 +4,9 @@ type __VLS_Props = {
|
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
6
6
|
slots: Readonly<{
|
|
7
|
-
default(props?: any): any;
|
|
7
|
+
default?(props?: any): any;
|
|
8
8
|
}> & {
|
|
9
|
-
default(props?: any): any;
|
|
9
|
+
default?(props?: any): any;
|
|
10
10
|
};
|
|
11
11
|
refs: {};
|
|
12
12
|
rootEl: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ant-design-x-vue",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Craft AI-driven interfaces effortlessly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"AI",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"prettier-plugin-packagejson": "^2.2.18",
|
|
118
118
|
"stylelint": "^14.9.1",
|
|
119
119
|
"typescript": "~5.8.0",
|
|
120
|
-
"unplugin-vue-macros": "^2.
|
|
120
|
+
"unplugin-vue-macros": "^2.14.5",
|
|
121
121
|
"vite": "^5.4.8",
|
|
122
122
|
"vite-plugin-inspect": "^0.8.9",
|
|
123
123
|
"vitepress": "^1.5.0",
|