vxe-pc-ui 3.19.7 → 3.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 (82) hide show
  1. package/es/card/src/card.js +48 -11
  2. package/es/card/style.css +42 -44
  3. package/es/card/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/list/src/list.js +6 -2
  6. package/es/scrollbar/src/scrollbar.js +6 -0
  7. package/es/scrollbar/style.css +5 -5
  8. package/es/scrollbar/style.min.css +1 -1
  9. package/es/style.css +1 -1
  10. package/es/style.min.css +1 -1
  11. package/es/tabs/src/tabs.js +35 -8
  12. package/es/tabs/style.css +4 -2
  13. package/es/tabs/style.min.css +1 -1
  14. package/es/tree/src/tree.js +6 -2
  15. package/es/ui/index.js +1 -1
  16. package/es/ui/src/log.js +1 -1
  17. package/es/vxe-card/style.css +42 -44
  18. package/es/vxe-card/style.min.css +1 -1
  19. package/es/vxe-scrollbar/style.css +5 -5
  20. package/es/vxe-scrollbar/style.min.css +1 -1
  21. package/es/vxe-tabs/style.css +4 -2
  22. package/es/vxe-tabs/style.min.css +1 -1
  23. package/lib/card/src/card.js +55 -5
  24. package/lib/card/src/card.min.js +1 -1
  25. package/lib/card/style/style.css +42 -44
  26. package/lib/card/style/style.min.css +1 -1
  27. package/lib/icon/style/style.css +1 -1
  28. package/lib/icon/style/style.min.css +1 -1
  29. package/lib/index.umd.js +5611 -5510
  30. package/lib/index.umd.min.js +1 -1
  31. package/lib/list/src/list.js +4 -0
  32. package/lib/list/src/list.min.js +1 -1
  33. package/lib/scrollbar/src/scrollbar.js +6 -0
  34. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  35. package/lib/scrollbar/style/style.css +5 -5
  36. package/lib/scrollbar/style/style.min.css +1 -1
  37. package/lib/style.css +1 -1
  38. package/lib/style.min.css +1 -1
  39. package/lib/tabs/src/tabs.js +45 -8
  40. package/lib/tabs/src/tabs.min.js +1 -1
  41. package/lib/tabs/style/style.css +4 -2
  42. package/lib/tabs/style/style.min.css +1 -1
  43. package/lib/tree/src/tree.js +4 -0
  44. package/lib/tree/src/tree.min.js +1 -1
  45. package/lib/ui/index.js +1 -1
  46. package/lib/ui/index.min.js +1 -1
  47. package/lib/ui/src/log.js +1 -1
  48. package/lib/ui/src/log.min.js +1 -1
  49. package/lib/vxe-card/style/style.css +42 -44
  50. package/lib/vxe-card/style/style.min.css +1 -1
  51. package/lib/vxe-scrollbar/style/style.css +5 -5
  52. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  53. package/lib/vxe-tabs/style/style.css +4 -2
  54. package/lib/vxe-tabs/style/style.min.css +1 -1
  55. package/package.json +1 -1
  56. package/packages/card/src/card.ts +65 -11
  57. package/packages/list/src/list.ts +6 -2
  58. package/packages/scrollbar/src/scrollbar.ts +6 -0
  59. package/packages/tabs/src/tabs.ts +40 -8
  60. package/packages/tree/src/tree.ts +6 -2
  61. package/styles/components/card.scss +44 -58
  62. package/styles/components/scrollbar.scss +15 -11
  63. package/styles/components/tabs.scss +2 -1
  64. package/types/components/card.d.ts +11 -0
  65. package/types/components/grid.d.ts +37 -0
  66. package/types/components/layout-aside.d.ts +6 -0
  67. package/types/components/layout-body.d.ts +6 -0
  68. package/types/components/menu.d.ts +6 -0
  69. package/types/components/table.d.ts +3 -4
  70. package/types/components/tabs.d.ts +11 -0
  71. /package/es/icon/{iconfont.1791794439953.ttf → iconfont.1791862954819.ttf} +0 -0
  72. /package/es/icon/{iconfont.1791794439953.woff → iconfont.1791862954819.woff} +0 -0
  73. /package/es/icon/{iconfont.1791794439953.woff2 → iconfont.1791862954819.woff2} +0 -0
  74. /package/es/{iconfont.1791794439953.ttf → iconfont.1791862954819.ttf} +0 -0
  75. /package/es/{iconfont.1791794439953.woff → iconfont.1791862954819.woff} +0 -0
  76. /package/es/{iconfont.1791794439953.woff2 → iconfont.1791862954819.woff2} +0 -0
  77. /package/lib/icon/style/{iconfont.1791794439953.ttf → iconfont.1791862954819.ttf} +0 -0
  78. /package/lib/icon/style/{iconfont.1791794439953.woff → iconfont.1791862954819.woff} +0 -0
  79. /package/lib/icon/style/{iconfont.1791794439953.woff2 → iconfont.1791862954819.woff2} +0 -0
  80. /package/lib/{iconfont.1791794439953.ttf → iconfont.1791862954819.ttf} +0 -0
  81. /package/lib/{iconfont.1791794439953.woff → iconfont.1791862954819.woff} +0 -0
  82. /package/lib/{iconfont.1791794439953.woff2 → iconfont.1791862954819.woff2} +0 -0
