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.
Files changed (54) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/pulldown/src/pulldown.js +2 -0
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/ui/index.js +1 -1
  6. package/es/ui/src/dom.js +1 -0
  7. package/es/ui/src/log.js +1 -1
  8. package/es/upload/src/upload.js +281 -72
  9. package/es/upload/style.css +37 -0
  10. package/es/upload/style.min.css +1 -1
  11. package/es/vxe-upload/style.css +37 -0
  12. package/es/vxe-upload/style.min.css +1 -1
  13. package/helper/vetur/attributes.json +1 -1
  14. package/helper/vetur/tags.json +1 -1
  15. package/lib/icon/style/style.css +1 -1
  16. package/lib/icon/style/style.min.css +1 -1
  17. package/lib/index.umd.js +264 -51
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/pulldown/src/pulldown.js +6 -0
  20. package/lib/pulldown/src/pulldown.min.js +1 -1
  21. package/lib/style.css +1 -1
  22. package/lib/style.min.css +1 -1
  23. package/lib/ui/index.js +1 -1
  24. package/lib/ui/index.min.js +1 -1
  25. package/lib/ui/src/dom.js +2 -0
  26. package/lib/ui/src/dom.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/lib/upload/src/upload.js +251 -46
  30. package/lib/upload/src/upload.min.js +1 -1
  31. package/lib/upload/style/style.css +37 -0
  32. package/lib/upload/style/style.min.css +1 -1
  33. package/lib/vxe-upload/style/style.css +37 -0
  34. package/lib/vxe-upload/style/style.min.css +1 -1
  35. package/package.json +1 -1
  36. package/packages/pulldown/src/pulldown.ts +3 -1
  37. package/packages/ui/src/dom.ts +2 -0
  38. package/packages/upload/src/upload.ts +299 -73
  39. package/styles/components/upload.scss +33 -0
  40. package/types/components/pulldown.d.ts +9 -1
  41. package/types/components/table.d.ts +4 -0
  42. package/types/components/upload.d.ts +10 -2
  43. /package/es/icon/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
  44. /package/es/icon/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
  45. /package/es/icon/{iconfont.1734331066100.woff2 → iconfont.1734347209149.woff2} +0 -0
  46. /package/es/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
  47. /package/es/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
  48. /package/es/{iconfont.1734331066100.woff2 → iconfont.1734347209149.woff2} +0 -0
  49. /package/lib/icon/style/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
  50. /package/lib/icon/style/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
  51. /package/lib/icon/style/{iconfont.1734331066100.woff2 → iconfont.1734347209149.woff2} +0 -0
  52. /package/lib/{iconfont.1734331066100.ttf → iconfont.1734347209149.ttf} +0 -0
  53. /package/lib/{iconfont.1734331066100.woff → iconfont.1734347209149.woff} +0 -0
  54. /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
- isDrag: boolean
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 {