vxe-pc-ui 3.3.37 → 3.3.39

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 (125) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/language/ar-EG.js +3 -0
  3. package/es/language/de-DE.js +3 -0
  4. package/es/language/en-US.js +3 -0
  5. package/es/language/es-ES.js +3 -0
  6. package/es/language/fr-FR.js +3 -0
  7. package/es/language/hu-HU.js +3 -0
  8. package/es/language/hy-AM.js +3 -0
  9. package/es/language/ja-JP.js +3 -0
  10. package/es/language/ko-KR.js +3 -0
  11. package/es/language/nb-NO.js +3 -0
  12. package/es/language/pt-BR.js +3 -0
  13. package/es/language/ru-RU.js +3 -0
  14. package/es/language/ug-CN.js +3 -0
  15. package/es/language/uk-UA.js +3 -0
  16. package/es/language/vi-VN.js +3 -0
  17. package/es/language/zh-CHT.js +3 -0
  18. package/es/language/zh-CN.js +3 -0
  19. package/es/number-input/src/number-input.js +14 -2
  20. package/es/style.css +1 -1
  21. package/es/style.min.css +1 -1
  22. package/es/ui/index.js +1 -1
  23. package/es/ui/src/log.js +1 -1
  24. package/es/upload/src/upload.js +10 -5
  25. package/es/upload/style.css +1 -2
  26. package/es/upload/style.min.css +1 -1
  27. package/es/vxe-upload/style.css +1 -2
  28. package/es/vxe-upload/style.min.css +1 -1
  29. package/lib/icon/style/style.css +1 -1
  30. package/lib/icon/style/style.min.css +1 -1
  31. package/lib/index.umd.js +35 -8
  32. package/lib/index.umd.min.js +1 -1
  33. package/lib/language/ar-EG.js +3 -0
  34. package/lib/language/ar-EG.min.js +1 -1
  35. package/lib/language/de-DE.js +3 -0
  36. package/lib/language/de-DE.min.js +1 -1
  37. package/lib/language/en-US.js +3 -0
  38. package/lib/language/en-US.min.js +1 -1
  39. package/lib/language/en-US.umd.js +3 -0
  40. package/lib/language/es-ES.js +3 -0
  41. package/lib/language/es-ES.min.js +1 -1
  42. package/lib/language/es-ES.umd.js +3 -0
  43. package/lib/language/fr-FR.js +3 -0
  44. package/lib/language/fr-FR.min.js +1 -1
  45. package/lib/language/hu-HU.js +3 -0
  46. package/lib/language/hu-HU.min.js +1 -1
  47. package/lib/language/hu-HU.umd.js +3 -0
  48. package/lib/language/hy-AM.js +3 -0
  49. package/lib/language/hy-AM.min.js +1 -1
  50. package/lib/language/ja-JP.js +3 -0
  51. package/lib/language/ja-JP.min.js +1 -1
  52. package/lib/language/ja-JP.umd.js +3 -0
  53. package/lib/language/ko-KR.js +3 -0
  54. package/lib/language/ko-KR.min.js +1 -1
  55. package/lib/language/ko-KR.umd.js +3 -0
  56. package/lib/language/nb-NO.js +3 -0
  57. package/lib/language/nb-NO.min.js +1 -1
  58. package/lib/language/pt-BR.js +3 -0
  59. package/lib/language/pt-BR.min.js +1 -1
  60. package/lib/language/pt-BR.umd.js +3 -0
  61. package/lib/language/ru-RU.js +3 -0
  62. package/lib/language/ru-RU.min.js +1 -1
  63. package/lib/language/ru-RU.umd.js +3 -0
  64. package/lib/language/ug-CN.js +3 -0
  65. package/lib/language/ug-CN.min.js +1 -1
  66. package/lib/language/uk-UA.js +3 -0
  67. package/lib/language/uk-UA.min.js +1 -1
  68. package/lib/language/uk-UA.umd.js +3 -0
  69. package/lib/language/vi-VN.js +3 -0
  70. package/lib/language/vi-VN.min.js +1 -1
  71. package/lib/language/zh-CHT.js +3 -0
  72. package/lib/language/zh-CHT.min.js +1 -1
  73. package/lib/language/zh-CHT.umd.js +3 -0
  74. package/lib/language/zh-CN.js +3 -0
  75. package/lib/language/zh-CN.min.js +1 -1
  76. package/lib/language/zh-CN.umd.js +3 -0
  77. package/lib/number-input/src/number-input.js +20 -2
  78. package/lib/number-input/src/number-input.min.js +1 -1
  79. package/lib/style.css +1 -1
  80. package/lib/style.min.css +1 -1
  81. package/lib/ui/index.js +1 -1
  82. package/lib/ui/index.min.js +1 -1
  83. package/lib/ui/src/log.js +1 -1
  84. package/lib/ui/src/log.min.js +1 -1
  85. package/lib/upload/src/upload.js +9 -4
  86. package/lib/upload/src/upload.min.js +1 -1
  87. package/lib/upload/style/style.css +1 -2
  88. package/lib/upload/style/style.min.css +1 -1
  89. package/lib/vxe-upload/style/style.css +1 -2
  90. package/lib/vxe-upload/style/style.min.css +1 -1
  91. package/package.json +1 -1
  92. package/packages/language/ar-EG.ts +3 -0
  93. package/packages/language/de-DE.ts +3 -0
  94. package/packages/language/en-US.ts +3 -0
  95. package/packages/language/es-ES.ts +3 -0
  96. package/packages/language/fr-FR.ts +3 -0
  97. package/packages/language/hu-HU.ts +3 -0
  98. package/packages/language/hy-AM.ts +3 -0
  99. package/packages/language/ja-JP.ts +3 -0
  100. package/packages/language/ko-KR.ts +3 -0
  101. package/packages/language/nb-NO.ts +3 -0
  102. package/packages/language/pt-BR.ts +3 -0
  103. package/packages/language/ru-RU.ts +3 -0
  104. package/packages/language/ug-CN.ts +3 -0
  105. package/packages/language/uk-UA.ts +3 -0
  106. package/packages/language/vi-VN.ts +3 -0
  107. package/packages/language/zh-CHT.ts +3 -0
  108. package/packages/language/zh-CN.ts +3 -0
  109. package/packages/number-input/src/number-input.ts +14 -2
  110. package/packages/upload/src/upload.ts +10 -5
  111. package/styles/components/upload.scss +1 -2
  112. package/types/components/number-input.d.ts +12 -0
  113. package/types/components/table.d.ts +16 -0
  114. /package/es/icon/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
  115. /package/es/icon/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
  116. /package/es/icon/{iconfont.1734347209149.woff2 → iconfont.1734427242348.woff2} +0 -0
  117. /package/es/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
  118. /package/es/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
  119. /package/es/{iconfont.1734347209149.woff2 → iconfont.1734427242348.woff2} +0 -0
  120. /package/lib/icon/style/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
  121. /package/lib/icon/style/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
  122. /package/lib/icon/style/{iconfont.1734347209149.woff2 → iconfont.1734427242348.woff2} +0 -0
  123. /package/lib/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
  124. /package/lib/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
  125. /package/lib/{iconfont.1734347209149.woff2 → iconfont.1734427242348.woff2} +0 -0
@@ -77,6 +77,14 @@ export default defineVxeComponent({
77
77
  type: Boolean as PropType<VxeNumberInputPropTypes.Exponential>,
78
78
  default: () => getConfig().numberInput.exponential
79
79
  },
80
+ showCurrency: {
81
+ type: Boolean as PropType<VxeNumberInputPropTypes.ShowCurrency>,
82
+ default: () => getConfig().numberInput.showCurrency
83
+ },
84
+ currencySymbol: {
85
+ type: String as PropType<VxeNumberInputPropTypes.CurrencySymbol>,
86
+ default: () => getConfig().numberInput.currencySymbol
87
+ },
80
88
 
81
89
  // number、integer、float
82
90
  controls: {
@@ -253,11 +261,15 @@ export default defineVxeComponent({
253
261
  const props = $xeNumberInput
254
262
  const reactData = $xeNumberInput.reactData
255
263
 
256
- const { type } = props
264
+ const { type, showCurrency, currencySymbol } = props
257
265
  const { inputValue } = reactData
258
266
  const digitsValue = $xeNumberInput.computeDigitsValue
259
267
  if (type === 'amount') {
260
- return XEUtils.commafy(XEUtils.toNumber(inputValue), { digits: digitsValue })
268
+ const amountLabel = XEUtils.commafy(XEUtils.toNumber(inputValue), { digits: digitsValue })
269
+ if (showCurrency) {
270
+ return `${currencySymbol || getI18n('vxe.numberInput.currencySymbol') || ''}${amountLabel}`
271
+ }
272
+ return amountLabel
261
273
  }
262
274
  return XEUtils.toString(inputValue)
263
275
  },
@@ -3,7 +3,7 @@ import { defineVxeComponent } from '../../ui/src/comp'
3
3
  import XEUtils from 'xe-utils'
4
4
  import { VxeUI, getConfig, getI18n, getIcon, globalMixins, createEvent, globalEvents, renderEmptyElement } from '../../ui'
5
5
  import { getSlotVNs } from '../..//ui/src/vn'
6
- import { errLog } from '../../ui/src/log'
6
+ import { errLog, warnLog } from '../../ui/src/log'
7
7
  import { tpImg, getEventTargetNode, toCssUnit } from '../../ui/src/dom'
8
8
  import { readLocalFile } from './util'
9
9
  import VxeButtonComponent from '../../button/src/button'
@@ -30,12 +30,14 @@ function showDropTip ($xeUpload: VxeUploadConstructor, evnt: DragEvent, dragEl:
30
30
 
31
31
  const reactData = $xeUpload.reactData
32
32
 
33
+ const { showMorePopup } = reactData
33
34
  const el = $xeUpload.$refs.refElem as HTMLDivElement
34
- if (!el) {
35
+ const popupEl = document.getElementById(`refPopupElem${xID}`) as HTMLDivElement
36
+ const wrapperEl = showMorePopup ? popupEl : el
37
+ if (!wrapperEl) {
35
38
  return
36
39
  }
37
- const { showMorePopup } = reactData
38
- const wrapperRect = el.getBoundingClientRect()
40
+ const wrapperRect = wrapperEl.getBoundingClientRect()
39
41
  const ddLineEl = $xeUpload.$refs.refDragLineElem as HTMLDivElement
40
42
  const mdLineEl = document.getElementById(`refModalDragLineElem${xID}`) as HTMLDivElement
41
43
  const currDLineEl = showMorePopup ? mdLineEl : ddLineEl
@@ -1018,6 +1020,9 @@ export default defineVxeComponent({
1018
1020
  }
1019
1021
 
1020
1022
  return h('div', {
1023
+ attrs: {
1024
+ id: `refPopupElem${xID}`
1025
+ },
1021
1026
  class: ['vxe-upload--more-popup', {
1022
1027
  'is--readonly': formReadonly,
1023
1028
  'is--disabled': isDisabled,
@@ -1776,7 +1781,7 @@ export default defineVxeComponent({
1776
1781
  errLog('vxe.error.errConflicts', ['multiple', 'single-mode'])
1777
1782
  }
1778
1783
  if (props.imageStyle) {
1779
- errLog('vxe.error.delProp', ['image-style', 'image-config'])
1784
+ warnLog('vxe.error.delProp', ['image-style', 'image-config'])
1780
1785
  }
1781
1786
  }
1782
1787
  globalEvents.on($xeUpload, 'paste', $xeUpload.handleGlobalPasteEvent)
@@ -82,8 +82,7 @@
82
82
  flex-direction: row;
83
83
  align-items: center;
84
84
  line-height: 1.5em;
85
- margin-bottom: var(--vxe-ui-layout-padding-half);
86
- padding: 0.1em var(--vxe-ui-layout-padding-half);
85
+ padding: var(--vxe-ui-layout-padding-half);
87
86
  &:hover {
88
87
  background-color: var(--vxe-ui-base-hover-background-color);
89
88
  &:not(.is--loading) {
@@ -40,6 +40,9 @@ export namespace VxeNumberInputPropTypes {
40
40
  export type PrefixIcon = string
41
41
  export type SuffixIcon = string
42
42
 
43
+ export type ShowCurrency = boolean
44
+ export type CurrencySymbol = string | null
45
+
43
46
  /**
44
47
  * 请使用 AutoComplete
45
48
  * @deprecated
@@ -84,6 +87,15 @@ export interface VxeNumberInputProps {
84
87
  prefixIcon?: VxeNumberInputPropTypes.PrefixIcon
85
88
  suffixIcon?: VxeNumberInputPropTypes.SuffixIcon
86
89
 
90
+ /**
91
+ * 只对 type=amount 有效,是否显示前缀货币符号
92
+ */
93
+ showCurrency?: VxeNumberInputPropTypes.ShowCurrency
94
+ /**
95
+ * 只对 type=amount 有效,自定义货币符号
96
+ */
97
+ currencySymbol?: VxeNumberInputPropTypes.CurrencySymbol
98
+
87
99
  /**
88
100
  * 请使用 autoComplete
89
101
  * @deprecated
@@ -1908,6 +1908,14 @@ export namespace VxeTablePropTypes {
1908
1908
  * 自定义列
1909
1909
  */
1910
1910
  columns?: VxeTableDefines.ColumnInfo[] | ExportOrPrintColumnOption[]
1911
+ /**
1912
+ * 指定列
1913
+ */
1914
+ includeFields?: string[]
1915
+ /**
1916
+ * 排序列
1917
+ */
1918
+ excludeFields?: string[]
1911
1919
  /**
1912
1920
  * 列过滤方法
1913
1921
  */
@@ -2017,6 +2025,14 @@ export namespace VxeTablePropTypes {
2017
2025
  * 自定义参数
2018
2026
  */
2019
2027
  params?: Record<string, any>
2028
+ /**
2029
+ * 指定列
2030
+ */
2031
+ includeFields?: string[]
2032
+ /**
2033
+ * 排序列
2034
+ */
2035
+ excludeFields?: string[]
2020
2036
  /**
2021
2037
  * 列过滤方法
2022
2038
  */