Commit 0c33a54882aa2c67de50101644c48a58b9b746cc
1 parent
e95ed386
fix(pagination): 交互优化
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
build/Pagination/Pagination.html
1 | <ul ng-class="'ant-pagination'+(size==='small'?' mini':'')"> | 1 | <ul ng-class="'ant-pagination'+(size==='small'?' mini':'')"> |
2 | - <li class="ant-pagination-total-text" ng-if="showTotal()">{{handleShowTotal()}}</li> | 2 | + <li ng-if="showTotal()" class="ant-pagination-total-text">{{handleShowTotal()}}</li> |
3 | <li ng-class="'ant-pagination-prev'+(state.current===1?' ant-pagination-disabled':'')" ng-click="handlePrev()"> | 3 | <li ng-class="'ant-pagination-prev'+(state.current===1?' ant-pagination-disabled':'')" ng-click="handlePrev()"> |
4 | <button type="button" class="ant-pagination-item-link"> | 4 | <button type="button" class="ant-pagination-item-link"> |
5 | <es-icon type="LeftOutlined"></es-icon> | 5 | <es-icon type="LeftOutlined"></es-icon> |
src/Pagination/Pagination.html
1 | <ul className={"ant-pagination" + (size === "small" ? " mini" : "")}> | 1 | <ul className={"ant-pagination" + (size === "small" ? " mini" : "")}> |
2 | - <li className="ant-pagination-total-text" ng-if="showTotal()">{handleShowTotal()}</li> | 2 | + {showTotal() && <li className="ant-pagination-total-text">{handleShowTotal()}</li>} |
3 | <li className={"ant-pagination-prev" + (state.current === 1 ? " ant-pagination-disabled" : "")} onClick={this.handlePrev}> | 3 | <li className={"ant-pagination-prev" + (state.current === 1 ? " ant-pagination-disabled" : "")} onClick={this.handlePrev}> |
4 | <button type="button" class="ant-pagination-item-link"> | 4 | <button type="button" class="ant-pagination-item-link"> |
5 | <es-icon type="LeftOutlined"></es-icon> | 5 | <es-icon type="LeftOutlined"></es-icon> |
webpack.config.js
@@ -6,13 +6,13 @@ module.exports = { | @@ -6,13 +6,13 @@ module.exports = { | ||
6 | entry: "./build/index.js", | 6 | entry: "./build/index.js", |
7 | output: { | 7 | output: { |
8 | // bpms | 8 | // bpms |
9 | - // path: "/Users/shann/Project/essa/bpms/bpms-webapp/src/main/webapp/lib/ng-antd", | 9 | + path: "/Users/shann/Project/essa/bpms/bpms-webapp/src/main/webapp/lib/ng-antd", |
10 | // boss | 10 | // boss |
11 | // path: "/Users/shann/Project/essa/boss/trunk/vendor-lib/ng-antd", | 11 | // path: "/Users/shann/Project/essa/boss/trunk/vendor-lib/ng-antd", |
12 | // mvo | 12 | // mvo |
13 | // path: "/Users/shann/Project/essa/mvo/mvo-webapp/public/browser-vendor/ng-antd", | 13 | // path: "/Users/shann/Project/essa/mvo/mvo-webapp/public/browser-vendor/ng-antd", |
14 | // local | 14 | // local |
15 | - path: path.resolve(__dirname, "dist"), | 15 | + // path: path.resolve(__dirname, "dist"), |
16 | filename: "ng-antd.js", | 16 | filename: "ng-antd.js", |
17 | }, | 17 | }, |
18 | module: { | 18 | module: { |