vxe-pc-ui 4.4.5 → 4.4.7
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/calendar/src/calendar.js +42 -17
- package/es/date-picker/src/date-picker.js +33 -15
- package/es/date-picker/style.css +36 -21
- package/es/date-picker/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-date-picker/style.css +36 -21
- package/es/vxe-date-picker/style.min.css +1 -1
- package/lib/calendar/src/calendar.js +32 -14
- package/lib/calendar/src/calendar.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +26 -13
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-picker/style/style.css +36 -21
- package/lib/date-picker/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +60 -29
- package/lib/index.umd.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/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-date-picker/style/style.css +36 -21
- package/lib/vxe-date-picker/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/calendar/src/calendar.ts +42 -16
- package/packages/date-picker/src/date-picker.ts +33 -14
- package/styles/components/date-picker.scss +25 -9
- package/styles/theme/base.scss +1 -1
- package/types/components/grid.d.ts +4 -0
- package/types/components/table.d.ts +50 -2
- /package/es/icon/{iconfont.1741263674927.ttf → iconfont.1741345300345.ttf} +0 -0
- /package/es/icon/{iconfont.1741263674927.woff → iconfont.1741345300345.woff} +0 -0
- /package/es/icon/{iconfont.1741263674927.woff2 → iconfont.1741345300345.woff2} +0 -0
- /package/es/{iconfont.1741263674927.ttf → iconfont.1741345300345.ttf} +0 -0
- /package/es/{iconfont.1741263674927.woff → iconfont.1741345300345.woff} +0 -0
- /package/es/{iconfont.1741263674927.woff2 → iconfont.1741345300345.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1741263674927.ttf → iconfont.1741345300345.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1741263674927.woff → iconfont.1741345300345.woff} +0 -0
- /package/lib/icon/style/{iconfont.1741263674927.woff2 → iconfont.1741345300345.woff2} +0 -0
- /package/lib/{iconfont.1741263674927.ttf → iconfont.1741345300345.ttf} +0 -0
- /package/lib/{iconfont.1741263674927.woff → iconfont.1741345300345.woff} +0 -0
- /package/lib/{iconfont.1741263674927.woff2 → iconfont.1741345300345.woff2} +0 -0
|
@@ -325,7 +325,11 @@
|
|
|
325
325
|
margin-right: 0.5em;
|
|
326
326
|
}
|
|
327
327
|
.vxe-date-picker--time-picker-btn {
|
|
328
|
+
display: flex;
|
|
328
329
|
flex-shrink: 0;
|
|
330
|
+
&:active {
|
|
331
|
+
transform: scale(0.9);
|
|
332
|
+
}
|
|
329
333
|
}
|
|
330
334
|
.vxe-date-picker--time-picker-confirm,
|
|
331
335
|
.vxe-date-picker--date-picker-confirm {
|
|
@@ -391,6 +395,7 @@
|
|
|
391
395
|
&:not(.is--disabled) {
|
|
392
396
|
cursor: pointer;
|
|
393
397
|
&:hover {
|
|
398
|
+
color: var(--vxe-ui-font-primary-color);
|
|
394
399
|
background-color: #fff;
|
|
395
400
|
}
|
|
396
401
|
&:active {
|
|
@@ -398,6 +403,14 @@
|
|
|
398
403
|
}
|
|
399
404
|
}
|
|
400
405
|
}
|
|
406
|
+
.vxe-date-picker--date-picker-btns {
|
|
407
|
+
.vxe-date-picker--date-picker-btn {
|
|
408
|
+
margin-left: 0.6em;
|
|
409
|
+
&:first-child {
|
|
410
|
+
margin-left: 0;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
401
414
|
.vxe-date-picker--date-picker-body {
|
|
402
415
|
border-radius: var(--vxe-ui-base-border-radius);
|
|
403
416
|
border: 1px solid var(--vxe-ui-base-popup-border-color);
|
|
@@ -523,6 +536,8 @@
|
|
|
523
536
|
|
|
524
537
|
.vxe-date-picker--date-label {
|
|
525
538
|
position: relative;
|
|
539
|
+
font-size: 1.1em;
|
|
540
|
+
line-height: 1em;
|
|
526
541
|
&.is-notice {
|
|
527
542
|
&:before {
|
|
528
543
|
content: "";
|
|
@@ -541,8 +556,8 @@
|
|
|
541
556
|
position: absolute;
|
|
542
557
|
right: 0.1em;
|
|
543
558
|
top: -0.2em;
|
|
544
|
-
font-size:
|
|
545
|
-
transform: scale(0.
|
|
559
|
+
font-size: 12px;
|
|
560
|
+
transform: scale(0.9);
|
|
546
561
|
color: var(--vxe-ui-input-date-extra-color);
|
|
547
562
|
&.is-important {
|
|
548
563
|
color: var(--vxe-ui-input-date-extra-important-color);
|
|
@@ -551,7 +566,8 @@
|
|
|
551
566
|
|
|
552
567
|
.vxe-date-picker--date-festival {
|
|
553
568
|
color: var(--vxe-ui-input-date-festival-color);
|
|
554
|
-
height:
|
|
569
|
+
height: 1.2em;
|
|
570
|
+
line-height: 1.1em;
|
|
555
571
|
overflow: hidden;
|
|
556
572
|
&.is-important {
|
|
557
573
|
color: var(--vxe-ui-input-date-festival-important-color);
|
|
@@ -559,8 +575,8 @@
|
|
|
559
575
|
}
|
|
560
576
|
.vxe-date-picker--date-festival--label {
|
|
561
577
|
display: block;
|
|
562
|
-
font-size:
|
|
563
|
-
transform: scale(0.
|
|
578
|
+
font-size: 1em;
|
|
579
|
+
transform: scale(0.8);
|
|
564
580
|
}
|
|
565
581
|
|
|
566
582
|
@keyframes festivalOverlap2 {
|
|
@@ -760,6 +776,9 @@
|
|
|
760
776
|
.vxe-date-picker--date-picker-btn-wrapper {
|
|
761
777
|
.vxe-date-picker--date-picker-btn {
|
|
762
778
|
margin-left: 9px - $sizeIndex;
|
|
779
|
+
&:active {
|
|
780
|
+
transform: scale(0.9);
|
|
781
|
+
}
|
|
763
782
|
}
|
|
764
783
|
.vxe-date-picker--date-picker-prev-btn,
|
|
765
784
|
.vxe-date-picker--date-picker-current-btn,
|
|
@@ -771,7 +790,7 @@
|
|
|
771
790
|
}
|
|
772
791
|
.vxe-date-picker--date-picker-type-wrapper {
|
|
773
792
|
.vxe-date-picker--date-picker-label,
|
|
774
|
-
.vxe-date-picker--date-picker-
|
|
793
|
+
.vxe-date-picker--date-picker-btns {
|
|
775
794
|
padding: 0 10px - $sizeIndex;
|
|
776
795
|
}
|
|
777
796
|
}
|
|
@@ -831,9 +850,6 @@
|
|
|
831
850
|
.vxe-date-picker--date-picker-confirm {
|
|
832
851
|
height: 31px - $sizeIndex;
|
|
833
852
|
}
|
|
834
|
-
.vxe-date-picker--date-label {
|
|
835
|
-
line-height: calc(list.nth($fontSizeList, $sizeIndex) + 1px);
|
|
836
|
-
}
|
|
837
853
|
}
|
|
838
854
|
|
|
839
855
|
.vxe-date-picker--panel {
|
package/styles/theme/base.scss
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
/*input*/
|
|
44
44
|
--vxe-ui-input-disabled-color: #dcdfe6;
|
|
45
45
|
--vxe-ui-input-number-disabled-color: #e4e7ed;
|
|
46
|
-
--vxe-ui-input-date-festival-color: #
|
|
46
|
+
--vxe-ui-input-date-festival-color: #abaaaa;
|
|
47
47
|
--vxe-ui-input-date-festival-important-color: var(--vxe-ui-font-primary-color);
|
|
48
48
|
--vxe-ui-input-date-notice-background-color: #FF0000;
|
|
49
49
|
--vxe-ui-input-date-picker-hover-background-color: #f2f6fc;
|
|
@@ -277,6 +277,10 @@ export interface GridMethods<D = any> {
|
|
|
277
277
|
* @param code 指令编码
|
|
278
278
|
*/
|
|
279
279
|
commitProxy(code: string | VxeToolbarPropTypes.ButtonConfig, ...args: any[]): Promise<any>
|
|
280
|
+
/**
|
|
281
|
+
* 获取根元素
|
|
282
|
+
*/
|
|
283
|
+
getEl(): HTMLDivElement
|
|
280
284
|
/**
|
|
281
285
|
* 获取表单数据
|
|
282
286
|
*/
|
|
@@ -3320,6 +3320,10 @@ export interface TableInternalData<D = any> {
|
|
|
3320
3320
|
|
|
3321
3321
|
export interface TableMethods<DT = any> {
|
|
3322
3322
|
dispatchEvent(type: ValueOf<VxeTableEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
3323
|
+
/**
|
|
3324
|
+
* 获取根元素
|
|
3325
|
+
*/
|
|
3326
|
+
getEl(): HTMLDivElement
|
|
3323
3327
|
/**
|
|
3324
3328
|
* 手动清除表格所有条件,还原到初始状态
|
|
3325
3329
|
* 对于增删改查的场景中可能会用到,比如在数据保存之后清除表格缓存
|
|
@@ -3531,6 +3535,50 @@ export interface TableMethods<DT = any> {
|
|
|
3531
3535
|
visibleColumn: VxeTableDefines.ColumnInfo<DT>[]
|
|
3532
3536
|
tableColumn: VxeTableDefines.ColumnInfo<DT>[]
|
|
3533
3537
|
}
|
|
3538
|
+
/**
|
|
3539
|
+
* 移动列到指定列的位置
|
|
3540
|
+
* @param fieldOrColumn
|
|
3541
|
+
* @param targetFieldOrColumn 列对象、列字段、移动偏移量
|
|
3542
|
+
* @param options
|
|
3543
|
+
*/
|
|
3544
|
+
moveColumnTo(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo, targetFieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo | number, options?: {
|
|
3545
|
+
/**
|
|
3546
|
+
* 只对 row-drag-config.isCrossDrag 有效,允许跨层级移动
|
|
3547
|
+
*/
|
|
3548
|
+
isCrossDrag?: boolean
|
|
3549
|
+
/**
|
|
3550
|
+
* 只对 column-drag-config.isToChildDrag 有效,移动成子级
|
|
3551
|
+
*/
|
|
3552
|
+
dragToChild?: boolean
|
|
3553
|
+
/**
|
|
3554
|
+
* 移动到目标列的左边或右边位置
|
|
3555
|
+
*/
|
|
3556
|
+
dragPos?: 'left' | 'right' | '' | null
|
|
3557
|
+
}): Promise<{
|
|
3558
|
+
status: boolean
|
|
3559
|
+
}>
|
|
3560
|
+
/**
|
|
3561
|
+
* 移动行到指定行的位置
|
|
3562
|
+
* @param rowidOrRow
|
|
3563
|
+
* @param targetRowidOrRow 行对象、行主键、移动偏移量
|
|
3564
|
+
* @param options
|
|
3565
|
+
*/
|
|
3566
|
+
moveRowTo(rowidOrRow: any, targetRowidOrRow: any, options?: {
|
|
3567
|
+
/**
|
|
3568
|
+
* 只对 row-drag-config.isCrossDrag 有效,允许跨层级移动
|
|
3569
|
+
*/
|
|
3570
|
+
isCrossDrag?: boolean
|
|
3571
|
+
/**
|
|
3572
|
+
* 只对 row-drag-config.isToChildDrag 有效,移动成子级
|
|
3573
|
+
*/
|
|
3574
|
+
dragToChild?: boolean
|
|
3575
|
+
/**
|
|
3576
|
+
* 移动到目标行的上方或下方位置
|
|
3577
|
+
*/
|
|
3578
|
+
dragPos?: 'top' | 'bottom' | '' | null
|
|
3579
|
+
}): Promise<{
|
|
3580
|
+
status: boolean
|
|
3581
|
+
}>
|
|
3534
3582
|
/**
|
|
3535
3583
|
* 获取表格的全量列
|
|
3536
3584
|
*/
|
|
@@ -4199,7 +4247,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
4199
4247
|
triggerHeaderCellMousedownEvent(evnt: any, params: any): void
|
|
4200
4248
|
triggerCellMousedownEvent(evnt: MouseEvent, params: any): void
|
|
4201
4249
|
triggerCellMouseupEvent(evnt: MouseEvent): void
|
|
4202
|
-
handleRowDragSwapEvent (evnt: DragEvent, isSyncRow: boolean | undefined, dragRow: any, prevDragRow: any, prevDragPos: '' | 'top' | 'bottom' | 'left' | 'right' | undefined, prevDragToChild: boolean | undefined): Promise<
|
|
4250
|
+
handleRowDragSwapEvent (evnt: DragEvent | null, isSyncRow: boolean | undefined, dragRow: any, prevDragRow: any, prevDragPos: '' | 'top' | 'bottom' | 'left' | 'right' | undefined, prevDragToChild: boolean | undefined): Promise<{ status: boolean }>
|
|
4203
4251
|
handleRowDragDragstartEvent (evnt: DragEvent): void
|
|
4204
4252
|
handleRowDragDragendEvent(evnt: DragEvent): void
|
|
4205
4253
|
handleRowDragDragoverEvent(evnt: DragEvent,): void
|
|
@@ -4210,7 +4258,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
4210
4258
|
handleCellDragMouseupEvent (evnt: MouseEvent): void
|
|
4211
4259
|
handleHeaderCellDragDragstartEvent (evnt: DragEvent): void
|
|
4212
4260
|
handleColDragSwapColumn(): void
|
|
4213
|
-
handleColDragSwapEvent (evnt: DragEvent, isSyncColumn: boolean | undefined, dragCol: VxeTableDefines.ColumnInfo | null | undefined, prevDragCol: VxeTableDefines.ColumnInfo | undefined, prevDragPos: '' | 'top' | 'bottom' | 'left' | 'right' | undefined, prevDragToChild: boolean | undefined): Promise<
|
|
4261
|
+
handleColDragSwapEvent (evnt: DragEvent | null, isSyncColumn: boolean | undefined, dragCol: VxeTableDefines.ColumnInfo | null | undefined, prevDragCol: VxeTableDefines.ColumnInfo | null | undefined, prevDragPos: '' | 'top' | 'bottom' | 'left' | 'right' | undefined, prevDragToChild: boolean | undefined): Promise<{ status: boolean }>
|
|
4214
4262
|
handleHeaderCellDragDragendEvent(evnt: DragEvent): void
|
|
4215
4263
|
handleHeaderCellDragDragoverEvent(evnt: DragEvent,): void
|
|
4216
4264
|
handleHeaderCellDragMousedownEvent (evnt: MouseEvent, params: {
|
|
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
|