diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 56f5a6b..929a684 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -96,7 +96,8 @@ export default { handleCurrentChange(val) { this.$emit('pagination', { page: val, limit: this.pageSize }) if (this.autoScroll) { - scrollTo(0, 800) + //滚动效果 + // scrollTo(0, 800) } } } diff --git a/src/utils/DefaultCheck.js b/src/utils/DefaultCheck.js new file mode 100644 index 0000000..5eec157 --- /dev/null +++ b/src/utils/DefaultCheck.js @@ -0,0 +1,9 @@ +export function DefaultCheck (line,dataList){ + this.$nextTick(() => { + if (line === null) { + this.$refs.refDom.setCurrentRow(dataList[0]); + } else { + this.$refs.refDom.setCurrentRow(line,true); + } + }); +} \ No newline at end of file