::v-deep=>:deep()
This commit is contained in:
@@ -109,7 +109,7 @@ export default {
|
||||
if (res?.data) {
|
||||
this.list = res.data?.filter(e => !e.parentid)
|
||||
this.list.map(p => this.addChild(p, res.data, {parent: 'parentid'}))
|
||||
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.$refs.tree.setCurrentKey(res.data[0].id)
|
||||
this.$emit('select', res.data[0])
|
||||
@@ -209,7 +209,7 @@ export default {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
::v-deep .el-tree {
|
||||
:deep( .el-tree ){
|
||||
width: 100%;
|
||||
margin-top: 4px;
|
||||
background: transparent;
|
||||
|
||||
Reference in New Issue
Block a user