类似下面这段官方的代码:<el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple :limit="3" :on-exceed="handleExceed" :file-list="fileList"> <el-button size="small" type="primary">点击上传</el-button> <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div></el-upload>我想问的是像 class aciton 是直接就这么些了,但为什么有的属性前面要加 :?比如 limit file-list 之类,官方文档里我貌似没找到两种写法的区别?
添加回答
举报
0/150
提交
取消