Skip to content

Commit

Permalink
docs: 优化Table的显示表头字段名称
Browse files Browse the repository at this point in the history
  • Loading branch information
midday committed Mar 13, 2023
1 parent 84e8136 commit 8c0e216
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/packages/table/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface T {
customCell: string
asynchronousRendering: string
sorting: string
hideHeader: string
showHeader: string
}

interface TableColumnProps {
Expand All @@ -34,7 +34,7 @@ const TableDemo = () => {
summaryTitle: '显示总结栏',
summary: '这是总结栏',
striped: '条纹、明暗交替',
hideHeader: '隐藏表头',
showHeader: '隐藏表头',
noDataTitle: '无数据默认展示,支持自定义',
customNoData: '这里是自定义展示',
customCell: '自定义单元格',
Expand All @@ -47,7 +47,7 @@ const TableDemo = () => {
summaryTitle: 'Show summary bar',
summary: 'This is the summary column',
striped: 'Stripes, alternating light and shade',
hideHeader: 'Hide table header',
showHeader: 'Hide table header',
noDataTitle:
'No data is displayed by default, and customization is supported',
customNoData: 'Here is the custom display',
Expand Down Expand Up @@ -278,7 +278,7 @@ const TableDemo = () => {
style={{ background: '#fff' }}
striped
/>
<h2>{translated.hideHeader}</h2>
<h2>{translated.showHeader}</h2>
<Table
columns={columns1}
data={data1}
Expand Down
8 changes: 4 additions & 4 deletions src/packages/table/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface T {
customCell: string
asynchronousRendering: string
sorting: string
hideHeader: string
showHeader: string
}

const TableDemo = () => {
Expand All @@ -28,7 +28,7 @@ const TableDemo = () => {
summaryTitle: '显示总结栏',
summary: '这是总结栏',
striped: '条纹、明暗交替',
hideHeader: '隐藏表头',
showHeader: '隐藏表头',
noDataTitle: '无数据默认展示,支持自定义',
customNoData: '这里是自定义展示',
customCell: '自定义单元格',
Expand All @@ -41,7 +41,7 @@ const TableDemo = () => {
summaryTitle: 'Show summary bar',
summary: 'This is the summary column',
striped: 'Stripes, alternating light and shade',
hideHeader: 'Hide table header',
showHeader: 'Hide table header',
noDataTitle:
'No data is displayed by default, and customization is supported',
customNoData: 'Here is the custom display',
Expand Down Expand Up @@ -252,7 +252,7 @@ const TableDemo = () => {
style={{ background: '#fff' }}
striped
/>
<h2>{translated.hideHeader}</h2>
<h2>{translated.showHeader}</h2>
<Table
columns={columns1}
data={data1}
Expand Down

0 comments on commit 8c0e216

Please sign in to comment.