vxe-pc-ui 3.3.22 → 3.3.24
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/{iconfont.1733469460100.ttf → iconfont.1733649304143.ttf} +0 -0
- package/es/icon/iconfont.1733649304143.woff +0 -0
- package/es/icon/iconfont.1733649304143.woff2 +0 -0
- package/es/icon/style.css +5 -1
- package/es/icon/style.min.css +1 -1
- package/{lib/icon/style/iconfont.1733469460100.ttf → es/iconfont.1733649304143.ttf} +0 -0
- package/es/iconfont.1733649304143.woff +0 -0
- package/es/iconfont.1733649304143.woff2 +0 -0
- package/es/language/ar-EG.js +2 -0
- package/es/language/de-DE.js +2 -0
- package/es/language/en-US.js +3 -1
- package/es/language/es-ES.js +2 -0
- package/es/language/fr-FR.js +2 -0
- package/es/language/hu-HU.js +2 -0
- package/es/language/hy-AM.js +2 -0
- package/es/language/ja-JP.js +2 -0
- package/es/language/ko-KR.js +2 -0
- package/es/language/nb-NO.js +2 -0
- package/es/language/pt-BR.js +2 -0
- package/es/language/ru-RU.js +2 -0
- package/es/language/ug-CN.js +2 -0
- package/es/language/uk-UA.js +2 -0
- package/es/language/vi-VN.js +2 -0
- package/es/language/zh-CHT.js +2 -0
- package/es/language/zh-CN.js +2 -0
- package/es/number-input/src/number-input.js +5 -5
- 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/vxe-icon/style.css +5 -1
- package/es/vxe-icon/style.min.css +1 -1
- package/lib/{iconfont.1733469460100.ttf → icon/style/iconfont.1733649304143.ttf} +0 -0
- package/lib/icon/style/iconfont.1733649304143.woff +0 -0
- package/lib/icon/style/iconfont.1733649304143.woff2 +0 -0
- package/lib/icon/style/style.css +5 -1
- package/lib/icon/style/style.min.css +5 -1
- package/{es/iconfont.1733469460100.ttf → lib/iconfont.1733649304143.ttf} +0 -0
- package/lib/iconfont.1733649304143.woff +0 -0
- package/lib/iconfont.1733649304143.woff2 +0 -0
- package/lib/index.umd.js +8 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/language/ar-EG.js +2 -0
- package/lib/language/ar-EG.min.js +1 -1
- package/lib/language/de-DE.js +2 -0
- package/lib/language/de-DE.min.js +1 -1
- package/lib/language/en-US.js +3 -1
- package/lib/language/en-US.min.js +1 -1
- package/lib/language/en-US.umd.js +3 -1
- package/lib/language/es-ES.js +2 -0
- package/lib/language/es-ES.min.js +1 -1
- package/lib/language/es-ES.umd.js +2 -0
- package/lib/language/fr-FR.js +2 -0
- package/lib/language/fr-FR.min.js +1 -1
- package/lib/language/hu-HU.js +2 -0
- package/lib/language/hu-HU.min.js +1 -1
- package/lib/language/hu-HU.umd.js +2 -0
- package/lib/language/hy-AM.js +2 -0
- package/lib/language/hy-AM.min.js +1 -1
- package/lib/language/ja-JP.js +2 -0
- package/lib/language/ja-JP.min.js +1 -1
- package/lib/language/ja-JP.umd.js +2 -0
- package/lib/language/ko-KR.js +2 -0
- package/lib/language/ko-KR.min.js +1 -1
- package/lib/language/ko-KR.umd.js +2 -0
- package/lib/language/nb-NO.js +2 -0
- package/lib/language/nb-NO.min.js +1 -1
- package/lib/language/pt-BR.js +2 -0
- package/lib/language/pt-BR.min.js +1 -1
- package/lib/language/pt-BR.umd.js +2 -0
- package/lib/language/ru-RU.js +2 -0
- package/lib/language/ru-RU.min.js +1 -1
- package/lib/language/ru-RU.umd.js +2 -0
- package/lib/language/ug-CN.js +2 -0
- package/lib/language/ug-CN.min.js +1 -1
- package/lib/language/uk-UA.js +2 -0
- package/lib/language/uk-UA.min.js +1 -1
- package/lib/language/uk-UA.umd.js +2 -0
- package/lib/language/vi-VN.js +2 -0
- package/lib/language/vi-VN.min.js +1 -1
- package/lib/language/zh-CHT.js +2 -0
- package/lib/language/zh-CHT.min.js +1 -1
- package/lib/language/zh-CHT.umd.js +2 -0
- package/lib/language/zh-CN.js +2 -0
- package/lib/language/zh-CN.min.js +1 -1
- package/lib/language/zh-CN.umd.js +2 -0
- package/lib/number-input/src/number-input.js +4 -4
- 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/vxe-icon/style/style.css +5 -1
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/language/ar-EG.ts +2 -0
- package/packages/language/de-DE.ts +2 -0
- package/packages/language/en-US.ts +3 -1
- package/packages/language/es-ES.ts +2 -0
- package/packages/language/fr-FR.ts +2 -0
- package/packages/language/hu-HU.ts +2 -0
- package/packages/language/hy-AM.ts +2 -0
- package/packages/language/ja-JP.ts +2 -0
- package/packages/language/ko-KR.ts +2 -0
- package/packages/language/nb-NO.ts +2 -0
- package/packages/language/pt-BR.ts +2 -0
- package/packages/language/ru-RU.ts +2 -0
- package/packages/language/ug-CN.ts +2 -0
- package/packages/language/uk-UA.ts +2 -0
- package/packages/language/vi-VN.ts +2 -0
- package/packages/language/zh-CHT.ts +2 -0
- package/packages/language/zh-CN.ts +2 -0
- package/packages/number-input/src/number-input.ts +5 -5
- package/styles/components/icon.scss +5 -1
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/types/components/icon.d.ts +1 -1
- package/types/components/table.d.ts +16 -0
- package/types/ui/global-icon.d.ts +3 -0
- package/es/icon/iconfont.1733469460100.woff +0 -0
- package/es/icon/iconfont.1733469460100.woff2 +0 -0
- package/es/iconfont.1733469460100.woff +0 -0
- package/es/iconfont.1733469460100.woff2 +0 -0
- package/lib/icon/style/iconfont.1733469460100.woff +0 -0
- package/lib/icon/style/iconfont.1733469460100.woff2 +0 -0
- package/lib/iconfont.1733469460100.woff +0 -0
- package/lib/iconfont.1733469460100.woff2 +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineVxeComponent } from '../../ui/src/comp';
|
|
2
2
|
import XEUtils from 'xe-utils';
|
|
3
3
|
import { getConfig, getIcon, getI18n, globalEvents, GLOBAL_EVENT_KEYS, createEvent, globalMixins, renderEmptyElement } from '../../ui';
|
|
4
|
-
import { getFuncText } from '../../ui/src/utils';
|
|
4
|
+
import { getFuncText, eqEmptyValue } from '../../ui/src/utils';
|
|
5
5
|
import { hasClass, getEventTargetNode } from '../../ui/src/dom';
|
|
6
6
|
import { getSlotVNs } from '../..//ui/src/vn';
|
|
7
7
|
import { handleNumber, toFloatValueFixed } from './util';
|
|
@@ -301,7 +301,7 @@ export default defineVxeComponent({
|
|
|
301
301
|
const reactData = $xeNumberInput.reactData;
|
|
302
302
|
const $xeForm = $xeNumberInput.$xeForm;
|
|
303
303
|
const formItemInfo = $xeNumberInput.formItemInfo;
|
|
304
|
-
const value =
|
|
304
|
+
const value = eqEmptyValue(val) ? null : Number(val);
|
|
305
305
|
const isChange = value !== props.value;
|
|
306
306
|
reactData.inputValue = inputValue || '';
|
|
307
307
|
if (isChange) {
|
|
@@ -419,14 +419,14 @@ export default defineVxeComponent({
|
|
|
419
419
|
const { inputValue } = reactData;
|
|
420
420
|
const inputReadonly = $xeNumberInput.computeInputReadonly;
|
|
421
421
|
if (!inputReadonly) {
|
|
422
|
-
if (inputValue
|
|
422
|
+
if (eqEmptyValue(inputValue)) {
|
|
423
423
|
let inpNumVal = null;
|
|
424
424
|
let inpValue = inputValue;
|
|
425
425
|
if (min || min === 0) {
|
|
426
426
|
inpNumVal = XEUtils.toNumber(min);
|
|
427
427
|
inpValue = `${inpNumVal}`;
|
|
428
428
|
}
|
|
429
|
-
$xeNumberInput.handleChange(inpNumVal, inpValue
|
|
429
|
+
$xeNumberInput.handleChange(inpNumVal, `${inpValue || ''}`, { type: 'check' });
|
|
430
430
|
return;
|
|
431
431
|
}
|
|
432
432
|
if (inputValue || (min || max)) {
|
|
@@ -444,7 +444,7 @@ export default defineVxeComponent({
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
const inpValue = $xeNumberInput.getNumberValue(inpNumVal);
|
|
447
|
-
$xeNumberInput.handleChange(inpValue
|
|
447
|
+
$xeNumberInput.handleChange(eqEmptyValue(inpValue) ? null : Number(inpValue), inpValue, { type: 'check' });
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
},
|