From 4f826db3e5cf228f7152a57a10e339638a7e637b Mon Sep 17 00:00:00 2001 From: qkiroc <30946345+qkiroc@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:41:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtheme-helper=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20(#11273)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复theme-helper引用报错问题 * 调整成包依赖 * 调整成包依赖 --- .../amis-theme-editor-helper/package.json | 27 ++++++++++--------- .../amis-theme-editor-helper/rollup.config.js | 2 +- .../amis-ui/scss/components/form/_list.scss | 4 +-- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/packages/amis-theme-editor-helper/package.json b/packages/amis-theme-editor-helper/package.json index c04050a05..b900d1a10 100644 --- a/packages/amis-theme-editor-helper/package.json +++ b/packages/amis-theme-editor-helper/package.json @@ -31,10 +31,14 @@ "dependencies": { "amis": "*", "amis-core": "*", - "amis-ui": "*" + "amis-ui": "*", + "style-inject": "^0.3.0" }, "devDependencies": { - "cross-env": "^7.0.3", + "@rollup/plugin-commonjs": "^22.0.0", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-node-resolve": "^13.3.0", + "@rollup/plugin-typescript": "^8.3.2", "@rollup/plugin-url": "^7.0.0", "@svgr/rollup": "^6.4.0", "@types/async": "^2.0.45", @@ -45,23 +49,20 @@ "@types/lodash": "^4.14.76", "@types/node": "^14.0.24", "@types/react": "^18.0.24", + "@types/react-color": "^3.0.6", "@types/react-dom": "^18.0.8", - "@rollup/plugin-commonjs": "^22.0.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.3.0", - "@rollup/plugin-typescript": "^8.3.2", + "cross-env": "^7.0.3", + "react": "^18.2.0", + "react-color": "^2.19.3", + "react-dom": "^18.2.0", "rollup": "^2.73.0", "rollup-plugin-auto-external": "^2.0.0", "rollup-plugin-license": "^2.7.0", - "@types/react-color": "^3.0.6", - "tslib": "^2.3.1", - "typescript": "^4.6.4", "sass": "^1.49.7", "sass-loader": "^12.5.0", "style-loader": "^3.2.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-color": "^2.19.3" + "tslib": "^2.3.1", + "typescript": "^4.6.4" }, "peerDependencies": { "amis": "*", @@ -71,4 +72,4 @@ "react": ">=16.8.6", "react-dom": ">=16.8.6" } -} +} \ No newline at end of file diff --git a/packages/amis-theme-editor-helper/rollup.config.js b/packages/amis-theme-editor-helper/rollup.config.js index 5c652a967..802bd280e 100644 --- a/packages/amis-theme-editor-helper/rollup.config.js +++ b/packages/amis-theme-editor-helper/rollup.config.js @@ -47,10 +47,10 @@ const pkgs = []; }); } }); + const external = id => pkgs.some(pkg => id.startsWith(pkg) || ~id.indexOf(`node_modules/${pkg}`)); const input = ['./src/index.ts']; - export default [ { input, diff --git a/packages/amis-ui/scss/components/form/_list.scss b/packages/amis-ui/scss/components/form/_list.scss index db756503c..45644afeb 100644 --- a/packages/amis-ui/scss/components/form/_list.scss +++ b/packages/amis-ui/scss/components/form/_list.scss @@ -166,8 +166,8 @@ right: px2rem(2px); bottom: px2rem(6px); transform: rotate(-40deg); - width: var(--Checkbox--full-inner-size); - height: calc(var(--Checkbox--full-inner-size) / 2); + width: px2rem(8px); + height: px2rem(4px); border-color: #fff; } }