diff --git a/examples/routers/tree.vue b/examples/routers/tree.vue index 1aa3f3e4..2c123d55 100644 --- a/examples/routers/tree.vue +++ b/examples/routers/tree.vue @@ -1,5 +1,10 @@ diff --git a/src/styles/components/tree.less b/src/styles/components/tree.less index 3ea68618..efecc381 100644 --- a/src/styles/components/tree.less +++ b/src/styles/components/tree.less @@ -1,6 +1,7 @@ @tree-prefix-cls: ~"@{css-prefix}tree"; .@{tree-prefix-cls} { + position: relative; ul{ list-style: none; margin: 0; @@ -75,4 +76,8 @@ margin-right: 4px; margin-left: 4px; } + + &-context-menu{ + position: absolute; + } }