@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
package/lib/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
|
}
|
|
@@ -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/lib/cascader/cascader.js
CHANGED
|
@@ -276,7 +276,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
276
276
|
}));
|
|
277
277
|
var cascaderPopper = dropdownRender(cascaderMenus);
|
|
278
278
|
var popperProps = (0, _extends2.default)((0, _extends2.default)({}, allProps), {
|
|
279
|
-
gap:
|
|
279
|
+
gap: 4,
|
|
280
280
|
visible: visible,
|
|
281
281
|
onVisibleChange: onVisibleChange,
|
|
282
282
|
trigger: 'click',
|
|
@@ -92,6 +92,15 @@
|
|
|
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
|
/** 浮层箭头样式 **/
|
|
@@ -102,23 +111,23 @@
|
|
|
102
111
|
cursor: pointer;
|
|
103
112
|
}
|
|
104
113
|
.kd-cascader-picker:focus > .kd-cascader-picker-input {
|
|
105
|
-
border-color: #5582f3;
|
|
114
|
+
border-color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
106
115
|
}
|
|
107
116
|
.kd-cascader-picker:focus > .kd-cascader-picker-input .kd-input-suffix,
|
|
108
117
|
.kd-cascader-picker:focus > .kd-cascader-picker-input i[class*="kdicon"] {
|
|
109
|
-
color: #5582f3;
|
|
118
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
110
119
|
}
|
|
111
120
|
.kd-cascader-picker:hover > .kd-cascader-picker-input .kd-input-suffix,
|
|
112
121
|
.kd-cascader-picker:hover > .kd-cascader-picker-input i[class*="kdicon"] {
|
|
113
|
-
color: #5582f3;
|
|
122
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
114
123
|
}
|
|
115
124
|
.kd-cascader-picker.disabled .kd-cascader-picker-input {
|
|
116
125
|
cursor: not-allowed;
|
|
117
|
-
border-color: #d9d9d9;
|
|
126
|
+
border-color: var(--kd-g-color-border-strong, #d9d9d9);
|
|
118
127
|
}
|
|
119
128
|
.kd-cascader-picker.disabled .kd-cascader-picker-input .kd-input-suffix,
|
|
120
129
|
.kd-cascader-picker.disabled .kd-cascader-picker-input i[class*="kdicon"] {
|
|
121
|
-
color: #b2b2b2;
|
|
130
|
+
color: var(--kd-c-cascader-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
122
131
|
}
|
|
123
132
|
.kd-cascader-picker-label {
|
|
124
133
|
-webkit-box-sizing: border-box;
|
|
@@ -146,10 +155,10 @@
|
|
|
146
155
|
cursor: pointer;
|
|
147
156
|
}
|
|
148
157
|
.kd-cascader-picker-input.expand {
|
|
149
|
-
border-color: #5582f3;
|
|
158
|
+
border-color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
150
159
|
}
|
|
151
160
|
.kd-cascader-picker-input.expand i[class*="kdicon"] {
|
|
152
|
-
color: #5582f3;
|
|
161
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
153
162
|
-webkit-transform: rotate(180deg);
|
|
154
163
|
transform: rotate(180deg);
|
|
155
164
|
}
|
|
@@ -179,7 +188,7 @@
|
|
|
179
188
|
opacity: 0;
|
|
180
189
|
cursor: pointer;
|
|
181
190
|
visibility: hidden;
|
|
182
|
-
color: #5582f3;
|
|
191
|
+
color: var(--kd-c-cascader-color-active, var(--kd-g-color-theme, #5582f3));
|
|
183
192
|
-webkit-transition: all 0.1s;
|
|
184
193
|
transition: all 0.1s;
|
|
185
194
|
-webkit-transform-origin: 50% 50%;
|
|
@@ -196,15 +205,16 @@
|
|
|
196
205
|
list-style: none;
|
|
197
206
|
-webkit-font-feature-settings: 'tnum';
|
|
198
207
|
font-feature-settings: 'tnum';
|
|
199
|
-
color: #212121;
|
|
200
|
-
border-radius: 2px;
|
|
201
|
-
font-size: 12px;
|
|
202
|
-
|
|
208
|
+
color: var(--kd-c-cascader-color-text, var(--kd-g-color-text-primary, #212121));
|
|
209
|
+
border-radius: var(--kd-c-cascader-radius-border, var(--kd-g-radius-border, 2px));
|
|
210
|
+
font-size: var(--kd-c-cascader-font-size, var(--kd-g-font-size-small, 12px));
|
|
211
|
+
font-weight: var(--kd-c-cascader-font-weight, 'normal');
|
|
212
|
+
background-color: var(--kd-c-cascader-color-background, var(--kd-g-color-white, #fff));
|
|
203
213
|
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
204
214
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
205
215
|
opacity: 1;
|
|
206
216
|
visibility: visible;
|
|
207
|
-
z-index: 1050;
|
|
217
|
+
z-index: var(--kd-g-z-index-popper, 1050);
|
|
208
218
|
}
|
|
209
219
|
.kd-cascader-menus.hidden {
|
|
210
220
|
opacity: 0;
|
|
@@ -212,14 +222,14 @@
|
|
|
212
222
|
}
|
|
213
223
|
.kd-cascader-menus .kd-cascader-menu {
|
|
214
224
|
display: inline-table;
|
|
215
|
-
height:
|
|
216
|
-
min-width: 116px;
|
|
225
|
+
height: var(--kd-c-cascader-sizing-height, 192px);
|
|
226
|
+
min-width: var(--kd-c-cascader-menu-sizing-min-width, 116px);
|
|
217
227
|
margin: 0;
|
|
218
|
-
padding: 0;
|
|
228
|
+
padding: var(--kd-c-cascader-menu-spacing-padding-vertical, 8px) 0;
|
|
219
229
|
overflow-y: auto;
|
|
220
230
|
}
|
|
221
231
|
.kd-cascader-menus .kd-cascader-menu:not(:first-child) {
|
|
222
|
-
border-left: 1px solid #d9d9d9;
|
|
232
|
+
border-left: 1px solid var(--kd-g-color-border-strong, #d9d9d9);
|
|
223
233
|
}
|
|
224
234
|
.kd-cascader-menus .kd-cascader-menu-item {
|
|
225
235
|
display: -webkit-box;
|
|
@@ -228,23 +238,22 @@
|
|
|
228
238
|
-webkit-box-pack: justify;
|
|
229
239
|
-ms-flex-pack: justify;
|
|
230
240
|
justify-content: space-between;
|
|
231
|
-
padding: 0 12px;
|
|
232
|
-
height: 32px;
|
|
233
|
-
line-height: 32px;
|
|
241
|
+
padding: 0 var(--kd-c-cascader-menu-item-spacing-padding-horizontal, 12px);
|
|
242
|
+
line-height: var(--kd-c-cascader-menu-item-sizing-height, 32px);
|
|
234
243
|
cursor: pointer;
|
|
235
244
|
}
|
|
236
245
|
.kd-cascader-menus .kd-cascader-menu-item:not(.disabled, .selected):hover {
|
|
237
|
-
background-color: #f5f5f5;
|
|
238
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
239
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
246
|
+
background-color: var(--kd-c-cascader-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
247
|
+
-webkit-transition: all calc(var(--kd-g-duration, 0.3s) - 0.1s) var(--kd-g-ease, cubic-bezier(0.4, 0, 0.6, 1));
|
|
248
|
+
transition: all calc(var(--kd-g-duration, 0.3s) - 0.1s) var(--kd-g-ease, cubic-bezier(0.4, 0, 0.6, 1));
|
|
240
249
|
}
|
|
241
250
|
.kd-cascader-menus .kd-cascader-menu-item.disabled {
|
|
242
|
-
color: #b2b2b2;
|
|
251
|
+
color: var(--kd-c-cascader-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
243
252
|
cursor: not-allowed;
|
|
244
253
|
}
|
|
245
254
|
.kd-cascader-menus .kd-cascader-menu-item.selected {
|
|
246
|
-
color: #5582f3;
|
|
247
|
-
background-color: #f2f9ff;
|
|
255
|
+
color: var(--kd-c-cascader-color-text-selected, var(--kd-g-color-theme, #5582f3));
|
|
256
|
+
background-color: var(--kd-c-cascader-color-background-selected, var(--kd-g-color-background-ongoing, #f2f9ff));
|
|
248
257
|
}
|
|
249
258
|
.kd-cascader-menus .kd-cascader-menu-item-label {
|
|
250
259
|
width: 72px;
|