-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from charlzyx/core
feat: 🎸 v4/v5 双UI 适配
- Loading branch information
Showing
40 changed files
with
356 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ dist-ssr | |
*.sln | ||
*.sw? | ||
doc_build | ||
src/adaptor | ||
src/adaptor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
{ | ||
"name": "rspress-doc-template", | ||
"name": "@proformily/antd", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "rspress dev", | ||
"build:docs": "rspress build", | ||
"v4": "node scripts/switch.js antd dev && rspress dev", | ||
"v5": "node scripts/switch.js antd-v5 dev && rspress dev", | ||
"build:docs:v4": "node scripts/switch.js antd && rspress build", | ||
"build:docs:v5": "node scripts/switch.js antd-v5 && rspress build", | ||
"preview": "rspress preview" | ||
}, | ||
"dependencies": { | ||
"@ant-design/icons": "^5.2.6", | ||
"@formily/antd": "^2.3.1", | ||
"@formily/core": "^2.3.1", | ||
"@formily/react": "^2.3.1", | ||
"@formily/reactive": "^2.3.1", | ||
"@formily/shared": "^2.3.1", | ||
"ahooks": "^3.7.8", | ||
"antd": "^4.24.15", | ||
"moment": "^2.30.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-resizable": "^3.0.5" | ||
"react-resizable": "^3.0.5", | ||
"@formily/antd": "^2.*.*", | ||
"antd": "^4.*.*" | ||
}, | ||
"devDependencies": { | ||
"rspress": "^1.9.3", | ||
"@biomejs/biome": "^1.5.0", | ||
"@faker-js/faker": "^8.3.1", | ||
"@rsbuild/plugin-react": "^0.2.18", | ||
"@rspress/plugin-preview": "^1.9.3", | ||
"@types/node": "^16.18.70", | ||
"@types/react": "^18.2.47", | ||
"@types/react-dom": "^18.2.18", | ||
"@types/react-resizable": "^3.0.7", | ||
"@faker-js/faker": "^8.3.1", | ||
"@types/node": "^16.18.70" | ||
"rimraf": "^5.0.5", | ||
"rspress": "^1.9.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
|
||
const cssPath = path.resolve( | ||
__dirname, | ||
"../node_modules/@rspress/theme-default/dist/bundle.css", | ||
); | ||
|
||
if (fs.existsSync(cssPath)) { | ||
const css = fs.readFileSync(cssPath, "utf-8").toString(); | ||
const neo = css.replace( | ||
` | ||
[type=submit] { | ||
-webkit-appearance: button; | ||
background-color: transparent; | ||
background-image: none; | ||
}`.trim(), | ||
` | ||
[type=submit] { | ||
-webkit-appearance: button; | ||
background-image: none; | ||
} | ||
`, | ||
); | ||
fs.writeFileSync(cssPath, neo, "utf-8"); | ||
} |
Oops, something went wrong.