vxe-pc-ui 4.6.41 → 4.6.43

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 (61) hide show
  1. package/es/button/src/button.js +40 -16
  2. package/es/button/style.css +6 -25
  3. package/es/button/style.min.css +1 -1
  4. package/es/button-group/style.css +20 -8
  5. package/es/button-group/style.min.css +1 -1
  6. package/es/icon/style.css +1 -1
  7. package/es/select/src/select.js +1 -1
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/ui/index.js +3 -3
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-button/style.css +6 -25
  13. package/es/vxe-button/style.min.css +1 -1
  14. package/es/vxe-button-group/style.css +20 -8
  15. package/es/vxe-button-group/style.min.css +1 -1
  16. package/lib/button/src/button.js +37 -16
  17. package/lib/button/src/button.min.js +1 -1
  18. package/lib/button/style/style.css +6 -25
  19. package/lib/button/style/style.min.css +1 -1
  20. package/lib/button-group/style/style.css +20 -8
  21. package/lib/button-group/style/style.min.css +1 -1
  22. package/lib/icon/style/style.css +1 -1
  23. package/lib/icon/style/style.min.css +1 -1
  24. package/lib/index.umd.js +42 -21
  25. package/lib/index.umd.min.js +1 -1
  26. package/lib/select/src/select.js +1 -1
  27. package/lib/select/src/select.min.js +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +3 -3
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/lib/vxe-button/style/style.css +6 -25
  35. package/lib/vxe-button/style/style.min.css +1 -1
  36. package/lib/vxe-button-group/style/style.css +20 -8
  37. package/lib/vxe-button-group/style/style.min.css +1 -1
  38. package/package.json +1 -1
  39. package/packages/button/src/button.ts +43 -16
  40. package/packages/color-picker/src/color-picker.ts +1 -1
  41. package/packages/select/src/select.ts +1 -1
  42. package/packages/ui/index.ts +2 -2
  43. package/styles/components/button-group.scss +21 -12
  44. package/styles/components/button.scss +6 -28
  45. package/styles/theme/base.scss +4 -4
  46. package/types/components/button.d.ts +29 -4
  47. package/types/components/color-picker.d.ts +1 -1
  48. package/types/components/table.d.ts +2 -0
  49. package/types/ui/global-icon.d.ts +1 -1
  50. /package/es/icon/{iconfont.1751346277481.ttf → iconfont.1751505769649.ttf} +0 -0
  51. /package/es/icon/{iconfont.1751346277481.woff → iconfont.1751505769649.woff} +0 -0
  52. /package/es/icon/{iconfont.1751346277481.woff2 → iconfont.1751505769649.woff2} +0 -0
  53. /package/es/{iconfont.1751346277481.ttf → iconfont.1751505769649.ttf} +0 -0
  54. /package/es/{iconfont.1751346277481.woff → iconfont.1751505769649.woff} +0 -0
  55. /package/es/{iconfont.1751346277481.woff2 → iconfont.1751505769649.woff2} +0 -0
  56. /package/lib/icon/style/{iconfont.1751346277481.ttf → iconfont.1751505769649.ttf} +0 -0
  57. /package/lib/icon/style/{iconfont.1751346277481.woff → iconfont.1751505769649.woff} +0 -0
  58. /package/lib/icon/style/{iconfont.1751346277481.woff2 → iconfont.1751505769649.woff2} +0 -0
  59. /package/lib/{iconfont.1751346277481.ttf → iconfont.1751505769649.ttf} +0 -0
  60. /package/lib/{iconfont.1751346277481.woff → iconfont.1751505769649.woff} +0 -0
  61. /package/lib/{iconfont.1751346277481.woff2 → iconfont.1751505769649.woff2} +0 -0
