web-component-gallery 2.0.21 → 2.0.23

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.
@@ -153,11 +153,11 @@ export default {
153
153
  },
154
154
  watch: {
155
155
  paginationParams(newValue) {
156
- this.pagination = { ...newValue }
156
+ this.pagination = { ...this.pagination, ...newValue }
157
157
  }
158
158
  },
159
159
  mounted() {
160
- this.pagination = { ...this.paginationParams }
160
+ this.pagination = { ...this.pagination, ...this.paginationParams }
161
161
  // 监听父级高度
162
162
  this.initResizeObserver()
163
163
  const scrollTimer = setTimeout(() => {
@@ -196,8 +196,8 @@ export default {
196
196
  16 - // 基础间距
197
197
  tableTitleHeight -
198
198
  headerHeight -
199
- 20 // 浮动空间缓冲
200
- /** 20为获取高度时抹掉的小数点后两位的浮动空间(存在叠加多个获取错误的情况) */
199
+ 24 // 浮动空间缓冲
200
+ /** 24为获取高度时抹掉的小数点后两位的浮动空间(存在叠加多个获取错误的情况) */
201
201
  },
202
202
  /** 根据高度判断dom元素是否加载 进行删除 */
203
203
  removeDomElement() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [