ant-design / pro-editor

🕹️ The Ultimate Editor UI Framework and Components
https://pro-editor.antdigital.dev
MIT License
208 stars 26 forks source link

:zap: feat: ProEditor ConvigProvider 优化改造,Prefix 动态获取 #120

Closed ONLY-yours closed 10 months ago

ONLY-yours commented 10 months ago

Provider & Prefix 改造

ConfigProvider

github-actions[bot] commented 10 months ago

🎊 PR Preview 600ed26a036aabda9e09e336b9c4c9c0433d1b27 has been successfully built and deployed to https://ant-design-pro-editor-preview-pr-120.surge.sh

:clock1: Build time: 72.971s

🤖 By surge-preview

ONLY-yours commented 10 months ago

@arvinxx 这样子好像会导致,这串代码拿到的亮色和暗色疯狂切换,最后都会落到 dark 上。能帮忙看看是什么地方组合不对么

const { appearance } = useThemeMode();
ONLY-yours commented 10 months ago

link:https://github.com/ant-design/pro-editor/issues/132 一并在这个pr修掉了

codecov-commenter commented 10 months ago

Codecov Report

Attention: 59 lines in your changes are missing coverage. Please review.

Comparison is base (b4e49e4) 83.88% compared to head (600ed26) 83.89%. Report is 1 commits behind head on main.

Files Patch % Lines
src/ContextMenu/MenuItem/style.ts 3.50% 55 Missing :warning:
src/CollapseTitle/index.tsx 95.45% 2 Missing :warning:
src/IconPicker/components/ScriptEditor.tsx 50.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #120 +/- ## ======================================= Coverage 83.88% 83.89% ======================================= Files 434 435 +1 Lines 30978 30902 -76 Branches 1241 1248 +7 ======================================= - Hits 25987 25926 -61 + Misses 4991 4976 -15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 10 months ago

:tada: This PR is included in version 0.38.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: