@opentiny/vue-docs 2.2.11 → 2.2.12
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/demos/mobile/app/numeric/webdoc/numeric.js +0 -32
- package/demos/mobile/app/timeline/different-data.vue +5 -25
- package/demos/pc/app/anchor/change-composition-api.vue +1 -1
- package/demos/pc/app/anchor/change.vue +1 -1
- package/demos/pc/app/anchor/is-affix-composition-api.vue +1 -1
- package/demos/pc/app/anchor/is-affix.vue +1 -1
- package/demos/pc/app/anchor/webdoc/anchor.js +1 -1
- package/demos/pc/app/badge/webdoc/badge.js +11 -3
- package/demos/pc/app/calendar-view/calendar-disabled-day.spec.ts +1 -1
- package/demos/pc/app/collapse/webdoc/collapse.js +28 -15
- package/demos/pc/app/container/webdoc/container.js +9 -1
- package/demos/pc/app/date-picker/clear-composition-api.vue +4 -4
- package/demos/pc/app/date-picker/clear.vue +4 -4
- package/demos/pc/app/date-picker/date-range-composition-api.vue +32 -4
- package/demos/pc/app/date-picker/date-range.vue +32 -4
- package/demos/pc/app/date-picker/default-value-composition-api.vue +11 -3
- package/demos/pc/app/date-picker/default-value.vue +11 -3
- package/demos/pc/app/date-picker/disabled-composition-api.vue +4 -0
- package/demos/pc/app/date-picker/disabled.vue +4 -0
- package/demos/pc/app/date-picker/label-inside-composition-api.vue +4 -0
- package/demos/pc/app/date-picker/label-inside.vue +4 -0
- package/demos/pc/app/date-picker/size-composition-api.vue +23 -3
- package/demos/pc/app/date-picker/size.vue +24 -8
- package/demos/pc/app/date-picker/validate-event-composition-api.vue +8 -8
- package/demos/pc/app/date-picker/validate-event.vue +8 -8
- package/demos/pc/app/date-picker/webdoc/date-picker.js +6 -6
- package/demos/pc/app/dialog-box/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/basic-usage.spec.ts +5 -5
- package/demos/pc/app/dialog-box/basic-usage.vue +1 -1
- package/demos/pc/app/dialog-box/center-composition-api.vue +1 -3
- package/demos/pc/app/dialog-box/center.spec.ts +2 -2
- package/demos/pc/app/dialog-box/center.vue +1 -3
- package/demos/pc/app/dialog-box/close-on-click-modal-composition-api.vue +1 -3
- package/demos/pc/app/dialog-box/close-on-click-modal.spec.ts +1 -1
- package/demos/pc/app/dialog-box/close-on-click-modal.vue +1 -3
- package/demos/pc/app/dialog-box/close-on-press-escape-composition-api.vue +1 -3
- package/demos/pc/app/dialog-box/close-on-press-escape.spec.ts +1 -1
- package/demos/pc/app/dialog-box/close-on-press-escape.vue +1 -3
- package/demos/pc/app/dialog-box/custom-dialog-content-composition-api.vue +1 -3
- package/demos/pc/app/dialog-box/custom-dialog-content.spec.ts +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-content.vue +1 -3
- package/demos/pc/app/dialog-box/custom-dialog-footer-composition-api.vue +1 -3
- package/demos/pc/app/dialog-box/custom-dialog-footer.spec.ts +1 -1
- package/demos/pc/app/dialog-box/custom-dialog-footer.vue +1 -3
- package/demos/pc/app/dialog-box/custom-dialog-title-composition-api.vue +1 -3
- package/demos/pc/app/dialog-box/custom-dialog-title.spec.ts +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-title.vue +1 -3
- package/demos/pc/app/dialog-box/dialog-top-height.spec.ts +2 -2
- package/demos/pc/app/dialog-box/dialog-width.spec.ts +2 -2
- package/demos/pc/app/dialog-box/form-in-dialog-composition-api.vue +16 -1
- package/demos/pc/app/dialog-box/form-in-dialog.spec.ts +8 -2
- package/demos/pc/app/dialog-box/form-in-dialog.vue +17 -2
- package/demos/pc/app/grid/pager/pager-in-grid-composition-api.vue +427 -0
- package/demos/pc/app/grid/pager/pager-in-grid.spec.ts +16 -0
- package/demos/pc/app/grid/pager/pager-in-grid.vue +436 -0
- package/demos/pc/app/grid/webdoc/grid-pager.js +10 -0
- package/demos/pc/app/input/event-composition-api.vue +5 -5
- package/demos/pc/app/input/event.vue +5 -5
- package/demos/pc/app/input/webdoc/input.js +42 -42
- package/demos/pc/app/loading/custom-class-composition-api.vue +1 -1
- package/demos/pc/app/loading/custom-class.vue +1 -1
- package/demos/pc/app/loading/fullscreen-composition-api.vue +4 -4
- package/demos/pc/app/loading/fullscreen.spec.ts +2 -2
- package/demos/pc/app/loading/fullscreen.vue +3 -3
- package/demos/pc/app/loading/spinner-composition-api.vue +3 -3
- package/demos/pc/app/loading/spinner.spec.ts +1 -1
- package/demos/pc/app/loading/spinner.vue +2 -2
- package/demos/pc/app/loading/webdoc/loading.js +11 -4
- package/demos/pc/app/modal/basic-usage-composition-api.vue +3 -3
- package/demos/pc/app/modal/basic-usage.vue +1 -1
- package/demos/pc/app/modal/{grid-composition-api.vue → default-grid-composition-api.vue} +1 -1
- package/demos/pc/app/modal/{grid.spec.ts → default-grid.spec.ts} +2 -2
- package/demos/pc/app/modal/{grid.vue → default-grid.vue} +1 -1
- package/demos/pc/app/modal/duration-composition-api.vue +8 -6
- package/demos/pc/app/modal/duration.spec.ts +3 -3
- package/demos/pc/app/modal/duration.vue +8 -6
- package/demos/pc/app/modal/event-composition-api.vue +6 -6
- package/demos/pc/app/modal/event.vue +6 -6
- package/demos/pc/app/modal/footer-slot-composition-api.vue +2 -2
- package/demos/pc/app/modal/footer-slot.spec.ts +3 -3
- package/demos/pc/app/modal/footer-slot.vue +2 -2
- package/demos/pc/app/modal/id-composition-api.vue +1 -1
- package/demos/pc/app/modal/id.vue +1 -1
- package/demos/pc/app/modal/top-composition-api.vue +2 -2
- package/demos/pc/app/modal/top.vue +2 -2
- package/demos/pc/app/modal/type-composition-api.vue +2 -2
- package/demos/pc/app/modal/type.vue +2 -2
- package/demos/pc/app/modal/webdoc/modal.cn.md +1 -1
- package/demos/pc/app/modal/webdoc/modal.en.md +3 -3
- package/demos/pc/app/modal/webdoc/modal.js +13 -5
- package/demos/pc/app/modal/z-index-composition-api.vue +2 -2
- package/demos/pc/app/modal/z-index.spec.ts +1 -1
- package/demos/pc/app/modal/z-index.vue +2 -2
- package/demos/pc/app/notify/duration-composition-api.vue +3 -3
- package/demos/pc/app/notify/duration.vue +3 -3
- package/demos/pc/app/notify/notify-events-composition-api.vue +2 -2
- package/demos/pc/app/notify/notify-events.vue +2 -2
- package/demos/pc/app/notify/position-composition-api.vue +1 -1
- package/demos/pc/app/notify/position.spec.ts +1 -1
- package/demos/pc/app/notify/position.vue +1 -1
- package/demos/pc/app/notify/type-composition-api.vue +4 -4
- package/demos/pc/app/notify/type.spec.ts +4 -4
- package/demos/pc/app/notify/type.vue +4 -4
- package/demos/pc/app/notify/webdoc/notify.js +8 -8
- package/demos/pc/app/popconfirm/webdoc/popconfirm.cn.md +2 -2
- package/demos/pc/app/popconfirm/webdoc/popconfirm.js +19 -5
- package/demos/pc/app/progress/progress-type-circle-composition-api.vue +16 -11
- package/demos/pc/app/progress/progress-type-circle.spec.ts +46 -12
- package/demos/pc/app/progress/progress-type-circle.vue +18 -11
- package/demos/pc/app/progress/webdoc/progress.js +3 -12
- package/demos/pc/app/search/webdoc/search.js +1 -1
- package/demos/pc/app/slider/dynamic-disable-composition-api.vue +2 -2
- package/demos/pc/app/slider/dynamic-disable.vue +2 -2
- package/demos/pc/app/slider/range-select-composition-api.vue +2 -2
- package/demos/pc/app/slider/range-select.vue +2 -2
- package/demos/pc/app/slider/shortcut-operation-composition-api.vue +2 -2
- package/demos/pc/app/slider/shortcut-operation.vue +2 -2
- package/demos/pc/app/slider/{show-iput-composition-api.vue → show-input-composition-api.vue} +2 -2
- package/demos/pc/app/slider/{show-iput.vue → show-input.vue} +2 -2
- package/demos/pc/app/slider/show-iput.spec.ts +2 -3
- package/demos/pc/app/slider/slider-event-composition-api.vue +2 -2
- package/demos/pc/app/slider/slider-event.vue +2 -2
- package/demos/pc/app/slider/slider-slot-composition-api.vue +2 -2
- package/demos/pc/app/slider/slider-slot.vue +2 -2
- package/demos/pc/app/slider/webdoc/slider.js +17 -5
- package/demos/pc/app/time-picker/event.vue +3 -3
- package/demos/pc/app/time-picker/webdoc/time-picker.js +5 -6
- package/demos/pc/app/time-select/webdoc/time-select.js +5 -7
- package/demos/pc/app/tree/webdoc/tree.js +4 -11
- package/demos/pc/webdoc/changelog.md +186 -0
- package/package.json +5 -5
- package/playground/App.vue +3 -4
- package/demos/mobile/app/numeric/size.vue +0 -20
- package/demos/pc/app/progress/progress-type-dashboard-composition-api.vue +0 -35
- package/demos/pc/app/progress/progress-type-dashboard.spec.ts +0 -22
- package/demos/pc/app/progress/progress-type-dashboard.vue +0 -44
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<tiny-grid
|
|
4
|
+
ref="basicGrid"
|
|
5
|
+
seq-serial
|
|
6
|
+
:edit-config="{ trigger: 'click', mode: 'cell', showStatus: true }"
|
|
7
|
+
:data="tableData"
|
|
8
|
+
>
|
|
9
|
+
<tiny-grid-column type="index" width="60"></tiny-grid-column>
|
|
10
|
+
<tiny-grid-column type="selection" width="50"></tiny-grid-column>
|
|
11
|
+
<tiny-grid-column
|
|
12
|
+
field="name"
|
|
13
|
+
show-overflow
|
|
14
|
+
title="名称"
|
|
15
|
+
:editor="{ component: 'input', autoselect: true }"
|
|
16
|
+
></tiny-grid-column>
|
|
17
|
+
<tiny-grid-column field="area" title="区域" :editor="{ component: 'input' }"></tiny-grid-column>
|
|
18
|
+
<tiny-grid-column field="address" title="地址" :editor="{ component: 'input' }"></tiny-grid-column>
|
|
19
|
+
<tiny-grid-column
|
|
20
|
+
field="introduction"
|
|
21
|
+
title="公司简介"
|
|
22
|
+
:editor="{ component: 'input', autoselect: true }"
|
|
23
|
+
show-overflow
|
|
24
|
+
></tiny-grid-column>
|
|
25
|
+
</tiny-grid>
|
|
26
|
+
<tiny-pager
|
|
27
|
+
:current-page="custPager.currentPage"
|
|
28
|
+
:page-size="custPager.pageSize"
|
|
29
|
+
:total="custPager.total"
|
|
30
|
+
:page-sizes="[5, 10, 20, 50]"
|
|
31
|
+
@current-change="currentChange"
|
|
32
|
+
@size-change="sizeChange"
|
|
33
|
+
layout="total, prev, pager, next, jumper, sizes"
|
|
34
|
+
></tiny-pager>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
import { Grid, GridColumn, Pager } from '@opentiny/vue'
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
components: {
|
|
43
|
+
TinyGrid: Grid,
|
|
44
|
+
TinyGridColumn: GridColumn,
|
|
45
|
+
TinyPager: Pager
|
|
46
|
+
},
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
custPager: {
|
|
50
|
+
currentPage: 1,
|
|
51
|
+
pageSize: 5,
|
|
52
|
+
total: 0
|
|
53
|
+
},
|
|
54
|
+
tableData: [],
|
|
55
|
+
mockData: [
|
|
56
|
+
{
|
|
57
|
+
id: '1',
|
|
58
|
+
name: 'GFD科技YX公司',
|
|
59
|
+
userId: 421000103624183,
|
|
60
|
+
area: '华东区',
|
|
61
|
+
province: '福建省',
|
|
62
|
+
city: '福州',
|
|
63
|
+
contact: '许生',
|
|
64
|
+
telephone: '1234567890',
|
|
65
|
+
address: '福州',
|
|
66
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
67
|
+
employees: 800,
|
|
68
|
+
createdDate: '2014-04-30 00:56:00',
|
|
69
|
+
boole: false,
|
|
70
|
+
assets: '1000000',
|
|
71
|
+
rate: 0.9
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: '2',
|
|
75
|
+
name: 'WWW科技YX公司',
|
|
76
|
+
userId: 421000103624183,
|
|
77
|
+
area: '华南区',
|
|
78
|
+
province: '广东省',
|
|
79
|
+
city: '深圳',
|
|
80
|
+
contact: '朱生',
|
|
81
|
+
telephone: '1234567890',
|
|
82
|
+
address: '深圳福田区',
|
|
83
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
84
|
+
employees: 300,
|
|
85
|
+
createdDate: '2016-07-08 12:36:22',
|
|
86
|
+
boole: true,
|
|
87
|
+
assets: '1500000',
|
|
88
|
+
rate: 0.7
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: '3',
|
|
92
|
+
name: 'RFV有限责任公司',
|
|
93
|
+
userId: 441047913162396,
|
|
94
|
+
area: '华南区',
|
|
95
|
+
province: '广东省',
|
|
96
|
+
city: '中山',
|
|
97
|
+
contact: '秦生',
|
|
98
|
+
telephone: '1234567890',
|
|
99
|
+
address: '中山市',
|
|
100
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
101
|
+
employees: 1300,
|
|
102
|
+
createdDate: '2014-02-14 14:14:14',
|
|
103
|
+
boole: false,
|
|
104
|
+
assets: '1500000',
|
|
105
|
+
rate: 0.6
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: '4',
|
|
109
|
+
name: 'TGB科技YX公司',
|
|
110
|
+
userId: 702973890055088,
|
|
111
|
+
area: '华东区',
|
|
112
|
+
province: '福建省',
|
|
113
|
+
city: '龙岩',
|
|
114
|
+
contact: '周生',
|
|
115
|
+
telephone: '1234567890',
|
|
116
|
+
address: '龙岩',
|
|
117
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
118
|
+
employees: 360,
|
|
119
|
+
createdDate: '2013-01-13 13:13:13',
|
|
120
|
+
boole: true,
|
|
121
|
+
assets: '1200000',
|
|
122
|
+
rate: 0.5
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: '5',
|
|
126
|
+
name: 'YHN科技YX公司',
|
|
127
|
+
userId: 702973890055088,
|
|
128
|
+
area: '华南区',
|
|
129
|
+
province: '广东省',
|
|
130
|
+
city: '韶关',
|
|
131
|
+
contact: '郑生',
|
|
132
|
+
telephone: '1234567890',
|
|
133
|
+
address: '韶关',
|
|
134
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
135
|
+
employees: 810,
|
|
136
|
+
createdDate: '2012-12-12 12:12:12',
|
|
137
|
+
boole: true,
|
|
138
|
+
assets: '1500000',
|
|
139
|
+
rate: 0.6
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: '6',
|
|
143
|
+
name: 'WSX科技YX公司',
|
|
144
|
+
userId: 441047913162396,
|
|
145
|
+
area: '华中区',
|
|
146
|
+
province: '湖北省',
|
|
147
|
+
city: '黄冈',
|
|
148
|
+
contact: '陈生',
|
|
149
|
+
telephone: '1234567890',
|
|
150
|
+
address: '黄冈',
|
|
151
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
152
|
+
employees: 800,
|
|
153
|
+
createdDate: '2011-11-11 11:11:11',
|
|
154
|
+
boole: true,
|
|
155
|
+
assets: '1500000',
|
|
156
|
+
rate: 0.6
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: '7',
|
|
160
|
+
name: 'KBG物业YX公司',
|
|
161
|
+
userId: 421000103624183,
|
|
162
|
+
area: '华中区',
|
|
163
|
+
province: '湖北省',
|
|
164
|
+
city: '赤壁',
|
|
165
|
+
contact: '王二',
|
|
166
|
+
telephone: '1234567890',
|
|
167
|
+
address: '赤壁',
|
|
168
|
+
introduction:
|
|
169
|
+
'公司治理结构严格按现代企业制度设计,管理机构设置合理,制度完善,各部门分工明确、协作顺畅。拥有中、高级职称或大学本科以上学历的人员占职工总人数的80%以上,具有雄厚的资金实力和高度专业化的项目开发管理能力,是一支具有强烈的社会责任感和引领房地产业科技创新的地产新军。',
|
|
170
|
+
employees: 400,
|
|
171
|
+
createdDate: '2016-04-30 23:56:00',
|
|
172
|
+
boole: false,
|
|
173
|
+
assets: '2000000',
|
|
174
|
+
rate: 0.7
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: '8',
|
|
178
|
+
name: '深圳市福德宝网络技术YX公司',
|
|
179
|
+
userId: 421000103624183,
|
|
180
|
+
address: '厦门岛内',
|
|
181
|
+
area: '华东区',
|
|
182
|
+
assets: '2000000',
|
|
183
|
+
boole: true,
|
|
184
|
+
city: '厦门',
|
|
185
|
+
contact: '李四',
|
|
186
|
+
createdDate: '2016-06-03 13:53:25',
|
|
187
|
+
employees: 540,
|
|
188
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
189
|
+
province: '福建省',
|
|
190
|
+
rate: 0.6,
|
|
191
|
+
telephone: '1234567890'
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: '9',
|
|
195
|
+
name: 'UJM有限责任公司',
|
|
196
|
+
userId: 421000103624183,
|
|
197
|
+
area: '华南区',
|
|
198
|
+
province: '广西省',
|
|
199
|
+
city: '南宁',
|
|
200
|
+
contact: '段生',
|
|
201
|
+
telephone: '1234567890',
|
|
202
|
+
address: '南宁',
|
|
203
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
204
|
+
employees: 750,
|
|
205
|
+
createdDate: '2014-04-21 11:56:00',
|
|
206
|
+
boole: true,
|
|
207
|
+
assets: '1500000',
|
|
208
|
+
rate: 0.6
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: '10',
|
|
212
|
+
name: 'IKA有限责任公司',
|
|
213
|
+
userId: 421000103624183,
|
|
214
|
+
area: '华南区',
|
|
215
|
+
province: '广西省',
|
|
216
|
+
city: '北海',
|
|
217
|
+
contact: '谭生',
|
|
218
|
+
telephone: '1234567890',
|
|
219
|
+
address: '北海',
|
|
220
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
221
|
+
employees: 400,
|
|
222
|
+
createdDate: '2014-09-30 00:56:00',
|
|
223
|
+
boole: false,
|
|
224
|
+
assets: '110000',
|
|
225
|
+
rate: 0.11
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
id: '11',
|
|
229
|
+
name: 'TIG管理YX公司',
|
|
230
|
+
userId: 421000103624183,
|
|
231
|
+
area: '华南区',
|
|
232
|
+
province: '广西省',
|
|
233
|
+
city: '桂林',
|
|
234
|
+
contact: '陈生',
|
|
235
|
+
telephone: '1234567890',
|
|
236
|
+
address: '桂林',
|
|
237
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
238
|
+
employees: 900,
|
|
239
|
+
createdDate: '2014-11-30 00:56:00',
|
|
240
|
+
boole: true,
|
|
241
|
+
assets: '120000',
|
|
242
|
+
rate: 0.13
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: '12',
|
|
246
|
+
name: 'GGT科技YX公司',
|
|
247
|
+
userId: 441047913162396,
|
|
248
|
+
area: '西南区',
|
|
249
|
+
province: '云南省',
|
|
250
|
+
city: '昆明',
|
|
251
|
+
contact: '周生',
|
|
252
|
+
telephone: '1234567890',
|
|
253
|
+
address: '昆明',
|
|
254
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
255
|
+
employees: 500,
|
|
256
|
+
createdDate: '2014-03-20 02:50:00',
|
|
257
|
+
boole: false,
|
|
258
|
+
assets: '100000',
|
|
259
|
+
rate: 0.1
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: '13',
|
|
263
|
+
name: 'YYSYX公司',
|
|
264
|
+
userId: 441047913162396,
|
|
265
|
+
area: '西南区',
|
|
266
|
+
province: '云南省',
|
|
267
|
+
city: '西双版纳',
|
|
268
|
+
contact: '廖生',
|
|
269
|
+
telephone: '1234567890',
|
|
270
|
+
address: '西双版纳',
|
|
271
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
272
|
+
employees: 985,
|
|
273
|
+
createdDate: '2015-07-28 11:37:00',
|
|
274
|
+
boole: true,
|
|
275
|
+
assets: '120000',
|
|
276
|
+
rate: 0.12
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
id: '14',
|
|
280
|
+
name: 'VBN有限责任公司',
|
|
281
|
+
userId: 421000103624183,
|
|
282
|
+
area: '西南区',
|
|
283
|
+
province: '云南省',
|
|
284
|
+
city: '大理',
|
|
285
|
+
contact: '欧生',
|
|
286
|
+
telephone: '1234567890',
|
|
287
|
+
address: '大理',
|
|
288
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
289
|
+
employees: 598,
|
|
290
|
+
createdDate: '2014-04-30 00:56:00',
|
|
291
|
+
boole: false,
|
|
292
|
+
assets: '220000',
|
|
293
|
+
rate: 0.22
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
id: '15',
|
|
297
|
+
name: '深圳万众科技YX公司',
|
|
298
|
+
userId: 441047913162396,
|
|
299
|
+
area: '华中区',
|
|
300
|
+
province: '湖北省',
|
|
301
|
+
city: '武汉',
|
|
302
|
+
contact: '阮生',
|
|
303
|
+
telephone: '1234567890',
|
|
304
|
+
address: '武汉',
|
|
305
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
306
|
+
employees: 725,
|
|
307
|
+
createdDate: '2014-04-30 00:56:00',
|
|
308
|
+
boole: true,
|
|
309
|
+
assets: '2500000',
|
|
310
|
+
rate: 0.8
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
id: '16',
|
|
314
|
+
name: '深圳云创信息技术YX公司',
|
|
315
|
+
userId: 421000103624183,
|
|
316
|
+
area: '华中区',
|
|
317
|
+
province: '湖北省',
|
|
318
|
+
city: '十堰',
|
|
319
|
+
contact: '邓生',
|
|
320
|
+
telephone: '1234567890',
|
|
321
|
+
address: '十堰',
|
|
322
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
323
|
+
employees: 632,
|
|
324
|
+
createdDate: '2014-07-30 02:44:00',
|
|
325
|
+
boole: true,
|
|
326
|
+
assets: '3000000',
|
|
327
|
+
rate: 0.85
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
id: '17',
|
|
331
|
+
name: '深圳明乐餐饮管理YX公司',
|
|
332
|
+
userId: 441047913162396,
|
|
333
|
+
area: '华中区',
|
|
334
|
+
province: '湖北省',
|
|
335
|
+
city: '潜江',
|
|
336
|
+
contact: '罗生',
|
|
337
|
+
telephone: '1234567890',
|
|
338
|
+
address: '潜江',
|
|
339
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
340
|
+
employees: 246,
|
|
341
|
+
createdDate: '2013-04-30 00:56:00',
|
|
342
|
+
boole: false,
|
|
343
|
+
assets: '2000000',
|
|
344
|
+
rate: 0.7
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
id: '18',
|
|
348
|
+
name: '珠海忆兰居科技YX公司',
|
|
349
|
+
userId: 441047913162396,
|
|
350
|
+
area: '华南区',
|
|
351
|
+
province: '广东省',
|
|
352
|
+
city: '珠海',
|
|
353
|
+
contact: '黄生',
|
|
354
|
+
telephone: '1234567890',
|
|
355
|
+
address: '珠海香洲区',
|
|
356
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
357
|
+
employees: 592,
|
|
358
|
+
createdDate: '2014-05-30 01:00:00',
|
|
359
|
+
boole: false,
|
|
360
|
+
assets: '1800000',
|
|
361
|
+
rate: 0.66
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: '19',
|
|
365
|
+
name: '珠海万家医疗科技YX公司',
|
|
366
|
+
userId: 441047913162396,
|
|
367
|
+
area: '华南区',
|
|
368
|
+
province: '广东省',
|
|
369
|
+
city: '广州',
|
|
370
|
+
contact: '刘生',
|
|
371
|
+
telephone: '1234567890',
|
|
372
|
+
address: '广州天河区',
|
|
373
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
374
|
+
employees: 851,
|
|
375
|
+
createdDate: '2014-04-29 08:56:00',
|
|
376
|
+
boole: false,
|
|
377
|
+
assets: '100000',
|
|
378
|
+
rate: 0.1
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
id: '20',
|
|
382
|
+
name: '东莞亿聚礼品YX公司',
|
|
383
|
+
userId: 421000103624183,
|
|
384
|
+
area: '华中区',
|
|
385
|
+
province: '湖北省',
|
|
386
|
+
city: '襄阳',
|
|
387
|
+
contact: '范生',
|
|
388
|
+
telephone: '1234567890',
|
|
389
|
+
address: '襄阳',
|
|
390
|
+
introduction: '公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。',
|
|
391
|
+
employees: 394,
|
|
392
|
+
createdDate: '2014-04-28 10:56:00',
|
|
393
|
+
boole: true,
|
|
394
|
+
assets: '400000',
|
|
395
|
+
rate: 0.4
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
methods: {
|
|
401
|
+
currentChange(current) {
|
|
402
|
+
this.custPager.currentPage = current
|
|
403
|
+
this.fetchData()
|
|
404
|
+
},
|
|
405
|
+
sizeChange(size) {
|
|
406
|
+
this.custPager.pageSize = size
|
|
407
|
+
this.fetchData()
|
|
408
|
+
},
|
|
409
|
+
fetchData() {
|
|
410
|
+
this.getData({ page: this.custPager }).then(({ result, page }) => {
|
|
411
|
+
this.tableData = result
|
|
412
|
+
this.custPager.total = page.totalRows
|
|
413
|
+
})
|
|
414
|
+
},
|
|
415
|
+
getData({ page }) {
|
|
416
|
+
return new Promise((resolve) => {
|
|
417
|
+
// 此处为用户自定义的服务端分页,排序,过滤服务
|
|
418
|
+
|
|
419
|
+
setTimeout(() => {
|
|
420
|
+
const startIndex = (page.currentPage - 1) * page.pageSize
|
|
421
|
+
const allData = this.mockData
|
|
422
|
+
const data = {
|
|
423
|
+
result: allData.slice(startIndex, startIndex + page.pageSize),
|
|
424
|
+
page: Object.assign({}, page, { totalRows: allData.length })
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
resolve({ result: data.result, page: data.page })
|
|
428
|
+
}, 500)
|
|
429
|
+
})
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
created() {
|
|
433
|
+
this.fetchData()
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
</script>
|
|
@@ -39,6 +39,16 @@ export default {
|
|
|
39
39
|
'en-US': ''
|
|
40
40
|
},
|
|
41
41
|
'codeFiles': ['pager/show-save-msg.vue']
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
'demoId': 'pager-in-grid',
|
|
45
|
+
'name': { 'zh-CN': '自定义分页', 'en-US': '' },
|
|
46
|
+
'desc': {
|
|
47
|
+
'zh-CN':
|
|
48
|
+
'<p>表格内置分页组件需要和 <code>fetch-data</code> 属性配合使用,若使用 <code>data</code> 设置表格数据源,则需要使用自动义分页。</p>\n',
|
|
49
|
+
'en-US': ''
|
|
50
|
+
},
|
|
51
|
+
'codeFiles': ['pager/pager-in-grid.vue']
|
|
42
52
|
}
|
|
43
53
|
],
|
|
44
54
|
apis: [{ 'name': 'grid-pager', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
|
|
@@ -15,23 +15,23 @@ const focusBlur = ref('')
|
|
|
15
15
|
const clearValue = ref('clear')
|
|
16
16
|
|
|
17
17
|
function onChange() {
|
|
18
|
-
Modal.message('change')
|
|
18
|
+
Modal.message({ message: 'change 事件触发了', status: 'info' })
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function onInput() {
|
|
22
|
-
Modal.message('input')
|
|
22
|
+
Modal.message({ message: 'input 事件触发了', status: 'info' })
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
function onBlur() {
|
|
26
|
-
Modal.message('blur')
|
|
26
|
+
Modal.message({ message: 'blur 事件触发了', status: 'info' })
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function onFocus() {
|
|
30
|
-
Modal.message('focus')
|
|
30
|
+
Modal.message({ message: 'focus 事件触发了', status: 'info' })
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
function onClear() {
|
|
34
|
-
Modal.message('clear')
|
|
34
|
+
Modal.message({ message: 'clear 事件触发了', status: 'info' })
|
|
35
35
|
}
|
|
36
36
|
</script>
|
|
37
37
|
|
|
@@ -22,19 +22,19 @@ export default {
|
|
|
22
22
|
},
|
|
23
23
|
methods: {
|
|
24
24
|
onChange() {
|
|
25
|
-
Modal.message('change')
|
|
25
|
+
Modal.message({ message: 'change 事件触发了', status: 'info' })
|
|
26
26
|
},
|
|
27
27
|
onInput() {
|
|
28
|
-
Modal.message('input')
|
|
28
|
+
Modal.message({ message: 'input 事件触发了', status: 'info' })
|
|
29
29
|
},
|
|
30
30
|
onBlur() {
|
|
31
|
-
Modal.message('blur')
|
|
31
|
+
Modal.message({ message: 'blur 事件触发了', status: 'info' })
|
|
32
32
|
},
|
|
33
33
|
onFocus() {
|
|
34
|
-
Modal.message('focus')
|
|
34
|
+
Modal.message({ message: 'focus 事件触发了', status: 'info' })
|
|
35
35
|
},
|
|
36
36
|
onClear() {
|
|
37
|
-
Modal.message('clear')
|
|
37
|
+
Modal.message({ message: 'clear 事件触发了', status: 'info' })
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|