vxe-pc-ui 3.3.36 → 3.3.38

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 +288 -74
  9. package/es/upload/style.css +38 -2
  10. package/es/upload/style.min.css +1 -1
  11. package/es/vxe-upload/style.css +38 -2
  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 +270 -52
  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 +257 -47
  30. package/lib/upload/src/upload.min.js +1 -1
  31. package/lib/upload/style/style.css +38 -2
  32. package/lib/upload/style/style.min.css +1 -1
  33. package/lib/vxe-upload/style/style.css +38 -2
  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 +306 -75
  39. package/styles/components/upload.scss +34 -2
  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.1734402650511.ttf} +0 -0
  44. /package/es/icon/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
  45. /package/es/icon/{iconfont.1734331066100.woff2 → iconfont.1734402650511.woff2} +0 -0
  46. /package/es/{iconfont.1734331066100.ttf → iconfont.1734402650511.ttf} +0 -0
  47. /package/es/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
  48. /package/es/{iconfont.1734331066100.woff2 → iconfont.1734402650511.woff2} +0 -0
  49. /package/lib/icon/style/{iconfont.1734331066100.ttf → iconfont.1734402650511.ttf} +0 -0
  50. /package/lib/icon/style/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
  51. /package/lib/icon/style/{iconfont.1734331066100.woff2 → iconfont.1734402650511.woff2} +0 -0
  52. /package/lib/{iconfont.1734331066100.ttf → iconfont.1734402650511.ttf} +0 -0
  53. /package/lib/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
  54. /package/lib/{iconfont.1734331066100.woff2 → iconfont.1734402650511.woff2} +0 -0
@@ -110,7 +110,8 @@ export type VxePulldownEmits = [
110
110
  'click',
111
111
  'option-click',
112
112
  'show-panel',
113
- 'hide-panel'
113
+ 'hide-panel',
114
+ 'visible-change'
114
115
  ]
115
116
 
116
117
  export namespace VxePulldownDefines {
@@ -126,6 +127,10 @@ export namespace VxePulldownDefines {
126
127
 
127
128
  export interface ShowPanelEventParams extends PulldownEventParams {}
128
129
  export interface HidePanelEventParams extends PulldownEventParams {}
130
+
131
+ export interface VisibleChangeEventParams extends PulldownEventParams {
132
+ visible: boolean
133
+ }
129
134
  }
130
135
 
131
136
  export type VxePulldownEventProps = {
@@ -133,6 +138,7 @@ export type VxePulldownEventProps = {
133
138
  onOptionClick?: VxePulldownEvents.OptionClick
134
139
  onShowPanel?: VxePulldownEvents.ShowPanel
135
140
  onHidePanel?: VxePulldownEvents.HidePanel
141
+ onVisibleChange?: VxePulldownEvents.VisibleChange
136
142
  }
137
143
 
138
144
  export interface VxePulldownListeners {
@@ -140,6 +146,7 @@ export interface VxePulldownListeners {
140
146
  optionClick?: VxePulldownEvents.OptionClick
141
147
  showPanel?: VxePulldownEvents.ShowPanel
142
148
  hidePanel?: VxePulldownEvents.HidePanel
149
+ visibleChange?: VxePulldownEvents.VisibleChange
143
150
  }
144
151
 
145
152
  export namespace VxePulldownEvents {
@@ -147,6 +154,7 @@ export namespace VxePulldownEvents {
147
154
  export type OptionClick = (params: VxePulldownDefines.OptionClickEventParams) => void
148
155
  export type ShowPanel = (params: VxePulldownDefines.ShowPanelEventParams) => void
149
156
  export type HidePanel = (params: VxePulldownDefines.HidePanelEventParams) => void
157
+ export type VisibleChange = (params: VxePulldownDefines.VisibleChangeEventParams) => void
150
158
  }
151
159
 
152
160
  export namespace VxePulldownSlotTypes {
@@ -514,6 +514,10 @@ export namespace VxeTablePropTypes {
514
514
  * 是否显示拖拽辅助状态显示
515
515
  */
516
516
  showGuidesStatus?: boolean
517
+ /**
518
+ * 是否显示拖拽动画,启用后由数据量的大小来影响渲染性能
519
+ */
520
+ animation?: boolean
517
521
  /**
518
522
  * 是否禁用拖拽按钮
519
523
  */
@@ -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 {