@ddwl/ddwl-ui 1.1.5-beta.2 → 1.1.5-beta.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.5-beta.2",
3
+ "version": "1.1.5-beta.4",
4
4
  "private": false,
5
5
  "main": "src/main.js",
6
6
  "style": "lib/theme/index.css",
@@ -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 './utils/constant.js'
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 },
@@ -1,3 +1,4 @@
1
1
  export const imgExts = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'svg']
2
2
  export const videoExts = ['mp4']
3
- export const audioExts = ['mp3', 'wav', 'ogg']
3
+ export const audioExts = ['mp3', 'wav', 'ogg']
4
+ export const fileExts = ['doc', 'docx', 'pdf']