vxe-pc-ui 3.0.13 → 3.0.15
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/date-picker/src/date-picker.js +9 -2
- package/es/icon/style/{iconfont.1726318170796.ttf → iconfont.1726453657023.ttf} +0 -0
- package/es/icon/style/iconfont.1726453657023.woff +0 -0
- package/es/icon/style/iconfont.1726453657023.woff2 +0 -0
- package/es/icon/style.css +13 -1
- package/es/icon/style.min.css +1 -1
- package/{lib/icon/style/iconfont.1726318170796.ttf → es/iconfont.1726453657023.ttf} +0 -0
- package/es/iconfont.1726453657023.woff +0 -0
- package/es/iconfont.1726453657023.woff2 +0 -0
- package/es/input/src/input.js +21 -14
- package/es/language/en-US.js +0 -7
- package/es/language/hu-HU.d.ts +2 -0
- package/es/language/hu-HU.js +496 -501
- package/es/language/ja-JP.js +0 -7
- package/es/language/ko-KR.d.ts +2 -0
- package/es/language/ko-KR.js +0 -7
- package/es/language/pt-BR.js +0 -7
- package/es/language/ru-RU.d.ts +2 -0
- package/es/language/ru-RU.js +496 -503
- package/es/language/uk-UA.d.ts +2 -0
- package/es/language/uk-UA.js +666 -0
- package/es/language/vi-VN.js +0 -7
- package/es/language/zh-CHT.d.ts +2 -0
- package/es/language/zh-CHT.js +666 -0
- package/es/language/zh-CN.js +0 -7
- package/es/language/zh-HK.js +2 -2
- package/es/language/zh-MO.js +2 -2
- package/es/language/zh-TC.js +2 -673
- package/es/language/zh-TW.js +2 -2
- package/es/number-input/src/number-input.js +6 -0
- package/es/password-input/src/password-input.js +23 -10
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +4 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-icon/style.css +13 -1
- package/es/vxe-icon/style.min.css +1 -1
- package/lib/date-picker/src/date-picker.js +9 -2
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/{iconfont.1726318170796.ttf → icon/style/iconfont.1726453657023.ttf} +0 -0
- package/lib/icon/style/iconfont.1726453657023.woff +0 -0
- package/lib/icon/style/iconfont.1726453657023.woff2 +0 -0
- package/lib/icon/style/style.css +13 -1
- package/lib/icon/style/style.min.css +13 -1
- package/{es/iconfont.1726318170796.ttf → lib/iconfont.1726453657023.ttf} +0 -0
- package/lib/iconfont.1726453657023.woff +0 -0
- package/lib/iconfont.1726453657023.woff2 +0 -0
- package/lib/index.umd.js +63 -38
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +23 -16
- package/lib/input/src/input.min.js +1 -1
- package/lib/language/en-US.js +0 -7
- package/lib/language/en-US.umd.js +0 -7
- package/lib/language/hu-HU.d.ts +2 -0
- package/lib/language/hu-HU.js +496 -501
- package/lib/language/hu-HU.min.js +1 -1
- package/lib/language/hu-HU.umd.js +686 -0
- package/lib/language/ja-JP.js +0 -7
- package/lib/language/ja-JP.umd.js +0 -7
- package/lib/language/ko-KR.d.ts +2 -0
- package/lib/language/ko-KR.js +0 -7
- package/lib/language/ko-KR.min.js +1 -1
- package/lib/language/ko-KR.umd.js +686 -0
- package/lib/language/pt-BR.js +0 -7
- package/lib/language/pt-BR.umd.js +0 -7
- package/lib/language/ru-RU.d.ts +2 -0
- package/lib/language/ru-RU.js +496 -503
- package/lib/language/ru-RU.min.js +1 -1
- package/lib/language/ru-RU.umd.js +686 -0
- package/lib/language/uk-UA.d.ts +2 -0
- package/lib/language/uk-UA.js +672 -0
- package/lib/language/uk-UA.min.js +1 -0
- package/lib/language/uk-UA.umd.js +686 -0
- package/lib/language/vi-VN.js +0 -7
- package/lib/language/zh-CHT.d.ts +2 -0
- package/lib/language/zh-CHT.js +672 -0
- package/lib/language/zh-CHT.min.js +1 -0
- package/lib/language/zh-CHT.umd.js +686 -0
- package/lib/language/zh-CN.js +0 -7
- package/lib/language/zh-CN.umd.js +0 -7
- package/lib/language/zh-HK.js +2 -2
- package/lib/language/zh-HK.min.js +1 -1
- package/lib/language/zh-HK.umd.js +7 -677
- package/lib/language/zh-MO.js +2 -2
- package/lib/language/zh-MO.min.js +1 -1
- package/lib/language/zh-MO.umd.js +7 -677
- package/lib/language/zh-TC.js +3 -673
- package/lib/language/zh-TC.min.js +1 -1
- package/lib/language/zh-TC.umd.js +7 -677
- package/lib/language/zh-TW.js +2 -2
- package/lib/language/zh-TW.min.js +1 -1
- package/lib/language/zh-TW.umd.js +7 -677
- package/lib/number-input/src/number-input.js +6 -0
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +18 -8
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +4 -2
- 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 +13 -1
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/date-picker/src/date-picker.ts +9 -2
- package/packages/input/src/input.ts +22 -15
- package/packages/language/en-US.ts +0 -9
- package/packages/language/hu-HU.ts +496 -503
- package/packages/language/ja-JP.ts +0 -9
- package/packages/language/ko-KR.ts +0 -9
- package/packages/language/pt-BR.ts +0 -9
- package/packages/language/ru-RU.ts +496 -505
- package/packages/language/uk-UA.ts +666 -0
- package/packages/language/vi-VN.ts +0 -9
- package/packages/language/zh-CHT.ts +666 -0
- package/packages/language/zh-CN.ts +0 -9
- package/packages/language/zh-HK.ts +2 -2
- package/packages/language/zh-MO.ts +2 -2
- package/packages/language/zh-TC.ts +2 -674
- package/packages/language/zh-TW.ts +2 -2
- package/packages/number-input/src/number-input.ts +6 -0
- package/packages/password-input/src/password-input.ts +23 -11
- package/packages/ui/index.ts +3 -1
- package/styles/components/icon.scss +13 -2
- 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/input.d.ts +2 -0
- package/types/components/number-input.d.ts +2 -0
- package/types/components/password-input.d.ts +2 -0
- package/types/components/table.d.ts +38 -1
- package/es/icon/style/iconfont.1726318170796.woff +0 -0
- package/es/icon/style/iconfont.1726318170796.woff2 +0 -0
- package/es/iconfont.1726318170796.woff +0 -0
- package/es/iconfont.1726318170796.woff2 +0 -0
- package/lib/icon/style/iconfont.1726318170796.woff +0 -0
- package/lib/icon/style/iconfont.1726318170796.woff2 +0 -0
- package/lib/iconfont.1726318170796.woff +0 -0
- package/lib/iconfont.1726318170796.woff2 +0 -0
package/es/language/zh-TW.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default
|
|
1
|
+
import zhCHT from './zh-CHT';
|
|
2
|
+
export default zhCHT;
|
|
@@ -424,6 +424,8 @@ export default defineVxeComponent({
|
|
|
424
424
|
blurEvent(evnt) {
|
|
425
425
|
const $xeNumberInput = this;
|
|
426
426
|
const reactData = $xeNumberInput.reactData;
|
|
427
|
+
const $xeForm = $xeNumberInput.$xeForm;
|
|
428
|
+
const formItemInfo = $xeNumberInput.formItemInfo;
|
|
427
429
|
const { inputValue } = reactData;
|
|
428
430
|
const inpImmediate = $xeNumberInput.computeInpImmediate;
|
|
429
431
|
const value = inputValue ? Number(inputValue) : null;
|
|
@@ -433,6 +435,10 @@ export default defineVxeComponent({
|
|
|
433
435
|
$xeNumberInput.afterCheckValue();
|
|
434
436
|
reactData.isActivated = false;
|
|
435
437
|
$xeNumberInput.dispatchEvent('blur', { value }, evnt);
|
|
438
|
+
// 自动更新校验状态
|
|
439
|
+
if ($xeForm && formItemInfo) {
|
|
440
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
441
|
+
}
|
|
436
442
|
},
|
|
437
443
|
// 数值
|
|
438
444
|
numberChange(isPlus, evnt) {
|
|
@@ -15,7 +15,10 @@ export default defineVxeComponent({
|
|
|
15
15
|
props: {
|
|
16
16
|
value: String,
|
|
17
17
|
name: String,
|
|
18
|
-
clearable: {
|
|
18
|
+
clearable: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: () => getConfig().passwordInput.clearable
|
|
21
|
+
},
|
|
19
22
|
readonly: Boolean,
|
|
20
23
|
disabled: Boolean,
|
|
21
24
|
maxLength: [String, Number],
|
|
@@ -25,9 +28,16 @@ export default defineVxeComponent({
|
|
|
25
28
|
default: 'off'
|
|
26
29
|
},
|
|
27
30
|
className: String,
|
|
28
|
-
size: {
|
|
31
|
+
size: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: () => getConfig().passwordInput.size || getConfig().size
|
|
34
|
+
},
|
|
29
35
|
prefixIcon: String,
|
|
30
36
|
suffixIcon: String,
|
|
37
|
+
controls: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: () => getConfig().passwordInput.controls
|
|
40
|
+
},
|
|
31
41
|
// 已废弃
|
|
32
42
|
autocomplete: String
|
|
33
43
|
},
|
|
@@ -177,8 +187,15 @@ export default defineVxeComponent({
|
|
|
177
187
|
blurEvent(evnt) {
|
|
178
188
|
const $xePasswordInput = this;
|
|
179
189
|
const reactData = $xePasswordInput.reactData;
|
|
190
|
+
const $xeForm = $xePasswordInput.$xeForm;
|
|
191
|
+
const formItemInfo = $xePasswordInput.formItemInfo;
|
|
180
192
|
const { inputValue } = reactData;
|
|
181
|
-
|
|
193
|
+
const value = inputValue;
|
|
194
|
+
$xePasswordInput.dispatchEvent('blur', { value }, evnt);
|
|
195
|
+
// 自动更新校验状态
|
|
196
|
+
if ($xeForm && formItemInfo) {
|
|
197
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
198
|
+
}
|
|
182
199
|
},
|
|
183
200
|
passwordToggleEvent(evnt) {
|
|
184
201
|
const $xePasswordInput = this;
|
|
@@ -269,11 +286,11 @@ export default defineVxeComponent({
|
|
|
269
286
|
const props = $xePasswordInput;
|
|
270
287
|
const slots = $xePasswordInput.$scopedSlots;
|
|
271
288
|
const reactData = $xePasswordInput.reactData;
|
|
272
|
-
const { disabled, suffixIcon } = props;
|
|
289
|
+
const { disabled, suffixIcon, controls } = props;
|
|
273
290
|
const { inputValue } = reactData;
|
|
274
291
|
const suffixSlot = slots.suffix;
|
|
275
292
|
const isClearable = $xePasswordInput.computeIsClearable;
|
|
276
|
-
return isClearable || suffixSlot || suffixIcon
|
|
293
|
+
return isClearable || controls || suffixSlot || suffixIcon
|
|
277
294
|
? h('div', {
|
|
278
295
|
class: ['password-input--suffix', {
|
|
279
296
|
'is--clear': isClearable && !disabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
@@ -291,7 +308,7 @@ export default defineVxeComponent({
|
|
|
291
308
|
})
|
|
292
309
|
])
|
|
293
310
|
: renderEmptyElement($xePasswordInput),
|
|
294
|
-
$xePasswordInput.
|
|
311
|
+
controls ? $xePasswordInput.renderPasswordIcon(h) : renderEmptyElement($xePasswordInput),
|
|
295
312
|
suffixSlot || suffixIcon
|
|
296
313
|
? h('div', {
|
|
297
314
|
class: 'password-input--suffix-icon',
|
|
@@ -309,10 +326,6 @@ export default defineVxeComponent({
|
|
|
309
326
|
])
|
|
310
327
|
: null;
|
|
311
328
|
},
|
|
312
|
-
renderExtraSuffixIcon(h) {
|
|
313
|
-
const $xePasswordInput = this;
|
|
314
|
-
return $xePasswordInput.renderPasswordIcon(h);
|
|
315
|
-
},
|
|
316
329
|
renderVN(h) {
|
|
317
330
|
const $xePasswordInput = this;
|
|
318
331
|
const props = $xePasswordInput;
|