@lx-frontend/wrap-element-ui 1.0.7-beta.3 → 1.0.7-beta.4
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
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
<el-pagination
|
|
285
285
|
background
|
|
286
286
|
layout="sizes, prev, pager, next, jumper"
|
|
287
|
-
:page-sizes="
|
|
287
|
+
:page-sizes="pageSizes"
|
|
288
288
|
:page-size.sync="pageSize"
|
|
289
289
|
:pager-count="11"
|
|
290
290
|
:current-page="currentPage"
|
|
@@ -353,6 +353,7 @@ interface IProps {
|
|
|
353
353
|
localFilter?: boolean
|
|
354
354
|
/** 页码 */
|
|
355
355
|
currentPage: number
|
|
356
|
+
pageSizes?: number[]
|
|
356
357
|
}
|
|
357
358
|
|
|
358
359
|
interface IEmits {
|
|
@@ -398,6 +399,7 @@ const props = withDefaults(defineProps<IProps>(), {
|
|
|
398
399
|
localSort: false,
|
|
399
400
|
localFilter: false,
|
|
400
401
|
currentPage: 1,
|
|
402
|
+
pageSizes: () => [10, 15, 30, 60, 100],
|
|
401
403
|
});
|
|
402
404
|
|
|
403
405
|
// 同defineProps一样,不支持泛型参数从外部导入
|
|
@@ -593,6 +595,7 @@ defineExpose({
|
|
|
593
595
|
watch([
|
|
594
596
|
() => props.loading,
|
|
595
597
|
() => props.currentPage,
|
|
598
|
+
() => pageSize,
|
|
596
599
|
], ([loading]) => {
|
|
597
600
|
if (loading) return;
|
|
598
601
|
tableDomRef.value.$el.querySelector('.el-table__body-wrapper').scrollTop = 0;
|