vxe-pc-ui 4.6.44 → 4.6.45

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 (59) hide show
  1. package/es/form/src/form-item.js +2 -1
  2. package/es/form/src/form.js +2 -1
  3. package/es/form/src/itemInfo.js +2 -0
  4. package/es/icon/style.css +1 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/tabs/src/tabs.js +22 -9
  8. package/es/tabs/style.css +4 -11
  9. package/es/tabs/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-tabs/style.css +4 -11
  13. package/es/vxe-tabs/style.min.css +1 -1
  14. package/lib/form/src/form-item.js +2 -1
  15. package/lib/form/src/form-item.min.js +1 -1
  16. package/lib/form/src/form.js +2 -1
  17. package/lib/form/src/form.min.js +1 -1
  18. package/lib/form/src/itemInfo.js +2 -0
  19. package/lib/form/src/itemInfo.min.js +1 -1
  20. package/lib/icon/style/style.css +1 -1
  21. package/lib/icon/style/style.min.css +1 -1
  22. package/lib/index.umd.js +33 -17
  23. package/lib/index.umd.min.js +1 -1
  24. package/lib/style.css +1 -1
  25. package/lib/style.min.css +1 -1
  26. package/lib/tabs/src/tabs.js +25 -13
  27. package/lib/tabs/src/tabs.min.js +1 -1
  28. package/lib/tabs/style/style.css +4 -11
  29. package/lib/tabs/style/style.min.css +1 -1
  30. package/lib/ui/index.js +1 -1
  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-tabs/style/style.css +4 -11
  35. package/lib/vxe-tabs/style/style.min.css +1 -1
  36. package/package.json +1 -1
  37. package/packages/form/src/form-item.ts +2 -1
  38. package/packages/form/src/form.ts +2 -1
  39. package/packages/form/src/itemInfo.ts +2 -0
  40. package/packages/tabs/src/tabs.ts +22 -9
  41. package/styles/components/tabs.scss +4 -9
  42. package/types/components/form-item.d.ts +10 -0
  43. package/types/components/form.d.ts +10 -0
  44. package/types/components/tab-pane.d.ts +15 -4
  45. package/types/components/table-module/filter.d.ts +1 -1
  46. package/types/components/table.d.ts +1 -1
  47. package/types/components/tabs.d.ts +10 -5
  48. /package/es/icon/{iconfont.1751511158748.ttf → iconfont.1751536878019.ttf} +0 -0
  49. /package/es/icon/{iconfont.1751511158748.woff → iconfont.1751536878019.woff} +0 -0
  50. /package/es/icon/{iconfont.1751511158748.woff2 → iconfont.1751536878019.woff2} +0 -0
  51. /package/es/{iconfont.1751511158748.ttf → iconfont.1751536878019.ttf} +0 -0
  52. /package/es/{iconfont.1751511158748.woff → iconfont.1751536878019.woff} +0 -0
  53. /package/es/{iconfont.1751511158748.woff2 → iconfont.1751536878019.woff2} +0 -0
  54. /package/lib/icon/style/{iconfont.1751511158748.ttf → iconfont.1751536878019.ttf} +0 -0
  55. /package/lib/icon/style/{iconfont.1751511158748.woff → iconfont.1751536878019.woff} +0 -0
  56. /package/lib/icon/style/{iconfont.1751511158748.woff2 → iconfont.1751536878019.woff2} +0 -0
  57. /package/lib/{iconfont.1751511158748.ttf → iconfont.1751536878019.ttf} +0 -0
  58. /package/lib/{iconfont.1751511158748.woff → iconfont.1751536878019.woff} +0 -0
  59. /package/lib/{iconfont.1751511158748.woff2 → iconfont.1751536878019.woff2} +0 -0
@@ -388,26 +388,20 @@ $scrollbarOffsetSize: 20px;
388
388
  .vxe-tabs-header--item-content {
389
389
  flex-grow: 1;
390
390
  max-width: 30em;
391
+ padding: 0 0.3em;
391
392
  overflow: hidden;
392
393
  text-overflow: ellipsis;
393
394
  white-space: nowrap;
394
- }
395
- .vxe-tabs-header--item-icon {
396
- padding: 0 0.6em;
397
- &+.vxe-tabs-header--item-name {
398
- padding-left: 0;
395
+ & > span {
396
+ padding: 0 0.3em;
399
397
  }
400
398
  }
401
- .vxe-tabs-header--item-name {
402
- padding: 0 0.6em;
403
- }
404
399
  .vxe-tabs-header--refresh-btn,
405
400
  .vxe-tabs-header--close-btn {
406
401
  font-size: 0.8em;
407
402
  border-radius: 50%;
408
403
  width: 1.5em;
409
404
  height: 1.5em;
410
- margin: 0 0.2em;
411
405
  line-height: 1.5em;
412
406
  text-align: center;
413
407
  &:hover {
@@ -419,6 +413,7 @@ $scrollbarOffsetSize: 20px;
419
413
  }
420
414
  & > i {
421
415
  font-size: 1em;
416
+ vertical-align: middle;
422
417
  }
423
418
  }
424
419
  .vxe-tabs-header--refresh-btn {
@@ -148,6 +148,11 @@ export namespace VxeFormItemPropTypes {
148
148
  valid?: string | ((params: VxeFormItemSlotTypes.ValidSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | null
149
149
  extra?: string | ((params: VxeFormItemSlotTypes.ExtraSlotParams) => VxeComponentSlotType | VxeComponentSlotType[]) | null
150
150
  }
151
+
152
+ /**
153
+ * 额外的参数
154
+ */
155
+ export type Params = any
151
156
  }
152
157
 
153
158
  export interface VxeFormItemProps<D = any> {
@@ -265,6 +270,11 @@ export interface VxeFormItemProps<D = any> {
265
270
  Rules?: VxeFormItemPropTypes.Rules<D>
266
271
  slots?: VxeFormItemPropTypes.Slots
267
272
  children?: VxeFormItemProps<D>[]
273
+
274
+ /**
275
+ * 额外的参数
276
+ */
277
+ params?: VxeFormItemPropTypes.Params
268
278
  }
269
279
 
270
280
  export interface FormItemPrivateComputed {
@@ -93,6 +93,11 @@ export namespace VxeFormPropTypes {
93
93
  }
94
94
 
95
95
  export type CustomLayout = boolean
96
+
97
+ /**
98
+ * 额外的参数
99
+ */
100
+ export type Params = any
96
101
  }
97
102
 
98
103
  export interface VxeFormProps<D = any> {
@@ -123,6 +128,11 @@ export interface VxeFormProps<D = any> {
123
128
  tooltipConfig?: VxeFormPropTypes.TooltipConfig
124
129
  collapseConfig?: VxeFormPropTypes.CollapseConfig
125
130
  customLayout?: VxeFormPropTypes.CustomLayout
131
+
132
+ /**
133
+ * 额外的参数
134
+ */
135
+ params?: VxeFormPropTypes.Params
126
136
  }
127
137
 
128
138
  export interface FormPrivateComputed {
@@ -42,14 +42,16 @@ export type VxeTabPaneProps = {
42
42
  permissionCode?: VxeTabPanePropTypes.PermissionCode
43
43
 
44
44
  slots?: {
45
- title?: string | ((params: { [key: string]: any }) => VxeComponentSlotType | VxeComponentSlotType[])
46
- default?: string | ((params: { [key: string]: any }) => VxeComponentSlotType | VxeComponentSlotType[])
45
+ title?: string | ((params: VxeTabPaneSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
46
+ titlePrefix?: string | ((params: VxeTabPaneSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
47
+ titleSuffix?: string | ((params: VxeTabPaneSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
48
+ default?: string | ((params: VxeTabPaneSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
47
49
 
48
50
  /**
49
51
  * 已废弃,被 title 替换
50
52
  * @deprecated
51
53
  */
52
- tab?: string | ((params: { [key: string]: any }) => VxeComponentSlotType | VxeComponentSlotType[])
54
+ tab?: string | ((params: VxeTabPaneSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
53
55
  }
54
56
  }
55
57
 
@@ -86,12 +88,21 @@ export interface VxeTabPaneListeners { }
86
88
  export namespace VxeTabPaneEvents { }
87
89
 
88
90
  export namespace VxeTabPaneSlotTypes {
89
- export interface DefaultSlotParams {}
91
+ export interface DefaultSlotParams {
92
+ name: string
93
+ title: string
94
+ }
90
95
  }
91
96
 
92
97
  export interface VxeTabPaneSlots {
93
98
  title?: (params: VxeTabPaneSlotTypes.DefaultSlotParams) => any
99
+ 'title-prefix'?: (params: VxeTabPaneSlotTypes.DefaultSlotParams) => any
100
+ titlePrefix?: (params: VxeTabPaneSlotTypes.DefaultSlotParams) => any
101
+ 'title-suffix'?: (params: VxeTabPaneSlotTypes.DefaultSlotParams) => any
102
+ titleSuffix?: (params: VxeTabPaneSlotTypes.DefaultSlotParams) => any
103
+
94
104
  default?: (params: VxeTabPaneSlotTypes.DefaultSlotParams) => any
105
+
95
106
  /**
96
107
  * 已废弃,被 title 替换
97
108
  * @deprecated
@@ -36,7 +36,7 @@ export interface TableFilterMethods<D = any> {
36
36
  /**
37
37
  * 用于 filters,修改筛选列表,update 是否同时更新数据,如果不传,则可以手动调用 updateData() 更新数据;如果需要同时触发对应的事件,请使用 setFilterByEvent
38
38
  */
39
- setFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any>, options: VxeColumnPropTypes.FilterItem[], update?: boolean): Promise<void>
39
+ setFilter(fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any>, options: VxeColumnPropTypes.Filters, update?: boolean): Promise<void>
40
40
  /**
41
41
  * 手动清空筛选条件;如果需要同时触发对应的事件,请使用 clearFilterByEvent
42
42
  */
@@ -4426,7 +4426,7 @@ export interface TableMethods<DT = any> {
4426
4426
  /**
4427
4427
  * 区别就是会触发对应的事件
4428
4428
  */
4429
- setFilterByEvent(event: Event, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any>, options: VxeColumnPropTypes.FilterItem[], update?: boolean): Promise<void>
4429
+ setFilterByEvent(event: Event, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any>, options: VxeColumnPropTypes.Filters, update?: boolean): Promise<void>
4430
4430
  /**
4431
4431
  * 区别就是会触发对应的事件
4432
4432
  */
@@ -283,10 +283,13 @@ export namespace VxeTabsSlotTypes {
283
283
  export interface DefaultSlotParams {
284
284
  name: VxeTabsPropTypes.ModelValue
285
285
  }
286
- export interface PrefixSlotParams extends DefaultSlotParams {}
287
- export interface SuffixSlotParams extends DefaultSlotParams {}
286
+ export interface TabPrefixSlotParams extends DefaultSlotParams {}
287
+ export interface TabSuffixSlotParams extends DefaultSlotParams {}
288
288
  export interface TopSlotParams extends DefaultSlotParams {}
289
289
  export interface FooterSlotParams extends DefaultSlotParams {}
290
+ export interface TitleSlotParams extends DefaultSlotParams {
291
+ title: string
292
+ }
290
293
  }
291
294
 
292
295
  export interface VxeTabsSlots {
@@ -300,8 +303,10 @@ export interface VxeTabsSlots {
300
303
  }) => any) | undefined
301
304
 
302
305
  default?: (params: VxeTabsSlotTypes.DefaultSlotParams) => any
303
- prefix?: (params: VxeTabsSlotTypes.PrefixSlotParams) => any
304
- suffix?: (params: VxeTabsSlotTypes.SuffixSlotParams) => any
306
+ 'tab-prefix'?: (params: VxeTabsSlotTypes.TabPrefixSlotParams) => any
307
+ tabPrefix?: (params: VxeTabsSlotTypes.TabPrefixSlotParams) => any
308
+ 'tab-suffix'?: (params: VxeTabsSlotTypes.TabSuffixSlotParams) => any
309
+ tabSuffix?: (params: VxeTabsSlotTypes.TabSuffixSlotParams) => any
305
310
  /**
306
311
  * 自定义面板头部模板
307
312
  */
@@ -315,7 +320,7 @@ export interface VxeTabsSlots {
315
320
  * 已废弃,请使用 suffix
316
321
  * @deprecated
317
322
  */
318
- extra?: (params: VxeTabsSlotTypes.SuffixSlotParams) => any
323
+ extra?: (params: VxeTabsSlotTypes.TabSuffixSlotParams) => any
319
324
  }
320
325
 
321
326
  export const Tabs: typeof VxeTabs