vxe-pc-ui 4.3.69 → 4.3.71
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 +4 -3
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +6 -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 +4 -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 +4 -3
- package/types/components/table.d.ts +140 -10
- /package/es/icon/{iconfont.1736480952556.ttf → iconfont.1736736680193.ttf} +0 -0
- /package/es/icon/{iconfont.1736480952556.woff → iconfont.1736736680193.woff} +0 -0
- /package/es/icon/{iconfont.1736480952556.woff2 → iconfont.1736736680193.woff2} +0 -0
- /package/es/{iconfont.1736480952556.ttf → iconfont.1736736680193.ttf} +0 -0
- /package/es/{iconfont.1736480952556.woff → iconfont.1736736680193.woff} +0 -0
- /package/es/{iconfont.1736480952556.woff2 → iconfont.1736736680193.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1736480952556.ttf → iconfont.1736736680193.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1736480952556.woff → iconfont.1736736680193.woff} +0 -0
- /package/lib/icon/style/{iconfont.1736480952556.woff2 → iconfont.1736736680193.woff2} +0 -0
- /package/lib/{iconfont.1736480952556.ttf → iconfont.1736736680193.ttf} +0 -0
- /package/lib/{iconfont.1736480952556.woff → iconfont.1736736680193.woff} +0 -0
- /package/lib/{iconfont.1736480952556.woff2 → iconfont.1736736680193.woff2} +0 -0
|
@@ -393,9 +393,10 @@ export default defineComponent({
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
const parseFileType = (name: string) => {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
396
|
+
// 这里不用split('.').pop()因为没有后缀时会返回自身
|
|
397
|
+
const index = name.lastIndexOf('.')
|
|
398
|
+
if (index > 0) {
|
|
399
|
+
return name.substring(index + 1).toLowerCase()
|
|
399
400
|
}
|
|
400
401
|
return ''
|
|
401
402
|
}
|
|
@@ -1822,9 +1822,9 @@ export namespace VxeTablePropTypes {
|
|
|
1822
1822
|
|
|
1823
1823
|
export interface ScrollY {
|
|
1824
1824
|
/**
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1825
|
+
* 默认行为,无需设置
|
|
1826
|
+
* @deprecated
|
|
1827
|
+
* @private
|
|
1828
1828
|
*/
|
|
1829
1829
|
mode?: 'default' | 'wheel'
|
|
1830
1830
|
/**
|
|
@@ -1868,6 +1868,92 @@ export namespace VxeTablePropTypes {
|
|
|
1868
1868
|
oSize: number
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
|
+
export interface VirtualXConfig {
|
|
1872
|
+
/**
|
|
1873
|
+
* 指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false
|
|
1874
|
+
*/
|
|
1875
|
+
gt?: number
|
|
1876
|
+
/**
|
|
1877
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)
|
|
1878
|
+
*/
|
|
1879
|
+
oSize?: number
|
|
1880
|
+
/**
|
|
1881
|
+
* 是否启用,支持局部/全局启用
|
|
1882
|
+
*/
|
|
1883
|
+
enabled?: boolean
|
|
1884
|
+
/**
|
|
1885
|
+
* 是否开启实时渲染,当单元格渲染量太大时应该关闭,避免卡顿
|
|
1886
|
+
*/
|
|
1887
|
+
immediate?: boolean
|
|
1888
|
+
/**
|
|
1889
|
+
* 当数据源被更改时,自动将横向滚动条滚动到左侧
|
|
1890
|
+
*/
|
|
1891
|
+
scrollToLeftOnChange?: boolean
|
|
1892
|
+
/**
|
|
1893
|
+
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
1894
|
+
*/
|
|
1895
|
+
threshold?: string | number
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
export interface VirtualYConfig {
|
|
1899
|
+
/**
|
|
1900
|
+
* 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false(注:启用纵向虚拟滚动之后将不能支持动态行高)
|
|
1901
|
+
*/
|
|
1902
|
+
gt?: number
|
|
1903
|
+
/**
|
|
1904
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久(对于低性能浏览器可以设置大一点,减低渲染次数)
|
|
1905
|
+
*/
|
|
1906
|
+
oSize?: number
|
|
1907
|
+
/**
|
|
1908
|
+
* 是否启用,支持局部/全局启用
|
|
1909
|
+
*/
|
|
1910
|
+
enabled?: boolean
|
|
1911
|
+
/**
|
|
1912
|
+
* 是否开启实时渲染,当单元格渲染量太大时应该关闭,避免卡顿
|
|
1913
|
+
*/
|
|
1914
|
+
immediate?: boolean
|
|
1915
|
+
/**
|
|
1916
|
+
* 当数据源被更改时,自动将纵向滚动条复原到顶部
|
|
1917
|
+
*/
|
|
1918
|
+
scrollToTopOnChange?: boolean
|
|
1919
|
+
/**
|
|
1920
|
+
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
1921
|
+
*/
|
|
1922
|
+
threshold?: string | number
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* 滚动条配置项
|
|
1927
|
+
*/
|
|
1928
|
+
export interface ScrollbarConfig {
|
|
1929
|
+
/**
|
|
1930
|
+
* 滚动宽度
|
|
1931
|
+
*/
|
|
1932
|
+
width?: number
|
|
1933
|
+
/**
|
|
1934
|
+
* 滚动宽度
|
|
1935
|
+
*/
|
|
1936
|
+
height?: number
|
|
1937
|
+
/**
|
|
1938
|
+
* 横向滚动条
|
|
1939
|
+
*/
|
|
1940
|
+
x?: {
|
|
1941
|
+
/**
|
|
1942
|
+
* 滚动显示位置
|
|
1943
|
+
*/
|
|
1944
|
+
position?: 'top' | 'bottom' | ''
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* 纵向滚动条
|
|
1948
|
+
*/
|
|
1949
|
+
y?: {
|
|
1950
|
+
/**
|
|
1951
|
+
* 滚动显示位置
|
|
1952
|
+
*/
|
|
1953
|
+
position?: 'left' | 'right' | ''
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1871
1957
|
export type Params = any
|
|
1872
1958
|
|
|
1873
1959
|
/**
|
|
@@ -2510,13 +2596,27 @@ export interface VxeTableProps<D = any> {
|
|
|
2510
2596
|
*/
|
|
2511
2597
|
loadingConfig?: VxeTablePropTypes.LoadingConfig
|
|
2512
2598
|
/**
|
|
2513
|
-
*
|
|
2599
|
+
* 已废弃,不建议使用,被 virtual-x-config 替换
|
|
2600
|
+
* @deprecated
|
|
2514
2601
|
*/
|
|
2515
2602
|
scrollX?: VxeTablePropTypes.ScrollX
|
|
2516
2603
|
/**
|
|
2517
|
-
*
|
|
2604
|
+
* 已废弃,不建议使用,被 virtual-y-config 替换
|
|
2605
|
+
* @deprecated
|
|
2518
2606
|
*/
|
|
2519
2607
|
scrollY?: VxeTablePropTypes.ScrollY
|
|
2608
|
+
/**
|
|
2609
|
+
* 横向虚拟滚动配置
|
|
2610
|
+
*/
|
|
2611
|
+
virtualXConfig?: VxeTablePropTypes.VirtualXConfig
|
|
2612
|
+
/**
|
|
2613
|
+
* 纵向虚拟滚动配置
|
|
2614
|
+
*/
|
|
2615
|
+
virtualYConfig?: VxeTablePropTypes.VirtualYConfig
|
|
2616
|
+
/**
|
|
2617
|
+
* 滚动条配置项
|
|
2618
|
+
*/
|
|
2619
|
+
scrollbarConfig?: VxeTablePropTypes.ScrollbarConfig
|
|
2520
2620
|
/**
|
|
2521
2621
|
* 自定义参数(可以用来存放一些自定义的数据)
|
|
2522
2622
|
*/
|
|
@@ -2588,9 +2688,13 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2588
2688
|
computeSize: ComputedRef<VxeTablePropTypes.Size>
|
|
2589
2689
|
computeTableId: ComputedRef<string>
|
|
2590
2690
|
computeValidOpts: ComputedRef<VxeTablePropTypes.ValidOpts<D>>
|
|
2591
|
-
|
|
2592
|
-
|
|
2691
|
+
computeVirtualXOpts: ComputedRef<VxeTablePropTypes.VirtualXConfig>
|
|
2692
|
+
computeVirtualYOpts: ComputedRef<VxeTablePropTypes.VirtualYConfig>
|
|
2693
|
+
computeScrollbarOpts: ComputedRef<VxeTablePropTypes.ScrollbarConfig>
|
|
2593
2694
|
computeColumnOpts: ComputedRef<VxeTablePropTypes.ColumnOpts>
|
|
2695
|
+
computeScrollXThreshold: ComputedRef<number>
|
|
2696
|
+
computeScrollYThreshold: ComputedRef<number>
|
|
2697
|
+
computeDefaultRowHeight: ComputedRef<number>
|
|
2594
2698
|
computeCellOpts: ComputedRef<VxeTablePropTypes.CellConfig>
|
|
2595
2699
|
computeRowOpts: ComputedRef<VxeTablePropTypes.RowOpts>
|
|
2596
2700
|
computeRowDragOpts: ComputedRef<VxeTablePropTypes.RowDragConfig>
|
|
@@ -2621,7 +2725,10 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2621
2725
|
computeTreeOpts: ComputedRef<VxeTablePropTypes.TreeOpts<D>>
|
|
2622
2726
|
computeEmptyOpts: ComputedRef<VxeTablePropTypes.EmptyOpts>
|
|
2623
2727
|
computeLoadingOpts: ComputedRef<VxeTablePropTypes.LoadingOpts>
|
|
2728
|
+
computeCellOffsetWidth: ComputedRef<number>
|
|
2624
2729
|
computeCustomOpts: ComputedRef<VxeTablePropTypes.CustomOpts<D>>
|
|
2730
|
+
computeLeftFixedWidth: ComputedRef<number>
|
|
2731
|
+
computeRightFixedWidth: ComputedRef<number>
|
|
2625
2732
|
computeFixedColumnSize: ComputedRef<number>
|
|
2626
2733
|
computeIsMaxFixedColumn: ComputedRef<boolean>
|
|
2627
2734
|
computeIsAllCheckboxDisabled: ComputedRef<boolean>
|
|
@@ -2629,6 +2736,15 @@ export interface TablePrivateComputed<D = any> {
|
|
|
2629
2736
|
x: boolean
|
|
2630
2737
|
y: boolean
|
|
2631
2738
|
}>
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* @deprecated
|
|
2742
|
+
*/
|
|
2743
|
+
computeSXOpts: ComputedRef<VxeTablePropTypes.SXOpts>
|
|
2744
|
+
/**
|
|
2745
|
+
* @deprecated
|
|
2746
|
+
*/
|
|
2747
|
+
computeSYOpts: ComputedRef<VxeTablePropTypes.SYOpts>
|
|
2632
2748
|
}
|
|
2633
2749
|
export interface VxeTablePrivateComputed extends TablePrivateComputed { }
|
|
2634
2750
|
|
|
@@ -2868,7 +2984,7 @@ export interface TableReactData<D = any> {
|
|
|
2868
2984
|
dragTipText: string
|
|
2869
2985
|
|
|
2870
2986
|
_isResize: boolean
|
|
2871
|
-
|
|
2987
|
+
isLoading: boolean
|
|
2872
2988
|
}
|
|
2873
2989
|
|
|
2874
2990
|
export interface TableInternalData<D = any> {
|
|
@@ -2878,17 +2994,22 @@ export interface TableInternalData<D = any> {
|
|
|
2878
2994
|
}
|
|
2879
2995
|
// 存放横向 X 虚拟滚动相关的信息
|
|
2880
2996
|
scrollXStore: {
|
|
2997
|
+
preloadSize: number
|
|
2881
2998
|
offsetSize: number
|
|
2882
2999
|
visibleSize: number
|
|
3000
|
+
visibleStartIndex: number
|
|
3001
|
+
visibleEndIndex: number
|
|
2883
3002
|
startIndex: number
|
|
2884
3003
|
endIndex: number
|
|
2885
3004
|
}
|
|
2886
3005
|
// 存放纵向 Y 虚拟滚动相关信息
|
|
2887
3006
|
scrollYStore: {
|
|
2888
3007
|
adaptive?: boolean
|
|
2889
|
-
|
|
3008
|
+
preloadSize: number
|
|
2890
3009
|
offsetSize: number
|
|
2891
3010
|
visibleSize: number
|
|
3011
|
+
visibleStartIndex: number
|
|
3012
|
+
visibleEndIndex: number
|
|
2892
3013
|
startIndex: number
|
|
2893
3014
|
endIndex: number
|
|
2894
3015
|
}
|
|
@@ -2958,6 +3079,8 @@ export interface TableInternalData<D = any> {
|
|
|
2958
3079
|
initStatus: boolean
|
|
2959
3080
|
isActivated: boolean
|
|
2960
3081
|
|
|
3082
|
+
keyCtxTimeout?: undefined | number
|
|
3083
|
+
|
|
2961
3084
|
// 刷新布局
|
|
2962
3085
|
rceTimeout?: undefined | number
|
|
2963
3086
|
rceRunTime?: undefined | number
|
|
@@ -2965,9 +3088,12 @@ export interface TableInternalData<D = any> {
|
|
|
2965
3088
|
// 滚动属性
|
|
2966
3089
|
intoRunScroll?: boolean
|
|
2967
3090
|
inVirtualScroll?: boolean
|
|
3091
|
+
inWheelScroll?: boolean
|
|
3092
|
+
|
|
3093
|
+
inHeaderScroll?: boolean
|
|
2968
3094
|
inBodyScroll?: boolean
|
|
2969
|
-
bodyScrollType?: '' | 'left' | 'right'
|
|
2970
3095
|
inFooterScroll?: boolean
|
|
3096
|
+
scrollRenderType?: '' | 'left' | 'right'
|
|
2971
3097
|
// 同步滚动
|
|
2972
3098
|
lcsTimeout?: undefined | number
|
|
2973
3099
|
lcsRunTime?: undefined | number
|
|
@@ -3812,6 +3938,10 @@ export interface TablePrivateMethods<D = any> {
|
|
|
3812
3938
|
}): void
|
|
3813
3939
|
triggerScrollXEvent(evnt: Event): void
|
|
3814
3940
|
triggerScrollYEvent(evnt: Event): void
|
|
3941
|
+
triggerHeaderScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3942
|
+
triggerBodyScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3943
|
+
triggerFooterScrollEvent(evnt: Event, fixedType: 'right' | 'left' | ''): void
|
|
3944
|
+
triggerBodyWheelEvent(evnt: WheelEvent): void
|
|
3815
3945
|
scrollToTreeRow(row: any): Promise<any>
|
|
3816
3946
|
updateScrollYStatus(fullData?: any[]): boolean
|
|
3817
3947
|
updateScrollXSpace(): void
|
|
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
|