wangzhibo
2026-07-16 b57020623cf0c946706573bf102e548c3a544423
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import type { Type } from "../types";
 
export const config = {
    type: "admin" as Type,
    reqUrl: "",
    demo: false,
    nameTag: true,
    eps: {
        enable: true,
        api: "",
        dist: "./build/cool",
        mapping: [
            {
                // 自定义匹配
                custom: ({ propertyName, type }: { propertyName: string; type: string }) => {
                    // 如果没有,返回null或者不返回,则继续遍历其他匹配规则
                    return null;
                },
            },
            {
                type: "string",
                test: ["varchar", "text", "simple-json"],
            },
            {
                type: "string[]",
                test: ["simple-array"],
            },
            {
                type: "Date",
                test: ["datetime", "date"],
            },
            {
                type: "number",
                test: ["tinyint", "int", "decimal"],
            },
            {
                type: "BigInt",
                test: ["bigint"],
            },
            {
                type: "any",
                test: ["json"],
            },
        ],
    },
    svg: {
        skipNames: ["base"],
    },
    tailwind: {
        enable: true,
        remUnit: 14,
        remPrecision: 6,
        rpxRatio: 2,
        darkTextClass: "dark:text-surface-50",
    },
    uniapp: {
        isPlugin: false,
    },
    clean: false,
    utsPlatform: "web",
};