更新 svg, eps

This commit is contained in:
icssoa 2022-06-24 11:10:56 +08:00
parent 8b102a1d31
commit bbe4b1cfd8
6 changed files with 403 additions and 1901 deletions

View File

@ -9,7 +9,7 @@ export default {
custom: ({ entityName, propertyName, type }) => { custom: ({ entityName, propertyName, type }) => {
// status原本是tinyint如果是1的话== true是可以的但是不能 === true请谨慎使用 // status原本是tinyint如果是1的话== true是可以的但是不能 === true请谨慎使用
if (propertyName === "status" && type == "tinyint") return "boolean"; if (propertyName === "status" && type == "tinyint") return "boolean";
//如果没有返回null或者不返回则继续遍历其他匹配规则 // 如果没有返回null或者不返回则继续遍历其他匹配规则
return null; return null;
} }
}, },

View File

@ -222,6 +222,7 @@ export function getEps() {
return JSON.stringify(readFile(join(tempPath, "eps.json"))); return JSON.stringify(readFile(join(tempPath, "eps.json")));
} }
// 获取类型
function getType({ entityName, propertyName, type }) { function getType({ entityName, propertyName, type }) {
for (const map of config.entity.mapping) { for (const map of config.entity.mapping) {
if (map.custom) { if (map.custom) {

0
build/cool/temp/entity.d.ts vendored Normal file
View File

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "front-next", "name": "front-next",
"version": "5.4.1", "version": "5.5.0",
"scripts": { "scripts": {
"dev": "vite --host", "dev": "vite --host",
"build": "vite build", "build": "vite build",