提交 b11de8e8 编写于 作者: RedPig97's avatar RedPig97

update: 表格分页组件更新

上级 0d83f007
......@@ -74,29 +74,7 @@ ${ctrl.render.code}
</el-table>
<#if ctrl.isEnablePagingBar()>
<row class='grid-pagination' v-show="items.length > 0">
<Dropdown class="grid-pagination__dropdown">
Show <span>{{limit}}</span>
<icon type="ios-arrow-down"></icon>
<template #list>
<DropdownMenu>
<DropdownItem v-for="(item, index) in pageSize" :key="index">{{item}} 条/页</DropdownItem>
</DropdownMenu>
</template>
</Dropdown>
<div class="grid-page-pre-pro">
<i class="el-icon-download"></i>
</div>
<page class='pull-right' @on-change="pageOnChange($event)"
@on-page-size-change="onPageSizeChange($event)"
:transfer="true" :total="totalrow" simple
size="small"
:current="curPage" :page-size="limit">
</page>
<div class="grid-page-next-pro">
<i class="el-icon-download"></i>
</div>
</row>
<app-grid-pagination :totalRow="totalrow" :curPage="curPage" :limit="limit" @page-change="handlePageChange" @page-size-change="handlePageSizeChange" />
</#if>
</i-form>
</div>
......@@ -152,14 +130,6 @@ ${gridColumn.getName()}
*/
public appUIService:${srfclassname('${appde.getCodeName()}')}UIService = new ${srfclassname('${appde.getCodeName()}')}UIService();
/**
* 分页数数组
*
* @type {Array<*>}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public pageSize= [10, 20, 30, 40, 50, 60, 70, 80, 90, 100];
/**
* 界面行为模型
*
......@@ -1928,7 +1898,7 @@ ${gridColumn.getName()}
* @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public pageOnChange($event: any): void {
public handlePageChange($event: any): void {
if (!$event) {
return;
}
......@@ -1946,7 +1916,7 @@ ${gridColumn.getName()}
* @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onPageSizeChange($event: any): void {
public handlePageSizeChange($event: any): void {
if (!$event) {
return;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册