@@ -43,7 +43,14 @@ export namespace VxeButtonPropTypes {
43
43
  export type Placement = '' | 'top' | 'bottom'
44
44
  export type Status = VxeComponentStatusType
45
45
  export type Title = string
46
+
47
+ /**
48
+ * 按钮的前缀图标,属于 prefix-icon 的简写
49
+ */
46
50
  export type Icon = string
51
+ export type PrefixIcon = string
52
+ export type SuffixIcon = string
53
+
47
54
  export type Round = boolean
48
55
  export type Circle = boolean
49
56
  export type Disabled = boolean
@@ -94,9 +101,17 @@ export interface VxeButtonProps {
94
101
  */
95
102
  status?: VxeButtonPropTypes.Status
96
103
  /**
97
- * 按钮的图标
104
+ * 按钮的前缀图标,属于 prefix-icon 的简写
98
105
  */
99
106
  icon?: VxeButtonPropTypes.Icon
107
+ /**
108
+ * 按钮的前缀图标
109
+ */
110
+ prefixIcon?: VxeButtonPropTypes.PrefixIcon
111
+ /**
112
+ * 按钮的后缀图标
113
+ */
114
+ suffixIcon?: VxeButtonPropTypes.SuffixIcon
100
115
  /**
101
116
  * 圆角边框
102
117
  */
@@ -230,15 +245,25 @@ export interface VxeButtonSlots {
230
245
  /**
231
246
  * 自定义按钮内容
232
247
  */
233
- default?: (params: Record<string, any>) => any
248
+ default?: (params: VxeButtonSlotTypes.DefaultSlotParams) => any
249
+ /**
250
+ * 自定义自定义图标
251
+ */
252
+ prefix?: (params: VxeButtonSlotTypes.DefaultSlotParams) => any
234
253
  /**
235
254
  * 自定义自定义图标
236
255
  */
237
- icon?: (params: Record<string, any>) => any
256
+ suffix?: (params: VxeButtonSlotTypes.DefaultSlotParams) => any
238
257
  /**
239
258
  * 自定义下拉按钮
240
259
  */
241
- dropdowns?: (params: Record<string, any>) => any
260
+ dropdowns?: (params: VxeButtonSlotTypes.DefaultSlotParams) => any
261
+
262
+ /**
263
+ * 已废弃,被 prefix 替换
264
+ * @deprecated
265
+ */
266
+ icon?: (params: VxeButtonSlotTypes.DefaultSlotParams) => any
242
267
  }
243
268
 
244
269
  export const Button: typeof VxeButton
@@ -25,7 +25,7 @@ export interface VxeColorPickerPrivateRef extends ColorPickerPrivateRef { }
25
25
  export namespace VxeColorPickerPropTypes {
26
26
  export type ModelValue = string | null
27
27
  export type Size = VxeComponentSizeType
28
- export type Type = 'rgb' | 'rgba' | 'hex'
28
+ export type Type = 'rgb' | 'hex'
29
29
  export type ClassName = string | ((params: { $colorPicker: VxeColorPickerConstructor }) => string)
30
30
  export type PopupClassName = string | ((params: {$colorPicker: VxeColorPickerConstructor }) => string)
31
31
  export type Colors = string[] | {
@@ -3613,6 +3613,8 @@ export interface TableReactData<D = any> {
3613
3613
  scrollXWidth: number
3614
3614
  isScrollXBig: boolean
3615
3615
 
3616
+ lazScrollLoading: boolean
3617
+
3616
3618
  rowExpandHeightFlag: number
3617
3619
  calcCellHeightFlag: number
3618
3620
  resizeHeightFlag: number
@@ -70,7 +70,7 @@ declare module '@vxe-ui/core' {
70
70
  SELECT_LOADED?: string
71
71
  SELECT_OPEN?: string
72
72
  SELECT_CLOSE?: string
73
- ADD_OPTION?: string
73
+ SELECT_ADD_OPTION?: string
74
74
 
75
75
  // icon-picker
76
76
  ICON_PICKER_OPEN?: string