vxe-pc-ui 4.6.3 → 4.6.5

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 (139) hide show
  1. package/es/button/src/button.js +20 -73
  2. package/es/button/style.css +24 -2
  3. package/es/button/style.min.css +1 -1
  4. package/es/color-picker/src/color-picker.js +19 -72
  5. package/es/color-picker/style.css +15 -0
  6. package/es/color-picker/style.min.css +1 -1
  7. package/es/date-picker/src/date-picker.js +19 -74
  8. package/es/date-picker/style.css +3 -2
  9. package/es/date-picker/style.min.css +1 -1
  10. package/es/date-range-picker/src/date-range-picker.js +24 -79
  11. package/es/date-range-picker/style.css +3 -2
  12. package/es/date-range-picker/style.min.css +1 -1
  13. package/es/icon/style.css +1 -1
  14. package/es/print/src/print.js +2 -2
  15. package/es/print/src/util.js +72 -40
  16. package/es/pulldown/src/pulldown.js +19 -74
  17. package/es/pulldown/style.css +0 -4
  18. package/es/pulldown/style.min.css +1 -1
  19. package/es/select/src/select.js +19 -72
  20. package/es/style.css +1 -1
  21. package/es/style.min.css +1 -1
  22. package/es/table-select/src/table-select.js +19 -72
  23. package/es/table-select/style.css +0 -1
  24. package/es/table-select/style.min.css +1 -1
  25. package/es/tree-select/src/tree-select.js +19 -72
  26. package/es/tree-select/style.css +0 -1
  27. package/es/tree-select/style.min.css +1 -1
  28. package/es/ui/index.js +1 -1
  29. package/es/ui/src/dom.js +92 -0
  30. package/es/ui/src/log.js +1 -1
  31. package/es/vxe-button/style.css +24 -2
  32. package/es/vxe-button/style.min.css +1 -1
  33. package/es/vxe-color-picker/style.css +15 -0
  34. package/es/vxe-color-picker/style.min.css +1 -1
  35. package/es/vxe-date-picker/style.css +3 -2
  36. package/es/vxe-date-picker/style.min.css +1 -1
  37. package/es/vxe-date-range-picker/style.css +3 -2
  38. package/es/vxe-date-range-picker/style.min.css +1 -1
  39. package/es/vxe-pulldown/style.css +0 -4
  40. package/es/vxe-pulldown/style.min.css +1 -1
  41. package/es/vxe-table-select/style.css +0 -1
  42. package/es/vxe-table-select/style.min.css +1 -1
  43. package/es/vxe-tree-select/style.css +0 -1
  44. package/es/vxe-tree-select/style.min.css +1 -1
  45. package/lib/button/src/button.js +23 -79
  46. package/lib/button/src/button.min.js +1 -1
  47. package/lib/button/style/style.css +24 -2
  48. package/lib/button/style/style.min.css +1 -1
  49. package/lib/color-picker/src/color-picker.js +22 -77
  50. package/lib/color-picker/src/color-picker.min.js +1 -1
  51. package/lib/color-picker/style/style.css +15 -0
  52. package/lib/color-picker/style/style.min.css +1 -1
  53. package/lib/date-picker/src/date-picker.js +22 -79
  54. package/lib/date-picker/src/date-picker.min.js +1 -1
  55. package/lib/date-picker/style/style.css +3 -2
  56. package/lib/date-picker/style/style.min.css +1 -1
  57. package/lib/date-range-picker/src/date-range-picker.js +26 -83
  58. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  59. package/lib/date-range-picker/style/style.css +3 -2
  60. package/lib/date-range-picker/style/style.min.css +1 -1
  61. package/lib/icon/style/style.css +1 -1
  62. package/lib/icon/style/style.min.css +1 -1
  63. package/lib/index.umd.js +333 -670
  64. package/lib/index.umd.min.js +1 -1
  65. package/lib/print/src/print.js +1 -1
  66. package/lib/print/src/print.min.js +1 -1
  67. package/lib/print/src/util.js +54 -38
  68. package/lib/print/src/util.min.js +1 -1
  69. package/lib/pulldown/src/pulldown.js +22 -80
  70. package/lib/pulldown/src/pulldown.min.js +1 -1
  71. package/lib/pulldown/style/style.css +0 -4
  72. package/lib/pulldown/style/style.min.css +1 -1
  73. package/lib/select/src/select.js +22 -77
  74. package/lib/select/src/select.min.js +1 -1
  75. package/lib/style.css +1 -1
  76. package/lib/style.min.css +1 -1
  77. package/lib/table-select/src/table-select.js +22 -77
  78. package/lib/table-select/src/table-select.min.js +1 -1
  79. package/lib/table-select/style/style.css +0 -1
  80. package/lib/table-select/style/style.min.css +1 -1
  81. package/lib/tree-select/src/tree-select.js +22 -77
  82. package/lib/tree-select/src/tree-select.min.js +1 -1
  83. package/lib/tree-select/style/style.css +0 -1
  84. package/lib/tree-select/style/style.min.css +1 -1
  85. package/lib/ui/index.js +1 -1
  86. package/lib/ui/index.min.js +1 -1
  87. package/lib/ui/src/dom.js +97 -0
  88. package/lib/ui/src/dom.min.js +1 -1
  89. package/lib/ui/src/log.js +1 -1
  90. package/lib/ui/src/log.min.js +1 -1
  91. package/lib/vxe-button/style/style.css +24 -2
  92. package/lib/vxe-button/style/style.min.css +1 -1
  93. package/lib/vxe-color-picker/style/style.css +15 -0
  94. package/lib/vxe-color-picker/style/style.min.css +1 -1
  95. package/lib/vxe-date-picker/style/style.css +3 -2
  96. package/lib/vxe-date-picker/style/style.min.css +1 -1
  97. package/lib/vxe-date-range-picker/style/style.css +3 -2
  98. package/lib/vxe-date-range-picker/style/style.min.css +1 -1
  99. package/lib/vxe-pulldown/style/style.css +0 -4
  100. package/lib/vxe-pulldown/style/style.min.css +1 -1
  101. package/lib/vxe-table-select/style/style.css +0 -1
  102. package/lib/vxe-table-select/style/style.min.css +1 -1
  103. package/lib/vxe-tree-select/style/style.css +0 -1
  104. package/lib/vxe-tree-select/style/style.min.css +1 -1
  105. package/package.json +1 -1
  106. package/packages/button/src/button.ts +20 -70
  107. package/packages/color-picker/src/color-picker.ts +19 -69
  108. package/packages/date-picker/src/date-picker.ts +20 -72
  109. package/packages/date-range-picker/src/date-range-picker.ts +24 -76
  110. package/packages/print/src/print.ts +2 -2
  111. package/packages/print/src/util.ts +73 -39
  112. package/packages/pulldown/src/pulldown.ts +20 -72
  113. package/packages/select/src/select.ts +19 -69
  114. package/packages/table-select/src/table-select.ts +19 -69
  115. package/packages/tree-select/src/tree-select.ts +19 -69
  116. package/packages/ui/src/dom.ts +96 -1
  117. package/styles/components/button.scss +3 -20
  118. package/styles/components/color-picker.scss +2 -27
  119. package/styles/components/date-picker.scss +2 -34
  120. package/styles/components/date-range-picker.scss +2 -34
  121. package/styles/components/pulldown.scss +2 -41
  122. package/styles/components/select.scss +2 -35
  123. package/styles/components/table-select.scss +2 -36
  124. package/styles/components/tree-select.scss +2 -36
  125. package/styles/helpers/placement.scss +39 -0
  126. package/types/components/print.d.ts +21 -0
  127. package/types/components/table.d.ts +51 -0
  128. /package/es/icon/{iconfont.1747005800508.ttf → iconfont.1747094595378.ttf} +0 -0
  129. /package/es/icon/{iconfont.1747005800508.woff → iconfont.1747094595378.woff} +0 -0
  130. /package/es/icon/{iconfont.1747005800508.woff2 → iconfont.1747094595378.woff2} +0 -0
  131. /package/es/{iconfont.1747005800508.ttf → iconfont.1747094595378.ttf} +0 -0
  132. /package/es/{iconfont.1747005800508.woff → iconfont.1747094595378.woff} +0 -0
  133. /package/es/{iconfont.1747005800508.woff2 → iconfont.1747094595378.woff2} +0 -0
  134. /package/lib/icon/style/{iconfont.1747005800508.ttf → iconfont.1747094595378.ttf} +0 -0
  135. /package/lib/icon/style/{iconfont.1747005800508.woff → iconfont.1747094595378.woff} +0 -0
  136. /package/lib/icon/style/{iconfont.1747005800508.woff2 → iconfont.1747094595378.woff2} +0 -0
  137. /package/lib/{iconfont.1747005800508.ttf → iconfont.1747094595378.ttf} +0 -0
  138. /package/lib/{iconfont.1747005800508.woff → iconfont.1747094595378.woff} +0 -0
  139. /package/lib/{iconfont.1747005800508.woff2 → iconfont.1747094595378.woff2} +0 -0
