fantasia-ui 0.6.13 → 0.7.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/types/packages/components/modules/FInfiniteScroll.vue.d.ts +44 -0
- package/dist/types/packages/components/modules/FPopconfirm.vue.d.ts +43 -0
- package/dist/types/packages/types/components/index.d.ts +2 -0
- package/dist/types/packages/types/components/modules/f-infinite-scroll.d.ts +13 -0
- package/dist/types/packages/types/components/modules/f-popconfirm.d.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { FInfiniteScrollProps } from '../../types';
|
|
2
|
+
type __VLS_Props = FInfiniteScrollProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
'loading'?: boolean;
|
|
5
|
+
'error'?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {
|
|
8
|
+
retry: () => void;
|
|
9
|
+
}, __VLS_7: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
loading?: (props: typeof __VLS_3) => any;
|
|
14
|
+
} & {
|
|
15
|
+
error?: (props: typeof __VLS_5) => any;
|
|
16
|
+
} & {
|
|
17
|
+
finished?: (props: typeof __VLS_7) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
20
|
+
check: () => void;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
load: () => any;
|
|
23
|
+
"update:loading": (value: boolean) => any;
|
|
24
|
+
"update:error": (value: boolean) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
onLoad?: () => any;
|
|
27
|
+
"onUpdate:loading"?: (value: boolean) => any;
|
|
28
|
+
"onUpdate:error"?: (value: boolean) => any;
|
|
29
|
+
}>, {
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
finished: boolean;
|
|
32
|
+
distance: number;
|
|
33
|
+
useWindow: boolean;
|
|
34
|
+
loadingText: string;
|
|
35
|
+
finishedText: string;
|
|
36
|
+
errorText: string;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { FPopconfirmProps } from '../../types';
|
|
2
|
+
type __VLS_Props = FPopconfirmProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_11: {}, __VLS_20: {}, __VLS_22: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
icon?: (props: typeof __VLS_11) => any;
|
|
11
|
+
} & {
|
|
12
|
+
title?: (props: typeof __VLS_20) => any;
|
|
13
|
+
} & {
|
|
14
|
+
content?: (props: typeof __VLS_22) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
confirm: () => any;
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
19
|
+
cancel: () => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onConfirm?: () => any;
|
|
22
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
23
|
+
onCancel?: () => any;
|
|
24
|
+
}>, {
|
|
25
|
+
type: import("../../types").FPopconfirmType;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
title: string;
|
|
28
|
+
placement: import("../../types").FPopconfirmPlacement;
|
|
29
|
+
offset: number;
|
|
30
|
+
closeOnClickOutside: boolean;
|
|
31
|
+
content: string;
|
|
32
|
+
confirmText: string;
|
|
33
|
+
cancelText: string;
|
|
34
|
+
showCancel: boolean;
|
|
35
|
+
showIcon: boolean;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface FInfiniteScrollProps {
|
|
2
|
+
/** 数据已全部加载完毕 */
|
|
3
|
+
finished?: boolean;
|
|
4
|
+
/** 禁用加载 */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** 距离底部多少 px 时触发加载 */
|
|
7
|
+
distance?: number;
|
|
8
|
+
/** 使用 window 作为滚动容器(默认使用组件自身) */
|
|
9
|
+
useWindow?: boolean;
|
|
10
|
+
loadingText?: string;
|
|
11
|
+
finishedText?: string;
|
|
12
|
+
errorText?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type FPopconfirmPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right';
|
|
2
|
+
export type FPopconfirmType = 'primary' | 'info' | 'warning' | 'danger';
|
|
3
|
+
export interface FPopconfirmProps {
|
|
4
|
+
/** 标题 */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** 补充说明 */
|
|
7
|
+
content?: string;
|
|
8
|
+
/** 弹出位置 */
|
|
9
|
+
placement?: FPopconfirmPlacement;
|
|
10
|
+
/** 类型,决定图标与确认按钮颜色 */
|
|
11
|
+
type?: FPopconfirmType;
|
|
12
|
+
confirmText?: string;
|
|
13
|
+
cancelText?: string;
|
|
14
|
+
/** 是否显示取消按钮 */
|
|
15
|
+
showCancel?: boolean;
|
|
16
|
+
/** 是否显示图标 */
|
|
17
|
+
showIcon?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** 与触发元素的间距 (px) */
|
|
20
|
+
offset?: number;
|
|
21
|
+
/** 点击外部是否关闭 */
|
|
22
|
+
closeOnClickOutside?: boolean;
|
|
23
|
+
/** 确认前钩子:返回 false 或抛错则不关闭,执行期间确认按钮显示加载态 */
|
|
24
|
+
beforeConfirm?: () => boolean | void | Promise<boolean | void>;
|
|
25
|
+
}
|