表单高级
组合式函数
通过 组合式函数 函数,监听任意一个超级表单,然后就通过函数来控制该表单。
UseForm 操作
vue
<script setup lang="tsx" name="UseProForm">
import type { ComponentSize, FormItemProp, InputInstance } from "element-plus";
import type { FormColumn, ElFormProps } from "@/components/pro/form";
import { ref, reactive } from "vue";
import { ElRadio, ElMessageBox, ElMessage } from "element-plus";
import { ProForm, useProForm } from "@/components/pro/form";
const { formRegister, formMethods } = useProForm();
const {
setProps,
delColumn,
addColumn,
setValues,
setColumn,
getElInstance,
getElFormItemInstance,
getElFormInstance,
getFormModel,
} = formMethods;
const model = ref<Record<string, any>>({});
// 表单整体配置项
const elFormProps: ElFormProps = {
inline: false,
labelPosition: "right",
labelWidth: 120,
disabled: false,
labelSuffix: " :",
};
// 表单列配置项 (formItemProps 代表 item 配置项,attrs 代表 输入、选择框 配置项)
const columns = reactive<FormColumn[]>([
{
label: "使用 ProForm",
prop: "input",
el: "ElDivider",
},
{
formItemProps: { required: true },
label: "输入框",
prop: "input",
el: "ElInput",
},
{
formItemProps: { required: true },
label: "选择器",
prop: "select",
el: "el-select",
defaultValue: "1",
options: [
{
label: "option1",
value: "1",
},
{
label: "option2",
value: "2",
},
],
},
{
prop: "radio",
label: "单选框",
el: "el-radio-group",
defaultValue: "1",
elSlots: {
default: ({ options }) => {
return options.map(option => {
return (
<ElRadio disabled={option.disabled} label={option.label} value={option.value} key={option.value}></ElRadio>
);
});
},
},
options: [
{
label: "option-1",
value: "1",
},
{
label: "option-2",
value: "2",
},
],
},
{
prop: "checkbox",
label: "多选框",
el: "el-checkbox-group",
defaultValue: ["2"],
options: [
{ label: "option-1", value: "1" },
{ label: "option-2", value: "2" },
{ label: "option-3", value: "3" },
],
},
{
label: "日期选择器",
prop: "datePicker",
el: "el-date-picker",
elProps: { type: "date" },
},
{
label: "时间选择器",
prop: "timeSelect",
el: "el-time-select",
},
{
label: "树形选择",
prop: "treeSelect",
el: "el-tree-select",
options: () => getTreeSelectData(), // 模拟远程获取数据
},
{
label: "上传",
prop: "upload",
el: "el-upload",
defaultValue: [
{
name: "element-plus-logo.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
{
name: "element-plus-logo2.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
],
elProps: {
limit: 3,
action: "https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",
multiple: true,
onPreview: uploadFile => {
console.log(uploadFile);
},
onRemove: file => {
console.log(file);
},
beforeRemove: uploadFile => {
return ElMessageBox.confirm(`Cancel the transfer of ${uploadFile.name} ?`).then(
() => true,
() => false
);
},
onExceed: (files, uploadFiles) => {
ElMessage.warning(
`The limit is 3, you selected ${files.length} files this time, add up to ${
files.length + uploadFiles.length
} totally`
);
},
},
elSlots: {
default: () => <el-button type="primary">Click to upload</el-button>,
tip: () => <div class="el-upload__tip">jpg/png files with a size less than 500KB.</div>,
},
},
]);
const changeCol = (col: boolean) => {
setProps({
flexLayout: col,
});
};
const changeLabelWidth = (width: number | string) => {
setProps({
elFormProps: { labelWidth: width },
});
};
const changeSize = (size: ComponentSize) => {
setProps({
elFormProps: { size },
});
};
const changeDisabled = (bool: boolean) => {
setProps({
elFormProps: { disabled: bool },
});
};
const changeColumn = (del: boolean) => {
if (del) {
delColumn("select");
} else if (!del && columns[1].prop !== "select") {
addColumn(
{
formItemProps: { required: true },
label: "选择器",
prop: "select",
el: "el-select",
defaultValue: "1",
options: [
{ label: "option1", value: "1" },
{ label: "option2", value: "2" },
],
},
1
);
}
};
const setValue = async (reset: boolean) => {
const elFormInstance = await getElFormInstance();
if (reset) {
elFormInstance?.resetFields();
} else {
setValues({
input: "输入框",
select: "2",
radio: "2",
checkbox: ["1", "3"],
datePicker: "2022-01-27",
timeSelect: "17:00",
field8: [
{
name: "element-plus-logo.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
{
name: "element-plus-logo2.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
],
});
const formData = await getFormModel();
console.log(formData);
}
};
const index = ref(7);
const setSelectLabel = () => {
setColumn([
{
prop: "select",
field: "label",
value: `选择器 ${index.value}`,
},
{
prop: "select",
field: "options",
value: [
{ label: "option-1", value: "1" },
{ label: "option-2", value: "2" },
{ label: "option-3", value: "3" },
],
},
]);
index.value++;
};
const addFormItem = () => {
if (index.value % 2 === 0) {
addColumn({
prop: `input${index.value}`,
label: `输入框 ${index.value}`,
el: "el-input",
});
} else {
addColumn(
{
prop: `input${index.value}`,
label: `输入框 ${index.value}`,
el: "el-input",
},
index.value
);
}
index.value++;
};
const formValidation = async () => {
const elFormInstance = await getElFormInstance();
elFormInstance?.validate(isValid => {
console.log(isValid);
});
};
const verifyReset = async () => {
const elFormInstance = await getElFormInstance();
elFormInstance?.resetFields();
};
const inoutFocus = async () => {
const inputEl = (await getElInstance("input")) as InputInstance;
inputEl?.focus();
};
const inoutValidation = async () => {
const formItemProps = await getElFormItemInstance("input");
const inputEl = (await getElInstance("input")) as InputInstance;
inputEl?.focus();
formItemProps?.validate("focus", (val: boolean) => {
console.log(val);
});
};
const formValidate = (prop: FormItemProp, isValid: boolean, message: string) => {
console.log(prop, isValid, message);
};
const treeSelectData = [
{
value: "1",
label: "Level one 1",
children: [
{
value: "1-1",
label: "Level two 1-1",
children: [{ value: "1-1-1", label: "Level three 1-1-1" }],
},
],
},
{
value: "2",
label: "Level one 2",
children: [
{
value: "2-1",
label: "Level two 2-1",
children: [{ value: "2-1-1", label: "Level three 2-1-1" }],
},
{
value: "2-2",
label: "Level two 2-2",
children: [{ value: "2-2-1", label: "Level three 2-2-1" }],
},
],
},
{
value: "3",
label: "Level one 3",
children: [
{
value: "3-1",
label: "Level two 3-1",
children: [{ value: "3-1-1", label: "Level three 3-1-1" }],
},
{
value: "3-2",
label: "Level two 3-2",
children: [{ value: "3-2-1", label: "Level three 3-2-1" }],
},
],
},
];
// 模拟远程加载
const getTreeSelectData = (): Promise<typeof treeSelectData> => {
return new Promise(resolve => {
setTimeout(() => {
resolve(treeSelectData);
}, 3000);
});
};
</script>
<template>
<el-space fill>
<el-card shadow="never" header="UseForm 操作">
<el-space wrap>
<el-button @click="changeCol(false)">禁用栅格</el-button>
<el-button @click="changeCol(true)">使用栅格</el-button>
<el-button @click="changeLabelWidth(150)">更改 labelWidth</el-button>
<el-button @click="changeLabelWidth('auto')">还原 labelWidth</el-button>
<el-button @click="changeSize('large')">更改 size</el-button>
<el-button @click="changeSize('default')">还原 size</el-button>
<el-button @click="changeDisabled(true)">禁用表单</el-button>
<el-button @click="changeDisabled(false)">还原表单</el-button>
<el-button @click="changeColumn(true)">删除选择器</el-button>
<el-button @click="changeColumn(false)">添加选择器</el-button>
<el-button @click="setValue(false)">设置表单值</el-button>
<el-button @click="setValue(true)">还原表单值</el-button>
<el-button @click="setSelectLabel">设置选择器 label</el-button>
<el-button @click="addFormItem">添加子项</el-button>
<el-button @click="formValidation">表单验证</el-button>
<el-button @click="verifyReset">表单重置</el-button>
<el-button @click="inoutFocus">输入框聚焦</el-button>
<el-button @click="inoutValidation">输入框表单验证</el-button>
</el-space>
</el-card>
<el-card>
<ProForm
:elFormProps="elFormProps"
:columns
v-model="model"
@register="formRegister"
@validate="formValidate"
:col-props="{ span: 12 }"
/>
</el-card>
</el-space>
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
隐藏源代码
函数式组件渲染
通过 createFormComponent 函数式创建 ProForm 组件。
vue
<script setup lang="tsx" name="CreateProForm">
import type { FormItemProp } from "element-plus";
import type { FormColumn, ElFormProps } from "@/components/pro/form";
import { ref, reactive } from "vue";
import { ElButton, ElRadio, ElMessageBox, ElMessage } from "element-plus";
import { useProForm } from "@/components/pro/form";
const model = ref<Record<string, any>>({});
const {
createMethods: { createFormComponent },
} = useProForm();
/**
* context 里有 slots 和 attrs,如果元素里有 slots 和 attrs,则必传
*/
const RenderProForm = (_: any, context: Record<string, any>) => {
return createFormComponent(
{
columns: columns as FormColumn[],
modelValue: model.value,
elFormProps,
onValidate: formValidate,
},
context
);
};
const formValidate = (prop: FormItemProp, isValid: boolean, message: string) => {
console.log(prop, isValid, message);
};
// 表单整体配置项
const elFormProps: ElFormProps = {
inline: false,
labelPosition: "right",
labelWidth: 120,
disabled: false,
labelSuffix: " :",
};
const columns = reactive<FormColumn[]>([
{
label: "使用 ProForm",
prop: "input",
el: "ElDivider",
},
{
formItemProps: { required: true },
label: "输入框",
prop: "input",
el: "ElInput",
},
{
formItemProps: { required: true },
label: "选择器",
prop: "select",
el: "el-select",
defaultValue: "1",
options: [
{
label: "option1",
value: "1",
},
{
label: "option2",
value: "2",
},
],
},
{
prop: "radio",
label: "单选框",
el: "el-radio-group",
defaultValue: "1",
elSlots: {
default: ({ options }) => {
return options.map(option => {
return (
<ElRadio disabled={option.disabled} label={option.label} value={option.value} key={option.value}></ElRadio>
);
});
},
},
options: [
{ label: "option-1", value: "1" },
{ label: "option-2", value: "2" },
],
},
{
prop: "checkbox",
label: "多选框",
el: "el-checkbox-group",
defaultValue: ["2"],
options: [
{ label: "option-1", value: "1" },
{ label: "option-2", value: "2" },
{ label: "option-3", value: "3" },
],
},
{
label: "日期选择器",
prop: "datePicker",
el: "el-date-picker",
elProps: { type: "date" },
},
{
label: "时间选择器",
prop: "timeSelect",
el: "el-time-select",
},
{
label: "树形选择",
prop: "treeSelect",
el: "el-tree-select",
options: () => getTreeSelectData(), // 模拟远程获取数据
},
{
label: "上传",
prop: "upload",
el: "el-upload",
defaultValue: [
{
name: "element-plus-logo.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
{
name: "element-plus-logo2.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
],
elProps: {
limit: 3,
action: "https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",
multiple: true,
onPreview: uploadFile => {
console.log(uploadFile);
},
onRemove: file => {
console.log(file);
},
beforeRemove: uploadFile => {
return ElMessageBox.confirm(`Cancel the transfer of ${uploadFile.name} ?`).then(
() => true,
() => false
);
},
onExceed: (files, uploadFiles) => {
ElMessage.warning(
`The limit is 3, you selected ${files.length} files this time, add up to ${
files.length + uploadFiles.length
} totally`
);
},
},
elSlots: {
default: () => <ElButton type="primary">Click to upload</ElButton>,
tip: () => <div class="el-upload__tip">jpg/png files with a size less than 500KB.</div>,
},
},
]);
const treeSelectData = [
{
value: "1",
label: "Level one 1",
children: [
{
value: "1-1",
label: "Level two 1-1",
children: [{ value: "1-1-1", label: "Level three 1-1-1" }],
},
],
},
{
value: "2",
label: "Level one 2",
children: [
{
value: "2-1",
label: "Level two 2-1",
children: [{ value: "2-1-1", label: "Level three 2-1-1" }],
},
{
value: "2-2",
label: "Level two 2-2",
children: [{ value: "2-2-1", label: "Level three 2-2-1" }],
},
],
},
{
value: "3",
label: "Level one 3",
children: [
{
value: "3-1",
label: "Level two 3-1",
children: [{ value: "3-1-1", label: "Level three 3-1-1" }],
},
{
value: "3-2",
label: "Level two 3-2",
children: [{ value: "3-2-1", label: "Level three 3-2-1" }],
},
],
},
];
// 模拟远程加载
const getTreeSelectData = () => {
return new Promise(resolve => {
setTimeout(() => {
resolve(treeSelectData);
}, 3000);
});
};
</script>
<template>
<RenderProForm />
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
隐藏源代码
函数式渲染
通过 createForm 函数式动态渲染 ProForm 组件到指定元素。
该函数会返回 useProForm 函数的返回值,如果你不清楚什么是 useProForm,请查看 组合式函数。
vue
<script setup lang="tsx" name="CreateProForm">
import type { FormItemProp } from "element-plus";
import type { FormColumn, ElFormProps } from "@/components/pro/form";
import { ref, reactive, onMounted } from "vue";
import { ElButton, ElRadio, ElMessageBox, ElMessage } from "element-plus";
import { useProForm } from "@/components/pro/form";
const model = ref<Record<string, any>>({});
const {
createMethods: { createForm },
} = useProForm();
onMounted(() => {
createForm("proFormInstance", {
columns: columns as FormColumn[],
modelValue: model.value,
elFormProps,
onValidate: formValidate,
});
});
const formValidate = (prop: FormItemProp, isValid: boolean, message: string) => {
console.log(prop, isValid, message);
};
// 表单整体配置项
const elFormProps: ElFormProps = {
inline: false,
labelPosition: "right",
labelWidth: 120,
disabled: false,
labelSuffix: " :",
};
const columns = reactive<FormColumn[]>([
{
label: "使用 ProForm",
prop: "input",
el: "ElDivider",
},
{
formItemProps: { required: true },
label: "输入框",
prop: "input",
el: "ElInput",
},
{
formItemProps: { required: true },
label: "选择器",
prop: "select",
el: "el-select",
defaultValue: "1",
options: [
{ label: "option1", value: "1" },
{ label: "option2", value: "2" },
],
},
{
prop: "radio",
label: "单选框",
el: "el-radio-group",
defaultValue: "1",
elSlots: {
default: ({ options }) => {
return options.map(option => {
return (
<ElRadio disabled={option.disabled} label={option.label} value={option.value} key={option.value}></ElRadio>
);
});
},
},
options: [
{
label: "option-1",
value: "1",
},
{
label: "option-2",
value: "2",
},
],
},
{
prop: "checkbox",
label: "多选框",
el: "el-checkbox-group",
defaultValue: ["2"],
options: [
{ label: "option-1", value: "1" },
{ label: "option-2", value: "2" },
{ label: "option-3", value: "3" },
],
},
{
label: "日期选择器",
prop: "datePicker",
el: "el-date-picker",
elProps: { type: "date" },
},
{
label: "时间选择器",
prop: "timeSelect",
el: "el-time-select",
},
{
label: "树形选择",
prop: "treeSelect",
el: "el-tree-select",
options: () => getTreeSelectData(), // 模拟远程获取数据
},
{
label: "上传",
prop: "upload",
el: "el-upload",
defaultValue: [
{
name: "element-plus-logo.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
{
name: "element-plus-logo2.svg",
url: "https://element-plus.org/images/element-plus-logo.svg",
},
],
elProps: {
limit: 3,
action: "https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",
multiple: true,
onPreview: uploadFile => {
console.log(uploadFile);
},
onRemove: file => {
console.log(file);
},
beforeRemove: uploadFile => {
return ElMessageBox.confirm(`Cancel the transfer of ${uploadFile.name} ?`).then(
() => true,
() => false
);
},
onExceed: (files, uploadFiles) => {
ElMessage.warning(
`The limit is 3, you selected ${files.length} files this time, add up to ${
files.length + uploadFiles.length
} totally`
);
},
},
elSlots: {
default: () => <ElButton type="primary">Click to upload</ElButton>,
tip: () => <div class="el-upload__tip">jpg/png files with a size less than 500KB.</div>,
},
},
]);
const treeSelectData = [
{
value: "1",
label: "Level one 1",
children: [
{
value: "1-1",
label: "Level two 1-1",
children: [{ value: "1-1-1", label: "Level three 1-1-1" }],
},
],
},
{
value: "2",
label: "Level one 2",
children: [
{
value: "2-1",
label: "Level two 2-1",
children: [{ value: "2-1-1", label: "Level three 2-1-1" }],
},
{
value: "2-2",
label: "Level two 2-2",
children: [{ value: "2-2-1", label: "Level three 2-2-1" }],
},
],
},
{
value: "3",
label: "Level one 3",
children: [
{
value: "3-1",
label: "Level two 3-1",
children: [{ value: "3-1-1", label: "Level three 3-1-1" }],
},
{
value: "3-2",
label: "Level two 3-2",
children: [
{
value: "3-2-1",
label: "Level three 3-2-1",
},
],
},
],
},
];
// 模拟远程加载
const getTreeSelectData = () => {
return new Promise(resolve => {
setTimeout(() => {
resolve(treeSelectData);
}, 3000);
});
};
</script>
<template>
<div ref="proFormInstance"></div>
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
隐藏源代码