123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- /*
- * Copyright (c) 2024 LangChat. TyCoding All Rights Reserved.
- *
- * Licensed under the GNU Affero General Public License, Version 3 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.gnu.org/licenses/agpl-3.0.html
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- import type { App } from 'vue';
- import {
- create,
- NAlert,
- NAutoComplete,
- NAvatar,
- NBackTop,
- NBadge,
- NBreadcrumb,
- NBreadcrumbItem,
- NButton,
- NCard,
- NCascader,
- NCheckbox,
- NCheckboxGroup,
- NCol,
- NCollapse,
- NCollapseItem,
- NColorPicker,
- NConfigProvider,
- NCountdown,
- NDataTable,
- NDatePicker,
- NDescriptions,
- NDescriptionsItem,
- NDialogProvider,
- NDivider,
- NDrawer,
- NDrawerContent,
- NDropdown,
- NElement,
- NEllipsis,
- NEmpty,
- NForm,
- NFormItem,
- NGradientText,
- NGrid,
- NGridItem,
- NIcon,
- NInput,
- NInputGroup,
- NInputNumber,
- NLayout,
- NLayoutContent,
- NLayoutFooter,
- NLayoutHeader,
- NLayoutSider,
- NList,
- NListItem,
- NLoadingBarProvider,
- NMenu,
- NMessageProvider,
- NModal,
- NNotificationProvider,
- NP,
- NPagination,
- NPopconfirm,
- NPopover,
- NPopselect,
- NProgress,
- NRadio,
- NRadioGroup,
- NResult,
- NRow,
- NScrollbar,
- NSelect,
- NSkeleton,
- NSlider,
- NSpace,
- NSpin,
- NSplit,
- NStep,
- NSteps,
- NSwitch,
- NTab,
- NTable,
- NTabPane,
- NTabs,
- NTag,
- NText,
- NThing,
- NTimePicker,
- NTooltip,
- NTree,
- NUpload,
- NUploadDragger,
- } from 'naive-ui';
- // https://www.naiveui.com/en-US/os-theme/docs/import-on-demand
- const naive = create({
- components: [
- NMessageProvider,
- NDialogProvider,
- NConfigProvider,
- NInput,
- NButton,
- NForm,
- NFormItem,
- NCheckboxGroup,
- NCheckbox,
- NIcon,
- NLayout,
- NLayoutHeader,
- NLayoutContent,
- NLayoutFooter,
- NLayoutSider,
- NMenu,
- NBreadcrumb,
- NBreadcrumbItem,
- NDropdown,
- NSpace,
- NTooltip,
- NAvatar,
- NTabs,
- NTab,
- NTabPane,
- NCard,
- NRow,
- NCol,
- NDrawer,
- NDrawerContent,
- NDivider,
- NSwitch,
- NBadge,
- NAlert,
- NElement,
- NTag,
- NNotificationProvider,
- NProgress,
- NDatePicker,
- NGrid,
- NGridItem,
- NList,
- NListItem,
- NThing,
- NDataTable,
- NPopover,
- NPagination,
- NSelect,
- NRadioGroup,
- NRadio,
- NSteps,
- NStep,
- NInputGroup,
- NResult,
- NDescriptions,
- NDescriptionsItem,
- NTable,
- NInputNumber,
- NLoadingBarProvider,
- NModal,
- NUpload,
- NUploadDragger,
- NTree,
- NSpin,
- NTimePicker,
- NBackTop,
- NSkeleton,
- NCascader,
- NGradientText,
- NEllipsis,
- NSlider,
- NPopconfirm,
- NScrollbar,
- NAutoComplete,
- NCountdown,
- NText,
- NP,
- NCollapse,
- NCollapseItem,
- NColorPicker,
- NEmpty,
- NPopselect,
- NSplit,
- ],
- });
- export function setupNaive(app: App<Element>) {
- app.use(naive);
- }
|