File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 <el-form-item label =" 禁用" >
1313 <upload-imgs
1414 ref =" uploadEle4"
15- :rules =" rules2"
1615 :multiple =" true"
1716 :disabled =" true" />
1817 <div >
1918 <el-button @click =" getValue('uploadEle4')" >获取当前图像数据</el-button >
2019 </div >
2120 </el-form-item >
2221 <el-form-item label =" 动图检测示例" >
23- <upload-imgs ref =" uploadEle32" :rules =" rules " :multiple =" true" :animated-check =" true" />
22+ <upload-imgs ref =" uploadEle32" :rules =" rules2 " :multiple =" true" :animated-check =" true" />
2423 <div >
2524 <el-button @click =" getValue('uploadEle32')" >获取当前图像数据</el-button >
2625 </div >
2726 </el-form-item >
2827 <el-form-item label =" 禁用+初始化" >
2928 <upload-imgs
3029 ref =" uploadEle5"
31- :rules =" rules2 "
30+ :rules =" rules "
3231 :multiple =" true"
3332 :disabled =" true"
3433 :value =" initData" />
6261 <el-form-item label =" 禁用+初始化+不预览" >
6362 <upload-imgs
6463 ref =" uploadEle7"
65- :rules =" rules2 "
64+ :rules =" rules "
6665 :multiple =" true"
6766 :disabled =" true"
6867 :value =" initData"
7473 <el-form-item label =" 排序+固定数量" >
7574 <upload-imgs
7675 ref =" uploadEle8"
77- :rules =" rules2 "
76+ :rules =" rules "
7877 :multiple =" true"
7978 :min-num =" 3"
8079 :max-num =" 3"
104103 :sortable =" true" />
105104 <div >
106105 <el-button @click =" changeData" >重新初始化</el-button >
106+ <el-button @click =" doClear" >清空</el-button >
107107 <el-button @click =" getValue('uploadEle9')" >获取当前图像数据</el-button >
108108 </div >
109109 </el-form-item >
@@ -178,6 +178,7 @@ export default {
178178 rules2: {
179179 minWidth: 100 ,
180180 maxWidth: 2000 ,
181+ allowAnimated: 1 ,
181182 },
182183 initData1: [{
183184 id: ' 123' ,
@@ -235,6 +236,9 @@ export default {
235236 // eslint-disable-next-line
236237 alert (' 已获取数据, 打印在控制台中' )
237238 },
239+ doClear () {
240+ this .$refs .uploadEle9 .clear ()
241+ },
238242 changeData () {
239243 this .initData1 = [{
240244 id: ' hahah' ,
You can’t perform that action at this time.
0 commit comments