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.
- 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 +288 -74
- package/es/upload/style.css +38 -2
- package/es/upload/style.min.css +1 -1
- package/es/vxe-upload/style.css +38 -2
- 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 +270 -52
- 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 +257 -47
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/upload/style/style.css +38 -2
- package/lib/upload/style/style.min.css +1 -1
- package/lib/vxe-upload/style/style.css +38 -2
- 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 +306 -75
- package/styles/components/upload.scss +34 -2
- 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.1734402650511.ttf} +0 -0
- /package/es/icon/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
- /package/es/icon/{iconfont.1734331066100.woff2 → iconfont.1734402650511.woff2} +0 -0
- /package/es/{iconfont.1734331066100.ttf → iconfont.1734402650511.ttf} +0 -0
- /package/es/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
- /package/es/{iconfont.1734331066100.woff2 → iconfont.1734402650511.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1734331066100.ttf → iconfont.1734402650511.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
- /package/lib/icon/style/{iconfont.1734331066100.woff2 → iconfont.1734402650511.woff2} +0 -0
- /package/lib/{iconfont.1734331066100.ttf → iconfont.1734402650511.ttf} +0 -0
- /package/lib/{iconfont.1734331066100.woff → iconfont.1734402650511.woff} +0 -0
- /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 {
|
|
@@ -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
|