减少冗余代码

This commit is contained in:
aixianling
2022-08-23 11:05:24 +08:00
parent 7bbdaee6d3
commit 7590a5bcb2

View File

@@ -5,7 +5,7 @@
ref="tree"
id="tree"
:style="{left: x, top: y, transform: `scale(${scale}) translate(-50%, -50%) `, 'transform-origin': `${0} ${0}`}">
<VueOkrTree
<ai-okr-tree
:props="props"
node-key="id"
show-collapsable
@@ -15,23 +15,16 @@
ref="VueOkrTree"
@node-click="onNodeClick"
:data="treeData">
</VueOkrTree>
</ai-okr-tree>
</div>
</div>
</template>
<script>
import AiOkrTree from "dvcp-dv-ui/components/AiOkrTree/AiOkrTree"
export default {
name: 'AiGrid',
props: ['instance'],
components: {
VueOkrTree: AiOkrTree
},
data() {
return {
scale: 1,