diff --git a/.eslintignore b/.eslintignore index 5b7a025679..0290b8510e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,6 +6,7 @@ components/**/*.jsx # Docs templates site/theme/template/IconDisplay/*.js site/theme/template/IconDisplay/*.jsx +site/theme/template/Home/**/*.jsx typings es/**/* lib/**/* diff --git a/.gitignore b/.gitignore index 2213de4801..d9c5d644af 100644 --- a/.gitignore +++ b/.gitignore @@ -38,8 +38,12 @@ components/**/*.jsx !components/**/__tests__/**/*.js !components/**/__tests__/**/*.js.snap /.history +*.tmp + # Docs templates site/theme/template/IconDisplay/*.js site/theme/template/IconDisplay/*.jsx site/theme/template/IconDisplay/fields.js -*.tmp + +site/theme/template/Home/**/*.jsx + diff --git a/components/spin/index.en-US.md b/components/spin/index.en-US.md index c500f16b80..0fc83d632b 100644 --- a/components/spin/index.en-US.md +++ b/components/spin/index.en-US.md @@ -25,4 +25,4 @@ When part of the page is waiting for asynchronous data or during a rendering pro - `Spin.setDefaultIndicator(indicator: ReactNode)` - You can define default spin element globally. \ No newline at end of file + You can define default spin element globally. diff --git a/components/table/__tests__/Table.filter.test.js b/components/table/__tests__/Table.filter.test.js index 4bedd60370..fadab37cb8 100644 --- a/components/table/__tests__/Table.filter.test.js +++ b/components/table/__tests__/Table.filter.test.js @@ -21,7 +21,10 @@ describe('Table.filter', () => { { text: 'Title', value: 'title', - children: [{ text: 'Designer', value: 'designer' }, { text: 'Coder', value: 'coder' }], + children: [ + { text: 'Designer', value: 'designer' }, + { text: 'Coder', value: 'coder' }, + ], }, ], onFilter: filterFn, @@ -468,7 +471,10 @@ describe('Table.filter', () => { // }); describe('should support value types', () => { - [['Light', 93], ['Bamboo', false]].forEach(([text, value]) => { + [ + ['Light', 93], + ['Bamboo', false], + ].forEach(([text, value]) => { it(`${typeof value} type`, () => { const onFilter = jest.fn(); const filters = [{ text, value }]; @@ -552,7 +558,10 @@ describe('Table.filter', () => { title="name" dataIndex="name" key="name" - filters={[{ text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }]} + filters={[ + { text: 'Jack', value: 'Jack' }, + { text: 'Lucy', value: 'Lucy' }, + ]} filteredValue={filters.name} onFilter={filterFn} /> @@ -591,7 +600,10 @@ describe('Table.filter', () => { title: 'Name', dataIndex: 'name', key: 'name', - filters: [{ text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }], + filters: [ + { text: 'Jack', value: 'Jack' }, + { text: 'Lucy', value: 'Lucy' }, + ], onFilter: filterFn, filteredValue: ['Jack'], }, @@ -621,7 +633,10 @@ describe('Table.filter', () => { columns: [ { ...column, - filters: [{ text: 'Jack', value: 'Jack' }, { text: 'Lucy', value: 'Lucy' }], + filters: [ + { text: 'Jack', value: 'Jack' }, + { text: 'Lucy', value: 'Lucy' }, + ], }, ], onChange: handleChange, diff --git a/docs/spec/alignment.en-US.md b/docs/spec/alignment.en-US.md index 319a4cd9ef..7968665d06 100644 --- a/docs/spec/alignment.en-US.md +++ b/docs/spec/alignment.en-US.md @@ -1,5 +1,6 @@ --- -category: Principles +category: Design Patterns +type: Principles order: 2 title: Alignment --- diff --git a/docs/spec/alignment.zh-CN.md b/docs/spec/alignment.zh-CN.md index 78f11cb80a..a13b52679e 100644 --- a/docs/spec/alignment.zh-CN.md +++ b/docs/spec/alignment.zh-CN.md @@ -1,5 +1,6 @@ --- -category: 原则 +category: 设计模式 +type: 原则 order: 2 title: 对齐 --- diff --git a/docs/spec/colors.en-US.md b/docs/spec/colors.en-US.md index e6c51796c9..9e85783025 100644 --- a/docs/spec/colors.en-US.md +++ b/docs/spec/colors.en-US.md @@ -1,5 +1,5 @@ --- -category: Visual +category: Global Style order: 0 title: Colors --- diff --git a/docs/spec/colors.zh-CN.md b/docs/spec/colors.zh-CN.md index f0f0acc54c..3ad6946817 100644 --- a/docs/spec/colors.zh-CN.md +++ b/docs/spec/colors.zh-CN.md @@ -1,5 +1,5 @@ --- -category: 视觉 +category: 全局样式 order: 0 title: 色彩 --- diff --git a/docs/spec/contrast.en-US.md b/docs/spec/contrast.en-US.md index e74d249ea2..d6c6da2244 100644 --- a/docs/spec/contrast.en-US.md +++ b/docs/spec/contrast.en-US.md @@ -1,5 +1,6 @@ --- -category: Principles +category: Design Patterns +type: Principles order: 3 title: Contrast --- diff --git a/docs/spec/contrast.zh-CN.md b/docs/spec/contrast.zh-CN.md index 068da2b918..75583561c3 100644 --- a/docs/spec/contrast.zh-CN.md +++ b/docs/spec/contrast.zh-CN.md @@ -1,5 +1,6 @@ --- -category: 原则 +category: 设计模式 +type: 原则 order: 3 title: 对比 --- diff --git a/docs/spec/copywriting.md b/docs/spec/copywriting.md index 37403d33a5..8e7e160da0 100644 --- a/docs/spec/copywriting.md +++ b/docs/spec/copywriting.md @@ -1,7 +1,10 @@ --- category: - zh-CN: 模式 - en-US: Patterns + zh-CN: 设计模式 + en-US: Design Patterns +type: + zh-CN: 全局规则 + en-US: Global Rules order: 6 title: zh-CN: 文案 diff --git a/docs/spec/direct.en-US.md b/docs/spec/direct.en-US.md index 36c9a40271..7cf68b3326 100644 --- a/docs/spec/direct.en-US.md +++ b/docs/spec/direct.en-US.md @@ -1,5 +1,6 @@ --- -category: Principles +category: Design Patterns +type: Principles order: 5 title: Make it Direct --- diff --git a/docs/spec/direct.zh-CN.md b/docs/spec/direct.zh-CN.md index 969c6d2ecd..0375816056 100644 --- a/docs/spec/direct.zh-CN.md +++ b/docs/spec/direct.zh-CN.md @@ -1,5 +1,6 @@ --- -category: 原则 +category: 设计模式 +type: 原则 order: 5 title: 直截了当 --- diff --git a/docs/spec/download.en-US.md b/docs/spec/download.en-US.md index aa80e17503..8d9f88f706 100644 --- a/docs/spec/download.en-US.md +++ b/docs/spec/download.en-US.md @@ -9,7 +9,7 @@ Please find below some of the design resources and tools about Ant Design that w
{item.slogan}
- +