antd-mobile 5.0.0-rc.21 → 5.0.0-rc.25
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/README.md +7 -6
- package/2x/cjs/components/avatar/avatar.d.ts +1 -1
- package/2x/cjs/components/badge/badge.css +18 -10
- package/2x/cjs/components/badge/badge.d.ts +1 -0
- package/2x/cjs/components/badge/badge.js +4 -5
- package/2x/cjs/components/button/button.css +1 -1
- package/2x/cjs/components/calendar/calendar.js +4 -0
- package/2x/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
- package/2x/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/2x/cjs/components/checkbox/check-icon.js +4 -13
- package/2x/cjs/components/checkbox/checkbox.css +11 -30
- package/2x/cjs/components/checkbox/checkbox.js +4 -6
- package/2x/cjs/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/2x/cjs/components/checkbox/indeterminate-icon.js +24 -0
- package/2x/cjs/components/date-picker/date-picker.d.ts +1 -1
- package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/2x/cjs/components/error-block/error-block.d.ts +1 -1
- package/2x/cjs/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/cjs/components/floating-panel/floating-panel.d.ts +2 -0
- package/2x/cjs/components/floating-panel/floating-panel.js +5 -0
- package/2x/cjs/components/form/form-item.css +3 -2
- package/2x/cjs/components/form/form-item.d.ts +2 -2
- package/2x/cjs/components/form/form-item.js +9 -5
- package/2x/cjs/components/form/form.css +7 -3
- package/2x/cjs/components/form/form.d.ts +5 -4
- package/2x/cjs/components/form/index.css +10 -5
- package/2x/cjs/components/form/index.d.ts +5 -4
- package/2x/cjs/components/image-viewer/image-viewer.d.ts +8 -2
- package/2x/cjs/components/image-viewer/image-viewer.js +8 -5
- package/2x/cjs/components/image-viewer/index.d.ts +6 -2
- package/2x/cjs/components/image-viewer/slides.d.ts +7 -3
- package/2x/cjs/components/image-viewer/slides.js +18 -11
- package/2x/cjs/components/input/input.css +28 -25
- package/2x/cjs/components/input/input.d.ts +4 -4
- package/2x/cjs/components/input/input.js +10 -4
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/2x/cjs/components/list/list.css +2 -6
- package/2x/cjs/components/list/list.d.ts +1 -1
- package/2x/cjs/components/modal/modal.css +25 -20
- package/2x/cjs/components/modal/modal.js +8 -12
- package/2x/cjs/components/nav-bar/nav-bar.css +3 -3
- package/2x/cjs/components/notice-bar/notice-bar.d.ts +1 -1
- package/2x/cjs/components/passcode-input/passcode-input.d.ts +2 -2
- package/2x/cjs/components/picker/picker.css +10 -2
- package/2x/cjs/components/picker/picker.d.ts +1 -1
- package/2x/cjs/components/picker-view/picker-view.css +4 -2
- package/2x/cjs/components/picker-view/picker-view.d.ts +1 -1
- package/2x/cjs/components/picker-view/wheel.js +1 -1
- package/2x/cjs/components/popover/arrow.d.ts +3 -0
- package/2x/cjs/components/popover/arrow.js +26 -0
- package/2x/cjs/components/popover/index.d.ts +7 -15
- package/2x/cjs/components/popover/index.js +4 -2
- package/2x/cjs/components/popover/popover-menu.css +63 -0
- package/2x/cjs/components/popover/popover-menu.d.ts +20 -0
- package/{cjs/components/popover/pop-menu.js → 2x/cjs/components/popover/popover-menu.js} +23 -26
- package/2x/cjs/components/popover/popover.css +90 -318
- package/2x/cjs/components/popover/popover.d.ts +9 -8
- package/2x/cjs/components/popover/popover.js +11 -17
- package/2x/cjs/components/radio/radio.css +9 -12
- package/2x/cjs/components/radio/radio.js +1 -3
- package/2x/cjs/components/result/result.css +2 -5
- package/2x/cjs/components/search-bar/search-bar.css +14 -9
- package/2x/cjs/components/selector/selector.css +4 -0
- package/2x/cjs/components/spin-loading/spin-loading.css +1 -19
- package/2x/cjs/components/spin-loading/spin-loading.d.ts +1 -1
- package/2x/cjs/components/spin-loading/spin-loading.js +33 -5
- package/2x/cjs/components/stepper/stepper.css +4 -7
- package/2x/cjs/components/stepper/stepper.js +0 -1
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +2 -2
- package/2x/cjs/components/swipe-action/swipe-action.js +1 -1
- package/2x/cjs/components/swiper/swiper.js +14 -19
- package/2x/cjs/components/switch/switch.css +8 -3
- package/2x/cjs/components/tabs/tabs.css +1 -1
- package/2x/cjs/components/tag/tag.css +3 -3
- package/2x/cjs/components/text-area/text-area.css +9 -9
- package/2x/cjs/components/text-area/text-area.d.ts +2 -2
- package/2x/cjs/components/text-area/text-area.js +41 -32
- package/2x/cjs/components/virtual-input/virtual-input.d.ts +1 -1
- package/2x/cjs/utils/get-scroll-parent.js +1 -1
- package/2x/es/components/avatar/avatar.d.ts +1 -1
- package/2x/es/components/badge/badge.css +18 -10
- package/2x/es/components/badge/badge.d.ts +1 -0
- package/2x/es/components/badge/badge.js +4 -5
- package/2x/es/components/button/button.css +1 -1
- package/2x/es/components/calendar/calendar.js +2 -0
- package/2x/es/components/capsule-tabs/capsule-tabs.css +1 -1
- package/2x/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/2x/es/components/checkbox/check-icon.js +4 -13
- package/2x/es/components/checkbox/checkbox.css +11 -30
- package/2x/es/components/checkbox/checkbox.js +3 -6
- package/2x/es/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/2x/es/components/checkbox/indeterminate-icon.js +10 -0
- package/2x/es/components/date-picker/date-picker.d.ts +1 -1
- package/2x/es/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/2x/es/components/error-block/error-block.d.ts +1 -1
- package/2x/es/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/es/components/floating-panel/floating-panel.d.ts +2 -0
- package/2x/es/components/floating-panel/floating-panel.js +5 -0
- package/2x/es/components/form/form-item.css +3 -2
- package/2x/es/components/form/form-item.d.ts +2 -2
- package/2x/es/components/form/form-item.js +9 -5
- package/2x/es/components/form/form.css +7 -3
- package/2x/es/components/form/form.d.ts +5 -4
- package/2x/es/components/form/index.css +10 -5
- package/2x/es/components/form/index.d.ts +5 -4
- package/2x/es/components/image-viewer/image-viewer.d.ts +8 -2
- package/2x/es/components/image-viewer/image-viewer.js +4 -3
- package/2x/es/components/image-viewer/index.d.ts +6 -2
- package/2x/es/components/image-viewer/slides.d.ts +7 -3
- package/2x/es/components/image-viewer/slides.js +19 -10
- package/2x/es/components/input/input.css +28 -25
- package/2x/es/components/input/input.d.ts +4 -4
- package/2x/es/components/input/input.js +7 -4
- package/2x/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/2x/es/components/list/list.css +2 -6
- package/2x/es/components/list/list.d.ts +1 -1
- package/2x/es/components/modal/modal.css +25 -20
- package/2x/es/components/modal/modal.js +8 -12
- package/2x/es/components/nav-bar/nav-bar.css +3 -3
- package/2x/es/components/notice-bar/notice-bar.d.ts +1 -1
- package/2x/es/components/passcode-input/passcode-input.d.ts +2 -2
- package/2x/es/components/picker/picker.css +10 -2
- package/2x/es/components/picker/picker.d.ts +1 -1
- package/2x/es/components/picker-view/picker-view.css +4 -2
- package/2x/es/components/picker-view/picker-view.d.ts +1 -1
- package/2x/es/components/picker-view/wheel.js +1 -1
- package/2x/es/components/popover/arrow.d.ts +3 -0
- package/2x/es/components/popover/arrow.js +12 -0
- package/2x/es/components/popover/index.d.ts +7 -15
- package/2x/es/components/popover/index.js +3 -2
- package/2x/es/components/popover/popover-menu.css +63 -0
- package/2x/es/components/popover/popover-menu.d.ts +20 -0
- package/2x/es/components/popover/popover-menu.js +52 -0
- package/2x/es/components/popover/popover.css +90 -318
- package/2x/es/components/popover/popover.d.ts +9 -8
- package/2x/es/components/popover/popover.js +10 -17
- package/2x/es/components/radio/radio.css +9 -12
- package/2x/es/components/radio/radio.js +1 -3
- package/2x/es/components/result/result.css +2 -5
- package/2x/es/components/search-bar/search-bar.css +14 -9
- package/2x/es/components/selector/selector.css +4 -0
- package/2x/es/components/spin-loading/spin-loading.css +1 -19
- package/2x/es/components/spin-loading/spin-loading.d.ts +1 -1
- package/2x/es/components/spin-loading/spin-loading.js +32 -5
- package/2x/es/components/stepper/stepper.css +4 -7
- package/2x/es/components/stepper/stepper.js +0 -1
- package/2x/es/components/swipe-action/swipe-action.d.ts +2 -2
- package/2x/es/components/swipe-action/swipe-action.js +1 -1
- package/2x/es/components/swiper/swiper.js +13 -19
- package/2x/es/components/switch/switch.css +8 -3
- package/2x/es/components/tabs/tabs.css +1 -1
- package/2x/es/components/tag/tag.css +3 -3
- package/2x/es/components/text-area/text-area.css +9 -9
- package/2x/es/components/text-area/text-area.d.ts +2 -2
- package/2x/es/components/text-area/text-area.js +41 -31
- package/2x/es/components/virtual-input/virtual-input.d.ts +1 -1
- package/2x/es/utils/get-scroll-parent.js +1 -1
- package/2x/package.json +2 -2
- package/README.md +7 -6
- package/cjs/components/avatar/avatar.d.ts +1 -1
- package/cjs/components/badge/badge.css +16 -10
- package/cjs/components/badge/badge.d.ts +1 -0
- package/cjs/components/badge/badge.js +4 -5
- package/cjs/components/button/button.css +1 -1
- package/cjs/components/calendar/calendar.js +4 -0
- package/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
- package/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/cjs/components/checkbox/check-icon.js +4 -13
- package/cjs/components/checkbox/checkbox.css +11 -27
- package/cjs/components/checkbox/checkbox.js +4 -6
- package/cjs/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/cjs/components/checkbox/indeterminate-icon.js +24 -0
- package/cjs/components/date-picker/date-picker.d.ts +1 -1
- package/cjs/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/cjs/components/error-block/error-block.d.ts +1 -1
- package/cjs/components/floating-bubble/floating-bubble.css +1 -0
- package/cjs/components/floating-panel/floating-panel.d.ts +2 -0
- package/cjs/components/floating-panel/floating-panel.js +5 -0
- package/cjs/components/form/form-item.css +3 -2
- package/cjs/components/form/form-item.d.ts +2 -2
- package/cjs/components/form/form-item.js +9 -5
- package/cjs/components/form/form.css +6 -3
- package/cjs/components/form/form.d.ts +5 -4
- package/cjs/components/form/index.css +9 -5
- package/cjs/components/form/index.d.ts +5 -4
- package/cjs/components/image-viewer/image-viewer.d.ts +8 -2
- package/cjs/components/image-viewer/image-viewer.js +8 -5
- package/cjs/components/image-viewer/index.d.ts +6 -2
- package/cjs/components/image-viewer/slides.d.ts +7 -3
- package/cjs/components/image-viewer/slides.js +18 -11
- package/cjs/components/input/input.css +26 -24
- package/cjs/components/input/input.d.ts +4 -4
- package/cjs/components/input/input.js +10 -4
- package/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/cjs/components/list/list.css +2 -5
- package/cjs/components/list/list.d.ts +1 -1
- package/cjs/components/modal/modal.css +23 -19
- package/cjs/components/modal/modal.js +8 -12
- package/cjs/components/nav-bar/nav-bar.css +3 -3
- package/cjs/components/notice-bar/notice-bar.d.ts +1 -1
- package/cjs/components/passcode-input/passcode-input.d.ts +2 -2
- package/cjs/components/picker/picker.css +9 -2
- package/cjs/components/picker/picker.d.ts +1 -1
- package/cjs/components/picker-view/picker-view.css +4 -2
- package/cjs/components/picker-view/picker-view.d.ts +1 -1
- package/cjs/components/picker-view/wheel.js +1 -1
- package/cjs/components/popover/arrow.d.ts +3 -0
- package/cjs/components/popover/arrow.js +26 -0
- package/cjs/components/popover/index.d.ts +7 -15
- package/cjs/components/popover/index.js +4 -2
- package/cjs/components/popover/popover-menu.css +52 -0
- package/cjs/components/popover/popover-menu.d.ts +20 -0
- package/{2x/cjs/components/popover/pop-menu.js → cjs/components/popover/popover-menu.js} +23 -26
- package/cjs/components/popover/popover.css +83 -276
- package/cjs/components/popover/popover.d.ts +9 -8
- package/cjs/components/popover/popover.js +11 -17
- package/cjs/components/radio/radio.css +9 -12
- package/cjs/components/radio/radio.js +1 -3
- package/cjs/components/result/result.css +2 -5
- package/cjs/components/search-bar/search-bar.css +13 -9
- package/cjs/components/selector/selector.css +3 -0
- package/cjs/components/spin-loading/spin-loading.css +1 -17
- package/cjs/components/spin-loading/spin-loading.d.ts +1 -1
- package/cjs/components/spin-loading/spin-loading.js +33 -5
- package/cjs/components/stepper/stepper.css +4 -6
- package/cjs/components/stepper/stepper.js +0 -1
- package/cjs/components/swipe-action/swipe-action.d.ts +2 -2
- package/cjs/components/swipe-action/swipe-action.js +1 -1
- package/cjs/components/swiper/swiper.js +14 -19
- package/cjs/components/switch/switch.css +8 -3
- package/cjs/components/tabs/tabs.css +1 -1
- package/cjs/components/tag/tag.css +3 -3
- package/cjs/components/text-area/text-area.css +9 -9
- package/cjs/components/text-area/text-area.d.ts +2 -2
- package/cjs/components/text-area/text-area.js +41 -32
- package/cjs/components/virtual-input/virtual-input.d.ts +1 -1
- package/cjs/utils/get-scroll-parent.js +1 -1
- package/es/components/avatar/avatar.d.ts +1 -1
- package/es/components/badge/badge.css +16 -10
- package/es/components/badge/badge.d.ts +1 -0
- package/es/components/badge/badge.js +4 -5
- package/es/components/button/button.css +1 -1
- package/es/components/calendar/calendar.js +2 -0
- package/es/components/capsule-tabs/capsule-tabs.css +1 -1
- package/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/es/components/checkbox/check-icon.js +4 -13
- package/es/components/checkbox/checkbox.css +11 -27
- package/es/components/checkbox/checkbox.js +3 -6
- package/es/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/es/components/checkbox/indeterminate-icon.js +10 -0
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/es/components/error-block/error-block.d.ts +1 -1
- package/es/components/floating-bubble/floating-bubble.css +1 -0
- package/es/components/floating-panel/floating-panel.d.ts +2 -0
- package/es/components/floating-panel/floating-panel.js +5 -0
- package/es/components/form/form-item.css +3 -2
- package/es/components/form/form-item.d.ts +2 -2
- package/es/components/form/form-item.js +9 -5
- package/es/components/form/form.css +6 -3
- package/es/components/form/form.d.ts +5 -4
- package/es/components/form/index.css +9 -5
- package/es/components/form/index.d.ts +5 -4
- package/es/components/image-viewer/image-viewer.d.ts +8 -2
- package/es/components/image-viewer/image-viewer.js +4 -3
- package/es/components/image-viewer/index.d.ts +6 -2
- package/es/components/image-viewer/slides.d.ts +7 -3
- package/es/components/image-viewer/slides.js +19 -10
- package/es/components/input/input.css +26 -24
- package/es/components/input/input.d.ts +4 -4
- package/es/components/input/input.js +7 -4
- package/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/es/components/list/list.css +2 -5
- package/es/components/list/list.d.ts +1 -1
- package/es/components/modal/modal.css +23 -19
- package/es/components/modal/modal.js +8 -12
- package/es/components/nav-bar/nav-bar.css +3 -3
- package/es/components/notice-bar/notice-bar.d.ts +1 -1
- package/es/components/passcode-input/passcode-input.d.ts +2 -2
- package/es/components/picker/picker.css +9 -2
- package/es/components/picker/picker.d.ts +1 -1
- package/es/components/picker-view/picker-view.css +4 -2
- package/es/components/picker-view/picker-view.d.ts +1 -1
- package/es/components/picker-view/wheel.js +1 -1
- package/es/components/popover/arrow.d.ts +3 -0
- package/es/components/popover/arrow.js +12 -0
- package/es/components/popover/index.d.ts +7 -15
- package/es/components/popover/index.js +3 -2
- package/es/components/popover/popover-menu.css +52 -0
- package/es/components/popover/popover-menu.d.ts +20 -0
- package/es/components/popover/popover-menu.js +52 -0
- package/es/components/popover/popover.css +83 -276
- package/es/components/popover/popover.d.ts +9 -8
- package/es/components/popover/popover.js +10 -17
- package/es/components/radio/radio.css +9 -12
- package/es/components/radio/radio.js +1 -3
- package/es/components/result/result.css +2 -5
- package/es/components/search-bar/search-bar.css +13 -9
- package/es/components/selector/selector.css +3 -0
- package/es/components/spin-loading/spin-loading.css +1 -17
- package/es/components/spin-loading/spin-loading.d.ts +1 -1
- package/es/components/spin-loading/spin-loading.js +32 -5
- package/es/components/stepper/stepper.css +4 -6
- package/es/components/stepper/stepper.js +0 -1
- package/es/components/swipe-action/swipe-action.d.ts +2 -2
- package/es/components/swipe-action/swipe-action.js +1 -1
- package/es/components/swiper/swiper.js +13 -19
- package/es/components/switch/switch.css +8 -3
- package/es/components/tabs/tabs.css +1 -1
- package/es/components/tag/tag.css +3 -3
- package/es/components/text-area/text-area.css +9 -9
- package/es/components/text-area/text-area.d.ts +2 -2
- package/es/components/text-area/text-area.js +41 -31
- package/es/components/virtual-input/virtual-input.d.ts +1 -1
- package/es/utils/get-scroll-parent.js +1 -1
- package/package.json +2 -2
- package/umd/antd-mobile.js +1 -1
- package/2x/cjs/components/popover/animation.css +0 -111
- package/2x/cjs/components/popover/pop-menu.d.ts +0 -28
- package/2x/es/components/popover/animation.css +0 -111
- package/2x/es/components/popover/pop-menu.d.ts +0 -28
- package/2x/es/components/popover/pop-menu.js +0 -54
- package/cjs/components/popover/animation.css +0 -96
- package/cjs/components/popover/pop-menu.d.ts +0 -28
- package/es/components/popover/animation.css +0 -96
- package/es/components/popover/pop-menu.d.ts +0 -28
- package/es/components/popover/pop-menu.js +0 -54
|
@@ -15,21 +15,18 @@
|
|
|
15
15
|
|
|
16
16
|
.adm-radio .adm-radio-icon {
|
|
17
17
|
flex: none;
|
|
18
|
-
border: 2px solid
|
|
18
|
+
border: 2px solid var(--adm-color-light);
|
|
19
19
|
border-radius: var(--icon-size);
|
|
20
20
|
box-sizing: border-box;
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
21
|
width: var(--icon-size);
|
|
25
22
|
height: var(--icon-size);
|
|
26
|
-
color:
|
|
23
|
+
color: var(--adm-color-white);
|
|
27
24
|
}
|
|
28
25
|
|
|
29
|
-
.adm-radio .adm-radio-icon
|
|
26
|
+
.adm-radio .adm-radio-icon > svg {
|
|
30
27
|
display: block;
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
.adm-radio.adm-radio-block {
|
|
@@ -46,13 +43,13 @@
|
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
.adm-radio.adm-radio-disabled .adm-radio-content {
|
|
49
|
-
|
|
46
|
+
opacity: 0.4;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
.adm-radio.adm-radio-disabled .adm-radio-icon {
|
|
53
|
-
color: #
|
|
54
|
-
border-color:
|
|
55
|
-
background-color: #
|
|
50
|
+
color: #b7b7b7;
|
|
51
|
+
border-color: var(--adm-color-light);
|
|
52
|
+
background-color: #f5f5f5;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
.adm-radio .adm-radio-custom-icon {
|
|
@@ -49,9 +49,7 @@ export const Radio = p => {
|
|
|
49
49
|
|
|
50
50
|
return React.createElement("div", {
|
|
51
51
|
className: `${classPrefix}-icon`
|
|
52
|
-
}, checked && React.createElement(CheckIcon,
|
|
53
|
-
className: `${classPrefix}-icon-checked`
|
|
54
|
-
}));
|
|
52
|
+
}, checked && React.createElement(CheckIcon, null));
|
|
55
53
|
};
|
|
56
54
|
|
|
57
55
|
return withNativeProps(props, React.createElement("label", {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
.adm-result {
|
|
2
|
-
--bg-color: var(--adm-color-white);
|
|
3
|
-
--color: var(--adm-color-text);
|
|
4
|
-
--adm-color-weak: var(--adm-color-weak);
|
|
5
2
|
padding: 64px 24px;
|
|
6
|
-
background-color: var(--
|
|
3
|
+
background-color: var(--adm-color-white);
|
|
7
4
|
}
|
|
8
5
|
|
|
9
6
|
.adm-result-icon {
|
|
@@ -19,7 +16,7 @@
|
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
.adm-result-title {
|
|
22
|
-
color: var(--color);
|
|
19
|
+
color: var(--adm-color-text);
|
|
23
20
|
font-size: 36px;
|
|
24
21
|
line-height: 1.4;
|
|
25
22
|
text-align: center;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
.adm-search-bar {
|
|
2
|
-
|
|
3
|
-
justify-content: center;
|
|
4
|
-
align-items: center;
|
|
5
|
-
--height: 56px;
|
|
2
|
+
--height: 64px;
|
|
6
3
|
--padding-left: 16px;
|
|
7
4
|
--background: #f5f5f5;
|
|
8
5
|
--border-radius: 12px;
|
|
9
6
|
--placeholder-color: var(--adm-color-weak);
|
|
10
7
|
---placeholder-color: var(--placeholder-color);
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
height: var(--height);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.adm-search-bar .adm-search-bar-input-box {
|
|
@@ -23,23 +24,23 @@
|
|
|
23
24
|
|
|
24
25
|
.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input-box-icon {
|
|
25
26
|
flex: none;
|
|
26
|
-
color: var(
|
|
27
|
+
color: var(--adm-color-light);
|
|
27
28
|
font-size: 32px;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input {
|
|
31
32
|
flex: auto;
|
|
32
33
|
padding: 8px 16px 8px 8px;
|
|
33
|
-
height: var(--height);
|
|
34
|
+
height: calc(var(--height) - 4px);
|
|
34
35
|
box-sizing: border-box;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-input
|
|
38
|
+
.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-input {
|
|
38
39
|
--placeholder-color: var(---placeholder-color);
|
|
40
|
+
--font-size: 30px;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input .adm-input {
|
|
42
|
-
font-size: 26px;
|
|
43
|
+
.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input .adm-input-element {
|
|
43
44
|
line-height: 38px;
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -56,6 +57,10 @@
|
|
|
56
57
|
padding: 6px 24px;
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
.adm-search-bar-active .adm-input.adm-input.adm-input {
|
|
61
|
+
--placeholder-color: var(--adm-color-light);
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
.adm-search-bar-active .adm-search-bar-input-box {
|
|
60
65
|
border-color: var(--adm-color-primary);
|
|
61
66
|
background: var(--adm-color-white);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
.adm-spin-loading {
|
|
2
2
|
--color: var(--adm-color-weak);
|
|
3
3
|
--size: 64px;
|
|
4
|
-
--track-width: calc(var(--size) / 16);
|
|
5
4
|
--pi: 3.14159265;
|
|
6
|
-
--radius:
|
|
5
|
+
--radius: 15;
|
|
7
6
|
--circumference: calc(var(--radius) * var(--pi) * 2);
|
|
8
7
|
width: var(--size);
|
|
9
8
|
height: var(--size);
|
|
@@ -17,13 +16,6 @@
|
|
|
17
16
|
|
|
18
17
|
.adm-spin-loading-svg > .adm-spin-loading-fill {
|
|
19
18
|
stroke: var(--color);
|
|
20
|
-
stroke-width: var(--track-width);
|
|
21
|
-
stroke-dasharray: var(--circumference);
|
|
22
|
-
stroke-linecap: square;
|
|
23
|
-
animation: adm-spin-loading-fill 1s infinite alternate-reverse linear;
|
|
24
|
-
r: var(--radius);
|
|
25
|
-
cx: calc(var(--size) / 2);
|
|
26
|
-
cy: calc(var(--size) / 2);
|
|
27
19
|
}
|
|
28
20
|
|
|
29
21
|
@keyframes adm-spin-loading-rotate {
|
|
@@ -34,14 +26,4 @@
|
|
|
34
26
|
to {
|
|
35
27
|
transform: rotate(360deg);
|
|
36
28
|
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@keyframes adm-spin-loading-fill {
|
|
40
|
-
from {
|
|
41
|
-
stroke-dashoffset: calc(var(--circumference) * (1 - 0.4));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
to {
|
|
45
|
-
stroke-dashoffset: calc(var(--circumference) * (1 - 0.8));
|
|
46
|
-
}
|
|
47
29
|
}
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
export declare type SpinLoadingProps = {
|
|
4
4
|
color?: 'default' | 'primary' | 'white' | (string & {});
|
|
5
|
-
} & NativeProps<'--color' | '--size'
|
|
5
|
+
} & NativeProps<'--color' | '--size'>;
|
|
6
6
|
export declare const SpinLoading: React.NamedExoticComponent<SpinLoadingProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { withNativeProps } from '../../utils/native-props';
|
|
3
3
|
import { mergeProps } from '../../utils/with-default-props';
|
|
4
|
+
import { useSpring, animated } from '@react-spring/web';
|
|
4
5
|
const classPrefix = 'adm-spin-loading';
|
|
5
6
|
const colorRecord = {
|
|
6
7
|
default: 'var(--adm-color-weak)',
|
|
@@ -10,19 +11,45 @@ const colorRecord = {
|
|
|
10
11
|
const defaultProps = {
|
|
11
12
|
color: 'default'
|
|
12
13
|
};
|
|
14
|
+
const circumference = 15 * 3.14159265358979 * 2;
|
|
13
15
|
export const SpinLoading = memo(p => {
|
|
14
16
|
var _a;
|
|
15
17
|
|
|
16
18
|
const props = mergeProps(defaultProps, p);
|
|
17
|
-
|
|
19
|
+
const {
|
|
20
|
+
percent
|
|
21
|
+
} = useSpring({
|
|
22
|
+
loop: {
|
|
23
|
+
reverse: true
|
|
24
|
+
},
|
|
25
|
+
from: {
|
|
26
|
+
percent: 30
|
|
27
|
+
},
|
|
28
|
+
to: {
|
|
29
|
+
percent: 80
|
|
30
|
+
},
|
|
31
|
+
config: {
|
|
32
|
+
duration: 1200
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return withNativeProps(props, React.createElement(animated.div, {
|
|
18
36
|
className: classPrefix,
|
|
19
37
|
style: {
|
|
20
|
-
'--color': (_a = colorRecord[props.color]) !== null && _a !== void 0 ? _a : props.color
|
|
38
|
+
'--color': (_a = colorRecord[props.color]) !== null && _a !== void 0 ? _a : props.color,
|
|
39
|
+
'--percent': percent
|
|
21
40
|
}
|
|
22
41
|
}, React.createElement("svg", {
|
|
23
|
-
className: `${classPrefix}-svg
|
|
24
|
-
|
|
42
|
+
className: `${classPrefix}-svg`,
|
|
43
|
+
viewBox: '0 0 32 32'
|
|
44
|
+
}, React.createElement(animated.circle, {
|
|
25
45
|
className: `${classPrefix}-fill`,
|
|
26
|
-
fill: 'transparent'
|
|
46
|
+
fill: 'transparent',
|
|
47
|
+
strokeWidth: '2',
|
|
48
|
+
strokeDasharray: circumference,
|
|
49
|
+
strokeDashoffset: percent,
|
|
50
|
+
strokeLinecap: 'square',
|
|
51
|
+
r: 15,
|
|
52
|
+
cx: 16,
|
|
53
|
+
cy: 16
|
|
27
54
|
}))));
|
|
28
55
|
});
|
|
@@ -34,13 +34,10 @@
|
|
|
34
34
|
|
|
35
35
|
.adm-stepper .adm-stepper-input {
|
|
36
36
|
height: var(--height);
|
|
37
|
-
background-color: var(--input-background-color);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
text-align: center;
|
|
42
|
-
font-size: var(--input-font-size);
|
|
43
|
-
color: var(--input-font-color);
|
|
37
|
+
--background-color: var(--input-background-color);
|
|
38
|
+
--font-size: var(--input-font-size);
|
|
39
|
+
--color: var(--input-font-color);
|
|
40
|
+
--text-align: center;
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
.adm-stepper-minus,
|
|
@@ -14,7 +14,7 @@ export declare type Action = {
|
|
|
14
14
|
export declare type SwipeActionProps = {
|
|
15
15
|
rightActions?: Action[];
|
|
16
16
|
leftActions?: Action[];
|
|
17
|
-
onAction?: (action: Action) => void;
|
|
17
|
+
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
18
18
|
closeOnTouchOutside?: boolean;
|
|
19
19
|
closeOnAction?: boolean;
|
|
20
20
|
children: ReactNode;
|
|
@@ -22,7 +22,7 @@ export declare type SwipeActionProps = {
|
|
|
22
22
|
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
23
23
|
rightActions?: Action[] | undefined;
|
|
24
24
|
leftActions?: Action[] | undefined;
|
|
25
|
-
onAction?: ((action: Action) => void) | undefined;
|
|
25
|
+
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
26
26
|
closeOnTouchOutside?: boolean | undefined;
|
|
27
27
|
closeOnAction?: boolean | undefined;
|
|
28
28
|
children: ReactNode;
|
|
@@ -147,7 +147,7 @@ export const SwipeAction = forwardRef((p, ref) => {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
(_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
|
|
150
|
-
(_b = props.onAction) === null || _b === void 0 ? void 0 : _b.call(props, action);
|
|
150
|
+
(_b = props.onAction) === null || _b === void 0 ? void 0 : _b.call(props, action, e);
|
|
151
151
|
}
|
|
152
152
|
}, action.text);
|
|
153
153
|
}
|
|
@@ -10,6 +10,7 @@ import PageIndicator from '../page-indicator';
|
|
|
10
10
|
import { staged } from 'staged-components';
|
|
11
11
|
import { useRefState } from '../../utils/use-ref-state';
|
|
12
12
|
import { bound } from '../../utils/bound';
|
|
13
|
+
import { useUpdateEffect } from 'ahooks';
|
|
13
14
|
const defaultProps = {
|
|
14
15
|
defaultIndex: 0,
|
|
15
16
|
allowTouchMove: true,
|
|
@@ -71,6 +72,11 @@ export const Swiper = forwardRef(staged((p, ref) => {
|
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
const [current, setCurrent] = useState(props.defaultIndex);
|
|
75
|
+
useUpdateEffect(() => {
|
|
76
|
+
var _a;
|
|
77
|
+
|
|
78
|
+
(_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, current);
|
|
79
|
+
}, [current]);
|
|
74
80
|
const [dragging, setDragging, draggingRef] = useRefState(false);
|
|
75
81
|
|
|
76
82
|
function boundIndex(current) {
|
|
@@ -156,25 +162,13 @@ export const Swiper = forwardRef(staged((p, ref) => {
|
|
|
156
162
|
});
|
|
157
163
|
|
|
158
164
|
function swipeTo(index, immediate = false) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
position: index * 100,
|
|
167
|
-
immediate
|
|
168
|
-
});
|
|
169
|
-
} else {
|
|
170
|
-
const i = bound(index, 0, count - 1);
|
|
171
|
-
setCurrent(i);
|
|
172
|
-
(_b = props.onIndexChange) === null || _b === void 0 ? void 0 : _b.call(props, i);
|
|
173
|
-
api.start({
|
|
174
|
-
position: boundIndex(i) * 100,
|
|
175
|
-
immediate
|
|
176
|
-
});
|
|
177
|
-
}
|
|
165
|
+
const roundedIndex = Math.round(index);
|
|
166
|
+
const targetIndex = loop ? modulus(roundedIndex, count) : bound(roundedIndex, 0, count - 1);
|
|
167
|
+
setCurrent(targetIndex);
|
|
168
|
+
api.start({
|
|
169
|
+
position: (loop ? roundedIndex : boundIndex(roundedIndex)) * 100,
|
|
170
|
+
immediate
|
|
171
|
+
});
|
|
178
172
|
}
|
|
179
173
|
|
|
180
174
|
function swipeNext() {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
.adm-switch {
|
|
8
8
|
--checked-color: var(--adm-color-primary);
|
|
9
|
-
--height:
|
|
10
|
-
--width:
|
|
9
|
+
--height: 62px;
|
|
10
|
+
--width: 102px;
|
|
11
11
|
--border-width: 4px;
|
|
12
12
|
display: inline-block;
|
|
13
13
|
vertical-align: middle;
|
|
@@ -69,9 +69,14 @@
|
|
|
69
69
|
.adm-switch-inner {
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 1;
|
|
72
|
-
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
margin: 0 16px 0 calc(var(--height) - var(--border-width) + 8px);
|
|
76
|
+
height: 100%;
|
|
73
77
|
color: var(--adm-color-weak);
|
|
74
78
|
transition: margin 200ms;
|
|
79
|
+
font-size: 30px;
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
.adm-switch.adm-switch-checked .adm-switch-checkbox {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.adm-tag {
|
|
2
2
|
--border-radius: var(--adm-tag-border-radius, 4px);
|
|
3
|
-
padding:
|
|
4
|
-
font-size:
|
|
3
|
+
padding: 4px 8px;
|
|
4
|
+
font-size: 22px;
|
|
5
5
|
line-height: 1;
|
|
6
6
|
font-weight: normal;
|
|
7
7
|
background: var(--background-color);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
display: inline-block;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
border-radius: var(--border-radius);
|
|
12
|
-
border:
|
|
12
|
+
border: 2px solid var(--border-color);
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.adm-text-area
|
|
1
|
+
.adm-text-area {
|
|
2
2
|
--font-size: 34px;
|
|
3
3
|
--color: var(--adm-color-text);
|
|
4
4
|
--placeholder-color: var(--adm-color-light);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
max-height: 100%;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.adm-text-area {
|
|
11
|
+
.adm-text-area-element {
|
|
12
12
|
font-family: var(--adm-font-family);
|
|
13
13
|
resize: none;
|
|
14
14
|
flex: auto;
|
|
@@ -29,35 +29,35 @@
|
|
|
29
29
|
min-height: 1.5em;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.adm-text-area::placeholder {
|
|
32
|
+
.adm-text-area-element::placeholder {
|
|
33
33
|
color: var(--placeholder-color);
|
|
34
34
|
font-family: inherit;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.adm-text-area:-webkit-autofill {
|
|
37
|
+
.adm-text-area-element:-webkit-autofill {
|
|
38
38
|
background-color: transparent;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.adm-text-area:disabled {
|
|
41
|
+
.adm-text-area-element:disabled {
|
|
42
42
|
color: var(--disabled-color);
|
|
43
43
|
cursor: not-allowed;
|
|
44
44
|
opacity: 1;
|
|
45
45
|
-webkit-text-fill-color: var(--disabled-color);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.adm-text-area:read-only {
|
|
48
|
+
.adm-text-area-element:read-only {
|
|
49
49
|
cursor: default;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.adm-text-area:invalid {
|
|
52
|
+
.adm-text-area-element:invalid {
|
|
53
53
|
box-shadow: none;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.adm-text-area::-ms-clear {
|
|
56
|
+
.adm-text-area-element::-ms-clear {
|
|
57
57
|
display: none;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
.adm-text-area[readonly] {
|
|
60
|
+
.adm-text-area-element[readonly] {
|
|
61
61
|
pointer-events: none;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import { NativeProps } from '../../utils/native-props';
|
|
4
|
-
export declare type TextAreaProps = Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'autoComplete' | 'disabled' | 'readOnly' | 'onFocus' | 'onBlur'> & {
|
|
4
|
+
export declare type TextAreaProps = Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'autoComplete' | 'disabled' | 'readOnly' | 'onFocus' | 'onBlur' | 'onCompositionStart' | 'onCompositionEnd'> & {
|
|
5
5
|
onChange?: (val: string) => void;
|
|
6
6
|
value?: string;
|
|
7
7
|
defaultValue?: string;
|
|
@@ -20,7 +20,7 @@ export declare type TextAreaRef = {
|
|
|
20
20
|
focus: () => void;
|
|
21
21
|
blur: () => void;
|
|
22
22
|
};
|
|
23
|
-
export declare const TextArea: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "disabled" | "onFocus" | "onBlur" | "autoComplete" | "readOnly"> & {
|
|
23
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "disabled" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "autoComplete" | "readOnly"> & {
|
|
24
24
|
onChange?: ((val: string) => void) | undefined;
|
|
25
25
|
value?: string | undefined;
|
|
26
26
|
defaultValue?: string | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
|
|
3
|
-
import
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
4
3
|
import { usePropsValue } from '../../utils/use-props-value';
|
|
5
4
|
import { mergeProps } from '../../utils/with-default-props';
|
|
6
5
|
const classPrefix = 'adm-text-area';
|
|
@@ -12,19 +11,11 @@ const defaultProps = {
|
|
|
12
11
|
};
|
|
13
12
|
export const TextArea = forwardRef((p, ref) => {
|
|
14
13
|
const props = mergeProps(defaultProps, p);
|
|
15
|
-
|
|
16
14
|
const {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
onChange: outerOnChange,
|
|
22
|
-
rows: rows,
|
|
23
|
-
autoSize: autoSize,
|
|
24
|
-
showCount
|
|
25
|
-
} = props,
|
|
26
|
-
textAreaProps = __rest(props, ["className", "style", "defaultValue", "value", "onChange", "rows", "autoSize", "showCount"]);
|
|
27
|
-
|
|
15
|
+
autoSize,
|
|
16
|
+
showCount,
|
|
17
|
+
maxLength
|
|
18
|
+
} = props;
|
|
28
19
|
const [value, setValue] = usePropsValue(props);
|
|
29
20
|
const nativeTextAreaRef = useRef(null);
|
|
30
21
|
useImperativeHandle(ref, () => ({
|
|
@@ -64,39 +55,58 @@ export const TextArea = forwardRef((p, ref) => {
|
|
|
64
55
|
|
|
65
56
|
textArea.style.height = `${height}px`;
|
|
66
57
|
}, [value, autoSize]);
|
|
58
|
+
const compositingRef = useRef(false);
|
|
67
59
|
let count;
|
|
60
|
+
const valueLength = [...value].length;
|
|
68
61
|
|
|
69
62
|
if (typeof showCount === 'function') {
|
|
70
|
-
count = showCount(
|
|
63
|
+
count = showCount(valueLength, maxLength);
|
|
71
64
|
} else if (showCount) {
|
|
72
65
|
count = React.createElement("div", {
|
|
73
66
|
className: `${classPrefix}-count`
|
|
74
|
-
},
|
|
67
|
+
}, maxLength === undefined ? valueLength : valueLength + '/' + maxLength);
|
|
75
68
|
}
|
|
76
69
|
|
|
77
|
-
return React.createElement("div", {
|
|
78
|
-
className:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
className: classPrefix,
|
|
84
|
-
rows: rows,
|
|
70
|
+
return withNativeProps(props, React.createElement("div", {
|
|
71
|
+
className: classPrefix
|
|
72
|
+
}, React.createElement("textarea", {
|
|
73
|
+
ref: nativeTextAreaRef,
|
|
74
|
+
className: `${classPrefix}-element`,
|
|
75
|
+
rows: props.rows,
|
|
85
76
|
value: value,
|
|
77
|
+
placeholder: props.placeholder,
|
|
86
78
|
onChange: e => {
|
|
87
|
-
|
|
79
|
+
let v = e.target.value;
|
|
80
|
+
|
|
81
|
+
if (maxLength && !compositingRef.current) {
|
|
82
|
+
v = [...v].slice(0, maxLength).join('');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
setValue(v);
|
|
88
86
|
},
|
|
89
|
-
|
|
87
|
+
id: props.id,
|
|
88
|
+
onCompositionStart: e => {
|
|
90
89
|
var _a;
|
|
91
90
|
|
|
92
|
-
|
|
91
|
+
compositingRef.current = true;
|
|
92
|
+
(_a = props.onCompositionStart) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
onCompositionEnd: e => {
|
|
95
95
|
var _a;
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
compositingRef.current = false;
|
|
98
|
+
|
|
99
|
+
if (maxLength) {
|
|
100
|
+
setValue([...value].slice(0, maxLength).join(''));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
(_a = props.onCompositionEnd) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
98
104
|
},
|
|
99
|
-
|
|
100
|
-
|
|
105
|
+
autoComplete: props.autoComplete,
|
|
106
|
+
disabled: props.disabled,
|
|
107
|
+
readOnly: props.readOnly,
|
|
108
|
+
onFocus: props.onFocus,
|
|
109
|
+
onBlur: props.onBlur
|
|
110
|
+
}), count));
|
|
101
111
|
});
|
|
102
112
|
TextArea.defaultProps = defaultProps;
|
|
@@ -21,4 +21,4 @@ export declare const VirtualInput: React.ForwardRefExoticComponent<{
|
|
|
21
21
|
keyboard?: React.ReactElement<NumberKeyboardProps, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
|
|
22
22
|
clearable?: boolean | undefined;
|
|
23
23
|
onClear?: (() => void) | undefined;
|
|
24
|
-
} & Pick<InputProps, "value" | "disabled" | "onChange" | "placeholder"> & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--
|
|
24
|
+
} & Pick<InputProps, "value" | "disabled" | "onChange" | "placeholder"> & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--text-align" | "--disabled-color" | "--caret-width" | "--caret-color"> & React.RefAttributes<VirtualInputRef>>;
|
package/2x/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-mobile",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.25",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@react-spring/web": "^9.4.2",
|
|
6
6
|
"@types/resize-observer-browser": "^0.1.6",
|
|
7
7
|
"@use-gesture/react": "^10.2.4",
|
|
8
|
-
"ahooks": "^3.1.
|
|
8
|
+
"ahooks": "^3.1.9",
|
|
9
9
|
"antd-mobile-icons": "^0.2.2",
|
|
10
10
|
"antd-mobile-v5-count": "^1.0.1",
|
|
11
11
|
"classnames": "^2.3.1",
|