@nutui/nutui-react 2.0.0-alpha.11 → 2.0.0-alpha.13
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/CHANGELOG.md +28 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +28 -37
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers.js +22 -26
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/CountDown/style/style.css +1 -1
- package/dist/esm/CountDown.js +20 -15
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +33 -87
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +65 -133
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +86 -102
- package/dist/esm/TrendArrow/style/style.css +1 -1
- package/dist/esm/TrendArrow.js +30 -35
- package/dist/esm/Video.js +8 -12
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/VirtualList.js +29 -25
- package/dist/esm/WaterMark.js +8 -11
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +11 -15
- package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +11 -15
- package/dist/esm/types/src/packages/actionsheet/index.d.ts +1 -0
- package/dist/esm/types/src/packages/actionsheet/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/animatingnumbers/countup.d.ts +7 -8
- package/dist/esm/types/src/packages/animatingnumbers/countup.taro.d.ts +7 -8
- package/dist/esm/types/src/packages/animatingnumbers/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/animatingnumbers/demo.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/animatingnumbers/index.d.ts +1 -0
- package/dist/esm/types/src/packages/animatingnumbers/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/avatargroup/avatargroup.taro.d.ts +13 -0
- package/dist/esm/types/src/packages/avatargroup/index.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/index.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -0
- package/dist/esm/types/src/packages/countdown/countdown.d.ts +5 -4
- package/dist/esm/types/src/packages/countdown/countdown.taro.d.ts +5 -4
- package/dist/esm/types/src/packages/countdown/index.d.ts +1 -0
- package/dist/esm/types/src/packages/countdown/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +4 -31
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +4 -31
- package/dist/esm/types/src/packages/shortpassword/index.d.ts +1 -0
- package/dist/esm/types/src/packages/shortpassword/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +17 -20
- package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +17 -20
- package/dist/esm/types/src/packages/toast/Notification.d.ts +9 -13
- package/dist/esm/types/src/packages/toast/index.d.ts +1 -0
- package/dist/esm/types/src/packages/toast/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/toast/toast.d.ts +19 -26
- package/dist/esm/types/src/packages/toast/toast.taro.d.ts +9 -11
- package/dist/esm/types/src/packages/trendarrow/trendarrow.d.ts +8 -10
- package/dist/esm/types/src/packages/trendarrow/trendarrow.taro.d.ts +8 -10
- package/dist/esm/types/src/packages/video/index.d.ts +1 -0
- package/dist/esm/types/src/packages/video/index.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/video/video.d.ts +5 -9
- package/dist/esm/types/src/packages/video/video.taro.d.ts +6 -9
- package/dist/esm/types/src/packages/virtuallist/index.d.ts +1 -0
- package/dist/esm/types/src/packages/virtuallist/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +0 -18
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +3 -3
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +15 -4
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +13 -14
- package/dist/esm/types/src/packages/watermark/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/watermark/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/watermark/index.d.ts +1 -0
- package/dist/esm/types/src/packages/watermark/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/watermark/watermark.d.ts +3 -4
- package/dist/esm/types/src/packages/watermark/watermark.taro.d.ts +3 -4
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +10 -2
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +525 -590
- package/dist/nutui.react.umd.js +525 -590
- package/dist/packages/actionsheet/actionsheet.scss +26 -73
- package/dist/packages/animatingnumbers/countup.scss +0 -21
- package/dist/packages/countdown/countdown.scss +2 -0
- package/dist/packages/ellipsis/ellipsis.scss +4 -0
- package/dist/packages/popup/popup.scss +98 -47
- package/dist/packages/searchbar/searchbar.scss +13 -71
- package/dist/packages/shortpassword/shortpassword.scss +1 -88
- package/dist/packages/toast/toast.scss +20 -7
- package/dist/packages/trendarrow/trendarrow.scss +4 -3
- package/dist/packages/virtuallist/virtuallist.scss +0 -12
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +58 -68
- package/dist/styles/variables.scss +32 -61
- package/dist/types/packages/actionsheet/actionsheet.d.ts +44 -16
- package/dist/types/packages/actionsheet/index.d.ts +1 -0
- package/dist/types/packages/animate/animate.d.ts +20 -4
- package/dist/types/packages/animatingnumbers/countup.d.ts +7 -8
- package/dist/types/packages/animatingnumbers/index.d.ts +1 -0
- package/dist/types/packages/audio/audio.d.ts +60 -12
- package/dist/types/packages/avatar/avatar.d.ts +50 -10
- package/dist/types/packages/avatargroup/avatargroup.d.ts +40 -8
- package/dist/types/packages/backtop/backtop.d.ts +25 -5
- package/dist/types/packages/badge/badge.d.ts +30 -6
- package/dist/types/packages/button/button.d.ts +50 -10
- package/dist/types/packages/cascader/cascader.d.ts +85 -17
- package/dist/types/packages/cell/cell.d.ts +30 -6
- package/dist/types/packages/cellgroup/cellgroup.d.ts +15 -3
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +40 -8
- package/dist/types/packages/circleprogress/circleprogress.d.ts +35 -7
- package/dist/types/packages/col/col.d.ts +15 -3
- package/dist/types/packages/collapse/collapse.d.ts +25 -5
- package/dist/types/packages/collapseitem/collapseitem.d.ts +20 -4
- package/dist/types/packages/configprovider/configprovider.d.ts +11 -2
- package/dist/types/packages/configprovider/index.d.ts +1 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -0
- package/dist/types/packages/countdown/countdown.d.ts +68 -15
- package/dist/types/packages/countdown/index.d.ts +1 -0
- package/dist/types/packages/divider/divider.d.ts +10 -2
- package/dist/types/packages/drag/drag.d.ts +15 -3
- package/dist/types/packages/elevator/elevator.d.ts +45 -9
- package/dist/types/packages/ellipsis/ellipsis.d.ts +45 -9
- package/dist/types/packages/empty/empty.d.ts +20 -4
- package/dist/types/packages/fixednav/fixednav.d.ts +50 -10
- package/dist/types/packages/grid/grid.d.ts +35 -7
- package/dist/types/packages/griditem/griditem.d.ts +5 -1
- package/dist/types/packages/image/image.d.ts +65 -13
- package/dist/types/packages/imagepreview/imagepreview.d.ts +50 -10
- package/dist/types/packages/indicator/indicator.d.ts +15 -3
- package/dist/types/packages/input/input.d.ts +100 -20
- package/dist/types/packages/inputnumber/inputnumber.d.ts +85 -17
- package/dist/types/packages/menu/menu.d.ts +25 -5
- package/dist/types/packages/menuitem/menuitem.d.ts +35 -7
- package/dist/types/packages/noticebar/noticebar.d.ts +60 -12
- package/dist/types/packages/notify/notify.d.ts +25 -5
- package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +50 -10
- package/dist/types/packages/overlay/overlay.d.ts +40 -8
- package/dist/types/packages/pagination/pagination.d.ts +55 -11
- package/dist/types/packages/picker/picker.d.ts +55 -11
- package/dist/types/packages/popup/popup.d.ts +75 -15
- package/dist/types/packages/price/price.d.ts +35 -7
- package/dist/types/packages/progress/progress.d.ts +40 -8
- package/dist/types/packages/pulltorefresh/pulltorefresh.d.ts +50 -10
- package/dist/types/packages/radio/radio.d.ts +45 -9
- package/dist/types/packages/radiogroup/radiogroup.d.ts +30 -6
- package/dist/types/packages/range/range.d.ts +80 -16
- package/dist/types/packages/rate/rate.d.ts +50 -10
- package/dist/types/packages/searchbar/index.d.ts +1 -0
- package/dist/types/packages/searchbar/searchbar.d.ts +76 -45
- package/dist/types/packages/shortpassword/index.d.ts +1 -0
- package/dist/types/packages/shortpassword/shortpassword.d.ts +89 -24
- package/dist/types/packages/skeleton/skeleton.d.ts +35 -7
- package/dist/types/packages/step/step.d.ts +20 -4
- package/dist/types/packages/steps/steps.d.ts +15 -3
- package/dist/types/packages/sticky/sticky.d.ts +25 -5
- package/dist/types/packages/swipe/swipe.d.ts +47 -11
- package/dist/types/packages/swiper/swiper.d.ts +65 -13
- package/dist/types/packages/switch/switch.d.ts +30 -6
- package/dist/types/packages/tabbar/tabbar.d.ts +35 -7
- package/dist/types/packages/tabbaritem/tabbaritem.d.ts +10 -2
- package/dist/types/packages/tabpane/tabpane.d.ts +15 -3
- package/dist/types/packages/tabs/tabs.d.ts +60 -12
- package/dist/types/packages/textarea/textarea.d.ts +60 -12
- package/dist/types/packages/toast/Notification.d.ts +9 -13
- package/dist/types/packages/toast/index.d.ts +1 -0
- package/dist/types/packages/toast/toast.d.ts +19 -26
- package/dist/types/packages/trendarrow/trendarrow.d.ts +57 -15
- package/dist/types/packages/uploader/uploader.d.ts +180 -36
- package/dist/types/packages/video/index.d.ts +1 -0
- package/dist/types/packages/video/video.d.ts +27 -11
- package/dist/types/packages/virtuallist/index.d.ts +1 -0
- package/dist/types/packages/virtuallist/type.d.ts +0 -18
- package/dist/types/packages/virtuallist/utils.d.ts +3 -3
- package/dist/types/packages/virtuallist/virtuallist.d.ts +51 -4
- package/dist/types/packages/watermark/index.d.ts +1 -0
- package/dist/types/packages/watermark/watermark.d.ts +72 -17
- package/package.json +1 -1
package/dist/style.mjs
CHANGED
|
@@ -252,6 +252,8 @@ $cell-description-font: var(
|
|
|
252
252
|
$font-size-2
|
|
253
253
|
) !default;
|
|
254
254
|
$cell-description-color: var(--nutui-cell-extra-color, $disable-color) !default;
|
|
255
|
+
$cell-extra-font-size: var(--nutui-cell-extra-font-size, $font-size-2) !default;
|
|
256
|
+
$cell-extra-color: var(--nutui-cell-extra-color, $gray2) !default;
|
|
255
257
|
$cell-subtitle-color: var(--nutui-cell-description-color, $gray2) !default;
|
|
256
258
|
$cell-border-radius: var(--nutui-cell-border-radius, 4px) !default;
|
|
257
259
|
$cell-padding: var(--nutui-cell-padding, 16px 16px) !default;
|
|
@@ -418,8 +420,8 @@ $uploader-preview-close-top: var(
|
|
|
418
420
|
0px
|
|
419
421
|
) !default;
|
|
420
422
|
// picker(✅)(todo:react版本picker组件dom元素类名变化较大,picker.scss暂不改动)
|
|
421
|
-
$picker-cancel-color: var(--nutui-picker-cancel-color, #808080) !default;
|
|
422
|
-
$picker-ok-color: var(--nutui-picker-ok-color, $primary-color) !default;
|
|
423
|
+
$picker-bar-cancel-color: var(--nutui-picker-cancel-color, #808080) !default;
|
|
424
|
+
$picker-bar-ok-color: var(--nutui-picker-ok-color, $primary-color) !default;
|
|
423
425
|
$picker-bar-cancel-font-size: var(
|
|
424
426
|
--nutui-picker-bar-cancel-font-size,
|
|
425
427
|
14px
|
|
@@ -556,37 +558,30 @@ $inputnumber-border-box: var(
|
|
|
556
558
|
$inputnumber-display: var(--nutui-inputnumber-display, flex) !default;
|
|
557
559
|
|
|
558
560
|
// actionsheet(✅)
|
|
559
|
-
$
|
|
560
|
-
|
|
561
|
-
$light-color: var(--nutui-light-color, #f6f6f6) !default;
|
|
562
|
-
$actionsheet-light-color: var(
|
|
563
|
-
--nutui-actionsheet-light-color,
|
|
561
|
+
$actionsheet-border-color: var(
|
|
562
|
+
--nutui-actionsheet-border-color,
|
|
564
563
|
#f6f6f6
|
|
565
564
|
) !default;
|
|
565
|
+
$actionsheet-item-text-align: var(
|
|
566
|
+
--nutui-actionsheet-item-text-align,
|
|
567
|
+
center
|
|
568
|
+
) !default;
|
|
566
569
|
$actionsheet-item-border-bottom: var(
|
|
567
570
|
--nutui-actionsheet-item-border-bottom,
|
|
568
571
|
none
|
|
569
572
|
) !default;
|
|
570
|
-
$actionsheet-item-font-size: var(
|
|
571
|
-
--nutui-actionsheet-item-font-size,
|
|
572
|
-
$font-size-2
|
|
573
|
-
) !default;
|
|
574
|
-
$actionsheet-item-subdesc-font-size: var(
|
|
575
|
-
--nutui-actionsheet-item-subdesc-font-size,
|
|
576
|
-
$font-size-1
|
|
577
|
-
) !default;
|
|
578
|
-
$actionsheet-item-cancel-border-top: var(
|
|
579
|
-
--nutui-actionsheet-item-cancel-border-top,
|
|
580
|
-
1px solid $actionsheet-light-color
|
|
581
|
-
) !default;
|
|
582
573
|
$actionsheet-item-line-height: var(
|
|
583
574
|
--nutui-actionsheet-item-line-height,
|
|
584
575
|
24px
|
|
585
576
|
) !default;
|
|
586
|
-
$actionsheet-item-
|
|
587
|
-
--nutui-actionsheet-item-
|
|
577
|
+
$actionsheet-item-color: var(
|
|
578
|
+
--nutui-actionsheet-item-color,
|
|
588
579
|
$title-color
|
|
589
580
|
) !default;
|
|
581
|
+
$actionsheet-item-danger: var(
|
|
582
|
+
--nutui-actionsheet-item-danger,
|
|
583
|
+
$primary-color
|
|
584
|
+
) !default;
|
|
590
585
|
|
|
591
586
|
//shortpassword(✅)
|
|
592
587
|
$shortpassword-background-color: var(
|
|
@@ -688,8 +683,8 @@ $numberkeyboard-key-confirm-background-color: var(
|
|
|
688
683
|
|
|
689
684
|
// countdown(✅)
|
|
690
685
|
$countdown-display: var(--nutui-countdown-display, flex) !default;
|
|
691
|
-
$countdown-color: var(--nutui-countdown-color,
|
|
692
|
-
$countdown-font-size: var(--nutui-countdown-font-size,
|
|
686
|
+
$countdown-color: var(--nutui-countdown-color, $gray1) !default;
|
|
687
|
+
$countdown-font-size: var(--nutui-countdown-font-size, 14px) !default;
|
|
693
688
|
|
|
694
689
|
//large price(✅)
|
|
695
690
|
$price-symbol-padding-right: var(
|
|
@@ -766,6 +761,8 @@ $toast-inner-border-radius: var(
|
|
|
766
761
|
12px
|
|
767
762
|
) !default;
|
|
768
763
|
$toast-cover-bg-color: var(--nutui-toast-cover-bg-color, $gray7) !default;
|
|
764
|
+
$toast-inner-top: var(--nutui-toast-inner-top, 50%) !default;
|
|
765
|
+
$toast-inner-text-align: var(--nutui-toast-inner-text-align, 'center') !default;
|
|
769
766
|
|
|
770
767
|
//backtop(✅)
|
|
771
768
|
$backtop-border-color: var(--nutui-backtop-border-color, #e0e0e0) !default;
|
|
@@ -1102,8 +1099,15 @@ $dialog-content-line-height: var(
|
|
|
1102
1099
|
--nutui-dialog-content-line-height,
|
|
1103
1100
|
16px
|
|
1104
1101
|
) !default;
|
|
1105
|
-
$dialog-
|
|
1106
|
-
|
|
1102
|
+
$dialog-content-text-align: var(
|
|
1103
|
+
--nutui-dialog-content-text-align,
|
|
1104
|
+
center
|
|
1105
|
+
) !default;
|
|
1106
|
+
$dialog-overlay-z-index: var(
|
|
1107
|
+
--nutui-dialog-mask-z-index,
|
|
1108
|
+
$mask-z-index
|
|
1109
|
+
) !default;
|
|
1110
|
+
$dialog-overlay-background-color: var(
|
|
1107
1111
|
--nutui-dialog-mask-background-color,
|
|
1108
1112
|
$mask-color
|
|
1109
1113
|
) !default;
|
|
@@ -1575,7 +1579,7 @@ $tabs-titles-background-color: var(
|
|
|
1575
1579
|
$background-color
|
|
1576
1580
|
) !default;
|
|
1577
1581
|
$tabs-titles-border-radius: var(--nutui-tabs-titles-border-radius, 0) !default;
|
|
1578
|
-
|
|
1582
|
+
$nut-tabs-title-gap: var(--nutui-tabs-title-gap, 0) !default;
|
|
1579
1583
|
$tabs-titles-item-font-size: var(
|
|
1580
1584
|
--nutui-tabs-titles-item-font-size,
|
|
1581
1585
|
$font-size-2
|
|
@@ -1772,36 +1776,25 @@ $collapse-wrapper-content-background-color: var(
|
|
|
1772
1776
|
) !default;
|
|
1773
1777
|
|
|
1774
1778
|
// searchbar(✅)
|
|
1775
|
-
|
|
1776
|
-
$searchbar-background: var(--nutui-searchbar-background, $gray6) !default;
|
|
1779
|
+
$searchbar-background: var(--nutui-searchbar-background, #fff) !default;
|
|
1777
1780
|
$searchbar-content-border-radius: var(
|
|
1778
1781
|
--nutui-searchbar-content-border-radius,
|
|
1779
1782
|
2px
|
|
1780
1783
|
) !default;
|
|
1781
|
-
$searchbar-
|
|
1782
|
-
--nutui-searchbar-right-out-color,
|
|
1783
|
-
$black
|
|
1784
|
-
) !default;
|
|
1785
|
-
$searchbar-padding: var(--nutui-searchbar-padding, 9px 16px) !default;
|
|
1784
|
+
$searchbar-padding: var(--nutui-searchbar-padding, 9px 10px) !default;
|
|
1786
1785
|
$searchbar-width: var(--nutui-searchbar-width, 100%) !default;
|
|
1787
|
-
$searchbar-
|
|
1788
|
-
$searchbar-
|
|
1789
|
-
--nutui-searchbar-
|
|
1786
|
+
$searchbar-left-fontsize: var(--nutui-searchbar-left-fontsize, 12px) !default;
|
|
1787
|
+
$searchbar-left-padding: var(
|
|
1788
|
+
--nutui-searchbar-left-padding,
|
|
1790
1789
|
0 12px 0 0
|
|
1791
1790
|
) !default;
|
|
1792
|
-
$searchbar-
|
|
1793
|
-
$searchbar-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
) !default;
|
|
1797
|
-
$searchbar-action-text-padding: var(
|
|
1798
|
-
--nutui-searchbar-action-text-padding,
|
|
1791
|
+
$searchbar-left-color: var(--nutui-searchbar-left-color, $gray1) !default;
|
|
1792
|
+
$searchbar-right-fontsize: var(--nutui-searchbar-right-fontsize, 14px) !default;
|
|
1793
|
+
$searchbar-right-padding: var(
|
|
1794
|
+
--nutui-searchbar-right-padding,
|
|
1799
1795
|
0 0 0 8px
|
|
1800
1796
|
) !default;
|
|
1801
|
-
$searchbar-
|
|
1802
|
-
--nutui-searchbar-action-text-color,
|
|
1803
|
-
$gray1
|
|
1804
|
-
) !default;
|
|
1797
|
+
$searchbar-right-color: var(--nutui-searchbar-right-color, $gray1) !default;
|
|
1805
1798
|
$searchbar-input-height: var(--nutui-searchbar-input-height, 32px) !default;
|
|
1806
1799
|
$searchbar-input-padding: var(--nutui-searchbar-input-padding, 0 5px) !default;
|
|
1807
1800
|
$searchbar-input-background: var(
|
|
@@ -1817,22 +1810,14 @@ $searchbar-input-curror-color: var(
|
|
|
1817
1810
|
$gray1
|
|
1818
1811
|
) !default;
|
|
1819
1812
|
$searchbar-input-width: var(--nutui-searchbar-input-width, 100%) !default;
|
|
1813
|
+
$searchbar-input-text-align: var(
|
|
1814
|
+
--nutui-searchbar-input-text-align,
|
|
1815
|
+
left
|
|
1816
|
+
) !default;
|
|
1820
1817
|
$searchbar-input-border-radius: var(
|
|
1821
1818
|
--nutui-searchbar-input-border-radius,
|
|
1822
1819
|
16px
|
|
1823
1820
|
) !default;
|
|
1824
|
-
$searchbar-input-box-shadow: var(
|
|
1825
|
-
--nutui-searchbar-input-box-shadow,
|
|
1826
|
-
0 0 8px 0 rgba(0, 0, 0, 0.04)
|
|
1827
|
-
) !default;
|
|
1828
|
-
$searchbar-input-bar-color: var(
|
|
1829
|
-
--nutui-searchbar-input-bar-color,
|
|
1830
|
-
inherit
|
|
1831
|
-
) !default;
|
|
1832
|
-
$searchbar-input-bar-placeholder-color: var(
|
|
1833
|
-
--nutui-searchbar-input-bar-placeholder-color,
|
|
1834
|
-
inherit
|
|
1835
|
-
) !default;
|
|
1836
1821
|
$searchbar-clear-icon-padding: var(
|
|
1837
1822
|
--nutui-searchbar-clear-icon-padding,
|
|
1838
1823
|
0 10px 0 5px
|
|
@@ -2086,7 +2071,10 @@ $navbar-box-shadow: var(
|
|
|
2086
2071
|
) !default;
|
|
2087
2072
|
$navbar-color: var(--nutui-navbar-color, $gray1) !default;
|
|
2088
2073
|
$navbar-font-size: var(--nutui-navbar-font-size, $font-size-2) !default;
|
|
2089
|
-
$navbar-title-font: var(
|
|
2074
|
+
$navbar-title-font-size: var(
|
|
2075
|
+
--nutui-navbar-title-font-size,
|
|
2076
|
+
$font-size-2
|
|
2077
|
+
) !default;
|
|
2090
2078
|
$navbar-title-font-weight: var(--nutui-navbar-title-font-weight, 0) !default;
|
|
2091
2079
|
$navbar-title-font-color: var(
|
|
2092
2080
|
--nutui-navbar-title-font-color,
|
|
@@ -2210,6 +2198,14 @@ $elevator-list-item-code-line-height: var(
|
|
|
2210
2198
|
--nutui-elevator-list-item-code-line-height,
|
|
2211
2199
|
35px
|
|
2212
2200
|
) !default;
|
|
2201
|
+
$elevator-list-item-code-border-bottom: var(
|
|
2202
|
+
--nutui-elevator-list-item-code-border-bottom,
|
|
2203
|
+
1px
|
|
2204
|
+
) !default;
|
|
2205
|
+
$elevator-list-item-code-border-bottom-color: var(
|
|
2206
|
+
--nutui-elevator-list-item-code-border-bottom-color,
|
|
2207
|
+
#f5f5f5
|
|
2208
|
+
) !default;
|
|
2213
2209
|
$elevator-list-item-code-current-box-shadow: 0 3px 3px 1px
|
|
2214
2210
|
rgba(240, 240, 240, 1) !default;
|
|
2215
2211
|
$elevator-list-item-code-current-bg-color: var(
|
|
@@ -2428,10 +2424,7 @@ $invoice-padding: var(--nutui-invoice-padding, 10px 10px 20px) !default;
|
|
|
2428
2424
|
|
|
2429
2425
|
// TrendArrow(✅ todo:react版本该组件暂无,将变量先迁过来)
|
|
2430
2426
|
$trendarrow-font-size: var(--nutui-trendarrow-font-size, 14px) !default;
|
|
2431
|
-
$trendarrow-
|
|
2432
|
-
--nutui-trendarrow-before-icon-margin,
|
|
2433
|
-
4px
|
|
2434
|
-
) !default;
|
|
2427
|
+
$trendarrow-icon-margin: var(--nutui-trendarrow-icon-margin, 4px) !default;
|
|
2435
2428
|
|
|
2436
2429
|
// animatingnumbers(✅)
|
|
2437
2430
|
$countup-height: var(--nutui-countup-height, 32px) !default;
|
|
@@ -2465,7 +2458,4 @@ $col-default-margin-bottom: var(
|
|
|
2465
2458
|
|
|
2466
2459
|
// TrendArrow
|
|
2467
2460
|
$trendarrow-font-size: var(--nutui-trendarrow-font-size, 14px) !default;
|
|
2468
|
-
$trendarrow-
|
|
2469
|
-
--nutui-trendarrow-before-icon-margin,
|
|
2470
|
-
4px
|
|
2471
|
-
) !default;
|
|
2461
|
+
$trendarrow-icon-margin: var(--nutui-trendarrow-icon-margin, 4px) !default;
|
|
@@ -539,37 +539,30 @@ $inputnumber-border-box: var(
|
|
|
539
539
|
$inputnumber-display: var(--nutui-inputnumber-display, flex) !default;
|
|
540
540
|
|
|
541
541
|
// actionsheet(✅)
|
|
542
|
-
$
|
|
543
|
-
|
|
544
|
-
$light-color: var(--nutui-light-color, #f6f6f6) !default;
|
|
545
|
-
$actionsheet-light-color: var(
|
|
546
|
-
--nutui-actionsheet-light-color,
|
|
542
|
+
$actionsheet-border-color: var(
|
|
543
|
+
--nutui-actionsheet-border-color,
|
|
547
544
|
#f6f6f6
|
|
548
545
|
) !default;
|
|
546
|
+
$actionsheet-item-text-align: var(
|
|
547
|
+
--nutui-actionsheet-item-text-align,
|
|
548
|
+
center
|
|
549
|
+
) !default;
|
|
549
550
|
$actionsheet-item-border-bottom: var(
|
|
550
551
|
--nutui-actionsheet-item-border-bottom,
|
|
551
552
|
none
|
|
552
553
|
) !default;
|
|
553
|
-
$actionsheet-item-font-size: var(
|
|
554
|
-
--nutui-actionsheet-item-font-size,
|
|
555
|
-
$font-size-2
|
|
556
|
-
) !default;
|
|
557
|
-
$actionsheet-item-subdesc-font-size: var(
|
|
558
|
-
--nutui-actionsheet-item-subdesc-font-size,
|
|
559
|
-
$font-size-1
|
|
560
|
-
) !default;
|
|
561
|
-
$actionsheet-item-cancel-border-top: var(
|
|
562
|
-
--nutui-actionsheet-item-cancel-border-top,
|
|
563
|
-
1px solid $actionsheet-light-color
|
|
564
|
-
) !default;
|
|
565
554
|
$actionsheet-item-line-height: var(
|
|
566
555
|
--nutui-actionsheet-item-line-height,
|
|
567
556
|
24px
|
|
568
557
|
) !default;
|
|
569
|
-
$actionsheet-item-
|
|
570
|
-
--nutui-actionsheet-item-
|
|
558
|
+
$actionsheet-item-color: var(
|
|
559
|
+
--nutui-actionsheet-item-color,
|
|
571
560
|
$title-color
|
|
572
561
|
) !default;
|
|
562
|
+
$actionsheet-item-danger: var(
|
|
563
|
+
--nutui-actionsheet-item-danger,
|
|
564
|
+
$primary-color
|
|
565
|
+
) !default;
|
|
573
566
|
|
|
574
567
|
//shortpassword(✅)
|
|
575
568
|
$shortpassword-background-color: var(
|
|
@@ -671,8 +664,8 @@ $numberkeyboard-key-confirm-background-color: var(
|
|
|
671
664
|
|
|
672
665
|
// countdown(✅)
|
|
673
666
|
$countdown-display: var(--nutui-countdown-display, flex) !default;
|
|
674
|
-
$countdown-color: var(--nutui-countdown-color,
|
|
675
|
-
$countdown-font-size: var(--nutui-countdown-font-size,
|
|
667
|
+
$countdown-color: var(--nutui-countdown-color, $gray1) !default;
|
|
668
|
+
$countdown-font-size: var(--nutui-countdown-font-size, 14px) !default;
|
|
676
669
|
|
|
677
670
|
//large price(✅)
|
|
678
671
|
$price-symbol-padding-right: var(
|
|
@@ -749,6 +742,8 @@ $toast-inner-border-radius: var(
|
|
|
749
742
|
12px
|
|
750
743
|
) !default;
|
|
751
744
|
$toast-cover-bg-color: var(--nutui-toast-cover-bg-color, $gray7) !default;
|
|
745
|
+
$toast-inner-top: var(--nutui-toast-inner-top, 50%) !default;
|
|
746
|
+
$toast-inner-text-align: var(--nutui-toast-inner-text-align, 'center') !default;
|
|
752
747
|
|
|
753
748
|
//backtop(✅)
|
|
754
749
|
$backtop-border-color: var(--nutui-backtop-border-color, #e0e0e0) !default;
|
|
@@ -1758,35 +1753,25 @@ $collapse-wrapper-content-background-color: var(
|
|
|
1758
1753
|
|
|
1759
1754
|
// searchbar(✅)
|
|
1760
1755
|
|
|
1761
|
-
$searchbar-background: var(--nutui-searchbar-background,
|
|
1756
|
+
$searchbar-background: var(--nutui-searchbar-background, #fff) !default;
|
|
1762
1757
|
$searchbar-content-border-radius: var(
|
|
1763
1758
|
--nutui-searchbar-content-border-radius,
|
|
1764
1759
|
2px
|
|
1765
1760
|
) !default;
|
|
1766
|
-
$searchbar-
|
|
1767
|
-
--nutui-searchbar-right-out-color,
|
|
1768
|
-
$black
|
|
1769
|
-
) !default;
|
|
1770
|
-
$searchbar-padding: var(--nutui-searchbar-padding, 9px 16px) !default;
|
|
1761
|
+
$searchbar-padding: var(--nutui-searchbar-padding, 9px 10px) !default;
|
|
1771
1762
|
$searchbar-width: var(--nutui-searchbar-width, 100%) !default;
|
|
1772
|
-
$searchbar-
|
|
1773
|
-
$searchbar-
|
|
1774
|
-
--nutui-searchbar-
|
|
1763
|
+
$searchbar-left-fontsize: var(--nutui-searchbar-left-fontsize, 12px) !default;
|
|
1764
|
+
$searchbar-left-padding: var(
|
|
1765
|
+
--nutui-searchbar-left-padding,
|
|
1775
1766
|
0 12px 0 0
|
|
1776
1767
|
) !default;
|
|
1777
|
-
$searchbar-
|
|
1778
|
-
$searchbar-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
) !default;
|
|
1782
|
-
$searchbar-action-text-padding: var(
|
|
1783
|
-
--nutui-searchbar-action-text-padding,
|
|
1768
|
+
$searchbar-left-color: var(--nutui-searchbar-left-color, $gray1) !default;
|
|
1769
|
+
$searchbar-right-fontsize: var(--nutui-searchbar-right-fontsize, 14px) !default;
|
|
1770
|
+
$searchbar-right-padding: var(
|
|
1771
|
+
--nutui-searchbar-right-padding,
|
|
1784
1772
|
0 0 0 8px
|
|
1785
1773
|
) !default;
|
|
1786
|
-
$searchbar-
|
|
1787
|
-
--nutui-searchbar-action-text-color,
|
|
1788
|
-
$gray1
|
|
1789
|
-
) !default;
|
|
1774
|
+
$searchbar-right-color: var(--nutui-searchbar-right-color, $gray1) !default;
|
|
1790
1775
|
$searchbar-input-height: var(--nutui-searchbar-input-height, 32px) !default;
|
|
1791
1776
|
$searchbar-input-padding: var(--nutui-searchbar-input-padding, 0 5px) !default;
|
|
1792
1777
|
$searchbar-input-background: var(
|
|
@@ -1802,22 +1787,14 @@ $searchbar-input-curror-color: var(
|
|
|
1802
1787
|
$gray1
|
|
1803
1788
|
) !default;
|
|
1804
1789
|
$searchbar-input-width: var(--nutui-searchbar-input-width, 100%) !default;
|
|
1790
|
+
$searchbar-input-text-align: var(
|
|
1791
|
+
--nutui-searchbar-input-text-align,
|
|
1792
|
+
left
|
|
1793
|
+
) !default;
|
|
1805
1794
|
$searchbar-input-border-radius: var(
|
|
1806
1795
|
--nutui-searchbar-input-border-radius,
|
|
1807
1796
|
16px
|
|
1808
1797
|
) !default;
|
|
1809
|
-
$searchbar-input-box-shadow: var(
|
|
1810
|
-
--nutui-searchbar-input-box-shadow,
|
|
1811
|
-
0 0 8px 0 rgba(0, 0, 0, 0.04)
|
|
1812
|
-
) !default;
|
|
1813
|
-
$searchbar-input-bar-color: var(
|
|
1814
|
-
--nutui-searchbar-input-bar-color,
|
|
1815
|
-
inherit
|
|
1816
|
-
) !default;
|
|
1817
|
-
$searchbar-input-bar-placeholder-color: var(
|
|
1818
|
-
--nutui-searchbar-input-bar-placeholder-color,
|
|
1819
|
-
inherit
|
|
1820
|
-
) !default;
|
|
1821
1798
|
$searchbar-clear-icon-padding: var(
|
|
1822
1799
|
--nutui-searchbar-clear-icon-padding,
|
|
1823
1800
|
0 10px 0 5px
|
|
@@ -2420,10 +2397,7 @@ $invoice-padding: var(--nutui-invoice-padding, 10px 10px 20px) !default;
|
|
|
2420
2397
|
|
|
2421
2398
|
// TrendArrow(✅ todo:react版本该组件暂无,将变量先迁过来)
|
|
2422
2399
|
$trendarrow-font-size: var(--nutui-trendarrow-font-size, 14px) !default;
|
|
2423
|
-
$trendarrow-
|
|
2424
|
-
--nutui-trendarrow-before-icon-margin,
|
|
2425
|
-
4px
|
|
2426
|
-
) !default;
|
|
2400
|
+
$trendarrow-icon-margin: var(--nutui-trendarrow-icon-margin, 4px) !default;
|
|
2427
2401
|
|
|
2428
2402
|
// animatingnumbers(✅)
|
|
2429
2403
|
$countup-height: var(--nutui-countup-height, 32px) !default;
|
|
@@ -2457,7 +2431,4 @@ $col-default-margin-bottom: var(
|
|
|
2457
2431
|
|
|
2458
2432
|
// TrendArrow
|
|
2459
2433
|
$trendarrow-font-size: var(--nutui-trendarrow-font-size, 14px) !default;
|
|
2460
|
-
$trendarrow-
|
|
2461
|
-
--nutui-trendarrow-before-icon-margin,
|
|
2462
|
-
4px
|
|
2463
|
-
) !default;
|
|
2434
|
+
$trendarrow-icon-margin: var(--nutui-trendarrow-icon-margin, 4px) !default;
|
|
@@ -1,20 +1,48 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '../../utils/typings';
|
|
2
3
|
export type ItemType<T> = {
|
|
3
4
|
[key: string]: T;
|
|
4
5
|
};
|
|
5
|
-
export interface ActionSheetProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export interface ActionSheetProps extends BasicComponent {
|
|
7
|
+
/**
|
|
8
|
+
* 遮罩层可见
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
visible: boolean
|
|
12
|
+
/**
|
|
13
|
+
* 设置列表面板标题
|
|
14
|
+
* @default -
|
|
15
|
+
*/
|
|
16
|
+
title: ReactNode
|
|
17
|
+
/**
|
|
18
|
+
* 设置列表面板副标题/描述
|
|
19
|
+
* @default -
|
|
20
|
+
*/
|
|
21
|
+
description: ReactNode
|
|
22
|
+
/**
|
|
23
|
+
* 列表项
|
|
24
|
+
* @default []
|
|
25
|
+
*/
|
|
26
|
+
options: ItemType<string | boolean>[]
|
|
27
|
+
/**
|
|
28
|
+
* 列表项的自定义设置
|
|
29
|
+
* @default -
|
|
30
|
+
*/
|
|
31
|
+
optionKey: ItemType<string>
|
|
32
|
+
/**
|
|
33
|
+
* 取消文案
|
|
34
|
+
* @default 取消
|
|
35
|
+
*/
|
|
36
|
+
cancelText: ReactNode
|
|
37
|
+
/**
|
|
38
|
+
* 点击取消文案时触发
|
|
39
|
+
* @default -
|
|
40
|
+
*/
|
|
41
|
+
onCancel: () => void
|
|
42
|
+
/**
|
|
43
|
+
* 选择之后触发
|
|
44
|
+
* @default -
|
|
45
|
+
*/
|
|
46
|
+
onSelect: (item: ItemType<string | boolean>, index: number) => void
|
|
19
47
|
}
|
|
20
|
-
export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
48
|
+
export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onSelect'>>;
|
|
@@ -2,9 +2,25 @@ import React, { FunctionComponent } from 'react';
|
|
|
2
2
|
import { AnimateType, AnimateAction } from './type';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
4
|
export interface AnimateProps extends BasicComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* 动画类型,见下方type值说明
|
|
7
|
+
* @default 'shake'
|
|
8
|
+
*/
|
|
9
|
+
type: AnimateType
|
|
10
|
+
/**
|
|
11
|
+
* 触发方式,'initial'--初始化执行; 'click'--点击执行
|
|
12
|
+
* @default 'initial'
|
|
13
|
+
*/
|
|
14
|
+
action: AnimateAction
|
|
15
|
+
/**
|
|
16
|
+
* 是否循环执行。true-循环执行;false-执行一次
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
loop: boolean
|
|
20
|
+
/**
|
|
21
|
+
* 点击元素时触发
|
|
22
|
+
* @default -
|
|
23
|
+
*/
|
|
24
|
+
onClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void
|
|
9
25
|
}
|
|
10
26
|
export declare const Animate: FunctionComponent<Partial<AnimateProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { BasicComponent } from '../../utils/typings';
|
|
3
|
+
export interface CountUpProps extends BasicComponent {
|
|
4
|
+
length: number;
|
|
5
|
+
value: string;
|
|
6
|
+
delay?: number;
|
|
7
|
+
duration: number;
|
|
7
8
|
thousands: boolean;
|
|
8
|
-
className: string;
|
|
9
|
-
style: React.CSSProperties;
|
|
10
9
|
}
|
|
11
10
|
export declare const CountUp: FunctionComponent<Partial<CountUpProps>>;
|
|
@@ -1,17 +1,65 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactEventHandler } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export interface AudioProps extends BasicComponent {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 语音资源链接
|
|
6
|
+
* @default -
|
|
7
|
+
*/
|
|
8
|
+
src: string
|
|
9
|
+
/**
|
|
10
|
+
* 是否静音
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
muted: boolean
|
|
14
|
+
/**
|
|
15
|
+
* 是否自动播放
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
autoPlay: boolean
|
|
19
|
+
/**
|
|
20
|
+
* 是否循环播放
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
loop: boolean
|
|
24
|
+
/**
|
|
25
|
+
* 是否预加载语音 枚举值:'none'、'metadata'、'auto'、''
|
|
26
|
+
* @default auto
|
|
27
|
+
*/
|
|
28
|
+
preload: string
|
|
29
|
+
/**
|
|
30
|
+
* 展示形式,可选值:controls 控制面板 progress 进度条 icon 图标 none 自定义
|
|
31
|
+
* @default progress
|
|
32
|
+
*/
|
|
33
|
+
type: string
|
|
34
|
+
/**
|
|
35
|
+
* 语音快退回调,type = progress 时生效
|
|
36
|
+
* @default -
|
|
37
|
+
*/
|
|
38
|
+
onBack: (e: HTMLAudioElement) => void
|
|
39
|
+
/**
|
|
40
|
+
* 语音快进回调,type = progress 时生效
|
|
41
|
+
* @default -
|
|
42
|
+
*/
|
|
43
|
+
onForward: (e: HTMLAudioElement) => void
|
|
44
|
+
/**
|
|
45
|
+
* 暂停回调
|
|
46
|
+
* @default -
|
|
47
|
+
*/
|
|
48
|
+
onPause: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>
|
|
49
|
+
/**
|
|
50
|
+
* 语音播放完成,loop = false 时生效
|
|
51
|
+
* @default -
|
|
52
|
+
*/
|
|
53
|
+
onEnd: (e: HTMLAudioElement) => void
|
|
54
|
+
/**
|
|
55
|
+
* 静音回调
|
|
56
|
+
* @default -
|
|
57
|
+
*/
|
|
58
|
+
onMute: (e: HTMLAudioElement) => void
|
|
59
|
+
/**
|
|
60
|
+
* 可以播放媒体时触发
|
|
61
|
+
* @default -
|
|
62
|
+
*/
|
|
63
|
+
onCanPlay: ((e: HTMLAudioElement) => void) & ReactEventHandler<HTMLAudioElement>
|
|
16
64
|
}
|
|
17
65
|
export declare const Audio: FunctionComponent<Partial<AudioProps> & React.HTMLAttributes<HTMLElement>>;
|
|
@@ -1,16 +1,56 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
3
|
export interface AvatarProps extends BasicComponent {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 设置头像的大小
|
|
6
|
+
* @default ''
|
|
7
|
+
*/
|
|
8
|
+
size: string
|
|
9
|
+
/**
|
|
10
|
+
* 设置 Icon 类型头像图标
|
|
11
|
+
* @default -
|
|
12
|
+
*/
|
|
13
|
+
icon: React.ReactNode
|
|
14
|
+
/**
|
|
15
|
+
* 图片填充模式
|
|
16
|
+
* @default 'cover'
|
|
17
|
+
*/
|
|
18
|
+
fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'
|
|
19
|
+
/**
|
|
20
|
+
* 设置头像的形状
|
|
21
|
+
* @default 'round'
|
|
22
|
+
*/
|
|
23
|
+
shape: AvatarShape
|
|
24
|
+
/**
|
|
25
|
+
* 设置 Icon、字符类型头像的背景色
|
|
26
|
+
* @default #eee
|
|
27
|
+
*/
|
|
28
|
+
background: string
|
|
29
|
+
/**
|
|
30
|
+
* 设置 Icon、字符类型头像的颜色
|
|
31
|
+
* @default #666
|
|
32
|
+
*/
|
|
33
|
+
color: string
|
|
34
|
+
/**
|
|
35
|
+
* 设置图片类型头像的地址
|
|
36
|
+
* @default ''
|
|
37
|
+
*/
|
|
38
|
+
src: string
|
|
39
|
+
/**
|
|
40
|
+
* 设置图片类型头像无法显示时的替代文本
|
|
41
|
+
* @default ''
|
|
42
|
+
*/
|
|
43
|
+
alt: string
|
|
44
|
+
/**
|
|
45
|
+
* 点击头像触发事件
|
|
46
|
+
* @default -
|
|
47
|
+
*/
|
|
48
|
+
onClick: (e: MouseEvent) => void
|
|
49
|
+
/**
|
|
50
|
+
* 图片加载失败的事件
|
|
51
|
+
* @default -
|
|
52
|
+
*/
|
|
53
|
+
onError: () => void
|
|
14
54
|
}
|
|
15
55
|
export type AvatarShape = 'round' | 'square';
|
|
16
56
|
export declare const Avatar: FunctionComponent<Partial<AvatarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|