@kaitify/vue 0.0.1-beta.1
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/LICENSE +21 -0
- package/README.md +3 -0
- package/lib/core/button/button.vue.d.ts +22 -0
- package/lib/core/button/index.d.ts +3 -0
- package/lib/core/button/props.d.ts +21 -0
- package/lib/core/checkbox/checkbox.vue.d.ts +10 -0
- package/lib/core/checkbox/index.d.ts +3 -0
- package/lib/core/checkbox/props.d.ts +14 -0
- package/lib/core/divider/divider.vue.d.ts +2 -0
- package/lib/core/divider/index.d.ts +2 -0
- package/lib/core/icon/icon.vue.d.ts +5 -0
- package/lib/core/icon/index.d.ts +3 -0
- package/lib/core/icon/props.d.ts +6 -0
- package/lib/core/popover/index.d.ts +3 -0
- package/lib/core/popover/popover.vue.d.ts +52 -0
- package/lib/core/popover/props.d.ts +49 -0
- package/lib/core/tabs/index.d.ts +3 -0
- package/lib/core/tabs/props.d.ts +9 -0
- package/lib/core/tabs/tabs.vue.d.ts +21 -0
- package/lib/editor/bubble/bubble.vue.d.ts +40 -0
- package/lib/editor/bubble/index.d.ts +3 -0
- package/lib/editor/bubble/props.d.ts +18 -0
- package/lib/editor/menu/built-in/align-center/align-center.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/align-center/index.d.ts +3 -0
- package/lib/editor/menu/built-in/align-center/props.d.ts +10 -0
- package/lib/editor/menu/built-in/align-justify/align-justify.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/align-justify/index.d.ts +3 -0
- package/lib/editor/menu/built-in/align-justify/props.d.ts +10 -0
- package/lib/editor/menu/built-in/align-left/align-left.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/align-left/index.d.ts +3 -0
- package/lib/editor/menu/built-in/align-left/props.d.ts +10 -0
- package/lib/editor/menu/built-in/align-right/align-right.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/align-right/index.d.ts +3 -0
- package/lib/editor/menu/built-in/align-right/props.d.ts +10 -0
- package/lib/editor/menu/built-in/attachment/attachment.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/attachment/index.d.ts +3 -0
- package/lib/editor/menu/built-in/attachment/props.d.ts +19 -0
- package/lib/editor/menu/built-in/back-color/back-color.vue.d.ts +6 -0
- package/lib/editor/menu/built-in/back-color/index.d.ts +3 -0
- package/lib/editor/menu/built-in/back-color/props.d.ts +15 -0
- package/lib/editor/menu/built-in/blockquote/blockquote.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/blockquote/index.d.ts +3 -0
- package/lib/editor/menu/built-in/blockquote/props.d.ts +10 -0
- package/lib/editor/menu/built-in/bold/bold.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/bold/index.d.ts +3 -0
- package/lib/editor/menu/built-in/bold/props.d.ts +10 -0
- package/lib/editor/menu/built-in/clear-format/clear-format.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/clear-format/index.d.ts +3 -0
- package/lib/editor/menu/built-in/clear-format/props.d.ts +10 -0
- package/lib/editor/menu/built-in/code/code.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/code/index.d.ts +3 -0
- package/lib/editor/menu/built-in/code/props.d.ts +10 -0
- package/lib/editor/menu/built-in/code-block/code-block-languages.vue.d.ts +7 -0
- package/lib/editor/menu/built-in/code-block/code-block.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/code-block/index.d.ts +4 -0
- package/lib/editor/menu/built-in/code-block/props.d.ts +32 -0
- package/lib/editor/menu/built-in/color/color.vue.d.ts +6 -0
- package/lib/editor/menu/built-in/color/index.d.ts +3 -0
- package/lib/editor/menu/built-in/color/props.d.ts +15 -0
- package/lib/editor/menu/built-in/decrease-indent/decrease-indent.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/decrease-indent/index.d.ts +3 -0
- package/lib/editor/menu/built-in/decrease-indent/props.d.ts +10 -0
- package/lib/editor/menu/built-in/font-family/font-family.vue.d.ts +7 -0
- package/lib/editor/menu/built-in/font-family/index.d.ts +3 -0
- package/lib/editor/menu/built-in/font-family/props.d.ts +21 -0
- package/lib/editor/menu/built-in/font-size/font-size.vue.d.ts +7 -0
- package/lib/editor/menu/built-in/font-size/index.d.ts +3 -0
- package/lib/editor/menu/built-in/font-size/props.d.ts +21 -0
- package/lib/editor/menu/built-in/heading/heading.vue.d.ts +7 -0
- package/lib/editor/menu/built-in/heading/index.d.ts +3 -0
- package/lib/editor/menu/built-in/heading/props.d.ts +21 -0
- package/lib/editor/menu/built-in/horizontal/horizontal.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/horizontal/index.d.ts +3 -0
- package/lib/editor/menu/built-in/horizontal/props.d.ts +10 -0
- package/lib/editor/menu/built-in/image/image.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/image/index.d.ts +3 -0
- package/lib/editor/menu/built-in/image/props.d.ts +19 -0
- package/lib/editor/menu/built-in/increase-indent/increase-indent.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/increase-indent/index.d.ts +3 -0
- package/lib/editor/menu/built-in/increase-indent/props.d.ts +10 -0
- package/lib/editor/menu/built-in/index.d.ts +36 -0
- package/lib/editor/menu/built-in/italic/index.d.ts +3 -0
- package/lib/editor/menu/built-in/italic/italic.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/italic/props.d.ts +10 -0
- package/lib/editor/menu/built-in/line-height/index.d.ts +3 -0
- package/lib/editor/menu/built-in/line-height/line-height.vue.d.ts +8 -0
- package/lib/editor/menu/built-in/line-height/props.d.ts +25 -0
- package/lib/editor/menu/built-in/link/index.d.ts +4 -0
- package/lib/editor/menu/built-in/link/link-unset.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/link/link.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/link/props.d.ts +21 -0
- package/lib/editor/menu/built-in/math/index.d.ts +3 -0
- package/lib/editor/menu/built-in/math/math.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/math/props.d.ts +11 -0
- package/lib/editor/menu/built-in/ordered-list/index.d.ts +3 -0
- package/lib/editor/menu/built-in/ordered-list/ordered-list.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/ordered-list/props.d.ts +11 -0
- package/lib/editor/menu/built-in/redo/index.d.ts +3 -0
- package/lib/editor/menu/built-in/redo/props.d.ts +6 -0
- package/lib/editor/menu/built-in/redo/redo.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/strikethrough/index.d.ts +3 -0
- package/lib/editor/menu/built-in/strikethrough/props.d.ts +10 -0
- package/lib/editor/menu/built-in/strikethrough/strikethrough.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/subscript/index.d.ts +3 -0
- package/lib/editor/menu/built-in/subscript/props.d.ts +10 -0
- package/lib/editor/menu/built-in/subscript/subscript.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/superscript/index.d.ts +3 -0
- package/lib/editor/menu/built-in/superscript/props.d.ts +10 -0
- package/lib/editor/menu/built-in/superscript/superscript.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/table/index.d.ts +9 -0
- package/lib/editor/menu/built-in/table/props.d.ts +97 -0
- package/lib/editor/menu/built-in/table/table-add-column.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/table/table-add-row.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/table/table-delete-column.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/table/table-delete-row.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/table/table-merge-cell.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/table/table-unset.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/table/table.vue.d.ts +7 -0
- package/lib/editor/menu/built-in/task/index.d.ts +3 -0
- package/lib/editor/menu/built-in/task/props.d.ts +10 -0
- package/lib/editor/menu/built-in/task/task.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/underline/index.d.ts +3 -0
- package/lib/editor/menu/built-in/underline/props.d.ts +10 -0
- package/lib/editor/menu/built-in/underline/underline.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/undo/index.d.ts +3 -0
- package/lib/editor/menu/built-in/undo/props.d.ts +6 -0
- package/lib/editor/menu/built-in/undo/undo.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/unordered-list/index.d.ts +3 -0
- package/lib/editor/menu/built-in/unordered-list/props.d.ts +11 -0
- package/lib/editor/menu/built-in/unordered-list/unordered-list.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/video/index.d.ts +6 -0
- package/lib/editor/menu/built-in/video/props.d.ts +49 -0
- package/lib/editor/menu/built-in/video/video-controls.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/video/video-loop.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/video/video-muted.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/video/video.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/wrap-down/index.d.ts +3 -0
- package/lib/editor/menu/built-in/wrap-down/props.d.ts +15 -0
- package/lib/editor/menu/built-in/wrap-down/wrap-down.vue.d.ts +5 -0
- package/lib/editor/menu/built-in/wrap-up/index.d.ts +3 -0
- package/lib/editor/menu/built-in/wrap-up/props.d.ts +15 -0
- package/lib/editor/menu/built-in/wrap-up/wrap-up.vue.d.ts +5 -0
- package/lib/editor/menu/index.d.ts +4 -0
- package/lib/editor/menu/menu.vue.d.ts +164 -0
- package/lib/editor/menu/props.d.ts +57 -0
- package/lib/editor/wrapper/index.d.ts +3 -0
- package/lib/editor/wrapper/props.d.ts +133 -0
- package/lib/editor/wrapper/render.d.ts +13 -0
- package/lib/editor/wrapper/wrapper.vue.d.ts +79 -0
- package/lib/index.d.ts +4 -0
- package/lib/kaitify-vue.es.js +44470 -0
- package/lib/kaitify-vue.umd.js +2 -0
- package/lib/locale/en-us.d.ts +24 -0
- package/lib/locale/index.d.ts +2 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 so-better
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonPropsType } from './props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<ButtonPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonPropsType> & Readonly<{}>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
block: boolean;
|
|
13
|
+
active: boolean;
|
|
14
|
+
large: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CheckboxPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<CheckboxPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (...args: any[]) => void;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<CheckboxPropsType> & Readonly<{
|
|
5
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
modelValue: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IconPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconPropsType> & Readonly<{}>, {
|
|
3
|
+
name: string;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Instance } from '@popperjs/core';
|
|
2
|
+
import { PopoverPropsType, PopoverPlacementType } from './props';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
refer?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {
|
|
9
|
+
referRef: HTMLDivElement;
|
|
10
|
+
popoverRef: HTMLDivElement;
|
|
11
|
+
arrowRef: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<PopoverPropsType, {
|
|
17
|
+
visible: import('vue').Ref<boolean, boolean>;
|
|
18
|
+
showPopover: () => void;
|
|
19
|
+
hidePopover: () => void;
|
|
20
|
+
popperInstance: import('vue').Ref<Instance | undefined, Instance | undefined>;
|
|
21
|
+
update: () => Promise<void>;
|
|
22
|
+
realPlacement: import('vue').Ref<PopoverPlacementType, PopoverPlacementType>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
show: (...args: any[]) => void;
|
|
25
|
+
showing: (...args: any[]) => void;
|
|
26
|
+
shown: (...args: any[]) => void;
|
|
27
|
+
hide: (...args: any[]) => void;
|
|
28
|
+
hiding: (...args: any[]) => void;
|
|
29
|
+
hidden: (...args: any[]) => void;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<PopoverPropsType> & Readonly<{
|
|
31
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
onShowing?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onShown?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
onHiding?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onHidden?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
zIndex: number;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
animation: "fade" | "translate" | (string & {});
|
|
41
|
+
placement: PopoverPlacementType;
|
|
42
|
+
arrow: boolean;
|
|
43
|
+
trigger: "hover" | "click" | "custom";
|
|
44
|
+
delay: number;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 浮层位置类型
|
|
3
|
+
*/
|
|
4
|
+
export type PopoverPlacementType = 'auto' | 'auto-start' | 'auto-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end' | 'left-start' | 'left' | 'left-end' | 'right-start' | 'right' | 'right-end';
|
|
5
|
+
/**
|
|
6
|
+
* 浮层组件属性类型
|
|
7
|
+
*/
|
|
8
|
+
export type PopoverPropsType = {
|
|
9
|
+
/**
|
|
10
|
+
* 浮层宽度
|
|
11
|
+
*/
|
|
12
|
+
width?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* 浮层最小宽度
|
|
15
|
+
*/
|
|
16
|
+
minWidth?: string | number;
|
|
17
|
+
/**
|
|
18
|
+
* 浮层最大高度
|
|
19
|
+
*/
|
|
20
|
+
maxHeight?: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* 浮层位置
|
|
23
|
+
*/
|
|
24
|
+
placement?: PopoverPlacementType;
|
|
25
|
+
/**
|
|
26
|
+
* 是否显示三角形
|
|
27
|
+
*/
|
|
28
|
+
arrow?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 触发浮层的方式
|
|
31
|
+
*/
|
|
32
|
+
trigger?: 'hover' | 'click' | 'custom';
|
|
33
|
+
/**
|
|
34
|
+
* 浮层显示动画
|
|
35
|
+
*/
|
|
36
|
+
animation?: 'fade' | 'translate' | (string & {});
|
|
37
|
+
/**
|
|
38
|
+
* 浮层层级
|
|
39
|
+
*/
|
|
40
|
+
zIndex?: number;
|
|
41
|
+
/**
|
|
42
|
+
* 显示延迟时间
|
|
43
|
+
*/
|
|
44
|
+
delay?: number;
|
|
45
|
+
/**
|
|
46
|
+
* 是否禁用浮层
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TabsPropsType } from './props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {
|
|
5
|
+
index: number;
|
|
6
|
+
}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<TabsPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabsPropsType> & Readonly<{}>, {
|
|
13
|
+
names: string[];
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Instance } from '@popperjs/core';
|
|
2
|
+
import { BubblePropsType } from './props';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
elRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<BubblePropsType, {
|
|
14
|
+
elRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
15
|
+
popperInstance: import('vue').Ref<Instance | undefined, Instance | undefined>;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
show: (...args: any[]) => void;
|
|
18
|
+
showing: (...args: any[]) => void;
|
|
19
|
+
shown: (...args: any[]) => void;
|
|
20
|
+
hide: (...args: any[]) => void;
|
|
21
|
+
hiding: (...args: any[]) => void;
|
|
22
|
+
hidden: (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<BubblePropsType> & Readonly<{
|
|
24
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onShowing?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onShown?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
onHiding?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
onHidden?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
visible: boolean;
|
|
32
|
+
zIndex: number;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { KNodeMatchOptionType } from '../../index';
|
|
2
|
+
/**
|
|
3
|
+
* 气泡组件的属性类型
|
|
4
|
+
*/
|
|
5
|
+
export type BubblePropsType = {
|
|
6
|
+
/**
|
|
7
|
+
* 是否显示
|
|
8
|
+
*/
|
|
9
|
+
visible: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 层级
|
|
12
|
+
*/
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
/**
|
|
15
|
+
* 指定条件,每次更新气泡位置时会光标是否在符合条件的节点下,如果符合则根据该节点的真实dom进行定位
|
|
16
|
+
*/
|
|
17
|
+
match?: KNodeMatchOptionType;
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AlignCenterMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AlignCenterMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignCenterMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AlignJustifyMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AlignJustifyMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignJustifyMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AlignLeftMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AlignLeftMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignLeftMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AlignRightMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AlignRightMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignRightMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AttachmentMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AttachmentMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AttachmentMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MenuPropsType } from '../../props';
|
|
2
|
+
export type AttachmentMenuPropsType = {
|
|
3
|
+
/**
|
|
4
|
+
* 是否禁用
|
|
5
|
+
*/
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* 浮层属性
|
|
9
|
+
*/
|
|
10
|
+
popoverProps?: MenuPropsType['popoverProps'];
|
|
11
|
+
/**
|
|
12
|
+
* 附件logo图片地址
|
|
13
|
+
*/
|
|
14
|
+
iconUrl?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 自定义上传方法
|
|
17
|
+
*/
|
|
18
|
+
customUpload?: (file: File) => string | Promise<string>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BackColorMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<BackColorMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BackColorMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
colors: string[];
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BlockquoteMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<BlockquoteMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BlockquoteMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BoldMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<BoldMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BoldMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ClearFormatMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ClearFormatMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ClearFormatMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CodeMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<CodeMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CodeMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HljsLanguageType } from '@kaitify/core';
|
|
2
|
+
import { CodeBlockLanguagesMenuPropsType } from './props';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<CodeBlockLanguagesMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CodeBlockLanguagesMenuPropsType> & Readonly<{}>, {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
languages: HljsLanguageType[];
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CodeBlockMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<CodeBlockMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CodeBlockMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|