@@ -0,0 +1,39 @@
1
+ @use './baseMixin.scss';
2
+
3
+ @mixin createPlacementPanel {
4
+ display: none;
5
+ position: absolute;
6
+ left: 0;
7
+ padding: 4px 0;
8
+ color: var(--vxe-ui-font-color);
9
+ text-align: left;
10
+ &:not(.is--transfer) {
11
+ min-width: 100%;
12
+ }
13
+ &.is--transfer {
14
+ position: fixed;
15
+ }
16
+ &.ani--leave {
17
+ display: block;
18
+ opacity: 0;
19
+ transform: scaleY(0.5);
20
+ transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .3s cubic-bezier(.23,1,.32,1);
21
+ transform-origin: center top;
22
+ backface-visibility: hidden;
23
+ &[placement="top"] {
24
+ transform-origin: center bottom;
25
+ }
26
+ }
27
+ &.ani--enter {
28
+ opacity: 1;
29
+ transform: scaleY(1);
30
+ & > div {
31
+ &::after {
32
+ display: none;
33
+ }
34
+ }
35
+ }
36
+ & > div {
37
+ @include baseMixin.createEmptyMask();
38
+ }
39
+ }
@@ -38,6 +38,27 @@ export namespace VxePrintPropTypes {
38
38
  marginBottom?: number | string | null
39
39
  marginLeft?: number | string | null
40
40
  marginRight?: number | string | null
41
+ fontSize?: number | string | null
42
+ color?: string | null
43
+ textAlign?: VxeComponentAlignType
44
+ header?: {
45
+ height?: number | string | null
46
+ textAlign?: VxeComponentAlignType
47
+ }
48
+ title?: {
49
+ fontSize?: number | string | null
50
+ color?: string | null
51
+ textAlign?: VxeComponentAlignType
52
+ }
53
+ footer?: {
54
+ height?: number | string | null
55
+ textAlign?: VxeComponentAlignType
56
+ }
57
+ pageNumber?: {
58
+ fontSize?: number | string | null
59
+ color?: string | null
60
+ textAlign?: VxeComponentAlignType
61
+ }
41
62
  }
