Newer
Older
HuangJiPC / src / utils / naive.js
@zhangdeliang zhangdeliang on 21 Jun 1 KB update
//按需加载
import {
  create,
  NButton,
  NNumberAnimation,
  NDatePicker,
  NInput,
  NSelect,
  NTreeSelect,
  NTable,
  NConfigProvider,
  NGlobalStyle,
  NCheckbox,
  NRadio,
  NImage,
  NEmpty,
  NGrid,
  NGi,
  NMenu,
  NForm,
  NFormItem,
  NMessageProvider,
  NNotificationProvider,
  NDialogProvider,
  NIcon,
  NRadioGroup,
  NSpace,
  NLoadingBarProvider,
  NLayout,
  NLayoutSider,
  NLayoutHeader,
  NLayoutContent,
  NDropdown,
  NDataTable,
  NPagination,
  NTree,
  NSpin,
  NModal,
  NInputNumber,
  NCheckboxGroup,
  NColorPicker,
  NH2,
  NSwitch,
  NPopover,
  NDivider,
  NTransfer,
  NRadioButton,
  NEllipsis,
  NTimePicker,
  NRate,
  NCalendar,
  NCard,
  NPopconfirm,
  NCarousel,
  NTabs,
  NTabPane,
  NProgress,
  NTag,
  NDynamicTags,
  NDynamicInput,
  NAutoComplete,
  NCollapse,
  NCollapseItem,
  NUpload,
} from 'naive-ui';

export const naive = create({
  components: [
    NButton,
    NNumberAnimation,
    NDatePicker,
    NInput,
    NSelect,
    NTreeSelect,
    NTable,
    NConfigProvider,
    NGlobalStyle,
    NCheckbox,
    NRadio,
    NImage,
    NEmpty,
    NGrid,
    NGi,
    NMenu,
    NForm,
    NFormItem,
    NMessageProvider,
    NIcon,
    NRadioGroup,
    NSpace,
    NNotificationProvider,
    NDialogProvider,
    NLoadingBarProvider,
    NLayout,
    NLayoutSider,
    NLayoutHeader,
    NLayoutContent,
    NDropdown,
    NDataTable,
    NPagination,
    NTree,
    NSpin,
    NModal,
    NInputNumber,
    NCheckboxGroup,
    NColorPicker,
    NH2,
    NSwitch,
    NPopover,
    NDivider,
    NTransfer,
    NRadioButton,
    NEllipsis,
    NTimePicker,
    NRate,
    NCard,
    NPopconfirm,
    NCalendar,
    NCarousel,
    NTabs,
    NTabPane,
    NProgress,
    NTag,
    NDynamicTags,
    NAutoComplete,
    NCollapse,
    NCollapseItem,
    NDynamicInput,
    NUpload,
  ],
});