avue设置表格显示图片

 

 

 加上这两个属性就可,不过prop要原本就是图片链接哦!

{
              label: "头像",
              prop: "icon",
              listType: 'picture-img',
              type:"upload",
              rules: [{
                required: true,
                message: "请输入头像",
                trigger: "blur"
              }]
},

字数太少了,添加点字数,因为是avue,可能比较新,比较少人用,也比较方便,不过也很多东西也比较局限,所以很简单的东西也记录下

下面记录下上传图片的设置

 {
              label: "礼物图标",
              prop: "icon",
              type:"upload",
              width:170,
              listType: 'picture-img',
              action: '/api/putObject',
              propsHttp: {
                url: 'data'
              },
              rules: [{
                required: true,
                message: "请输入礼物图标",
 
 
 
                trigger: "blur"
              }]
            },
action是要上传的路径
 
还是因为字数少,不给发布,随便加点东西吧
 
docker的安装吧:
yum -y install gcc
yum -y install gcc-c++
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
yum -y install docker-ce
systemctl start docker
 
上面全部复制,一起粘贴即可
下面是配置国内仓库,可以不进行
 
mkdir -p /etc/docker
vim  /etc/docker/daemon.json
在文件中添加如下配置
#阿里云镜像加速器{"registry-mirrors": ["http://hub-mirror.c.163.com"] }
systemctl daemon-reload
systemctl restart docker
 
 
posted @ 2021-01-25 11:36  听惊雷  阅读(2526)  评论(2编辑  收藏  举报