vxe-pc-ui 4.6.35 → 4.6.37

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 (48) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/notice-bar/src/notice-bar.js +9 -2
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/tabs/src/tabs.js +323 -106
  6. package/es/tabs/style.css +434 -156
  7. package/es/tabs/style.min.css +1 -1
  8. package/es/ui/index.js +3 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/es/vxe-tabs/style.css +434 -156
  11. package/es/vxe-tabs/style.min.css +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +354 -102
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/notice-bar/src/notice-bar.js +8 -1
  17. package/lib/notice-bar/src/notice-bar.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/tabs/src/tabs.js +342 -99
  21. package/lib/tabs/src/tabs.min.js +1 -1
  22. package/lib/tabs/style/style.css +434 -156
  23. package/lib/tabs/style/style.min.css +1 -1
  24. package/lib/ui/index.js +3 -1
  25. package/lib/ui/index.min.js +1 -1
  26. package/lib/ui/src/log.js +1 -1
  27. package/lib/ui/src/log.min.js +1 -1
  28. package/lib/vxe-tabs/style/style.css +434 -156
  29. package/lib/vxe-tabs/style/style.min.css +1 -1
  30. package/package.json +1 -1
  31. package/packages/notice-bar/src/notice-bar.ts +13 -3
  32. package/packages/tabs/src/tabs.ts +334 -107
  33. package/packages/ui/index.ts +2 -0
  34. package/styles/components/tabs.scss +539 -183
  35. package/types/components/tabs.d.ts +27 -7
  36. package/types/ui/global-icon.d.ts +2 -0
  37. /package/es/icon/{iconfont.1750910542831.ttf → iconfont.1751116737472.ttf} +0 -0
  38. /package/es/icon/{iconfont.1750910542831.woff → iconfont.1751116737472.woff} +0 -0
  39. /package/es/icon/{iconfont.1750910542831.woff2 → iconfont.1751116737472.woff2} +0 -0
  40. /package/es/{iconfont.1750910542831.ttf → iconfont.1751116737472.ttf} +0 -0
  41. /package/es/{iconfont.1750910542831.woff → iconfont.1751116737472.woff} +0 -0
  42. /package/es/{iconfont.1750910542831.woff2 → iconfont.1751116737472.woff2} +0 -0
  43. /package/lib/icon/style/{iconfont.1750910542831.ttf → iconfont.1751116737472.ttf} +0 -0
  44. /package/lib/icon/style/{iconfont.1750910542831.woff → iconfont.1751116737472.woff} +0 -0
  45. /package/lib/icon/style/{iconfont.1750910542831.woff2 → iconfont.1751116737472.woff2} +0 -0
  46. /package/lib/{iconfont.1750910542831.ttf → iconfont.1751116737472.ttf} +0 -0
  47. /package/lib/{iconfont.1750910542831.woff → iconfont.1751116737472.woff} +0 -0
  48. /package/lib/{iconfont.1750910542831.woff2 → iconfont.1751116737472.woff2} +0 -0
@@ -27,11 +27,14 @@ 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
37
+ export type ShowBody = boolean
35
38
  export type Padding = boolean
36
39
  export type Trigger = '' | 'default' | 'click' | 'manual'
37
40
  export type BeforeChangeMethod = (params: {
@@ -110,11 +113,14 @@ export type VxeTabsProps = {
110
113
  modelValue?: VxeTabsPropTypes.ModelValue
111
114
  options?: VxeTabsPropTypes.Options
112
115
  destroyOnClose?: VxeTabsPropTypes.DestroyOnClose
116
+ width?: VxeTabsPropTypes.Width
113
117
  height?: VxeTabsPropTypes.Height
114
118
  titleWidth?: VxeTabsPropTypes.TitleWidth
115
119
  titleAlign?: VxeTabsPropTypes.TitleAlign
116
120
  type?: VxeTabsPropTypes.Type
121
+ position?: VxeTabsPropTypes.Position
117
122
  showClose?: VxeTabsPropTypes.ShowClose
123
+ showBody?: VxeTabsPropTypes.ShowBody
118
124
  padding?: VxeTabsPropTypes.Padding
119
125
  trigger?: VxeTabsPropTypes.Trigger
120
126
  beforeChangeMethod?: VxeTabsPropTypes.BeforeChangeMethod
@@ -143,7 +149,11 @@ export interface TabsReactData {
143
149
  activeName: VxeTabsPropTypes.ModelValue
144
150
  initNames: VxeTabsPropTypes.ModelValue[]
145
151
  lintLeft: number
152
+ lintTop: number
146
153
  lintWidth: number
154
+ lintHeight: number
155
+ scrollbarWidth: number
156
+ scrollbarHeight: number
147
157
  isTabOver: boolean
148
158
  resizeFlag: number
149
159
  cacheTabMaps: Record<string, {
@@ -269,11 +279,10 @@ export namespace VxeTabsSlotTypes {
269
279
  export interface DefaultSlotParams {
270
280
  name: VxeTabsPropTypes.ModelValue
271
281
  }
272
- export interface TabSlotParams {
273
- name: VxeTabsPropTypes.ModelValue
274
- }
275
- export interface ExtraSlotParams {}
276
- export interface FooterSlotParams {}
282
+ export interface PrefixSlotParams extends DefaultSlotParams {}
283
+ export interface SuffixSlotParams extends DefaultSlotParams {}
284
+ export interface TopSlotParams extends DefaultSlotParams {}
285
+ export interface FooterSlotParams extends DefaultSlotParams {}
277
286
  }
278
287
 
279
288
  export interface VxeTabsSlots {
@@ -287,11 +296,22 @@ export interface VxeTabsSlots {
287
296
  }) => any) | undefined
288
297
 
289
298
  default?: (params: VxeTabsSlotTypes.DefaultSlotParams) => any
290
- extra?: (params: VxeTabsSlotTypes.ExtraSlotParams) => any
299
+ prefix?: (params: VxeTabsSlotTypes.PrefixSlotParams) => any
300
+ suffix?: (params: VxeTabsSlotTypes.SuffixSlotParams) => any
301
+ /**
302
+ * 自定义面板头部模板
303
+ */
304
+ header?(params: VxeTabsSlotTypes.TopSlotParams): any
291
305
  /**
292
- * 自定义页签底部模板
306
+ * 自定义面板底部模板
293
307
  */
294
308
  footer?(params: VxeTabsSlotTypes.FooterSlotParams): any
309
+
310
+ /**
311
+ * 已废弃,请使用 suffix
312
+ * @deprecated
313
+ */
314
+ extra?: (params: VxeTabsSlotTypes.SuffixSlotParams) => any
295
315
  }
296
316
 
297
317
  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