askbot-dragon 88.1.1 → 88.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -163,9 +163,17 @@ export default {
|
|
|
163
163
|
newDom.forEach(doms => {
|
|
164
164
|
doms.style.backgroundColor = this.colors[0];
|
|
165
165
|
})
|
|
166
|
-
|
|
166
|
+
const bodyWrapper = this.$refs.table.$el.querySelector('.el-table__body-wrapper');
|
|
167
|
+
const targetRow = this.$refs.table.$el.querySelector('.setBgClass' + rowId); // 获取目标行元素
|
|
168
|
+
const targetHeight = targetRow.offsetTop; // 目标行的高度(从上到下的距离)
|
|
169
|
+
bodyWrapper.scroll({
|
|
170
|
+
top:targetHeight,
|
|
171
|
+
behavior:"smooth"
|
|
172
|
+
}); // 滚动到目标行位置
|
|
173
|
+
|
|
174
|
+
// newDom[0].scrollIntoView({ behavior: "smooth"})
|
|
167
175
|
}
|
|
168
|
-
},
|
|
176
|
+
},800)
|
|
169
177
|
});
|
|
170
178
|
},
|
|
171
179
|
handleCurrentChange(val){
|