From 0eaeb7e194827fdca5e07127961c760f66c2582d Mon Sep 17 00:00:00 2001 From: ya2glu Date: Thu, 13 Apr 2023 01:01:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=92=84=F0=9F=92=84[style]=20-=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/init-components.ts | 156 +++++++++++++++++++--------------- 1 file changed, 86 insertions(+), 70 deletions(-) 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) From a3ae8e65f9c7bbb4ce1610c3a3163b752d9d67cf Mon Sep 17 00:00:00 2001 From: ya2glu Date: Thu, 13 Apr 2023 01:08:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=84=F0=9F=92=84[style]=20-=20?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/src/Table/basic.vue | 37 +++++--------- packages/demo/src/Table/fixedColumn.vue | 4 +- packages/demo/src/Table/schemas.ts | 64 +++++++++++++++++++------ packages/vbenComponents/src/index.ts | 12 ++--- 4 files changed, 70 insertions(+), 47 deletions(-) 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 @@