Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any volar global element check type support #5067

Closed
1 task done
tree-lock opened this issue Dec 22, 2021 · 1 comment
Closed
1 task done

Is there any volar global element check type support #5067

tree-lock opened this issue Dec 22, 2021 · 1 comment
Assignees
Labels

Comments

@tree-lock
Copy link

tree-lock commented Dec 22, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

How to use A global type support for ui modules in Vue3 Volar
In this article, i finger out a global volar type support in element-plus, which can helps developer a lot.

What does the proposed API look like?

// global.d.ts
// GlobalComponents for Volar
declare module "vue" {
  export interface GlobalComponents {
    AAffix: typeof import("ant-design-vue")["Affix"];
    AAnchor: typeof import("ant-design-vue")["Anchor"];
    AAnchorLink: typeof import("ant-design-vue")["AnchorLink"];
    AAutoComplete: typeof import("ant-design-vue")["AutoComplete"];
    AAutoCompleteOption: typeof import("ant-design-vue")["AutoCompleteOption"];
    AAlert: typeof import("ant-design-vue")["Alert"];
    AAvatar: typeof import("ant-design-vue")["Avatar"];
    AAvatarGroup: typeof import("ant-design-vue")["AvatarGroup"];
    ABackTop: typeof import("ant-design-vue")["BackTop"];
    ABadge: typeof import("ant-design-vue")["Badge"];
    ABadgeRibbon: typeof import("ant-design-vue")["BadgeRibbon"];
    ABreadcrumb: typeof import("ant-design-vue")["Breadcrumb"];
    ABreadcrumbSeparator: typeof import("ant-design-vue")["BreadcrumbSeparator"];
    AButton: typeof import("ant-design-vue")["Button"];
    AButtonGroup: typeof import("ant-design-vue")["ButtonGroup"];
    ACalendar: typeof import("ant-design-vue")["Calendar"];
    ACard: typeof import("ant-design-vue")["Card"];
    ACardMeta: typeof import("ant-design-vue")["CardMeta"];
    ACollapse: typeof import("ant-design-vue")["Collapse"];
    ACollapsePanel: typeof import("ant-design-vue")["CollapsePanel"];
    ACarousel: typeof import("ant-design-vue")["Carousel"];
    ACascader: typeof import("ant-design-vue")["Cascader"];
    ACheckbox: typeof import("ant-design-vue")["Checkbox"];
    ACheckboxGroup: typeof import("ant-design-vue")["CheckboxGroup"];
    ACol: typeof import("ant-design-vue")["Col"];
    AComment: typeof import("ant-design-vue")["Comment"];
    AConfigProvider: typeof import("ant-design-vue")["ConfigProvider"];
    ADatePicker: typeof import("ant-design-vue")["DatePicker"];
    AWeekPicker: typeof import("ant-design-vue")["WeekPicker"];
    ADescriptions: typeof import("ant-design-vue")["Descriptions"];
    ADescriptionsItem: typeof import("ant-design-vue")["DescriptionsItem"];
    ADivider: typeof import("ant-design-vue")["Divider"];
    ADropdown: typeof import("ant-design-vue")["Dropdown"];
    ADropdownButton: typeof import("ant-design-vue")["DropdownButton"];
    ADrawer: typeof import("ant-design-vue")["Drawer"];
    AEmpty: typeof import("ant-design-vue")["Empty"];
    AForm: typeof import("ant-design-vue")["Form"];
    AFormItem: typeof import("ant-design-vue")["FormItem"];
    AGrid: typeof import("ant-design-vue")["Grid"];
    AInput: typeof import("ant-design-vue")["Input"];
    ATextarea: typeof import("ant-design-vue")["Textarea"];
    AImage: typeof import("ant-design-vue")["Image"];
    AImagePreviewGroup: typeof import("ant-design-vue")["ImagePreviewGroup"];
    AInputNumber: typeof import("ant-design-vue")["InputNumber"];
    ALayout: typeof import("ant-design-vue")["Layout"];
    ALayoutHeader: typeof import("ant-design-vue")["LayoutHeader"];
    ALayoutSider: typeof import("ant-design-vue")["LayoutSider"];
    ALayoutFooter: typeof import("ant-design-vue")["LayoutFooter"];
    ALayoutContent: typeof import("ant-design-vue")["LayoutContent"];
    AList: typeof import("ant-design-vue")["List"];
    AListItemMeta: typeof import("ant-design-vue")["ListItemMeta"];
    Amessage: typeof import("ant-design-vue")["message"];
    AMenu: typeof import("ant-design-vue")["Menu"];
    ASubMenu: typeof import("ant-design-vue")["SubMenu"];
    AMentions: typeof import("ant-design-vue")["Mentions"];
    AMentionsOption: typeof import("ant-design-vue")["MentionsOption"];
    AModal: typeof import("ant-design-vue")["Modal"];
    AStatistic: typeof import("ant-design-vue")["Statistic"];
    AStatisticCountdown: typeof import("ant-design-vue")["StatisticCountdown"];
    Anotification: typeof import("ant-design-vue")["notification"];
    APageHeader: typeof import("ant-design-vue")["PageHeader"];
    APagination: typeof import("ant-design-vue")["Pagination"];
    APopconfirm: typeof import("ant-design-vue")["Popconfirm"];
    APopover: typeof import("ant-design-vue")["Popover"];
    AProgress: typeof import("ant-design-vue")["Progress"];
    ARadio: typeof import("ant-design-vue")["Radio"];
    ARadioGroup: typeof import("ant-design-vue")["RadioGroup"];
    ARate: typeof import("ant-design-vue")["Rate"];
    AResult: typeof import("ant-design-vue")["Result"];
    ARow: typeof import("ant-design-vue")["Row"];
    ASelect: typeof import("ant-design-vue")["Select"];
    ASelectOption: typeof import("ant-design-vue")["SelectOption"];
    ASkeleton: typeof import("ant-design-vue")["Skeleton"];
    ASkeletonButton: typeof import("ant-design-vue")["SkeletonButton"];
    ASkeletonAvatar: typeof import("ant-design-vue")["SkeletonAvatar"];
    ASkeletonInput: typeof import("ant-design-vue")["SkeletonInput"];
    ASkeletonImage: typeof import("ant-design-vue")["SkeletonImage"];
    ASlider: typeof import("ant-design-vue")["Slider"];
    ASpace: typeof import("ant-design-vue")["Space"];
    ASpin: typeof import("ant-design-vue")["Spin"];
    ASteps: typeof import("ant-design-vue")["Steps"];
    AStep: typeof import("ant-design-vue")["Step"];
    ASwitch: typeof import("ant-design-vue")["Switch"];
    ATable: typeof import("ant-design-vue")["Table"];
    ATableColumnGroup: typeof import("ant-design-vue")["TableColumnGroup"];
    ATransfer: typeof import("ant-design-vue")["Transfer"];
    ATree: typeof import("ant-design-vue")["Tree"];
    ADirectoryTree: typeof import("ant-design-vue")["DirectoryTree"];
    ATreeSelect: typeof import("ant-design-vue")["TreeSelect"];
    ATreeSelectNode: typeof import("ant-design-vue")["TreeSelectNode"];
    ATabs: typeof import("ant-design-vue")["Tabs"];
    ATabContent: typeof import("ant-design-vue")["TabContent"];
    ATag: typeof import("ant-design-vue")["Tag"];
    ACheckableTag: typeof import("ant-design-vue")["CheckableTag"];
    ATimePicker: typeof import("ant-design-vue")["TimePicker"];
    ATimeline: typeof import("ant-design-vue")["Timeline"];
    ATimelineItem: typeof import("ant-design-vue")["TimelineItem"];
    ATooltip: typeof import("ant-design-vue")["Tooltip"];
    ATypography: typeof import("ant-design-vue")["Typography"];
    ATypographyLink: typeof import("ant-design-vue")["TypographyLink"];
    ATypographyParagraph: typeof import("ant-design-vue")["TypographyParagraph"];
    ATypographyText: typeof import("ant-design-vue")["TypographyText"];
    ATypographyTitle: typeof import("ant-design-vue")["TypographyTitle"];
    AUpload: typeof import("ant-design-vue")["Upload"];
    AUploadDragger: typeof import("ant-design-vue")["UploadDragger"];
    ALocaleProvider: typeof import("ant-design-vue")["LocaleProvider"];
  }
}

export {};
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants