vxe-pc-ui 4.16.20 → 4.16.22

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 (131) hide show
  1. package/dist/all.esm.js +317 -67
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/cascader/style.css +2 -0
  5. package/es/cascader/style.min.css +1 -1
  6. package/es/checkbox/style.css +1 -0
  7. package/es/checkbox/style.min.css +1 -1
  8. package/es/checkbox-button/style.css +1 -0
  9. package/es/checkbox-button/style.min.css +1 -1
  10. package/es/color-picker/index.js +14 -0
  11. package/es/color-picker/src/color-picker.js +40 -28
  12. package/es/color-picker/src/util.js +252 -36
  13. package/es/date-picker/src/date-picker.js +2 -1
  14. package/es/date-range-picker/src/date-range-picker.js +2 -1
  15. package/es/icon/style.css +1 -1
  16. package/es/list/style.css +3 -0
  17. package/es/list/style.min.css +1 -1
  18. package/es/print/src/util.js +1 -1
  19. package/es/radio/style.css +1 -0
  20. package/es/radio/style.min.css +1 -1
  21. package/es/radio-button/style.css +1 -0
  22. package/es/radio-button/style.min.css +1 -1
  23. package/es/select/src/select.js +2 -1
  24. package/es/select/style.css +2 -0
  25. package/es/select/style.min.css +1 -1
  26. package/es/style.css +1 -1
  27. package/es/style.min.css +1 -1
  28. package/es/tree/style.css +2 -0
  29. package/es/tree/style.min.css +1 -1
  30. package/es/ui/index.js +1 -1
  31. package/es/ui/src/log.js +1 -1
  32. package/es/vxe-cascader/style.css +2 -0
  33. package/es/vxe-cascader/style.min.css +1 -1
  34. package/es/vxe-checkbox/style.css +1 -0
  35. package/es/vxe-checkbox/style.min.css +1 -1
  36. package/es/vxe-checkbox-button/style.css +1 -0
  37. package/es/vxe-checkbox-button/style.min.css +1 -1
  38. package/es/vxe-list/style.css +3 -0
  39. package/es/vxe-list/style.min.css +1 -1
  40. package/es/vxe-radio/style.css +1 -0
  41. package/es/vxe-radio/style.min.css +1 -1
  42. package/es/vxe-radio-button/style.css +1 -0
  43. package/es/vxe-radio-button/style.min.css +1 -1
  44. package/es/vxe-select/style.css +2 -0
  45. package/es/vxe-select/style.min.css +1 -1
  46. package/es/vxe-tree/style.css +2 -0
  47. package/es/vxe-tree/style.min.css +1 -1
  48. package/lib/cascader/style/style.css +2 -0
  49. package/lib/cascader/style/style.min.css +1 -1
  50. package/lib/checkbox/style/style.css +1 -0
  51. package/lib/checkbox/style/style.min.css +1 -1
  52. package/lib/checkbox-button/style/style.css +1 -0
  53. package/lib/checkbox-button/style/style.min.css +1 -1
  54. package/lib/color-picker/index.js +14 -0
  55. package/lib/color-picker/index.min.js +1 -1
  56. package/lib/color-picker/src/color-picker.js +38 -27
  57. package/lib/color-picker/src/color-picker.min.js +1 -1
  58. package/lib/color-picker/src/util.js +272 -49
  59. package/lib/color-picker/src/util.min.js +1 -1
  60. package/lib/date-picker/src/date-picker.js +2 -1
  61. package/lib/date-picker/src/date-picker.min.js +1 -1
  62. package/lib/date-range-picker/src/date-range-picker.js +2 -1
  63. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  64. package/lib/icon/style/style.css +1 -1
  65. package/lib/icon/style/style.min.css +1 -1
  66. package/lib/index.umd.js +325 -81
  67. package/lib/index.umd.min.js +1 -1
  68. package/lib/list/style/style.css +3 -0
  69. package/lib/list/style/style.min.css +1 -1
  70. package/lib/print/src/util.js +1 -1
  71. package/lib/print/src/util.min.js +1 -1
  72. package/lib/radio/style/style.css +1 -0
  73. package/lib/radio/style/style.min.css +1 -1
  74. package/lib/radio-button/style/style.css +1 -0
  75. package/lib/radio-button/style/style.min.css +1 -1
  76. package/lib/select/src/select.js +2 -1
  77. package/lib/select/src/select.min.js +1 -1
  78. package/lib/select/style/style.css +2 -0
  79. package/lib/select/style/style.min.css +1 -1
  80. package/lib/style.css +1 -1
  81. package/lib/style.min.css +1 -1
  82. package/lib/tree/style/style.css +2 -0
  83. package/lib/tree/style/style.min.css +1 -1
  84. package/lib/ui/index.js +1 -1
  85. package/lib/ui/index.min.js +1 -1
  86. package/lib/ui/src/log.js +1 -1
  87. package/lib/ui/src/log.min.js +1 -1
  88. package/lib/vxe-cascader/style/style.css +2 -0
  89. package/lib/vxe-cascader/style/style.min.css +1 -1
  90. package/lib/vxe-checkbox/style/style.css +1 -0
  91. package/lib/vxe-checkbox/style/style.min.css +1 -1
  92. package/lib/vxe-checkbox-button/style/style.css +1 -0
  93. package/lib/vxe-checkbox-button/style/style.min.css +1 -1
  94. package/lib/vxe-list/style/style.css +3 -0
  95. package/lib/vxe-list/style/style.min.css +1 -1
  96. package/lib/vxe-radio/style/style.css +1 -0
  97. package/lib/vxe-radio/style/style.min.css +1 -1
  98. package/lib/vxe-radio-button/style/style.css +1 -0
  99. package/lib/vxe-radio-button/style/style.min.css +1 -1
  100. package/lib/vxe-select/style/style.css +2 -0
  101. package/lib/vxe-select/style/style.min.css +1 -1
  102. package/lib/vxe-tree/style/style.css +2 -0
  103. package/lib/vxe-tree/style/style.min.css +1 -1
  104. package/package.json +1 -1
  105. package/packages/color-picker/index.ts +15 -0
  106. package/packages/color-picker/src/color-picker.ts +40 -29
  107. package/packages/color-picker/src/util.ts +267 -42
  108. package/packages/date-picker/src/date-picker.ts +3 -2
  109. package/packages/date-range-picker/src/date-range-picker.ts +3 -2
  110. package/packages/print/src/util.ts +1 -1
  111. package/packages/select/src/select.ts +3 -2
  112. package/styles/components/checkbox-button.scss +1 -0
  113. package/styles/components/radio-button.scss +1 -0
  114. package/styles/helpers/baseMixin.scss +2 -0
  115. package/styles/print/default.css +1 -0
  116. package/types/components/color-picker.d.ts +93 -0
  117. package/types/components/grid.d.ts +6 -0
  118. package/types/components/table.d.ts +2 -2
  119. package/types/ui/index.d.ts +2 -0
  120. /package/es/icon/{iconfont.1784793421071.ttf → iconfont.1784893283450.ttf} +0 -0
  121. /package/es/icon/{iconfont.1784793421071.woff → iconfont.1784893283450.woff} +0 -0
  122. /package/es/icon/{iconfont.1784793421071.woff2 → iconfont.1784893283450.woff2} +0 -0
  123. /package/es/{iconfont.1784793421071.ttf → iconfont.1784893283450.ttf} +0 -0
  124. /package/es/{iconfont.1784793421071.woff → iconfont.1784893283450.woff} +0 -0
  125. /package/es/{iconfont.1784793421071.woff2 → iconfont.1784893283450.woff2} +0 -0
  126. /package/lib/icon/style/{iconfont.1784793421071.ttf → iconfont.1784893283450.ttf} +0 -0
  127. /package/lib/icon/style/{iconfont.1784793421071.woff → iconfont.1784893283450.woff} +0 -0
  128. /package/lib/icon/style/{iconfont.1784793421071.woff2 → iconfont.1784893283450.woff2} +0 -0
  129. /package/lib/{iconfont.1784793421071.ttf → iconfont.1784893283450.ttf} +0 -0
  130. /package/lib/{iconfont.1784793421071.woff → iconfont.1784893283450.woff} +0 -0
  131. /package/lib/{iconfont.1784793421071.woff2 → iconfont.1784893283450.woff2} +0 -0
@@ -27,6 +27,7 @@ body * {
27
27
  .vxe-table th,
28
28
  .vxe-table td,
29
29
  .vxe-table td {
30
+ white-space: pre-line;
30
31
  word-break: break-all;
31
32
  border-color: #D0D0D0;
32
33
  border-style: solid;
@@ -146,6 +146,53 @@ export interface VxeColorPickerMethods extends ColorPickerMethods { }
146
146
  export interface ColorPickerPrivateMethods { }
147
147
  export interface VxeColorPickerPrivateMethods extends ColorPickerPrivateMethods { }
148
148
 
149
+ export interface ColorController {
150
+ /**
151
+ * 解析颜色
152
+ */
153
+ parseColor<T extends keyof VxeColorPickerDefines.ParseResultMap>(color: string, format?: T): VxeColorPickerDefines.ParseResultMap[T] | null
154
+ /**
155
+ * 判断颜色是否 RGB 格式
156
+ */
157
+ hasRgb(color: string): boolean
158
+ /**
159
+ * 判断颜色是否 HEX 格式
160
+ */
161
+ hasHex(color: string): boolean
162
+ /**
163
+ * 转成 RGB 格式
164
+ */
165
+ toRgb(color: string): VxeColorPickerDefines.RgbObj | null
166
+ /**
167
+ * 转成 RGB 字符串格式
168
+ */
169
+ toRgbString(color: string): string
170
+ /**
171
+ * 转成 HEX 格式
172
+ */
173
+ toHex(color: string): VxeColorPickerDefines.HexObj | null
174
+ /**
175
+ * 转成 HEX 字符串格式
176
+ */
177
+ toHexString(color: string): string
178
+ /**
179
+ * 转成 HSL 格式
180
+ */
181
+ toHsl(color: string): VxeColorPickerDefines.HslObj | null
182
+ /**
183
+ * 转成 HSV 格式
184
+ */
185
+ toHsv(color: string): VxeColorPickerDefines.HsvObj | null
186
+ /**
187
+ * 对颜色进行高亮
188
+ */
189
+ lighten(color: string, ratio: number): string
190
+ /**
191
+ * 对颜色进行加深
192
+ */
193
+ darken(color: string, ratio: number): string
194
+ }
195
+
149
196
  export type VxeColorPickerEmits = [
150
197
  'update:modelValue',
151
198
  'change',
@@ -157,6 +204,52 @@ export namespace VxeColorPickerDefines {
157
204
  export interface ColorPickerEventParams extends VxeComponentEventParams {
158
205
  $colorPicker: VxeColorPickerConstructor
159
206
  }
207
+
208
+ export type ParseResultMap = {
209
+ '': VxeColorPickerDefines.RgbObj
210
+ 'rgb': VxeColorPickerDefines.RgbObj
211
+ 'rgba': VxeColorPickerDefines.RgbObj
212
+ 'hex': VxeColorPickerDefines.HexObj
213
+ 'hsl': VxeColorPickerDefines.HslObj
214
+ 'hsv': VxeColorPickerDefines.HsvObj
215
+ }
216
+
217
+ export interface RgbObj {
218
+ type: 'rgba' | 'rgb'
219
+ value: string
220
+ label: string
221
+ r: number
222
+ g: number
223
+ b: number
224
+ a: number
225
+ }
226
+
227
+ export interface HexObj {
228
+ type: 'hex'
229
+ value: string
230
+ label: string
231
+ hex: string
232
+ hexV: string
233
+ hexA: string
234
+ a: number
235
+ }
236
+
237
+ export interface HslObj {
238
+ type: 'hsl'
239
+ value: string
240
+ h: number
241
+ s: number
242
+ l: number
243
+ a: number
244
+ }
245
+
246
+ export interface HsvObj {
247
+ type: 'hsv'
248
+ value: string
249
+ h: number
250
+ s: number
251
+ v: number
252
+ }
160
253
  }
161
254
 
162
255
  export type VxeColorPickerEventProps = {
@@ -419,6 +419,12 @@ export interface GridMethods<D = any> {
419
419
  }
420
420
  pendingRecords: D[]
421
421
  } | null
422
+ /**
423
+ * 获取个性化设置分页数据
424
+ */
425
+ getCustomPagerData(): {
426
+ pSize?: number
427
+ },
422
428
  /**
423
429
  * 获取自定义的 params 属性
424
430
  */
@@ -7070,8 +7070,8 @@ export namespace VxeTableDefines {
7070
7070
  export type CustomEventType = 'reset' | 'confirm' | 'update:width' | 'update:fixed' | 'update:sort' | 'update:visible' | 'update:align' | 'update:headerAlign' | 'update:footerAlign' | 'update:aggGroup' | 'update:aggFunc'
7071
7071
 
7072
7072
  export interface CustomStoreData {
7073
- pageData?: {
7074
- ps?: number
7073
+ pagerData?: {
7074
+ pSize?: number
7075
7075
  }
7076
7076
  alignData?: Record<string, VxeColumnPropTypes.Align>
7077
7077
  headerAlignData?: Record<string, VxeColumnPropTypes.HeaderAlign>
@@ -1,6 +1,7 @@
1
1
  import { App } from 'vue'
2
2
  import { VxeUI, getI18n, setConfig } from '@vxe-ui/core'
3
3
  import { LoadingController } from '../components/loading'
4
+ import { ColorController } from '../components/color-picker'
4
5
  import { ModalController } from '../components/modal'
5
6
  import { DrawerController } from '../components/drawer'
6
7
  import { WatermarkController } from '../components/watermark'
@@ -34,6 +35,7 @@ export const readFile: VxeUploadDefines.ReadFileFunction
34
35
  declare module '@vxe-ui/core' {
35
36
  export interface VxeUIExport {
36
37
  loading: LoadingController
38
+ color: ColorController
37
39
  modal: ModalController
38
40
  drawer: DrawerController
39
41
  watermark: WatermarkController