我有一个代码,该代码在节的末尾插入一行,然后从上方复制公式。
我唯一的问题是我不确定如何将诸如“ iRow”之类的变量定义为动态范围。
下面的代码是仅复制上方行中公式的部分。如果我将iRow设置为固定数字,则整个代码都有效。但是,我需要“ iRow”变量来接受可以在B列中找到值“ 2”的任何行号。
我尝试了诸如Columns(“ B:B”)。Find(What:= 2)之类的事情。
@DragSource("key",{
beginDrag(props,monitor,component) {
// component.node === undefined ¯\_(ツ)_/¯
}
},...)
class MySourceComponent extends Component {
render() {
return this.props.connectDragSource(
<div ref={node => this.node = node}>The size of this node should be measured and passed into drag target</div>
)
}
}