mali-applet-ui 0.2.75 → 0.2.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -164,25 +164,29 @@ export default {
|
|
|
164
164
|
}
|
|
165
165
|
&.ss-gray {
|
|
166
166
|
background: $ml-gray-color;
|
|
167
|
-
border-color: $ml-gray-color;
|
|
168
167
|
}
|
|
169
168
|
&.ss-blue {
|
|
169
|
+
color: #ffffff;
|
|
170
170
|
background: $ml-blue-color;
|
|
171
171
|
border-color: $ml-blue-color;
|
|
172
172
|
}
|
|
173
173
|
&.ss-green {
|
|
174
|
+
color: #ffffff;
|
|
174
175
|
background: $ml-green-color;
|
|
175
176
|
border-color: $ml-green-color;
|
|
176
177
|
}
|
|
177
178
|
&.ss-pink {
|
|
179
|
+
color: #ffffff;
|
|
178
180
|
background: $ml-pink-color;
|
|
179
181
|
border-color: $ml-pink-color;
|
|
180
182
|
}
|
|
181
183
|
&.ss-orange {
|
|
184
|
+
color: #ffffff;
|
|
182
185
|
background: $ml-orange-color;
|
|
183
186
|
border-color: $ml-orange-color;
|
|
184
187
|
}
|
|
185
188
|
&.ss-purple {
|
|
189
|
+
color: #ffffff;
|
|
186
190
|
background: $ml-purple-color;
|
|
187
191
|
border-color: $ml-purple-color;
|
|
188
192
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<ml-button status="primary" type="text" @click="downloadEvent(item)">下载</ml-button>
|
|
40
40
|
</view>
|
|
41
41
|
</view>
|
|
42
|
-
<view v-if="!isFromReadonly" class="ml-upload-file-right">
|
|
42
|
+
<view v-if="!isFromReadonly || fileList.length <= limit" class="ml-upload-file-right">
|
|
43
43
|
<view class="ml-upload-file-del-btn" @click="removeEvent(item)">
|
|
44
44
|
<ml-icon name="close" />
|
|
45
45
|
</view>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
import XEUtils from 'xe-utils'
|
|
54
54
|
import globalStore from '../../config/store'
|
|
55
55
|
import { uploadAllFiles, uploadImageFiles } from './file-handle'
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
export default {
|
|
58
58
|
name: 'MlUpload',
|
|
59
59
|
props: {
|
|
@@ -286,6 +286,9 @@ export default {
|
|
|
286
286
|
itemList: ['保存图片']
|
|
287
287
|
}
|
|
288
288
|
})
|
|
289
|
+
},
|
|
290
|
+
fail (e) {
|
|
291
|
+
console.log(e)
|
|
289
292
|
}
|
|
290
293
|
})
|
|
291
294
|
},
|
|
@@ -333,6 +336,9 @@ export default {
|
|
|
333
336
|
title: '文件已保存:' + res.savedFilePath, //保存路径
|
|
334
337
|
duration: 3000,
|
|
335
338
|
})
|
|
339
|
+
},
|
|
340
|
+
fail (e) {
|
|
341
|
+
console.log(e)
|
|
336
342
|
}
|
|
337
343
|
})
|
|
338
344
|
},
|
|
@@ -340,7 +346,7 @@ export default {
|
|
|
340
346
|
uni.showModal({
|
|
341
347
|
content: '下载失败',
|
|
342
348
|
showCancel: false
|
|
343
|
-
})
|
|
349
|
+
})
|
|
344
350
|
}
|
|
345
351
|
})
|
|
346
352
|
},
|
|
@@ -351,7 +357,7 @@ export default {
|
|
|
351
357
|
}
|
|
352
358
|
const uploadMethod = this.uploadFile ? this.uploadFile : (globalStore.upload ? globalStore.upload.uploadFile : null)
|
|
353
359
|
chooseMethod({
|
|
354
|
-
count: this.limit
|
|
360
|
+
count: this.limit - this.fileList.length
|
|
355
361
|
}).then(res => {
|
|
356
362
|
const { tempFiles } = res
|
|
357
363
|
Promise.all(
|