We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.15.14
chrome
2.7.16
<el-input v-model="input" placeholder="请输入内容" @change="change"></el-input> <el-cascader v-model="value" :props="props"></el-cascader> <script> let id = 0; export default { data() { return { input: '', value: [], props: { lazy: true, lazyLoad(node, resolve) { const { level } = node; setTimeout(() => { const nodes = Array.from({ length: level + 1 }) .map(item => ({ value: ++id, label: `选项${id}`, leaf: level >= 2 })); // 通过调用resolve将子节点数据返回,通知组件数据加载完成 resolve(nodes); }, 1000); } }, } }, methods: { change(value) { console.log(value); let _this = this; setTimeout(function(){ },500) _this.value = [ 1, 2, 4 ] } }, } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Element UI version
2.15.14
OS/Browsers version
chrome
Vue version
2.7.16
code
问题现象
The text was updated successfully, but these errors were encountered: