vxe-pc-ui 4.6.35 → 4.6.36

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 (44) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/style.css +1 -1
  3. package/es/style.min.css +1 -1
  4. package/es/tabs/src/tabs.js +290 -89
  5. package/es/tabs/style.css +431 -156
  6. package/es/tabs/style.min.css +1 -1
  7. package/es/ui/index.js +3 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/es/vxe-tabs/style.css +431 -156
  10. package/es/vxe-tabs/style.min.css +1 -1
  11. package/lib/icon/style/style.css +1 -1
  12. package/lib/icon/style/style.min.css +1 -1
  13. package/lib/index.umd.js +310 -84
  14. package/lib/index.umd.min.js +1 -1
  15. package/lib/style.css +1 -1
  16. package/lib/style.min.css +1 -1
  17. package/lib/tabs/src/tabs.js +306 -82
  18. package/lib/tabs/src/tabs.min.js +1 -1
  19. package/lib/tabs/style/style.css +431 -156
  20. package/lib/tabs/style/style.min.css +1 -1
  21. package/lib/ui/index.js +3 -1
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/lib/vxe-tabs/style/style.css +431 -156
  26. package/lib/vxe-tabs/style/style.min.css +1 -1
  27. package/package.json +1 -1
  28. package/packages/tabs/src/tabs.ts +299 -90
  29. package/packages/ui/index.ts +2 -0
  30. package/styles/components/tabs.scss +534 -183
  31. package/types/components/tabs.d.ts +22 -6
  32. package/types/ui/global-icon.d.ts +2 -0
  33. /package/es/icon/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  34. /package/es/icon/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  35. /package/es/icon/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
  36. /package/es/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  37. /package/es/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  38. /package/es/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
  39. /package/lib/icon/style/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  40. /package/lib/icon/style/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  41. /package/lib/icon/style/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
  42. /package/lib/{iconfont.1750910542831.ttf → iconfont.1751108492990.ttf} +0 -0
  43. /package/lib/{iconfont.1750910542831.woff → iconfont.1751108492990.woff} +0 -0
  44. /package/lib/{iconfont.1750910542831.woff2 → iconfont.1751108492990.woff2} +0 -0
@@ -27,10 +27,12 @@ export namespace VxeTabsPropTypes {
27
27
  export type ModelValue = undefined | null | VxeTabPanePropTypes.Name
28
28
  export type Options = VxeTabPaneProps[]
29
29
  export type DestroyOnClose = boolean
30
+ export type Width = string | number
30
31
  export type Height = string | number
31
32
  export type TitleWidth = VxeTabPanePropTypes.TitleWidth
32
33
  export type TitleAlign = VxeTabPanePropTypes.TitleAlign
33
34
  export type Type = null | '' | 'default' | 'card' | 'border-card' | 'round-card'
35
+ export type Position = null | '' | 'top' | 'bottom' | 'left' | 'right'
34
36
  export type ShowClose = boolean
35
37
  export type Padding = boolean
36
38
  export type Trigger = '' | 'default' | 'click' | 'manual'
@@ -110,10 +112,12 @@ export type VxeTabsProps = {
110
112
  modelValue?: VxeTabsPropTypes.ModelValue
111
113
  options?: VxeTabsPropTypes.Options
112
114
  destroyOnClose?: VxeTabsPropTypes.DestroyOnClose
115
+ width?: VxeTabsPropTypes.Width
113
116
  height?: VxeTabsPropTypes.Height
114
117
  titleWidth?: VxeTabsPropTypes.TitleWidth
115
118
  titleAlign?: VxeTabsPropTypes.TitleAlign
116
119
  type?: VxeTabsPropTypes.Type
120
+ position?: VxeTabsPropTypes.Position
117
121
  showClose?: VxeTabsPropTypes.ShowClose
118
122
  padding?: VxeTabsPropTypes.Padding
119
123
  trigger?: VxeTabsPropTypes.Trigger
@@ -143,7 +147,10 @@ export interface TabsReactData {
143
147
  activeName: VxeTabsPropTypes.ModelValue
144
148
  initNames: VxeTabsPropTypes.ModelValue[]
145
149
  lintLeft: number
150
+ lintTop: number
146
151
  lintWidth: number
152
+ lintHeight: number
153
+ scrollbarWidth: number
147
154
  isTabOver: boolean
148
155
  resizeFlag: number
149
156
  cacheTabMaps: Record<string, {
@@ -269,11 +276,10 @@ export namespace VxeTabsSlotTypes {
269
276
  export interface DefaultSlotParams {
270
277
  name: VxeTabsPropTypes.ModelValue
271
278
  }
272
- export interface TabSlotParams {
273
- name: VxeTabsPropTypes.ModelValue
274
- }
275
- export interface ExtraSlotParams {}
276
- export interface FooterSlotParams {}
279
+ export interface PrefixSlotParams extends DefaultSlotParams {}
280
+ export interface SuffixSlotParams extends DefaultSlotParams {}
281
+ export interface TopSlotParams extends DefaultSlotParams {}
282
+ export interface FooterSlotParams extends DefaultSlotParams {}
277
283
  }
278
284
 
279
285
  export interface VxeTabsSlots {
@@ -287,11 +293,21 @@ export interface VxeTabsSlots {
287
293
  }) => any) | undefined
288
294
 
289
295
  default?: (params: VxeTabsSlotTypes.DefaultSlotParams) => any
290
- extra?: (params: VxeTabsSlotTypes.ExtraSlotParams) => any
296
+ prefix?: (params: VxeTabsSlotTypes.PrefixSlotParams) => any
297
+ suffix?: (params: VxeTabsSlotTypes.SuffixSlotParams) => any
298
+ /**
299
+ * 自定义页签顶部模板
300
+ */
301
+ top?(params: VxeTabsSlotTypes.TopSlotParams): any
291
302
  /**
292
303
  * 自定义页签底部模板
293
304
  */
294
305
  footer?(params: VxeTabsSlotTypes.FooterSlotParams): any
306
+
307
+ /**
308
+ * 已废弃,请使用 suffix
309
+ */
310
+ extra?: (params: VxeTabsSlotTypes.SuffixSlotParams) => any
295
311
  }
296
312
 
297
313
  export const Tabs: typeof VxeTabs
@@ -215,6 +215,8 @@ declare module '@vxe-ui/core' {
215
215
  TABLE_SELECT_CLOSE?: string
216
216
 
217
217
  // tabs
218
+ TABS_TAB_BUTTON_TOP?: string
219
+ TABS_TAB_BUTTON_BOTTOM?: string
218
220
  TABS_TAB_BUTTON_LEFT?: string
219
221
  TABS_TAB_BUTTON_RIGHT?: string
220
222
  TABS_TAB_CLOSE?: string