diff --git a/apps/admin/init-components.ts b/apps/admin/init-components.ts index cf3fa770..43adc6af 100644 --- a/apps/admin/init-components.ts +++ b/apps/admin/init-components.ts @@ -91,101 +91,117 @@ import naive, { NTooltip, NTab, NResult, - NAffix, NGradientText + NAffix, + NGradientText, } from 'naive-ui' - import { initVbenComponent, setNotice, setMessage } from '@vben/vbencomponents' export async function registerComponents(app) { initVbenComponent(app, { - Drawer: NDrawer, - DrawerContent: NDrawerContent, - Tag: NTag, - Card: NCard, - Menu: NMenu, - Divider: NDivider, - Space: NSpace, - Popover: NPopover, + Affix: NAffix, + Avatar: NAvatar, + AutoComplete: NAutoComplete, + + Badge: NBadge, Button: NButton, ButtonGroup: NButtonGroup, - Avatar: NAvatar, - Statistic: NStatistic, - Select: NSelect, - Input: NInput, - InputGroup: NInputGroup, - InputGroupLabel: NInputGroupLabel, - InputNumber: NInputNumber, - Form: NForm, - FormItem: NFormItem, - Thing: NThing, - Popconfirm: NPopconfirm, - Icon: NIcon, - IconWrapper: NIconWrapper, - Checkbox: NCheckbox, - CheckboxGroup: NCheckboxGroup, Breadcrumb: NBreadcrumb, BreadcrumbItem: NBreadcrumbItem, - Modal: NModal, - Empty: NEmpty, - Upload: NUpload, - UploadDragger: NUploadDragger, - Tabs: NTabs, - Tab: NTab, - TabPane: NTabPane, - Grid: NGrid, - GridItem: NGridItem, - Ellipsis: NEllipsis, - Image: NImage, - MessageProvider: NMessageProvider, - Pagination: NPagination, - Radio: NRadio, - RadioButton: NRadioButton, - RadioGroup: NRadioGroup, - Text: NText, + + Card: NCard, Config: NConfigProvider, - DynamicTags: NDynamicTags, + Checkbox: NCheckbox, + CheckboxGroup: NCheckboxGroup, ColorPicker: NColorPicker, + Cascader: NCascader, + + Drawer: NDrawer, + Divider: NDivider, + DrawerContent: NDrawerContent, + DynamicTags: NDynamicTags, Descriptions: NDescriptions, DescriptionsItem: NDescriptionsItem, - NotificationProvider: NNotificationProvider, - Switch: NSwitch, - Layout: NLayout, - LayoutHeader: NLayoutHeader, - LayoutFooter: NLayoutFooter, - LayoutSider: NLayoutSider, - LayoutContent: NLayoutContent, Dropdown: NDropdown, - TreeSelect: NTreeSelect, - Badge: NBadge, - ListItem: NListItem, - List: NList, - AutoComplete: NAutoComplete, - Cascader: NCascader, + DynamicInput: NDynamicInput, DatePicker: NDatePicker, - TimePicker: NTimePicker, - Rate: NRate, - Slider: NSlider, - Transfer: NTransfer, - Mention: NMention, + DarkTheme: darkTheme, + + Empty: NEmpty, + Ellipsis: NEllipsis, + Element: NElement, + + Form: NForm, + FormItem: NFormItem, FormItemGi: NFormItemGi, - Tree: NTree, + + Grid: NGrid, + GridItem: NGridItem, + GradientText: NGradientText, + H1: NH1, H2: NH2, H3: NH3, H4: NH4, H5: NH5, H6: NH6, - DynamicInput: NDynamicInput, + + Input: NInput, + InputGroup: NInputGroup, + InputGroupLabel: NInputGroupLabel, + InputNumber: NInputNumber, + Icon: NIcon, + Image: NImage, + IconWrapper: NIconWrapper, + + ListItem: NListItem, + List: NList, + Layout: NLayout, + LayoutHeader: NLayoutHeader, + LayoutFooter: NLayoutFooter, + LayoutSider: NLayoutSider, + LayoutContent: NLayoutContent, + + Menu: NMenu, + Modal: NModal, + MessageProvider: NMessageProvider, + Mention: NMention, + + NotificationProvider: NNotificationProvider, + + Popover: NPopover, + Popconfirm: NPopconfirm, + Pagination: NPagination, PopSelect: NPopselect, - Time: NTime, - Scrollbar: NScrollbar, - DarkTheme: darkTheme, - Element: NElement, + + Rate: NRate, + Radio: NRadio, + RadioButton: NRadioButton, + RadioGroup: NRadioGroup, + Result: NResult, + + Space: NSpace, + Select: NSelect, + Switch: NSwitch, + Slider: NSlider, Skeleton: NSkeleton, + Scrollbar: NScrollbar, + Statistic: NStatistic, + + Tag: NTag, + Tab: NTab, + Tabs: NTabs, + TabPane: NTabPane, + Thing: NThing, + Text: NText, + Tree: NTree, + Time: NTime, Tooltip: NTooltip, - Result: NResult, - Affix: NAffix, - GradientText: NGradientText + Transfer: NTransfer, + TimePicker: NTimePicker, + TreeSelect: NTreeSelect, + + Upload: NUpload, + UploadDragger: NUploadDragger, }) setMessage(useMessage) setNotice(useNotification) diff --git a/packages/demo/src/Table/basic.vue b/packages/demo/src/Table/basic.vue index dc3a1832..8a22903c 100644 --- a/packages/demo/src/Table/basic.vue +++ b/packages/demo/src/Table/basic.vue @@ -1,30 +1,22 @@