right panel
This commit is contained in:
@ -1,17 +1,24 @@
|
||||
export default {
|
||||
'list-type': (h, conf, key) => {
|
||||
const list = []
|
||||
const config = conf.__config__
|
||||
if (conf['list-type'] === 'picture-card') {
|
||||
list.push(<i class="el-icon-plus"></i>)
|
||||
"list-type": (conf, key) => {
|
||||
const list = [];
|
||||
const config = conf.__config__;
|
||||
if (conf["list-type"] === "picture-card") {
|
||||
list.push(<i class="el-icon-plus"></i>);
|
||||
} else {
|
||||
list.push(<el-button size="small" type="primary" icon="el-icon-upload">{config.buttonText}</el-button>)
|
||||
list.push(
|
||||
<el-button size="small" type="primary" icon="el-icon-upload">
|
||||
{config.buttonText}
|
||||
</el-button>
|
||||
);
|
||||
}
|
||||
if (config.showTip) {
|
||||
list.push(
|
||||
<div slot="tip" class="el-upload__tip">只能上传不超过 {config.fileSize}{config.sizeUnit} 的{conf.accept}文件</div>
|
||||
)
|
||||
<div slot="tip" class="el-upload__tip">
|
||||
只能上传不超过 {config.fileSize}
|
||||
{config.sizeUnit} 的{conf.accept}文件
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return list
|
||||
}
|
||||
}
|
||||
return list;
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user