vxe-pc-ui 3.14.27 → 3.14.29
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/date-panel/src/date-panel.js +15 -13
- package/es/date-panel/style.css +4 -0
- package/es/date-panel/style.min.css +1 -1
- package/es/date-range-picker/src/date-range-picker.js +97 -2
- package/es/select/src/select.js +4 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +4 -1
- package/es/tree-select/src/tree-select.js +4 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +53 -3
- package/es/vxe-date-panel/style.css +4 -0
- package/es/vxe-date-panel/style.min.css +1 -1
- package/lib/date-panel/src/date-panel.js +53 -13
- package/lib/date-panel/src/date-panel.min.js +1 -1
- package/lib/date-panel/style/style.css +4 -0
- package/lib/date-panel/style/style.min.css +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +103 -5
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/index.umd.js +237 -28
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +6 -1
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +4 -1
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +4 -1
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.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 +65 -5
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/vxe-date-panel/style/style.css +4 -0
- package/lib/vxe-date-panel/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/date-panel/src/date-panel.ts +30 -28
- package/packages/date-range-picker/src/date-range-picker.ts +99 -3
- package/packages/select/src/select.ts +4 -1
- package/packages/table-select/src/table-select.ts +4 -1
- package/packages/tree-select/src/tree-select.ts +4 -1
- package/packages/upload/src/upload.ts +73 -5
- package/styles/components/date-panel.scss +4 -0
- package/types/components/date-panel.d.ts +26 -2
- package/types/components/date-range-picker.d.ts +2 -0
- package/types/components/gantt.d.ts +4 -0
- package/types/components/upload.d.ts +36 -1
- /package/es/icon/{iconfont.1780477610393.ttf → iconfont.1780632915143.ttf} +0 -0
- /package/es/icon/{iconfont.1780477610393.woff → iconfont.1780632915143.woff} +0 -0
- /package/es/icon/{iconfont.1780477610393.woff2 → iconfont.1780632915143.woff2} +0 -0
- /package/es/{iconfont.1780477610393.ttf → iconfont.1780632915143.ttf} +0 -0
- /package/es/{iconfont.1780477610393.woff → iconfont.1780632915143.woff} +0 -0
- /package/es/{iconfont.1780477610393.woff2 → iconfont.1780632915143.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1780477610393.ttf → iconfont.1780632915143.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1780477610393.woff → iconfont.1780632915143.woff} +0 -0
- /package/lib/icon/style/{iconfont.1780477610393.woff2 → iconfont.1780632915143.woff2} +0 -0
- /package/lib/{iconfont.1780477610393.ttf → iconfont.1780632915143.ttf} +0 -0
- /package/lib/{iconfont.1780477610393.woff → iconfont.1780632915143.woff} +0 -0
- /package/lib/{iconfont.1780477610393.woff2 → iconfont.1780632915143.woff2} +0 -0
|
@@ -19,6 +19,12 @@ export namespace VxeDatePanelPropTypes {
|
|
|
19
19
|
export type Size = VxeComponentSizeType
|
|
20
20
|
export type ModelValue = string | number | Date | null
|
|
21
21
|
export type ClassName = string
|
|
22
|
+
export type CellClassName = string | ((params: {
|
|
23
|
+
$datePanel: VxeDatePanelConstructor
|
|
24
|
+
type: string
|
|
25
|
+
viewType: VxeDatePanelDefines.DatePanelType
|
|
26
|
+
date: Date
|
|
27
|
+
}) => string)
|
|
22
28
|
export type Type = 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year'
|
|
23
29
|
export type Multiple = boolean
|
|
24
30
|
export type LimitCount = string | number
|
|
@@ -68,6 +74,7 @@ export interface VxeDatePanelProps {
|
|
|
68
74
|
size?: VxeDatePanelPropTypes.Size
|
|
69
75
|
value?: VxeDatePanelPropTypes.ModelValue
|
|
70
76
|
className?: VxeDatePanelPropTypes.ClassName
|
|
77
|
+
cellClassName?: VxeDatePanelPropTypes.CellClassName
|
|
71
78
|
type?: VxeDatePanelPropTypes.Type
|
|
72
79
|
multiple?: VxeDatePanelPropTypes.Multiple
|
|
73
80
|
limitCount?: VxeDatePanelPropTypes.LimitCount
|
|
@@ -111,8 +118,8 @@ export interface DatePanelReactData {
|
|
|
111
118
|
datePanelValue: Date | null
|
|
112
119
|
datePanelLabel: string
|
|
113
120
|
datePanelType: VxeDatePanelDefines.DatePanelType
|
|
114
|
-
selectMonth:
|
|
115
|
-
currentDate:
|
|
121
|
+
selectMonth: Date | null
|
|
122
|
+
currentDate: Date | null
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
export interface DatePanelInternalData {
|
|
@@ -250,24 +257,41 @@ export namespace VxeDatePanelDefines {
|
|
|
250
257
|
export interface RevertEventParams extends DatePanelEventParams {
|
|
251
258
|
label: string
|
|
252
259
|
}
|
|
260
|
+
|
|
261
|
+
export interface DateTodayEventParams {
|
|
262
|
+
type: string
|
|
263
|
+
viewType: DatePanelType
|
|
264
|
+
value: string
|
|
265
|
+
}
|
|
266
|
+
export interface DatePrevEventParams extends DateTodayEventParams {}
|
|
267
|
+
export interface DateNextEventParams extends DateTodayEventParams {}
|
|
253
268
|
}
|
|
254
269
|
|
|
255
270
|
export type VxeDatePanelEventProps = {
|
|
256
271
|
onChange?: VxeDatePanelEvents.Change
|
|
257
272
|
onConfirm?: VxeDatePanelEvents.Confirm
|
|
258
273
|
onRevert?: VxeDatePanelEvents.Revert
|
|
274
|
+
onDatePrev?: VxeDatePanelEvents.DatePrev
|
|
275
|
+
onDateToday?: VxeDatePanelEvents.DateToday
|
|
276
|
+
onDateNext?: VxeDatePanelEvents.DateNext
|
|
259
277
|
}
|
|
260
278
|
|
|
261
279
|
export interface VxeDatePanelListeners {
|
|
262
280
|
change?: VxeDatePanelEvents.Change
|
|
263
281
|
confirm?: VxeDatePanelEvents.Confirm
|
|
264
282
|
revert?: VxeDatePanelEvents.Revert
|
|
283
|
+
onDatePrev?: VxeDatePanelEvents.DatePrev
|
|
284
|
+
onDateToday?: VxeDatePanelEvents.DateToday
|
|
285
|
+
onDateNext?: VxeDatePanelEvents.DateNext
|
|
265
286
|
}
|
|
266
287
|
|
|
267
288
|
export namespace VxeDatePanelEvents {
|
|
268
289
|
export type Change = (params: VxeDatePanelDefines.ChangeEventParams) => void
|
|
269
290
|
export type Confirm = (params: VxeDatePanelDefines.ConfirmEventParams) => void
|
|
270
291
|
export type Revert = (params: VxeDatePanelDefines.RevertEventParams) => void
|
|
292
|
+
export type DatePrev = (params: VxeDatePanelDefines.DatePrevEventParams) => void
|
|
293
|
+
export type DateToday = (params: VxeDatePanelDefines.DateTodayEventParams) => void
|
|
294
|
+
export type DateNext = (params: VxeDatePanelDefines.DateNextEventParams) => void
|
|
271
295
|
}
|
|
272
296
|
|
|
273
297
|
export namespace VxeDatePanelSlotTypes {
|
|
@@ -28,6 +28,7 @@ export namespace VxeDateRangePickerPropTypes {
|
|
|
28
28
|
export type Name = string
|
|
29
29
|
export type Type = VxeDatePanelPropTypes.Type
|
|
30
30
|
export type Clearable = boolean
|
|
31
|
+
export type LinkedPanels = boolean
|
|
31
32
|
/**
|
|
32
33
|
* 已废弃,请使用 PopupConfig.zIndex
|
|
33
34
|
* @deprecated
|
|
@@ -117,6 +118,7 @@ export interface VxeDateRangePickerProps {
|
|
|
117
118
|
name?: VxeDateRangePickerPropTypes.Name
|
|
118
119
|
type?: VxeDateRangePickerPropTypes.Type
|
|
119
120
|
clearable?: VxeDateRangePickerPropTypes.Clearable
|
|
121
|
+
linkedPanels?: VxeDateRangePickerPropTypes.LinkedPanels
|
|
120
122
|
zIndex?: VxeDateRangePickerPropTypes.ZIndex
|
|
121
123
|
readonly?: VxeDateRangePickerPropTypes.Readonly
|
|
122
124
|
disabled?: VxeDateRangePickerPropTypes.Disabled
|
|
@@ -688,6 +688,10 @@ export interface GanttMethods<D = any> extends Omit<GridMethods<D>, 'dispatchEve
|
|
|
688
688
|
* 如果有滚动条,则滚动到对应的任务视图
|
|
689
689
|
*/
|
|
690
690
|
scrollToTaskView(rowOrRowid: any): Promise<any>
|
|
691
|
+
/**
|
|
692
|
+
* 如果任务视图有横向滚动条,则滚动到任务视图对应的日期
|
|
693
|
+
*/
|
|
694
|
+
scrollToDateView(colDate: string | Date | number): Promise<any>
|
|
691
695
|
}
|
|
692
696
|
export interface VxeGanttMethods<D = any> extends GanttMethods<D>, Omit<VxeGridMethods<D>, 'dispatchEvent'> { }
|
|
693
697
|
|
|
@@ -212,6 +212,7 @@ export interface VxeUploadProps {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
export interface UploadPrivateComputed {
|
|
215
|
+
computeUrlProp: string
|
|
215
216
|
}
|
|
216
217
|
export interface VxeUploadPrivateComputed extends UploadPrivateComputed { }
|
|
217
218
|
|
|
@@ -251,6 +252,20 @@ export interface UploadMethods {
|
|
|
251
252
|
* 用于 auto-upload 模式,手动调用上传附件;如果传 true,这包含未上传和上传失败的都会重新提交
|
|
252
253
|
*/
|
|
253
254
|
submit(isFull?: boolean): Promise<void>
|
|
255
|
+
/**
|
|
256
|
+
* 清除所有文件
|
|
257
|
+
*/
|
|
258
|
+
clear(): Promise<{
|
|
259
|
+
url: string
|
|
260
|
+
status: boolean
|
|
261
|
+
}[]>
|
|
262
|
+
/**
|
|
263
|
+
* 区别就是会触发对应的事件
|
|
264
|
+
*/
|
|
265
|
+
clearByEvent(event: Event): Promise<{
|
|
266
|
+
url: string
|
|
267
|
+
status: boolean
|
|
268
|
+
}[]>
|
|
254
269
|
/**
|
|
255
270
|
* 获取更多弹窗的可视状态
|
|
256
271
|
*/
|
|
@@ -267,8 +282,28 @@ export interface UploadMethods {
|
|
|
267
282
|
* 关闭更多弹窗
|
|
268
283
|
*/
|
|
269
284
|
closeMore(): Promise<void>
|
|
285
|
+
/**
|
|
286
|
+
* 删除指定文件
|
|
287
|
+
*/
|
|
288
|
+
remove(urlOrItem: string | VxeUploadDefines.FileObjItem | string[] | VxeUploadDefines.FileObjItem[] | null): Promise<{
|
|
289
|
+
url: string
|
|
290
|
+
status: boolean
|
|
291
|
+
}[]>
|
|
292
|
+
/**
|
|
293
|
+
* 区别就是会触发对应的事件
|
|
294
|
+
*/
|
|
295
|
+
removeByEvent(event: Event, urlOrItem: string | VxeUploadDefines.FileObjItem | string[] | VxeUploadDefines.FileObjItem[] | null): Promise<{
|
|
296
|
+
url: string
|
|
297
|
+
status: boolean
|
|
298
|
+
}[]>
|
|
299
|
+
}
|
|
300
|
+
export interface VxeUploadMethods extends UploadMethods {
|
|
301
|
+
/**
|
|
302
|
+
* 内部方法
|
|
303
|
+
* @private
|
|
304
|
+
*/
|
|
305
|
+
removeFileEvent(evnt: Event | null, item: VxeUploadDefines.FileObjItem, index: number): Promise<any>
|
|
270
306
|
}
|
|
271
|
-
export interface VxeUploadMethods extends UploadMethods { }
|
|
272
307
|
|
|
273
308
|
export interface UploadPrivateMethods { }
|
|
274
309
|
export interface VxeUploadPrivateMethods extends UploadPrivateMethods { }
|
|
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
|