...
|
...
|
@@ -27,10 +27,10 @@ export default { |
|
|
return {
|
|
|
iframeSrc:'',
|
|
|
activeName:'bos',
|
|
|
defaultProps : {
|
|
|
/* defaultProps : {
|
|
|
children: 'child',
|
|
|
label: 'typeName',//resTypeName
|
|
|
},
|
|
|
},*/
|
|
|
treeData: [], // 所有的树结点
|
|
|
checkedKeys: [], // 当前选中的keys
|
|
|
|
...
|
...
|
@@ -41,6 +41,13 @@ export default { |
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
//设置紫薯节点及节点标签
|
|
|
defaultProps(){
|
|
|
return{
|
|
|
children:this.optionsSetup.propsChildren?this.optionsSetup.propsChildren:'children',
|
|
|
label:this.optionsSetup.propsLabel?this.optionsSetup.propsLabel:'label'
|
|
|
}
|
|
|
},
|
|
|
styleObj() {
|
|
|
return {
|
|
|
position: this.ispreview ? "absolute" : "static",
|
...
|
...
|
@@ -58,6 +65,7 @@ export default { |
|
|
'box-shadow':this.optionsSetup.isShadow?'0px 3px 12px '+this.optionsSetup.borderColor:'none',
|
|
|
'max-height':this.optionsStyle.height + "px",
|
|
|
'overflow':'auto',
|
|
|
'width':this.optionsSetup.isFrame?'20%':'100%'
|
|
|
}
|
|
|
},
|
|
|
//文字样式设置
|
...
|
...
|
@@ -220,8 +228,8 @@ export default { |
|
|
data.then(res => {
|
|
|
if(res[0] && res[0].data){
|
|
|
this.treeData=res[0].data;
|
|
|
this.setSrc(this.treeData[0])
|
|
|
|
|
|
this.handleNodeClick(this.treeData[0])
|
|
|
// this.setSrc(this.treeData[0])
|
|
|
}
|
|
|
});
|
|
|
},
|
...
|
...
|
|