web-component-gallery 2.2.23 → 2.2.25
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/dist/js.umd.js +1 -1
- package/lib/amap-draw/index.jsx +1 -1
- package/lib/form-comp/AUpload.vue +6 -4
- package/package.json +1 -1
package/lib/amap-draw/index.jsx
CHANGED
|
@@ -359,7 +359,7 @@ export default {
|
|
|
359
359
|
this.renderAllDrawLayers() :
|
|
360
360
|
this.renderSingleDrawLayer(drawType)
|
|
361
361
|
|
|
362
|
-
if (this.activeOperateIndex === -1) setTimeout(this.
|
|
362
|
+
if (this.activeOperateIndex === -1) setTimeout(this.amap.setFitView(), 0)
|
|
363
363
|
},
|
|
364
364
|
|
|
365
365
|
// 清理覆盖物
|
|
@@ -117,12 +117,14 @@ export default {
|
|
|
117
117
|
* 文件预览处理
|
|
118
118
|
* @param {Object} file - 文件对象
|
|
119
119
|
*/
|
|
120
|
-
handleFilePreview({ uid, contentType, url }) {
|
|
121
|
-
|
|
120
|
+
handleFilePreview({ uid, type, contentType, url }) {
|
|
121
|
+
const innerType = contentType || type
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
if (!innerType || !url) return
|
|
124
|
+
|
|
125
|
+
const suffix = url.substr(url.lastIndexOf('.') + 1).toUpperCase()
|
|
124
126
|
|
|
125
|
-
if (
|
|
127
|
+
if (innerType.includes('image') || IMAGE_SUFFIX.has(suffix)) {
|
|
126
128
|
this.$viewerApi({
|
|
127
129
|
options: {
|
|
128
130
|
url: 'url',
|