upload 附件上传
... 2023-5-25 Less than 1 minute
# upload 附件上传
值:[]
值:
值:[]
<el-row :span="24">
<el-col :span="6">
值:{{form}}<br />
<avue-upload
:action="action"
:props-http="propsHttp"
type="upload"
v-model="form"
></avue-upload>
</el-col>
<el-col :span="24"></el-col>
<el-col :span="6">
值:{{form1}}<br />
<avue-upload
:action="action"
:props-http="propsHttp"
type="upload"
v-model="form1"
list-type="picture-img"
></avue-upload>
</el-col>
<el-col :span="24"></el-col>
<el-col :span="6">
值:{{form2}}<br />
<avue-upload
:action="action"
:props-http="propsHttp"
type="upload"
v-model="form2"
list-type="picture-card"
></avue-upload>
</el-col>
</el-row>
<script>
export default {
data() {
return {
action: "https://api.avuejs.com/imgupload",
propsHttp: {
url: "url",
name: "name",
res: "data",
},
form: [],
form1: "",
form2: [],
};
},
};
</script>
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
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
Expand Copy Copy