vxe-pc-ui 3.3.74 → 3.3.76
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/language/ko-KR.js +515 -515
- 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/upload/src/upload.js +3 -3
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +5 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/language/ko-KR.js +515 -515
- package/lib/language/ko-KR.min.js +1 -1
- package/lib/language/ko-KR.umd.js +515 -515
- 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/upload/src/upload.js +3 -3
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/language/ko-KR.ts +515 -515
- package/packages/upload/src/upload.ts +3 -3
- package/types/components/table.d.ts +151 -16
- /package/es/icon/{iconfont.1736480939218.ttf → iconfont.1736736652316.ttf} +0 -0
- /package/es/icon/{iconfont.1736480939218.woff → iconfont.1736736652316.woff} +0 -0
- /package/es/icon/{iconfont.1736480939218.woff2 → iconfont.1736736652316.woff2} +0 -0
- /package/es/{iconfont.1736480939218.ttf → iconfont.1736736652316.ttf} +0 -0
- /package/es/{iconfont.1736480939218.woff → iconfont.1736736652316.woff} +0 -0
- /package/es/{iconfont.1736480939218.woff2 → iconfont.1736736652316.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1736480939218.ttf → iconfont.1736736652316.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1736480939218.woff → iconfont.1736736652316.woff} +0 -0
- /package/lib/icon/style/{iconfont.1736480939218.woff2 → iconfont.1736736652316.woff2} +0 -0
- /package/lib/{iconfont.1736480939218.ttf → iconfont.1736736652316.ttf} +0 -0
- /package/lib/{iconfont.1736480939218.woff → iconfont.1736736652316.woff} +0 -0
- /package/lib/{iconfont.1736480939218.woff2 → iconfont.1736736652316.woff2} +0 -0
|
@@ -493,9 +493,9 @@ export default defineVxeComponent({
|
|
|
493
493
|
return decodeURIComponent(`${url || ''}`).split('/').pop() || ''
|
|
494
494
|
},
|
|
495
495
|
parseFileType (name: string) {
|
|
496
|
-
const index = name
|
|
497
|
-
if (index >
|
|
498
|
-
return name.substring(index + 1
|
|
496
|
+
const index = name.lastIndexOf('.')
|
|
497
|
+
if (index > 0) {
|
|
498
|
+
return name.substring(index + 1).toLowerCase()
|
|
499
499
|
}
|
|
500
500
|
return ''
|
|
501
501
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode, CreateElement } from 'vue'
|
|
2
|
+
import { NormalizedScopedSlot } from 'vue/types/vnode'
|
|
2
3
|
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType, ValueOf, VxeGlobalConfig, VxeComponentStyleType, VxeComponentSlotType } from '@vxe-ui/core'
|
|
3
4
|
import { VxeColumnPropTypes, VxeColumnProps, VxeColumnSlotTypes } from './column'
|
|
4
5
|
import { VxeTableProDefines, VxeTableProEmits } from './table-plugins'
|
|
@@ -1796,9 +1797,9 @@ export namespace VxeTablePropTypes {
|
|
|
1796
1797
|
|
|
1797
1798
|
export interface ScrollY {
|
|
1798
1799
|
/**
|
|
1799
|
-
*
|
|
1800
|
-
*
|
|
1801
|
-
*
|
|
1800
|
+
* 默认行为,无需设置
|
|
1801
|
+
* @deprecated
|
|
1802
|
+
* @private
|
|
1802
1803
|
*/
|
|
1803
1804
|
mode?: 'default' | 'wheel'
|
|
1804
1805
|
/**
|
|
@@ -1838,6 +1839,92 @@ export namespace VxeTablePropTypes {
|
|
|
1838
1839
|
oSize: number
|
|
1839
1840
|
}
|
|
1840
1841
|
|
|
1842
|
+
export interface VirtualXConfig {
|
|
1843
|
+
/**
|
|
1844
|
+
* 指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false
|
|
1845
|
+
*/
|
|
1846
|
+
gt?: number
|
|
1847
|
+
/**
|
|
1848
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)
|
|
1849
|
+
*/
|
|
1850
|
+
oSize?: number
|
|
1851
|
+
/**
|
|
1852
|
+
* 是否启用,支持局部/全局启用
|
|
1853
|
+
*/
|
|
1854
|
+
enabled?: boolean
|
|
1855
|
+
/**
|
|
1856
|
+
* 是否开启实时渲染,当单元格渲染量太大时应该关闭,避免卡顿
|
|
1857
|
+
*/
|
|
1858
|
+
immediate?: boolean
|
|
1859
|
+
/**
|
|
1860
|
+
* 当数据源被更改时,自动将横向滚动条滚动到左侧
|
|
1861
|
+
*/
|
|
1862
|
+
scrollToLeftOnChange?: boolean
|
|
1863
|
+
/**
|
|
1864
|
+
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
1865
|
+
*/
|
|
1866
|
+
threshold?: string | number
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
export interface VirtualYConfig {
|
|
1870
|
+
/**
|
|
1871
|
+
* 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false(注:启用纵向虚拟滚动之后将不能支持动态行高)
|
|
1872
|
+
*/
|
|
1873
|
+
gt?: number
|
|
1874
|
+
/**
|
|
1875
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)
|
|
1876
|
+
*/
|
|
1877
|
+
oSize?: number
|
|
1878
|
+
/**
|
|
1879
|
+
* 是否启用,支持局部/全局启用
|
|
1880
|
+
*/
|
|
1881
|
+
enabled?: boolean
|
|
1882
|
+
/**
|
|
1883
|
+
* 是否开启实时渲染,当单元格渲染量太大时应该关闭,避免卡顿
|
|
1884
|
+
*/
|
|
1885
|
+
immediate?: boolean
|
|
1886
|
+
/**
|
|
1887
|
+
* 当数据源被更改时,自动将纵向滚动条复原到顶部
|
|
1888
|
+
*/
|
|
1889
|
+
scrollToTopOnChange?: boolean
|
|
1890
|
+
/**
|
|
1891
|
+
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
1892
|
+
*/
|
|
1893
|
+
threshold?: string | number
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* 滚动条配置项
|
|
1898
|
+
*/
|
|
1899
|
+
export interface ScrollbarConfig {
|
|
1900
|
+
/**
|
|
1901
|
+
* 滚动宽度
|
|
1902
|
+
*/
|
|
1903
|
+
width?: number
|
|
1904
|
+
/**
|
|
1905
|
+
* 滚动宽度
|
|
1906
|
+
*/
|
|
1907
|
+
height?: number
|
|
1908
|
+
/**
|
|
1909
|
+
* 横向滚动条
|
|
1910
|
+
*/
|
|
1911
|
+
x?: {
|
|
1912
|
+
/**
|
|
1913
|
+
* 滚动显示位置
|
|
1914
|
+
*/
|
|
1915
|
+
position?: 'top' | 'bottom' | ''
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* 纵向滚动条
|
|
1919
|
+
*/
|
|
1920
|
+
y?: {
|
|
1921
|
+
/**
|
|
1922
|
+
* 滚动显示位置
|
|
1923
|
+
*/
|
|
1924
|
+
position?: 'left' | 'right' | ''
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1841
1928
|
export type Params = any
|
|
1842
1929
|
|
|
1843
1930
|
/**
|
|
@@ -2483,13 +2570,27 @@ export interface VxeTableProps<D = any> {
|
|
|
2483
2570
|
*/
|
|
2484
2571
|
loadingConfig?: VxeTablePropTypes.LoadingConfig
|
|
2485
2572
|
/**
|
|
2486
|
-
*
|
|
2573
|
+
* 已废弃,不建议使用,被 virtual-x-config 替换
|
|
2574
|
+
* @deprecated
|
|
2487
2575
|
*/
|
|
2488
2576
|
scrollX?: VxeTablePropTypes.ScrollX
|
|
2489
2577
|
/**
|
|
2490
|
-
*
|
|
2578
|
+
* 已废弃,不建议使用,被 virtual-y-config 替换
|
|
2579
|
+
* @deprecated
|
|
2491
2580
|
*/
|
|
2492
2581
|
scrollY?: VxeTablePropTypes.ScrollY
|
|
2582
|
+
/**
|
|
2583
|
+
* 横向虚拟滚动配置
|
|
2584
|
+
*/
|
|
2585
|
+
virtualXConfig?: VxeTablePropTypes.VirtualXConfig
|
|
2586
|
+
/**
|
|
2587
|
+
* 纵向虚拟滚动配置
|
|
2588
|
+
*/
|
|
2589
|
+
virtualYConfig?: VxeTablePropTypes.VirtualYConfig
|
|
2590
|
+
/**
|
|
2591
|
+
* 滚动条配置项
|
|
2592
|
+
*/
|
|
2593
|
+
scrollbarConfig?: VxeTablePropTypes.ScrollbarConfig
|
|
2493
2594
|
/**
|
|
2494
2595
|
* 自定义参数(可以用来存放一些自定义的数据)
|
|
2495
2596
|
*/
|
|
@@ -2561,9 +2662,13 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2561
2662
|
computeSize: VxeTablePropTypes.Size
|
|
2562
2663
|
computeTableId: string
|
|
2563
2664
|
computeValidOpts: VxeTablePropTypes.ValidOpts<D>
|
|
2564
|
-
|
|
2565
|
-
|
|
2665
|
+
computeVirtualXOpts: VxeTablePropTypes.VirtualXConfig
|
|
2666
|
+
computeVirtualYOpts: VxeTablePropTypes.VirtualYConfig
|
|
2667
|
+
computeScrollbarOpts: VxeTablePropTypes.ScrollbarConfig
|
|
2566
2668
|
computeColumnOpts: VxeTablePropTypes.ColumnOpts
|
|
2669
|
+
computeScrollXThreshold: number
|
|
2670
|
+
computeScrollYThreshold: number
|
|
2671
|
+
computeDefaultRowHeight: number
|
|
2567
2672
|
computeCellOpts: VxeTablePropTypes.CellConfig
|
|
2568
2673
|
computeRowOpts: VxeTablePropTypes.RowOpts
|
|
2569
2674
|
computeRowDragOpts: VxeTablePropTypes.RowDragConfig
|
|
@@ -2594,8 +2699,11 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2594
2699
|
computeTreeOpts: VxeTablePropTypes.TreeOpts<D>
|
|
2595
2700
|
computeEmptyOpts: VxeTablePropTypes.EmptyOpts
|
|
2596
2701
|
computeLoadingOpts: VxeTablePropTypes.LoadingOpts
|
|
2702
|
+
computeCellOffsetWidth: number
|
|
2597
2703
|
computeCustomOpts: VxeTablePropTypes.CustomOpts<D>
|
|
2598
2704
|
computeAutoWidthColumnList: VxeTableDefines.ColumnInfo<D>[]
|
|
2705
|
+
computeLeftFixedWidth: number
|
|
2706
|
+
computeRightFixedWidth: number
|
|
2599
2707
|
computeFixedColumnSize: number
|
|
2600
2708
|
computeIsMaxFixedColumn: boolean
|
|
2601
2709
|
computeIsAllCheckboxDisabled: boolean
|
|
@@ -2640,6 +2748,16 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2640
2748
|
x: boolean
|
|
2641
2749
|
y: boolean
|
|
2642
2750
|
}
|
|
2751
|
+
computeTableBorder: 'default' | 'full' | 'outer' | 'inner' | 'none'
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* @deprecated
|
|
2755
|
+
*/
|
|
2756
|
+
computeSXOpts: VxeTablePropTypes.SXOpts
|
|
2757
|
+
/**
|
|
2758
|
+
* @deprecated
|
|
2759
|
+
*/
|
|
2760
|
+
computeSYOpts: VxeTablePropTypes.SYOpts
|
|
2643
2761
|
}
|
|
2644
2762
|
export interface VxeTablePrivateComputed<D = any> extends TablePrivateComputed<D> { }
|
|
2645
2763
|
|
|
@@ -2875,11 +2993,11 @@ export interface TableReactData<D = any> {
|
|
|
2875
2993
|
isDragRowMove: Boolean
|
|
2876
2994
|
dragRow: any
|
|
2877
2995
|
isDragColMove: boolean
|
|
2878
|
-
dragCol:
|
|
2996
|
+
dragCol: VxeTableDefines.ColumnInfo | null
|
|
2879
2997
|
dragTipText: string
|
|
2880
2998
|
|
|
2881
2999
|
_isResize: boolean
|
|
2882
|
-
|
|
3000
|
+
isLoading: boolean
|
|
2883
3001
|
}
|
|
2884
3002
|
|
|
2885
3003
|
export interface TableInternalData<D = any> {
|
|
@@ -2889,17 +3007,22 @@ export interface TableInternalData<D = any> {
|
|
|
2889
3007
|
}
|
|
2890
3008
|
// 存放横向 X 虚拟滚动相关的信息
|
|
2891
3009
|
scrollXStore: {
|
|
3010
|
+
preloadSize: number
|
|
2892
3011
|
offsetSize: number
|
|
2893
3012
|
visibleSize: number
|
|
3013
|
+
visibleStartIndex: number
|
|
3014
|
+
visibleEndIndex: number
|
|
2894
3015
|
startIndex: number
|
|
2895
3016
|
endIndex: number
|
|
2896
3017
|
}
|
|
2897
3018
|
// 存放纵向 Y 虚拟滚动相关信息
|
|
2898
3019
|
scrollYStore: {
|
|
2899
3020
|
adaptive?: boolean
|
|
2900
|
-
|
|
3021
|
+
preloadSize: number
|
|
2901
3022
|
offsetSize: number
|
|
2902
3023
|
visibleSize: number
|
|
3024
|
+
visibleStartIndex: number
|
|
3025
|
+
visibleEndIndex: number
|
|
2903
3026
|
startIndex: number
|
|
2904
3027
|
endIndex: number
|
|
2905
3028
|
}
|
|
@@ -2969,6 +3092,8 @@ export interface TableInternalData<D = any> {
|
|
|
2969
3092
|
initStatus: boolean
|
|
2970
3093
|
isActivated: boolean
|
|
2971
3094
|
|
|
3095
|
+
keyCtxTimeout?: undefined | number
|
|
3096
|
+
|
|
2972
3097
|
// 刷新布局
|
|
2973
3098
|
rceTimeout?: undefined | number
|
|
2974
3099
|
rceRunTime?: undefined | number
|
|
@@ -2976,9 +3101,12 @@ export interface TableInternalData<D = any> {
|
|
|
2976
3101
|
// 滚动属性
|
|
2977
3102
|
intoRunScroll?: boolean
|
|
2978
3103
|
inVirtualScroll?: boolean
|
|
3104
|
+
inWheelScroll?: boolean
|
|
3105
|
+
|
|
3106
|
+
inHeaderScroll?: boolean
|
|
2979
3107
|
inBodyScroll?: boolean
|
|
2980
|
-
bodyScrollType?: '' | 'left' | 'right'
|
|
2981
3108
|
inFooterScroll?: boolean
|
|
3109
|
+
scrollRenderType?: '' | 'left' | 'right'
|
|
2982
3110
|
// 同步滚动
|
|
2983
3111
|
lcsTimeout?: undefined | number
|
|
2984
3112
|
lcsRunTime?: undefined | number
|
|
@@ -3745,7 +3873,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3745
3873
|
*/
|
|
3746
3874
|
getSetupOptions(): Required<VxeGlobalConfig>
|
|
3747
3875
|
updateAfterDataIndex(): void
|
|
3748
|
-
callSlot<T>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T, h: CreateElement): VxeComponentSlotType[]
|
|
3876
|
+
callSlot<T>(slotFunc: NormalizedScopedSlot | ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T, h: CreateElement): VxeComponentSlotType[]
|
|
3749
3877
|
getParentElem(): Element | null
|
|
3750
3878
|
getParentHeight(): number
|
|
3751
3879
|
getExcludeHeight(): number
|
|
@@ -3797,6 +3925,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3797
3925
|
triggerHeaderCellMousedownEvent(evnt: any, params: any): void
|
|
3798
3926
|
triggerCellMousedownEvent(evnt: MouseEvent, params: any): void
|
|
3799
3927
|
triggerCellMousedownEvent(evnt: any, params: any): void
|
|
3928
|
+
triggerCellMouseupEvent(evnt: MouseEvent): void
|
|
3800
3929
|
handleRowDragSwapEvent (evnt: DragEvent, isSyncRow: boolean | undefined, dragRow: any, prevDragRow: any, prevDragPos: '' | 'top' | 'bottom' | 'left' | 'right' | undefined, prevDragToChild: boolean | undefined): Promise<void>
|
|
3801
3930
|
handleRowDragDragstartEvent (evnt: DragEvent): void
|
|
3802
3931
|
handleRowDragDragendEvent(evnt: DragEvent): void
|
|
@@ -3821,6 +3950,10 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3821
3950
|
}): void
|
|
3822
3951
|
triggerScrollXEvent(evnt: Event): void
|
|
3823
3952
|
triggerScrollYEvent(evnt: Event): void
|
|
3953
|
+
triggerHeaderScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3954
|
+
triggerBodyScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3955
|
+
triggerFooterScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3956
|
+
triggerBodyWheelEvent(evnt: WheelEvent): void
|
|
3824
3957
|
scrollToTreeRow(row: any): Promise<any>
|
|
3825
3958
|
updateScrollYStatus(fullData?: any[]): boolean
|
|
3826
3959
|
updateScrollXSpace(): void
|
|
@@ -3890,6 +4023,7 @@ export type VxeTableEmits = [
|
|
|
3890
4023
|
'column-dragstart',
|
|
3891
4024
|
'column-dragover',
|
|
3892
4025
|
'column-dragend',
|
|
4026
|
+
'enter-append-row',
|
|
3893
4027
|
|
|
3894
4028
|
'edit-actived', // 已废弃
|
|
3895
4029
|
|
|
@@ -3897,6 +4031,7 @@ export type VxeTableEmits = [
|
|
|
3897
4031
|
'edit-disabled',
|
|
3898
4032
|
'valid-error',
|
|
3899
4033
|
'scroll',
|
|
4034
|
+
'scroll-boundary',
|
|
3900
4035
|
'custom',
|
|
3901
4036
|
|
|
3902
4037
|
...VxeTableProEmits
|
|
@@ -4133,19 +4268,19 @@ export namespace VxeTableDefines {
|
|
|
4133
4268
|
/**
|
|
4134
4269
|
* @private
|
|
4135
4270
|
*/
|
|
4136
|
-
renderHeader(params: CellRenderHeaderParams<D>): VNode[]
|
|
4271
|
+
renderHeader(h: CreateElement, params: CellRenderHeaderParams<D>): VNode[]
|
|
4137
4272
|
/**
|
|
4138
4273
|
* @private
|
|
4139
4274
|
*/
|
|
4140
|
-
renderCell(params: CellRenderCellParams<D>): VNode[]
|
|
4275
|
+
renderCell(h: CreateElement, params: CellRenderCellParams<D>): VNode[]
|
|
4141
4276
|
/**
|
|
4142
4277
|
* @private
|
|
4143
4278
|
*/
|
|
4144
|
-
renderData(params: CellRenderDataParams<D>): VNode[]
|
|
4279
|
+
renderData(h: CreateElement, params: CellRenderDataParams<D>): VNode[]
|
|
4145
4280
|
/**
|
|
4146
4281
|
* @private
|
|
4147
4282
|
*/
|
|
4148
|
-
renderFooter(params: CellRenderFooterParams<D>): VNode[]
|
|
4283
|
+
renderFooter(h: CreateElement, params: CellRenderFooterParams<D>): VNode[]
|
|
4149
4284
|
|
|
4150
4285
|
/**
|
|
4151
4286
|
* 获取列标题
|
|
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
|