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.
Files changed (112) hide show
  1. package/dist/all.esm.js +2206 -2111
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/card/src/card.js +35 -12
  5. package/es/card/style.css +42 -44
  6. package/es/card/style.min.css +1 -1
  7. package/es/icon/style.css +1 -1
  8. package/es/list/src/list.js +6 -2
  9. package/es/row/src/col.js +39 -18
  10. package/es/row/src/row.js +34 -16
  11. package/es/row/style.css +101 -24
  12. package/es/row/style.min.css +1 -1
  13. package/es/scrollbar/src/scrollbar.js +11 -1
  14. package/es/scrollbar/style.css +5 -5
  15. package/es/scrollbar/style.min.css +1 -1
  16. package/es/space/style.css +1 -0
  17. package/es/space/style.min.css +1 -1
  18. package/es/style.css +1 -1
  19. package/es/style.min.css +1 -1
  20. package/es/tabs/src/tabs.js +27 -8
  21. package/es/tabs/style.css +4 -2
  22. package/es/tabs/style.min.css +1 -1
  23. package/es/tree/src/tree.js +6 -2
  24. package/es/ui/index.js +1 -1
  25. package/es/ui/src/log.js +1 -1
  26. package/es/vxe-card/style.css +42 -44
  27. package/es/vxe-card/style.min.css +1 -1
  28. package/es/vxe-row/style.css +101 -24
  29. package/es/vxe-row/style.min.css +1 -1
  30. package/es/vxe-scrollbar/style.css +5 -5
  31. package/es/vxe-scrollbar/style.min.css +1 -1
  32. package/es/vxe-space/style.css +1 -0
  33. package/es/vxe-space/style.min.css +1 -1
  34. package/es/vxe-tabs/style.css +4 -2
  35. package/es/vxe-tabs/style.min.css +1 -1
  36. package/lib/card/src/card.js +42 -6
  37. package/lib/card/src/card.min.js +1 -1
  38. package/lib/card/style/style.css +42 -44
  39. package/lib/card/style/style.min.css +1 -1
  40. package/lib/icon/style/style.css +1 -1
  41. package/lib/icon/style/style.min.css +1 -1
  42. package/lib/index.umd.js +2600 -2463
  43. package/lib/index.umd.min.js +1 -1
  44. package/lib/list/src/list.js +5 -1
  45. package/lib/list/src/list.min.js +1 -1
  46. package/lib/row/src/col.js +43 -17
  47. package/lib/row/src/col.min.js +1 -1
  48. package/lib/row/src/row.js +38 -14
  49. package/lib/row/src/row.min.js +1 -1
  50. package/lib/row/style/style.css +101 -24
  51. package/lib/row/style/style.min.css +1 -1
  52. package/lib/scrollbar/src/scrollbar.js +11 -0
  53. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  54. package/lib/scrollbar/style/style.css +5 -5
  55. package/lib/scrollbar/style/style.min.css +1 -1
  56. package/lib/space/style/style.css +1 -0
  57. package/lib/space/style/style.min.css +1 -1
  58. package/lib/style.css +1 -1
  59. package/lib/style.min.css +1 -1
  60. package/lib/tabs/src/tabs.js +40 -8
  61. package/lib/tabs/src/tabs.min.js +1 -1
  62. package/lib/tabs/style/style.css +4 -2
  63. package/lib/tabs/style/style.min.css +1 -1
  64. package/lib/tree/src/tree.js +5 -1
  65. package/lib/tree/src/tree.min.js +1 -1
  66. package/lib/ui/index.js +1 -1
  67. package/lib/ui/index.min.js +1 -1
  68. package/lib/ui/src/log.js +1 -1
  69. package/lib/ui/src/log.min.js +1 -1
  70. package/lib/vxe-card/style/style.css +42 -44
  71. package/lib/vxe-card/style/style.min.css +1 -1
  72. package/lib/vxe-row/style/style.css +101 -24
  73. package/lib/vxe-row/style/style.min.css +1 -1
  74. package/lib/vxe-scrollbar/style/style.css +5 -5
  75. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  76. package/lib/vxe-space/style/style.css +1 -0
  77. package/lib/vxe-space/style/style.min.css +1 -1
  78. package/lib/vxe-tabs/style/style.css +4 -2
  79. package/lib/vxe-tabs/style/style.min.css +1 -1
  80. package/package.json +1 -1
  81. package/packages/card/src/card.ts +55 -12
  82. package/packages/list/src/list.ts +6 -2
  83. package/packages/row/src/col.ts +41 -18
  84. package/packages/row/src/row.ts +36 -17
  85. package/packages/scrollbar/src/scrollbar.ts +13 -1
  86. package/packages/tabs/src/tabs.ts +34 -8
  87. package/packages/tree/src/tree.ts +6 -2
  88. package/styles/components/card.scss +44 -58
  89. package/styles/components/row.scss +21 -3
  90. package/styles/components/scrollbar.scss +15 -11
  91. package/styles/components/space.scss +1 -0
  92. package/styles/components/tabs.scss +2 -1
  93. package/types/components/card.d.ts +11 -0
  94. package/types/components/grid.d.ts +37 -0
  95. package/types/components/layout-aside.d.ts +6 -0
  96. package/types/components/layout-body.d.ts +6 -0
  97. package/types/components/menu.d.ts +6 -0
  98. package/types/components/row.d.ts +2 -0
  99. package/types/components/table.d.ts +1 -2
  100. package/types/components/tabs.d.ts +11 -0
  101. /package/es/icon/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
  102. /package/es/icon/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
  103. /package/es/icon/{iconfont.1791769645781.woff2 → iconfont.1791862962954.woff2} +0 -0
  104. /package/es/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
  105. /package/es/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
  106. /package/es/{iconfont.1791769645781.woff2 → iconfont.1791862962954.woff2} +0 -0
  107. /package/lib/icon/style/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
  108. /package/lib/icon/style/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
  109. /package/lib/icon/style/{iconfont.1791769645781.woff2 → iconfont.1791862962954.woff2} +0 -0
  110. /package/lib/{iconfont.1791769645781.ttf → iconfont.1791862962954.ttf} +0 -0
  111. /package/lib/{iconfont.1791769645781.woff → iconfont.1791862962954.woff} +0 -0
  112. /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
- &.sx-pos--top {
156
- padding-top: var(--vxe-ui-scrollbar-x-height);
157
- }
158
- &.sx-pos--bottom {
159
- padding-bottom: var(--vxe-ui-scrollbar-x-height);
160
- }
161
- &.sy-pos--left {
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
- &.sy-pos--right {
165
- padding-right: var(--vxe-ui-scrollbar-y-width);
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
  }
@@ -38,6 +38,7 @@
38
38
  &.is--fill {
39
39
  & > .vxe-space--item {
40
40
  flex-grow: 1;
41
+ min-width: 100%;
41
42
  }
42
43
  }
43
44
  }
@@ -470,7 +470,8 @@ $scrollbarOffsetSize: 20px;
470
470
  overflow: auto;
471
471
  }
472
472
 
473
- .vxe-tabs-pane--item {
473
+ .vxe-tabs-pane--item,
474
+ .vxe-tabs-pane--scrollbar-item {
474
475
  display: none;
475
476
  height: 100%;
476
477
  overflow: auto;
@@ -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(): Element | null
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