42
63
  export type CustomStyle = string
43
64
  export type ShowAllPageTitle = boolean
@@ -1943,6 +1943,54 @@ export namespace VxeTablePropTypes {
1943
1943
  replaceValue: string
1944
1944
  result: VxeTableExtendCellAreaDefines.FindAndReplaceResult[]
1945
1945
  }) => void
1946
+ /**
1947
+ * 匹配选项配置
1948
+ */
1949
+ matchOptions?: {
1950
+ /**
1951
+ * 是否启用正则表达式
1952
+ */
1953
+ isRE?: boolean
1954
+ /**
1955
+ * 是否启用全词匹配
1956
+ */
1957
+ isWhole?: boolean
1958
+ /**
1959
+ * 是否启用区分大小写
1960
+ */
1961
+ isSensitive?: boolean
1962
+ }
1963
+ /**
1964
+ * 列表配置项
1965
+ */
1966
+ listOptions?: {
1967
+ /**
1968
+ * 格式化列表的显示值
1969
+ */
1970
+ formatCellValue?(params: {
1971
+ item: VxeTableExtendCellAreaDefines.FNRSearch
1972
+ cellValue: any
1973
+ }): string | number
1974
+ }
1975
+ /**
1976
+ * 弹窗配置项
1977
+ */
1978
+ modalOptions?: {
1979
+ title?: VxeModalPropTypes.Title
1980
+ width?: VxeModalPropTypes.Width
1981
+ minWidth?: VxeModalPropTypes.MinWidth
1982
+ height?: VxeModalPropTypes.Height
1983
+ minHeight?: VxeModalPropTypes.MinHeight
1984
+ className?: VxeModalPropTypes.ClassName
1985
+ resize?: VxeModalPropTypes.Resize
1986
+ showMaximize?: VxeModalPropTypes.ShowMaximize
1987
+ showMinimize?: VxeModalPropTypes.ShowMinimize
1988
+ showZoom?: VxeModalPropTypes.ShowZoom
1989
+ lockView?: VxeModalPropTypes.LockView
1990
+ mask?: VxeModalPropTypes.Mask
1991
+ maskClosable?: VxeModalPropTypes.MaskClosable
1992
+ escClosable?: VxeModalPropTypes.EscClosable
1993
+ }
1946
1994
  }
1947
1995
  export interface FNROpts<DT = any> extends FnrConfig<DT> { }
1948
1996
 
@@ -3095,6 +3143,7 @@ export interface VxeTableProps<D = any> {
3095
3143
  export interface TablePrivateComputed<D = any> {
3096
3144
  computeSize: ComputedRef<VxeTablePropTypes.Size>
3097
3145
  computeTableId: ComputedRef<string>
3146
+ computeRowField: ComputedRef<string>
3098
3147
  computeValidOpts: ComputedRef<VxeTablePropTypes.ValidOpts<D>>
3099
3148
  computeVirtualXOpts: ComputedRef<VxeTablePropTypes.VirtualXConfig & { gt: number }>
3100
3149
  computeVirtualYOpts: ComputedRef<VxeTablePropTypes.VirtualYConfig & { gt: number }>
@@ -3426,6 +3475,8 @@ export interface TableReactData<D = any> {
3426
3475
 
3427
3476
  export interface TableInternalData<D = any> {
3428
3477
  tZindex: number
3478
+ currKeyField: string
3479
+ isCurrDeepKey: boolean
3429
3480
  elemStore: {
3430
3481
  [key: string]: Ref<HTMLElement> |Ref<ComponentPublicInstance> | null
3431
3482
  }