update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import XImage from "../XImage/Index.vue";
|
||||
import Api from "../../api/index.js";
|
||||
|
||||
const {size, api, multiple} = defineProps({
|
||||
const {size, api, multiple, placeholder} = defineProps({
|
||||
size: {
|
||||
type: String,
|
||||
default: '60px'
|
||||
@@ -14,6 +14,10 @@ const {size, api, multiple} = defineProps({
|
||||
multiple: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: '上传'
|
||||
}
|
||||
});
|
||||
const files = defineModel('files');
|
||||
@@ -40,7 +44,7 @@ const beforeUpload = (file) => {
|
||||
<template #upload-button>
|
||||
<div class="upload-button test">
|
||||
<IconPlus/>
|
||||
上传
|
||||
{{ placeholder }}
|
||||
</div>
|
||||
</template>
|
||||
</a-upload>
|
||||
|
||||
Reference in New Issue
Block a user