mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-15 07:27:54 +00:00
29 lines
520 B
TypeScript
29 lines
520 B
TypeScript
import { createApp } from "vue";
|
|
import App from "./App.vue";
|
|
import { Crud, locale } from "./entry";
|
|
// import Crud, { locale } from "../dist/index.umd";
|
|
// import "../dist/index.css";
|
|
|
|
import ElementPlus from "element-plus";
|
|
import "element-plus/dist/index.css";
|
|
|
|
const app = createApp(App);
|
|
|
|
app.use(ElementPlus)
|
|
.use(Crud, {
|
|
dict: {
|
|
sort: {
|
|
prop: "order",
|
|
order: "sort"
|
|
},
|
|
label: locale["zh-cn"]
|
|
},
|
|
style: {
|
|
// size: "default"
|
|
},
|
|
render: {
|
|
autoHeight: true
|
|
}
|
|
})
|
|
.mount("#app");
|