::v-deep=>:deep()

This commit is contained in:
aixianling
2022-12-01 09:35:20 +08:00
parent d12c7b2c5e
commit 883ec09a0e
352 changed files with 1277 additions and 1281 deletions

View File

@@ -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;