svar-react
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSVAR React ships as a family of packages. This file routes to the per-package entry; each child file is standalone and contains the imports, public types, styling hooks, and recipes for its components.
@svar-ui/react-*Open the matching file for the package you are using. If the component you need is not listed in the routing table below, default to
core/index.mdSVAR React以系列包的形式发布。本文件是各包的入口路由;每个子文件都是独立的,包含对应组件的导入语句、公开类型、样式钩子和使用示例。
@svar-ui/react-*打开与你正在使用的包对应的文件。如果所需组件未在下方的路由表中列出,请默认查看
core/index.mdComponent Routing
组件路由
| File | Package | Components |
|---|---|---|
| | buttons, inputs, selectors, calendars, dropdowns, popups, modals, themes, locale (40+ widgets) |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| 文件 | 包 | 组件 |
|---|---|---|
| | buttons, inputs, selectors, calendars, dropdowns, popups, modals, themes, locale (40+ widgets) |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
Common Techniques
通用技巧
These apply to every package:
@svar-ui/react-*- - theme wrappers, CSS variables, the
themes.mdprop convention, class hookscss - - locale context, bundled language packs, extending words and formats
locales.md
The widget hierarchy need to be wrapped in a theme component to ensure proper styling
Some widgets (grid,gantt,filemanager, etc) exports their own theme components that delegate to core theme and add their own variables
以下内容适用于所有包:
@svar-ui/react-*- - 主题包装器、CSS变量、
themes.md属性约定、类钩子css - - 本地化上下文、捆绑语言包、扩展词汇和格式
locales.md
小部件层级结构需要包裹在主题组件中,以确保样式正确显示
部分小部件(grid、gantt、filemanager等)会导出自身的主题组件,这些组件会继承核心主题并添加自定义变量