@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,4 +1,6 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
|
+
@import './token.less';
|
|
3
|
+
|
|
2
4
|
@checkbox-prefix-cls: ~'@{kd-prefix}-checkbox';
|
|
3
5
|
@checkbox-group-prefix-cls: ~'@{kd-prefix}-group';
|
|
4
6
|
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
border-radius: 2px;
|
|
56
58
|
border: 1px solid @checkbox-border-color;
|
|
57
59
|
padding: @checkbox-square-padding;
|
|
58
|
-
transition: color @transition-duration, border-color @transition-duration;
|
|
60
|
+
transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
|
|
59
61
|
&:not(&-disabled)::after {
|
|
60
62
|
content: '';
|
|
61
63
|
position: absolute;
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
left: 0;
|
|
66
68
|
border-radius: inherit;
|
|
67
69
|
opacity: 0.2;
|
|
68
|
-
box-shadow: 0 0 0 0 @
|
|
70
|
+
box-shadow: 0 0 0 0 @checkbox-color-theme;
|
|
69
71
|
}
|
|
70
72
|
&:hover {
|
|
71
73
|
color: @checkbox-checked-font-color;
|
|
@@ -87,8 +89,8 @@
|
|
|
87
89
|
border-bottom-color: @checkbox-checked-border-color;
|
|
88
90
|
}
|
|
89
91
|
&-triangle {
|
|
90
|
-
animation: kdZoomBounceLeaveEffect calc(@transition-duration - 0.1s)
|
|
91
|
-
transition: all @transition-duration
|
|
92
|
+
animation: kdZoomBounceLeaveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1) forwards;
|
|
93
|
+
transition: all @checkbox-transition-duration cubic-bezier(0.4,0,0.6,1);
|
|
92
94
|
visibility: hidden;
|
|
93
95
|
opacity: 0;
|
|
94
96
|
}
|
|
@@ -106,7 +108,7 @@
|
|
|
106
108
|
&-inner-icon {
|
|
107
109
|
font-size: inherit;
|
|
108
110
|
line-height: 100%;
|
|
109
|
-
animation: kdZoomLeaveEffect calc(@transition-duration - 0.1s)
|
|
111
|
+
animation: kdZoomLeaveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
|
|
110
112
|
}
|
|
111
113
|
&-triangle-disabled {
|
|
112
114
|
border-bottom-color: @checkbox-disabled-bg-color;
|
|
@@ -121,14 +123,14 @@
|
|
|
121
123
|
&-checked {
|
|
122
124
|
border-color: @checkbox-checked-border-color;
|
|
123
125
|
&:not(&-disabled)::after {
|
|
124
|
-
animation: fadeEffect calc(@transition-duration + 0.1s)
|
|
125
|
-
waveEffect calc(@transition-duration - 0.1s)
|
|
126
|
+
animation: fadeEffect calc(@checkbox-transition-duration + 0.1s) cubic-bezier(0,.4,.4,1) forwards,
|
|
127
|
+
waveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1) forwards;
|
|
126
128
|
}
|
|
127
129
|
.@{checkbox-prefix-cls}-square-triangle-checked:not(.@{checkbox-prefix-cls}-square-disabled) {
|
|
128
|
-
animation: kdZoomBounceEffect calc(@transition-duration - 0.1s)
|
|
130
|
+
animation: kdZoomBounceEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0.4,0,0.6,1);
|
|
129
131
|
}
|
|
130
132
|
.@{checkbox-prefix-cls}-square-inner-icon:not(.@{checkbox-prefix-cls}-square-disabled) {
|
|
131
|
-
animation: kdZoomEffect calc(@transition-duration - 0.1s)
|
|
133
|
+
animation: kdZoomEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
136
|
&-checked-disabled {
|
|
@@ -148,7 +150,7 @@
|
|
|
148
150
|
.@{checkbox-prefix-cls}-default {
|
|
149
151
|
border: none;
|
|
150
152
|
padding: @checkbox-default-padding;
|
|
151
|
-
transition: color @transition-duration, border-color @transition-duration;
|
|
153
|
+
transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
|
|
152
154
|
&:hover,
|
|
153
155
|
&:hover &-wrapper {
|
|
154
156
|
color: @checkbox-checked-font-color;
|
|
@@ -170,7 +172,7 @@
|
|
|
170
172
|
border: @checkbox-default-input-border-width solid @checkbox-border-color;
|
|
171
173
|
border-radius: @checkbox-default-input-border-radius;
|
|
172
174
|
box-sizing: border-box;
|
|
173
|
-
transition: color @transition-duration, border-color @transition-duration;
|
|
175
|
+
transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
|
|
174
176
|
&:not(&-disabled)::after {
|
|
175
177
|
content: '';
|
|
176
178
|
position: absolute;
|
|
@@ -180,7 +182,7 @@
|
|
|
180
182
|
left: 0;
|
|
181
183
|
border-radius: inherit;
|
|
182
184
|
opacity: 0.2;
|
|
183
|
-
box-shadow: 0 0 0 0 @
|
|
185
|
+
box-shadow: 0 0 0 0 @checkbox-color-theme;
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
188
|
&-wrapper-size {
|
|
@@ -203,14 +205,14 @@
|
|
|
203
205
|
&-checked {
|
|
204
206
|
background-color: @checkbox-checked-border-color;
|
|
205
207
|
border-color: @checkbox-checked-border-color;
|
|
206
|
-
transition: background-color calc(@transition-duration - 0.1s)
|
|
207
|
-
border-color calc(@transition-duration - 0.1s)
|
|
208
|
+
transition: background-color calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1),
|
|
209
|
+
border-color calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
|
|
208
210
|
&:not(&-disabled)::after {
|
|
209
|
-
animation: fadeEffect calc(@transition-duration + 0.1s)
|
|
210
|
-
waveEffect calc(@transition-duration - 0.1s)
|
|
211
|
+
animation: fadeEffect calc(@checkbox-transition-duration + 0.1s) cubic-bezier(0,.4,.4,1) forwards,
|
|
212
|
+
waveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1) forwards;
|
|
211
213
|
}
|
|
212
214
|
.@{checkbox-prefix-cls}-default-inner:not(&-disabled .@{checkbox-prefix-cls}-default-inner) {
|
|
213
|
-
animation: kdZoomBounceDefaultEffect calc(@transition-duration - 0.1s)
|
|
215
|
+
animation: kdZoomBounceDefaultEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0.4,0,0.6,1) !important;
|
|
214
216
|
}
|
|
215
217
|
}
|
|
216
218
|
&-inner {
|
|
@@ -228,19 +230,16 @@
|
|
|
228
230
|
font-size: inherit;
|
|
229
231
|
line-height: 100%;
|
|
230
232
|
}
|
|
231
|
-
&-indeterminate {
|
|
232
|
-
background-color: @checkbox-checked-border-color;
|
|
233
|
-
border-color: @checkbox-checked-border-color;
|
|
234
|
-
}
|
|
235
233
|
&-indeterminate::before {
|
|
236
|
-
background-color: @checkbox-bg-color;
|
|
237
234
|
position: absolute;
|
|
238
|
-
width: 70%;
|
|
239
|
-
height: 2px;
|
|
240
|
-
border-radius: 1px;
|
|
241
235
|
top: 50%;
|
|
242
|
-
transform: translate(-50%, -50%);
|
|
243
236
|
left: 50%;
|
|
244
|
-
|
|
237
|
+
width: 8px;
|
|
238
|
+
height: 8px;
|
|
239
|
+
background-color: @checkbox-checked-border-color;
|
|
240
|
+
border: 0;
|
|
241
|
+
transform: translate(-50%,-50%) scale(1);
|
|
242
|
+
opacity: 1;
|
|
243
|
+
content: " ";
|
|
245
244
|
}
|
|
246
245
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@checkbox-prefix: '--@{kd-prefix}-c-checkbox';
|
|
4
|
+
|
|
5
|
+
// font-size
|
|
6
|
+
@checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
|
|
7
|
+
@checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 14px); // 勾选输入框勾勾图标大小
|
|
8
|
+
@checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
|
|
9
|
+
|
|
10
|
+
// colors
|
|
11
|
+
@checkbox-color-theme: var(~'@{checkbox-prefix}-color-theme', @color-theme);
|
|
12
|
+
@checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary', @color-text-primary);
|
|
13
|
+
@checkbox-border-color: var(~'@{checkbox-prefix}-color-border', @color-border-strong);
|
|
14
|
+
@checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active', @color-theme);
|
|
15
|
+
@checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover', @color-theme);
|
|
16
|
+
@checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color', #fff); // 勾选输入框边勾勾图标颜色
|
|
17
|
+
@checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color', #fff); // 边框类型三角内勾选输入框勾勾图标颜色
|
|
18
|
+
@checkbox-bg-color: var(~'@{checkbox-prefix}-color-background', @color-background);
|
|
19
|
+
@checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled', @color-disabled);
|
|
20
|
+
|
|
21
|
+
// sizing
|
|
22
|
+
@checkbox-small-size-height: var(~'@{checkbox-prefix}-sizing-height-small', 32px); // 小尺寸复选框
|
|
23
|
+
@checkbox-middle-size-height: var(~'@{checkbox-prefix}-sizing-height-middle', 36px); // 中尺寸复选框
|
|
24
|
+
@checkbox-large-size-height: var(~'@{checkbox-prefix}-sizing-height-large', 40px); // 大尺寸复选框
|
|
25
|
+
|
|
26
|
+
// @checkbox-border-width: 1px; // 边框类型边框大小
|
|
27
|
+
@checkbox-border-width: var(~'@{checkbox-prefix}-border-width', 1px); // 边框类型边框大小
|
|
28
|
+
|
|
29
|
+
@checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 16px); // 勾选输入框高度
|
|
30
|
+
@checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 16px); // 勾选输入框宽度
|
|
31
|
+
|
|
32
|
+
// @checkbox-default-input-border-width: 1px; // 勾选输入框边框大小
|
|
33
|
+
@checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
|
|
34
|
+
|
|
35
|
+
@checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
|
|
36
|
+
@checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
|
|
37
|
+
|
|
38
|
+
// spacing
|
|
39
|
+
@checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right', 8px); // 按钮组的间距
|
|
40
|
+
@checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding', 0); // 默认类型复选框内边距
|
|
41
|
+
@checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right', 8px); // 勾选输入框与右侧内容间距
|
|
42
|
+
@checkbox-square-padding: var(~'@{checkbox-prefix}-square-spacing-padding', 0 20px); // 边框类型内边距
|
|
43
|
+
|
|
44
|
+
// radius
|
|
45
|
+
@checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
|
|
46
|
+
|
|
47
|
+
// motion
|
|
48
|
+
@checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
|
|
@@ -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
|
.kd-city-picker-container {
|
|
96
105
|
display: -webkit-box;
|
|
97
106
|
display: -ms-flexbox;
|
|
@@ -153,9 +162,9 @@
|
|
|
153
162
|
transform: rotate(180deg);
|
|
154
163
|
}
|
|
155
164
|
.kd-city-picker-panel-container {
|
|
156
|
-
width: 460px;
|
|
157
|
-
height: 373px;
|
|
158
|
-
font-size: 12px;
|
|
165
|
+
width: var(--kd-c-city-picker-panel-sizing-width, 460px);
|
|
166
|
+
height: var(--kd-c-city-picker-panel-sizing-height, 373px);
|
|
167
|
+
font-size: var(--kd-c-city-picker-panel-font-size, 12px);
|
|
159
168
|
line-height: 18px;
|
|
160
169
|
letter-spacing: 0;
|
|
161
170
|
}
|
|
@@ -174,7 +183,7 @@
|
|
|
174
183
|
padding: 3px 0;
|
|
175
184
|
}
|
|
176
185
|
.kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-tab-item.active {
|
|
177
|
-
color: #5582f3;
|
|
186
|
+
color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
|
|
178
187
|
z-index: 1;
|
|
179
188
|
}
|
|
180
189
|
.kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-tab-item.active::before {
|
|
@@ -192,7 +201,7 @@
|
|
|
192
201
|
right: 0;
|
|
193
202
|
bottom: 0;
|
|
194
203
|
z-index: -2;
|
|
195
|
-
background: #fafafa;
|
|
204
|
+
background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
|
|
196
205
|
border-radius: 2px 4px 0 0;
|
|
197
206
|
-webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
198
207
|
transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
@@ -213,7 +222,7 @@
|
|
|
213
222
|
right: 0;
|
|
214
223
|
bottom: 0;
|
|
215
224
|
z-index: -2;
|
|
216
|
-
background: #fafafa;
|
|
225
|
+
background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
|
|
217
226
|
border-radius: 4px 4px 0 0;
|
|
218
227
|
-webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
219
228
|
transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
@@ -230,7 +239,7 @@
|
|
|
230
239
|
cursor: pointer;
|
|
231
240
|
}
|
|
232
241
|
.kd-city-picker-panel-item:hover {
|
|
233
|
-
background: #
|
|
242
|
+
background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
234
243
|
border-radius: 2px;
|
|
235
244
|
}
|
|
236
245
|
.kd-city-picker-content-container {
|
|
@@ -239,6 +248,7 @@
|
|
|
239
248
|
background: #fff;
|
|
240
249
|
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
|
|
241
250
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
|
|
251
|
+
border-radius: 0 var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
|
|
242
252
|
}
|
|
243
253
|
.kd-city-picker-group-container {
|
|
244
254
|
display: -webkit-box;
|
|
@@ -265,11 +275,11 @@
|
|
|
265
275
|
text-align: center;
|
|
266
276
|
}
|
|
267
277
|
.kd-city-picker-group-item:hover {
|
|
268
|
-
color: #5582f3;
|
|
278
|
+
color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
|
|
269
279
|
}
|
|
270
280
|
.kd-city-picker-group-item.active {
|
|
271
|
-
color: #5582f3;
|
|
272
|
-
border-bottom: 2px solid #5582f3;
|
|
281
|
+
color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
|
|
282
|
+
border-bottom: 2px solid var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
|
|
273
283
|
}
|
|
274
284
|
.kd-city-picker-group-item.last {
|
|
275
285
|
-ms-flex-negative: 1;
|
|
@@ -320,7 +330,7 @@
|
|
|
320
330
|
.kd-city-picker-city-table .kd-city-picker-city-table-cell {
|
|
321
331
|
margin: 4px 6px;
|
|
322
332
|
padding: 3px 6px;
|
|
323
|
-
color: #212121;
|
|
333
|
+
color: var(--kd-c-city-picker-panel-item-color, var(--kd-g-color-text-primary, #212121));
|
|
324
334
|
cursor: pointer;
|
|
325
335
|
width: 60px;
|
|
326
336
|
overflow: hidden;
|
|
@@ -328,7 +338,7 @@
|
|
|
328
338
|
text-overflow: ellipsis;
|
|
329
339
|
}
|
|
330
340
|
.kd-city-picker-city-table .kd-city-picker-city-table-cell:hover {
|
|
331
|
-
background: #
|
|
341
|
+
background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
332
342
|
border-radius: 2px;
|
|
333
343
|
}
|
|
334
344
|
.kd-city-picker-search-panel {
|
|
@@ -366,7 +376,7 @@
|
|
|
366
376
|
cursor: pointer;
|
|
367
377
|
}
|
|
368
378
|
.kd-city-picker-search-panel .kd-city-picker-search-panel-item:hover {
|
|
369
|
-
background: #
|
|
379
|
+
background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
370
380
|
}
|
|
371
381
|
.kd-city-picker-search-panel .kd-city-picker-search-panel-item .kd-city-picker-search-panel-item-left {
|
|
372
382
|
overflow: hidden;
|
|
@@ -393,7 +403,7 @@
|
|
|
393
403
|
color: #999999;
|
|
394
404
|
}
|
|
395
405
|
.kd-city-picker-search-keyword {
|
|
396
|
-
color: #5582f3;
|
|
406
|
+
color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
|
|
397
407
|
}
|
|
398
408
|
.kd-city-picker-no-data {
|
|
399
409
|
width: 100%;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
1
|
@import '../../style/themes/index';
|
|
3
2
|
@import './mixin.less';
|
|
3
|
+
@import './token.less';
|
|
4
4
|
|
|
5
5
|
@city-picker-prefix-cls: ~'@{kd-prefix}-city-picker';
|
|
6
|
-
@hover-bg: #F5F5F5;
|
|
7
6
|
|
|
8
7
|
.@{city-picker-prefix-cls}-container {
|
|
9
8
|
display: flex;
|
|
@@ -55,9 +54,9 @@
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
.@{city-picker-prefix-cls}-panel-container {
|
|
58
|
-
width:
|
|
59
|
-
height:
|
|
60
|
-
font-size:
|
|
57
|
+
width: @city-picker-panel-sizing-width;
|
|
58
|
+
height: @city-picker-panel-sizing-height;
|
|
59
|
+
font-size: @city-picker-panel-font-size;
|
|
61
60
|
line-height: 18px;
|
|
62
61
|
letter-spacing: 0;
|
|
63
62
|
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
padding: 3px 0;
|
|
73
72
|
|
|
74
73
|
&.active {
|
|
75
|
-
color: @theme-color;
|
|
74
|
+
color: @city-picker-theme-color;
|
|
76
75
|
z-index: 1;
|
|
77
76
|
|
|
78
77
|
&::before {
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
right: 0;
|
|
93
92
|
bottom: 0;
|
|
94
93
|
z-index: -2;
|
|
95
|
-
background: @
|
|
94
|
+
background: @city-picker-background-color;
|
|
96
95
|
border-radius: 2px 4px 0 0;
|
|
97
96
|
transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
98
97
|
transform-origin: bottom left;
|
|
@@ -111,7 +110,7 @@
|
|
|
111
110
|
right: 0;
|
|
112
111
|
bottom: 0;
|
|
113
112
|
z-index: -2;
|
|
114
|
-
background: @
|
|
113
|
+
background: @city-picker-background-color;
|
|
115
114
|
border-radius: 4px 4px 0 0;
|
|
116
115
|
transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
117
116
|
transform-origin: bottom;
|
|
@@ -129,7 +128,7 @@
|
|
|
129
128
|
cursor: pointer;
|
|
130
129
|
|
|
131
130
|
&:hover {
|
|
132
|
-
background: @hover-
|
|
131
|
+
background: @city-picker-background-hover-color;
|
|
133
132
|
border-radius: 2px;
|
|
134
133
|
}
|
|
135
134
|
}
|
|
@@ -139,6 +138,7 @@
|
|
|
139
138
|
padding: 0 20px 12px 20px;
|
|
140
139
|
background: #fff;
|
|
141
140
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
|
|
141
|
+
border-radius: 0 @city-picker-panel-radius-border @city-picker-panel-radius-border @city-picker-panel-radius-border;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.@{city-picker-prefix-cls}-group-container {
|
|
@@ -158,12 +158,12 @@
|
|
|
158
158
|
text-align: center;
|
|
159
159
|
|
|
160
160
|
&:hover {
|
|
161
|
-
color: @theme-color;
|
|
161
|
+
color: @city-picker-theme-color;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
&.active {
|
|
165
|
-
color: @theme-color;
|
|
166
|
-
border-bottom: 2px solid @theme-color;
|
|
165
|
+
color: @city-picker-theme-color;
|
|
166
|
+
border-bottom: 2px solid @city-picker-theme-color;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
&.last {
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
.@{city-picker-prefix-cls}-city-table-cell {
|
|
203
203
|
margin: 4px 6px;
|
|
204
204
|
padding: 3px 6px;
|
|
205
|
-
color:
|
|
205
|
+
color: @city-picker-panel-item-color;
|
|
206
206
|
cursor: pointer;
|
|
207
207
|
width: 60px;
|
|
208
208
|
overflow: hidden;
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
text-overflow: ellipsis;
|
|
212
212
|
|
|
213
213
|
&:hover {
|
|
214
|
-
background: @hover-
|
|
214
|
+
background: @city-picker-background-hover-color;
|
|
215
215
|
border-radius: 2px;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
cursor: pointer;
|
|
241
241
|
|
|
242
242
|
&:hover {
|
|
243
|
-
background: @hover-
|
|
243
|
+
background: @city-picker-background-hover-color;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.@{city-picker-prefix-cls}-search-panel-item-left {
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
.@{city-picker-prefix-cls}-search-keyword {
|
|
271
|
-
color: @theme-color;
|
|
271
|
+
color: @city-picker-theme-color;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.@{city-picker-prefix-cls}-no-data {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import "../../style/themes/token.less";
|
|
2
|
+
|
|
3
|
+
@city-picker-prefix: '--@{kd-prefix}-c-city-picker';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// color
|
|
8
|
+
@city-picker-theme-color: var(~'@{city-picker-prefix}-color', @color-theme);
|
|
9
|
+
@city-picker-panel-item-color: var(~'@{city-picker-prefix}-panel-item-color', @color-text-primary);
|
|
10
|
+
@city-picker-background-color: var(~'@{city-picker-prefix}-color-background', @color-background-contain);
|
|
11
|
+
@city-picker-background-hover-color: var(~'@{city-picker-prefix}-color-background-hover', @color-hover);
|
|
12
|
+
|
|
13
|
+
// sizing
|
|
14
|
+
@city-picker-panel-sizing-width: var(~'@{city-picker-prefix}-panel-sizing-width', 460px);
|
|
15
|
+
@city-picker-panel-sizing-height: var(~'@{city-picker-prefix}-panel-sizing-height', 373px);
|
|
16
|
+
// spacing
|
|
17
|
+
// motion
|
|
18
|
+
|
|
19
|
+
// font
|
|
20
|
+
@city-picker-panel-font-size: var(~'@{city-picker-prefix}-panel-font-size', 12px);
|
|
21
|
+
|
|
22
|
+
// radius
|
|
23
|
+
@city-picker-panel-radius-border: var(~'@{city-picker-prefix}-panel-radius-border', @radius-border);
|
|
24
|
+
// line-height
|
|
25
|
+
// z-index
|
|
@@ -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
|
.kd-collapse {
|
|
96
105
|
display: -webkit-box;
|
|
97
106
|
display: -ms-flexbox;
|
|
@@ -115,16 +124,17 @@
|
|
|
115
124
|
flex-direction: column;
|
|
116
125
|
}
|
|
117
126
|
.kd-collapse-panel-border {
|
|
118
|
-
border: 1px solid #d9d9d9;
|
|
127
|
+
border: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
119
128
|
}
|
|
120
129
|
.kd-collapse-panel-top {
|
|
121
130
|
display: -webkit-inline-box;
|
|
122
131
|
display: -ms-inline-flexbox;
|
|
123
132
|
display: inline-flex;
|
|
124
|
-
padding: 12px;
|
|
133
|
+
padding: var(--kd-c-collapse-header-spacing-padding, 12px);
|
|
134
|
+
background: var(--kd-c-collapse-header-color-background, rgba(0, 0, 0, 0));
|
|
125
135
|
}
|
|
126
136
|
.kd-collapse-panel-top-border {
|
|
127
|
-
border-bottom: 1px solid #d9d9d9;
|
|
137
|
+
border-bottom: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
128
138
|
}
|
|
129
139
|
.kd-collapse-panel-left {
|
|
130
140
|
display: -webkit-inline-box;
|
|
@@ -153,8 +163,8 @@
|
|
|
153
163
|
-webkit-box-align: center;
|
|
154
164
|
-ms-flex-align: center;
|
|
155
165
|
align-items: center;
|
|
156
|
-
color: #212121;
|
|
157
|
-
font-size: 14px;
|
|
166
|
+
color: var(--kd-c-collapse-header-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
167
|
+
font-size: var(--kd-c-collapse-header-font-size, var(--kd-g-font-size-middle, 14px));
|
|
158
168
|
}
|
|
159
169
|
.kd-collapse-panel-icon {
|
|
160
170
|
-webkit-box-align: center;
|
|
@@ -163,7 +173,7 @@
|
|
|
163
173
|
display: -webkit-inline-box;
|
|
164
174
|
display: -ms-inline-flexbox;
|
|
165
175
|
display: inline-flex;
|
|
166
|
-
margin-right: 6px;
|
|
176
|
+
margin-right: var(--kd-c-collapse-spacing-margin-right, 6px);
|
|
167
177
|
}
|
|
168
178
|
.kd-collapse-panel-icon:hover,
|
|
169
179
|
.kd-collapse-panel-left:hover {
|
|
@@ -172,43 +182,44 @@
|
|
|
172
182
|
.kd-collapse-panel-animation-expand {
|
|
173
183
|
-webkit-transform: rotate(0deg);
|
|
174
184
|
transform: rotate(0deg);
|
|
175
|
-
-webkit-transition: -webkit-transform 0.3s;
|
|
176
|
-
transition: -webkit-transform 0.3s;
|
|
177
|
-
transition: transform 0.3s;
|
|
178
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
185
|
+
-webkit-transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
186
|
+
transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
187
|
+
transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
188
|
+
transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
179
189
|
}
|
|
180
190
|
.kd-collapse-panel-animation-collapse {
|
|
181
191
|
-webkit-transform: rotate(90deg);
|
|
182
192
|
transform: rotate(90deg);
|
|
183
|
-
-webkit-transition: -webkit-transform 0.3s;
|
|
184
|
-
transition: -webkit-transform 0.3s;
|
|
185
|
-
transition: transform 0.3s;
|
|
186
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
193
|
+
-webkit-transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
194
|
+
transition: -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
195
|
+
transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
196
|
+
transition: transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
187
197
|
}
|
|
188
198
|
.kd-collapse-panel-children {
|
|
189
199
|
overflow: hidden;
|
|
190
200
|
opacity: 0;
|
|
191
|
-
padding: 0 16px;
|
|
192
|
-
color: #212121;
|
|
193
|
-
font-size: 14px;
|
|
194
|
-
-webkit-transition: height 0.3s, opacity 0.3s;
|
|
195
|
-
transition: height 0.3s, opacity 0.3s;
|
|
201
|
+
padding: var(--kd-c-collapse-content-spacing-padding, 0 16px);
|
|
202
|
+
color: var(--kd-c-collapse-content-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
203
|
+
font-size: var(--kd-c-collapse-content-font-size, var(--kd-g-font-size-middle, 14px));
|
|
204
|
+
-webkit-transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
205
|
+
transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s));
|
|
206
|
+
background: var(--kd-c-collapse-content-color-background, rgba(0, 0, 0, 0));
|
|
196
207
|
}
|
|
197
208
|
.kd-collapse-panel-children-hide {
|
|
198
209
|
overflow: hidden;
|
|
199
210
|
opacity: 0;
|
|
200
211
|
height: 0;
|
|
201
|
-
padding: 0 16px;
|
|
202
|
-
color: #212121;
|
|
203
|
-
font-size: 14px;
|
|
204
|
-
-webkit-transition: height 0.3s, opacity calc(0.3s / 2);
|
|
205
|
-
transition: height 0.3s, opacity calc(0.3s / 2);
|
|
212
|
+
padding: var(--kd-c-collapse-content-spacing-padding, 0 16px);
|
|
213
|
+
color: var(--kd-c-collapse-content-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
214
|
+
font-size: var(--kd-c-collapse-content-font-size, var(--kd-g-font-size-middle, 14px));
|
|
215
|
+
-webkit-transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity calc(var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)) / 2);
|
|
216
|
+
transition: height var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)), opacity calc(var(--kd-c-collapse-motion-duration, var(--kd-g-duration, 0.3s)) / 2);
|
|
206
217
|
}
|
|
207
218
|
.kd-collapse-panel-children-bordered {
|
|
208
|
-
padding: 12px;
|
|
219
|
+
padding: var(--kd-c-collapse-content-bordered-spacing-padding, 12px);
|
|
209
220
|
overflow: hidden;
|
|
210
221
|
}
|
|
211
222
|
.kd-collapse-panel-disabled {
|
|
212
223
|
cursor: not-allowed !important;
|
|
213
|
-
color:
|
|
224
|
+
color: var(--kd-c-collapse-color-disabled, raba(178, 178, 178, 1));
|
|
214
225
|
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
&-top {
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
padding: @collapse-header-padding;
|
|
22
|
+
background: @collapse-header-color-background;
|
|
22
23
|
}
|
|
23
24
|
&-top-border {
|
|
24
25
|
border-bottom: @collapse-border-width solid @collapse-border-color;
|
|
@@ -50,11 +51,11 @@
|
|
|
50
51
|
}
|
|
51
52
|
&-animation-expand {
|
|
52
53
|
transform: rotate(0deg);
|
|
53
|
-
transition: transform @transition-duration;
|
|
54
|
+
transition: transform @collapse-transition-duration;
|
|
54
55
|
}
|
|
55
56
|
&-animation-collapse {
|
|
56
57
|
transform: rotate(90deg);
|
|
57
|
-
transition: transform @transition-duration;
|
|
58
|
+
transition: transform @collapse-transition-duration;
|
|
58
59
|
}
|
|
59
60
|
&-children {
|
|
60
61
|
overflow: hidden;
|
|
@@ -62,7 +63,8 @@
|
|
|
62
63
|
padding: @collapse-content-padding;
|
|
63
64
|
color: @collapse-content-font-color;
|
|
64
65
|
font-size: @collapse-content-font-size;
|
|
65
|
-
transition: height @transition-duration, opacity @transition-duration;
|
|
66
|
+
transition: height @collapse-transition-duration, opacity @collapse-transition-duration;
|
|
67
|
+
background: @collapse-content-color-background;
|
|
66
68
|
}
|
|
67
69
|
&-children-hide {
|
|
68
70
|
overflow: hidden;
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
padding: @collapse-content-padding;
|
|
72
74
|
color: @collapse-content-font-color;
|
|
73
75
|
font-size: @collapse-content-font-size;
|
|
74
|
-
transition: height @transition-duration, opacity calc(@transition-duration / 2);
|
|
76
|
+
transition: height @collapse-transition-duration, opacity calc(@collapse-transition-duration / 2);
|
|
75
77
|
}
|
|
76
78
|
&-children-bordered {
|
|
77
79
|
padding: @collapse-content-bordered-padding;
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
}
|
|
80
82
|
&-disabled {
|
|
81
83
|
cursor: not-allowed !important;
|
|
82
|
-
color: @disabled-color;
|
|
84
|
+
color: @collapse-disabled-color;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import '../../style//themes/token.less';
|
|
2
|
+
|
|
3
|
+
@collapse-prefix: '--@{kd-prefix}-c-collapse';
|
|
4
|
+
|
|
5
|
+
// sizing
|
|
6
|
+
@collapse-border-width: var(~'@{collapse-prefix}-border-width', 1px);
|
|
7
|
+
@collapse-icon-margin-right: var(~'@{collapse-prefix}-spacing-margin-right', 6px);
|
|
8
|
+
@collapse-header-padding: var(~'@{collapse-prefix}-header-spacing-padding', 12px);
|
|
9
|
+
@collapse-content-bordered-padding: var(~'@{collapse-prefix}-content-bordered-spacing-padding', 12px);
|
|
10
|
+
@collapse-content-padding: var(~'@{collapse-prefix}-content-spacing-padding', 0 16px);
|
|
11
|
+
|
|
12
|
+
// color
|
|
13
|
+
@collapse-border-color: var(~'@{collapse-prefix}-color-border-strong-2', @color-border-strong-2);
|
|
14
|
+
@collapse-header-font-color: var(~'@{collapse-prefix}-header-color-text-primary', @color-text-primary);
|
|
15
|
+
@collapse-content-font-color: var(~'@{collapse-prefix}-content-color-text-primary', @color-text-primary);
|
|
16
|
+
@collapse-disabled-color: var(~'@{collapse-prefix}-color-disabled', raba(178, 178, 178, 1));
|
|
17
|
+
@collapse-header-color-background: var(~'@{collapse-prefix}-header-color-background', rgba(0, 0, 0, 0));
|
|
18
|
+
@collapse-content-color-background: var(~'@{collapse-prefix}-content-color-background', rgba(0, 0, 0, 0));
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
// font
|
|
22
|
+
@collapse-header-font-size: var(~'@{collapse-prefix}-header-font-size', @font-size-middle);
|
|
23
|
+
@collapse-content-font-size: var(~'@{collapse-prefix}-content-font-size', @font-size-middle);
|
|
24
|
+
|
|
25
|
+
// motion
|
|
26
|
+
@collapse-transition-duration: var(~'@{collapse-prefix}-motion-duration', @duration-promptly);
|
|
@@ -96,7 +96,6 @@ declare const compDefaultProps: {
|
|
|
96
96
|
destroyOnClose: boolean;
|
|
97
97
|
forceRender: boolean;
|
|
98
98
|
getContainer: HTMLElement;
|
|
99
|
-
height: number;
|
|
100
99
|
keyboard: boolean;
|
|
101
100
|
mask: boolean;
|
|
102
101
|
maskClosable: boolean;
|
|
@@ -392,5 +391,9 @@ declare const compDefaultProps: {
|
|
|
392
391
|
shape: string;
|
|
393
392
|
gap: number;
|
|
394
393
|
};
|
|
394
|
+
Link: {
|
|
395
|
+
size: string;
|
|
396
|
+
underscore: boolean;
|
|
397
|
+
};
|
|
395
398
|
};
|
|
396
399
|
export default compDefaultProps;
|