antd-mobile 5.16.0 → 5.17.1
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 +2 -0
- package/2x/bundle/antd-mobile.cjs.js +3416 -3361
- package/2x/bundle/antd-mobile.es.js +3417 -3362
- package/2x/bundle/style.css +98 -36
- package/2x/cjs/components/button/button.css +1 -0
- package/2x/cjs/components/calendar/calendar.js +2 -2
- package/2x/cjs/components/cascader/cascader.js +1 -1
- package/2x/cjs/components/cascader-view/cascader-view.js +7 -3
- package/2x/cjs/components/center-popup/center-popup.js +3 -1
- package/2x/cjs/components/date-picker/date-picker.d.ts +2 -2
- package/2x/cjs/components/date-picker/date-picker.js +3 -1
- package/2x/cjs/components/date-picker/index.d.ts +1 -1
- package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/2x/cjs/components/date-picker-view/date-picker-view.js +2 -0
- package/2x/cjs/components/dialog/dialog.css +1 -0
- package/2x/cjs/components/dialog/dialog.js +2 -1
- package/2x/cjs/components/dropdown/dropdown.css +2 -2
- package/2x/cjs/components/empty/empty.css +1 -0
- package/2x/cjs/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/cjs/components/floating-panel/floating-panel.css +3 -0
- package/2x/cjs/components/form/form-item.css +1 -0
- package/2x/cjs/components/form/index.css +1 -0
- package/2x/cjs/components/grid/grid.css +1 -0
- package/2x/cjs/components/image/image.d.ts +1 -0
- package/2x/cjs/components/image/image.js +2 -1
- package/2x/cjs/components/image/test/image.test.d.ts +1 -0
- package/2x/cjs/components/image/test/image.test.js +34 -0
- package/2x/cjs/components/image-viewer/image-viewer.css +3 -0
- package/2x/cjs/components/index-bar/index-bar.css +2 -0
- package/2x/cjs/components/input/input.css +6 -0
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -0
- package/2x/cjs/components/modal/modal.css +1 -0
- package/2x/cjs/components/modal/modal.js +2 -1
- package/2x/cjs/components/number-keyboard/number-keyboard.css +3 -2
- package/2x/cjs/components/passcode-input/passcode-input.css +1 -1
- package/2x/cjs/components/picker/index.d.ts +4 -0
- package/2x/cjs/components/picker/picker.css +6 -0
- package/2x/cjs/components/picker/picker.d.ts +4 -0
- package/2x/cjs/components/picker/picker.js +7 -3
- package/2x/cjs/components/picker-view/picker-view.css +17 -3
- package/2x/cjs/components/picker-view/picker-view.d.ts +2 -0
- package/2x/cjs/components/picker-view/picker-view.js +10 -3
- package/2x/cjs/components/popover/popover.css +2 -0
- package/2x/cjs/components/popup/popup-base-props.d.ts +1 -1
- package/2x/cjs/components/popup/popup-base-props.js +1 -1
- package/2x/cjs/components/result/result.css +1 -1
- package/2x/cjs/components/side-bar/side-bar.css +1 -0
- package/2x/cjs/components/slider/slider.css +4 -0
- package/2x/cjs/components/swipe-action/swipe-action.css +1 -0
- package/2x/cjs/components/swiper/swiper.css +1 -0
- package/2x/cjs/components/tab-bar/tab-bar.css +1 -0
- package/2x/cjs/components/tabs/tabs.css +1 -0
- package/2x/cjs/components/text-area/text-area.css +6 -0
- package/2x/cjs/components/text-area/text-area.js +0 -1
- package/2x/cjs/global/global.css +1 -0
- package/2x/cjs/utils/use-props-value.d.ts +1 -1
- package/2x/cjs/utils/use-props-value.js +3 -1
- package/2x/cjs/utils/use-tab-list-scroll.js +1 -1
- package/2x/es/components/button/button.css +1 -0
- package/2x/es/components/calendar/calendar.js +2 -2
- package/2x/es/components/cascader/cascader.js +1 -1
- package/2x/es/components/cascader-view/cascader-view.js +6 -3
- package/2x/es/components/center-popup/center-popup.js +3 -1
- package/2x/es/components/date-picker/date-picker.d.ts +2 -2
- package/2x/es/components/date-picker/date-picker.js +3 -1
- package/2x/es/components/date-picker/index.d.ts +1 -1
- package/2x/es/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/2x/es/components/date-picker-view/date-picker-view.js +2 -0
- package/2x/es/components/dialog/dialog.css +1 -0
- package/2x/es/components/dialog/dialog.js +2 -1
- package/2x/es/components/dropdown/dropdown.css +2 -2
- package/2x/es/components/empty/empty.css +1 -0
- package/2x/es/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/es/components/floating-panel/floating-panel.css +3 -0
- package/2x/es/components/form/form-item.css +1 -0
- package/2x/es/components/form/index.css +1 -0
- package/2x/es/components/grid/grid.css +1 -0
- package/2x/es/components/image/image.d.ts +1 -0
- package/2x/es/components/image/image.js +2 -1
- package/2x/es/components/image/test/image.test.d.ts +1 -0
- package/2x/es/components/image/test/image.test.js +24 -0
- package/2x/es/components/image-viewer/image-viewer.css +3 -0
- package/2x/es/components/index-bar/index-bar.css +2 -0
- package/2x/es/components/input/input.css +6 -0
- package/2x/es/components/jumbo-tabs/jumbo-tabs.css +2 -0
- package/2x/es/components/modal/modal.css +1 -0
- package/2x/es/components/modal/modal.js +2 -1
- package/2x/es/components/number-keyboard/number-keyboard.css +3 -2
- package/2x/es/components/passcode-input/passcode-input.css +1 -1
- package/2x/es/components/picker/index.d.ts +4 -0
- package/2x/es/components/picker/picker.css +6 -0
- package/2x/es/components/picker/picker.d.ts +4 -0
- package/2x/es/components/picker/picker.js +7 -3
- package/2x/es/components/picker-view/picker-view.css +17 -3
- package/2x/es/components/picker-view/picker-view.d.ts +2 -0
- package/2x/es/components/picker-view/picker-view.js +7 -3
- package/2x/es/components/popover/popover.css +2 -0
- package/2x/es/components/popup/popup-base-props.d.ts +1 -1
- package/2x/es/components/popup/popup-base-props.js +1 -1
- package/2x/es/components/result/result.css +1 -1
- package/2x/es/components/side-bar/side-bar.css +1 -0
- package/2x/es/components/slider/slider.css +4 -0
- package/2x/es/components/swipe-action/swipe-action.css +1 -0
- package/2x/es/components/swiper/swiper.css +1 -0
- package/2x/es/components/tab-bar/tab-bar.css +1 -0
- package/2x/es/components/tabs/tabs.css +1 -0
- package/2x/es/components/text-area/text-area.css +6 -0
- package/2x/es/components/text-area/text-area.js +0 -1
- package/2x/es/global/global.css +1 -0
- package/2x/es/utils/use-props-value.d.ts +1 -1
- package/2x/es/utils/use-props-value.js +3 -1
- package/2x/es/utils/use-tab-list-scroll.js +1 -1
- package/2x/package.json +1 -1
- package/2x/umd/antd-mobile.js +1 -1
- package/README.md +2 -0
- package/bundle/antd-mobile.cjs.js +3416 -3361
- package/bundle/antd-mobile.es.js +3417 -3362
- package/bundle/style.css +108 -50
- package/cjs/components/button/button.css +2 -1
- package/cjs/components/calendar/calendar.js +2 -2
- package/cjs/components/cascader/cascader.js +1 -1
- package/cjs/components/cascader-view/cascader-view.js +7 -3
- package/cjs/components/center-popup/center-popup.js +3 -1
- package/cjs/components/date-picker/date-picker.d.ts +2 -2
- package/cjs/components/date-picker/date-picker.js +3 -1
- package/cjs/components/date-picker/index.d.ts +1 -1
- package/cjs/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/cjs/components/date-picker-view/date-picker-view.js +2 -0
- package/cjs/components/dialog/dialog.css +2 -1
- package/cjs/components/dialog/dialog.js +2 -1
- package/cjs/components/dropdown/dropdown.css +2 -2
- package/cjs/components/empty/empty.css +1 -0
- package/cjs/components/floating-bubble/floating-bubble.css +2 -1
- package/cjs/components/floating-panel/floating-panel.css +4 -1
- package/cjs/components/form/form-item.css +2 -1
- package/cjs/components/form/index.css +2 -1
- package/cjs/components/grid/grid.css +2 -1
- package/cjs/components/image/image.d.ts +1 -0
- package/cjs/components/image/image.js +2 -1
- package/cjs/components/image/test/image.test.d.ts +1 -0
- package/cjs/components/image/test/image.test.js +34 -0
- package/cjs/components/image-viewer/image-viewer.css +4 -1
- package/cjs/components/index-bar/index-bar.css +3 -1
- package/cjs/components/input/input.css +6 -1
- package/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -0
- package/cjs/components/modal/modal.css +2 -1
- package/cjs/components/modal/modal.js +2 -1
- package/cjs/components/number-keyboard/number-keyboard.css +4 -3
- package/cjs/components/passcode-input/passcode-input.css +1 -1
- package/cjs/components/picker/index.d.ts +4 -0
- package/cjs/components/picker/picker.css +5 -0
- package/cjs/components/picker/picker.d.ts +4 -0
- package/cjs/components/picker/picker.js +7 -3
- package/cjs/components/picker-view/picker-view.css +17 -4
- package/cjs/components/picker-view/picker-view.d.ts +2 -0
- package/cjs/components/picker-view/picker-view.js +10 -3
- package/cjs/components/popover/popover.css +3 -1
- package/cjs/components/popup/popup-base-props.d.ts +1 -1
- package/cjs/components/popup/popup-base-props.js +1 -1
- package/cjs/components/result/result.css +1 -1
- package/cjs/components/side-bar/side-bar.css +2 -1
- package/cjs/components/slider/slider.css +7 -3
- package/cjs/components/swipe-action/swipe-action.css +1 -0
- package/cjs/components/swiper/swiper.css +1 -0
- package/cjs/components/tab-bar/tab-bar.css +1 -0
- package/cjs/components/tabs/tabs.css +1 -0
- package/cjs/components/text-area/text-area.css +6 -1
- package/cjs/components/text-area/text-area.js +0 -1
- package/cjs/global/global.css +2 -1
- package/cjs/utils/use-props-value.d.ts +1 -1
- package/cjs/utils/use-props-value.js +3 -1
- package/cjs/utils/use-tab-list-scroll.js +1 -1
- package/es/components/button/button.css +2 -1
- package/es/components/calendar/calendar.js +2 -2
- package/es/components/cascader/cascader.js +1 -1
- package/es/components/cascader-view/cascader-view.js +6 -3
- package/es/components/center-popup/center-popup.js +3 -1
- package/es/components/date-picker/date-picker.d.ts +2 -2
- package/es/components/date-picker/date-picker.js +3 -1
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/es/components/date-picker-view/date-picker-view.js +2 -0
- package/es/components/dialog/dialog.css +2 -1
- package/es/components/dialog/dialog.js +2 -1
- package/es/components/dropdown/dropdown.css +2 -2
- package/es/components/empty/empty.css +1 -0
- package/es/components/floating-bubble/floating-bubble.css +2 -1
- package/es/components/floating-panel/floating-panel.css +4 -1
- package/es/components/form/form-item.css +2 -1
- package/es/components/form/index.css +2 -1
- package/es/components/grid/grid.css +2 -1
- package/es/components/image/image.d.ts +1 -0
- package/es/components/image/image.js +2 -1
- package/es/components/image/test/image.test.d.ts +1 -0
- package/es/components/image/test/image.test.js +24 -0
- package/es/components/image-viewer/image-viewer.css +4 -1
- package/es/components/index-bar/index-bar.css +3 -1
- package/es/components/input/input.css +6 -1
- package/es/components/jumbo-tabs/jumbo-tabs.css +2 -0
- package/es/components/modal/modal.css +2 -1
- package/es/components/modal/modal.js +2 -1
- package/es/components/number-keyboard/number-keyboard.css +4 -3
- package/es/components/passcode-input/passcode-input.css +1 -1
- package/es/components/picker/index.d.ts +4 -0
- package/es/components/picker/picker.css +5 -0
- package/es/components/picker/picker.d.ts +4 -0
- package/es/components/picker/picker.js +7 -3
- package/es/components/picker-view/picker-view.css +17 -4
- package/es/components/picker-view/picker-view.d.ts +2 -0
- package/es/components/picker-view/picker-view.js +7 -3
- package/es/components/popover/popover.css +3 -1
- package/es/components/popup/popup-base-props.d.ts +1 -1
- package/es/components/popup/popup-base-props.js +1 -1
- package/es/components/result/result.css +1 -1
- package/es/components/side-bar/side-bar.css +2 -1
- package/es/components/slider/slider.css +7 -3
- package/es/components/swipe-action/swipe-action.css +1 -0
- package/es/components/swiper/swiper.css +1 -0
- package/es/components/tab-bar/tab-bar.css +1 -0
- package/es/components/tabs/tabs.css +1 -0
- package/es/components/text-area/text-area.css +6 -1
- package/es/components/text-area/text-area.js +0 -1
- package/es/global/global.css +2 -1
- package/es/utils/use-props-value.d.ts +1 -1
- package/es/utils/use-props-value.js +3 -1
- package/es/utils/use-tab-list-scroll.js +1 -1
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
package/2x/bundle/style.css
CHANGED
|
@@ -90,6 +90,7 @@ div.adm-px-tester {
|
|
|
90
90
|
position: fixed;
|
|
91
91
|
right: -100vw;
|
|
92
92
|
bottom: -100vh;
|
|
93
|
+
-webkit-user-select: none;
|
|
93
94
|
user-select: none;
|
|
94
95
|
pointer-events: none;
|
|
95
96
|
}
|
|
@@ -360,6 +361,7 @@ div.adm-px-tester {
|
|
|
360
361
|
border-radius: var(--border-radius);
|
|
361
362
|
cursor: pointer;
|
|
362
363
|
transition: opacity ease 0.15s;
|
|
364
|
+
-webkit-user-select: none;
|
|
363
365
|
user-select: none;
|
|
364
366
|
}
|
|
365
367
|
|
|
@@ -755,6 +757,12 @@ div.adm-px-tester {
|
|
|
755
757
|
padding: 16px 16px;
|
|
756
758
|
}
|
|
757
759
|
|
|
760
|
+
.adm-picker-header-button-disabled,
|
|
761
|
+
.adm-picker-header-button-disabled:active {
|
|
762
|
+
opacity: 0.4;
|
|
763
|
+
cursor: not-allowed;
|
|
764
|
+
}
|
|
765
|
+
|
|
758
766
|
.adm-picker-header-title {
|
|
759
767
|
padding: 8px 8px;
|
|
760
768
|
font-size: var(--title-font-size);
|
|
@@ -777,6 +785,33 @@ div.adm-px-tester {
|
|
|
777
785
|
border-top-right-radius: 16px;
|
|
778
786
|
}
|
|
779
787
|
|
|
788
|
+
.adm-spin-loading {
|
|
789
|
+
--color: var(--adm-color-weak);
|
|
790
|
+
--size: 64px;
|
|
791
|
+
width: var(--size);
|
|
792
|
+
height: var(--size);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.adm-spin-loading-svg {
|
|
796
|
+
width: 100%;
|
|
797
|
+
height: 100%;
|
|
798
|
+
animation: adm-spin-loading-rotate 0.8s infinite linear;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.adm-spin-loading-svg > .adm-spin-loading-fill {
|
|
802
|
+
stroke: var(--color);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
@keyframes adm-spin-loading-rotate {
|
|
806
|
+
from {
|
|
807
|
+
transform: rotate(0deg);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
to {
|
|
811
|
+
transform: rotate(360deg);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
780
815
|
.adm-picker-view {
|
|
781
816
|
--height: 480px;
|
|
782
817
|
--item-height: 68px;
|
|
@@ -786,12 +821,13 @@ div.adm-px-tester {
|
|
|
786
821
|
display: flex;
|
|
787
822
|
position: relative;
|
|
788
823
|
overflow: hidden;
|
|
789
|
-
background: var(--adm-color-
|
|
824
|
+
background: var(--adm-color-background);
|
|
790
825
|
}
|
|
791
826
|
|
|
792
827
|
.adm-picker-view-column {
|
|
793
828
|
height: 100%;
|
|
794
829
|
flex: 1;
|
|
830
|
+
-webkit-user-select: none;
|
|
795
831
|
user-select: none;
|
|
796
832
|
touch-action: none;
|
|
797
833
|
position: relative;
|
|
@@ -800,6 +836,7 @@ div.adm-px-tester {
|
|
|
800
836
|
|
|
801
837
|
.adm-picker-view-column-wheel {
|
|
802
838
|
width: 100%;
|
|
839
|
+
cursor: -webkit-grab;
|
|
803
840
|
cursor: grab;
|
|
804
841
|
position: absolute;
|
|
805
842
|
top: calc(50% - var(--item-height) / 2);
|
|
@@ -893,11 +930,23 @@ div.adm-px-tester {
|
|
|
893
930
|
}
|
|
894
931
|
|
|
895
932
|
.adm-picker-view-mask-top {
|
|
896
|
-
background:
|
|
933
|
+
background: var(--adm-color-background);
|
|
934
|
+
-webkit-mask: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 50%, #000000 100%);
|
|
935
|
+
mask: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 50%, #000000 100%);
|
|
897
936
|
}
|
|
898
937
|
|
|
899
938
|
.adm-picker-view-mask-bottom {
|
|
900
|
-
background:
|
|
939
|
+
background: var(--adm-color-background);
|
|
940
|
+
-webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 50%, #000000 100%);
|
|
941
|
+
mask: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 50%, #000000 100%);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.adm-picker-view-loading-content {
|
|
945
|
+
width: 100%;
|
|
946
|
+
height: 100%;
|
|
947
|
+
display: flex;
|
|
948
|
+
justify-content: center;
|
|
949
|
+
align-items: center;
|
|
901
950
|
}
|
|
902
951
|
|
|
903
952
|
.adm-cascader-view {
|
|
@@ -999,6 +1048,7 @@ div.adm-px-tester {
|
|
|
999
1048
|
.adm-tabs-tab {
|
|
1000
1049
|
white-space: nowrap;
|
|
1001
1050
|
padding: 16px 0 20px;
|
|
1051
|
+
width: -webkit-min-content;
|
|
1002
1052
|
width: min-content;
|
|
1003
1053
|
margin: 0 auto;
|
|
1004
1054
|
font-size: var(--title-font-size);
|
|
@@ -1458,6 +1508,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1458
1508
|
}
|
|
1459
1509
|
|
|
1460
1510
|
.adm-dialog-footer {
|
|
1511
|
+
-webkit-user-select: none;
|
|
1461
1512
|
user-select: none;
|
|
1462
1513
|
}
|
|
1463
1514
|
|
|
@@ -1569,7 +1620,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1569
1620
|
}
|
|
1570
1621
|
|
|
1571
1622
|
.adm-dropdown {
|
|
1572
|
-
background-color:
|
|
1623
|
+
background-color: var(--adm-color-background);
|
|
1573
1624
|
}
|
|
1574
1625
|
|
|
1575
1626
|
.adm-dropdown .adm-dropdown-nav {
|
|
@@ -1631,7 +1682,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1631
1682
|
|
|
1632
1683
|
.adm-dropdown-item-content {
|
|
1633
1684
|
width: 100%;
|
|
1634
|
-
background:
|
|
1685
|
+
background: var(--adm-color-background);
|
|
1635
1686
|
}
|
|
1636
1687
|
|
|
1637
1688
|
.adm-dropdown-item-content-hidden {
|
|
@@ -1675,6 +1726,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1675
1726
|
|
|
1676
1727
|
.adm-empty-image-container .adm-empty-image {
|
|
1677
1728
|
width: 128px;
|
|
1729
|
+
height: intrinsic;
|
|
1678
1730
|
}
|
|
1679
1731
|
|
|
1680
1732
|
.adm-empty-description {
|
|
@@ -1786,6 +1838,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1786
1838
|
overflow: hidden;
|
|
1787
1839
|
cursor: pointer;
|
|
1788
1840
|
transition: opacity ease 0.15s;
|
|
1841
|
+
-webkit-user-select: none;
|
|
1789
1842
|
user-select: none;
|
|
1790
1843
|
touch-action: none;
|
|
1791
1844
|
background: var(--background);
|
|
@@ -1837,8 +1890,11 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1837
1890
|
display: flex;
|
|
1838
1891
|
justify-content: center;
|
|
1839
1892
|
align-items: center;
|
|
1893
|
+
cursor: -webkit-grab;
|
|
1840
1894
|
cursor: grab;
|
|
1895
|
+
-webkit-user-select: none;
|
|
1841
1896
|
user-select: none;
|
|
1897
|
+
background-color: var(--adm-color-background);
|
|
1842
1898
|
}
|
|
1843
1899
|
|
|
1844
1900
|
.adm-floating-panel .adm-floating-panel-header .adm-floating-panel-bar {
|
|
@@ -1898,6 +1954,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1898
1954
|
top: 0;
|
|
1899
1955
|
font-family: SimSun, sans-serif;
|
|
1900
1956
|
color: var(--adm-color-danger);
|
|
1957
|
+
-webkit-user-select: none;
|
|
1901
1958
|
user-select: none;
|
|
1902
1959
|
}
|
|
1903
1960
|
|
|
@@ -1977,6 +2034,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
1977
2034
|
white-space: normal;
|
|
1978
2035
|
text-align: left;
|
|
1979
2036
|
cursor: auto;
|
|
2037
|
+
-webkit-user-select: text;
|
|
1980
2038
|
user-select: text;
|
|
1981
2039
|
animation: none;
|
|
1982
2040
|
}
|
|
@@ -2007,6 +2065,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2007
2065
|
border-radius: 16px;
|
|
2008
2066
|
box-shadow: 0 0 60px 0 rgba(51, 51, 51, 0.2);
|
|
2009
2067
|
font-size: var(--adm-font-size-7);
|
|
2068
|
+
width: -webkit-max-content;
|
|
2010
2069
|
width: max-content;
|
|
2011
2070
|
min-width: 64px;
|
|
2012
2071
|
max-width: calc(100vw - 48px);
|
|
@@ -2110,6 +2169,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2110
2169
|
--gap-vertical: var(--gap);
|
|
2111
2170
|
display: grid;
|
|
2112
2171
|
grid-gap: 20px;
|
|
2172
|
+
-webkit-column-gap: var(--gap-horizontal);
|
|
2113
2173
|
column-gap: var(--gap-horizontal);
|
|
2114
2174
|
row-gap: var(--gap-vertical);
|
|
2115
2175
|
grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
|
|
@@ -2124,6 +2184,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2124
2184
|
width: 100vw;
|
|
2125
2185
|
height: 100vh;
|
|
2126
2186
|
touch-action: none;
|
|
2187
|
+
-webkit-user-select: none;
|
|
2127
2188
|
user-select: none;
|
|
2128
2189
|
}
|
|
2129
2190
|
|
|
@@ -2138,6 +2199,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2138
2199
|
height: 100%;
|
|
2139
2200
|
position: relative;
|
|
2140
2201
|
z-index: 1;
|
|
2202
|
+
cursor: -webkit-grab;
|
|
2141
2203
|
cursor: grab;
|
|
2142
2204
|
touch-action: none;
|
|
2143
2205
|
}
|
|
@@ -2165,6 +2227,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2165
2227
|
top: 0;
|
|
2166
2228
|
width: 100%;
|
|
2167
2229
|
height: 100%;
|
|
2230
|
+
cursor: -webkit-grab;
|
|
2168
2231
|
cursor: grab;
|
|
2169
2232
|
touch-action: none;
|
|
2170
2233
|
}
|
|
@@ -2193,33 +2256,6 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2193
2256
|
font-size: var(--adm-font-size-6);
|
|
2194
2257
|
}
|
|
2195
2258
|
|
|
2196
|
-
.adm-spin-loading {
|
|
2197
|
-
--color: var(--adm-color-weak);
|
|
2198
|
-
--size: 64px;
|
|
2199
|
-
width: var(--size);
|
|
2200
|
-
height: var(--size);
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
.adm-spin-loading-svg {
|
|
2204
|
-
width: 100%;
|
|
2205
|
-
height: 100%;
|
|
2206
|
-
animation: adm-spin-loading-rotate 0.8s infinite linear;
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
.adm-spin-loading-svg > .adm-spin-loading-fill {
|
|
2210
|
-
stroke: var(--color);
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
@keyframes adm-spin-loading-rotate {
|
|
2214
|
-
from {
|
|
2215
|
-
transform: rotate(0deg);
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
to {
|
|
2219
|
-
transform: rotate(360deg);
|
|
2220
|
-
}
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
2259
|
.adm-space-item {
|
|
2224
2260
|
flex: none;
|
|
2225
2261
|
}
|
|
@@ -2449,6 +2485,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2449
2485
|
overflow: visible;
|
|
2450
2486
|
color: var(--adm-color-weak);
|
|
2451
2487
|
font-size: var(--adm-font-size-4);
|
|
2488
|
+
-webkit-user-select: none;
|
|
2452
2489
|
user-select: none;
|
|
2453
2490
|
touch-action: none;
|
|
2454
2491
|
}
|
|
@@ -2500,6 +2537,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2500
2537
|
}
|
|
2501
2538
|
|
|
2502
2539
|
.adm-index-bar-sticky .adm-index-bar-anchor-title {
|
|
2540
|
+
position: -webkit-sticky;
|
|
2503
2541
|
position: sticky;
|
|
2504
2542
|
z-index: 900;
|
|
2505
2543
|
top: var(--sticky-offset-top);
|
|
@@ -2556,11 +2594,17 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2556
2594
|
background: transparent;
|
|
2557
2595
|
border: 0;
|
|
2558
2596
|
outline: none;
|
|
2597
|
+
-webkit-appearance: none;
|
|
2559
2598
|
appearance: none;
|
|
2560
2599
|
min-height: 1.5em;
|
|
2561
2600
|
text-align: var(--text-align);
|
|
2562
2601
|
}
|
|
2563
2602
|
|
|
2603
|
+
.adm-input-element::-webkit-input-placeholder {
|
|
2604
|
+
color: var(--placeholder-color);
|
|
2605
|
+
font-family: inherit;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2564
2608
|
.adm-input-element::placeholder {
|
|
2565
2609
|
color: var(--placeholder-color);
|
|
2566
2610
|
font-family: inherit;
|
|
@@ -2666,6 +2710,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2666
2710
|
flex-direction: column;
|
|
2667
2711
|
align-items: center;
|
|
2668
2712
|
position: relative;
|
|
2713
|
+
width: -webkit-min-content;
|
|
2669
2714
|
width: min-content;
|
|
2670
2715
|
margin: 0 auto;
|
|
2671
2716
|
padding: 24px 0;
|
|
@@ -2680,6 +2725,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2680
2725
|
}
|
|
2681
2726
|
|
|
2682
2727
|
.adm-jumbo-tabs-tab-description {
|
|
2728
|
+
width: -webkit-min-content;
|
|
2683
2729
|
width: min-content;
|
|
2684
2730
|
padding: 0 16px;
|
|
2685
2731
|
border-radius: 20px;
|
|
@@ -2767,6 +2813,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2767
2813
|
}
|
|
2768
2814
|
|
|
2769
2815
|
.adm-modal-footer {
|
|
2816
|
+
-webkit-user-select: none;
|
|
2770
2817
|
user-select: none;
|
|
2771
2818
|
padding: 16px 24px 24px;
|
|
2772
2819
|
}
|
|
@@ -2940,6 +2987,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2940
2987
|
|
|
2941
2988
|
.adm-number-keyboard-popup.adm-popup {
|
|
2942
2989
|
width: 100%;
|
|
2990
|
+
-webkit-user-select: none;
|
|
2943
2991
|
user-select: none;
|
|
2944
2992
|
z-index: 1050;
|
|
2945
2993
|
}
|
|
@@ -2961,7 +3009,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
2961
3009
|
align-items: center;
|
|
2962
3010
|
padding: 0 24px;
|
|
2963
3011
|
color: var(--adm-color-weak);
|
|
2964
|
-
background-color: var(--adm-color-
|
|
3012
|
+
background-color: var(--adm-color-background);
|
|
2965
3013
|
}
|
|
2966
3014
|
|
|
2967
3015
|
.adm-number-keyboard-header-close-button {
|
|
@@ -3041,7 +3089,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
3041
3089
|
|
|
3042
3090
|
.adm-number-keyboard-key.extra-key,
|
|
3043
3091
|
.adm-number-keyboard-key.number-key {
|
|
3044
|
-
background-color: var(--adm-color-
|
|
3092
|
+
background-color: var(--adm-color-background);
|
|
3045
3093
|
}
|
|
3046
3094
|
|
|
3047
3095
|
.adm-number-keyboard-key.extra-key:active::before,
|
|
@@ -3142,7 +3190,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
3142
3190
|
font-size: var(--adm-font-size-10);
|
|
3143
3191
|
width: var(--cell-size);
|
|
3144
3192
|
height: var(--cell-size);
|
|
3145
|
-
background: var(--adm-color-
|
|
3193
|
+
background: var(--adm-color-background);
|
|
3146
3194
|
}
|
|
3147
3195
|
|
|
3148
3196
|
.adm-passcode-input:not(.seperated) {
|
|
@@ -3498,7 +3546,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
3498
3546
|
|
|
3499
3547
|
.adm-result {
|
|
3500
3548
|
padding: 64px 24px;
|
|
3501
|
-
background-color: var(--adm-color-
|
|
3549
|
+
background-color: var(--adm-color-background);
|
|
3502
3550
|
}
|
|
3503
3551
|
|
|
3504
3552
|
.adm-result-icon {
|
|
@@ -3747,6 +3795,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
3747
3795
|
position: absolute;
|
|
3748
3796
|
z-index: 100;
|
|
3749
3797
|
right: 0;
|
|
3798
|
+
-webkit-user-select: none;
|
|
3750
3799
|
user-select: none;
|
|
3751
3800
|
pointer-events: none;
|
|
3752
3801
|
}
|
|
@@ -3776,6 +3825,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
3776
3825
|
--fill-color: var(--adm-color-primary);
|
|
3777
3826
|
padding: 10px 28px;
|
|
3778
3827
|
list-style: none;
|
|
3828
|
+
-webkit-user-select: none;
|
|
3779
3829
|
user-select: none;
|
|
3780
3830
|
}
|
|
3781
3831
|
|
|
@@ -3840,10 +3890,12 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
3840
3890
|
width: 24px;
|
|
3841
3891
|
height: 24px;
|
|
3842
3892
|
margin: 16px;
|
|
3893
|
+
-webkit-user-select: none;
|
|
3843
3894
|
user-select: none;
|
|
3844
3895
|
}
|
|
3845
3896
|
|
|
3846
3897
|
.adm-slider-thumb-container {
|
|
3898
|
+
cursor: -webkit-grab;
|
|
3847
3899
|
cursor: grab;
|
|
3848
3900
|
touch-action: none;
|
|
3849
3901
|
position: absolute;
|
|
@@ -3871,6 +3923,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
3871
3923
|
color: var(--adm-color-text);
|
|
3872
3924
|
text-align: center;
|
|
3873
3925
|
word-break: keep-all;
|
|
3926
|
+
-webkit-user-select: none;
|
|
3874
3927
|
user-select: none;
|
|
3875
3928
|
transform: translateX(-50%);
|
|
3876
3929
|
}
|
|
@@ -4143,6 +4196,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
4143
4196
|
.adm-swipe-action {
|
|
4144
4197
|
--background: var(--adm-color-background);
|
|
4145
4198
|
background: var(--background);
|
|
4199
|
+
cursor: -webkit-grab;
|
|
4146
4200
|
cursor: grab;
|
|
4147
4201
|
overflow: hidden;
|
|
4148
4202
|
touch-action: pan-y;
|
|
@@ -4206,6 +4260,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
4206
4260
|
}
|
|
4207
4261
|
|
|
4208
4262
|
.adm-swiper-track-allow-touch-move {
|
|
4263
|
+
cursor: -webkit-grab;
|
|
4209
4264
|
cursor: grab;
|
|
4210
4265
|
}
|
|
4211
4266
|
|
|
@@ -4397,6 +4452,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
4397
4452
|
color: var(--adm-color-weak);
|
|
4398
4453
|
white-space: nowrap;
|
|
4399
4454
|
padding: 8px 16px;
|
|
4455
|
+
width: -webkit-min-content;
|
|
4400
4456
|
width: min-content;
|
|
4401
4457
|
position: relative;
|
|
4402
4458
|
cursor: pointer;
|
|
@@ -4482,11 +4538,17 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
|
4482
4538
|
background: transparent;
|
|
4483
4539
|
border: 0;
|
|
4484
4540
|
outline: none;
|
|
4541
|
+
-webkit-appearance: none;
|
|
4485
4542
|
appearance: none;
|
|
4486
4543
|
min-height: 1.5em;
|
|
4487
4544
|
text-align: var(--text-align);
|
|
4488
4545
|
}
|
|
4489
4546
|
|
|
4547
|
+
.adm-text-area-element::-webkit-input-placeholder {
|
|
4548
|
+
color: var(--placeholder-color);
|
|
4549
|
+
font-family: inherit;
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4490
4552
|
.adm-text-area-element::placeholder {
|
|
4491
4553
|
color: var(--placeholder-color);
|
|
4492
4554
|
font-family: inherit;
|
|
@@ -225,8 +225,8 @@ const Calendar = (0, _react.forwardRef)((p, ref) => {
|
|
|
225
225
|
|
|
226
226
|
const mark = _react.default.createElement("div", {
|
|
227
227
|
className: `${classPrefix}-mark`
|
|
228
|
-
}, markItems.map(item => _react.default.createElement("div", {
|
|
229
|
-
key:
|
|
228
|
+
}, markItems.map((item, index) => _react.default.createElement("div", {
|
|
229
|
+
key: index,
|
|
230
230
|
className: `${classPrefix}-mark-cell`
|
|
231
231
|
}, item)));
|
|
232
232
|
|
|
@@ -103,7 +103,7 @@ const Cascader = (0, _react.forwardRef)((p, ref) => {
|
|
|
103
103
|
}, props.title), _react.default.createElement("a", {
|
|
104
104
|
className: `${classPrefix}-header-button`,
|
|
105
105
|
onClick: () => {
|
|
106
|
-
setValue(innerValue);
|
|
106
|
+
setValue(innerValue, true);
|
|
107
107
|
setVisible(false);
|
|
108
108
|
}
|
|
109
109
|
}, props.confirmText)), _react.default.createElement("div", {
|
|
@@ -27,6 +27,8 @@ var _optionSkeleton = require("./option-skeleton");
|
|
|
27
27
|
|
|
28
28
|
var _skeleton = _interopRequireDefault(require("../skeleton"));
|
|
29
29
|
|
|
30
|
+
var _ahooks = require("ahooks");
|
|
31
|
+
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
33
|
|
|
32
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -53,6 +55,11 @@ const CascaderView = p => {
|
|
|
53
55
|
}
|
|
54
56
|
}));
|
|
55
57
|
const [tabActiveIndex, setTabActiveIndex] = (0, _react.useState)(0);
|
|
58
|
+
(0, _ahooks.useUpdateEffect)(() => {
|
|
59
|
+
var _a;
|
|
60
|
+
|
|
61
|
+
(_a = props.onTabsChange) === null || _a === void 0 ? void 0 : _a.call(props, tabActiveIndex);
|
|
62
|
+
}, [tabActiveIndex]);
|
|
56
63
|
const generateValueExtend = (0, _useCascaderValueExtend.useCascaderValueExtend)(props.options);
|
|
57
64
|
const levels = (0, _react.useMemo)(() => {
|
|
58
65
|
const ret = [];
|
|
@@ -109,11 +116,8 @@ const CascaderView = p => {
|
|
|
109
116
|
}, _react.default.createElement(_tabs.default, {
|
|
110
117
|
activeKey: tabActiveIndex.toString(),
|
|
111
118
|
onChange: key => {
|
|
112
|
-
var _a;
|
|
113
|
-
|
|
114
119
|
const activeIndex = parseInt(key);
|
|
115
120
|
setTabActiveIndex(activeIndex);
|
|
116
|
-
(_a = props.onTabsChange) === null || _a === void 0 ? void 0 : _a.call(props, activeIndex);
|
|
117
121
|
},
|
|
118
122
|
stretch: false,
|
|
119
123
|
className: `${classPrefix}-tabs`
|
|
@@ -39,7 +39,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
39
39
|
|
|
40
40
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
41
|
|
|
42
|
-
const defaultProps = _popupBaseProps.defaultPopupBaseProps
|
|
42
|
+
const defaultProps = Object.assign(Object.assign({}, _popupBaseProps.defaultPopupBaseProps), {
|
|
43
|
+
getContainer: null
|
|
44
|
+
});
|
|
43
45
|
|
|
44
46
|
const CenterPopup = p => {
|
|
45
47
|
const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
|
|
@@ -3,7 +3,7 @@ import type { PickerProps, PickerRef, PickerActions } from '../picker';
|
|
|
3
3
|
import { NativeProps } from '../../utils/native-props';
|
|
4
4
|
import type { Precision, DatePickerFilter } from './date-picker-utils';
|
|
5
5
|
export declare type DatePickerRef = PickerRef;
|
|
6
|
-
export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style' | 'mouseWheel' | 'forceRender' | 'destroyOnClose'> & {
|
|
6
|
+
export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'loading' | 'loadingContent' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style' | 'mouseWheel' | 'forceRender' | 'destroyOnClose'> & {
|
|
7
7
|
value?: Date | null;
|
|
8
8
|
defaultValue?: Date | null;
|
|
9
9
|
onSelect?: (value: Date) => void;
|
|
@@ -15,7 +15,7 @@ export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' |
|
|
|
15
15
|
renderLabel?: (type: Precision, data: number) => ReactNode;
|
|
16
16
|
filter?: DatePickerFilter;
|
|
17
17
|
} & NativeProps;
|
|
18
|
-
export declare const DatePicker: React.ForwardRefExoticComponent<Pick<PickerProps, "style" | "title" | "onClick" | "visible" | "destroyOnClose" | "forceRender" | "getContainer" | "afterShow" | "afterClose" | "stopPropagation" | "onCancel" | "onClose" | "closeOnMaskClick" | "cancelText" | "mouseWheel" | "confirmText"> & {
|
|
18
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<Pick<PickerProps, "style" | "title" | "onClick" | "visible" | "destroyOnClose" | "forceRender" | "getContainer" | "afterShow" | "afterClose" | "stopPropagation" | "onCancel" | "onClose" | "loading" | "closeOnMaskClick" | "cancelText" | "mouseWheel" | "loadingContent" | "confirmText"> & {
|
|
19
19
|
value?: Date | null | undefined;
|
|
20
20
|
defaultValue?: Date | null | undefined;
|
|
21
21
|
onSelect?: ((value: Date) => void) | undefined;
|
|
@@ -54,7 +54,7 @@ const DatePicker = (0, _react.forwardRef)((p, ref) => {
|
|
|
54
54
|
return (0, _datePickerUtils.convertDateToStringArray)(date, props.precision);
|
|
55
55
|
}, [value, props.precision, props.min, props.max]);
|
|
56
56
|
const onConfirm = (0, _react.useCallback)(val => {
|
|
57
|
-
setValue((0, _datePickerUtils.convertStringArrayToDate)(val, props.precision));
|
|
57
|
+
setValue((0, _datePickerUtils.convertStringArrayToDate)(val, props.precision), true);
|
|
58
58
|
}, [setValue, props.precision]);
|
|
59
59
|
const onSelect = (0, _ahooks.useMemoizedFn)(val => {
|
|
60
60
|
var _a;
|
|
@@ -76,6 +76,8 @@ const DatePicker = (0, _react.forwardRef)((p, ref) => {
|
|
|
76
76
|
onConfirm: onConfirm,
|
|
77
77
|
onSelect: onSelect,
|
|
78
78
|
getContainer: props.getContainer,
|
|
79
|
+
loading: props.loading,
|
|
80
|
+
loadingContent: props.loadingContent,
|
|
79
81
|
afterShow: props.afterShow,
|
|
80
82
|
afterClose: props.afterClose,
|
|
81
83
|
onClick: props.onClick,
|
|
@@ -3,7 +3,7 @@ import './date-picker.less';
|
|
|
3
3
|
import { prompt } from './prompt';
|
|
4
4
|
export type { DatePickerProps, DatePickerRef } from './date-picker';
|
|
5
5
|
export type { DatePickerFilter } from './date-picker-utils';
|
|
6
|
-
declare const _default: import("react").ForwardRefExoticComponent<Pick<import("../picker").PickerProps, "style" | "title" | "onClick" | "visible" | "destroyOnClose" | "forceRender" | "getContainer" | "afterShow" | "afterClose" | "stopPropagation" | "onCancel" | "onClose" | "closeOnMaskClick" | "cancelText" | "mouseWheel" | "confirmText"> & {
|
|
6
|
+
declare const _default: import("react").ForwardRefExoticComponent<Pick<import("../picker").PickerProps, "style" | "title" | "onClick" | "visible" | "destroyOnClose" | "forceRender" | "getContainer" | "afterShow" | "afterClose" | "stopPropagation" | "onCancel" | "onClose" | "loading" | "closeOnMaskClick" | "cancelText" | "mouseWheel" | "loadingContent" | "confirmText"> & {
|
|
7
7
|
value?: Date | null | undefined;
|
|
8
8
|
defaultValue?: Date | null | undefined;
|
|
9
9
|
onSelect?: ((value: Date) => void) | undefined;
|
|
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import type { PickerViewProps } from '../picker-view';
|
|
3
3
|
import { NativeProps } from '../../utils/native-props';
|
|
4
4
|
import type { Precision, DatePickerFilter } from '../date-picker/date-picker-utils';
|
|
5
|
-
export declare type DatePickerViewProps = Pick<PickerViewProps, 'style' | 'mouseWheel'> & {
|
|
5
|
+
export declare type DatePickerViewProps = Pick<PickerViewProps, 'style' | 'mouseWheel' | 'loading' | 'loadingContent'> & {
|
|
6
6
|
value?: Date;
|
|
7
7
|
defaultValue?: Date;
|
|
8
8
|
onChange?: (value: Date) => void;
|
|
@@ -52,6 +52,8 @@ const DatePickerView = p => {
|
|
|
52
52
|
}, [props.onChange, props.precision]);
|
|
53
53
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement(_pickerView.default, {
|
|
54
54
|
columns: selected => (0, _datePickerUtils.generateDatePickerColumns)(selected, props.min, props.max, props.precision, props.renderLabel, props.filter),
|
|
55
|
+
loading: props.loading,
|
|
56
|
+
loadingContent: props.loadingContent,
|
|
55
57
|
value: pickerValue,
|
|
56
58
|
mouseWheel: props.mouseWheel,
|
|
57
59
|
onChange: onChange
|
|
@@ -26,7 +26,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
26
26
|
const defaultProps = {
|
|
27
27
|
actions: [],
|
|
28
28
|
closeOnAction: false,
|
|
29
|
-
closeOnMaskClick: false
|
|
29
|
+
closeOnMaskClick: false,
|
|
30
|
+
getContainer: null
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
const Dialog = p => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.adm-dropdown {
|
|
2
|
-
background-color:
|
|
2
|
+
background-color: var(--adm-color-background);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.adm-dropdown .adm-dropdown-nav {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
.adm-dropdown-item-content {
|
|
63
63
|
width: 100%;
|
|
64
|
-
background:
|
|
64
|
+
background: var(--adm-color-background);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.adm-dropdown-item-content-hidden {
|
|
@@ -41,8 +41,11 @@
|
|
|
41
41
|
display: flex;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
align-items: center;
|
|
44
|
+
cursor: -webkit-grab;
|
|
44
45
|
cursor: grab;
|
|
46
|
+
-webkit-user-select: none;
|
|
45
47
|
user-select: none;
|
|
48
|
+
background-color: var(--adm-color-background);
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.adm-floating-panel .adm-floating-panel-header .adm-floating-panel-bar {
|
|
@@ -13,5 +13,6 @@ export declare type ImageProps = {
|
|
|
13
13
|
onClick?: (event: React.MouseEvent<HTMLImageElement, Event>) => void;
|
|
14
14
|
onError?: (event: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
15
15
|
onLoad?: (event: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
16
|
+
onContainerClick?: (event: React.MouseEvent<HTMLDivElement, Event>) => void;
|
|
16
17
|
} & NativeProps<'--width' | '--height'> & Pick<React.ImgHTMLAttributes<HTMLImageElement>, 'crossOrigin' | 'decoding' | 'loading' | 'referrerPolicy' | 'sizes' | 'srcSet' | 'useMap'>;
|
|
17
18
|
export declare const Image: React.FC<ImageProps>;
|