diff --git a/packages/scheme/index.vue b/packages/scheme/index.vue index a658905..8abf529 100644 --- a/packages/scheme/index.vue +++ b/packages/scheme/index.vue @@ -398,8 +398,17 @@ export default { methods: { // 向上反馈组件值 emit() { - this.$emit("input", this.tableData); - this.$emit("change", this.tableData); + if (!(this.option.searchAPI || _$http && this.option.url)) { + const resultData = this.tableDataStatic; + const begin = (this.currentPage - 1) * this.pageSize; + const end = this.currentPage * this.pageSize; + const value = resultData.slice(begin, end); + this.$emit("input", value); + this.$emit("change", value); + } else { + this.$emit("input", this.tableData); + this.$emit("change", this.tableData); + } }, // 动态改变表格列 dynamicChange() { -- libgit2 0.21.0