Problem description
when using El tree, the error this. $el.queryselectorall is not a function is reported, which makes the tree unable to render
Problem resolution
refer to the following code snippet
<el-tree
:data="treeData"
show-checkbox
node-key="id"
ref="functionTree"
></el-tree>
Most of the errors reported are incorrect data bound by El tree. Data errors can be divided into the following two types:
Case 1:
Cause: wrong format of treeData data.
Solution: check the treeData data format, the data bound by :data must be an array.
Case 2:
Cause: The treeData array contains dirty data such as null
Solution: Delete the null and other dirty data in the data
Read More:
- The loop of life and death occurs when the El table component of element UI is bidirectional bound
- TypeError: res.render is not a function
- TypeError: db.collection is not a function
- React Hook “useState“ is called in function “xxx“ which is neither a React function component or
- Syntax Error: TypeError: this.getOptions is not a function
- NPM install Error cb.apply is not a function
- Using rpm to install WGet in CentOS 6.5 libc.so .6(GLIBC_ 2.14)(64bit) is needed by wget-1.14-18.el7_6.1.x86_sixty-four
- [Solved] Vue Install less Error: this.getOptions is not a function
- Taro Use React Hooks Error: TypeError: Object(…) is not a function
- [vite] Internal server error:options.devServer.transformWidthEsBuild is not a function…
- Solve the data transfer between vue irrelevant components error: this.$store.commit is not a function
- Webpack Error: Module build failed: TypeError: this.getOptions is not a function
- Webpack packaging error TypeError: this.getOptions is not a function at Object.lessLoader
- [Solved] ant-design a-date-picker Error: date.locale is not a function
- [Solved] error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows,
- [Solved] Error: error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function
- Abnormal [System.InvalidOperationException: custom type mapping for ‘xxx’ is not specified or is not a solution
- SpringBoot IntegratenRedis Annotations and access error: EL1008E: Property or field ‘getListMember‘ cannot be found on object of type
- AUC Error – ValueError: Data is not binary and pos_label is not specified
- QT solves error: use of deleted function and is private within this context