chore(ATypographyParagraph): fix type:check (#3187)

This commit is contained in:
bowen 2023-10-25 11:55:14 +08:00 committed by GitHub
parent 6f0a44f528
commit 83fc4ae391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,13 +60,22 @@
import { List, Avatar, Tag, Typography } from 'ant-design-vue'; import { List, Avatar, Tag, Typography } from 'ant-design-vue';
import { isNumber } from '/@/utils/is'; import { isNumber } from '/@/utils/is';
// types
import type { StyleValue } from '/@/utils/types';
import type { FunctionalComponent } from 'vue';
import type { ParagraphProps } from 'ant-design-vue/es/typography/Paragraph';
export default defineComponent({ export default defineComponent({
components: { components: {
[Avatar.name]: Avatar, [Avatar.name]: Avatar,
[List.name]: List, [List.name]: List,
[List.Item.name]: List.Item, [List.Item.name]: List.Item,
AListItemMeta: List.Item.Meta, AListItemMeta: List.Item.Meta,
ATypographyParagraph: Typography.Paragraph, ATypographyParagraph: Typography.Paragraph as FunctionalComponent<
ParagraphProps & {
style?: StyleValue;
}
>,
[Tag.name]: Tag, [Tag.name]: Tag,
}, },
props: { props: {