未验证 提交 e99c11cc 编写于 作者: 拧巴的猫 提交者: GitHub

fix: 修改 cell 组件descTextAlign 的相关代码注入时机和使用文档 (#598)

上级 8296436f
......@@ -89,7 +89,7 @@ export const Cell: FunctionComponent<
const styles =
title || subTitle || icon
? {}
? { textAlign: descTextAlign }
: {
textAlign: descTextAlign,
flex: 1,
......
......@@ -85,7 +85,7 @@ export const Cell: FunctionComponent<
const styles =
title || subTitle || icon
? {}
? { textAlign: descTextAlign }
: {
textAlign: descTextAlign,
flex: 1,
......
......@@ -271,7 +271,7 @@ export default App
| title | Title | React.ReactNode | - |
| subTitle | Subtitle | React.ReactNode | - |
| desc | Description | String | - |
| descTextAlign | Right description text alignment [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp) | String | right |
| descTextAlign | Right description text alignment [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp), is only available when displaying desc | String | right |
| isLink | Whether to show the right arrow and turn on click feedback | Boolean | false |
| to`v1.4.0(Abandon)` | C Target route of the link | String | - |
| replace | If true, the navigation will not leave a history record | Boolean | false |
......
......@@ -273,7 +273,7 @@ export default App;
| title | 标题名称 | React.ReactNode | - |
| subTitle | 左侧副标题 | React.ReactNode | - |
| desc | 右侧描述 | String | - |
| descTextAlign | 右侧描述文本对齐方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp) | String | right |
| descTextAlign | 右侧描述文本对齐方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp),只展示 desc 时可用 | String | right |
| isLink | 是否展示右侧箭头并开启点击反馈 | Boolean | false |
| to`v1.4.0废弃` | 点击后跳转的目标路由对象 | String | - |
| replace | 是否在跳转时替换当前页面历史 | Boolean | false |
......
......@@ -273,7 +273,7 @@ export default App;
| title | 標題名稱 | React.ReactNode | - |
| subTitle | 左側副標題 | React.ReactNode | - |
| desc | 右側描述 | String | - |
| descTextAlign | 右側描述文本對齊方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp) | String | right |
| descTextAlign | 右側描述文本對齊方式 [text-align](https://www.w3school.com.cn/cssref/pr_text_text-align.asp),只展示 desc 時可用 | String | right |
| isLink | 是否展示右側箭頭並開啟點擊反饋 | Boolean | false |
| to`v1.4.0废弃` | 點擊後跳轉的目標路由對象 | String | - |
| replace | 是否在跳轉時替換當前頁面歷史 | Boolean | false |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册