vxe-pc-ui 4.9.15 → 4.9.17

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 (57) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/image/src/preview.js +8 -2
  3. package/es/input/src/input.js +8 -1
  4. package/es/number-input/src/number-input.js +8 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/text/src/text.js +93 -30
  8. package/es/text/style.css +13 -8
  9. package/es/text/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-text/style.css +13 -8
  13. package/es/vxe-text/style.min.css +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/image/src/preview.js +10 -2
  17. package/lib/image/src/preview.min.js +1 -1
  18. package/lib/index.umd.js +118 -21
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/input/src/input.js +10 -1
  21. package/lib/input/src/input.min.js +1 -1
  22. package/lib/number-input/src/number-input.js +10 -1
  23. package/lib/number-input/src/number-input.min.js +1 -1
  24. package/lib/style.css +1 -1
  25. package/lib/style.min.css +1 -1
  26. package/lib/text/src/text.js +86 -16
  27. package/lib/text/src/text.min.js +1 -1
  28. package/lib/text/style/style.css +13 -8
  29. package/lib/text/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-text/style/style.css +13 -8
  35. package/lib/vxe-text/style/style.min.css +1 -1
  36. package/package.json +1 -1
  37. package/packages/image/src/preview.ts +8 -2
  38. package/packages/input/src/input.ts +10 -2
  39. package/packages/number-input/src/number-input.ts +10 -6
  40. package/packages/text/src/text.ts +95 -24
  41. package/styles/components/text.scss +13 -5
  42. package/types/components/column.d.ts +1 -1
  43. package/types/components/countdown.d.ts +8 -0
  44. package/types/components/table.d.ts +31 -0
  45. package/types/components/text.d.ts +20 -1
  46. /package/es/icon/{iconfont.1757057037549.ttf → iconfont.1757125817990.ttf} +0 -0
  47. /package/es/icon/{iconfont.1757057037549.woff → iconfont.1757125817990.woff} +0 -0
  48. /package/es/icon/{iconfont.1757057037549.woff2 → iconfont.1757125817990.woff2} +0 -0
  49. /package/es/{iconfont.1757057037549.ttf → iconfont.1757125817990.ttf} +0 -0
  50. /package/es/{iconfont.1757057037549.woff → iconfont.1757125817990.woff} +0 -0
  51. /package/es/{iconfont.1757057037549.woff2 → iconfont.1757125817990.woff2} +0 -0
  52. /package/lib/icon/style/{iconfont.1757057037549.ttf → iconfont.1757125817990.ttf} +0 -0
  53. /package/lib/icon/style/{iconfont.1757057037549.woff → iconfont.1757125817990.woff} +0 -0
  54. /package/lib/icon/style/{iconfont.1757057037549.woff2 → iconfont.1757125817990.woff2} +0 -0
  55. /package/lib/{iconfont.1757057037549.ttf → iconfont.1757125817990.ttf} +0 -0
  56. /package/lib/{iconfont.1757057037549.woff → iconfont.1757125817990.woff} +0 -0
  57. /package/lib/{iconfont.1757057037549.woff2 → iconfont.1757125817990.woff2} +0 -0
@@ -62,7 +62,7 @@ $btnThemeList: (
62
62
  }
63
63
  }
