/* eslint react/no-multi-comp:0, no-console:0, no-alert: 0 */ import BaseMixin from '../../_util/BaseMixin'; import '../assets/index.less'; import '../../vc-dialog/assets/index.less'; import TreeSelect, { TreeNode } from '../src/index'; import './demo.less'; export default { mixins: [BaseMixin], data: () => ({ treeExpandedKeys: [], }), methods: { onTreeExpand(treeExpandedKeys) { this.setState({ treeExpandedKeys, }); }, setTreeExpandedKeys() { this.setState({ treeExpandedKeys: ['000', '0-1-0'], }); }, }, render() { const { treeExpandedKeys } = this; return (

Conrolled treeExpandedKeys

sss} key="random3" />
); }, };