wangzhibo
昨天 5e756b5a69bcd957f8eafc5f99a4f6413691d6dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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");