vxe-pc-ui 3.20.5 → 3.20.7
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/button/src/button.js +1 -0
- package/es/cascader/src/cascader.js +1 -0
- package/es/color-picker/src/color-picker.js +1 -0
- package/es/date-picker/src/date-picker.js +1 -0
- package/es/date-range-picker/src/date-range-picker.js +1 -0
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +1 -0
- package/es/pulldown/src/pulldown.js +1 -0
- package/es/scrollbar/src/scrollbar.js +22 -2
- package/es/scrollbar/style.css +11 -0
- package/es/scrollbar/style.min.css +1 -1
- package/es/select/src/select.js +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +1 -0
- package/es/tabs/src/tabs.js +5 -3
- package/es/tooltip/src/tooltip.js +49 -8
- package/es/tooltip/style.css +2 -1
- package/es/tooltip/style.min.css +1 -1
- package/es/tree-select/src/tree-select.js +1 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +11 -8
- package/es/ui/src/log.js +1 -1
- package/es/vxe-scrollbar/style.css +11 -0
- package/es/vxe-scrollbar/style.min.css +1 -1
- package/es/vxe-tooltip/style.css +2 -1
- package/es/vxe-tooltip/style.min.css +1 -1
- package/lib/button/src/button.js +1 -0
- package/lib/button/src/button.min.js +1 -1
- package/lib/cascader/src/cascader.js +1 -0
- package/lib/cascader/src/cascader.min.js +1 -1
- package/lib/color-picker/src/color-picker.js +1 -0
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +1 -0
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +1 -0
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +1 -0
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +4971 -4674
- package/lib/index.umd.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +1 -0
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/scrollbar/src/scrollbar.js +27 -2
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/scrollbar/style/style.css +11 -0
- package/lib/scrollbar/style/style.min.css +1 -1
- package/lib/select/src/select.js +1 -0
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +1 -0
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tabs/src/tabs.js +41 -33
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +81 -28
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tooltip/style/style.css +2 -1
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/tree-select/src/tree-select.js +1 -0
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +11 -7
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-scrollbar/style/style.css +11 -0
- package/lib/vxe-scrollbar/style/style.min.css +1 -1
- package/lib/vxe-tooltip/style/style.css +2 -1
- package/lib/vxe-tooltip/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/button/src/button.ts +2 -1
- package/packages/cascader/src/cascader.ts +1 -0
- package/packages/color-picker/src/color-picker.ts +1 -0
- package/packages/date-picker/src/date-picker.ts +1 -0
- package/packages/date-range-picker/src/date-range-picker.ts +1 -0
- package/packages/icon-picker/src/icon-picker.ts +1 -0
- package/packages/pulldown/src/pulldown.ts +1 -0
- package/packages/scrollbar/src/scrollbar.ts +24 -2
- package/packages/select/src/select.ts +1 -0
- package/packages/table-select/src/table-select.ts +1 -0
- package/packages/tabs/src/tabs.ts +6 -3
- package/packages/tooltip/src/tooltip.ts +51 -9
- package/packages/tree-select/src/tree-select.ts +1 -0
- package/packages/ui/src/dom.ts +12 -8
- package/styles/components/scrollbar.scss +15 -1
- package/styles/components/tooltip.scss +2 -1
- package/types/components/button.d.ts +4 -0
- package/types/components/cascader.d.ts +4 -0
- package/types/components/scrollbar.d.ts +19 -1
- package/types/components/table.d.ts +1 -0
- package/types/components/tooltip.d.ts +21 -0
- /package/es/icon/{iconfont.1792048654011.ttf → iconfont.1792080131929.ttf} +0 -0
- /package/es/icon/{iconfont.1792048654011.woff → iconfont.1792080131929.woff} +0 -0
- /package/es/icon/{iconfont.1792048654011.woff2 → iconfont.1792080131929.woff2} +0 -0
- /package/es/{iconfont.1792048654011.ttf → iconfont.1792080131929.ttf} +0 -0
- /package/es/{iconfont.1792048654011.woff → iconfont.1792080131929.woff} +0 -0
- /package/es/{iconfont.1792048654011.woff2 → iconfont.1792080131929.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1792048654011.ttf → iconfont.1792080131929.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1792048654011.woff → iconfont.1792080131929.woff} +0 -0
- /package/lib/icon/style/{iconfont.1792048654011.woff2 → iconfont.1792080131929.woff2} +0 -0
- /package/lib/{iconfont.1792048654011.ttf → iconfont.1792080131929.ttf} +0 -0
- /package/lib/{iconfont.1792048654011.woff → iconfont.1792080131929.woff} +0 -0
- /package/lib/{iconfont.1792048654011.woff2 → iconfont.1792080131929.woff2} +0 -0
|
@@ -143,6 +143,10 @@ export namespace VxeCascaderPropTypes {
|
|
|
143
143
|
*/
|
|
144
144
|
defaultPlacement?: 'top' | 'bottom' | '' | null
|
|
145
145
|
transfer?: boolean
|
|
146
|
+
/**
|
|
147
|
+
* 挂载到指定元素下
|
|
148
|
+
*/
|
|
149
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
146
150
|
height?: number | string
|
|
147
151
|
nodeWidth?: number | string
|
|
148
152
|
nodeHeight?: number | string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
|
|
1
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf, VxeComponentStyleType } from '@vxe-ui/core'
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
|
|
4
4
|
|
|
@@ -19,6 +19,7 @@ export interface VxeScrollbarPrivateRef extends ScrollbarPrivateRef { }
|
|
|
19
19
|
export namespace VxeScrollbarPropTypes {
|
|
20
20
|
export type Id = number | string
|
|
21
21
|
export type ViewId = number | string
|
|
22
|
+
export type Theme = '' | 'light' | 'dark'
|
|
22
23
|
export type Width = number | string
|
|
23
24
|
export type Height = number | string
|
|
24
25
|
export type MinWidth = number | string
|
|
@@ -66,6 +67,7 @@ export namespace VxeScrollbarPropTypes {
|
|
|
66
67
|
}
|
|
67
68
|
export type ClassName = string
|
|
68
69
|
export type ViewAttrs = Record<string, any>
|
|
70
|
+
export type ViewStyle = VxeComponentStyleType
|
|
69
71
|
export type ViewClassName = string
|
|
70
72
|
export type ViewInnerClassName = string
|
|
71
73
|
export type AutoResize = boolean
|
|
@@ -81,6 +83,10 @@ export interface VxeScrollbarProps {
|
|
|
81
83
|
* View ID
|
|
82
84
|
*/
|
|
83
85
|
viewId?: VxeScrollbarPropTypes.ViewId
|
|
86
|
+
/**
|
|
87
|
+
* 主题色
|
|
88
|
+
*/
|
|
89
|
+
theme?: VxeScrollbarPropTypes.Theme
|
|
84
90
|
/**
|
|
85
91
|
* 容器宽度
|
|
86
92
|
*/
|
|
@@ -141,6 +147,10 @@ export interface VxeScrollbarProps {
|
|
|
141
147
|
* 给视图元素附加属性
|
|
142
148
|
*/
|
|
143
149
|
viewAttrs?: VxeScrollbarPropTypes.ViewAttrs
|
|
150
|
+
/**
|
|
151
|
+
* 给视图元素附加样式
|
|
152
|
+
*/
|
|
153
|
+
viewStyle?: VxeScrollbarPropTypes.ViewStyle
|
|
144
154
|
/**
|
|
145
155
|
* 给视图元素附加 class
|
|
146
156
|
*/
|
|
@@ -208,6 +218,14 @@ export interface ScrollbarMethods {
|
|
|
208
218
|
* 滚动元素到可见位置
|
|
209
219
|
*/
|
|
210
220
|
scrollIntoView(): void
|
|
221
|
+
/**
|
|
222
|
+
* 获取滚动视图元素
|
|
223
|
+
*/
|
|
224
|
+
getViewElem(): HTMLElement | null
|
|
225
|
+
/**
|
|
226
|
+
* 获取滚动视图内容包裹元素
|
|
227
|
+
*/
|
|
228
|
+
getViewInnerElem(): HTMLElement | null
|
|
211
229
|
/**
|
|
212
230
|
* 重新计算样式
|
|
213
231
|
* 对于某些特殊场景可能会用到,比如更新内容
|
|
@@ -1564,6 +1564,7 @@ export namespace VxeTablePropTypes {
|
|
|
1564
1564
|
*/
|
|
1565
1565
|
defaultPlacement?: VxeTooltipPropTypes.DefaultPlacement
|
|
1566
1566
|
popupClassName?: VxeTooltipPropTypes.PopupClassName
|
|
1567
|
+
useScrollbar?: VxeTooltipPropTypes.UseScrollbar
|
|
1567
1568
|
/**
|
|
1568
1569
|
* 该方法可以通过返回值来重写默认的提示内容,可以返回 null 使用默认的提示内容,可以返回空内容去掉指定单元格的提示内容
|
|
1569
1570
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType, VxeComponentStyleType, ValueOf } from '@vxe-ui/core'
|
|
2
2
|
import { VxeIconPropTypes } from './icon'
|
|
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
|
|
|
@@ -41,6 +42,17 @@ export namespace VxeTooltipPropTypes {
|
|
|
41
42
|
export type LeaveMethod = (params: { $event: MouseEvent }) => boolean
|
|
42
43
|
export type AppendTo = string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
43
44
|
export type Transfer = boolean
|
|
45
|
+
export type UseScrollbar = boolean
|
|
46
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
47
|
+
/**
|
|
48
|
+
* 滚动条宽度
|
|
49
|
+
*/
|
|
50
|
+
width?: number | string
|
|
51
|
+
/**
|
|
52
|
+
* 滚动条高度
|
|
53
|
+
*/
|
|
54
|
+
height?: number | string
|
|
55
|
+
}
|
|
44
56
|
|
|
45
57
|
/**
|
|
46
58
|
* 已废弃,请使用 UseHtml
|
|
@@ -91,6 +103,14 @@ export interface VxeTooltipProps {
|
|
|
91
103
|
leaveMethod?: VxeTooltipPropTypes.LeaveMethod
|
|
92
104
|
transfer?: VxeTooltipPropTypes.Transfer
|
|
93
105
|
appendTo?: VxeTooltipPropTypes.AppendTo
|
|
106
|
+
/**
|
|
107
|
+
* 使用虚拟滚动条
|
|
108
|
+
*/
|
|
109
|
+
useScrollbar?: VxeTooltipPropTypes.UseScrollbar
|
|
110
|
+
/**
|
|
111
|
+
* 滚动条配置项
|
|
112
|
+
*/
|
|
113
|
+
scrollbarConfig?: VxeTooltipPropTypes.ScrollbarConfig
|
|
94
114
|
}
|
|
95
115
|
|
|
96
116
|
export interface TooltipPrivateComputed {
|
|
@@ -119,6 +139,7 @@ export interface TooltipReactData {
|
|
|
119
139
|
}
|
|
120
140
|
|
|
121
141
|
export interface TooltipInternalData {
|
|
142
|
+
scrollbarViewEl?: HTMLElement
|
|
122
143
|
showDelayTip?(): void
|
|
123
144
|
}
|
|
124
145
|
|
|
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
|