vxe-pc-ui 4.19.6 → 4.19.8
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/dist/all.esm.js +2206 -2111
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/card/src/card.js +35 -12
- package/es/card/style.css +42 -44
- package/es/card/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/list/src/list.js +6 -2
- package/es/row/src/col.js +39 -18
- package/es/row/src/row.js +34 -16
- package/es/row/style.css +101 -24
- package/es/row/style.min.css +1 -1
- package/es/scrollbar/src/scrollbar.js +11 -1
- package/es/scrollbar/style.css +5 -5
- package/es/scrollbar/style.min.css +1 -1
- package/es/space/style.css +1 -0
- package/es/space/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/src/tabs.js +27 -8
- package/es/tabs/style.css +4 -2
- package/es/tabs/style.min.css +1 -1
- package/es/tree/src/tree.js +6 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-card/style.css +42 -44
- package/es/vxe-card/style.min.css +1 -1
- package/es/vxe-row/style.css +101 -24
- package/es/vxe-row/style.min.css +1 -1
- package/es/vxe-scrollbar/style.css +5 -5
- package/es/vxe-scrollbar/style.min.css +1 -1
- package/es/vxe-space/style.css +1 -0
- package/es/vxe-space/style.min.css +1 -1
- package/es/vxe-tabs/style.css +4 -2
- package/es/vxe-tabs/style.min.css +1 -1
- package/lib/card/src/card.js +42 -6
- package/lib/card/src/card.min.js +1 -1
- package/lib/card/style/style.css +42 -44
- package/lib/card/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 +2600 -2463
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +5 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/row/src/col.js +43 -17
- package/lib/row/src/col.min.js +1 -1
- package/lib/row/src/row.js +38 -14
- package/lib/row/src/row.min.js +1 -1
- package/lib/row/style/style.css +101 -24
- package/lib/row/style/style.min.css +1 -1
- package/lib/scrollbar/src/scrollbar.js +11 -0
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/scrollbar/style/style.css +5 -5
- package/lib/scrollbar/style/style.min.css +1 -1
- package/lib/space/style/style.css +1 -0
- package/lib/space/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tabs/src/tabs.js +40 -8
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tabs/style/style.css +4 -2
- package/lib/tabs/style/style.min.css +1 -1
- package/lib/tree/src/tree.js +5 -1
- package/lib/tree/src/tree.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/vxe-card/style/style.css +42 -44
- package/lib/vxe-card/style/style.min.css +1 -1
- package/lib/vxe-row/style/style.css +101 -24
- package/lib/vxe-row/style/style.min.css +1 -1
- package/lib/vxe-scrollbar/style/style.css +5 -5
- package/lib/vxe-scrollbar/style/style.min.css +1 -1
- package/lib/vxe-space/style/style.css +1 -0
- package/lib/vxe-space/style/style.min.css +1 -1
- package/lib/vxe-tabs/style/style.css +4 -2
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/card/src/card.ts +55 -12
- package/packages/list/src/list.ts +6 -2
- package/packages/row/src/col.ts +41 -18
- package/packages/row/src/row.ts +36 -17
- package/packages/scrollbar/src/scrollbar.ts +13 -1
- package/packages/tabs/src/tabs.ts +34 -8
- package/packages/tree/src/tree.ts +6 -2
- package/styles/components/card.scss +44 -58
- package/styles/components/row.scss +21 -3
- package/styles/components/scrollbar.scss +15 -11
- package/styles/components/space.scss +1 -0
- package/styles/components/tabs.scss +2 -1
- package/types/components/card.d.ts +11 -0
- package/types/components/grid.d.ts +37 -0
- package/types/components/layout-aside.d.ts +6 -0
- package/types/components/layout-body.d.ts +6 -0
- package/types/components/menu.d.ts +6 -0
- package/types/components/row.d.ts +2 -0
- package/types/components/table.d.ts +1 -2
- package/types/components/tabs.d.ts +11 -0
- /package/es/icon/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
- /package/es/icon/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
- /package/es/icon/{iconfont.1791769645781.woff2 → iconfont.1791862962954.woff2} +0 -0
- /package/es/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
- /package/es/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
- /package/es/{iconfont.1791769645781.woff2 → iconfont.1791862962954.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791769645781.woff2 → iconfont.1791862962954.woff2} +0 -0
- /package/lib/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
- /package/lib/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
- /package/lib/{iconfont.1791769645781.woff2 → iconfont.1791862962954.woff2} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use '../helpers/baseMixin.scss';
|
|
2
2
|
|
|
3
3
|
.vxe-scrollbar {
|
|
4
|
-
width: 100%;
|
|
5
4
|
position: relative;
|
|
6
5
|
&.is--virtual {
|
|
7
6
|
& > .vxe-scrollbar--view {
|
|
@@ -74,6 +73,7 @@
|
|
|
74
73
|
display: none;
|
|
75
74
|
position: absolute;
|
|
76
75
|
background-color: var(--vxe-ui-scrollbar-track-background-color);
|
|
76
|
+
overflow: hidden;
|
|
77
77
|
user-select: none;
|
|
78
78
|
}
|
|
79
79
|
.vxe-scrollbar {
|
|
@@ -152,17 +152,21 @@
|
|
|
152
152
|
|
|
153
153
|
.vxe-scrollbar {
|
|
154
154
|
&.is--padding {
|
|
155
|
-
&.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
padding-left: var(--vxe-ui-scrollbar-y-width);
|
|
155
|
+
&.overflow-x {
|
|
156
|
+
&.sx-pos--top {
|
|
157
|
+
padding-top: var(--vxe-ui-scrollbar-x-height);
|
|
158
|
+
}
|
|
159
|
+
&.sx-pos--bottom {
|
|
160
|
+
padding-bottom: var(--vxe-ui-scrollbar-x-height);
|
|
161
|
+
}
|
|
163
162
|
}
|
|
164
|
-
&.
|
|
165
|
-
|
|
163
|
+
&.overflow-y {
|
|
164
|
+
&.sy-pos--left {
|
|
165
|
+
padding-left: var(--vxe-ui-scrollbar-y-width);
|
|
166
|
+
}
|
|
167
|
+
&.sy-pos--right {
|
|
168
|
+
padding-right: var(--vxe-ui-scrollbar-y-width);
|
|
169
|
+
}
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
172
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
2
|
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
|
|
3
|
+
import { VxeScrollbarProps } from './scrollbar'
|
|
3
4
|
|
|
4
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
6
|
|
|
@@ -32,6 +33,8 @@ export namespace VxeCardPropTypes {
|
|
|
32
33
|
export type Shadow = boolean
|
|
33
34
|
export type Padding = boolean
|
|
34
35
|
export type Size = VxeComponentSizeType
|
|
36
|
+
export type UseScrollbar = boolean
|
|
37
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'native' | 'yConfig' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {}
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export type VxeCardProps = {
|
|
@@ -44,6 +47,14 @@ export type VxeCardProps = {
|
|
|
44
47
|
shadow?: VxeCardPropTypes.Shadow
|
|
45
48
|
padding?: VxeCardPropTypes.Padding
|
|
46
49
|
size?: VxeCardPropTypes.Size
|
|
50
|
+
/**
|
|
51
|
+
* 使用虚拟滚动条
|
|
52
|
+
*/
|
|
53
|
+
useScrollbar?: VxeCardPropTypes.UseScrollbar
|
|
54
|
+
/**
|
|
55
|
+
* 滚动条配置项
|
|
56
|
+
*/
|
|
57
|
+
scrollbarConfig?: VxeCardPropTypes.ScrollbarConfig
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
export interface CardPrivateComputed {
|
|
@@ -661,13 +661,50 @@ export interface GridMethods<D = any> {
|
|
|
661
661
|
export interface VxeGridMethods<D = any> extends GridMethods<D>, Omit<TableMethods<D>, 'dispatchEvent'> { }
|
|
662
662
|
|
|
663
663
|
export interface GridPrivateMethods<D = any> {
|
|
664
|
+
/**
|
|
665
|
+
* 内部方法
|
|
666
|
+
* @private
|
|
667
|
+
*/
|
|
664
668
|
callSlot<T = any>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
|
|
669
|
+
/**
|
|
670
|
+
* 内部方法
|
|
671
|
+
* @private
|
|
672
|
+
*/
|
|
665
673
|
extendTableMethods<T>(methodKeys: T[]): any
|
|
674
|
+
/**
|
|
675
|
+
* 内部方法
|
|
676
|
+
* @private
|
|
677
|
+
*/
|
|
666
678
|
triggerToolbarCommitEvent(params: VxeToolbarPropTypes.ButtonConfig | VxeToolbarPropTypes.ToolConfig, evnt: Event): Promise<any>
|
|
679
|
+
/**
|
|
680
|
+
* 内部方法
|
|
681
|
+
* @private
|
|
682
|
+
*/
|
|
667
683
|
triggerToolbarBtnEvent(button: VxeToolbarPropTypes.ButtonConfig, evnt: Event): void
|
|
684
|
+
/**
|
|
685
|
+
* 内部方法
|
|
686
|
+
* @private
|
|
687
|
+
*/
|
|
668
688
|
triggerToolbarTolEvent(button: VxeToolbarPropTypes.ToolConfig, evnt: Event): void
|
|
689
|
+
/**
|
|
690
|
+
* 内部方法
|
|
691
|
+
* @private
|
|
692
|
+
*/
|
|
669
693
|
triggerZoomEvent(evnt: Event): void
|
|
694
|
+
/**
|
|
695
|
+
* 内部方法
|
|
696
|
+
* @private
|
|
697
|
+
*/
|
|
698
|
+
getParentElem(): HTMLElement | null
|
|
699
|
+
/**
|
|
700
|
+
* 内部方法
|
|
701
|
+
* @private
|
|
702
|
+
*/
|
|
670
703
|
getParentHeight(): number
|
|
704
|
+
/**
|
|
705
|
+
* 内部方法
|
|
706
|
+
* @private
|
|
707
|
+
*/
|
|
671
708
|
getExcludeHeight(): number
|
|
672
709
|
}
|
|
673
710
|
export interface VxeGridPrivateMethods<D = any> extends GridPrivateMethods<D> { }
|
|
@@ -48,7 +48,13 @@ export interface VxeLayoutAsideProps {
|
|
|
48
48
|
padding?: VxeLayoutAsidePropTypes.Padding
|
|
49
49
|
size?: VxeLayoutAsidePropTypes.Size
|
|
50
50
|
collapseConfig?: VxeLayoutAsidePropTypes.CollapseConfig
|
|
51
|
+
/**
|
|
52
|
+
* 使用虚拟滚动条
|
|
53
|
+
*/
|
|
51
54
|
useScrollbar?: VxeLayoutAsidePropTypes.UseScrollbar
|
|
55
|
+
/**
|
|
56
|
+
* 滚动条配置项
|
|
57
|
+
*/
|
|
52
58
|
scrollbarConfig?: VxeLayoutAsidePropTypes.ScrollbarConfig
|
|
53
59
|
}
|
|
54
60
|
export interface LayoutAsidePrivateComputed {
|
|
@@ -40,7 +40,13 @@ export interface VxeLayoutBodyProps {
|
|
|
40
40
|
padding?: VxeLayoutBodyPropTypes.Padding
|
|
41
41
|
showBacktop?: VxeLayoutBodyPropTypes.ShowBacktop
|
|
42
42
|
backtopConfig?: VxeLayoutBodyPropTypes.BacktopConfig
|
|
43
|
+
/**
|
|
44
|
+
* 使用虚拟滚动条
|
|
45
|
+
*/
|
|
43
46
|
useScrollbar?: VxeLayoutBodyPropTypes.UseScrollbar
|
|
47
|
+
/**
|
|
48
|
+
* 滚动条配置项
|
|
49
|
+
*/
|
|
44
50
|
scrollbarConfig?: VxeLayoutBodyPropTypes.ScrollbarConfig
|
|
45
51
|
}
|
|
46
52
|
|
|
@@ -109,7 +109,13 @@ export interface VxeMenuProps {
|
|
|
109
109
|
expandKeys?: VxeMenuPropTypes.ExpandKeys
|
|
110
110
|
options?: VxeMenuPropTypes.Options
|
|
111
111
|
menuConfig?: VxeMenuPropTypes.MenuConfig
|
|
112
|
+
/**
|
|
113
|
+
* 使用虚拟滚动条
|
|
114
|
+
*/
|
|
112
115
|
useScrollbar?: VxeMenuPropTypes.UseScrollbar
|
|
116
|
+
/**
|
|
117
|
+
* 滚动条配置项
|
|
118
|
+
*/
|
|
113
119
|
scrollbarConfig?: VxeMenuPropTypes.ScrollbarConfig
|
|
114
120
|
/**
|
|
115
121
|
* 挂载到指定元素下
|
|
@@ -23,6 +23,7 @@ export interface RowPrivateRef {
|
|
|
23
23
|
export interface VxeRowPrivateRef extends RowPrivateRef { }
|
|
24
24
|
|
|
25
25
|
export namespace VxeRowPropTypes {
|
|
26
|
+
export type GridLayout = boolean
|
|
26
27
|
export type Gutter = string | number | (string | number)[]
|
|
27
28
|
export type Wrap = boolean
|
|
28
29
|
export type Vertical = boolean
|
|
@@ -30,6 +31,7 @@ export namespace VxeRowPropTypes {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export type VxeRowProps = {
|
|
34
|
+
gridLayout?: VxeRowPropTypes.GridLayout
|
|
33
35
|
gutter?: VxeRowPropTypes.Gutter
|
|
34
36
|
wrap?: VxeRowPropTypes.Wrap
|
|
35
37
|
vertical?: VxeRowPropTypes.Vertical
|
|
@@ -5514,12 +5514,11 @@ export interface TablePrivateMethods<D = any> {
|
|
|
5514
5514
|
* @private
|
|
5515
5515
|
*/
|
|
5516
5516
|
callSlot<T>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
|
|
5517
|
-
|
|
5518
5517
|
/**
|
|
5519
5518
|
* 内部方法
|
|
5520
5519
|
* @private
|
|
5521
5520
|
*/
|
|
5522
|
-
getParentElem():
|
|
5521
|
+
getParentElem(): HTMLElement | null
|
|
5523
5522
|
/**
|
|
5524
5523
|
* 内部方法
|
|
5525
5524
|
* @private
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
2
|
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
|
|
3
3
|
import { VxeTabPaneProps, VxeTabPaneDefines, VxeTabPanePropTypes } from './tab-pane'
|
|
4
|
+
import { VxeScrollbarProps } from './scrollbar'
|
|
4
5
|
|
|
5
6
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
6
7
|
|
|
@@ -112,6 +113,8 @@ export namespace VxeTabsPropTypes {
|
|
|
112
113
|
option: Omit<VxeTabPaneProps, 'slots'>
|
|
113
114
|
}) => boolean
|
|
114
115
|
}
|
|
116
|
+
export type UseScrollbar = boolean
|
|
117
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'native' | 'yConfig' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {}
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
export type VxeTabsProps = {
|
|
@@ -138,6 +141,14 @@ export type VxeTabsProps = {
|
|
|
138
141
|
* 刷新配置项
|
|
139
142
|
*/
|
|
140
143
|
refreshConfig?: VxeTabsPropTypes.RefreshConfig
|
|
144
|
+
/**
|
|
145
|
+
* 使用虚拟滚动条
|
|
146
|
+
*/
|
|
147
|
+
useScrollbar?: VxeTabsPropTypes.UseScrollbar
|
|
148
|
+
/**
|
|
149
|
+
* 滚动条配置项
|
|
150
|
+
*/
|
|
151
|
+
scrollbarConfig?: VxeTabsPropTypes.ScrollbarConfig
|
|
141
152
|
|
|
142
153
|
/**
|
|
143
154
|
* 请使用 closeConfig.beforeMethod
|
|
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
|