fantasia-ui 0.2.13 → 0.2.25
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/fantasia-ui.css +6892 -1
- package/dist/fantasia-ui.es.js +4551 -2311
- package/dist/fantasia-ui.umd.js +5194 -9
- package/dist/index.d.ts +8 -4
- package/dist/types/assets/index.d.ts +5 -0
- package/dist/types/components/index.d.ts +43 -47
- package/dist/types/components/modules/FAffix.vue.d.ts +16 -0
- package/dist/types/components/modules/FAlert.vue.d.ts +15 -0
- package/dist/types/components/modules/FAvatar.vue.d.ts +6 -0
- package/dist/types/components/modules/FBadge.vue.d.ts +19 -0
- package/dist/types/components/modules/FBreadcrumb.vue.d.ts +19 -0
- package/dist/types/components/modules/FButton.vue.d.ts +16 -0
- package/dist/types/components/modules/FButtonGroup.vue.d.ts +18 -0
- package/dist/types/components/modules/FCard.vue.d.ts +19 -0
- package/dist/types/components/modules/FCheckbox.vue.d.ts +11 -0
- package/dist/types/components/modules/FCol.vue.d.ts +17 -0
- package/dist/types/components/modules/FCollapse.vue.d.ts +27 -0
- package/dist/types/components/modules/FCollapseItem.vue.d.ts +18 -0
- package/dist/types/components/modules/FColorPicker.vue.d.ts +16 -0
- package/dist/types/components/modules/FContainer.vue.d.ts +15 -0
- package/dist/types/components/modules/FDialog.vue.d.ts +25 -0
- package/dist/types/components/modules/FDivider.vue.d.ts +6 -0
- package/dist/types/components/modules/FDropdown.vue.d.ts +25 -0
- package/dist/types/components/modules/FEditor.vue.d.ts +15 -0
- package/dist/types/components/modules/FEmpty.vue.d.ts +21 -0
- package/dist/types/components/modules/FForm.vue.d.ts +21 -0
- package/dist/types/components/modules/FFormItem.vue.d.ts +16 -0
- package/dist/types/components/modules/FIcon.vue.d.ts +15 -0
- package/dist/types/components/modules/FImage.vue.d.ts +15 -0
- package/dist/{components/modules/FInput.d.ts → types/components/modules/FInput.vue.d.ts} +6 -7
- package/dist/types/components/modules/FInputNumber.vue.d.ts +21 -0
- package/dist/types/components/modules/FLink.vue.d.ts +16 -0
- package/dist/types/components/modules/FLoading.vue.d.ts +6 -0
- package/dist/types/components/modules/FPagination.vue.d.ts +18 -0
- package/dist/types/components/modules/FProgress.vue.d.ts +6 -0
- package/dist/{components/modules/FRate.d.ts → types/components/modules/FRate.vue.d.ts} +6 -7
- package/dist/types/components/modules/FResult.vue.d.ts +18 -0
- package/dist/types/components/modules/FRow.vue.d.ts +19 -0
- package/dist/types/components/modules/FScrollbar.vue.d.ts +41 -0
- package/dist/types/components/modules/FSelect.vue.d.ts +17 -0
- package/dist/types/components/modules/FSlider.vue.d.ts +21 -0
- package/dist/types/components/modules/FSpace.vue.d.ts +9 -0
- package/dist/types/components/modules/FTable.vue.d.ts +38 -0
- package/dist/types/components/modules/FTabs.vue.d.ts +21 -0
- package/dist/types/components/modules/FTag.vue.d.ts +20 -0
- package/dist/types/components/modules/FText.vue.d.ts +17 -0
- package/dist/types/components/modules/FTooltip.vue.d.ts +21 -0
- package/dist/types/components/modules/FTypography.vue.d.ts +15 -0
- package/dist/types/components/modules/FUpload.vue.d.ts +28 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/types/components/index.d.ts +47 -0
- package/dist/types/{components → types/components}/modules/base.d.ts +2 -1
- package/dist/types/{components → types/components}/modules/f-avatar.d.ts +2 -2
- package/dist/types/types/components/modules/f-button-group.d.ts +13 -0
- package/dist/types/types/components/modules/f-button.d.ts +17 -0
- package/dist/types/{components → types/components}/modules/f-card.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-divider.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-dropdown.d.ts +2 -2
- package/dist/types/{components → types/components}/modules/f-form.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-menu.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-result.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-row.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-space.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-tag.d.ts +1 -1
- package/dist/types/{components → types/components}/modules/f-toolbar.d.ts +1 -1
- package/dist/types/types/index.d.ts +2 -0
- package/dist/{utils → types/utils}/validator.d.ts +1 -1
- package/package.json +4 -3
- package/dist/assets/index.d.ts +0 -5
- package/dist/auto-imports.d.ts +0 -623
- package/dist/components/index.d.ts +0 -42
- package/dist/components/modules/FAffix.d.ts +0 -22
- package/dist/components/modules/FAlert.d.ts +0 -21
- package/dist/components/modules/FAvatar.d.ts +0 -7
- package/dist/components/modules/FBadge.d.ts +0 -25
- package/dist/components/modules/FBreadcrumb.d.ts +0 -25
- package/dist/components/modules/FButton.d.ts +0 -22
- package/dist/components/modules/FButtonGroup.d.ts +0 -24
- package/dist/components/modules/FCard.d.ts +0 -32
- package/dist/components/modules/FCheckbox.d.ts +0 -12
- package/dist/components/modules/FCol.d.ts +0 -23
- package/dist/components/modules/FCollapse.d.ts +0 -29
- package/dist/components/modules/FCollapseItem.d.ts +0 -23
- package/dist/components/modules/FColorPicker.d.ts +0 -22
- package/dist/components/modules/FContainer.d.ts +0 -21
- package/dist/components/modules/FDialog.d.ts +0 -31
- package/dist/components/modules/FDivider.d.ts +0 -7
- package/dist/components/modules/FDropdown.d.ts +0 -36
- package/dist/components/modules/FEditor.d.ts +0 -20
- package/dist/components/modules/FEmpty.d.ts +0 -25
- package/dist/components/modules/FForm.d.ts +0 -27
- package/dist/components/modules/FFormItem.d.ts +0 -22
- package/dist/components/modules/FIcon.d.ts +0 -21
- package/dist/components/modules/FImage.d.ts +0 -24
- package/dist/components/modules/FInputNumber.d.ts +0 -24
- package/dist/components/modules/FLink.d.ts +0 -22
- package/dist/components/modules/FLoading.d.ts +0 -7
- package/dist/components/modules/FPagination.d.ts +0 -19
- package/dist/components/modules/FProgress.d.ts +0 -7
- package/dist/components/modules/FRow.d.ts +0 -25
- package/dist/components/modules/FScrollbar.d.ts +0 -57
- package/dist/components/modules/FSelect.d.ts +0 -18
- package/dist/components/modules/FSlider.d.ts +0 -24
- package/dist/components/modules/FSpace.d.ts +0 -10
- package/dist/components/modules/FTable.d.ts +0 -43
- package/dist/components/modules/FTabs.d.ts +0 -25
- package/dist/components/modules/FTag.d.ts +0 -26
- package/dist/components/modules/FText.d.ts +0 -23
- package/dist/components/modules/FTooltip.d.ts +0 -32
- package/dist/components/modules/FTypography.d.ts +0 -21
- package/dist/components/modules/FUpload.d.ts +0 -34
- package/dist/env.d.ts +0 -24
- package/dist/global.d.ts +0 -53
- package/dist/types/components/modules/f-button-group.d.ts +0 -11
- package/dist/types/components/modules/f-button.d.ts +0 -9
- package/dist/volar.d.ts +0 -53
- /package/dist/types/{components → types/components}/modules/f-affix.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-alert.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-badge.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-breadcrumb.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-checkbox.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-col.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-collapse-item.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-collapse.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-color-picker.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-container.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-dialog.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-editor.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-empty.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-form-item.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-icon.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-image.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-input-number.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-input.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-link.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-loading.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-pagination.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-progress.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-rate.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-scrollbar.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-slider-captcha.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-slider.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-table.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-tabs.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-tagsview.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-text.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-tooltip.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-typography.d.ts +0 -0
- /package/dist/types/{components → types/components}/modules/f-upload.d.ts +0 -0
- /package/dist/types/{models → types/models}/index.d.ts +0 -0
- /package/dist/{utils → types/utils}/general.d.ts +0 -0
- /package/dist/{utils → types/utils}/index.d.ts +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FPaginationProps } from '@/types';
|
|
2
|
+
type __VLS_Props = FPaginationProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
modelValue?: number;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: number) => any;
|
|
8
|
+
"update:pageSize": (size: number) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: (value: number) => any;
|
|
11
|
+
"onUpdate:pageSize"?: (size: number) => any;
|
|
12
|
+
}>, {
|
|
13
|
+
layout: string[];
|
|
14
|
+
pageSize: number;
|
|
15
|
+
hideOnSingle: boolean;
|
|
16
|
+
pageSizes: number[];
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FProgressProps } from '@/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<FProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FProgressProps> & Readonly<{}>, {
|
|
3
|
+
height: number;
|
|
4
|
+
showText: boolean;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { FRateProps } from '
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import type { FRateProps } from '@/types';
|
|
3
2
|
type __VLS_Props = FRateProps;
|
|
4
|
-
type __VLS_PublicProps = {
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
5
4
|
modelValue?: number;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
7
|
change: (value: number) => any;
|
|
9
8
|
"update:modelValue": (value: number) => any;
|
|
10
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
10
|
onChange?: (value: number) => any;
|
|
12
11
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
13
12
|
}>, {
|
|
@@ -19,5 +18,5 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
|
|
|
19
18
|
voidColor: string;
|
|
20
19
|
showText: boolean;
|
|
21
20
|
scoreTemplate: string;
|
|
22
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {},
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
22
|
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FResultProps } from '@/types';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
icon?(): any;
|
|
4
|
+
title?(): any;
|
|
5
|
+
subtitle?(): any;
|
|
6
|
+
extra?(): any;
|
|
7
|
+
default?(): any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<FResultProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FResultProps> & Readonly<{}>, {
|
|
10
|
+
status: import("@/types").ResultStatus;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FRowProps, Justify, Align } from '@/types';
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<FRowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FRowProps> & Readonly<{}>, {
|
|
7
|
+
wrap: import("@/types").Wrap;
|
|
8
|
+
align: Align;
|
|
9
|
+
justify: Justify;
|
|
10
|
+
tag: string;
|
|
11
|
+
gutter: number | [number, number];
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FScrollbarProps } from '@/types';
|
|
2
|
+
declare function update(): void;
|
|
3
|
+
declare function scrollTo(options: ScrollToOptions | number, yCoord?: number): void;
|
|
4
|
+
declare function setScrollTop(value: number): void;
|
|
5
|
+
declare function setScrollLeft(value: number): void;
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<FScrollbarProps, {
|
|
11
|
+
scrollTo: typeof scrollTo;
|
|
12
|
+
setScrollTop: typeof setScrollTop;
|
|
13
|
+
setScrollLeft: typeof setScrollLeft;
|
|
14
|
+
update: typeof update;
|
|
15
|
+
wrapRef: globalThis.Ref<HTMLElement, HTMLElement>;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
scroll: (args_0: {
|
|
18
|
+
scrollTop: number;
|
|
19
|
+
scrollLeft: number;
|
|
20
|
+
}) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<FScrollbarProps> & Readonly<{
|
|
22
|
+
onScroll?: (args_0: {
|
|
23
|
+
scrollTop: number;
|
|
24
|
+
scrollLeft: number;
|
|
25
|
+
}) => any;
|
|
26
|
+
}>, {
|
|
27
|
+
horizontal: boolean;
|
|
28
|
+
vertical: boolean;
|
|
29
|
+
always: boolean;
|
|
30
|
+
height: string;
|
|
31
|
+
maxHeight: string;
|
|
32
|
+
native: boolean;
|
|
33
|
+
minSize: number;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FDropdownOption } from '@/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: FDropdownOption[];
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
+
modelValue?: string | number;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: string | number) => any;
|
|
11
|
+
} & {
|
|
12
|
+
select: (key: string | number, option: FDropdownOption) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
onSelect?: (key: string | number, option: FDropdownOption) => any;
|
|
15
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FSliderProps } from '@/types';
|
|
2
|
+
type __VLS_Props = FSliderProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
modelValue?: number | [number, number];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: number | [number, number]) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: (value: number | [number, number]) => any;
|
|
10
|
+
}>, {
|
|
11
|
+
vertical: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
size: "small" | "default" | "large";
|
|
14
|
+
range: boolean;
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
step: number;
|
|
18
|
+
showTooltip: boolean;
|
|
19
|
+
marks: Record<number, string>;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FSpaceProps, Size } from '@/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<FSpaceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FSpaceProps> & Readonly<{}>, {
|
|
3
|
+
wrap: boolean;
|
|
4
|
+
align: "start" | "end" | "center" | "stretch" | "baseline";
|
|
5
|
+
size: Size | [Size, Size];
|
|
6
|
+
justify: import("@/types").Justify;
|
|
7
|
+
direction: import("@/types").Direction;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { FTableProps } from '@/types/index';
|
|
2
|
+
declare var __VLS_2: `header-${string}`, __VLS_3: {
|
|
3
|
+
column: import("@/types/index").FTableColumn;
|
|
4
|
+
}, __VLS_6: `cell-${string}`, __VLS_7: {
|
|
5
|
+
row: Record<string, unknown>;
|
|
6
|
+
value: unknown;
|
|
7
|
+
index: number;
|
|
8
|
+
col: import("@/types/index").FTableColumn;
|
|
9
|
+
}, __VLS_9: {
|
|
10
|
+
row: Record<string, unknown>;
|
|
11
|
+
value: unknown;
|
|
12
|
+
index: number;
|
|
13
|
+
col: import("@/types/index").FTableColumn;
|
|
14
|
+
}, __VLS_14: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
17
|
+
} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
19
|
+
} & {
|
|
20
|
+
cell?: (props: typeof __VLS_9) => any;
|
|
21
|
+
} & {
|
|
22
|
+
empty?: (props: typeof __VLS_14) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<FTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FTableProps> & Readonly<{}>, {
|
|
25
|
+
loading: boolean;
|
|
26
|
+
rowHeight: number;
|
|
27
|
+
overscan: number;
|
|
28
|
+
showIndex: boolean;
|
|
29
|
+
loadingText: string;
|
|
30
|
+
emptyText: string;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FTabsProps } from '@/types';
|
|
2
|
+
declare var __VLS_2: string, __VLS_3: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<FTabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
change: (value: string) => any;
|
|
8
|
+
"update:active": (value: string) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<FTabsProps> & Readonly<{
|
|
10
|
+
onChange?: (value: string) => any;
|
|
11
|
+
"onUpdate:active"?: (value: string) => any;
|
|
12
|
+
}>, {
|
|
13
|
+
type: "line" | "bar" | "card" | "segment";
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FTagProps } from '@/types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<FTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
close: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<FTagProps> & Readonly<{
|
|
9
|
+
onClose?: () => any;
|
|
10
|
+
}>, {
|
|
11
|
+
type: "round" | "square" | "dot" | "bookmark";
|
|
12
|
+
size: import("@/types").Size;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FTextProps } from '@/types';
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<FTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FTextProps> & Readonly<{}>, {
|
|
7
|
+
size: "xs" | "sm" | "normal" | "lg" | "xl" | "2xl" | "3xl";
|
|
8
|
+
weight: "normal" | "medium" | "bold" | "bolder";
|
|
9
|
+
tag: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FTooltipProps } from '@/types';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
content?: (props: typeof __VLS_11) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<FTooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FTooltipProps> & Readonly<{}>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
placement: "top" | "bottom" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "left-start" | "left-end" | "left" | "right";
|
|
11
|
+
offset: number;
|
|
12
|
+
delay: number;
|
|
13
|
+
maxWidth: number;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FTypographyProps } from '@/types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<FTypographyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FTypographyProps> & Readonly<{}>, {
|
|
7
|
+
color: string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
accept?: string;
|
|
3
|
+
limit?: number;
|
|
4
|
+
progress?: number | null;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
+
'file'?: string;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
change: (file: File) => any;
|
|
15
|
+
exceed: (file: File) => any;
|
|
16
|
+
"update:file": (value: string) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
onChange?: (file: File) => any;
|
|
19
|
+
onExceed?: (file: File) => any;
|
|
20
|
+
"onUpdate:file"?: (value: string) => any;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export * from './modules/base';
|
|
2
|
+
export * from './modules/f-dialog';
|
|
3
|
+
export * from './modules/f-pagination';
|
|
4
|
+
export * from './modules/f-slider-captcha';
|
|
5
|
+
export * from './modules/f-upload';
|
|
6
|
+
export * from './modules/f-dropdown';
|
|
7
|
+
export * from './modules/f-tooltip';
|
|
8
|
+
export * from './modules/f-menu';
|
|
9
|
+
export * from './modules/f-icon';
|
|
10
|
+
export * from './modules/f-tagsview';
|
|
11
|
+
export * from './modules/f-toolbar';
|
|
12
|
+
export * from './modules/f-tag';
|
|
13
|
+
export * from './modules/f-table';
|
|
14
|
+
export * from './modules/f-loading';
|
|
15
|
+
export * from './modules/f-button';
|
|
16
|
+
export * from './modules/f-image';
|
|
17
|
+
export * from './modules/f-rate';
|
|
18
|
+
export * from './modules/f-input';
|
|
19
|
+
export * from './modules/f-card';
|
|
20
|
+
export * from './modules/f-progress';
|
|
21
|
+
export * from './modules/f-tabs';
|
|
22
|
+
export * from './modules/f-col';
|
|
23
|
+
export * from './modules/f-row';
|
|
24
|
+
export * from './modules/f-space';
|
|
25
|
+
export * from './modules/f-divider';
|
|
26
|
+
export * from './modules/f-container';
|
|
27
|
+
export * from './modules/f-avatar';
|
|
28
|
+
export * from './modules/f-text';
|
|
29
|
+
export * from './modules/f-link';
|
|
30
|
+
export * from './modules/f-badge';
|
|
31
|
+
export * from './modules/f-affix';
|
|
32
|
+
export * from './modules/f-breadcrumb';
|
|
33
|
+
export * from './modules/f-form';
|
|
34
|
+
export * from './modules/f-form-item';
|
|
35
|
+
export * from './modules/f-checkbox';
|
|
36
|
+
export * from './modules/f-alert';
|
|
37
|
+
export * from './modules/f-editor';
|
|
38
|
+
export * from './modules/f-typography';
|
|
39
|
+
export * from './modules/f-result';
|
|
40
|
+
export * from './modules/f-collapse';
|
|
41
|
+
export * from './modules/f-collapse-item';
|
|
42
|
+
export * from './modules/f-button-group';
|
|
43
|
+
export * from './modules/f-scrollbar';
|
|
44
|
+
export * from './modules/f-empty';
|
|
45
|
+
export * from './modules/f-color-picker';
|
|
46
|
+
export * from './modules/f-slider';
|
|
47
|
+
export * from './modules/f-input-number';
|
|
@@ -4,4 +4,5 @@ type Wrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
|
4
4
|
type Direction = 'horizontal' | 'vertical';
|
|
5
5
|
type Size = 'small' | 'normal' | 'large' | number;
|
|
6
6
|
type Placement = 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'bottom' | 'top' | 'top-start' | 'top-end' | 'left-start' | 'left-end';
|
|
7
|
-
|
|
7
|
+
type Type = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'ghost' | 'text';
|
|
8
|
+
export type { Justify, Align, Wrap, Direction, Size, Placement, Type };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Size, Type } from "./base";
|
|
2
|
+
interface FButtonGroupProps {
|
|
3
|
+
size?: Size;
|
|
4
|
+
type?: Type;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
vertical?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface FButtonGroupContext {
|
|
9
|
+
size?: Size;
|
|
10
|
+
type?: Type;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type { FButtonGroupProps, FButtonGroupContext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Size, Type } from "./base";
|
|
2
|
+
type ButtonNativeType = 'button' | 'submit' | 'reset';
|
|
3
|
+
interface FButtonProps {
|
|
4
|
+
type?: Type;
|
|
5
|
+
size?: Size;
|
|
6
|
+
nativeType?: ButtonNativeType;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
round?: boolean | number;
|
|
10
|
+
circle?: boolean;
|
|
11
|
+
plain?: boolean;
|
|
12
|
+
block?: boolean;
|
|
13
|
+
icon?: string;
|
|
14
|
+
bgColor?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
}
|
|
17
|
+
export type { FButtonProps, ButtonNativeType };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Size } from
|
|
1
|
+
import { Size } from "./base";
|
|
2
2
|
type LabelPosition = 'left' | 'right' | 'top';
|
|
3
3
|
type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'email' | 'hex';
|
|
4
4
|
interface FFormProps {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fantasia-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.25",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/fantasia-ui.umd.js",
|
|
7
7
|
"module": "dist/fantasia-ui.es.js",
|
|
@@ -44,8 +44,9 @@
|
|
|
44
44
|
"homepage": "https://github.com/shuster/fantasia-ui#readme",
|
|
45
45
|
"scripts": {
|
|
46
46
|
"dev": "vite",
|
|
47
|
-
"build": "vite build &&
|
|
48
|
-
"build:
|
|
47
|
+
"build": "node --max-old-space-size=8192 node_modules/vite/bin/vite.js build && vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json && node scripts/post-build.cjs",
|
|
48
|
+
"build:lib": "node --max-old-space-size=8192 node_modules/vite/bin/vite.js build",
|
|
49
|
+
"build:types": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json",
|
|
49
50
|
"preview": "vite preview",
|
|
50
51
|
"prepublishOnly": "pnpm run build",
|
|
51
52
|
"publish:patch": "npm version patch && npm publish",
|
package/dist/assets/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as Theme } from './icons/theme-light-dark.svg';
|
|
2
|
-
import { default as ThemeDark } from './icons/theme-dark.svg';
|
|
3
|
-
import { default as ThemeLight } from './icons/theme-light.svg';
|
|
4
|
-
import { default as PictureError } from './icons/picture_error.svg';
|
|
5
|
-
export { Theme, ThemeDark, ThemeLight, PictureError };
|