mali-applet-ui 0.2.1 → 0.2.3

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.
@@ -137,12 +137,18 @@ export default {
137
137
  if (this.simpleValue) {
138
138
  this.fileList = this.urlList.map(url => {
139
139
  const name = this.getUrlName(url)
140
+ const obj = {
141
+ id: null,
142
+ [this.nameField]: name,
143
+ [this.typeField]: this.getSuffix(name),
144
+ [this.urlField]: url
145
+ }
140
146
  return {
141
147
  id: null,
142
148
  [this.nameField]: name,
143
149
  [this.typeField]: this.getSuffix(name),
144
150
  [this.urlField]: url,
145
- tempPath: url
151
+ tempPath: this.getUrl(obj)
146
152
  }
147
153
  })
148
154
  this.selectUniFileList = this.urlList.map(url => {
@@ -239,6 +245,9 @@ export default {
239
245
  this.selectUniFileList = this.selectUniFileList.filter(item => item.url !== tempFilePath)
240
246
  this.fileList = this.fileList.filter(item => item.tempPath !== tempFilePath)
241
247
  const removeMethod = this.removeFile ? this.removeFile : (globalStore.upload ? globalStore.upload.removeFile : null)
248
+ if (!item) {
249
+ console.error('删除出错!!!')
250
+ }
242
251
  if (item && !item.id) {
243
252
  if (removeMethod) {
244
253
  removeMethod.call(this.currVM, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"