@xto/feedback 1.2.0 → 1.2.2

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.
Files changed (40) hide show
  1. package/es/Alert/index.d.ts +16 -0
  2. package/es/Alert/index.vue.d.ts +36 -0
  3. package/es/Alert/types.d.ts +50 -0
  4. package/es/Backtop/index.d.ts +12 -0
  5. package/es/Backtop/index.vue.d.ts +33 -0
  6. package/es/Backtop/types.d.ts +33 -0
  7. package/es/Drawer/index.d.ts +24 -0
  8. package/es/Drawer/index.vue.d.ts +54 -0
  9. package/es/Drawer/types.d.ts +78 -0
  10. package/es/DrawerForm/index.d.ts +2 -0
  11. package/es/DrawerForm/index.vue.d.ts +67 -0
  12. package/es/DrawerForm/types.d.ts +48 -0
  13. package/es/Message/index.d.ts +68 -0
  14. package/es/Message/index.vue.d.ts +33 -0
  15. package/es/Message/message.d.ts +5 -0
  16. package/es/Message/types.d.ts +88 -0
  17. package/es/MessageBox/index.d.ts +9 -0
  18. package/es/MessageBox/messageBox.d.ts +5 -0
  19. package/es/MessageBox/types.d.ts +38 -0
  20. package/es/Modal/index.d.ts +38 -0
  21. package/es/Modal/index.vue.d.ts +65 -0
  22. package/es/Modal/types.d.ts +75 -0
  23. package/es/Notification/index.d.ts +10 -0
  24. package/es/Notification/notification.d.ts +5 -0
  25. package/es/Notification/types.d.ts +29 -0
  26. package/es/Popconfirm/index.d.ts +43 -0
  27. package/es/Popconfirm/index.vue.d.ts +48 -0
  28. package/es/Popconfirm/types.d.ts +94 -0
  29. package/es/Result/index.d.ts +13 -0
  30. package/es/Result/index.vue.d.ts +35 -0
  31. package/es/Timeline/TimelineItem.vue.d.ts +32 -0
  32. package/es/Timeline/index.d.ts +2 -0
  33. package/es/Timeline/index.vue.d.ts +17 -0
  34. package/es/Tooltip/index.d.ts +23 -0
  35. package/es/Tooltip/index.vue.d.ts +55 -0
  36. package/es/Tooltip/types.d.ts +81 -0
  37. package/es/index.d.ts +23 -0
  38. package/es/index.mjs +1 -1
  39. package/lib/index.cjs +1 -1
  40. package/package.json +10 -9