@@ -41,7 +41,13 @@ export interface VxeLayoutAsideProps {
41
41
  padding?: VxeLayoutAsidePropTypes.Padding
42
42
  size?: VxeLayoutAsidePropTypes.Size
43
43
  collapseConfig?: VxeLayoutAsidePropTypes.CollapseConfig
44
+ /**
45
+ * 使用虚拟滚动条
46
+ */
44
47
  useScrollbar?: VxeLayoutAsidePropTypes.UseScrollbar
48
+ /**
49
+ * 滚动条配置项
50
+ */
45
51
  scrollbarConfig?: VxeLayoutAsidePropTypes.ScrollbarConfig
46
52
  }
47
53
 
@@ -33,7 +33,13 @@ export interface VxeLayoutBodyProps {
33
33
  padding?: VxeLayoutBodyPropTypes.Padding
34
34
  showBacktop?: VxeLayoutBodyPropTypes.ShowBacktop
35
35
  backtopConfig?: VxeLayoutBodyPropTypes.BacktopConfig
36
+ /**
37
+ * 使用虚拟滚动条
38
+ */
36
39
  useScrollbar?: VxeLayoutBodyPropTypes.UseScrollbar
40
+ /**
41
+ * 滚动条配置项
42
+ */
37
43
  scrollbarConfig?: VxeLayoutBodyPropTypes.ScrollbarConfig
38
44
  }
39
45
 
@@ -103,7 +103,13 @@ export interface VxeMenuProps {
103
103
  expandKeys?: VxeMenuPropTypes.ExpandKeys
104
104
  options?: VxeMenuPropTypes.Options
105
105
  menuConfig?: VxeMenuPropTypes.MenuConfig
106
+ /**
107
+ * 使用虚拟滚动条
108
+ */
106
109
  useScrollbar?: VxeMenuPropTypes.UseScrollbar
110
+ /**
111
+ * 滚动条配置项
112
+ */
107
113
  scrollbarConfig?: VxeMenuPropTypes.ScrollbarConfig
108
114
  /**
109
115
  * 挂载到指定元素下
@@ -3,7 +3,7 @@ import { NormalizedScopedSlot } from 'vue/types/vnode'
3
3
  import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType, ValueOf, VxeGlobalConfig, VxeComponentStyleType, VxeComponentSlotType, VxeGlobalRendererOptions } from '@vxe-ui/core'
4
4
  import { VxeColumnPropTypes, VxeColumnProps, VxeColumnSlotTypes } from './column'
5
5
  import { VxeTableExtendCellAreaDefines, VxeTableExtendCellAreaEmits } from './table-plugins'
6
- import { VxeGridConstructor } from './grid'
6
+ import { VxeGridConstructor, VxeGridPrivateMethods } from './grid'
7
7
  import { VxeTooltipPropTypes } from './tooltip'
8
8
  import { VxeModalConstructor, VxeModalPrivateMethods, VxeModalPropTypes } from './modal'
9
9
  import { VxeDrawerPropTypes } from './drawer'
@@ -30,7 +30,7 @@ export type VxeTableInstance<D = any> = DefineVxeComponentInstance<{
30
30
  */
31
31
  internalData: TableInternalData<D>
32
32
  $xeParentTable: (VxeTableConstructor<D> & VxeTablePrivateMethods) | null | undefined
33
- $xeGrid: VxeGridConstructor<D> | null | undefined
33
+ $xeGrid: (VxeGridConstructor<D> & VxeGridPrivateMethods)| null | undefined
34
34
  $xeGantt: VxeTableDefines.InjectGanttType | null | undefined
35
35
  $xeTabs: (VxeTabsConstructor & VxeTabsPrivateMethods) | null
36
36
  $xeModal: (VxeModalConstructor & VxeModalPrivateMethods) | null
@@ -5530,12 +5530,11 @@ export interface TablePrivateMethods<D = any> {
5530
5530
  * @private
5531
5531
  */
5532
5532
  callSlot<T>(slotFunc: NormalizedScopedSlot | ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T, h: CreateElement): VxeComponentSlotType[]
5533
-
5534
5533
  /**
5535
5534
  * 内部方法
5536
5535
  * @private
5537
5536
  */
5538
- getParentElem(): Element | null
5537
+ getParentElem(): HTMLElement | null
5539
5538
  /**
5540
5539
  * 内部方法
5541
5540
  * @private
@@ -1,5 +1,6 @@
1
1
  import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
2
2
  import { VxeTabPaneProps, VxeTabPaneDefines, VxeTabPanePropTypes } from './tab-pane'
3
+ import { VxeScrollbarProps } from './scrollbar'
3
4
 
4
5
  /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
5
6
 
@@ -105,6 +106,8 @@ export namespace VxeTabsPropTypes {
105
106
  option: Omit<VxeTabPaneProps, 'slots'>
106
107
  }) => boolean
107
108
  }
109
+ export type UseScrollbar = boolean
110
+ export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'native' | 'yConfig' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {}
108
111
  }
109
112
 
110
113
  export type VxeTabsProps = {
@@ -131,6 +134,14 @@ export type VxeTabsProps = {
131
134
  * 刷新配置项
132
135
  */
133
136
  refreshConfig?: VxeTabsPropTypes.RefreshConfig
137
+ /**
138
+ * 使用虚拟滚动条
139
+ */
140
+ useScrollbar?: VxeTabsPropTypes.UseScrollbar
141
+ /**
142
+ * 滚动条配置项
143
+ */
144
+ scrollbarConfig?: VxeTabsPropTypes.ScrollbarConfig
134
145
 
135
146
  /**
136
147
  * 请使用 closeConfig.beforeMethod