vxe-pc-ui 4.4.11 → 4.4.13
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/input/src/input.js +11 -4
- package/es/list/src/list.js +2 -1
- package/es/number-input/src/number-input.js +33 -18
- package/es/select/src/select.js +28 -12
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +97 -44
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +12 -4
- package/lib/input/src/input.min.js +1 -1
- package/lib/list/src/list.js +2 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/number-input/src/number-input.js +35 -20
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/select/src/select.js +35 -10
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +9 -6
- 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/package.json +2 -2
- package/packages/input/src/input.ts +11 -4
- package/packages/list/src/list.ts +2 -1
- package/packages/number-input/src/number-input.ts +33 -18
- package/packages/select/src/select.ts +29 -13
- package/packages/ui/index.ts +8 -5
- package/types/components/input.d.ts +2 -0
- package/types/components/list.d.ts +30 -0
- package/types/components/number-input.d.ts +3 -0
- package/types/components/select.d.ts +68 -3
- package/types/components/table.d.ts +12 -0
- /package/es/icon/{iconfont.1741830156438.ttf → iconfont.1741919143115.ttf} +0 -0
- /package/es/icon/{iconfont.1741830156438.woff → iconfont.1741919143115.woff} +0 -0
- /package/es/icon/{iconfont.1741830156438.woff2 → iconfont.1741919143115.woff2} +0 -0
- /package/es/{iconfont.1741830156438.ttf → iconfont.1741919143115.ttf} +0 -0
- /package/es/{iconfont.1741830156438.woff → iconfont.1741919143115.woff} +0 -0
- /package/es/{iconfont.1741830156438.woff2 → iconfont.1741919143115.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1741830156438.ttf → iconfont.1741919143115.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1741830156438.woff → iconfont.1741919143115.woff} +0 -0
- /package/lib/icon/style/{iconfont.1741830156438.woff2 → iconfont.1741919143115.woff2} +0 -0
- /package/lib/{iconfont.1741830156438.ttf → iconfont.1741919143115.ttf} +0 -0
- /package/lib/{iconfont.1741830156438.woff → iconfont.1741919143115.woff} +0 -0
- /package/lib/{iconfont.1741830156438.woff2 → iconfont.1741919143115.woff2} +0 -0
|
@@ -58,9 +58,39 @@ export namespace VxeSelectPropTypes {
|
|
|
58
58
|
key?: string
|
|
59
59
|
}
|
|
60
60
|
export type Filterable = boolean
|
|
61
|
-
export type FilterMethod = (params: {
|
|
61
|
+
export type FilterMethod = (params: {
|
|
62
|
+
$select: VxeSelectConstructor
|
|
63
|
+
group: any
|
|
64
|
+
option: any
|
|
65
|
+
searchValue: string
|
|
66
|
+
value: ModelValue | undefined
|
|
67
|
+
}) => boolean
|
|
62
68
|
export type Remote = boolean
|
|
69
|
+
/**
|
|
70
|
+
* 已废弃,被 remote-config.queryMethod 替换
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
63
73
|
export type RemoteMethod = (params: { searchValue: string }) => Promise<void> | void
|
|
74
|
+
|
|
75
|
+
export interface RemoteConfig {
|
|
76
|
+
/**
|
|
77
|
+
* 是否启用
|
|
78
|
+
*/
|
|
79
|
+
enabled?: boolean
|
|
80
|
+
/**
|
|
81
|
+
* 当列表为空时,是否默认自动调用远程查询方法
|
|
82
|
+
*/
|
|
83
|
+
autoLoad?: boolean
|
|
84
|
+
/**
|
|
85
|
+
* 远程查询方法
|
|
86
|
+
*/
|
|
87
|
+
queryMethod?(params: {
|
|
88
|
+
$select: VxeSelectConstructor
|
|
89
|
+
searchValue: string
|
|
90
|
+
value: ModelValue | undefined
|
|
91
|
+
}): Promise<void> | void
|
|
92
|
+
}
|
|
93
|
+
|
|
64
94
|
export type Max = number | string
|
|
65
95
|
/**
|
|
66
96
|
* 选项配置项
|
|
@@ -74,6 +104,10 @@ export namespace VxeSelectPropTypes {
|
|
|
74
104
|
export type OptionKey = boolean
|
|
75
105
|
export type Transfer = boolean
|
|
76
106
|
|
|
107
|
+
/**
|
|
108
|
+
* 已被 VirtualYConfig 替换
|
|
109
|
+
* @deprecated
|
|
110
|
+
*/
|
|
77
111
|
export interface ScrollY {
|
|
78
112
|
/**
|
|
79
113
|
* 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用,如果为 -1 则关闭
|
|
@@ -92,6 +126,26 @@ export namespace VxeSelectPropTypes {
|
|
|
92
126
|
*/
|
|
93
127
|
enabled?: boolean
|
|
94
128
|
}
|
|
129
|
+
|
|
130
|
+
export interface VirtualYConfig {
|
|
131
|
+
/**
|
|
132
|
+
* 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用,如果为 -1 则关闭
|
|
133
|
+
*/
|
|
134
|
+
gt?: number
|
|
135
|
+
/**
|
|
136
|
+
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久
|
|
137
|
+
*/
|
|
138
|
+
oSize?: number
|
|
139
|
+
/**
|
|
140
|
+
* 指定列表项的 className
|
|
141
|
+
*/
|
|
142
|
+
sItem?: string
|
|
143
|
+
/**
|
|
144
|
+
* 是否启用
|
|
145
|
+
*/
|
|
146
|
+
enabled?: boolean
|
|
147
|
+
|
|
148
|
+
}
|
|
95
149
|
}
|
|
96
150
|
|
|
97
151
|
export interface VxeSelectProps {
|
|
@@ -119,19 +173,30 @@ export interface VxeSelectProps {
|
|
|
119
173
|
filterable?: VxeSelectPropTypes.Filterable
|
|
120
174
|
filterMethod?: VxeSelectPropTypes.FilterMethod
|
|
121
175
|
remote?: VxeSelectPropTypes.Remote
|
|
176
|
+
/**
|
|
177
|
+
* 已废弃,被 remote-config.queryMethod 替换
|
|
178
|
+
* @deprecated
|
|
179
|
+
*/
|
|
122
180
|
remoteMethod?: VxeSelectPropTypes.RemoteMethod
|
|
181
|
+
remoteConfig?: VxeSelectPropTypes.RemoteConfig
|
|
123
182
|
max?: VxeSelectPropTypes.Max
|
|
124
183
|
/**
|
|
125
|
-
* 已废弃,被
|
|
184
|
+
* 已废弃,被 option-config.keyField 替换
|
|
126
185
|
* @deprecated
|
|
127
186
|
*/
|
|
128
187
|
optionId?: VxeSelectPropTypes.OptionId
|
|
129
188
|
/**
|
|
130
|
-
* 已废弃,被
|
|
189
|
+
* 已废弃,被 option-config.useKey 替换
|
|
131
190
|
* @deprecated
|
|
132
191
|
*/
|
|
133
192
|
optionKey?: VxeSelectPropTypes.OptionKey
|
|
134
193
|
transfer?: VxeSelectPropTypes.Transfer
|
|
194
|
+
virtualYConfig?: VxeSelectPropTypes.VirtualYConfig
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* 已废弃,被 virtual-y-config 替换
|
|
198
|
+
* @deprecated
|
|
199
|
+
*/
|
|
135
200
|
scrollY?: VxeSelectPropTypes.ScrollY
|
|
136
201
|
}
|
|
137
202
|
|
|
@@ -951,6 +951,10 @@ export namespace VxeTablePropTypes {
|
|
|
951
951
|
* 复选框配置项
|
|
952
952
|
*/
|
|
953
953
|
export interface CheckboxConfig<D = VxeTablePropTypes.Row> {
|
|
954
|
+
/**
|
|
955
|
+
* 自定义列头复选框的 title 提示语
|
|
956
|
+
*/
|
|
957
|
+
headerTitle?: string | number
|
|
954
958
|
/**
|
|
955
959
|
* 是否保留勾选状态,对于某些场景可能会用到,比如数据被刷新之后还保留之前选中的状态
|
|
956
960
|
*/
|
|
@@ -1965,6 +1969,10 @@ export namespace VxeTablePropTypes {
|
|
|
1965
1969
|
export type Animat = boolean
|
|
1966
1970
|
export type DelayHover = number
|
|
1967
1971
|
|
|
1972
|
+
/**
|
|
1973
|
+
* 已被 VirtualXConfig 替换
|
|
1974
|
+
* @deprecated
|
|
1975
|
+
*/
|
|
1968
1976
|
export interface ScrollX {
|
|
1969
1977
|
/**
|
|
1970
1978
|
* 指定大于指定列时自动启动横向虚拟滚动,如果为 0 则总是启用;如果需要关闭,可以设置 enabled 为 false
|
|
@@ -1996,6 +2004,10 @@ export namespace VxeTablePropTypes {
|
|
|
1996
2004
|
oSize: number
|
|
1997
2005
|
}
|
|
1998
2006
|
|
|
2007
|
+
/**
|
|
2008
|
+
* 已被 VirtualYConfig 替换
|
|
2009
|
+
* @deprecated
|
|
2010
|
+
*/
|
|
1999
2011
|
export interface ScrollY {
|
|
2000
2012
|
/**
|
|
2001
2013
|
* 默认行为,无需设置
|
|
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
|