diff --git a/package-lock.json b/package-lock.json index 68674e6..72c8e5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@music163/tango-helpers": "latest", "antd": "^4.24.2", "coral-system": "^1.0.5", + "cross-env": "^7.0.3", "umi": "^4.0.89" }, "devDependencies": { @@ -6972,6 +6973,23 @@ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==" }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-fetch": { "version": "3.1.8", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", @@ -20953,6 +20971,14 @@ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==" }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "requires": { + "cross-spawn": "^7.0.1" + } + }, "cross-fetch": { "version": "3.1.8", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", diff --git a/package.json b/package.json index 3e1bae5..a657477 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,8 @@ "private": true, "author": "Wells ", "scripts": { - "dev": "HOST=local.netease.com PORT=8001 umi dev", + "dev": "cross-env HOST=local.netease.com PORT=8001 umi dev", "build": "umi build", -"build:test": "COMPRESS=none umi build", "postinstall": "umi setup", "setup": "umi setup", "start": "npm run dev" @@ -19,6 +18,7 @@ "@music163/antd": "^0.2.4", "antd": "^4.24.2", "coral-system": "^1.0.5", + "cross-env": "^7.0.3", "umi": "^4.0.89" }, "devDependencies": { diff --git a/src/helpers/prototypes.ts b/src/helpers/prototypes.ts index 63e3951..0e867f1 100644 --- a/src/helpers/prototypes.ts +++ b/src/helpers/prototypes.ts @@ -174,6 +174,30 @@ const prototypes: Dict = { package: '@music163/antd', hasChildren: true, siblingNames: ['Box'], + props: [ + { + name: 'aaa', + title: 'aaa', + setter: 'textSetter', + }, + { + name: 'bbb', + title: 'bbb', + setter: 'textSetter', + deprecated: true, + }, + { + name: 'ccc', + title: 'ccc', + setter: 'textSetter', + deprecated: true, + }, + { + name: 'd', + title: 'd', + setter: 'textSetter', + }, + ], }, Columns: { name: 'Columns', diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b25d1e8..33a3980 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -68,6 +68,7 @@ const menuData = { 'Columns', 'Column', 'Box', + 'Text', 'Space', 'Typography', 'Title',