Skip to content

Commit

Permalink
feat: config node version
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyi committed Aug 3, 2022
1 parent 44a8747 commit bbf5e91
Show file tree
Hide file tree
Showing 4 changed files with 982 additions and 483 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
- name: checkout
uses: actions/checkout@v2

- name: 'set Node.js'
uses: actions/setup-node@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 14.x
cache: yarn

- name: cache yarn.lock
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,6 @@
"react-dom": ">=16.0.0"
},
"engines": {
"node": "12"
"node": ">=14"
}
}
2 changes: 1 addition & 1 deletion src/components/mulSelectDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class MulSelectDropdown extends React.Component<MulSelectDropdown

handleCheckAllChange = () => {
const { allKeys, selectVal, disabledKeys } = this.state;
const newSelectVal = selectVal.length === allKeys.length ? disabledKeys : [...allKeys];
const newSelectVal = selectVal.length === allKeys.length ? disabledKeys : allKeys;
this.setState({
selectVal: newSelectVal,
indeterminate: false
Expand Down
Loading

0 comments on commit bbf5e91

Please sign in to comment.