antd-mobile 5.34.0 → 5.36.0
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/2x/bundle/antd-mobile.cjs.development.js +472 -1560
- package/2x/bundle/antd-mobile.cjs.js +7 -7
- package/2x/bundle/antd-mobile.es.development.js +473 -1561
- package/2x/bundle/antd-mobile.es.js +7287 -8011
- package/2x/bundle/antd-mobile.umd.development.js +472 -1560
- package/2x/bundle/antd-mobile.umd.js +7 -7
- package/2x/bundle/css-vars-patch.css +3 -3
- package/2x/bundle/style.css +6 -10
- package/2x/cjs/components/button/button.d.ts +3 -3
- package/2x/cjs/components/button/button.patch.css +3 -3
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/2x/cjs/components/checkbox/native-input.js +1 -1
- package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/2x/cjs/components/error-block/create-error-block.js +1 -0
- package/2x/cjs/components/error-block/index.d.ts +0 -1
- package/2x/cjs/components/error-block/index.js +2 -3
- package/2x/cjs/components/form/form-item.js +1 -0
- package/2x/cjs/components/form/form.js +2 -2
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/cjs/components/input/input.d.ts +2 -4
- package/2x/cjs/components/input/input.js +8 -17
- package/2x/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/2x/cjs/components/input/useInputHandleKeyDown.js +29 -0
- package/2x/cjs/components/picker-view/wheel.js +7 -4
- package/2x/cjs/components/popover/index.d.ts +1 -1
- package/2x/cjs/components/popover/popover.d.ts +1 -1
- package/2x/cjs/components/radio/radio.css +1 -1
- package/2x/cjs/components/radio/radio.d.ts +1 -1
- package/2x/cjs/components/radio/radio.js +5 -5
- package/2x/cjs/components/result-page/result-page.css +5 -5
- package/2x/cjs/components/result-page/result-page.d.ts +1 -1
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/cjs/components/swiper/index.d.ts +1 -1
- package/2x/cjs/components/swiper/swiper.d.ts +2 -2
- package/2x/cjs/components/swiper/swiper.js +5 -1
- package/2x/cjs/components/text-area/text-area.css +0 -4
- package/2x/cjs/components/text-area/text-area.d.ts +6 -2
- package/2x/cjs/components/text-area/text-area.js +9 -1
- package/2x/cjs/global/css-vars-patch.css +3 -3
- package/2x/cjs/index.d.ts +1 -1
- package/2x/cjs/index.js +6 -0
- package/2x/cjs/locales/ar-SA.d.ts +139 -0
- package/2x/cjs/locales/ar-SA.js +149 -0
- package/2x/cjs/locales/de-DE.d.ts +139 -0
- package/2x/cjs/locales/de-DE.js +149 -0
- package/2x/cjs/locales/hu-HU.d.ts +139 -0
- package/2x/cjs/locales/hu-HU.js +148 -0
- package/2x/cjs/locales/ms-MY.d.ts +139 -0
- package/2x/cjs/locales/ms-MY.js +149 -0
- package/2x/cjs/locales/pt-BR.d.ts +139 -0
- package/2x/cjs/locales/pt-BR.js +144 -0
- package/2x/cjs/locales/th-TH.d.ts +139 -0
- package/2x/cjs/locales/th-TH.js +149 -0
- package/2x/cjs/locales/vi-VN.d.ts +139 -0
- package/2x/cjs/locales/vi-VN.js +149 -0
- package/2x/cjs/locales/zh-CN.d.ts +2 -138
- package/2x/cjs/locales/zh-CN.js +2 -4
- package/2x/cjs/locales/zh-CN.test.d.ts +1 -0
- package/2x/cjs/locales/zh-CN.test.js +19 -0
- package/2x/cjs/utils/with-default-props.js +8 -9
- package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/2x/cjs/utils/with-stop-propagation.js +2 -1
- package/2x/es/components/button/button.d.ts +3 -3
- package/2x/es/components/button/button.patch.css +3 -3
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/2x/es/components/checkbox/native-input.js +1 -1
- package/2x/es/components/config-provider/config-provider.d.ts +3 -2
- package/2x/es/components/error-block/create-error-block.d.ts +1 -0
- package/2x/es/components/error-block/create-error-block.js +1 -0
- package/2x/es/components/error-block/index.d.ts +0 -1
- package/2x/es/components/error-block/index.js +0 -1
- package/2x/es/components/form/form-item.js +1 -0
- package/2x/es/components/form/form.js +2 -2
- package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/es/components/input/input.d.ts +2 -4
- package/2x/es/components/input/input.js +8 -17
- package/2x/es/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/2x/es/components/input/useInputHandleKeyDown.js +23 -0
- package/2x/es/components/picker-view/wheel.js +6 -3
- package/2x/es/components/popover/index.d.ts +1 -1
- package/2x/es/components/popover/popover.d.ts +1 -1
- package/2x/es/components/radio/radio.css +1 -1
- package/2x/es/components/radio/radio.d.ts +1 -1
- package/2x/es/components/radio/radio.js +4 -4
- package/2x/es/components/result-page/result-page.css +5 -5
- package/2x/es/components/result-page/result-page.d.ts +1 -1
- package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/es/components/swiper/index.d.ts +1 -1
- package/2x/es/components/swiper/swiper.d.ts +2 -2
- package/2x/es/components/swiper/swiper.js +5 -1
- package/2x/es/components/text-area/text-area.css +0 -4
- package/2x/es/components/text-area/text-area.d.ts +6 -2
- package/2x/es/components/text-area/text-area.js +9 -1
- package/2x/es/global/css-vars-patch.css +3 -3
- package/2x/es/index.d.ts +1 -1
- package/2x/es/index.js +1 -1
- package/2x/es/locales/ar-SA.d.ts +139 -0
- package/2x/es/locales/ar-SA.js +142 -0
- package/2x/es/locales/de-DE.d.ts +139 -0
- package/2x/es/locales/de-DE.js +142 -0
- package/2x/es/locales/hu-HU.d.ts +139 -0
- package/2x/es/locales/hu-HU.js +140 -0
- package/2x/es/locales/ms-MY.d.ts +139 -0
- package/2x/es/locales/ms-MY.js +142 -0
- package/2x/es/locales/pt-BR.d.ts +139 -0
- package/2x/es/locales/pt-BR.js +137 -0
- package/2x/es/locales/th-TH.d.ts +139 -0
- package/2x/es/locales/th-TH.js +142 -0
- package/2x/es/locales/vi-VN.d.ts +139 -0
- package/2x/es/locales/vi-VN.js +142 -0
- package/2x/es/locales/zh-CN.d.ts +2 -138
- package/2x/es/locales/zh-CN.js +2 -4
- package/2x/es/locales/zh-CN.test.d.ts +1 -0
- package/2x/es/locales/zh-CN.test.js +16 -0
- package/2x/es/utils/with-default-props.js +8 -8
- package/2x/es/utils/with-stop-propagation.d.ts +1 -1
- package/2x/es/utils/with-stop-propagation.js +2 -1
- package/2x/package.json +38 -21
- package/bundle/antd-mobile.cjs.development.js +472 -1560
- package/bundle/antd-mobile.cjs.js +7 -7
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +473 -1561
- package/bundle/antd-mobile.es.js +7287 -8011
- package/bundle/antd-mobile.umd.development.js +472 -1560
- package/bundle/antd-mobile.umd.js +7 -7
- package/bundle/css-vars-patch.css +3 -3
- package/bundle/style.css +1 -1
- package/cjs/components/button/button.d.ts +3 -3
- package/cjs/components/button/button.patch.css +3 -3
- package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/cjs/components/checkbox/native-input.js +1 -1
- package/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/cjs/components/error-block/create-error-block.js +1 -0
- package/cjs/components/error-block/index.d.ts +0 -1
- package/cjs/components/error-block/index.js +2 -3
- package/cjs/components/form/form-item.js +1 -0
- package/cjs/components/form/form.js +2 -2
- package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/cjs/components/input/input.d.ts +2 -4
- package/cjs/components/input/input.js +8 -17
- package/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/cjs/components/input/useInputHandleKeyDown.js +29 -0
- package/cjs/components/picker-view/wheel.js +7 -4
- package/cjs/components/popover/index.d.ts +1 -1
- package/cjs/components/popover/popover.d.ts +1 -1
- package/cjs/components/radio/radio.css +1 -1
- package/cjs/components/radio/radio.d.ts +1 -1
- package/cjs/components/radio/radio.js +5 -5
- package/cjs/components/result-page/result-page.css +5 -5
- package/cjs/components/result-page/result-page.d.ts +1 -1
- package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/cjs/components/swiper/index.d.ts +1 -1
- package/cjs/components/swiper/swiper.d.ts +2 -2
- package/cjs/components/swiper/swiper.js +5 -1
- package/cjs/components/text-area/text-area.css +0 -3
- package/cjs/components/text-area/text-area.d.ts +6 -2
- package/cjs/components/text-area/text-area.js +9 -1
- package/cjs/global/css-vars-patch.css +3 -3
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +6 -0
- package/cjs/locales/ar-SA.d.ts +139 -0
- package/cjs/locales/ar-SA.js +149 -0
- package/cjs/locales/de-DE.d.ts +139 -0
- package/cjs/locales/de-DE.js +149 -0
- package/cjs/locales/hu-HU.d.ts +139 -0
- package/cjs/locales/hu-HU.js +148 -0
- package/cjs/locales/ms-MY.d.ts +139 -0
- package/cjs/locales/ms-MY.js +149 -0
- package/cjs/locales/pt-BR.d.ts +139 -0
- package/cjs/locales/pt-BR.js +144 -0
- package/cjs/locales/th-TH.d.ts +139 -0
- package/cjs/locales/th-TH.js +149 -0
- package/cjs/locales/vi-VN.d.ts +139 -0
- package/cjs/locales/vi-VN.js +149 -0
- package/cjs/locales/zh-CN.d.ts +2 -138
- package/cjs/locales/zh-CN.js +2 -4
- package/cjs/locales/zh-CN.test.d.ts +1 -0
- package/cjs/locales/zh-CN.test.js +19 -0
- package/cjs/utils/with-default-props.js +8 -9
- package/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/cjs/utils/with-stop-propagation.js +2 -1
- package/es/components/button/button.d.ts +3 -3
- package/es/components/button/button.patch.css +3 -3
- package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/es/components/checkbox/native-input.js +1 -1
- package/es/components/config-provider/config-provider.d.ts +3 -2
- package/es/components/error-block/create-error-block.d.ts +1 -0
- package/es/components/error-block/create-error-block.js +1 -0
- package/es/components/error-block/index.d.ts +0 -1
- package/es/components/error-block/index.js +0 -1
- package/es/components/form/form-item.js +1 -0
- package/es/components/form/form.js +2 -2
- package/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/es/components/input/input.d.ts +2 -4
- package/es/components/input/input.js +8 -17
- package/es/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/es/components/input/useInputHandleKeyDown.js +23 -0
- package/es/components/picker-view/wheel.js +6 -3
- package/es/components/popover/index.d.ts +1 -1
- package/es/components/popover/popover.d.ts +1 -1
- package/es/components/radio/radio.css +1 -1
- package/es/components/radio/radio.d.ts +1 -1
- package/es/components/radio/radio.js +4 -4
- package/es/components/result-page/result-page.css +5 -5
- package/es/components/result-page/result-page.d.ts +1 -1
- package/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/es/components/swiper/index.d.ts +1 -1
- package/es/components/swiper/swiper.d.ts +2 -2
- package/es/components/swiper/swiper.js +5 -1
- package/es/components/text-area/text-area.css +0 -3
- package/es/components/text-area/text-area.d.ts +6 -2
- package/es/components/text-area/text-area.js +9 -1
- package/es/global/css-vars-patch.css +3 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locales/ar-SA.d.ts +139 -0
- package/es/locales/ar-SA.js +142 -0
- package/es/locales/de-DE.d.ts +139 -0
- package/es/locales/de-DE.js +142 -0
- package/es/locales/hu-HU.d.ts +139 -0
- package/es/locales/hu-HU.js +140 -0
- package/es/locales/ms-MY.d.ts +139 -0
- package/es/locales/ms-MY.js +142 -0
- package/es/locales/pt-BR.d.ts +139 -0
- package/es/locales/pt-BR.js +137 -0
- package/es/locales/th-TH.d.ts +139 -0
- package/es/locales/th-TH.js +142 -0
- package/es/locales/vi-VN.d.ts +139 -0
- package/es/locales/vi-VN.js +142 -0
- package/es/locales/zh-CN.d.ts +2 -138
- package/es/locales/zh-CN.js +2 -4
- package/es/locales/zh-CN.test.d.ts +1 -0
- package/es/locales/zh-CN.test.js +16 -0
- package/es/utils/with-default-props.js +8 -8
- package/es/utils/with-stop-propagation.d.ts +1 -1
- package/es/utils/with-stop-propagation.js +2 -1
- package/package.json +38 -21
- package/umd/antd-mobile.js +1 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _mergeLocale = require("../utils/merge-locale");
|
|
8
|
+
var _base = require("./base");
|
|
9
|
+
const typeTemplate = '${label} không phải là một ${type} hợp lệ';
|
|
10
|
+
const viVN = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
11
|
+
'locale': 'vi-VN',
|
|
12
|
+
'common': {
|
|
13
|
+
'confirm': 'Chắc chắn',
|
|
14
|
+
'cancel': 'Hủy',
|
|
15
|
+
'loading': 'Đang tải',
|
|
16
|
+
'close': 'Đóng'
|
|
17
|
+
},
|
|
18
|
+
'Calendar': {
|
|
19
|
+
'title': 'Chọn ngày',
|
|
20
|
+
'confirm': 'Xác nhận',
|
|
21
|
+
'start': 'Bắt đầu',
|
|
22
|
+
'end': 'Kết thúc',
|
|
23
|
+
'today': 'Hôm nay',
|
|
24
|
+
'markItems': ['Một', 'Hai', 'Ba', 'Bốn', 'Năm', 'Sáu', 'Ngày'],
|
|
25
|
+
'yearAndMonth': 'Tháng ${month} năm ${year}'
|
|
26
|
+
},
|
|
27
|
+
'Cascader': {
|
|
28
|
+
'placeholder': 'Vui lòng lựa chọn'
|
|
29
|
+
},
|
|
30
|
+
'Dialog': {
|
|
31
|
+
'ok': 'OK'
|
|
32
|
+
},
|
|
33
|
+
'DatePicker': {
|
|
34
|
+
'tillNow': 'Đến nay'
|
|
35
|
+
},
|
|
36
|
+
'ErrorBlock': {
|
|
37
|
+
'default': {
|
|
38
|
+
'title': 'Trang đang gặp một số vấn đề nhỏ',
|
|
39
|
+
'description': 'Đợi chút rồi thử'
|
|
40
|
+
},
|
|
41
|
+
'busy': {
|
|
42
|
+
'title': 'Ùn tắc phía trước',
|
|
43
|
+
'description': 'Thử quét mới'
|
|
44
|
+
},
|
|
45
|
+
'disconnected': {
|
|
46
|
+
'title': 'Mạng đang bận',
|
|
47
|
+
'description': 'Chạm khẽ để chỉnh sửa'
|
|
48
|
+
},
|
|
49
|
+
'empty': {
|
|
50
|
+
'title': 'Không tìm thấy thứ bạn cần',
|
|
51
|
+
'description': 'Tìm cái khác'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
'Form': {
|
|
55
|
+
'required': 'Bắt buộc',
|
|
56
|
+
'optional': 'Tùy chọn',
|
|
57
|
+
'defaultValidateMessages': {
|
|
58
|
+
'default': 'Lỗi xác thực trường ${label}',
|
|
59
|
+
'required': 'Vui lòng nhập ${label}',
|
|
60
|
+
'enum': '${label} phải là một trong [${enum}]',
|
|
61
|
+
'whitespace': '${label} không được là ký tự trống',
|
|
62
|
+
'date': {
|
|
63
|
+
'format': '${label}Định dạng ngày tháng không còn hiệu lực',
|
|
64
|
+
'parse': '${label} Không thể chuyển đổi thành ngày',
|
|
65
|
+
'invalid': '${label} là một ngày không hợp lệ'
|
|
66
|
+
},
|
|
67
|
+
'types': {
|
|
68
|
+
'string': typeTemplate,
|
|
69
|
+
'method': typeTemplate,
|
|
70
|
+
'array': typeTemplate,
|
|
71
|
+
'object': typeTemplate,
|
|
72
|
+
'number': typeTemplate,
|
|
73
|
+
'date': typeTemplate,
|
|
74
|
+
'boolean': typeTemplate,
|
|
75
|
+
'integer': typeTemplate,
|
|
76
|
+
'float': typeTemplate,
|
|
77
|
+
'regexp': typeTemplate,
|
|
78
|
+
'email': typeTemplate,
|
|
79
|
+
'url': typeTemplate,
|
|
80
|
+
'hex': typeTemplate
|
|
81
|
+
},
|
|
82
|
+
'string': {
|
|
83
|
+
'len': '${label} phải là ${len} ký tự',
|
|
84
|
+
'min': '${label} tối thiểu ${min} ký tự',
|
|
85
|
+
'max': '${label} tối đa ${max} ký tự',
|
|
86
|
+
'range': '${label} phải ở giữa chữ ${min} - ${max}'
|
|
87
|
+
},
|
|
88
|
+
'number': {
|
|
89
|
+
'len': '${label} phải bằng ${len}',
|
|
90
|
+
'min': '${label} giá trị tối thiểu là ${min}',
|
|
91
|
+
'max': '${label} giá trị tối đa là ${max}',
|
|
92
|
+
'range': '${label} phải ở giữa ${min} - ${max}'
|
|
93
|
+
},
|
|
94
|
+
'array': {
|
|
95
|
+
'len': 'Phải là ${len} chiếc ${label}',
|
|
96
|
+
'min': 'Tối thiểu ${min} chiếc ${label}',
|
|
97
|
+
'max': 'Tối đa ${max} chiếc ${label}',
|
|
98
|
+
'range': '${label} số lượng phải ở giữa ${min} - ${max}'
|
|
99
|
+
},
|
|
100
|
+
'pattern': {
|
|
101
|
+
'mismatch': '${label} không khớp với mẫu ${pattern}'
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
'ImageUploader': {
|
|
106
|
+
'uploading': 'Đang tải lên...',
|
|
107
|
+
'upload': 'Tải lên'
|
|
108
|
+
},
|
|
109
|
+
'InfiniteScroll': {
|
|
110
|
+
'noMore': 'Hết rồi bạn ơi',
|
|
111
|
+
'failedToLoad': 'Tải xuống thất bại',
|
|
112
|
+
'retry': 'Tải lại'
|
|
113
|
+
},
|
|
114
|
+
'Input': {
|
|
115
|
+
'clear': 'Xóa'
|
|
116
|
+
},
|
|
117
|
+
'Mask': {
|
|
118
|
+
'name': 'Nền tối'
|
|
119
|
+
},
|
|
120
|
+
'Modal': {
|
|
121
|
+
'ok': 'OK'
|
|
122
|
+
},
|
|
123
|
+
'PasscodeInput': {
|
|
124
|
+
'name': 'Khung nhập mật khẩu'
|
|
125
|
+
},
|
|
126
|
+
'PullToRefresh': {
|
|
127
|
+
'pulling': 'Kéo xuống để làm mới',
|
|
128
|
+
'canRelease': 'Thả ra để làm mới',
|
|
129
|
+
'complete': 'Làm mới thành công'
|
|
130
|
+
},
|
|
131
|
+
'SearchBar': {
|
|
132
|
+
'name': 'Khung tìm kiếm'
|
|
133
|
+
},
|
|
134
|
+
'Slider': {
|
|
135
|
+
'name': 'Thanh nhập liệu trượt'
|
|
136
|
+
},
|
|
137
|
+
'Stepper': {
|
|
138
|
+
'decrease': 'Giảm',
|
|
139
|
+
'increase': 'Tăng'
|
|
140
|
+
},
|
|
141
|
+
'Switch': {
|
|
142
|
+
'name': 'Bật tắt'
|
|
143
|
+
},
|
|
144
|
+
'Selector': {
|
|
145
|
+
'name': 'Chọn nhóm'
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
var _default = viVN;
|
|
149
|
+
exports.default = _default;
|
package/cjs/locales/zh-CN.d.ts
CHANGED
|
@@ -1,139 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
common: {
|
|
4
|
-
confirm: string;
|
|
5
|
-
cancel: string;
|
|
6
|
-
loading: string;
|
|
7
|
-
close: string;
|
|
8
|
-
};
|
|
9
|
-
Calendar: {
|
|
10
|
-
title: string;
|
|
11
|
-
confirm: string;
|
|
12
|
-
start: string;
|
|
13
|
-
end: string;
|
|
14
|
-
today: string;
|
|
15
|
-
markItems: string[];
|
|
16
|
-
yearAndMonth: string;
|
|
17
|
-
};
|
|
18
|
-
Cascader: {
|
|
19
|
-
placeholder: string;
|
|
20
|
-
};
|
|
21
|
-
Dialog: {
|
|
22
|
-
ok: string;
|
|
23
|
-
};
|
|
24
|
-
DatePicker: {
|
|
25
|
-
tillNow: string;
|
|
26
|
-
};
|
|
27
|
-
ErrorBlock: {
|
|
28
|
-
default: {
|
|
29
|
-
title: string;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
busy: {
|
|
33
|
-
title: string;
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
|
-
disconnected: {
|
|
37
|
-
title: string;
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
empty: {
|
|
41
|
-
title: string;
|
|
42
|
-
description: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
Form: {
|
|
46
|
-
required: string;
|
|
47
|
-
optional: string;
|
|
48
|
-
defaultValidateMessages: {
|
|
49
|
-
default: string;
|
|
50
|
-
required: string;
|
|
51
|
-
enum: string;
|
|
52
|
-
whitespace: string;
|
|
53
|
-
date: {
|
|
54
|
-
format: string;
|
|
55
|
-
parse: string;
|
|
56
|
-
invalid: string;
|
|
57
|
-
};
|
|
58
|
-
types: {
|
|
59
|
-
string: string;
|
|
60
|
-
method: string;
|
|
61
|
-
array: string;
|
|
62
|
-
object: string;
|
|
63
|
-
number: string;
|
|
64
|
-
date: string;
|
|
65
|
-
boolean: string;
|
|
66
|
-
integer: string;
|
|
67
|
-
float: string;
|
|
68
|
-
regexp: string;
|
|
69
|
-
email: string;
|
|
70
|
-
url: string;
|
|
71
|
-
hex: string;
|
|
72
|
-
};
|
|
73
|
-
string: {
|
|
74
|
-
len: string;
|
|
75
|
-
min: string;
|
|
76
|
-
max: string;
|
|
77
|
-
range: string;
|
|
78
|
-
};
|
|
79
|
-
number: {
|
|
80
|
-
len: string;
|
|
81
|
-
min: string;
|
|
82
|
-
max: string;
|
|
83
|
-
range: string;
|
|
84
|
-
};
|
|
85
|
-
array: {
|
|
86
|
-
len: string;
|
|
87
|
-
min: string;
|
|
88
|
-
max: string;
|
|
89
|
-
range: string;
|
|
90
|
-
};
|
|
91
|
-
pattern: {
|
|
92
|
-
mismatch: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
ImageUploader: {
|
|
97
|
-
uploading: string;
|
|
98
|
-
upload: string;
|
|
99
|
-
};
|
|
100
|
-
InfiniteScroll: {
|
|
101
|
-
noMore: string;
|
|
102
|
-
failedToLoad: string;
|
|
103
|
-
retry: string;
|
|
104
|
-
};
|
|
105
|
-
Input: {
|
|
106
|
-
clear: string;
|
|
107
|
-
};
|
|
108
|
-
Mask: {
|
|
109
|
-
name: string;
|
|
110
|
-
};
|
|
111
|
-
Modal: {
|
|
112
|
-
ok: string;
|
|
113
|
-
};
|
|
114
|
-
PasscodeInput: {
|
|
115
|
-
name: string;
|
|
116
|
-
};
|
|
117
|
-
PullToRefresh: {
|
|
118
|
-
pulling: string;
|
|
119
|
-
canRelease: string;
|
|
120
|
-
complete: string;
|
|
121
|
-
};
|
|
122
|
-
SearchBar: {
|
|
123
|
-
name: string;
|
|
124
|
-
};
|
|
125
|
-
Slider: {
|
|
126
|
-
name: string;
|
|
127
|
-
};
|
|
128
|
-
Stepper: {
|
|
129
|
-
decrease: string;
|
|
130
|
-
increase: string;
|
|
131
|
-
};
|
|
132
|
-
Switch: {
|
|
133
|
-
name: string;
|
|
134
|
-
};
|
|
135
|
-
Selector: {
|
|
136
|
-
name: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
1
|
+
import { Locale } from './base';
|
|
2
|
+
declare const zhCN: Locale;
|
|
139
3
|
export default zhCN;
|
package/cjs/locales/zh-CN.js
CHANGED
|
@@ -4,10 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _mergeLocale = require("../utils/merge-locale");
|
|
8
|
-
var _base = require("./base");
|
|
9
7
|
const typeTemplate = '${label}不是一个有效的${type}';
|
|
10
|
-
const zhCN =
|
|
8
|
+
const zhCN = {
|
|
11
9
|
locale: 'zh-CH',
|
|
12
10
|
common: {
|
|
13
11
|
confirm: '确定',
|
|
@@ -144,6 +142,6 @@ const zhCN = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
|
144
142
|
Selector: {
|
|
145
143
|
name: '选择组'
|
|
146
144
|
}
|
|
147
|
-
}
|
|
145
|
+
};
|
|
148
146
|
var _default = zhCN;
|
|
149
147
|
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _base = require("./base");
|
|
4
|
+
var _zhCN = _interopRequireDefault(require("./zh-CN"));
|
|
5
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
6
|
+
test('zh-CN', () => {
|
|
7
|
+
function compareKeys(a, b) {
|
|
8
|
+
return !Object.keys(a).some(key => {
|
|
9
|
+
if (typeof b[key] === 'string') {
|
|
10
|
+
return false;
|
|
11
|
+
} else if (b[key]) {
|
|
12
|
+
return !compareKeys(a[key], b[key]);
|
|
13
|
+
} else {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
expect(compareKeys(_base.base, _zhCN.default)).toBeTruthy();
|
|
19
|
+
});
|
|
@@ -4,15 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.mergeProps = mergeProps;
|
|
7
|
-
var _assignWith = _interopRequireDefault(require("lodash/assignWith"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
7
|
function mergeProps(...items) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
const ret = {};
|
|
9
|
+
items.forEach(item => {
|
|
10
|
+
Object.keys(item).forEach(key => {
|
|
11
|
+
if (item[key] !== undefined) {
|
|
12
|
+
ret[key] = item[key];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
});
|
|
17
16
|
return ret;
|
|
18
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
|
-
export declare type PropagationEvent = 'click';
|
|
3
|
+
export declare type PropagationEvent = 'click' | 'touchstart';
|
|
4
4
|
export declare function withStopPropagation(events: PropagationEvent[], element: ReactElement): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
@@ -7,7 +7,8 @@ exports.withStopPropagation = withStopPropagation;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const eventToPropRecord = {
|
|
10
|
-
'click': 'onClick'
|
|
10
|
+
'click': 'onClick',
|
|
11
|
+
'touchstart': 'onTouchStart'
|
|
11
12
|
};
|
|
12
13
|
function withStopPropagation(events, element) {
|
|
13
14
|
const props = Object.assign({}, element.props);
|
|
@@ -11,7 +11,7 @@ export declare type ButtonProps = {
|
|
|
11
11
|
loadingText?: string;
|
|
12
12
|
loadingIcon?: ReactNode;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<void
|
|
14
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<void>;
|
|
15
15
|
type?: 'submit' | 'reset' | 'button';
|
|
16
16
|
shape?: 'default' | 'rounded' | 'rectangular';
|
|
17
17
|
children?: ReactNode;
|
|
@@ -28,11 +28,11 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
28
28
|
loadingText?: string | undefined;
|
|
29
29
|
loadingIcon?: ReactNode;
|
|
30
30
|
disabled?: boolean | undefined;
|
|
31
|
-
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<void>
|
|
31
|
+
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<void>) | undefined;
|
|
32
32
|
type?: "reset" | "submit" | "button" | undefined;
|
|
33
33
|
shape?: "default" | "rounded" | "rectangular" | undefined;
|
|
34
34
|
children?: ReactNode;
|
|
35
|
-
} & Pick<NativeButtonProps, "id" | "
|
|
35
|
+
} & Pick<NativeButtonProps, "id" | "onTouchStart" | "onMouseDown" | "onMouseUp" | "onTouchEnd"> & {
|
|
36
36
|
className?: string | undefined;
|
|
37
37
|
style?: (React.CSSProperties & Partial<Record<"--border-radius" | "--text-color" | "--background-color" | "--border-width" | "--border-style" | "--border-color", string>>) | undefined;
|
|
38
38
|
tabIndex?: number | undefined;
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
color: #00b578;
|
|
48
48
|
}
|
|
49
49
|
.adm-button-danger {
|
|
50
|
-
background-color: #
|
|
51
|
-
border-color: #
|
|
50
|
+
background-color: #ff3141;
|
|
51
|
+
border-color: #ff3141;
|
|
52
52
|
}
|
|
53
53
|
.adm-button-danger.adm-button-fill-outline,
|
|
54
54
|
.adm-button-danger.adm-button-fill-none {
|
|
55
|
-
color: #
|
|
55
|
+
color: #ff3141;
|
|
56
56
|
}
|
|
57
57
|
.adm-button-warning {
|
|
58
58
|
background-color: #ff8f1f;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import isEqual from 'react-fast-compare';
|
|
3
|
+
import memoize from 'nano-memoize';
|
|
3
4
|
export function useCascaderValueExtend(options, fieldNames) {
|
|
4
5
|
const {
|
|
5
6
|
valueName,
|
|
@@ -19,7 +20,9 @@ export function useCascaderValueExtend(options, fieldNames) {
|
|
|
19
20
|
currentOptions = target[childrenName];
|
|
20
21
|
}
|
|
21
22
|
return ret;
|
|
22
|
-
},
|
|
23
|
+
}, {
|
|
24
|
+
equals: isEqual
|
|
25
|
+
});
|
|
23
26
|
}, [options]);
|
|
24
27
|
const generateIsLeaf = useMemo(() => {
|
|
25
28
|
return memoize(val => {
|
|
@@ -28,7 +31,9 @@ export function useCascaderValueExtend(options, fieldNames) {
|
|
|
28
31
|
return ((_a = currentOptions.find(option => option[valueName] === v)) === null || _a === void 0 ? void 0 : _a[childrenName]) || [];
|
|
29
32
|
}, options);
|
|
30
33
|
return children.length === 0;
|
|
31
|
-
},
|
|
34
|
+
}, {
|
|
35
|
+
equals: isEqual
|
|
36
|
+
});
|
|
32
37
|
}, [options]);
|
|
33
38
|
function generateValueExtend(val) {
|
|
34
39
|
return {
|
|
@@ -2,14 +2,15 @@ import type { FC, ReactNode } from 'react';
|
|
|
2
2
|
import { Locale } from '../../locales/base';
|
|
3
3
|
declare type Config = {
|
|
4
4
|
locale: Locale;
|
|
5
|
-
children?: ReactNode;
|
|
6
5
|
};
|
|
7
6
|
export declare const defaultConfigRef: {
|
|
8
7
|
current: Config;
|
|
9
8
|
};
|
|
10
9
|
export declare function setDefaultConfig(config: Config): void;
|
|
11
10
|
export declare function getDefaultConfig(): Config;
|
|
12
|
-
export declare type ConfigProviderProps = Config
|
|
11
|
+
export declare type ConfigProviderProps = Config & {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
};
|
|
13
14
|
export declare const ConfigProvider: FC<ConfigProviderProps>;
|
|
14
15
|
export declare function useConfig(): Config;
|
|
15
16
|
export {};
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ReactNode, ReactElement } from 'react';
|
|
3
3
|
import { NativeProps } from '../../utils/native-props';
|
|
4
4
|
import type { ErrorBlockStatus, ImageRecord } from '.';
|
|
5
|
+
import './error-block.less';
|
|
5
6
|
export declare type ErrorBlockProps = {
|
|
6
7
|
status?: ErrorBlockStatus;
|
|
7
8
|
title?: ReactNode;
|
|
@@ -3,6 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { mergeProps } from '../../utils/with-default-props';
|
|
4
4
|
import { withNativeProps } from '../../utils/native-props';
|
|
5
5
|
import { useConfig } from '../config-provider';
|
|
6
|
+
import "./error-block.css";
|
|
6
7
|
const classPrefix = `adm-error-block`;
|
|
7
8
|
const defaultProps = {
|
|
8
9
|
status: 'default'
|
|
@@ -7,7 +7,7 @@ import { defaultFormContext, FormContext } from './context';
|
|
|
7
7
|
import { mergeProps } from '../../utils/with-default-props';
|
|
8
8
|
import { Header } from './header';
|
|
9
9
|
import { useConfig } from '../config-provider';
|
|
10
|
-
import merge from '
|
|
10
|
+
import merge from 'deepmerge';
|
|
11
11
|
import { FormArray } from './form-array';
|
|
12
12
|
import { traverseReactNode } from '../../utils/traverse-react-node';
|
|
13
13
|
const classPrefix = 'adm-form';
|
|
@@ -29,7 +29,7 @@ export const Form = forwardRef((p, ref) => {
|
|
|
29
29
|
const {
|
|
30
30
|
locale
|
|
31
31
|
} = useConfig();
|
|
32
|
-
const validateMessages = useMemo(() => merge(
|
|
32
|
+
const validateMessages = useMemo(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
33
33
|
const lists = [];
|
|
34
34
|
let currentHeader = null;
|
|
35
35
|
let items = [];
|
|
@@ -51,8 +51,10 @@ export const InfiniteScroll = p => {
|
|
|
51
51
|
if (current >= elementTop - props.threshold) {
|
|
52
52
|
const nextFlag = {};
|
|
53
53
|
nextFlagRef.current = nextFlag;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
try {
|
|
55
|
+
yield doLoadMore(false);
|
|
56
|
+
setFlag(nextFlag);
|
|
57
|
+
} catch (e) {}
|
|
56
58
|
}
|
|
57
59
|
}), {
|
|
58
60
|
wait: 100,
|
|
@@ -78,8 +80,10 @@ export const InfiniteScroll = p => {
|
|
|
78
80
|
function retry() {
|
|
79
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
82
|
setFailed(false);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
try {
|
|
84
|
+
yield doLoadMore(true);
|
|
85
|
+
setFlag(nextFlagRef.current);
|
|
86
|
+
} catch (e) {}
|
|
83
87
|
});
|
|
84
88
|
}
|
|
85
89
|
return withNativeProps(props, React.createElement("div", {
|
|
@@ -4,7 +4,7 @@ declare type NativeInputProps = React.DetailedHTMLProps<React.InputHTMLAttribute
|
|
|
4
4
|
declare type AriaProps = {
|
|
5
5
|
role?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'autoFocus' | 'pattern' | 'inputMode' | 'type' | 'name' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd' | 'onClick' | 'step' | 'id' | 'placeholder' | 'readOnly' | 'disabled'> & {
|
|
7
|
+
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'autoFocus' | 'pattern' | 'inputMode' | 'type' | 'name' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd' | 'onClick' | 'step' | 'id' | 'placeholder' | 'readOnly' | 'disabled' | 'enterKeyHint'> & {
|
|
8
8
|
value?: string;
|
|
9
9
|
defaultValue?: string;
|
|
10
10
|
onChange?: (val: string) => void;
|
|
@@ -12,7 +12,6 @@ export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength
|
|
|
12
12
|
onlyShowClearWhenFocus?: boolean;
|
|
13
13
|
onClear?: () => void;
|
|
14
14
|
onEnterPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
15
|
-
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
16
15
|
min?: number;
|
|
17
16
|
max?: number;
|
|
18
17
|
} & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--text-align'> & AriaProps;
|
|
@@ -22,7 +21,7 @@ export declare type InputRef = {
|
|
|
22
21
|
blur: () => void;
|
|
23
22
|
nativeElement: HTMLInputElement | null;
|
|
24
23
|
};
|
|
25
|
-
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "id" | "onClick" | "disabled" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "type" | "step" | "autoFocus" | "placeholder" | "autoCapitalize" | "autoCorrect" | "inputMode" | "name" | "readOnly" | "autoComplete" | "maxLength" | "minLength"> & {
|
|
24
|
+
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "id" | "onClick" | "disabled" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "type" | "step" | "autoFocus" | "placeholder" | "autoCapitalize" | "autoCorrect" | "inputMode" | "name" | "readOnly" | "autoComplete" | "enterKeyHint" | "maxLength" | "minLength"> & {
|
|
26
25
|
value?: string | undefined;
|
|
27
26
|
defaultValue?: string | undefined;
|
|
28
27
|
onChange?: ((val: string) => void) | undefined;
|
|
@@ -30,7 +29,6 @@ export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProp
|
|
|
30
29
|
onlyShowClearWhenFocus?: boolean | undefined;
|
|
31
30
|
onClear?: (() => void) | undefined;
|
|
32
31
|
onEnterPress?: ((e: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
|
|
33
|
-
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
34
32
|
min?: number | undefined;
|
|
35
33
|
max?: number | undefined;
|
|
36
34
|
} & {
|
|
@@ -4,10 +4,10 @@ import { CloseCircleFill } from 'antd-mobile-icons';
|
|
|
4
4
|
import { withNativeProps } from '../../utils/native-props';
|
|
5
5
|
import { mergeProps } from '../../utils/with-default-props';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import { useIsomorphicLayoutEffect } from 'ahooks';
|
|
8
7
|
import { bound } from '../../utils/bound';
|
|
9
8
|
import { isIOS } from '../../utils/validate';
|
|
10
9
|
import { useConfig } from '../config-provider';
|
|
10
|
+
import useInputHandleKeyDown from './useInputHandleKeyDown';
|
|
11
11
|
const classPrefix = `adm-input`;
|
|
12
12
|
const defaultProps = {
|
|
13
13
|
defaultValue: '',
|
|
@@ -22,6 +22,12 @@ export const Input = forwardRef((p, ref) => {
|
|
|
22
22
|
const {
|
|
23
23
|
locale
|
|
24
24
|
} = useConfig();
|
|
25
|
+
const handleKeydown = useInputHandleKeyDown({
|
|
26
|
+
onEnterPress: props.onEnterPress,
|
|
27
|
+
onKeyDown: props.onKeyDown,
|
|
28
|
+
nativeInputRef,
|
|
29
|
+
enterKeyHint: props.enterKeyHint
|
|
30
|
+
});
|
|
25
31
|
useImperativeHandle(ref, () => ({
|
|
26
32
|
clear: () => {
|
|
27
33
|
setValue('');
|
|
@@ -38,22 +44,6 @@ export const Input = forwardRef((p, ref) => {
|
|
|
38
44
|
return nativeInputRef.current;
|
|
39
45
|
}
|
|
40
46
|
}));
|
|
41
|
-
const handleKeydown = e => {
|
|
42
|
-
var _a;
|
|
43
|
-
if (props.onEnterPress && (e.code === 'Enter' || e.keyCode === 13)) {
|
|
44
|
-
props.onEnterPress(e);
|
|
45
|
-
}
|
|
46
|
-
(_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
47
|
-
};
|
|
48
|
-
useIsomorphicLayoutEffect(() => {
|
|
49
|
-
var _a;
|
|
50
|
-
if (!props.enterKeyHint) return;
|
|
51
|
-
(_a = nativeInputRef.current) === null || _a === void 0 ? void 0 : _a.setAttribute('enterkeyhint', props.enterKeyHint);
|
|
52
|
-
return () => {
|
|
53
|
-
var _a;
|
|
54
|
-
(_a = nativeInputRef.current) === null || _a === void 0 ? void 0 : _a.removeAttribute('enterkeyhint');
|
|
55
|
-
};
|
|
56
|
-
}, [props.enterKeyHint]);
|
|
57
47
|
function checkValue() {
|
|
58
48
|
let nextValue = value;
|
|
59
49
|
if (props.type === 'number') {
|
|
@@ -104,6 +94,7 @@ export const Input = forwardRef((p, ref) => {
|
|
|
104
94
|
max: props.max,
|
|
105
95
|
min: props.min,
|
|
106
96
|
autoComplete: props.autoComplete,
|
|
97
|
+
enterKeyHint: props.enterKeyHint,
|
|
107
98
|
autoFocus: props.autoFocus,
|
|
108
99
|
pattern: props.pattern,
|
|
109
100
|
inputMode: props.inputMode,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface InputHandleKeyDownType<T> {
|
|
2
|
+
onEnterPress?: (e: React.KeyboardEvent<T>) => void;
|
|
3
|
+
onKeyDown?: (e: React.KeyboardEvent<T>) => void;
|
|
4
|
+
enterKeyHint?: React.InputHTMLAttributes<HTMLInputElement>['enterKeyHint'];
|
|
5
|
+
nativeInputRef: React.RefObject<T>;
|
|
6
|
+
}
|
|
7
|
+
export default function useInputHandleKeyDown<T extends HTMLInputElement | HTMLTextAreaElement>({ onEnterPress, onKeyDown, nativeInputRef, enterKeyHint, }: InputHandleKeyDownType<T>): (e: React.KeyboardEvent<T>) => void;
|
|
8
|
+
export {};
|