@kdcloudjs/kdesign 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +104 -105
- package/dist/default-theme.js +17 -12
- package/dist/kdesign-complete.less +3334 -1374
- package/dist/kdesign.css +2565 -1931
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +783 -112
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +6 -6
- package/dist/kdesign.min.js.map +1 -1
- package/es/alert/style/index.css +32 -30
- package/es/alert/style/index.less +36 -37
- package/es/alert/style/token.less +29 -0
- package/es/anchor/style/index.css +48 -34
- package/es/anchor/style/index.less +19 -16
- package/es/anchor/style/mixin.less +1 -0
- package/es/anchor/style/token.less +33 -0
- package/es/avatar/style/index.css +18 -18
- package/es/avatar/style/index.less +4 -25
- package/es/avatar/style/mixin.less +21 -4
- package/es/avatar/style/token.less +20 -0
- package/es/badge/style/index.css +38 -29
- package/es/badge/style/index.less +28 -30
- package/es/badge/style/mixin.less +1 -5
- package/es/badge/style/token.less +23 -0
- package/es/base-data/style/index.css +25 -16
- package/es/base-data/style/index.less +17 -17
- package/es/base-data/style/token.less +27 -0
- package/es/button/button.d.ts +1 -3
- package/es/button/button.js +3 -15
- package/es/button/style/index.css +80 -81
- package/es/button/style/index.less +43 -51
- package/es/button/style/mixin.less +6 -4
- package/es/button/style/token.less +88 -0
- package/es/card/card.d.ts +1 -0
- package/es/card/card.js +4 -1
- package/es/card/style/index.css +48 -23
- package/es/card/style/index.less +43 -23
- package/es/card/style/token.less +28 -0
- package/es/carousel/style/index.css +36 -30
- package/es/carousel/style/index.less +14 -6
- package/es/carousel/style/mixin.less +1 -4
- package/es/carousel/style/token.less +20 -0
- package/es/cascader/cascader.js +1 -1
- package/es/cascader/style/index.css +35 -26
- package/es/cascader/style/index.less +24 -23
- package/es/cascader/style/token.less +28 -0
- package/es/checkbox/style/index.css +86 -80
- package/es/checkbox/style/index.less +26 -27
- package/es/checkbox/style/token.less +48 -0
- package/es/city-picker/style/index.css +24 -14
- package/es/city-picker/style/index.less +16 -16
- package/es/city-picker/style/token.less +25 -0
- package/es/collapse/style/index.css +37 -26
- package/es/collapse/style/index.less +7 -5
- package/es/collapse/style/mixin.less +1 -5
- package/es/collapse/style/token.less +26 -0
- package/es/config-provider/compDefaultProps.d.ts +4 -1
- package/es/config-provider/compDefaultProps.js +5 -2
- package/es/date-picker/style/index.css +81 -72
- package/es/date-picker/style/index.less +36 -36
- package/es/date-picker/style/mixin.less +20 -18
- package/es/date-picker/style/token.less +71 -0
- package/es/drawer/drawer.d.ts +0 -1
- package/es/drawer/drawer.js +6 -26
- package/es/drawer/style/index.css +37 -31
- package/es/drawer/style/index.less +24 -39
- package/es/drawer/style/token.less +23 -0
- package/es/dropdown/dropdown.d.ts +1 -0
- package/es/dropdown/dropdown.js +13 -8
- package/es/dropdown/menu.d.ts +1 -1
- package/es/dropdown/menu.js +3 -3
- package/es/dropdown/style/index.css +57 -48
- package/es/dropdown/style/index.less +27 -24
- package/es/dropdown/style/token.less +26 -0
- package/es/empty/defaultEmptyImg.d.ts +2 -0
- package/es/empty/defaultEmptyImg.js +92 -0
- package/es/empty/empty.d.ts +5 -1
- package/es/empty/empty.js +10 -9
- package/es/empty/illustrationEmptyImg.d.ts +2 -0
- package/es/empty/illustrationEmptyImg.js +439 -0
- package/es/empty/style/index.css +12 -3
- package/es/empty/style/index.less +1 -1
- package/es/empty/style/token.less +12 -0
- package/es/filter/style/index.css +44 -32
- package/es/filter/style/index.less +34 -32
- package/es/filter/style/token.less +28 -0
- package/es/form/style/index.css +19 -10
- package/es/form/style/index.less +9 -6
- package/es/form/style/token.less +27 -0
- package/es/grid/style/index.css +9 -0
- package/es/image/style/index.css +32 -23
- package/es/image/style/index.less +23 -22
- package/es/image/style/token.less +45 -0
- package/es/image-cropper/style/index.css +9 -0
- package/es/image-cropper/style/index.less +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/style/index.css +97 -88
- package/es/input/style/index.less +34 -31
- package/es/input/style/mixin.less +54 -47
- package/es/input/style/token.less +46 -0
- package/es/input-number/style/css.js +1 -0
- package/es/input-number/style/index.css +25 -16
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +1 -0
- package/es/input-number/style/index.less +12 -12
- package/es/input-number/style/mixin.less +4 -2
- package/es/input-number/style/token.less +20 -0
- package/es/layout/style/index.css +41 -32
- package/es/layout/style/index.less +9 -8
- package/es/layout/style/token.less +30 -0
- package/es/link/index.d.ts +3 -0
- package/es/link/index.js +3 -0
- package/es/link/link.d.ts +18 -0
- package/es/link/link.js +89 -0
- package/es/link/style/css.js +2 -0
- package/es/link/style/index.css +155 -0
- package/es/link/style/index.d.ts +2 -0
- package/es/link/style/index.js +2 -0
- package/es/link/style/index.less +61 -0
- package/es/link/style/mixin.less +7 -0
- package/es/link/style/token.less +24 -0
- package/es/menu/menuItem.js +1 -2
- package/es/menu/style/index.css +89 -80
- package/es/menu/style/index.less +51 -26
- package/es/menu/style/mixin.less +16 -19
- package/es/menu/style/token.less +32 -0
- package/es/message/style/index.css +23 -13
- package/es/message/style/index.less +15 -13
- package/es/message/style/token.less +21 -0
- package/es/modal/style/index.css +37 -28
- package/es/modal/style/index.less +16 -26
- package/es/modal/style/mixin.less +2 -0
- package/es/modal/style/token.less +46 -0
- package/es/notification/content.js +1 -1
- package/es/notification/style/index.css +34 -25
- package/es/notification/style/index.less +21 -20
- package/es/notification/style/token.less +28 -0
- package/es/pagination/pagination.js +2 -2
- package/es/pagination/style/index.css +159 -159
- package/es/pagination/style/index.less +104 -113
- package/es/pagination/style/token.less +28 -0
- package/es/popconfirm/style/index.css +54 -33
- package/es/popconfirm/style/index.less +41 -20
- package/es/popconfirm/style/token.less +28 -0
- package/es/progress/style/index.css +41 -27
- package/es/progress/style/index.less +24 -8
- package/es/progress/style/mixin.less +2 -1
- package/es/progress/style/token.less +40 -0
- package/es/radio/style/index.css +91 -76
- package/es/radio/style/index.less +76 -64
- package/es/radio/style/token.less +47 -0
- package/es/rate/style/index.css +26 -17
- package/es/rate/style/index.less +4 -3
- package/es/rate/style/token.less +18 -0
- package/es/search/style/index.css +103 -82
- package/es/search/style/index.less +49 -35
- package/es/search/style/mixin.less +4 -2
- package/es/search/style/token.less +60 -0
- package/es/select/select.js +3 -14
- package/es/select/style/index.css +46 -37
- package/es/select/style/index.less +10 -10
- package/es/select/style/mixin.less +4 -7
- package/es/select/style/token.less +43 -0
- package/es/slider/slider.js +5 -13
- package/es/slider/sliderTooltip.js +0 -1
- package/es/slider/style/index.css +21 -12
- package/es/slider/style/index.less +10 -10
- package/es/slider/style/mixin.less +3 -1
- package/es/slider/style/token.less +17 -0
- package/es/space/style/index.css +9 -0
- package/es/spin/style/index.css +23 -14
- package/es/spin/style/index.less +3 -2
- package/es/spin/style/mixin.less +1 -0
- package/es/spin/style/token.less +15 -0
- package/es/split-panel/style/index.css +35 -44
- package/es/split-panel/style/index.less +16 -34
- package/es/split-panel/style/token.less +23 -0
- package/es/stepper/style/index.css +50 -25
- package/es/stepper/style/index.less +45 -11
- package/es/stepper/style/mixin.less +7 -5
- package/es/stepper/style/token.less +28 -0
- package/es/steps/Steps.js +4 -1
- package/es/steps/style/index.css +74 -37
- package/es/steps/style/index.less +281 -189
- package/es/steps/style/token.less +31 -0
- package/es/style/mixins/index.less +10 -9
- package/es/style/mixins/overlay.less +2 -2
- package/es/style/themes/default.less +22 -12
- package/es/style/themes/token.less +128 -0
- package/es/switch/style/index.css +38 -29
- package/es/switch/style/index.less +17 -6
- package/es/switch/style/mixin.less +6 -5
- package/es/switch/style/token.less +45 -0
- package/es/tabs/style/index.css +59 -50
- package/es/tabs/style/index.less +3 -3
- package/es/tabs/style/mixin.less +2 -0
- package/es/tabs/style/token.less +32 -0
- package/es/tabs/tabs.js +3 -1
- package/es/tag/style/index.css +122 -113
- package/es/tag/style/index.less +19 -19
- package/es/tag/style/mixin.less +2 -1
- package/es/tag/style/token.less +42 -0
- package/es/timeline/style/index.css +40 -30
- package/es/timeline/style/index.less +33 -30
- package/es/timeline/style/token.less +45 -0
- package/es/tooltip/style/index.css +26 -17
- package/es/tooltip/style/index.less +6 -5
- package/es/tooltip/style/token.less +20 -0
- package/es/transfer/operation.js +2 -2
- package/es/transfer/style/index.css +37 -24
- package/es/transfer/style/index.less +4 -0
- package/es/transfer/style/mixins.less +2 -0
- package/es/transfer/style/token.less +29 -0
- package/es/tree/style/index.css +37 -37
- package/es/tree/style/index.less +8 -20
- package/es/tree/style/mixin.less +1 -5
- package/es/tree/style/token.less +27 -0
- package/es/typography/style/index.css +46 -53
- package/es/typography/style/index.less +15 -15
- package/es/typography/style/mixin.less +9 -11
- package/es/typography/style/token.less +38 -0
- package/es/upload/style/index.css +41 -31
- package/es/upload/style/index.less +27 -25
- package/es/upload/style/token.less +28 -0
- package/lib/alert/style/index.css +32 -30
- package/lib/alert/style/index.less +36 -37
- package/lib/alert/style/token.less +29 -0
- package/lib/anchor/style/index.css +48 -34
- package/lib/anchor/style/index.less +19 -16
- package/lib/anchor/style/mixin.less +1 -0
- package/lib/anchor/style/token.less +33 -0
- package/lib/avatar/style/index.css +18 -18
- package/lib/avatar/style/index.less +4 -25
- package/lib/avatar/style/mixin.less +21 -4
- package/lib/avatar/style/token.less +20 -0
- package/lib/badge/style/index.css +38 -29
- package/lib/badge/style/index.less +28 -30
- package/lib/badge/style/mixin.less +1 -5
- package/lib/badge/style/token.less +23 -0
- package/lib/base-data/style/index.css +25 -16
- package/lib/base-data/style/index.less +17 -17
- package/lib/base-data/style/token.less +27 -0
- package/lib/button/button.d.ts +1 -3
- package/lib/button/button.js +3 -15
- package/lib/button/style/index.css +80 -81
- package/lib/button/style/index.less +43 -51
- package/lib/button/style/mixin.less +6 -4
- package/lib/button/style/token.less +88 -0
- package/lib/card/card.d.ts +1 -0
- package/lib/card/card.js +4 -1
- package/lib/card/style/index.css +48 -23
- package/lib/card/style/index.less +43 -23
- package/lib/card/style/token.less +28 -0
- package/lib/carousel/style/index.css +36 -30
- package/lib/carousel/style/index.less +14 -6
- package/lib/carousel/style/mixin.less +1 -4
- package/lib/carousel/style/token.less +20 -0
- package/lib/cascader/cascader.js +1 -1
- package/lib/cascader/style/index.css +35 -26
- package/lib/cascader/style/index.less +24 -23
- package/lib/cascader/style/token.less +28 -0
- package/lib/checkbox/style/index.css +86 -80
- package/lib/checkbox/style/index.less +26 -27
- package/lib/checkbox/style/token.less +48 -0
- package/lib/city-picker/style/index.css +24 -14
- package/lib/city-picker/style/index.less +16 -16
- package/lib/city-picker/style/token.less +25 -0
- package/lib/collapse/style/index.css +37 -26
- package/lib/collapse/style/index.less +7 -5
- package/lib/collapse/style/mixin.less +1 -5
- package/lib/collapse/style/token.less +26 -0
- package/lib/config-provider/compDefaultProps.d.ts +4 -1
- package/lib/config-provider/compDefaultProps.js +5 -2
- package/lib/date-picker/style/index.css +81 -72
- package/lib/date-picker/style/index.less +36 -36
- package/lib/date-picker/style/mixin.less +20 -18
- package/lib/date-picker/style/token.less +71 -0
- package/lib/drawer/drawer.d.ts +0 -1
- package/lib/drawer/drawer.js +6 -26
- package/lib/drawer/style/index.css +37 -31
- package/lib/drawer/style/index.less +24 -39
- package/lib/drawer/style/token.less +23 -0
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.js +13 -8
- package/lib/dropdown/menu.d.ts +1 -1
- package/lib/dropdown/menu.js +3 -3
- package/lib/dropdown/style/index.css +57 -48
- package/lib/dropdown/style/index.less +27 -24
- package/lib/dropdown/style/token.less +26 -0
- package/lib/empty/defaultEmptyImg.d.ts +2 -0
- package/lib/empty/defaultEmptyImg.js +113 -0
- package/lib/empty/empty.d.ts +5 -1
- package/lib/empty/empty.js +13 -9
- package/lib/empty/illustrationEmptyImg.d.ts +2 -0
- package/lib/empty/illustrationEmptyImg.js +460 -0
- package/lib/empty/style/index.css +12 -3
- package/lib/empty/style/index.less +1 -1
- package/lib/empty/style/token.less +12 -0
- package/lib/filter/style/index.css +44 -32
- package/lib/filter/style/index.less +34 -32
- package/lib/filter/style/token.less +28 -0
- package/lib/form/style/index.css +19 -10
- package/lib/form/style/index.less +9 -6
- package/lib/form/style/token.less +27 -0
- package/lib/grid/style/index.css +9 -0
- package/lib/image/style/index.css +32 -23
- package/lib/image/style/index.less +23 -22
- package/lib/image/style/token.less +45 -0
- package/lib/image-cropper/style/index.css +9 -0
- package/lib/image-cropper/style/index.less +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -0
- package/lib/input/style/index.css +97 -88
- package/lib/input/style/index.less +34 -31
- package/lib/input/style/mixin.less +54 -47
- package/lib/input/style/token.less +46 -0
- package/lib/input-number/style/css.js +2 -0
- package/lib/input-number/style/index.css +25 -16
- package/lib/input-number/style/index.d.ts +1 -0
- package/lib/input-number/style/index.js +2 -0
- package/lib/input-number/style/index.less +12 -12
- package/lib/input-number/style/mixin.less +4 -2
- package/lib/input-number/style/token.less +20 -0
- package/lib/layout/style/index.css +41 -32
- package/lib/layout/style/index.less +9 -8
- package/lib/layout/style/token.less +30 -0
- package/lib/link/index.d.ts +3 -0
- package/lib/link/index.js +36 -0
- package/lib/link/link.d.ts +18 -0
- package/lib/link/link.js +120 -0
- package/lib/link/style/css.js +5 -0
- package/lib/link/style/index.css +155 -0
- package/lib/link/style/index.d.ts +2 -0
- package/lib/link/style/index.js +5 -0
- package/lib/link/style/index.less +61 -0
- package/lib/link/style/mixin.less +7 -0
- package/lib/link/style/token.less +24 -0
- package/lib/menu/menuItem.js +1 -2
- package/lib/menu/style/index.css +89 -80
- package/lib/menu/style/index.less +51 -26
- package/lib/menu/style/mixin.less +16 -19
- package/lib/menu/style/token.less +32 -0
- package/lib/message/style/index.css +23 -13
- package/lib/message/style/index.less +15 -13
- package/lib/message/style/token.less +21 -0
- package/lib/modal/style/index.css +37 -28
- package/lib/modal/style/index.less +16 -26
- package/lib/modal/style/mixin.less +2 -0
- package/lib/modal/style/token.less +46 -0
- package/lib/notification/content.js +1 -1
- package/lib/notification/style/index.css +34 -25
- package/lib/notification/style/index.less +21 -20
- package/lib/notification/style/token.less +28 -0
- package/lib/pagination/pagination.js +2 -2
- package/lib/pagination/style/index.css +159 -159
- package/lib/pagination/style/index.less +104 -113
- package/lib/pagination/style/token.less +28 -0
- package/lib/popconfirm/style/index.css +54 -33
- package/lib/popconfirm/style/index.less +41 -20
- package/lib/popconfirm/style/token.less +28 -0
- package/lib/progress/style/index.css +41 -27
- package/lib/progress/style/index.less +24 -8
- package/lib/progress/style/mixin.less +2 -1
- package/lib/progress/style/token.less +40 -0
- package/lib/radio/style/index.css +91 -76
- package/lib/radio/style/index.less +76 -64
- package/lib/radio/style/token.less +47 -0
- package/lib/rate/style/index.css +26 -17
- package/lib/rate/style/index.less +4 -3
- package/lib/rate/style/token.less +18 -0
- package/lib/search/style/index.css +103 -82
- package/lib/search/style/index.less +49 -35
- package/lib/search/style/mixin.less +4 -2
- package/lib/search/style/token.less +60 -0
- package/lib/select/select.js +3 -14
- package/lib/select/style/index.css +46 -37
- package/lib/select/style/index.less +10 -10
- package/lib/select/style/mixin.less +4 -7
- package/lib/select/style/token.less +43 -0
- package/lib/slider/slider.js +5 -13
- package/lib/slider/sliderTooltip.js +0 -1
- package/lib/slider/style/index.css +21 -12
- package/lib/slider/style/index.less +10 -10
- package/lib/slider/style/mixin.less +3 -1
- package/lib/slider/style/token.less +17 -0
- package/lib/space/style/index.css +9 -0
- package/lib/spin/style/index.css +23 -14
- package/lib/spin/style/index.less +3 -2
- package/lib/spin/style/mixin.less +1 -0
- package/lib/spin/style/token.less +15 -0
- package/lib/split-panel/style/index.css +35 -44
- package/lib/split-panel/style/index.less +16 -34
- package/lib/split-panel/style/token.less +23 -0
- package/lib/stepper/style/index.css +50 -25
- package/lib/stepper/style/index.less +45 -11
- package/lib/stepper/style/mixin.less +7 -5
- package/lib/stepper/style/token.less +28 -0
- package/lib/steps/Steps.js +4 -1
- package/lib/steps/style/index.css +74 -37
- package/lib/steps/style/index.less +281 -189
- package/lib/steps/style/token.less +31 -0
- package/lib/style/components.less +1 -0
- package/lib/style/mixins/index.less +10 -9
- package/lib/style/mixins/overlay.less +2 -2
- package/lib/style/themes/default.less +22 -12
- package/lib/style/themes/token.less +128 -0
- package/lib/switch/style/index.css +38 -29
- package/lib/switch/style/index.less +17 -6
- package/lib/switch/style/mixin.less +6 -5
- package/lib/switch/style/token.less +45 -0
- package/lib/tabs/style/index.css +59 -50
- package/lib/tabs/style/index.less +3 -3
- package/lib/tabs/style/mixin.less +2 -0
- package/lib/tabs/style/token.less +32 -0
- package/lib/tabs/tabs.js +3 -1
- package/lib/tag/style/index.css +122 -113
- package/lib/tag/style/index.less +19 -19
- package/lib/tag/style/mixin.less +2 -1
- package/lib/tag/style/token.less +42 -0
- package/lib/timeline/style/index.css +40 -30
- package/lib/timeline/style/index.less +33 -30
- package/lib/timeline/style/token.less +45 -0
- package/lib/tooltip/style/index.css +26 -17
- package/lib/tooltip/style/index.less +6 -5
- package/lib/tooltip/style/token.less +20 -0
- package/lib/transfer/operation.js +2 -2
- package/lib/transfer/style/index.css +37 -24
- package/lib/transfer/style/index.less +4 -0
- package/lib/transfer/style/mixins.less +2 -0
- package/lib/transfer/style/token.less +29 -0
- package/lib/tree/style/index.css +37 -37
- package/lib/tree/style/index.less +8 -20
- package/lib/tree/style/mixin.less +1 -5
- package/lib/tree/style/token.less +27 -0
- package/lib/typography/style/index.css +46 -53
- package/lib/typography/style/index.less +15 -15
- package/lib/typography/style/mixin.less +9 -11
- package/lib/typography/style/token.less +38 -0
- package/lib/upload/style/index.css +41 -31
- package/lib/upload/style/index.less +27 -25
- package/lib/upload/style/token.less +28 -0
- package/package.json +5 -4
- package/es/base-data/style/mixin.less +0 -5
- package/es/empty/style/mixin.less +0 -5
- package/es/form/style/mixin.less +0 -5
- package/es/steps/style/mixin.less +0 -41
- package/lib/base-data/style/mixin.less +0 -5
- package/lib/empty/style/mixin.less +0 -5
- package/lib/form/style/mixin.less +0 -5
- package/lib/steps/style/mixin.less +0 -41
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
1
3
|
// 按钮默认样式Mixins
|
|
2
4
|
.btn() {
|
|
3
5
|
padding: 0;
|
|
@@ -5,10 +7,10 @@
|
|
|
5
7
|
display: inline-block;
|
|
6
8
|
vertical-align: middle;
|
|
7
9
|
box-sizing: border-box;
|
|
8
|
-
font-weight: @font-weight;
|
|
9
|
-
border: @btn-border-width
|
|
10
|
+
font-weight: @btn-g-font-weight;
|
|
11
|
+
border: @btn-border-width solid transparent;
|
|
10
12
|
user-select: none;
|
|
11
|
-
border-radius: @radius-
|
|
13
|
+
border-radius: @btn-g-radius-border;
|
|
12
14
|
text-align: center;
|
|
13
15
|
background-color: transparent;
|
|
14
16
|
cursor: pointer;
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
.btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width) {
|
|
29
31
|
height: @height;
|
|
30
32
|
min-width: @min-width;
|
|
31
|
-
line-height: @height - (@padding-vertical * 2) - (@btn-border-width * 2);
|
|
33
|
+
line-height: calc(@height - (@padding-vertical * 2) - (@btn-border-width * 2));
|
|
32
34
|
font-size: @font-size;
|
|
33
35
|
padding: @padding-vertical @padding-horizontal;
|
|
34
36
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@button-custom-prefix: ~'--@{kd-prefix}-c-button';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@btn-primary-background-color: var(~'@{button-custom-prefix}-primary-color-background', @color-theme); // 基础背景颜色
|
|
7
|
+
@btn-primary-border-color: var(~'@{button-custom-prefix}-primary-color-border', @color-theme); // 基础边框颜色
|
|
8
|
+
@btn-primary-font-color: var(~'@{button-custom-prefix}-primary-color-text', @color-white); // 基础文字颜色
|
|
9
|
+
@btn-primary-background-color-hover: var(~'@{button-custom-prefix}-primary-color-background-hover', @color-theme-hover); // 基础hover背景颜色
|
|
10
|
+
@btn-primary-border-color-hover: var(~'@{button-custom-prefix}-primary-color-border-hover', @color-theme-hover); // 基础hover边框颜色
|
|
11
|
+
@btn-primary-background-color-active: var(~'@{button-custom-prefix}-primary-color-background-active', @color-theme-click); // 基础active背景颜色
|
|
12
|
+
@btn-primary-border-color-active: var(~'@{button-custom-prefix}-primary-color-border-active', @color-theme); // 基础active边框颜色
|
|
13
|
+
@btn-primary-background-color-disabled: var(~'@{button-custom-prefix}-primary-color-background-disabled', @color-theme-disabled); // 基础disabled背景颜色 禁用状态
|
|
14
|
+
@btn-primary-border-color-disabled: var(~'@{button-custom-prefix}-primary-color-border-disabled', @color-theme-disabled); // 基础disabled边框颜色
|
|
15
|
+
|
|
16
|
+
@btn-ghost-background-color: var(~'@{button-custom-prefix}-ghost-color-background', transparent); // 幽灵背景颜色
|
|
17
|
+
@btn-ghost-border-color: var(~'@{button-custom-prefix}-ghost-color-border', @color-border-strong); //幽灵边框颜色
|
|
18
|
+
@btn-ghost-font-color: var(~'@{button-custom-prefix}-ghost-color-text', @color-text-secondary); // 幽灵按钮文字颜色
|
|
19
|
+
@btn-ghost-border-color-hover: var(~'@{button-custom-prefix}-ghost-color-border-hover', @color-theme); //幽灵hover边框颜色
|
|
20
|
+
@btn-ghost-font-color-hover: var(~'@{button-custom-prefix}-ghost-color-text-hover', @color-theme); // 幽灵hover按钮文字颜色
|
|
21
|
+
@btn-ghost-border-color-active: var(~'@{button-custom-prefix}-ghost-color-border-active', @color-theme-click); //幽灵active边框颜色
|
|
22
|
+
@btn-ghost-background-color-disabled: var(~'@{button-custom-prefix}-ghost-color-background-disabled', @color-background-contain-disabled); // 幽灵disabled背景颜色
|
|
23
|
+
@btn-ghost-font-color-active: var(~'@{button-custom-prefix}-ghost-color-text-active', @color-theme-click); // 幽灵active按钮文字颜色
|
|
24
|
+
@btn-ghost-border-color-disabled: var(~'@{button-custom-prefix}-ghost-color-border-disabled', @color-disabled); //幽灵disabled边框颜色
|
|
25
|
+
@btn-ghost-font-color-disabled: var(~'@{button-custom-prefix}-ghost-color-text-disabled', @color-disabled); // 幽灵disabled按钮文字颜色
|
|
26
|
+
|
|
27
|
+
@btn-second-background-color: var(~'@{button-custom-prefix}-second-color-background', @color-background-3); // 次要背景颜色
|
|
28
|
+
@btn-second-border-color: var(~'@{button-custom-prefix}-second-color-border', @color-border-strong-3); // 次要边框颜色
|
|
29
|
+
@btn-second-font-color: var(~'@{button-custom-prefix}-second-color-text', @color-text-secondary-3); // 次要文字颜色
|
|
30
|
+
@btn-second-background-color-hover: var(~'@{button-custom-prefix}-second-color-background-hover', @color-white); // 次要hover背景颜色
|
|
31
|
+
@btn-second-border-color-hover: var(~'@{button-custom-prefix}-second-color-border-hover', @color-border-strong); // 次要hover边框颜色
|
|
32
|
+
@btn-second-font-color-hover: var(~'@{button-custom-prefix}-second-color-text-hover', @color-text-secondary); // 次要hover文字颜色
|
|
33
|
+
@btn-second-background-color-active: var(~'@{button-custom-prefix}-second-color-background-active', @color-white); // 次要active背景颜色
|
|
34
|
+
@btn-second-border-color-active: var(~'@{button-custom-prefix}-second-color-border-active', @color-border-strong); // 次要active边框颜色
|
|
35
|
+
@btn-second-font-color-active: var(~'@{button-custom-prefix}-second-color-text-active', @color-text-secondary); // 次要active文字颜色
|
|
36
|
+
@btn-second-background-color-disabled: var(~'@{button-custom-prefix}-second-color-background-disabled', @color-background-3); // 次要disabled背景颜色
|
|
37
|
+
@btn-second-border-color-disabled: var(~'@{button-custom-prefix}-second-color-border-disabled', @color-text-secondary-3); // 次要disabled边框颜色
|
|
38
|
+
@btn-second-font-color-disabled: var(~'@{button-custom-prefix}-second-color-text-disabled', @color-text-secondary-3); // 次要disabled文字颜色
|
|
39
|
+
|
|
40
|
+
@btn-text-g-text-color: var(~'@{button-custom-prefix}-text-color-text', @color-theme);
|
|
41
|
+
@btn-text-g-text-color-hover: var(~'@{button-custom-prefix}-text-color-text-hover', @color-theme-hover);
|
|
42
|
+
@btn-text-g-text-color-active: var(~'@{button-custom-prefix}-text-color-text-active', @color-theme-click);
|
|
43
|
+
@btn-text-g-text-color-disabled: var(~'@{button-custom-prefix}-text-color-text-disabled', @color-disabled);
|
|
44
|
+
|
|
45
|
+
@btn-disabled-background-color: var(~'@{button-custom-prefix}-color-background-disabled', @color-background-contain-disabled); // 禁用状态 背景颜色
|
|
46
|
+
@btn-disabled-border-color: var(~'@{button-custom-prefix}-color-border-disabled', @color-border-strong); // 禁用状态 边框颜色
|
|
47
|
+
@btn-disabled-font-color: var(~'@{button-custom-prefix}-text-color-disabled', @color-white); // 禁用状态 文字颜色
|
|
48
|
+
|
|
49
|
+
@btn-danger-background-color: var(~'@{button-custom-prefix}-danger-color-background', @color-error); // 危险状态 背景颜色
|
|
50
|
+
@btn-danger-border-color: var(~'@{button-custom-prefix}-danger-color-border', @color-error); // 危险状态 边框颜色
|
|
51
|
+
@btn-danger-font-color: var(~'@{button-custom-prefix}-danger-color-text', @color-white); // 危险状态 文字颜色
|
|
52
|
+
|
|
53
|
+
@btn-g-text-color-loading: var(~'@{button-custom-prefix}-text-color-loading', @color-theme);
|
|
54
|
+
@btn-primary-g-text-color-loading: var(~'@{button-custom-prefix}-primary-color-text-loading', @color-white);
|
|
55
|
+
|
|
56
|
+
@btn-background-ghost-g-text-color: var(~'@{button-custom-prefix}-background-ghost-color-text', @color-theme);
|
|
57
|
+
@btn-background-ghost-g-text-color-hover: var(~'@{button-custom-prefix}-background-ghost-color-text-hover', @color-white);
|
|
58
|
+
|
|
59
|
+
// duration
|
|
60
|
+
@btn-transition-fn: var(~'@{button-custom-prefix}-motion-timing-function', cubic-bezier(0.075, 0.82, 0.165, 1));
|
|
61
|
+
@btn-duration-fade: var(~'@{button-custom-prefix}-motion-duration-fade', @duration-slowly);
|
|
62
|
+
@btn-duration-wave: var(~'@{button-custom-prefix}-motion-duration-wave', @duration-quickly);
|
|
63
|
+
|
|
64
|
+
// font
|
|
65
|
+
@btn-g-font-weight: var(~'@{button-custom-prefix}-font-weight', @font-weight-light);
|
|
66
|
+
@btn-small-font-size: var(~'@{button-custom-prefix}-font-size-small', @font-size-small); // 小号 文字大小
|
|
67
|
+
@btn-middle-font-size: var(~'@{button-custom-prefix}-font-size-middle', @font-size-small); // 中号 文字大小
|
|
68
|
+
@btn-large-font-size: var(~'@{button-custom-prefix}-font-size-large', @font-size-large); // 大号 文字大小
|
|
69
|
+
|
|
70
|
+
// radius
|
|
71
|
+
@btn-g-radius-border: var(~'@{button-custom-prefix}-radius-border', @radius-border); //圆角
|
|
72
|
+
|
|
73
|
+
// sizing
|
|
74
|
+
@btn-border-width: var(~'@{button-custom-prefix}-sizing-border', 1px);
|
|
75
|
+
@btn-small-height: var(~'@{button-custom-prefix}-sizing-height-small', 24px); // 小号 高度
|
|
76
|
+
@btn-small-min-width: var(~'@{button-custom-prefix}-sizing-min-width-small', 60px); // 小号 最小宽度
|
|
77
|
+
@btn-middle-height: var(~'@{button-custom-prefix}-sizing-height-middle', 28px); // 中号 高度 高度配置
|
|
78
|
+
@btn-middle-min-width: var(~'@{button-custom-prefix}-sizing-min-width-middle', 60px); // 中号 最小宽度
|
|
79
|
+
@btn-large-height: var(~'@{button-custom-prefix}-sizing-height-large', 32px); // 大号 高度
|
|
80
|
+
@btn-large-min-width: var(~'@{button-custom-prefix}-sizing-min-width-large', 80px); // 大号 最小宽度
|
|
81
|
+
|
|
82
|
+
// spacing
|
|
83
|
+
@btn-small-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-small', 3px); // 小号 内间距 纵向
|
|
84
|
+
@btn-small-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-small', 8px); // 小号 内间距 横向
|
|
85
|
+
@btn-middle-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-middle', 5px); // 中号 内间距 纵向
|
|
86
|
+
@btn-middle-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-middle', 8px); // 中号 内间距 纵向 宽度配置
|
|
87
|
+
@btn-large-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-large', 6px); // 大号 内间距 纵向
|
|
88
|
+
@btn-large-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-large', 8px); // 大号 内间距 横向
|
package/es/card/card.d.ts
CHANGED
package/es/card/card.js
CHANGED
|
@@ -18,6 +18,7 @@ var Card = function Card(props) {
|
|
|
18
18
|
title = _getCompProps.title,
|
|
19
19
|
avatar = _getCompProps.avatar,
|
|
20
20
|
actions = _getCompProps.actions,
|
|
21
|
+
extra = _getCompProps.extra,
|
|
21
22
|
children = _getCompProps.children,
|
|
22
23
|
className = _getCompProps.className,
|
|
23
24
|
hoverable = _getCompProps.hoverable,
|
|
@@ -57,7 +58,9 @@ var Card = function Card(props) {
|
|
|
57
58
|
style: bodyStyle
|
|
58
59
|
}, children), actions && /*#__PURE__*/React.createElement("div", {
|
|
59
60
|
className: "".concat(prefixCls, "-actions")
|
|
60
|
-
}, actions)
|
|
61
|
+
}, actions), extra && /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: "".concat(prefixCls, "-extra")
|
|
63
|
+
}, extra));
|
|
61
64
|
};
|
|
62
65
|
|
|
63
66
|
Card.displayName = 'Card';
|
package/es/card/style/index.css
CHANGED
|
@@ -92,12 +92,21 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
/* 多行显示省略号 */
|
|
96
105
|
/* 单行显示省略号 */
|
|
97
106
|
/** 浮层箭头样式 **/
|
|
98
107
|
.kd-card {
|
|
99
108
|
position: relative;
|
|
100
|
-
background-color: #fff;
|
|
109
|
+
background-color: var(--kd-c-card-color-background, var(--kd-g-color-white, #fff));
|
|
101
110
|
-webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
|
|
102
111
|
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
|
|
103
112
|
}
|
|
@@ -106,11 +115,11 @@
|
|
|
106
115
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
107
116
|
}
|
|
108
117
|
.kd-card .kd-card-header {
|
|
109
|
-
height: 40px;
|
|
110
|
-
padding: 0 58px 0 12px;
|
|
118
|
+
height: var(--kd-c-card-sizing-title-height, 40px);
|
|
119
|
+
padding: 0 58px 0 var(--kd-c-card-spacing-padding-horizontal, 12px);
|
|
111
120
|
line-height: 40px;
|
|
112
|
-
font-size: 14px;
|
|
113
|
-
color: #212121;
|
|
121
|
+
font-size: var(--kd-c-card-title-font-size, var(--kd-g-font-size-middle, 14px));
|
|
122
|
+
color: var(--kd-c-card-title-color, var(--kd-g-color-text-primary, #212121));
|
|
114
123
|
white-space: nowrap;
|
|
115
124
|
overflow: hidden;
|
|
116
125
|
text-overflow: ellipsis;
|
|
@@ -123,12 +132,12 @@
|
|
|
123
132
|
-ms-flex-align: center;
|
|
124
133
|
align-items: center;
|
|
125
134
|
height: 64px;
|
|
126
|
-
padding: 0 12px;
|
|
135
|
+
padding: 0 var(--kd-c-card-spacing-padding-horizontal, 12px);
|
|
127
136
|
}
|
|
128
137
|
.kd-card .kd-card-avatar .kd-card-avatar-img {
|
|
129
138
|
width: 42px;
|
|
130
139
|
height: 42px;
|
|
131
|
-
margin-right: 8px;
|
|
140
|
+
margin-right: var(--kd-c-card-spacing-padding-vertical, 8px);
|
|
132
141
|
overflow: hidden;
|
|
133
142
|
}
|
|
134
143
|
.kd-card .kd-card-avatar .kd-card-avatar-img.circle {
|
|
@@ -139,44 +148,60 @@
|
|
|
139
148
|
height: 100%;
|
|
140
149
|
}
|
|
141
150
|
.kd-card .kd-card-avatar .kd-card-avatar-title {
|
|
142
|
-
font-size: 14px;
|
|
143
|
-
color: #212121;
|
|
151
|
+
font-size: var(--kd-c-card-title-font-size, var(--kd-g-font-size-middle, 14px));
|
|
152
|
+
color: var(--kd-c-card-title-color, var(--kd-g-color-text-primary, #212121));
|
|
144
153
|
}
|
|
145
154
|
.kd-card .kd-card-avatar .kd-card-avatar-desc {
|
|
146
|
-
font-size: 12px;
|
|
147
|
-
color: #666;
|
|
155
|
+
font-size: var(--kd-c-card-content-font-size, var(--kd-g-font-size-small, 12px));
|
|
156
|
+
color: var(--kd-c-card-content-color, var(--kd-g-color-text-secondary, #666));
|
|
148
157
|
}
|
|
149
158
|
.kd-card .kd-checkbox {
|
|
150
159
|
position: absolute;
|
|
151
|
-
top: 12px;
|
|
152
|
-
right: 12px;
|
|
160
|
+
top: var(--kd-c-card-spacing-padding-horizontal, 12px);
|
|
161
|
+
right: var(--kd-c-card-spacing-padding-horizontal, 12px);
|
|
153
162
|
}
|
|
154
163
|
.kd-card .kd-card-tags {
|
|
155
|
-
padding: 4px 12px;
|
|
164
|
+
padding: 4px var(--kd-c-card-spacing-padding-horizontal, 12px);
|
|
156
165
|
}
|
|
157
166
|
.kd-card .kd-card-tags .kd-tag:not(:last-child) {
|
|
158
|
-
margin-right: 8px;
|
|
167
|
+
margin-right: var(--kd-c-card-spacing-padding-vertical, 8px);
|
|
159
168
|
}
|
|
160
169
|
.kd-card .kd-card-body {
|
|
161
|
-
padding: 8px 12px;
|
|
162
|
-
font-size: 12px;
|
|
163
|
-
color: #666;
|
|
170
|
+
padding: var(--kd-c-card-spacing-padding-vertical, 8px) var(--kd-c-card-spacing-padding-horizontal, 12px);
|
|
171
|
+
font-size: var(--kd-c-card-content-font-size, var(--kd-g-font-size-small, 12px));
|
|
172
|
+
color: var(--kd-c-card-content-color, var(--kd-g-color-text-secondary, #666));
|
|
164
173
|
}
|
|
165
174
|
.kd-card .kd-card-actions {
|
|
166
175
|
height: 32px;
|
|
167
|
-
padding: 0 12px;
|
|
176
|
+
padding: 0 var(--kd-c-card-spacing-padding-horizontal, 12px);
|
|
168
177
|
line-height: 32px;
|
|
169
178
|
text-align: right;
|
|
170
179
|
background-color: #fafafa;
|
|
171
180
|
}
|
|
172
181
|
.kd-card .kd-card-actions > a {
|
|
173
182
|
margin-left: 16px;
|
|
174
|
-
font-size: 12px;
|
|
175
|
-
color: #5582f3;
|
|
183
|
+
font-size: var(--kd-c-card-content-font-size, var(--kd-g-font-size-small, 12px));
|
|
184
|
+
color: var(--kd-c-card-actions-color, var(--kd-g-color-theme, #5582f3));
|
|
176
185
|
}
|
|
177
186
|
.kd-card .kd-card-actions > a:hover {
|
|
178
|
-
color: #87adff;
|
|
187
|
+
color: var(--kd-c-card-actions-color-hover, var(--kd-g-color-theme-5, #87adff));
|
|
179
188
|
}
|
|
180
189
|
.kd-card .kd-card-actions > a:active {
|
|
181
|
-
color: #375cca;
|
|
190
|
+
color: var(--kd-c-card-actions-color-active, var(--kd-g-color-theme-7, #375cca));
|
|
191
|
+
}
|
|
192
|
+
.kd-card-extra {
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: 6px;
|
|
195
|
+
right: 4px;
|
|
196
|
+
}
|
|
197
|
+
.kd-card-extra i {
|
|
198
|
+
font-size: 22px;
|
|
199
|
+
width: 32px;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
202
|
+
.kd-card-lists-icon {
|
|
203
|
+
font-size: 32px;
|
|
204
|
+
position: absolute;
|
|
205
|
+
top: 6px;
|
|
206
|
+
right: 40px;
|
|
182
207
|
}
|
package/es/card/style/index.less
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@card-prefix-cls: ~'@{kd-prefix}-card';
|
|
5
6
|
|
|
6
7
|
.@{card-prefix-cls} {
|
|
7
8
|
position: relative;
|
|
8
|
-
background-color: @
|
|
9
|
+
background-color: @card-color-background;
|
|
9
10
|
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
|
|
10
11
|
|
|
11
12
|
&.hoverable:hover {
|
|
@@ -13,9 +14,9 @@
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.@{card-prefix-cls}-header {
|
|
16
|
-
height: @card-
|
|
17
|
-
padding: 0 58px 0 @card-
|
|
18
|
-
line-height:
|
|
17
|
+
height: @card-sizing-title-height;
|
|
18
|
+
padding: 0 58px 0 @card-spacing-padding-horizontal;
|
|
19
|
+
line-height: 40px;
|
|
19
20
|
font-size: @card-title-font-size;
|
|
20
21
|
color: @card-title-color;
|
|
21
22
|
.ellipsis;
|
|
@@ -24,13 +25,13 @@
|
|
|
24
25
|
.@{card-prefix-cls}-avatar {
|
|
25
26
|
display: flex;
|
|
26
27
|
align-items: center;
|
|
27
|
-
height:
|
|
28
|
-
padding: 0 @card-
|
|
28
|
+
height: 64px;
|
|
29
|
+
padding: 0 @card-spacing-padding-horizontal;
|
|
29
30
|
|
|
30
31
|
.@{card-prefix-cls}-avatar-img {
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
33
|
-
margin-right:
|
|
32
|
+
width: 42px;
|
|
33
|
+
height: 42px;
|
|
34
|
+
margin-right: @card-spacing-padding-vertical;
|
|
34
35
|
overflow: hidden;
|
|
35
36
|
|
|
36
37
|
&.circle {
|
|
@@ -56,43 +57,62 @@
|
|
|
56
57
|
|
|
57
58
|
.@{kd-prefix}-checkbox {
|
|
58
59
|
position: absolute;
|
|
59
|
-
top: @card-
|
|
60
|
-
right: @card-
|
|
60
|
+
top: @card-spacing-padding-horizontal;
|
|
61
|
+
right: @card-spacing-padding-horizontal;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
.@{card-prefix-cls}-tags {
|
|
64
|
-
padding: @card-
|
|
65
|
+
padding: 4px @card-spacing-padding-horizontal;
|
|
65
66
|
|
|
66
67
|
.@{kd-prefix}-tag:not(:last-child) {
|
|
67
|
-
margin-right:
|
|
68
|
-
}
|
|
68
|
+
margin-right: @card-spacing-padding-vertical;
|
|
69
|
+
}
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.@{card-prefix-cls}-body {
|
|
72
|
-
padding:
|
|
73
|
+
padding: @card-spacing-padding-vertical @card-spacing-padding-horizontal;
|
|
73
74
|
font-size: @card-content-font-size;
|
|
74
75
|
color: @card-content-color;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
.@{card-prefix-cls}-actions {
|
|
78
|
-
height:
|
|
79
|
-
padding: 0 @card-
|
|
80
|
-
line-height:
|
|
79
|
+
height: 32px;
|
|
80
|
+
padding: 0 @card-spacing-padding-horizontal;
|
|
81
|
+
line-height: 32px;
|
|
81
82
|
text-align: right;
|
|
82
|
-
background-color:
|
|
83
|
+
background-color: #fafafa;
|
|
83
84
|
|
|
84
85
|
> a {
|
|
85
|
-
margin-left:
|
|
86
|
+
margin-left: 16px;
|
|
86
87
|
font-size: @card-content-font-size;
|
|
87
|
-
color: @
|
|
88
|
+
color: @card-actions-color;
|
|
88
89
|
|
|
89
90
|
&:hover {
|
|
90
|
-
color: @
|
|
91
|
+
color: @card-actions-color-hover;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
&:active {
|
|
94
|
-
color: @
|
|
95
|
+
color: @card-actions-color-active;
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
.@{card-prefix-cls}-extra {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 6px;
|
|
105
|
+
right: 4px;
|
|
106
|
+
i {
|
|
107
|
+
font-size: 22px;
|
|
108
|
+
width: 32px;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.@{card-prefix-cls}-lists-icon {
|
|
114
|
+
font-size: 32px;
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 6px;
|
|
117
|
+
right: 40px;
|
|
118
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "../../style/themes/token.less";
|
|
2
|
+
|
|
3
|
+
@card-prefix: '--@{kd-prefix}-c-card';
|
|
4
|
+
|
|
5
|
+
// shadow
|
|
6
|
+
// color
|
|
7
|
+
@card-color-background: var(~'@{card-prefix}-color-background', @color-white);
|
|
8
|
+
@card-actions-color: var(~'@{card-prefix}-actions-color', @color-theme);
|
|
9
|
+
@card-actions-color-hover: var(~'@{card-prefix}-actions-color-hover', @color-theme-5);
|
|
10
|
+
@card-actions-color-active: var(~'@{card-prefix}-actions-color-active', @color-theme-7);
|
|
11
|
+
@card-title-color: var(~'@{card-prefix}-title-color', @color-text-primary);
|
|
12
|
+
@card-content-color: var(~'@{card-prefix}-content-color', @color-text-secondary);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// sizing
|
|
16
|
+
@card-sizing-title-height: var(~'@{card-prefix}-sizing-title-height', 40px);
|
|
17
|
+
// spacing
|
|
18
|
+
@card-spacing-padding-horizontal: var(~'@{card-prefix}-spacing-padding-horizontal', 12px);
|
|
19
|
+
@card-spacing-padding-vertical: var(~'@{card-prefix}-spacing-padding-vertical', 8px);
|
|
20
|
+
|
|
21
|
+
// motion
|
|
22
|
+
// font
|
|
23
|
+
@card-title-font-size: var(~'@{card-prefix}-title-font-size', @font-size-middle);
|
|
24
|
+
@card-content-font-size: var(~'@{card-prefix}-content-font-size', @font-size-small);
|
|
25
|
+
|
|
26
|
+
// radius
|
|
27
|
+
// line-height
|
|
28
|
+
// z-index
|
|
@@ -123,6 +123,8 @@
|
|
|
123
123
|
flex-shrink: 0;
|
|
124
124
|
height: 100%;
|
|
125
125
|
width: 100%;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
border-radius: var(--kd-c-carousel-border-radius, 0px);
|
|
126
128
|
}
|
|
127
129
|
.kd-carousel-fadelist {
|
|
128
130
|
list-style: none;
|
|
@@ -202,12 +204,12 @@
|
|
|
202
204
|
top: 50%;
|
|
203
205
|
-webkit-transform: translateY(-50%);
|
|
204
206
|
transform: translateY(-50%);
|
|
205
|
-
left: 15px;
|
|
207
|
+
left: var(--kd-c-carousel-spacing-margin-left, 15px);
|
|
206
208
|
}
|
|
207
209
|
.kd-carousel-slidebar-left > li {
|
|
208
|
-
margin:
|
|
209
|
-
width:
|
|
210
|
-
height:
|
|
210
|
+
margin: var(--kd-c-carousel-dots-spacing-margin, 4px) 0;
|
|
211
|
+
width: var(--kd-c-carousel-dots-sizing-height, 4px);
|
|
212
|
+
height: var(--kd-c-carousel-dots-sizing-width, 12px);
|
|
211
213
|
}
|
|
212
214
|
.kd-carousel-slidebar-right {
|
|
213
215
|
display: -webkit-box;
|
|
@@ -220,12 +222,12 @@
|
|
|
220
222
|
top: 50%;
|
|
221
223
|
-webkit-transform: translateY(-50%);
|
|
222
224
|
transform: translateY(-50%);
|
|
223
|
-
right: 15px;
|
|
225
|
+
right: var(--kd-c-carousel-spacing-margin-right, 15px);
|
|
224
226
|
}
|
|
225
227
|
.kd-carousel-slidebar-right > li {
|
|
226
|
-
margin:
|
|
227
|
-
width:
|
|
228
|
-
height:
|
|
228
|
+
margin: var(--kd-c-carousel-dots-spacing-margin, 4px) 0;
|
|
229
|
+
width: var(--kd-c-carousel-dots-sizing-height, 4px);
|
|
230
|
+
height: var(--kd-c-carousel-dots-sizing-width, 12px);
|
|
229
231
|
}
|
|
230
232
|
.kd-carousel-slidebar-bottom {
|
|
231
233
|
display: -webkit-box;
|
|
@@ -238,12 +240,12 @@
|
|
|
238
240
|
left: 50%;
|
|
239
241
|
-webkit-transform: translateX(-50%);
|
|
240
242
|
transform: translateX(-50%);
|
|
241
|
-
bottom: 15px;
|
|
243
|
+
bottom: var(--kd-c-carousel-spacing-margin-bottom, 15px);
|
|
242
244
|
}
|
|
243
245
|
.kd-carousel-slidebar-bottom > li {
|
|
244
|
-
margin: 0
|
|
245
|
-
height:
|
|
246
|
-
width:
|
|
246
|
+
margin: 0 var(--kd-c-carousel-dots-spacing-margin, 4px);
|
|
247
|
+
height: var(--kd-c-carousel-dots-sizing-height, 4px);
|
|
248
|
+
width: var(--kd-c-carousel-dots-sizing-width, 12px);
|
|
247
249
|
}
|
|
248
250
|
.kd-carousel-slidebar-top {
|
|
249
251
|
display: -webkit-box;
|
|
@@ -256,16 +258,16 @@
|
|
|
256
258
|
left: 50%;
|
|
257
259
|
-webkit-transform: translateX(-50%);
|
|
258
260
|
transform: translateX(-50%);
|
|
259
|
-
top: 15px;
|
|
261
|
+
top: var(--kd-c-carousel-spacing-margin-top, 15px);
|
|
260
262
|
}
|
|
261
263
|
.kd-carousel-slidebar-top > li {
|
|
262
|
-
margin: 0
|
|
263
|
-
height:
|
|
264
|
-
width:
|
|
264
|
+
margin: 0 var(--kd-c-carousel-dots-spacing-margin, 4px);
|
|
265
|
+
height: var(--kd-c-carousel-dots-sizing-height, 4px);
|
|
266
|
+
width: var(--kd-c-carousel-dots-sizing-width, 12px);
|
|
265
267
|
}
|
|
266
|
-
.kd-carousel-slidebar-dot {
|
|
268
|
+
.kd-carousel-slidebar-dot > button {
|
|
267
269
|
display: block;
|
|
268
|
-
border-radius: 2px;
|
|
270
|
+
border-radius: var(--kd-c-carousel-dots-border-radius, 2px);
|
|
269
271
|
-webkit-box-sizing: border-box;
|
|
270
272
|
box-sizing: border-box;
|
|
271
273
|
border: 0;
|
|
@@ -274,14 +276,11 @@
|
|
|
274
276
|
width: 100%;
|
|
275
277
|
cursor: pointer;
|
|
276
278
|
outline: none;
|
|
277
|
-
|
|
279
|
+
background-color: var(--kd-c-carousel-dots-color-background, #D8D8D8);
|
|
278
280
|
}
|
|
279
|
-
.kd-carousel-slidebar-dot
|
|
280
|
-
opacity: 1;
|
|
281
|
-
}
|
|
282
|
-
.kd-carousel-slidebar-dot > button {
|
|
281
|
+
.kd-carousel-slidebar-dot {
|
|
283
282
|
display: block;
|
|
284
|
-
border-radius: 2px;
|
|
283
|
+
border-radius: var(--kd-c-carousel-dots-border-radius, 2px);
|
|
285
284
|
-webkit-box-sizing: border-box;
|
|
286
285
|
box-sizing: border-box;
|
|
287
286
|
border: 0;
|
|
@@ -291,6 +290,13 @@
|
|
|
291
290
|
cursor: pointer;
|
|
292
291
|
outline: none;
|
|
293
292
|
}
|
|
293
|
+
.kd-carousel-slidebar-dot-active {
|
|
294
|
+
opacity: 1;
|
|
295
|
+
}
|
|
296
|
+
.kd-carousel-slidebar-dot-active > button {
|
|
297
|
+
background-color: var(--kd-c-carousel-dots-color-hover, #666666);
|
|
298
|
+
opacity: 1;
|
|
299
|
+
}
|
|
294
300
|
.vertical {
|
|
295
301
|
display: -webkit-box;
|
|
296
302
|
display: -ms-flexbox;
|
|
@@ -304,9 +310,9 @@
|
|
|
304
310
|
transform: translateY(-50%);
|
|
305
311
|
}
|
|
306
312
|
.vertical > li {
|
|
307
|
-
margin:
|
|
308
|
-
width:
|
|
309
|
-
height:
|
|
313
|
+
margin: var(--kd-c-carousel-dots-spacing-margin, 4px) 0;
|
|
314
|
+
width: var(--kd-c-carousel-dots-sizing-height, 4px);
|
|
315
|
+
height: var(--kd-c-carousel-dots-sizing-width, 12px);
|
|
310
316
|
}
|
|
311
317
|
.horizontal {
|
|
312
318
|
display: -webkit-box;
|
|
@@ -321,7 +327,7 @@
|
|
|
321
327
|
transform: translateX(-50%);
|
|
322
328
|
}
|
|
323
329
|
.horizontal > li {
|
|
324
|
-
margin: 0
|
|
325
|
-
height:
|
|
326
|
-
width:
|
|
330
|
+
margin: 0 var(--kd-c-carousel-dots-spacing-margin, 4px);
|
|
331
|
+
height: var(--kd-c-carousel-dots-sizing-height, 4px);
|
|
332
|
+
width: var(--kd-c-carousel-dots-sizing-width, 12px);
|
|
327
333
|
}
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
flex-shrink: 0;
|
|
20
20
|
height: 100%;
|
|
21
21
|
width: 100%;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
border-radius: @carousel-boder-radius;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
&-fadelist {
|
|
@@ -85,7 +87,8 @@
|
|
|
85
87
|
.horizontal;
|
|
86
88
|
top: @carousel-dots-margin-top;
|
|
87
89
|
}
|
|
88
|
-
|
|
90
|
+
|
|
91
|
+
&-dot > button {
|
|
89
92
|
display: block;
|
|
90
93
|
border-radius: @carousel-dots-boder-radius;
|
|
91
94
|
box-sizing: border-box;
|
|
@@ -95,12 +98,10 @@
|
|
|
95
98
|
width: 100%;
|
|
96
99
|
cursor: pointer;
|
|
97
100
|
outline: none;
|
|
98
|
-
|
|
99
|
-
&-active {
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
101
|
+
background-color: @carousel-dots-color-background;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
|
|
104
|
+
&-dot {
|
|
104
105
|
display: block;
|
|
105
106
|
border-radius: @carousel-dots-boder-radius;
|
|
106
107
|
box-sizing: border-box;
|
|
@@ -110,6 +111,13 @@
|
|
|
110
111
|
width: 100%;
|
|
111
112
|
cursor: pointer;
|
|
112
113
|
outline: none;
|
|
114
|
+
&-active {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
& > button {
|
|
117
|
+
background-color: @carousel-dots-color-background-active;
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
113
121
|
}
|
|
114
122
|
}
|
|
115
123
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@carousel-prefix: '--@{kd-prefix}-c-carousel';
|
|
2
|
+
|
|
3
|
+
// spacing
|
|
4
|
+
@carousel-dots-margin-top: var(~'@{carousel-prefix}-spacing-margin-top', 15px); // 面板指示点到边界的边距
|
|
5
|
+
@carousel-dots-margin-bottom: var(~'@{carousel-prefix}-spacing-margin-bottom', 15px); // 面板指示点到边界的边距
|
|
6
|
+
@carousel-dots-margin-left: var(~'@{carousel-prefix}-spacing-margin-left', 15px); // 面板指示点到边界的边距
|
|
7
|
+
@carousel-dots-margin-right: var(~'@{carousel-prefix}-spacing-margin-right', 15px); // 面板指示点到边界的边距
|
|
8
|
+
@carousel-dots-marigin: var(~'@{carousel-prefix}-dots-spacing-margin', 4px); // 面板指示点的间距
|
|
9
|
+
|
|
10
|
+
// radius
|
|
11
|
+
@carousel-dots-boder-radius: var(~'@{carousel-prefix}-dots-border-radius', 2px); // 面板指示点的圆角
|
|
12
|
+
@carousel-boder-radius: var(~'@{carousel-prefix}-border-radius', 0px); // 轮播容器圆角
|
|
13
|
+
|
|
14
|
+
// sizing
|
|
15
|
+
@carousel-dots-width: var(~'@{carousel-prefix}-dots-sizing-width', 12px); // 面板指示点的宽度
|
|
16
|
+
@carousel-dots-height: var(~'@{carousel-prefix}-dots-sizing-height', 4px); // 面板指示点的高度
|
|
17
|
+
|
|
18
|
+
// color
|
|
19
|
+
@carousel-dots-color-background: var(~'@{carousel-prefix}-dots-color-background', #D8D8D8); // 面板指示点的背景色
|
|
20
|
+
@carousel-dots-color-background-active: var(~'@{carousel-prefix}-dots-color-hover', #666666); // 面板指示点的背景色
|
package/es/cascader/cascader.js
CHANGED
|
@@ -246,7 +246,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
246
246
|
var cascaderPopper = dropdownRender(cascaderMenus);
|
|
247
247
|
|
|
248
248
|
var popperProps = _extends(_extends({}, allProps), {
|
|
249
|
-
gap:
|
|
249
|
+
gap: 4,
|
|
250
250
|
visible: visible,
|
|
251
251
|
onVisibleChange: onVisibleChange,
|
|
252
252
|
trigger: 'click',
|