@@ -0,0 +1,38 @@
1
+ /**
2
+ * MessageBox 组件类型定义
3
+ */
4
+ export type MessageBoxMessageType = 'success' | 'warning' | 'info' | 'error';
5
+ export interface MessageBoxOptions {
6
+ title?: string;
7
+ message?: string;
8
+ type?: MessageBoxMessageType;
9
+ confirmButtonText?: string;
10
+ cancelButtonText?: string;
11
+ showConfirmButton?: boolean;
12
+ showCancelButton?: boolean;
13
+ showClose?: boolean;
14
+ closeOnClickModal?: boolean;
15
+ closeOnPressEscape?: boolean;
16
+ dangerouslyUseHTMLString?: boolean;
17
+ center?: boolean;
18
+ showInput?: boolean;
19
+ inputPlaceholder?: string;
20
+ inputType?: string;
21
+ inputPattern?: RegExp;
22
+ inputErrorMessage?: string;
23
+ inputValue?: string;
24
+ beforeClose?: (action: 'confirm' | 'cancel' | 'close', done: () => void) => void;
25
+ customClass?: string;
26
+ }
27
+ export interface MessageBoxResult {
28
+ action: 'confirm' | 'cancel' | 'close';
29
+ value?: string;
30
+ }
31
+ export type MessageBoxFn = (message: string, title?: string, options?: MessageBoxOptions) => Promise<MessageBoxResult>;
32
+ export interface MessageBox {
33
+ alert: MessageBoxFn;
34
+ confirm: MessageBoxFn;
35
+ prompt: MessageBoxFn;
36
+ (options: MessageBoxOptions): Promise<MessageBoxResult>;
37
+ closeAll: () => void;
38
+ }
@@ -0,0 +1,38 @@
1
+ export interface ModalProps {
2
+ /** Whether Modal is visible (v-model) */
3
+ modelValue?: boolean;
4
+ /** Whether Modal is visible (v-model:open) */
5
+ open?: boolean;
6
+ /** Modal title */
7
+ title?: string;
8
+ /** Modal width */
9
+ width?: string | number;
10
+ /** Modal top position */
11
+ top?: string;
12
+ /** Whether to show modal mask */
13
+ modal?: boolean;
14
+ /** Whether to close Modal on mask click */
15
+ closeOnClickModal?: boolean;
16
+ /** Whether to close Modal on Escape key press */
17
+ closeOnPressEscape?: boolean;
18
+ /** Whether to show close button */
19
+ showClose?: boolean;
20
+ /** Whether to center Modal */
21
+ center?: boolean;
22
+ /** Whether to destroy Modal content on close */
23
+ destroyOnClose?: boolean;
24
+ }
25
+ export interface ModalEmits {
26
+ /** Emitted when Modal visibility changes */
27
+ 'update:modelValue': (value: boolean) => void;
28
+ /** Emitted when Modal visibility changes (v-model:open) */
29
+ 'update:open': (value: boolean) => void;
30
+ /** Emitted when Modal is closed */
31
+ close: () => void;
32
+ /** Emitted when Modal is opened */
33
+ open: () => void;
34
+ /** Emitted when OK button is clicked */
35
+ ok: () => void;
36
+ /** Emitted when Cancel button is clicked */
37
+ cancel: () => void;
38
+ }
@@ -0,0 +1,65 @@
1
+ type __VLS_Props = {
2
+ modelValue?: boolean;
3
+ open?: boolean;
4
+ title?: string;
5
+ width?: string | number;
6
+ top?: string;
7
+ modal?: boolean;
8
+ closeOnClickModal?: boolean;
9
+ closeOnPressEscape?: boolean;
10
+ showClose?: boolean;
11
+ center?: boolean;
12
+ destroyOnClose?: boolean;
13
+ };
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ title?(_: {}): any;
18
+ default?(_: {}): any;
19
+ footer?(_: {
20
+ ok: () => void;
21
+ cancel: () => void;
22
+ }): any;
23
+ };
24
+ refs: {
25
+ modalRef: HTMLDivElement;
26
+ };
27
+ rootEl: any;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ open: () => any;
32
+ "update:modelValue": (value: boolean) => any;
33
+ "update:open": (value: boolean) => any;
34
+ close: () => any;
35
+ ok: () => any;
36
+ cancel: () => any;
37
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
38
+ onOpen?: (() => any) | undefined;
39
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
40
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
41
+ onClose?: (() => any) | undefined;
42
+ onOk?: (() => any) | undefined;
43
+ onCancel?: (() => any) | undefined;
44
+ }>, {
45
+ modelValue: boolean;
46
+ open: boolean;
47
+ title: string;
48
+ width: string | number;
49
+ top: string;
50
+ modal: boolean;
51
+ closeOnClickModal: boolean;
52
+ closeOnPressEscape: boolean;
53
+ showClose: boolean;
54
+ center: boolean;
55
+ destroyOnClose: boolean;
56
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
57
+ modalRef: HTMLDivElement;
58
+ }, any>;
59
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
60
+ export default _default;
61
+ type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Modal 组件类型定义
3
+ */
4
+ /**
5
+ * Modal Props
6
+ */
7
+ export interface ModalProps {
8
+ /**
9
+ * 是否显示 Modal(支持 v-model)
10
+ */
11
+ modelValue?: boolean;
12
+ /**
13
+ * 是否显示 Modal(备用)
14
+ */
15
+ open?: boolean;
16
+ /**
17
+ * Modal 标题
18
+ */
19
+ title?: string;
20
+ /**
21
+ * Modal 宽度
22
+ * @default '50%'
23
+ */
24
+ width?: string | number;
25
+ /**
26
+ * Modal 距离顶部的高度
27
+ * @default '15vh'
28
+ */
29
+ top?: string;
30
+ /**
31
+ * 是否显示遮罩层
32
+ * @default true
33
+ */
34
+ modal?: boolean;
35
+ /**
36
+ * 点击遮罩层是否关闭 Modal
37
+ * @default true
38
+ */
39
+ closeOnClickModal?: boolean;
40
+ /**
41
+ * 按下 ESC 键是否关闭 Modal
42
+ * @default true
43
+ */
44
+ closeOnPressEscape?: boolean;
45
+ /**
46
+ * 是否显示关闭按钮
47
+ * @default true
48
+ */
49
+ showClose?: boolean;
50
+ /**
51
+ * 是否居中对齐
52
+ * @default false
53
+ */
54
+ center?: boolean;
55
+ /**
56
+ * 关闭时是否销毁内容
57
+ * @default false
58
+ */
59
+ destroyOnClose?: boolean;
60
+ }
61
+ /**
62
+ * Modal Emits
63
+ */
64
+ export interface ModalEmits {
65
+ (e: 'update:modelValue', value: boolean): void;
66
+ (e: 'update:open', value: boolean): void;
67
+ (e: 'close'): void;
68
+ (e: 'open'): void;
69
+ (e: 'ok'): void;
70
+ (e: 'cancel'): void;
71
+ }
72
+ /**
73
+ * Modal 组件实例类型
74
+ */
75
+ export type ModalInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,10 @@
1
+ import { App } from 'vue';
2
+ import { default as NotificationService } from './notification';
3
+ export type { NotificationPosition, NotificationOptions, NotificationInstance, NotificationFn } from './types';
4
+ export type { NotificationType } from './types';
5
+ export type { Notification as NotificationInterface } from './types';
6
+ export declare const Notification: import('./types').Notification;
7
+ export default NotificationService;
8
+ export declare const TNotification: {
9
+ install(app: App): void;
10
+ };
@@ -0,0 +1,5 @@
1
+ import { Notification } from './types';
2
+ declare const closeAll: () => void;
3
+ declare const Notification: Notification;
4
+ export default Notification;
5
+ export { closeAll };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Notification 组件类型定义
3
+ */
4
+ export type NotificationType = 'success' | 'warning' | 'info' | 'error';
5
+ export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
6
+ export interface NotificationOptions {
7
+ title?: string;
8
+ message?: string;
9
+ type?: NotificationType;
10
+ duration?: number;
11
+ position?: NotificationPosition;
12
+ showClose?: boolean;
13
+ offset?: number;
14
+ customClass?: string;
15
+ onClose?: () => void;
16
+ dangerouslyUseHTMLString?: boolean;
17
+ }
18
+ export interface NotificationInstance {
19
+ close: () => void;
20
+ }
21
+ export type NotificationFn = (message: string | NotificationOptions) => NotificationInstance;
22
+ export interface Notification {
23
+ info: NotificationFn;
24
+ success: NotificationFn;
25
+ warning: NotificationFn;
26
+ error: NotificationFn;
27
+ (options: NotificationOptions): NotificationInstance;
28
+ closeAll: () => void;
29
+ }
@@ -0,0 +1,43 @@
1
+ import { App } from 'vue';
2
+ export type PopconfirmPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
3
+ export interface PopconfirmProps {
4
+ /** Content of the popconfirm */
5
+ title?: string;
6
+ /** Text of the confirm button */
7
+ confirmButtonText?: string;
8
+ /** Text of the cancel button */
9
+ cancelButtonText?: string;
10
+ /** Type of the confirm button */
11
+ confirmButtonType?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'default';
12
+ /** Type of the cancel button */
13
+ cancelButtonType?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'default';
14
+ /** Icon class name */
15
+ icon?: string;
16
+ /** Icon color */
17
+ iconColor?: string;
18
+ /** Whether to hide the icon */
19
+ hideIcon?: boolean;
20
+ /** Whether to hide the cancel button */
21
+ hideCancelButton?: boolean;
22
+ /** Whether to hide the confirm button */
23
+ hideConfirmButton?: boolean;
24
+ /** Whether the popconfirm is disabled */
25
+ disabled?: boolean;
26
+ /** Width of the popconfirm */
27
+ width?: string | number;
28
+ /** Position of the popconfirm */
29
+ placement?: PopconfirmPlacement;
30
+ /** Offset of the popconfirm */
31
+ offset?: number;
32
+ /** Whether to show an arrow */
33
+ showArrow?: boolean;
34
+ }
35
+ export interface PopconfirmInstance {
36
+ /** Show the popconfirm */
37
+ show: () => void;
38
+ /** Hide the popconfirm */
39
+ hide: () => void;
40
+ }
41
+ export declare const TPopconfirm: {
42
+ install(app: App): void;
43
+ };
@@ -0,0 +1,48 @@
1
+ import { PopconfirmProps } from './index';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ icon?(_: {}): any;
7
+ title?(_: {}): any;
8
+ };
9
+ refs: {
10
+ triggerRef: HTMLSpanElement;
11
+ popperRef: HTMLDivElement;
12
+ };
13
+ rootEl: HTMLSpanElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ cancel: () => any;
18
+ confirm: () => any;
19
+ }, string, import('vue').PublicProps, Readonly<PopconfirmProps> & Readonly<{
20
+ onCancel?: (() => any) | undefined;
21
+ onConfirm?: (() => any) | undefined;
22
+ }>, {
23
+ title: string;
24
+ width: string | number;
25
+ disabled: boolean;
26
+ placement: import('./index').PopconfirmPlacement;
27
+ icon: string;
28
+ offset: number;
29
+ confirmButtonText: string;
30
+ cancelButtonText: string;
31
+ confirmButtonType: "primary" | "success" | "warning" | "danger" | "info" | "default";
32
+ cancelButtonType: "primary" | "success" | "warning" | "danger" | "info" | "default";
33
+ iconColor: string;
34
+ hideIcon: boolean;
35
+ hideCancelButton: boolean;
36
+ hideConfirmButton: boolean;
37
+ showArrow: boolean;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
+ triggerRef: HTMLSpanElement;
40
+ popperRef: HTMLDivElement;
41
+ }, HTMLSpanElement>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
+ export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,94 @@
1
+ import { ButtonType } from '@xto/base';
2
+ /**
3
+ * Popconfirm 位置
4
+ */
5
+ export type PopconfirmPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
6
+ /**
7
+ * Popconfirm Props
8
+ */
9
+ export interface PopconfirmProps {
10
+ /**
11
+ * 确认框标题
12
+ */
13
+ title?: string;
14
+ /**
15
+ * 确认按钮文字
16
+ * @default '确定'
17
+ */
18
+ confirmButtonText?: string;
19
+ /**
20
+ * 取消按钮文字
21
+ * @default '取消'
22
+ */
23
+ cancelButtonText?: string;
24
+ /**
25
+ * 确认按钮类型
26
+ * @default 'primary'
27
+ */
28
+ confirmButtonType?: ButtonType;
29
+ /**
30
+ * 取消按钮类型
31
+ * @default 'default'
32
+ */
33
+ cancelButtonType?: ButtonType;
34
+ /**
35
+ * 图标
36
+ */
37
+ icon?: string;
38
+ /**
39
+ * 图标颜色
40
+ * @default '#faad14'
41
+ */
42
+ iconColor?: string;
43
+ /**
44
+ * 是否隐藏图标
45
+ * @default false
46
+ */
47
+ hideIcon?: boolean;
48
+ /**
49
+ * 是否隐藏取消按钮
50
+ * @default false
51
+ */
52
+ hideCancelButton?: boolean;
53
+ /**
54
+ * 是否隐藏确认按钮
55
+ * @default false
56
+ */
57
+ hideConfirmButton?: boolean;
58
+ /**
59
+ * 是否禁用
60
+ * @default false
61
+ */
62
+ disabled?: boolean;
63
+ /**
64
+ * Popconfirm 宽度
65
+ * @default 200
66
+ */
67
+ width?: string | number;
68
+ /**
69
+ * Popconfirm 位置
70
+ * @default 'top'
71
+ */
72
+ placement?: PopconfirmPlacement;
73
+ /**
74
+ * 距离触发元素的偏移量
75
+ * @default 12
76
+ */
77
+ offset?: number;
78
+ /**
79
+ * 是否显示箭头
80
+ * @default true
81
+ */
82
+ showArrow?: boolean;
83
+ }
84
+ /**
85
+ * Popconfirm Emits
86
+ */
87
+ export interface PopconfirmEmits {
88
+ (e: 'confirm'): void;
89
+ (e: 'cancel'): void;
90
+ }
91
+ /**
92
+ * Popconfirm 组件实例类型
93
+ */
94
+ export type PopconfirmInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,13 @@
1
+ import { default as Result } from './index.vue';
2
+ export { Result };
3
+ export default Result;
4
+ export type ResultProps = {
5
+ /** 结果状态 */
6
+ status?: 'success' | 'warning' | 'error' | 'info';
7
+ /** 标题 */
8
+ title?: string;
9
+ /** 副标题 */
10
+ subTitle?: string;
11
+ /** 图标名称(覆盖默认图标) */
12
+ icon?: string;
13
+ };
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ /** 结果状态 */
3
+ status?: 'success' | 'warning' | 'error' | 'info';
4
+ /** 标题 */
5
+ title?: string;
6
+ /** 副标题 */
7
+ subTitle?: string;
8
+ /** 图标名称(覆盖默认图标) */
9
+ icon?: string;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ icon?(_: {}): any;
15
+ title?(_: {}): any;
16
+ subTitle?(_: {}): any;
17
+ extra?(_: {}): any;
18
+ default?(_: {}): any;
19
+ };
20
+ refs: {};
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
+ title: string;
26
+ status: "success" | "warning" | "error" | "info";
27
+ subTitle: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,32 @@
1
+ type __VLS_Props = {
2
+ timestamp?: string;
3
+ placement?: 'top' | 'bottom';
4
+ type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
5
+ color?: string;
6
+ size?: 'normal' | 'large';
7
+ icon?: string;
8
+ hollow?: boolean;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ icon?(_: {}): any;
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLLIElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ type: "primary" | "success" | "warning" | "danger" | "info";
22
+ size: "normal" | "large";
23
+ placement: "top" | "bottom";
24
+ hollow: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Timeline } from './index.vue';
2
+ export { default as TimelineItem } from './TimelineItem.vue';
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLUListElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLUListElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,23 @@
1
+ export interface TooltipProps {
2
+ /** 显示的内容 */
3
+ content?: string;
4
+ /** Tooltip 的出现位置 */
5
+ placement?: 'top' | 'bottom' | 'left' | 'right';
6
+ /** 默认提供的主题 */
7
+ effect?: 'dark' | 'light';
8
+ /** 是否禁用 */
9
+ disabled?: boolean;
10
+ /** 出现位置的偏移量 */
11
+ offset?: number;
12
+ /** 过渡动画名称 */
13
+ transition?: string;
14
+ /** 是否显示箭头 */
15
+ visibleArrow?: boolean;
16
+ /** 触发方式 */
17
+ trigger?: 'hover' | 'click' | 'focus';
18
+ /** 显示延迟 */
19
+ openDelay?: number;
20
+ /** 隐藏延迟 */
21
+ closeDelay?: number;
22
+ }
23
+ export { default as Tooltip } from './index.vue';
@@ -0,0 +1,55 @@
1
+ type __VLS_Props = {
2
+ content?: string;
3
+ placement?: 'top' | 'bottom' | 'left' | 'right';
4
+ effect?: 'dark' | 'light';
5
+ disabled?: boolean;
6
+ offset?: number;
7
+ transition?: string;
8
+ visibleArrow?: boolean;
9
+ trigger?: 'hover' | 'click' | 'focus';
10
+ openDelay?: number;
11
+ closeDelay?: number;
12
+ };
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {}): any;
17
+ content?(_: {}): any;
18
+ };
19
+ refs: {
20
+ triggerRef: HTMLDivElement;
21
+ tooltipRef: HTMLDivElement;
22
+ };
23
+ rootEl: HTMLDivElement;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ "update:visible": (visible: boolean) => any;
28
+ show: () => any;
29
+ hide: () => any;
30
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
31
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
32
+ onShow?: (() => any) | undefined;
33
+ onHide?: (() => any) | undefined;
34
+ }>, {
35
+ disabled: boolean;
36
+ transition: string;
37
+ placement: "top" | "bottom" | "left" | "right";
38
+ content: string;
39
+ effect: "dark" | "light";
40
+ offset: number;
41
+ visibleArrow: boolean;
42
+ trigger: "hover" | "click" | "focus";
43
+ openDelay: number;
44
+ closeDelay: number;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
46
+ triggerRef: HTMLDivElement;
47
+ tooltipRef: HTMLDivElement;
48
+ }, HTMLDivElement>;
49
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
50
+ export default _default;
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };