@yiitap/vue 1.2.2 → 1.2.4
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 +43 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +43 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11838 -11716
- package/dist/index.mjs.map +1 -1
- package/dist/vue.css +1 -1
- package/package.json +19 -18
- package/types/components/YiiEditor.vue.d.ts +316 -128
- package/types/components/common/OBlockPopover.vue.d.ts +28 -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 +2 -2
- 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 +1 -1
- package/types/components/ui/OIcon.vue.d.ts +19 -1
- package/types/components/ui/OPopover.vue.d.ts +38 -0
- package/types/constants/index.d.ts +2 -0
- package/types/extensions/char-command/emoji/suggestion.d.ts +1 -1
- package/types/extensions/char-command/slash/view.vue.d.ts +1 -1
- package/types/i18n/messages/en.d.ts +3 -0
- package/types/i18n/messages/zh-hans.d.ts +3 -0
- package/types/index.d.ts +4 -2
- package/types/constants/emoji.d.ts +0 -8
|
@@ -10,6 +10,7 @@ declare const popover: import("vue").Ref<{
|
|
|
10
10
|
placement: string;
|
|
11
11
|
trigger: string;
|
|
12
12
|
tippyClass: string;
|
|
13
|
+
contentClass: string;
|
|
13
14
|
event: Record<string, any>;
|
|
14
15
|
delay: number;
|
|
15
16
|
duration: number;
|
|
@@ -20,11 +21,12 @@ declare const popover: import("vue").Ref<{
|
|
|
20
21
|
readonly placement: string;
|
|
21
22
|
readonly trigger: string;
|
|
22
23
|
readonly tippyClass: string;
|
|
24
|
+
readonly contentClass: string;
|
|
23
25
|
readonly event: Record<string, any>;
|
|
24
26
|
readonly delay: number;
|
|
25
27
|
readonly duration: number;
|
|
26
28
|
readonly "onUpdate:show"?: (...args: any[]) => any;
|
|
27
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration">;
|
|
29
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration">;
|
|
28
30
|
$attrs: {
|
|
29
31
|
[x: string]: unknown;
|
|
30
32
|
};
|
|
@@ -64,6 +66,10 @@ declare const popover: import("vue").Ref<{
|
|
|
64
66
|
type: StringConstructor;
|
|
65
67
|
default: string;
|
|
66
68
|
};
|
|
69
|
+
contentClass: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
67
73
|
event: {
|
|
68
74
|
type: ObjectConstructor;
|
|
69
75
|
default: () => {};
|
|
@@ -89,6 +95,7 @@ declare const popover: import("vue").Ref<{
|
|
|
89
95
|
placement: string;
|
|
90
96
|
trigger: string;
|
|
91
97
|
tippyClass: string;
|
|
98
|
+
contentClass: string;
|
|
92
99
|
event: Record<string, any>;
|
|
93
100
|
delay: number;
|
|
94
101
|
duration: number;
|
|
@@ -119,6 +126,7 @@ declare const popover: import("vue").Ref<{
|
|
|
119
126
|
placement: string;
|
|
120
127
|
trigger: string;
|
|
121
128
|
tippyClass: string;
|
|
129
|
+
contentClass: string;
|
|
122
130
|
event: Record<string, any>;
|
|
123
131
|
delay: number;
|
|
124
132
|
duration: number;
|
|
@@ -147,6 +155,10 @@ declare const popover: import("vue").Ref<{
|
|
|
147
155
|
type: StringConstructor;
|
|
148
156
|
default: string;
|
|
149
157
|
};
|
|
158
|
+
contentClass: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
150
162
|
event: {
|
|
151
163
|
type: ObjectConstructor;
|
|
152
164
|
default: () => {};
|
|
@@ -161,7 +173,7 @@ declare const popover: import("vue").Ref<{
|
|
|
161
173
|
};
|
|
162
174
|
}>> & Readonly<{
|
|
163
175
|
"onUpdate:show"?: (...args: any[]) => any;
|
|
164
|
-
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
176
|
+
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
165
177
|
setShow: (show: boolean) => void;
|
|
166
178
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
167
179
|
$slots: {
|
|
@@ -178,6 +190,7 @@ declare const popover: import("vue").Ref<{
|
|
|
178
190
|
placement: string;
|
|
179
191
|
trigger: string;
|
|
180
192
|
tippyClass: string;
|
|
193
|
+
contentClass: string;
|
|
181
194
|
event: Record<string, any>;
|
|
182
195
|
delay: number;
|
|
183
196
|
duration: number;
|
|
@@ -188,11 +201,12 @@ declare const popover: import("vue").Ref<{
|
|
|
188
201
|
readonly placement: string;
|
|
189
202
|
readonly trigger: string;
|
|
190
203
|
readonly tippyClass: string;
|
|
204
|
+
readonly contentClass: string;
|
|
191
205
|
readonly event: Record<string, any>;
|
|
192
206
|
readonly delay: number;
|
|
193
207
|
readonly duration: number;
|
|
194
208
|
readonly "onUpdate:show"?: (...args: any[]) => any;
|
|
195
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration">;
|
|
209
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration">;
|
|
196
210
|
$attrs: {
|
|
197
211
|
[x: string]: unknown;
|
|
198
212
|
};
|
|
@@ -232,6 +246,10 @@ declare const popover: import("vue").Ref<{
|
|
|
232
246
|
type: StringConstructor;
|
|
233
247
|
default: string;
|
|
234
248
|
};
|
|
249
|
+
contentClass: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
235
253
|
event: {
|
|
236
254
|
type: ObjectConstructor;
|
|
237
255
|
default: () => {};
|
|
@@ -257,6 +275,7 @@ declare const popover: import("vue").Ref<{
|
|
|
257
275
|
placement: string;
|
|
258
276
|
trigger: string;
|
|
259
277
|
tippyClass: string;
|
|
278
|
+
contentClass: string;
|
|
260
279
|
event: Record<string, any>;
|
|
261
280
|
delay: number;
|
|
262
281
|
duration: number;
|
|
@@ -287,6 +306,7 @@ declare const popover: import("vue").Ref<{
|
|
|
287
306
|
placement: string;
|
|
288
307
|
trigger: string;
|
|
289
308
|
tippyClass: string;
|
|
309
|
+
contentClass: string;
|
|
290
310
|
event: Record<string, any>;
|
|
291
311
|
delay: number;
|
|
292
312
|
duration: number;
|
|
@@ -315,6 +335,10 @@ declare const popover: import("vue").Ref<{
|
|
|
315
335
|
type: StringConstructor;
|
|
316
336
|
default: string;
|
|
317
337
|
};
|
|
338
|
+
contentClass: {
|
|
339
|
+
type: StringConstructor;
|
|
340
|
+
default: string;
|
|
341
|
+
};
|
|
318
342
|
event: {
|
|
319
343
|
type: ObjectConstructor;
|
|
320
344
|
default: () => {};
|
|
@@ -329,7 +353,7 @@ declare const popover: import("vue").Ref<{
|
|
|
329
353
|
};
|
|
330
354
|
}>> & Readonly<{
|
|
331
355
|
"onUpdate:show"?: (...args: any[]) => any;
|
|
332
|
-
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
356
|
+
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
333
357
|
setShow: (show: boolean) => void;
|
|
334
358
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
335
359
|
$slots: {
|
|
@@ -10,6 +10,7 @@ declare const popover: import("vue").Ref<{
|
|
|
10
10
|
placement: string;
|
|
11
11
|
trigger: string;
|
|
12
12
|
tippyClass: string;
|
|
13
|
+
contentClass: string;
|
|
13
14
|
event: Record<string, any>;
|
|
14
15
|
delay: number;
|
|
15
16
|
duration: number;
|
|
@@ -20,11 +21,12 @@ declare const popover: import("vue").Ref<{
|
|
|
20
21
|
readonly placement: string;
|
|
21
22
|
readonly trigger: string;
|
|
22
23
|
readonly tippyClass: string;
|
|
24
|
+
readonly contentClass: string;
|
|
23
25
|
readonly event: Record<string, any>;
|
|
24
26
|
readonly delay: number;
|
|
25
27
|
readonly duration: number;
|
|
26
28
|
readonly "onUpdate:show"?: (...args: any[]) => any;
|
|
27
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration">;
|
|
29
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration">;
|
|
28
30
|
$attrs: {
|
|
29
31
|
[x: string]: unknown;
|
|
30
32
|
};
|
|
@@ -64,6 +66,10 @@ declare const popover: import("vue").Ref<{
|
|
|
64
66
|
type: StringConstructor;
|
|
65
67
|
default: string;
|
|
66
68
|
};
|
|
69
|
+
contentClass: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
67
73
|
event: {
|
|
68
74
|
type: ObjectConstructor;
|
|
69
75
|
default: () => {};
|
|
@@ -89,6 +95,7 @@ declare const popover: import("vue").Ref<{
|
|
|
89
95
|
placement: string;
|
|
90
96
|
trigger: string;
|
|
91
97
|
tippyClass: string;
|
|
98
|
+
contentClass: string;
|
|
92
99
|
event: Record<string, any>;
|
|
93
100
|
delay: number;
|
|
94
101
|
duration: number;
|
|
@@ -119,6 +126,7 @@ declare const popover: import("vue").Ref<{
|
|
|
119
126
|
placement: string;
|
|
120
127
|
trigger: string;
|
|
121
128
|
tippyClass: string;
|
|
129
|
+
contentClass: string;
|
|
122
130
|
event: Record<string, any>;
|
|
123
131
|
delay: number;
|
|
124
132
|
duration: number;
|
|
@@ -147,6 +155,10 @@ declare const popover: import("vue").Ref<{
|
|
|
147
155
|
type: StringConstructor;
|
|
148
156
|
default: string;
|
|
149
157
|
};
|
|
158
|
+
contentClass: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
150
162
|
event: {
|
|
151
163
|
type: ObjectConstructor;
|
|
152
164
|
default: () => {};
|
|
@@ -161,7 +173,7 @@ declare const popover: import("vue").Ref<{
|
|
|
161
173
|
};
|
|
162
174
|
}>> & Readonly<{
|
|
163
175
|
"onUpdate:show"?: (...args: any[]) => any;
|
|
164
|
-
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
176
|
+
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
165
177
|
setShow: (show: boolean) => void;
|
|
166
178
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
167
179
|
$slots: {
|
|
@@ -178,6 +190,7 @@ declare const popover: import("vue").Ref<{
|
|
|
178
190
|
placement: string;
|
|
179
191
|
trigger: string;
|
|
180
192
|
tippyClass: string;
|
|
193
|
+
contentClass: string;
|
|
181
194
|
event: Record<string, any>;
|
|
182
195
|
delay: number;
|
|
183
196
|
duration: number;
|
|
@@ -188,11 +201,12 @@ declare const popover: import("vue").Ref<{
|
|
|
188
201
|
readonly placement: string;
|
|
189
202
|
readonly trigger: string;
|
|
190
203
|
readonly tippyClass: string;
|
|
204
|
+
readonly contentClass: string;
|
|
191
205
|
readonly event: Record<string, any>;
|
|
192
206
|
readonly delay: number;
|
|
193
207
|
readonly duration: number;
|
|
194
208
|
readonly "onUpdate:show"?: (...args: any[]) => any;
|
|
195
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration">;
|
|
209
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration">;
|
|
196
210
|
$attrs: {
|
|
197
211
|
[x: string]: unknown;
|
|
198
212
|
};
|
|
@@ -232,6 +246,10 @@ declare const popover: import("vue").Ref<{
|
|
|
232
246
|
type: StringConstructor;
|
|
233
247
|
default: string;
|
|
234
248
|
};
|
|
249
|
+
contentClass: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
235
253
|
event: {
|
|
236
254
|
type: ObjectConstructor;
|
|
237
255
|
default: () => {};
|
|
@@ -257,6 +275,7 @@ declare const popover: import("vue").Ref<{
|
|
|
257
275
|
placement: string;
|
|
258
276
|
trigger: string;
|
|
259
277
|
tippyClass: string;
|
|
278
|
+
contentClass: string;
|
|
260
279
|
event: Record<string, any>;
|
|
261
280
|
delay: number;
|
|
262
281
|
duration: number;
|
|
@@ -287,6 +306,7 @@ declare const popover: import("vue").Ref<{
|
|
|
287
306
|
placement: string;
|
|
288
307
|
trigger: string;
|
|
289
308
|
tippyClass: string;
|
|
309
|
+
contentClass: string;
|
|
290
310
|
event: Record<string, any>;
|
|
291
311
|
delay: number;
|
|
292
312
|
duration: number;
|
|
@@ -315,6 +335,10 @@ declare const popover: import("vue").Ref<{
|
|
|
315
335
|
type: StringConstructor;
|
|
316
336
|
default: string;
|
|
317
337
|
};
|
|
338
|
+
contentClass: {
|
|
339
|
+
type: StringConstructor;
|
|
340
|
+
default: string;
|
|
341
|
+
};
|
|
318
342
|
event: {
|
|
319
343
|
type: ObjectConstructor;
|
|
320
344
|
default: () => {};
|
|
@@ -329,7 +353,7 @@ declare const popover: import("vue").Ref<{
|
|
|
329
353
|
};
|
|
330
354
|
}>> & Readonly<{
|
|
331
355
|
"onUpdate:show"?: (...args: any[]) => any;
|
|
332
|
-
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
356
|
+
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
333
357
|
setShow: (show: boolean) => void;
|
|
334
358
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
335
359
|
$slots: {
|
|
@@ -91,10 +91,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
91
91
|
color: string;
|
|
92
92
|
icon: string;
|
|
93
93
|
placement: string;
|
|
94
|
+
contentClass: string | Record<string, any>;
|
|
94
95
|
background: string;
|
|
95
96
|
tooltip: string;
|
|
96
97
|
disabled: boolean;
|
|
97
|
-
contentClass: string | Record<string, any>;
|
|
98
98
|
contentStyle: string | Record<string, any>;
|
|
99
99
|
iconClass: string | Record<string, any>;
|
|
100
100
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -180,10 +180,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
180
180
|
color: string;
|
|
181
181
|
icon: string;
|
|
182
182
|
placement: string;
|
|
183
|
+
contentClass: string | Record<string, any>;
|
|
183
184
|
background: string;
|
|
184
185
|
tooltip: string;
|
|
185
186
|
disabled: boolean;
|
|
186
|
-
contentClass: string | Record<string, any>;
|
|
187
187
|
contentStyle: string | Record<string, any>;
|
|
188
188
|
iconClass: string | Record<string, any>;
|
|
189
189
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -91,10 +91,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
91
91
|
color: string;
|
|
92
92
|
icon: string;
|
|
93
93
|
placement: string;
|
|
94
|
+
contentClass: string | Record<string, any>;
|
|
94
95
|
background: string;
|
|
95
96
|
tooltip: string;
|
|
96
97
|
disabled: boolean;
|
|
97
|
-
contentClass: string | Record<string, any>;
|
|
98
98
|
contentStyle: string | Record<string, any>;
|
|
99
99
|
iconClass: string | Record<string, any>;
|
|
100
100
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -180,10 +180,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
180
180
|
color: string;
|
|
181
181
|
icon: string;
|
|
182
182
|
placement: string;
|
|
183
|
+
contentClass: string | Record<string, any>;
|
|
183
184
|
background: string;
|
|
184
185
|
tooltip: string;
|
|
185
186
|
disabled: boolean;
|
|
186
|
-
contentClass: string | Record<string, any>;
|
|
187
187
|
contentStyle: string | Record<string, any>;
|
|
188
188
|
iconClass: string | Record<string, any>;
|
|
189
189
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -9,6 +9,7 @@ declare const popover: import("vue").Ref<{
|
|
|
9
9
|
placement: string;
|
|
10
10
|
trigger: string;
|
|
11
11
|
tippyClass: string;
|
|
12
|
+
contentClass: string;
|
|
12
13
|
event: Record<string, any>;
|
|
13
14
|
delay: number;
|
|
14
15
|
duration: number;
|
|
@@ -19,11 +20,12 @@ declare const popover: import("vue").Ref<{
|
|
|
19
20
|
readonly placement: string;
|
|
20
21
|
readonly trigger: string;
|
|
21
22
|
readonly tippyClass: string;
|
|
23
|
+
readonly contentClass: string;
|
|
22
24
|
readonly event: Record<string, any>;
|
|
23
25
|
readonly delay: number;
|
|
24
26
|
readonly duration: number;
|
|
25
27
|
readonly "onUpdate:show"?: (...args: any[]) => any;
|
|
26
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration">;
|
|
28
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration">;
|
|
27
29
|
$attrs: {
|
|
28
30
|
[x: string]: unknown;
|
|
29
31
|
};
|
|
@@ -63,6 +65,10 @@ declare const popover: import("vue").Ref<{
|
|
|
63
65
|
type: StringConstructor;
|
|
64
66
|
default: string;
|
|
65
67
|
};
|
|
68
|
+
contentClass: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
66
72
|
event: {
|
|
67
73
|
type: ObjectConstructor;
|
|
68
74
|
default: () => {};
|
|
@@ -88,6 +94,7 @@ declare const popover: import("vue").Ref<{
|
|
|
88
94
|
placement: string;
|
|
89
95
|
trigger: string;
|
|
90
96
|
tippyClass: string;
|
|
97
|
+
contentClass: string;
|
|
91
98
|
event: Record<string, any>;
|
|
92
99
|
delay: number;
|
|
93
100
|
duration: number;
|
|
@@ -118,6 +125,7 @@ declare const popover: import("vue").Ref<{
|
|
|
118
125
|
placement: string;
|
|
119
126
|
trigger: string;
|
|
120
127
|
tippyClass: string;
|
|
128
|
+
contentClass: string;
|
|
121
129
|
event: Record<string, any>;
|
|
122
130
|
delay: number;
|
|
123
131
|
duration: number;
|
|
@@ -146,6 +154,10 @@ declare const popover: import("vue").Ref<{
|
|
|
146
154
|
type: StringConstructor;
|
|
147
155
|
default: string;
|
|
148
156
|
};
|
|
157
|
+
contentClass: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
149
161
|
event: {
|
|
150
162
|
type: ObjectConstructor;
|
|
151
163
|
default: () => {};
|
|
@@ -160,7 +172,7 @@ declare const popover: import("vue").Ref<{
|
|
|
160
172
|
};
|
|
161
173
|
}>> & Readonly<{
|
|
162
174
|
"onUpdate:show"?: (...args: any[]) => any;
|
|
163
|
-
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
175
|
+
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
164
176
|
setShow: (show: boolean) => void;
|
|
165
177
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
166
178
|
$slots: {
|
|
@@ -177,6 +189,7 @@ declare const popover: import("vue").Ref<{
|
|
|
177
189
|
placement: string;
|
|
178
190
|
trigger: string;
|
|
179
191
|
tippyClass: string;
|
|
192
|
+
contentClass: string;
|
|
180
193
|
event: Record<string, any>;
|
|
181
194
|
delay: number;
|
|
182
195
|
duration: number;
|
|
@@ -187,11 +200,12 @@ declare const popover: import("vue").Ref<{
|
|
|
187
200
|
readonly placement: string;
|
|
188
201
|
readonly trigger: string;
|
|
189
202
|
readonly tippyClass: string;
|
|
203
|
+
readonly contentClass: string;
|
|
190
204
|
readonly event: Record<string, any>;
|
|
191
205
|
readonly delay: number;
|
|
192
206
|
readonly duration: number;
|
|
193
207
|
readonly "onUpdate:show"?: (...args: any[]) => any;
|
|
194
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration">;
|
|
208
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration">;
|
|
195
209
|
$attrs: {
|
|
196
210
|
[x: string]: unknown;
|
|
197
211
|
};
|
|
@@ -231,6 +245,10 @@ declare const popover: import("vue").Ref<{
|
|
|
231
245
|
type: StringConstructor;
|
|
232
246
|
default: string;
|
|
233
247
|
};
|
|
248
|
+
contentClass: {
|
|
249
|
+
type: StringConstructor;
|
|
250
|
+
default: string;
|
|
251
|
+
};
|
|
234
252
|
event: {
|
|
235
253
|
type: ObjectConstructor;
|
|
236
254
|
default: () => {};
|
|
@@ -256,6 +274,7 @@ declare const popover: import("vue").Ref<{
|
|
|
256
274
|
placement: string;
|
|
257
275
|
trigger: string;
|
|
258
276
|
tippyClass: string;
|
|
277
|
+
contentClass: string;
|
|
259
278
|
event: Record<string, any>;
|
|
260
279
|
delay: number;
|
|
261
280
|
duration: number;
|
|
@@ -286,6 +305,7 @@ declare const popover: import("vue").Ref<{
|
|
|
286
305
|
placement: string;
|
|
287
306
|
trigger: string;
|
|
288
307
|
tippyClass: string;
|
|
308
|
+
contentClass: string;
|
|
289
309
|
event: Record<string, any>;
|
|
290
310
|
delay: number;
|
|
291
311
|
duration: number;
|
|
@@ -314,6 +334,10 @@ declare const popover: import("vue").Ref<{
|
|
|
314
334
|
type: StringConstructor;
|
|
315
335
|
default: string;
|
|
316
336
|
};
|
|
337
|
+
contentClass: {
|
|
338
|
+
type: StringConstructor;
|
|
339
|
+
default: string;
|
|
340
|
+
};
|
|
317
341
|
event: {
|
|
318
342
|
type: ObjectConstructor;
|
|
319
343
|
default: () => {};
|
|
@@ -328,7 +352,7 @@ declare const popover: import("vue").Ref<{
|
|
|
328
352
|
};
|
|
329
353
|
}>> & Readonly<{
|
|
330
354
|
"onUpdate:show"?: (...args: any[]) => any;
|
|
331
|
-
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
355
|
+
}>, "setShow" | ("disable" | "arrow" | "offset" | "placement" | "trigger" | "tippyClass" | "contentClass" | "event" | "delay" | "duration")> & import("vue").ShallowUnwrapRef<{
|
|
332
356
|
setShow: (show: boolean) => void;
|
|
333
357
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
334
358
|
$slots: {
|
|
@@ -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>;
|
|
@@ -72,9 +72,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
72
72
|
color: string;
|
|
73
73
|
icon: string;
|
|
74
74
|
placement: string;
|
|
75
|
+
contentClass: string | Record<string, any>;
|
|
75
76
|
background: string;
|
|
76
77
|
tooltip: string;
|
|
77
|
-
contentClass: string | Record<string, any>;
|
|
78
78
|
contentStyle: string | Record<string, any>;
|
|
79
79
|
iconClass: string | Record<string, any>;
|
|
80
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -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;
|