初始提交:项目迁移,前端(管理端)
This commit is contained in:
60
cool-admin-vue/packages/vite-plugin/src/config.ts
Normal file
60
cool-admin-vue/packages/vite-plugin/src/config.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user