vue2-client 1.5.8 → 1.5.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -21,7 +21,8 @@ export default {
21
21
  default: 'ant-pro-ellipsis'
22
22
  },
23
23
  tooltip: {
24
- type: Boolean
24
+ type: Boolean,
25
+ default: false
25
26
  },
26
27
  length: {
27
28
  type: [String, Number],
@@ -28,7 +28,7 @@
28
28
  <a-list class="tab-pane"></a-list>
29
29
  </a-tab-pane>
30
30
  <a-tab-pane key="3" tab="待办">
31
- <a-list :data-source="backlog" class="tab-pane" item-layout="horizontal">
31
+ <a-list :data-source="backlog" class="tab-pane" item-layout="horizontal" :pagination="pagination">
32
32
  <a-list-item slot="renderItem" slot-scope="item">
33
33
  <a v-if="item.type==='制度待确认'" slot="actions" @click="confirm_institution(item)">查看</a>
34
34
  <a-list-item-meta :description="item.description" :title="item.title"/>
@@ -63,6 +63,12 @@ export default {
63
63
  institution: undefined,
64
64
  affirmInstitution: undefined,
65
65
  backlog: [],
66
+ pagination: {
67
+ onChange: page => {
68
+ console.log(page)
69
+ },
70
+ pageSize: 5
71
+ },
66
72
  activeKey: '1'
67
73
  }
68
74
  },
@@ -88,7 +94,7 @@ export default {
88
94
  key,
89
95
  message: `您有${this.backlog.length}条待办需要确认`,
90
96
  top: '50px',
91
- description: <ellipsis length="200" tooltip>{ this.backlog.map((item, index) => index + 1 + '、' + item.title).join(';') }</ellipsis>,
97
+ description: <ellipsis length="200">{ this.backlog.map((item, index) => index + 1 + '、' + item.title).join(';') }</ellipsis>,
92
98
  icon: <a-icon type="container" style="color: #f5222d"/>,
93
99
  btn: h => {
94
100
  return h(