diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 27db8af0..f53fb8b1 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -13,16 +13,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 14.x cache: yarn - name: Cache yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -38,7 +38,7 @@ jobs: cp yarn.lock package-temp-dir - name: Cache node_modules id: node_modules_cache_id - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -51,21 +51,21 @@ jobs: runs-on: ubuntu-latest needs: [setup] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 14.x - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }} diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a773d75e..5eea1ba8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -5,9 +5,9 @@ name: CI # Triggers the workflow on push or pull request events but only for the master branch on: # push: - # branches: "*" + # branches: ["*"] pull_request: - branches: "*" + branches: ["*"] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -15,16 +15,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 14.x cache: yarn - name: Cache yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -40,7 +40,7 @@ jobs: cp yarn.lock package-temp-dir - name: Cache node_modules id: node_modules_cache_id - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -53,16 +53,16 @@ jobs: needs: [setup] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -74,16 +74,16 @@ jobs: needs: [setup, prettier] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -95,16 +95,16 @@ jobs: runs-on: ubuntu-latest needs: [setup] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }} @@ -116,20 +116,20 @@ jobs: runs-on: ubuntu-latest needs: [setup, prettier, eslint, stylelint] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 14.x + node-version: 14.x - name: Restore cache from yarn.lock - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: package-temp-dir key: lock-${{ github.sha }} - name: Restore cache from node_modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: node_modules key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }} diff --git a/components/datepicker/demo/light.md b/components/datepicker/demo/light.md index 4b7db6e3..7d682a3e 100755 --- a/components/datepicker/demo/light.md +++ b/components/datepicker/demo/light.md @@ -11,7 +11,7 @@ title: 仅暗黑主题下使用,默认主题下使用无效 - 为组件添加类名`dt-form-light-bg` -- 设置组件的属性 `dropdownClassName` 为`dt-form-light-bg` +- 设置组件的属性 `popupClassName` 为`dt-form-light-bg` ```jsx import { DatePicker } from '../../index'; @@ -22,13 +22,13 @@ const { MonthPicker, RangePicker } = DatePicker; const dateFormat = 'YYYY-MM-DD'; ReactDOM.render(
- +
- +
, diff --git a/components/drawer/demo/basic-right.md b/components/drawer/demo/basic-right.md index 7b117ae2..4d385c1d 100644 --- a/components/drawer/demo/basic-right.md +++ b/components/drawer/demo/basic-right.md @@ -61,7 +61,7 @@ class App extends React.Component { title="Small Drawer" placement="right" onClose={this.onClose} - visible={this.state.smallVisible} + open={this.state.smallVisible} >

Some contents...

Some contents...

@@ -72,7 +72,7 @@ class App extends React.Component { placement="right" width={1000} onClose={this.onClose} - visible={this.state.visible} + open={this.state.visible} >

Some contents...

Some contents...

@@ -83,7 +83,7 @@ class App extends React.Component { placement="right" width={1256} onClose={this.onClose} - visible={this.state.largeVisible} + open={this.state.largeVisible} >

Some contents...

Some contents...

diff --git a/components/drawer/demo/placement.md b/components/drawer/demo/placement.md index ab9cf241..04744483 100644 --- a/components/drawer/demo/placement.md +++ b/components/drawer/demo/placement.md @@ -60,7 +60,7 @@ class App extends React.Component { placement={this.state.placement} closable={false} onClose={this.onClose} - visible={this.state.visible} + open={this.state.visible} >

Some contents...

Some contents...

diff --git a/components/dropdown/demo/basic.md b/components/dropdown/demo/basic.md index 31c1b4c5..b387a151 100644 --- a/components/dropdown/demo/basic.md +++ b/components/dropdown/demo/basic.md @@ -16,28 +16,29 @@ The most basic dropdown menu. import { Menu, Dropdown, Space } from 'antd'; import { DownOutlined } from '@ant-design/icons'; -const menu = ( - - - +const items = [ + { + label: ( 1st menu item - - - - + ), + key: '0', + }, + { + label: ( 2nd menu item - - - - + ), + key: '1', + }, + { + label: ( 3rd menu item - - - -); + ), + key: '2', + } +]; ReactDOM.render( - + e.preventDefault()}> Hover me diff --git a/components/dropdown/demo/placement.md b/components/dropdown/demo/placement.md index e3ff10a5..8d2fe962 100644 --- a/components/dropdown/demo/placement.md +++ b/components/dropdown/demo/placement.md @@ -16,45 +16,46 @@ Support 6 placements. ```jsx import { Menu, Dropdown, Button } from 'antd'; -const menu = ( - - - +const items = [ + { + label: ( 1st menu item - - - - + ), + key: '0', + }, + { + label: ( 2nd menu item - - - - + ), + key: '1', + }, + { + label: ( 3rd menu item - - - -); + ), + key: '2', + } +]; ReactDOM.render(
- + - + - +
- + - + - +
, diff --git a/components/empty/demo/light.md b/components/empty/demo/light.md index 56ed5652..0e1cf925 100644 --- a/components/empty/demo/light.md +++ b/components/empty/demo/light.md @@ -59,13 +59,13 @@ class Demo extends React.Component {

Select

-

TreeSelect

- +

Cascader

- +
diff --git a/components/form/demo/light.md b/components/form/demo/light.md index f4693e66..ea485a7e 100755 --- a/components/form/demo/light.md +++ b/components/form/demo/light.md @@ -73,7 +73,7 @@ class NormalLoginForm extends React.Component { - @@ -99,7 +99,7 @@ class NormalLoginForm extends React.Component { - +