Commit 8306380c authored by 田功镭's avatar 田功镭

*)modify ref bugs

parent 057bb8fe
# http://editorconfig.org # http://editorconfig.org
#这个文件用来配置当前整个项目的格式化参数
#需要安装EditorConfig for VS Code 插件
# A special property that should be specified at the top of the file outside of
# any sections. Set to true to stop .editor config file search on current file
root = true root = true
# Unix-style newlines with a newline ending every file # Unix-style newlines with a newline ending every file
[*] [*]
# Indentation style
# Possible values - tab, space
# 缩进风格
# 可选的值为- tab, space
indent_style = space indent_style = space
# Indentation size in single-spaced characters
# Possible values - an integer, tab
# 缩进几个tab ,空格
indent_size = 2 indent_size = 2
# Line ending file format # Line ending file format
# Possible values - lf, crlf, cr # Possible values - lf, crlf, cr
end_of_line = lf end_of_line = lf
# File character encoding
# Possible values - latin1, utf-8, utf-16be, utf-16le
# 设置编码 # 设置编码
charset = utf-8 charset = utf-8
# Denotes whether to trim whitespace at the end of lines
# Possible values - true, false
trim_trailing_whitespace = true trim_trailing_whitespace = true
# Denotes whether file should end with a newline
# Possible values - true, false
insert_final_newline = true insert_final_newline = true
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}] [{package.json,.travis.yml}]
indent_style = space indent_style = space
indent_size = 4 indent_size = 2
...@@ -35,24 +35,24 @@ ...@@ -35,24 +35,24 @@
}, },
"dependencies": { "dependencies": {
"amos-richtext": "^1.x", "amos-richtext": "^1.x",
"amos-jsplumb": "^3.0.2" "amos-jsplumb": "^3.x"
}, },
"devDependencies": { "devDependencies": {
"amos-build": "^4.x", "amos-build": "^5.x",
"amos-antd": "^2.0.22", "amos-antd": "^2.x",
"amos-devgrid": "^1.0.10", "amos-devgrid": "^1.x",
"amos-code-actuator": "^1.0.0", "amos-code-actuator": "^2.x",
"amos-dll": "^2.0.1", "amos-dll": "^3.x",
"ray-code-split": "^1.0.1", "ray-code-split": "^1.0.1",
"ray-mediaquery": "^1.0.0", "ray-mediaquery": "^1.0.0",
"ray-progress": "^1.0.0", "ray-progress": "^1.0.0",
"amos-security": "^2.0.17", "amos-security": "^3.x",
"amos-framework": "^1.1.9", "amos-framework": "^1.x",
"amos-pluggable": "^1.0.6", "amos-pluggable": "^1.x",
"amos-processor": "^1.2.17", "amos-processor": "^2.x",
"amos-tool": "^1.x", "amos-tool": "^1.x",
"amos-viz": "^1.x", "amos-viz": "^1.x",
"amos-websocket": "^1.0.3", "amos-websocket": "^1.x",
"mockjs": "^1.x", "mockjs": "^1.x",
"ws": "^4.0.0", "ws": "^4.0.0",
"react": "~16.3.2", "react": "~16.3.2",
......
...@@ -17,21 +17,6 @@ class CommonDeviceCell extends Component { ...@@ -17,21 +17,6 @@ class CommonDeviceCell extends Component {
}; };
} }
componentWillMount() {
}
componentDidMount(){
}
componentWillReceiveProps(nextProps) {
}
componentWillUnmount() {
}
getBodyBottomContent = () => { getBodyBottomContent = () => {
let { type,deviceNum,deviceInfo } = this.props; let { type,deviceNum,deviceInfo } = this.props;
......
...@@ -33,21 +33,6 @@ class CommonDeviceCell extends Component { ...@@ -33,21 +33,6 @@ class CommonDeviceCell extends Component {
visible: false visible: false
}; };
} }
componentWillMount() {
}
componentDidMount(){
}
componentWillReceiveProps(nextProps) {
}
componentWillUnmount() {
}
/** /**
* 进入规则库界面 * 进入规则库界面
......
...@@ -148,7 +148,7 @@ class TopoTree extends Component { ...@@ -148,7 +148,7 @@ class TopoTree extends Component {
} }
nodeRightClick = (e) => { nodeRightClick = (e) => {
this.refs.contextMenu.showMenu(e.event,e.node.props.eventKey); this.contextMenuRef.showMenu(e.event,e.node.props.eventKey);
} }
renderTreeNodes = (data) => { renderTreeNodes = (data) => {
...@@ -193,7 +193,7 @@ class TopoTree extends Component { ...@@ -193,7 +193,7 @@ class TopoTree extends Component {
addTreeData={this.addTreeData} addTreeData={this.addTreeData}
onDelClick={this.delView} onDelClick={this.delView}
currentNode={currentNode} currentNode={currentNode}
ref='contextMenu' ref={node => this.contextMenuRef = node}
/> />
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment