@ddwl/ddwl-ui 1.1.5-beta.3 → 1.1.5
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
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
|
|
74
74
|
<script>
|
|
75
75
|
import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
|
|
76
|
-
import {imgExts, videoExts, audioExts} from '
|
|
76
|
+
import {imgExts, videoExts, audioExts} from '../../utils/constant'
|
|
77
77
|
export default {
|
|
78
78
|
name: 'DFilePreview',
|
|
79
79
|
components: { ElImageViewer },
|
|
@@ -126,11 +126,7 @@ import { get } from 'lodash'
|
|
|
126
126
|
import videoBg from '../../assets/video-play.jpeg'
|
|
127
127
|
import { convertBytesToSize } from '@/utils'
|
|
128
128
|
import FilePreview from '../file-preview/index.vue'
|
|
129
|
-
|
|
130
|
-
const imgExts = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'svg']
|
|
131
|
-
const fileExts = ['doc', 'docx', 'pdf']
|
|
132
|
-
const videoExts = ['mp4']
|
|
133
|
-
|
|
129
|
+
import {imgExts, videoExts, fileExts} from '../../utils/constant'
|
|
134
130
|
export default {
|
|
135
131
|
name: 'DUpload',
|
|
136
132
|
components: { FilePreview },
|
package/src/utils/constant.js
CHANGED