车辆管理系统-后台管理系统web
spring
5 天以前 d7606a9a3c81114f5d255c72d0eeb55e87d8aabb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>)
    } else {
      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>
      )
    }
    return list
  }
}