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.
- package/es/icon/style.css +1 -1
- package/es/language/ar-EG.js +3 -0
- package/es/language/de-DE.js +3 -0
- package/es/language/en-US.js +3 -0
- package/es/language/es-ES.js +3 -0
- package/es/language/fr-FR.js +3 -0
- package/es/language/hu-HU.js +3 -0
- package/es/language/hy-AM.js +3 -0
- package/es/language/ja-JP.js +3 -0
- package/es/language/ko-KR.js +3 -0
- package/es/language/nb-NO.js +3 -0
- package/es/language/pt-BR.js +3 -0
- package/es/language/ru-RU.js +3 -0
- package/es/language/ug-CN.js +3 -0
- package/es/language/uk-UA.js +3 -0
- package/es/language/vi-VN.js +3 -0
- package/es/language/zh-CHT.js +3 -0
- package/es/language/zh-CN.js +3 -0
- package/es/number-input/src/number-input.js +14 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +10 -5
- package/es/upload/style.css +1 -2
- package/es/upload/style.min.css +1 -1
- package/es/vxe-upload/style.css +1 -2
- package/es/vxe-upload/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +35 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/language/ar-EG.js +3 -0
- package/lib/language/ar-EG.min.js +1 -1
- package/lib/language/de-DE.js +3 -0
- package/lib/language/de-DE.min.js +1 -1
- package/lib/language/en-US.js +3 -0
- package/lib/language/en-US.min.js +1 -1
- package/lib/language/en-US.umd.js +3 -0
- package/lib/language/es-ES.js +3 -0
- package/lib/language/es-ES.min.js +1 -1
- package/lib/language/es-ES.umd.js +3 -0
- package/lib/language/fr-FR.js +3 -0
- package/lib/language/fr-FR.min.js +1 -1
- package/lib/language/hu-HU.js +3 -0
- package/lib/language/hu-HU.min.js +1 -1
- package/lib/language/hu-HU.umd.js +3 -0
- package/lib/language/hy-AM.js +3 -0
- package/lib/language/hy-AM.min.js +1 -1
- package/lib/language/ja-JP.js +3 -0
- package/lib/language/ja-JP.min.js +1 -1
- package/lib/language/ja-JP.umd.js +3 -0
- package/lib/language/ko-KR.js +3 -0
- package/lib/language/ko-KR.min.js +1 -1
- package/lib/language/ko-KR.umd.js +3 -0
- package/lib/language/nb-NO.js +3 -0
- package/lib/language/nb-NO.min.js +1 -1
- package/lib/language/pt-BR.js +3 -0
- package/lib/language/pt-BR.min.js +1 -1
- package/lib/language/pt-BR.umd.js +3 -0
- package/lib/language/ru-RU.js +3 -0
- package/lib/language/ru-RU.min.js +1 -1
- package/lib/language/ru-RU.umd.js +3 -0
- package/lib/language/ug-CN.js +3 -0
- package/lib/language/ug-CN.min.js +1 -1
- package/lib/language/uk-UA.js +3 -0
- package/lib/language/uk-UA.min.js +1 -1
- package/lib/language/uk-UA.umd.js +3 -0
- package/lib/language/vi-VN.js +3 -0
- package/lib/language/vi-VN.min.js +1 -1
- package/lib/language/zh-CHT.js +3 -0
- package/lib/language/zh-CHT.min.js +1 -1
- package/lib/language/zh-CHT.umd.js +3 -0
- package/lib/language/zh-CN.js +3 -0
- package/lib/language/zh-CN.min.js +1 -1
- package/lib/language/zh-CN.umd.js +3 -0
- package/lib/number-input/src/number-input.js +20 -2
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +9 -4
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/upload/style/style.css +1 -2
- package/lib/upload/style/style.min.css +1 -1
- package/lib/vxe-upload/style/style.css +1 -2
- package/lib/vxe-upload/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/language/ar-EG.ts +3 -0
- package/packages/language/de-DE.ts +3 -0
- package/packages/language/en-US.ts +3 -0
- package/packages/language/es-ES.ts +3 -0
- package/packages/language/fr-FR.ts +3 -0
- package/packages/language/hu-HU.ts +3 -0
- package/packages/language/hy-AM.ts +3 -0
- package/packages/language/ja-JP.ts +3 -0
- package/packages/language/ko-KR.ts +3 -0
- package/packages/language/nb-NO.ts +3 -0
- package/packages/language/pt-BR.ts +3 -0
- package/packages/language/ru-RU.ts +3 -0
- package/packages/language/ug-CN.ts +3 -0
- package/packages/language/uk-UA.ts +3 -0
- package/packages/language/vi-VN.ts +3 -0
- package/packages/language/zh-CHT.ts +3 -0
- package/packages/language/zh-CN.ts +3 -0
- package/packages/number-input/src/number-input.ts +14 -2
- package/packages/upload/src/upload.ts +10 -5
- package/styles/components/upload.scss +1 -2
- package/types/components/number-input.d.ts +12 -0
- package/types/components/table.d.ts +16 -0
- /package/es/icon/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
- /package/es/icon/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
- /package/es/icon/{iconfont.1734347209149.woff2 → iconfont.1734427242348.woff2} +0 -0
- /package/es/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
- /package/es/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
- /package/es/{iconfont.1734347209149.woff2 → iconfont.1734427242348.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
- /package/lib/icon/style/{iconfont.1734347209149.woff2 → iconfont.1734427242348.woff2} +0 -0
- /package/lib/{iconfont.1734347209149.ttf → iconfont.1734427242348.ttf} +0 -0
- /package/lib/{iconfont.1734347209149.woff → iconfont.1734427242348.woff} +0 -0
- /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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|