@yiitap/vue 1.2.3 → 1.3.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/dist/index.cjs +80 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +80 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15129 -13400
- package/dist/index.mjs.map +1 -1
- package/dist/vue.css +1 -1
- package/package.json +23 -18
- package/types/components/YiiEditor.vue.d.ts +331 -124
- package/types/components/buttons/OAiBtn.vue.d.ts +20 -0
- package/types/components/common/OBlockList.vue.d.ts +26 -0
- package/types/components/common/OBlockListItem.vue.d.ts +16 -0
- package/types/components/common/OBlockPopover.vue.d.ts +46 -4
- package/types/components/common/OBlockToolbar.vue.d.ts +28 -4
- package/types/components/common/OCommandBtn.vue.d.ts +2 -2
- package/types/components/common/OCommonBtn.vue.d.ts +22 -4
- package/types/components/common/OContextMenu.vue.d.ts +28 -4
- package/types/components/common/ODocToc.vue.d.ts +38 -5
- package/types/components/common/OMenubarBtn.vue.d.ts +100 -2
- package/types/components/common/OToast.d.ts +11 -0
- package/types/components/index.d.ts +5 -0
- package/types/components/menus/OAiMenu.vue.d.ts +27 -0
- package/types/components/menus/OBubbleMenu.vue.d.ts +1 -1
- package/types/components/menus/OFloatingMenu.vue.d.ts +1 -1
- package/types/components/ui/OBtn.vue.d.ts +36 -0
- package/types/components/ui/OBtnGroup.vue.d.ts +100 -0
- package/types/components/ui/OIcon.vue.d.ts +19 -1
- package/types/components/ui/OInput.vue.d.ts +23 -1
- package/types/components/ui/OPopover.vue.d.ts +38 -0
- package/types/constants/ai.d.ts +6 -0
- package/types/constants/block.d.ts +2 -0
- package/types/constants/data.d.ts +4 -0
- package/types/constants/index.d.ts +4 -0
- package/types/extensions/ai-block/index.d.ts +3 -0
- package/types/extensions/ai-block/view.vue.d.ts +92 -0
- package/types/extensions/char-command/emoji/suggestion.d.ts +5 -9
- package/types/extensions/char-command/slash/suggestion.d.ts +5 -9
- package/types/extensions/char-command/slash/view.vue.d.ts +1 -1
- package/types/extensions/dynamic.d.ts +1 -1
- package/types/extensions/index.d.ts +48 -23
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useAi.d.ts +6 -0
- package/types/hooks/useI18n.d.ts +1 -0
- package/types/hooks/useNodeView.d.ts +6 -0
- package/types/i18n/messages/en.d.ts +47 -0
- package/types/i18n/messages/zh-hans.d.ts +45 -0
- package/types/i18n/messages/zh-hant.d.ts +1 -0
- package/types/index.d.ts +3 -2
- package/types/utils/convert.d.ts +1 -0
- package/types/constants/demo-article.d.ts +0 -7
|
@@ -1,34 +1,67 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import { Editor } from '@tiptap/core';
|
|
3
|
+
interface Heading {
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
level: number;
|
|
7
|
+
}
|
|
3
8
|
/**
|
|
4
9
|
* Find the closest heading when scrolls.
|
|
5
10
|
*
|
|
6
11
|
* @param event
|
|
7
12
|
*/
|
|
8
|
-
declare function onScroll(event:
|
|
13
|
+
declare function onScroll(event: Event): void;
|
|
9
14
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
+
/**
|
|
16
|
+
* Editor instance
|
|
17
|
+
*/
|
|
10
18
|
editor: {
|
|
11
19
|
type: typeof Editor;
|
|
12
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* The max level of heading should be shown
|
|
23
|
+
*/
|
|
13
24
|
maxLevel: {
|
|
14
25
|
type: PropType<2 | 3>;
|
|
15
26
|
default: number;
|
|
16
27
|
};
|
|
17
28
|
}>, {
|
|
29
|
+
/**
|
|
30
|
+
* Find the closest heading when scrolls.
|
|
31
|
+
*
|
|
32
|
+
* @param event
|
|
33
|
+
*/
|
|
18
34
|
onScroll: typeof onScroll;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Heading list
|
|
37
|
+
*/
|
|
38
|
+
headings: import("vue").Ref<{
|
|
39
|
+
id: string;
|
|
40
|
+
text: string;
|
|
41
|
+
level: number;
|
|
42
|
+
}[], Heading[] | {
|
|
43
|
+
id: string;
|
|
44
|
+
text: string;
|
|
45
|
+
level: number;
|
|
46
|
+
}[]>;
|
|
47
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
48
|
+
docScroll: (event: Event) => any;
|
|
22
49
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
/**
|
|
51
|
+
* Editor instance
|
|
52
|
+
*/
|
|
23
53
|
editor: {
|
|
24
54
|
type: typeof Editor;
|
|
25
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* The max level of heading should be shown
|
|
58
|
+
*/
|
|
26
59
|
maxLevel: {
|
|
27
60
|
type: PropType<2 | 3>;
|
|
28
61
|
default: number;
|
|
29
62
|
};
|
|
30
63
|
}>> & Readonly<{
|
|
31
|
-
onDocScroll?: (
|
|
64
|
+
onDocScroll?: (event: Event) => any;
|
|
32
65
|
}>, {
|
|
33
66
|
maxLevel: 2 | 3;
|
|
34
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import OIcon from '../ui/OIcon.vue';
|
|
2
|
+
import OTooltip from '../ui/OTooltip.vue';
|
|
3
|
+
declare const emit: (event: "click", ...args: any[]) => void;
|
|
4
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
}>;
|
|
9
|
+
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
10
|
icon: {
|
|
3
11
|
type: StringConstructor;
|
|
4
12
|
default: string;
|
|
@@ -31,7 +39,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
31
39
|
type: (StringConstructor | ObjectConstructor)[];
|
|
32
40
|
default: string;
|
|
33
41
|
};
|
|
34
|
-
}>, {
|
|
42
|
+
}>, {
|
|
43
|
+
OIcon: typeof OIcon;
|
|
44
|
+
OTooltip: typeof OTooltip;
|
|
45
|
+
emit: typeof emit;
|
|
46
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
47
|
click: (...args: any[]) => void;
|
|
36
48
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
49
|
icon: {
|
|
@@ -72,10 +84,96 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
72
84
|
color: string;
|
|
73
85
|
icon: string;
|
|
74
86
|
placement: string;
|
|
87
|
+
contentClass: string | Record<string, any>;
|
|
75
88
|
background: string;
|
|
76
89
|
tooltip: string;
|
|
90
|
+
contentStyle: string | Record<string, any>;
|
|
91
|
+
iconClass: string | Record<string, any>;
|
|
92
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
94
|
+
icon: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
color: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
background: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
tooltip: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
placement: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
contentClass: {
|
|
115
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
contentStyle: {
|
|
119
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
iconClass: {
|
|
123
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
127
|
+
click: (...args: any[]) => void;
|
|
128
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
+
icon: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
color: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
background: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
tooltip: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
placement: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
contentClass: {
|
|
150
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
contentStyle: {
|
|
154
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
iconClass: {
|
|
158
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
}>> & Readonly<{
|
|
162
|
+
onClick?: (...args: any[]) => any;
|
|
163
|
+
}>, {
|
|
164
|
+
color: string;
|
|
165
|
+
icon: string;
|
|
166
|
+
placement: string;
|
|
77
167
|
contentClass: string | Record<string, any>;
|
|
168
|
+
background: string;
|
|
169
|
+
tooltip: string;
|
|
78
170
|
contentStyle: string | Record<string, any>;
|
|
79
171
|
iconClass: string | Record<string, any>;
|
|
80
172
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
173
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
81
174
|
export default _default;
|
|
175
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
176
|
+
new (): {
|
|
177
|
+
$slots: S;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare class ToastManager {
|
|
2
|
+
private instances;
|
|
3
|
+
error(message: string, duration?: number): void;
|
|
4
|
+
info(message: string, duration?: number): void;
|
|
5
|
+
success(message: string, duration?: number): void;
|
|
6
|
+
warning(message: string, duration?: number): void;
|
|
7
|
+
show(message: string, type?: 'success' | 'error' | 'info' | 'warning', duration?: number): void;
|
|
8
|
+
private repositionToasts;
|
|
9
|
+
}
|
|
10
|
+
export declare const OToast: ToastManager;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as OBlockPlaceholder } from './common/OBlockPlaceholder.vue';
|
|
2
|
+
export { default as OBlockList } from './common/OBlockList.vue';
|
|
3
|
+
export { default as OBlockListItem } from './common/OBlockListItem.vue';
|
|
2
4
|
export { default as OBlockMenu } from './common/OBlockMenu.vue';
|
|
3
5
|
export { default as OBlockPopover } from './common/OBlockPopover.vue';
|
|
4
6
|
export { default as OBlockToolbar } from './common/OBlockToolbar.vue';
|
|
@@ -17,10 +19,12 @@ export { default as OMenubarBtn } from './common/OMenubarBtn.vue';
|
|
|
17
19
|
export { default as OTableGrid } from './common/OTableGrid.vue';
|
|
18
20
|
export { default as OTableCellBackground } from './common/OTableCellBackground.vue';
|
|
19
21
|
export { default as OTextColorBoard } from './common/OTextColorBoard.vue';
|
|
22
|
+
export { OToast } from './common/OToast';
|
|
20
23
|
export { default as ONodeView } from './common/ONodeView.vue';
|
|
21
24
|
export { default as AddNode } from './common/o-side-menu/AddNode.vue';
|
|
22
25
|
export { default as DragNode } from './common/o-side-menu/DragNode.vue';
|
|
23
26
|
export { default as OBtn } from './ui/OBtn.vue';
|
|
27
|
+
export { default as OBtnGroup } from './ui/OBtnGroup.vue';
|
|
24
28
|
export { default as OCheckbox } from './ui/OCheckbox.vue';
|
|
25
29
|
export { default as ODivider } from './ui/ODivider.vue';
|
|
26
30
|
export { default as OIcon } from './ui/OIcon.vue';
|
|
@@ -30,3 +34,4 @@ export { default as OListItem } from './ui/OListItem.vue';
|
|
|
30
34
|
export { default as OPopover } from './ui/OPopover.vue';
|
|
31
35
|
export { default as OTooltip } from './ui/OTooltip.vue';
|
|
32
36
|
export { default as OMainMenu } from './menus/OMainMenu.vue';
|
|
37
|
+
export { default as OAiMenu } from './menus/OAiMenu.vue';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
editor: {
|
|
4
|
+
type: typeof Editor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
menuClass: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
confirm: (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
editor: {
|
|
15
|
+
type: typeof Editor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
menuClass: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
onConfirm?: (...args: any[]) => any;
|
|
24
|
+
}>, {
|
|
25
|
+
menuClass: string;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
33
|
};
|
|
34
34
|
}>> & Readonly<{}>, {
|
|
35
35
|
menu: unknown[];
|
|
36
|
-
tableToolbar: unknown[];
|
|
37
36
|
menuClass: string;
|
|
37
|
+
tableToolbar: unknown[];
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
39
|
export default _default;
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
33
|
};
|
|
34
34
|
}>> & Readonly<{}>, {
|
|
35
35
|
menu: unknown[];
|
|
36
|
-
tableToolbar: unknown[];
|
|
37
36
|
menuClass: string;
|
|
37
|
+
tableToolbar: unknown[];
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
39
|
export default _default;
|
|
@@ -14,10 +14,18 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
14
14
|
type: (StringConstructor | ObjectConstructor)[];
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
|
+
label: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
17
21
|
type: {
|
|
18
22
|
type: StringConstructor;
|
|
19
23
|
default: string;
|
|
20
24
|
};
|
|
25
|
+
loading: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
21
29
|
}>, {
|
|
22
30
|
OIcon: typeof OIcon;
|
|
23
31
|
emit: typeof emit;
|
|
@@ -32,16 +40,26 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
32
40
|
type: (StringConstructor | ObjectConstructor)[];
|
|
33
41
|
default: string;
|
|
34
42
|
};
|
|
43
|
+
label: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
35
47
|
type: {
|
|
36
48
|
type: StringConstructor;
|
|
37
49
|
default: string;
|
|
38
50
|
};
|
|
51
|
+
loading: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
39
55
|
}>> & Readonly<{
|
|
40
56
|
onClick?: (...args: any[]) => any;
|
|
41
57
|
}>, {
|
|
42
58
|
type: string;
|
|
59
|
+
label: string;
|
|
43
60
|
icon: string;
|
|
44
61
|
iconClass: string | Record<string, any>;
|
|
62
|
+
loading: boolean;
|
|
45
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
64
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
47
65
|
icon: {
|
|
@@ -52,10 +70,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
52
70
|
type: (StringConstructor | ObjectConstructor)[];
|
|
53
71
|
default: string;
|
|
54
72
|
};
|
|
73
|
+
label: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
55
77
|
type: {
|
|
56
78
|
type: StringConstructor;
|
|
57
79
|
default: string;
|
|
58
80
|
};
|
|
81
|
+
loading: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
59
85
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
86
|
click: (...args: any[]) => void;
|
|
61
87
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -67,16 +93,26 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
67
93
|
type: (StringConstructor | ObjectConstructor)[];
|
|
68
94
|
default: string;
|
|
69
95
|
};
|
|
96
|
+
label: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
70
100
|
type: {
|
|
71
101
|
type: StringConstructor;
|
|
72
102
|
default: string;
|
|
73
103
|
};
|
|
104
|
+
loading: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
74
108
|
}>> & Readonly<{
|
|
75
109
|
onClick?: (...args: any[]) => any;
|
|
76
110
|
}>, {
|
|
77
111
|
type: string;
|
|
112
|
+
label: string;
|
|
78
113
|
icon: string;
|
|
79
114
|
iconClass: string | Record<string, any>;
|
|
115
|
+
loading: boolean;
|
|
80
116
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
117
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
82
118
|
export default _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
}>;
|
|
6
|
+
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
icon: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
iconClass: {
|
|
12
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
label: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
type: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
click: (...args: any[]) => void;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
icon: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
iconClass: {
|
|
31
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
label: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
type: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{
|
|
43
|
+
onClick?: (...args: any[]) => any;
|
|
44
|
+
}>, {
|
|
45
|
+
type: string;
|
|
46
|
+
label: string;
|
|
47
|
+
icon: string;
|
|
48
|
+
iconClass: string | Record<string, any>;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
51
|
+
icon: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
iconClass: {
|
|
56
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
label: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
type: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
68
|
+
click: (...args: any[]) => void;
|
|
69
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
icon: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
iconClass: {
|
|
75
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
label: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
type: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onClick?: (...args: any[]) => any;
|
|
88
|
+
}>, {
|
|
89
|
+
type: string;
|
|
90
|
+
label: string;
|
|
91
|
+
icon: string;
|
|
92
|
+
iconClass: string | Record<string, any>;
|
|
93
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
94
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
97
|
+
new (): {
|
|
98
|
+
$slots: S;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -1,32 +1,50 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
/**
|
|
3
|
+
* Icon name
|
|
4
|
+
*/
|
|
2
5
|
name: {
|
|
3
6
|
type: StringConstructor;
|
|
4
7
|
default: string;
|
|
5
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Icon color, color name, or hex value
|
|
11
|
+
*/
|
|
6
12
|
color: {
|
|
7
13
|
type: StringConstructor;
|
|
8
14
|
default: string;
|
|
9
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Small
|
|
18
|
+
*/
|
|
10
19
|
small: {
|
|
11
20
|
type: BooleanConstructor;
|
|
12
21
|
default: boolean;
|
|
13
22
|
};
|
|
14
23
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
/**
|
|
25
|
+
* Icon name
|
|
26
|
+
*/
|
|
15
27
|
name: {
|
|
16
28
|
type: StringConstructor;
|
|
17
29
|
default: string;
|
|
18
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Icon color, color name, or hex value
|
|
33
|
+
*/
|
|
19
34
|
color: {
|
|
20
35
|
type: StringConstructor;
|
|
21
36
|
default: string;
|
|
22
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* Small
|
|
40
|
+
*/
|
|
23
41
|
small: {
|
|
24
42
|
type: BooleanConstructor;
|
|
25
43
|
default: boolean;
|
|
26
44
|
};
|
|
27
45
|
}>> & Readonly<{}>, {
|
|
28
46
|
name: string;
|
|
29
|
-
color: string;
|
|
30
47
|
small: boolean;
|
|
48
|
+
color: string;
|
|
31
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
50
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import OIcon from './OIcon.vue';
|
|
2
|
-
declare const emit: (event: "blur" | "update:modelValue", ...args: any[]) => void;
|
|
2
|
+
declare const emit: (event: "blur" | "focus" | "update:modelValue", ...args: any[]) => void;
|
|
3
3
|
declare const input: import("vue").Ref<HTMLInputElement, HTMLInputElement>;
|
|
4
4
|
declare const value: import("vue").WritableComputedRef<string, string>;
|
|
5
5
|
declare function focus(): void;
|
|
@@ -16,6 +16,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
16
16
|
type: StringConstructor;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
19
23
|
clearable: {
|
|
20
24
|
type: BooleanConstructor;
|
|
21
25
|
default: boolean;
|
|
@@ -32,12 +36,17 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
32
36
|
clear: typeof clear;
|
|
33
37
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
38
|
blur: (...args: any[]) => void;
|
|
39
|
+
focus: (...args: any[]) => void;
|
|
35
40
|
"update:modelValue": (...args: any[]) => void;
|
|
36
41
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
42
|
modelValue: {
|
|
38
43
|
type: StringConstructor;
|
|
39
44
|
default: string;
|
|
40
45
|
};
|
|
46
|
+
placeholder: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
41
50
|
clearable: {
|
|
42
51
|
type: BooleanConstructor;
|
|
43
52
|
default: boolean;
|
|
@@ -48,9 +57,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
48
57
|
};
|
|
49
58
|
}>> & Readonly<{
|
|
50
59
|
onBlur?: (...args: any[]) => any;
|
|
60
|
+
onFocus?: (...args: any[]) => any;
|
|
51
61
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
52
62
|
}>, {
|
|
53
63
|
type: string;
|
|
64
|
+
placeholder: string;
|
|
54
65
|
modelValue: string;
|
|
55
66
|
clearable: boolean;
|
|
56
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -59,6 +70,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
59
70
|
type: StringConstructor;
|
|
60
71
|
default: string;
|
|
61
72
|
};
|
|
73
|
+
placeholder: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
62
77
|
clearable: {
|
|
63
78
|
type: BooleanConstructor;
|
|
64
79
|
default: boolean;
|
|
@@ -72,12 +87,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
72
87
|
focus: typeof focus;
|
|
73
88
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
89
|
blur: (...args: any[]) => void;
|
|
90
|
+
focus: (...args: any[]) => void;
|
|
75
91
|
"update:modelValue": (...args: any[]) => void;
|
|
76
92
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
93
|
modelValue: {
|
|
78
94
|
type: StringConstructor;
|
|
79
95
|
default: string;
|
|
80
96
|
};
|
|
97
|
+
placeholder: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
81
101
|
clearable: {
|
|
82
102
|
type: BooleanConstructor;
|
|
83
103
|
default: boolean;
|
|
@@ -88,9 +108,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
88
108
|
};
|
|
89
109
|
}>> & Readonly<{
|
|
90
110
|
onBlur?: (...args: any[]) => any;
|
|
111
|
+
onFocus?: (...args: any[]) => any;
|
|
91
112
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
92
113
|
}>, {
|
|
93
114
|
type: string;
|
|
115
|
+
placeholder: string;
|
|
94
116
|
modelValue: string;
|
|
95
117
|
clearable: boolean;
|
|
96
118
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|