64
64
  &.is--copy {
65
- & > .vxe-text--icon {
65
+ & > .vxe-text--copy-icon {
66
66
  cursor: pointer;
67
67
  &:focus {
68
68
  color: var(--vxe-ui-font-darken-color);
@@ -76,12 +76,20 @@ $btnThemeList: (
76
76
  }
77
77
  }
78
78
  }
79
- .vxe-text--icon {
80
- padding: 0 0.1em;
79
+ .vxe-text--loading,
80
+ .vxe-text--prefix-icon,
81
+ .vxe-text--suffix-icon,
82
+ .vxe-text--copy-icon {
81
83
  user-select: none;
82
84
  }
83
- .vxe-text--content {
84
- padding: 0 0.1em;
85
+
86
+ .vxe-text {
87
+ & > span {
88
+ padding-right: 0.1em;
89
+ &:last-child {
90
+ padding-right: 0;
91
+ }
92
+ }
85
93
  }
86
94
 
87
95
  .vxe-text {
@@ -623,7 +623,7 @@ export type VxeColumnEmits = []
623
623
 
624
624
  export namespace VxeColumnDefines {
625
625
  export interface ColumnEventParams extends VxeComponentEventParams {
626
- $column: VxeColumnConstructor
626
+ $table: VxeTableConstructor
627
627
  }
628
628
  }
629
629
 
@@ -94,10 +94,18 @@ export namespace VxeCountdownSlotTypes {
94
94
  diffConf: DateDiffResult
95
95
  currentValue: number
96
96
  }
97
+
98
+ export interface PrefixSlotParams {
99
+ diffConf: DateDiffResult
100
+ currentValue: number
101
+ }
102
+ export interface SuffixSlotParams extends PrefixSlotParams {}
97
103
  }
98
104
 
99
105
  export interface VxeCountdownSlots {
100
106
  default?: (params: VxeCountdownSlotTypes.DefaultSlotParams) => any
107
+ prefix?: (params: VxeCountdownSlotTypes.PrefixSlotParams) => any
108
+ suffix?: (params: VxeCountdownSlotTypes.SuffixSlotParams) => any
101
109
  }
102
110
 
103
111
  export const Countdown: typeof VxeCountdown
@@ -3655,6 +3655,7 @@ export interface TableReactData<D = any> {
3655
3655
  column: any
3656
3656
  content: any
3657
3657
  visible: boolean,
3658
+ type: null | 'header' | 'body' | 'footer'
3658
3659
  currOpts: {
3659
3660
  useHTML?: VxeTooltipPropTypes.UseHTML
3660
3661
  enterable?: VxeTooltipPropTypes.Enterable
@@ -6592,6 +6593,21 @@ export namespace VxeTableSlotTypes {
6592
6593
  groupField: string
6593
6594
  childCount: number
6594
6595
  }
6596
+
6597
+ export interface HeaderTooltipSlotParams<D = any> {
6598
+ column: VxeTableDefines.ColumnInfo<D>
6599
+ tooltipContent: string
6600
+ }
6601
+ export interface TooltipSlotParams<D = any> {
6602
+ row: D
6603
+ column: VxeTableDefines.ColumnInfo<D>
6604
+ tooltipContent: string
6605
+ }
6606
+ export interface FooterTooltipSlotParams<D = any> {
6607
+ row: any
6608
+ column: VxeTableDefines.ColumnInfo<D>
6609
+ tooltipContent: string
6610
+ }
6595
6611
  }
6596
6612
 
6597
6613
  export interface VxeTableSlots<D = any> {
@@ -6632,6 +6648,21 @@ export interface VxeTableSlots<D = any> {
6632
6648
  */
6633
6649
  columnDragIcon?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
6634
6650
  'column-drag-icon'?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
6651
+
6652
+ /**
6653
+ * 用于 show-header-overflow=tooltip,自定义表头单元格提示内容模板
6654
+ */
6655
+ headerTooltip?: (params: VxeTableSlotTypes.HeaderTooltipSlotParams<D>) => any
6656
+ 'header-tooltip'?: (params: VxeTableSlotTypes.HeaderTooltipSlotParams<D>) => any
6657
+ /**
6658
+ * 用于 show-overflow=tooltip,自定义单元格提示内容模板
6659
+ */
6660
+ tooltip?: (params: VxeTableSlotTypes.TooltipSlotParams<D>) => any
6661
+ /**
6662
+ * 用于 show-footer-overflow=tooltip,自定义表尾单元格提示内容模板
6663
+ */
6664
+ footerTooltip?: (params: VxeTableSlotTypes.FooterTooltipSlotParams<D>) => any
6665
+ 'footer-tooltip'?: (params: VxeTableSlotTypes.FooterTooltipSlotParams<D>) => any
6635
6666
  }
6636
6667
 
6637
6668
  export * from './table-module'
@@ -26,19 +26,36 @@ export namespace VxeTextPropTypes {
26
26
  export type Status = VxeComponentStatusType
27
27
  export type Title = string | number
28
28
  export type Icon = string
29
+ export type PrefixIcon = string
30
+ export type SuffixIcon = string
29
31
  export type Loading = boolean
30
32
  export type Content = string | number
33
+ export type CopyIcon = string
31
34
  export type ClickToCopy = boolean
35
+ export type CopyLayout = 'left' | 'right' | '' | null
32
36
  export type Size = VxeComponentSizeType
33
37
  }
34
38
 
35
39
  export type VxeTextProps = {
36
40
  status?: VxeTextPropTypes.Status
37
41
  title?: VxeTextPropTypes.Title
42
+ /**
43
+ * 前缀图标,属于 prefix-icon 的简写
44
+ */
38
45
  icon?: VxeTextPropTypes.Icon
46
+ /**
47
+ * 前缀图标
48
+ */
49
+ prefixIcon?: VxeTextPropTypes.PrefixIcon
50
+ /**
51
+ * 后缀图标
52
+ */
53
+ suffixIcon?: VxeTextPropTypes.SuffixIcon
39
54
  loading?: VxeTextPropTypes.Loading
40
55
  content?: VxeTextPropTypes.Content
56
+ copyIcon?: VxeTextPropTypes.CopyIcon
41
57
  clickToCopy?: VxeTextPropTypes.ClickToCopy
58
+ copyLayout?: VxeTextPropTypes.CopyLayout
42
59
  size?: VxeTextPropTypes.Size
43
60
  }
44
61
 
@@ -58,7 +75,9 @@ export interface TextPrivateMethods { }
58
75
  export interface VxeTextPrivateMethods extends TextPrivateMethods { }
59
76
 
60
77
  export type VxeTextEmits = [
61
- 'click'
78
+ 'click',
79
+ 'prefix-click',
80
+ 'suffix-click'
62
81
  ]
63
82
 
64
83
  export namespace VxeTextDefines {