Skip to content

Commit

Permalink
chore: update Cacasder demo and remove array-tree-filter (ant-design#…
Browse files Browse the repository at this point in the history
…33754)

* chore: upgrade rc-cacasder

* update snapshot
  • Loading branch information
afc163 authored and Amour1688 committed Jan 30, 2022
1 parent bfe128c commit f84f4cf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
Expand Up @@ -1524,7 +1524,7 @@ exports[`renders ./components/cascader/demo/lazy.md extend context correctly 1`]
exports[`renders ./components/cascader/demo/multiple.md extend context correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-multiple ant-select-allow-clear"
style="width:233px"
style="width:100%"
>
<div
class="ant-select-selector"
Expand Down
Expand Up @@ -612,7 +612,7 @@ exports[`renders ./components/cascader/demo/lazy.md correctly 1`] = `
exports[`renders ./components/cascader/demo/multiple.md correctly 1`] = `
<div
class="ant-select ant-cascader ant-select-multiple ant-select-allow-clear"
style="width:233px"
style="width:100%"
>
<div
class="ant-select-selector"
Expand Down
28 changes: 15 additions & 13 deletions components/cascader/demo/multiple.md
Expand Up @@ -51,18 +51,20 @@ const options = [
},
];

function onChange(value) {
console.log(value);
}
const App = () => {
const onChange = value => {
console.log(value);
};
return (
<Cascader
style={{ width: '100%' }}
options={options}
onChange={onChange}
multiple
maxTagCount="responsive"
/>
);
};

ReactDOM.render(
<Cascader
style={{ width: 233 }}
options={options}
onChange={onChange}
multiple
maxTagCount="responsive"
/>,
mountNode,
);
ReactDOM.render(<App />, mountNode);
```
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -115,7 +115,6 @@
"@ant-design/react-slick": "~0.28.1",
"@babel/runtime": "^7.12.5",
"@ctrl/tinycolor": "^3.4.0",
"array-tree-filter": "^2.1.0",
"classnames": "^2.2.6",
"copy-to-clipboard": "^3.2.0",
"lodash": "^4.17.21",
Expand Down

0 comments on commit f84f4cf

Please sign in to comment.