swordpass-ui 1.1.7 → 1.1.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swordpass-ui",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "author": "sword",
5
5
  "private": false,
6
6
  "scripts": {
@@ -16,6 +16,7 @@
16
16
  />
17
17
  <file-upload
18
18
  ref="fileUpload"
19
+ v-if="inputWriteable"
19
20
  v-model="inputVal"
20
21
  :list-type="pictureWall ? 'picture-card' : null"
21
22
  :action-url="actionUrlVal"
@@ -29,7 +30,6 @@
29
30
  :size="size"
30
31
  :readonly="!inputWriteable"
31
32
  :with-credentials="withCredentials"
32
- @on-progress="handleProgress"
33
33
  @handle-error="handleError"
34
34
  @clear="handleClear"
35
35
  >
@@ -296,11 +296,7 @@ export default {
296
296
  this.inputVal = []
297
297
  }
298
298
  if (val.constructor == String) {
299
- if (val) {
300
- this.inputVal = [...JSON.parse(val)]
301
- } else {
302
- this.inputVal = []
303
- }
299
+ this.inputVal = [...JSON.parse(val)]
304
300
  }
305
301
  },
306
302
  inputVal: {