vxe-pc-ui 3.3.36 → 3.3.37
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/es/icon/style.css +1 -1
- package/es/pulldown/src/pulldown.js +2 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +1 -0
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +281 -72
- package/es/upload/style.css +37 -0
- package/es/upload/style.min.css +1 -1
- package/es/vxe-upload/style.css +37 -0
- package/es/vxe-upload/style.min.css +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +264 -51
- package/lib/index.umd.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +6 -0
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +2 -0
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +251 -46
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/upload/style/style.css +37 -0
- package/lib/upload/style/style.min.css +1 -1
- package/lib/vxe-upload/style/style.css +37 -0
- package/lib/vxe-upload/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/pulldown/src/pulldown.ts +3 -1
- package/packages/ui/src/dom.ts +2 -0
- package/packages/upload/src/upload.ts +299 -73
- package/styles/components/upload.scss +33 -0
- package/types/components/pulldown.d.ts +9 -1
- package/types/components/table.d.ts +4 -0
- package/types/components/upload.d.ts +10 -2
- /package/es/icon/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
- /package/es/icon/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
- /package/es/icon/{iconfont.1734331066100.woff2 → iconfont.1734347209149.woff2} +0 -0
- /package/es/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
- /package/es/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
- /package/es/{iconfont.1734331066100.woff2 → iconfont.1734347209149.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
- /package/lib/icon/style/{iconfont.1734331066100.woff2 → iconfont.1734347209149.woff2} +0 -0
- /package/lib/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
- /package/lib/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
- /package/lib/{iconfont.1734331066100.woff2 → iconfont.1734347209149.woff2} +0 -0
|
@@ -43,6 +43,7 @@ export namespace VxeUploadPropTypes {
|
|
|
43
43
|
}
|
|
44
44
|
export type FileTypes = string[]
|
|
45
45
|
export type SingleMode = boolean
|
|
46
|
+
export type DragSort = boolean
|
|
46
47
|
export type DragToUpload = boolean
|
|
47
48
|
export type PasteToUpload = boolean
|
|
48
49
|
export type KeyField = string
|
|
@@ -127,6 +128,7 @@ export interface VxeUploadProps {
|
|
|
127
128
|
fileTypes?: VxeUploadPropTypes.FileTypes
|
|
128
129
|
multiple?: VxeUploadPropTypes.Multiple
|
|
129
130
|
singleMode?: VxeUploadPropTypes.SingleMode
|
|
131
|
+
dragSort?: VxeUploadPropTypes.DragSort
|
|
130
132
|
dragToUpload?: VxeUploadPropTypes.DragToUpload
|
|
131
133
|
pasteToUpload?: VxeUploadPropTypes.PasteToUpload
|
|
132
134
|
keyField?: VxeUploadPropTypes.KeyField
|
|
@@ -174,15 +176,20 @@ export interface UploadPrivateComputed {
|
|
|
174
176
|
export interface VxeUploadPrivateComputed extends UploadPrivateComputed { }
|
|
175
177
|
|
|
176
178
|
export interface UploadReactData {
|
|
177
|
-
|
|
179
|
+
isDragUploadStatus: boolean
|
|
178
180
|
showMorePopup: boolean
|
|
179
181
|
isActivated: boolean
|
|
180
182
|
fileList: VxeUploadDefines.FileObjItem[]
|
|
181
183
|
fileCacheMaps: Record<string, VxeUploadDefines.FileCacheItem>
|
|
184
|
+
isDragMove: boolean
|
|
185
|
+
dragIndex: number
|
|
186
|
+
dragTipText: string
|
|
182
187
|
}
|
|
183
188
|
|
|
184
189
|
export interface UploadInternalData {
|
|
185
190
|
imagePreviewTypes: string[]
|
|
191
|
+
prevDragIndex: number
|
|
192
|
+
prevDragPos?: 'top' | 'bottom' | 'left' | 'right' | ''
|
|
186
193
|
}
|
|
187
194
|
|
|
188
195
|
export interface UploadMethods {
|
|
@@ -209,7 +216,8 @@ export type VxeUploadEmits = [
|
|
|
209
216
|
'download',
|
|
210
217
|
'download-fail',
|
|
211
218
|
'upload-success',
|
|
212
|
-
'upload-error'
|
|
219
|
+
'upload-error',
|
|
220
|
+
'sort-dragend'
|
|
213
221
|
]
|
|
214
222
|
|
|
215
223
|
export namespace VxeUploadDefines {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|