2026-04-05 21:23:52 +08:00
|
|
|
import { createFromIconfontCN } from "@ant-design/icons-vue";
|
2026-04-01 00:58:42 +08:00
|
|
|
import { QueryClient, VueQueryPlugin } from "@tanstack/vue-query";
|
|
|
|
|
import { createApp } from "vue";
|
|
|
|
|
import {
|
|
|
|
|
Alert,
|
|
|
|
|
App as AntApp,
|
|
|
|
|
Avatar,
|
|
|
|
|
Badge,
|
|
|
|
|
Button,
|
|
|
|
|
Card,
|
|
|
|
|
Checkbox,
|
|
|
|
|
Col,
|
|
|
|
|
ConfigProvider,
|
|
|
|
|
DatePicker,
|
|
|
|
|
Descriptions,
|
2026-04-02 00:31:28 +08:00
|
|
|
Divider,
|
2026-04-01 00:58:42 +08:00
|
|
|
Drawer,
|
|
|
|
|
Dropdown,
|
|
|
|
|
Empty,
|
|
|
|
|
Form,
|
|
|
|
|
Input,
|
|
|
|
|
InputNumber,
|
|
|
|
|
Layout,
|
|
|
|
|
List,
|
|
|
|
|
Menu,
|
|
|
|
|
Modal,
|
|
|
|
|
Popconfirm,
|
|
|
|
|
Progress,
|
|
|
|
|
Radio,
|
2026-04-05 20:41:42 +08:00
|
|
|
Result,
|
2026-04-01 00:58:42 +08:00
|
|
|
Row,
|
|
|
|
|
Select,
|
|
|
|
|
Skeleton,
|
2026-04-02 00:31:28 +08:00
|
|
|
Space,
|
2026-04-01 00:58:42 +08:00
|
|
|
Spin,
|
|
|
|
|
Statistic,
|
2026-04-02 00:31:28 +08:00
|
|
|
Switch,
|
2026-04-01 00:58:42 +08:00
|
|
|
Steps,
|
|
|
|
|
Table,
|
|
|
|
|
Tabs,
|
|
|
|
|
Tag,
|
2026-04-05 17:14:13 +08:00
|
|
|
Tree,
|
2026-04-02 00:31:28 +08:00
|
|
|
TimePicker,
|
2026-04-01 00:58:42 +08:00
|
|
|
Tooltip,
|
2026-04-03 17:48:30 +08:00
|
|
|
Upload,
|
2026-04-05 17:14:13 +08:00
|
|
|
TreeSelect,
|
2026-04-01 00:58:42 +08:00
|
|
|
} from "ant-design-vue";
|
|
|
|
|
|
|
|
|
|
import App from "./App.vue";
|
|
|
|
|
import { i18n } from "./i18n";
|
|
|
|
|
import { router } from "./router";
|
|
|
|
|
import { pinia } from "./stores/pinia";
|
|
|
|
|
import "./styles.css";
|
|
|
|
|
import "ant-design-vue/dist/reset.css";
|
2026-04-05 17:14:13 +08:00
|
|
|
import select from "ant-design-vue/es/select";
|
|
|
|
|
import tree from "ant-design-vue/es/tree";
|
2026-04-01 00:58:42 +08:00
|
|
|
|
|
|
|
|
const queryClient = new QueryClient({
|
|
|
|
|
defaultOptions: {
|
|
|
|
|
queries: {
|
|
|
|
|
staleTime: 30000,
|
|
|
|
|
refetchOnWindowFocus: false,
|
|
|
|
|
retry: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const app = createApp(App);
|
2026-04-05 21:23:52 +08:00
|
|
|
|
|
|
|
|
const IconFont = createFromIconfontCN({
|
|
|
|
|
// 需要替换为你自己真实项目的 js 地址,才能显示出你的 '#icon-line-global_undo'。
|
2026-04-06 22:18:55 +08:00
|
|
|
scriptUrl: "//at.alicdn.com/t/c/font_5154382_922oh81rh1.js",
|
2026-04-05 21:23:52 +08:00
|
|
|
});
|
|
|
|
|
app.component("IconFont", IconFont);
|
|
|
|
|
|
2026-04-02 00:31:28 +08:00
|
|
|
app.component("ATextarea", Input.TextArea);
|
2026-04-01 00:58:42 +08:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
Alert,
|
|
|
|
|
AntApp,
|
|
|
|
|
Avatar,
|
|
|
|
|
Badge,
|
|
|
|
|
Button,
|
|
|
|
|
Card,
|
|
|
|
|
Checkbox,
|
|
|
|
|
Col,
|
|
|
|
|
ConfigProvider,
|
|
|
|
|
DatePicker,
|
|
|
|
|
Descriptions,
|
2026-04-02 00:31:28 +08:00
|
|
|
Divider,
|
2026-04-01 00:58:42 +08:00
|
|
|
Drawer,
|
|
|
|
|
Dropdown,
|
|
|
|
|
Empty,
|
|
|
|
|
Form,
|
|
|
|
|
Input,
|
|
|
|
|
InputNumber,
|
|
|
|
|
Layout,
|
|
|
|
|
List,
|
|
|
|
|
Menu,
|
|
|
|
|
Modal,
|
|
|
|
|
Popconfirm,
|
|
|
|
|
Progress,
|
|
|
|
|
Radio,
|
2026-04-05 20:41:42 +08:00
|
|
|
Result,
|
2026-04-01 00:58:42 +08:00
|
|
|
Row,
|
|
|
|
|
Select,
|
|
|
|
|
Skeleton,
|
2026-04-02 00:31:28 +08:00
|
|
|
Space,
|
2026-04-01 00:58:42 +08:00
|
|
|
Spin,
|
|
|
|
|
Statistic,
|
2026-04-02 00:31:28 +08:00
|
|
|
Switch,
|
2026-04-01 00:58:42 +08:00
|
|
|
Steps,
|
|
|
|
|
Table,
|
|
|
|
|
Tabs,
|
|
|
|
|
Tag,
|
2026-04-02 00:31:28 +08:00
|
|
|
TimePicker,
|
2026-04-01 00:58:42 +08:00
|
|
|
Tooltip,
|
2026-04-05 17:14:13 +08:00
|
|
|
Tree,
|
|
|
|
|
TreeSelect,
|
2026-04-03 17:48:30 +08:00
|
|
|
Upload,
|
2026-04-01 00:58:42 +08:00
|
|
|
].forEach((component) => {
|
|
|
|
|
app.use(component);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
app.use(i18n).use(pinia).use(router).use(VueQueryPlugin, { queryClient }).mount("#app");
|