@ddwl/ddwl-ui 1.1.2 → 1.1.4

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": "@ddwl/ddwl-ui",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "private": false,
5
5
  "main": "src/main.js",
6
6
  "style": "lib/theme/index.css",
@@ -171,6 +171,7 @@ export default {
171
171
  },
172
172
  close () {
173
173
  this.visible = false
174
+ this.$emit('close')
174
175
  },
175
176
  getUrl (val) {
176
177
  switch (this.activeTab) {
@@ -114,8 +114,9 @@
114
114
  </div>
115
115
  <file-preview
116
116
  v-if="previewVisible"
117
- v-model="previewVisible"
118
- :file-arr="imgOrVideoList.map(i=> i.fileUrl)"
117
+ :default-index="preveiwIndex"
118
+ :list="imgOrVideoList.map(i=> i.fileUrl)"
119
+ @close="previewVisible = false"
119
120
  />
120
121
  </div>
121
122
  </template>