You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning.js?2149:6 Warning: Tree missing follow keys: 'undefined'
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
tree组件用:field-names替换key,会报 Tree missing follow keys: 'undefined'
The tree component replaces the key with: field-names and will report Tree missing follow keys:'undefined'
Oct 21, 2021
Version
3.0.0-alpha.4
Environment
3.2.20
Reproduction link
https://codesandbox.io/s/admiring-bush-mcmq7
Steps to reproduce
{{ name }} {{ name }} <script> import { defineComponent, ref, watch } from 'vue'; export default defineComponent({ setup() { const expandedKeys = ref(['0-0-0', '0-0-1']); const selectedKeys = ref(['0-0-0', '0-0-1']); const checkedKeys = ref(['0-0-0', '0-0-1']); const fieldNames = { children: 'child', title: 'name', key:'test' }; const treeData = [{ name: 'parent 1', test: '0-0', child: [{ name: '张晨成', test: '0-0-0', disabled: true, child: [{ name: 'leaf', test: '0-0-0-0', disableCheckbox: true, }, { name: 'leaf', test: '0-0-0-1', }], }, { name: 'parent 1-1', test: '0-0-1', child: [{ test: '0-0-1-0', name: 'zcvc', }], }], }]; watch(expandedKeys, () => { console.log('expandedKeys', expandedKeys); }); watch(selectedKeys, () => { console.log('selectedKeys', selectedKeys); }); watch(checkedKeys, () => { console.log('checkedKeys', checkedKeys); }); return { expandedKeys, selectedKeys, checkedKeys, fieldNames, treeData: ref(treeData), }; },});
</script>
What is expected?
希望不报错
What is actually happening?
warning.js?2149:6 Warning: Tree missing follow keys: 'undefined'
The text was updated successfully, but these errors were encountered: