@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,5 +1,6 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@pagination-prefix-cls: ~'@{kd-prefix}-pagination';
|
|
5
6
|
@pagination-action-prefix-cls: ~'@{pagination-prefix-cls}-action';
|
|
@@ -10,8 +11,8 @@
|
|
|
10
11
|
|
|
11
12
|
.@{pagination-prefix-cls} {
|
|
12
13
|
.reset-component;
|
|
13
|
-
color: @pagination-
|
|
14
|
-
font-size: @
|
|
14
|
+
color: @pagination-text-color;
|
|
15
|
+
font-size: @pagination-font-size;
|
|
15
16
|
|
|
16
17
|
.@{pagination-prefix-cls}-total {
|
|
17
18
|
display: inline-block;
|
|
@@ -31,22 +32,22 @@
|
|
|
31
32
|
padding: 0;
|
|
32
33
|
outline: none;
|
|
33
34
|
text-align: center;
|
|
34
|
-
background: @
|
|
35
|
-
color: @
|
|
36
|
-
font-size: @
|
|
37
|
-
border-radius: @radius-
|
|
38
|
-
border:
|
|
39
|
-
transition: border-color @
|
|
35
|
+
background: @color-background;
|
|
36
|
+
color: @color-text-primary;
|
|
37
|
+
font-size: @pagination-font-size;
|
|
38
|
+
border-radius: @radius-border;
|
|
39
|
+
border: @pagination-border-size solid @color-border-strong;
|
|
40
|
+
transition: border-color @duration-promptly;
|
|
40
41
|
|
|
41
42
|
&:hover,
|
|
42
43
|
&:active,
|
|
43
44
|
&:focus {
|
|
44
|
-
border-color: @pagination-hover-color;
|
|
45
|
+
border-color: @pagination-border-hover-color;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
&:disabled {
|
|
48
|
-
color: @disabled
|
|
49
|
-
border:
|
|
49
|
+
color: @color-disabled;
|
|
50
|
+
border: @pagination-border-size solid @pagination-border-disabled-color;
|
|
50
51
|
background: @pagination-button-disabled-background-color;
|
|
51
52
|
cursor: not-allowed;
|
|
52
53
|
}
|
|
@@ -63,14 +64,14 @@
|
|
|
63
64
|
display: inline-block;
|
|
64
65
|
|
|
65
66
|
&.bordered {
|
|
66
|
-
margin-right: @pagination-button-
|
|
67
|
+
margin-right: calc(2 * @pagination-button-spacing);
|
|
67
68
|
|
|
68
69
|
&:last-child {
|
|
69
70
|
margin-right: 0;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
button {
|
|
73
|
-
border:
|
|
74
|
+
border: @pagination-border-size solid @pagination-border-color;
|
|
74
75
|
|
|
75
76
|
&:disabled {
|
|
76
77
|
background-color: @pagination-button-disabled-background-color;
|
|
@@ -84,17 +85,17 @@
|
|
|
84
85
|
width: @pagination-size;
|
|
85
86
|
height: @pagination-size;
|
|
86
87
|
border: none;
|
|
87
|
-
background-color: @
|
|
88
|
-
border-radius: @radius-
|
|
88
|
+
background-color: @color-background;
|
|
89
|
+
border-radius: @radius-border;
|
|
89
90
|
cursor: pointer;
|
|
90
91
|
outline: none;
|
|
91
92
|
vertical-align: middle;
|
|
92
|
-
transition: border-color @
|
|
93
|
+
transition: border-color @duration-promptly;
|
|
93
94
|
|
|
94
95
|
&:hover,
|
|
95
96
|
&:active {
|
|
96
97
|
&:not(:disabled) {
|
|
97
|
-
border-color: @pagination-hover-color;
|
|
98
|
+
border-color: @pagination-border-hover-color;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
i {
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
cursor: not-allowed;
|
|
107
108
|
|
|
108
109
|
i {
|
|
109
|
-
color: @pagination-
|
|
110
|
+
color: @pagination-icon-disabled-color;
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
|
|
@@ -121,8 +122,8 @@
|
|
|
121
122
|
align-items: center;
|
|
122
123
|
justify-content: center;
|
|
123
124
|
font-size: @pagination-icon-size;
|
|
124
|
-
color: @pagination-
|
|
125
|
-
transition: color @
|
|
125
|
+
color: @pagination-icon-color;
|
|
126
|
+
transition: color @duration-promptly;
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
}
|
|
@@ -141,10 +142,10 @@
|
|
|
141
142
|
box-sizing: border-box;
|
|
142
143
|
display: inline-block;
|
|
143
144
|
line-height: @pagination-size;
|
|
144
|
-
font-size: @
|
|
145
|
-
color: @
|
|
146
|
-
border-radius: @radius-
|
|
147
|
-
background: @
|
|
145
|
+
font-size: @pagination-font-size;
|
|
146
|
+
color: @color-text-primary;
|
|
147
|
+
border-radius: @radius-border;
|
|
148
|
+
background: @color-background;
|
|
148
149
|
cursor: pointer;
|
|
149
150
|
border: none;
|
|
150
151
|
outline: none;
|
|
@@ -159,14 +160,14 @@
|
|
|
159
160
|
&.disabled,
|
|
160
161
|
&.disabled > i {
|
|
161
162
|
cursor: not-allowed;
|
|
162
|
-
color: @
|
|
163
|
+
color: @color-border-disabled;
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
i {
|
|
166
167
|
margin-left: 5px;
|
|
167
168
|
line-height: @pagination-size;
|
|
168
169
|
font-size: @pagination-icon-size;
|
|
169
|
-
color: @pagination-
|
|
170
|
+
color: @pagination-text-color;
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
173
|
}
|
|
@@ -174,15 +175,15 @@
|
|
|
174
175
|
// 简化版分页
|
|
175
176
|
&.simple {
|
|
176
177
|
display: inline-block;
|
|
177
|
-
border-radius: @radius-
|
|
178
|
-
border:
|
|
178
|
+
border-radius: @radius-border;
|
|
179
|
+
border: @pagination-border-size solid transparent;
|
|
179
180
|
|
|
180
181
|
&.bordered {
|
|
181
|
-
border-color: @
|
|
182
|
-
transition: border-color @
|
|
182
|
+
border-color: @pagination-border-color;
|
|
183
|
+
transition: border-color @duration-promptly;
|
|
183
184
|
|
|
184
185
|
&:active:not(.disabled) {
|
|
185
|
-
border-color: @pagination-hover-color;
|
|
186
|
+
border-color: @pagination-border-hover-color;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
&.disabled,
|
|
@@ -192,14 +193,14 @@
|
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
&.disabled > .@{pagination-prefix-cls}-item {
|
|
195
|
-
color: @
|
|
196
|
+
color: @color-border-disabled;
|
|
196
197
|
}
|
|
197
198
|
|
|
198
199
|
.@{pagination-prefix-cls}-item {
|
|
199
200
|
.reset-component;
|
|
200
201
|
display: inline-block;
|
|
201
202
|
vertical-align: middle;
|
|
202
|
-
color: @
|
|
203
|
+
color: @color-text-primary;
|
|
203
204
|
margin: 0 18px;
|
|
204
205
|
|
|
205
206
|
&:first-child,
|
|
@@ -215,7 +216,7 @@
|
|
|
215
216
|
margin: 0;
|
|
216
217
|
|
|
217
218
|
&:disabled {
|
|
218
|
-
color: @disabled
|
|
219
|
+
color: @color-disabled;
|
|
219
220
|
cursor: not-allowed;
|
|
220
221
|
}
|
|
221
222
|
}
|
|
@@ -229,20 +230,20 @@
|
|
|
229
230
|
button {
|
|
230
231
|
box-sizing: border-box;
|
|
231
232
|
position: relative;
|
|
232
|
-
width: @pagination-size - 2px;
|
|
233
|
-
height: @pagination-size - 2px;
|
|
233
|
+
width: calc(@pagination-size - 2px);
|
|
234
|
+
height: calc(@pagination-size - 2px);
|
|
234
235
|
border: none;
|
|
235
|
-
background-color: @
|
|
236
|
-
border-radius: @radius-
|
|
236
|
+
background-color: @color-background;
|
|
237
|
+
border-radius: @radius-border;
|
|
237
238
|
cursor: pointer;
|
|
238
239
|
outline: none;
|
|
239
240
|
vertical-align: middle;
|
|
240
|
-
transition: border-color @
|
|
241
|
+
transition: border-color @duration-promptly;
|
|
241
242
|
|
|
242
243
|
&:hover,
|
|
243
244
|
&:active {
|
|
244
245
|
&:not(:disabled) {
|
|
245
|
-
border-color: @pagination-hover-color
|
|
246
|
+
border-color: @pagination-border-hover-color
|
|
246
247
|
}
|
|
247
248
|
|
|
248
249
|
i {
|
|
@@ -254,7 +255,7 @@
|
|
|
254
255
|
cursor: not-allowed;
|
|
255
256
|
|
|
256
257
|
i {
|
|
257
|
-
color: @pagination-
|
|
258
|
+
color: @pagination-icon-disabled-color;
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
|
|
@@ -265,10 +266,10 @@
|
|
|
265
266
|
bottom: 0;
|
|
266
267
|
left: 0;
|
|
267
268
|
margin: auto;
|
|
268
|
-
line-height: @pagination-size - 2px;
|
|
269
|
+
line-height: calc(@pagination-size - 2px);
|
|
269
270
|
font-size: @pagination-icon-size;
|
|
270
|
-
color: @pagination-
|
|
271
|
-
transition: color @
|
|
271
|
+
color: @pagination-icon-color;
|
|
272
|
+
transition: color @duration-promptly;
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
275
|
}
|
|
@@ -283,26 +284,15 @@
|
|
|
283
284
|
.reset-component;
|
|
284
285
|
position: relative;
|
|
285
286
|
display: inline-block;
|
|
286
|
-
margin-right: @pagination-button-
|
|
287
|
+
margin-right: @pagination-button-spacing;
|
|
287
288
|
vertical-align: middle;
|
|
288
289
|
|
|
289
290
|
&:last-child {
|
|
290
291
|
margin-right: 0;
|
|
291
292
|
}
|
|
292
293
|
|
|
293
|
-
&:hover,
|
|
294
|
-
&:active,
|
|
295
|
-
&.active {
|
|
296
|
-
button {
|
|
297
|
-
border-color: @theme-color;
|
|
298
|
-
&:disabled {
|
|
299
|
-
border-color: @strong-border-color;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
294
|
&.active > button:disabled {
|
|
305
|
-
background-color: @contain
|
|
295
|
+
background-color: @color-background-contain;
|
|
306
296
|
}
|
|
307
297
|
|
|
308
298
|
&:hover,
|
|
@@ -311,7 +301,7 @@
|
|
|
311
301
|
&:first-child,
|
|
312
302
|
&:last-child {
|
|
313
303
|
button {
|
|
314
|
-
color: @theme
|
|
304
|
+
color: @color-theme;
|
|
315
305
|
}
|
|
316
306
|
}
|
|
317
307
|
|
|
@@ -320,15 +310,15 @@
|
|
|
320
310
|
button {
|
|
321
311
|
width: @pagination-size;
|
|
322
312
|
padding: 0;
|
|
323
|
-
border-radius: @radius-
|
|
324
|
-
border:
|
|
313
|
+
border-radius: @radius-border;
|
|
314
|
+
border: @pagination-border-size solid @pagination-border-color;
|
|
325
315
|
|
|
326
316
|
&:hover,
|
|
327
317
|
&:active {
|
|
328
|
-
border-color: @
|
|
318
|
+
border-color: @pagination-border-hover-color;
|
|
329
319
|
|
|
330
320
|
&:disabled {
|
|
331
|
-
border-color: @
|
|
321
|
+
border-color: @pagination-border-disabled-color
|
|
332
322
|
}
|
|
333
323
|
}
|
|
334
324
|
}
|
|
@@ -339,17 +329,17 @@
|
|
|
339
329
|
min-width: @pagination-size;
|
|
340
330
|
height: @pagination-size;
|
|
341
331
|
padding: 0 4px;
|
|
342
|
-
color: @
|
|
343
|
-
font-size: @
|
|
332
|
+
color: @color-text-primary;
|
|
333
|
+
font-size: @pagination-font-size;
|
|
344
334
|
cursor: pointer;
|
|
345
335
|
outline: none;
|
|
346
336
|
border: none;
|
|
347
|
-
background: @
|
|
348
|
-
transition: color @
|
|
337
|
+
background: @color-background;
|
|
338
|
+
transition: color @duration-promptly, border-color @duration-promptly;
|
|
349
339
|
|
|
350
340
|
&:disabled {
|
|
351
341
|
cursor: not-allowed;
|
|
352
|
-
color: @disabled
|
|
342
|
+
color: @color-disabled;
|
|
353
343
|
}
|
|
354
344
|
}
|
|
355
345
|
}
|
|
@@ -365,7 +355,7 @@
|
|
|
365
355
|
.reset-component;
|
|
366
356
|
position: relative;
|
|
367
357
|
display: inline-block;
|
|
368
|
-
margin-right: @pagination-button-
|
|
358
|
+
margin-right: @pagination-button-spacing;
|
|
369
359
|
vertical-align: middle;
|
|
370
360
|
|
|
371
361
|
&:last-child {
|
|
@@ -376,15 +366,15 @@
|
|
|
376
366
|
&:active,
|
|
377
367
|
&.active {
|
|
378
368
|
button {
|
|
379
|
-
border-color: @
|
|
369
|
+
border-color: @pagination-border-hover-color;
|
|
380
370
|
&:disabled {
|
|
381
|
-
border-color: @
|
|
371
|
+
border-color: @pagination-border-disabled-color;
|
|
382
372
|
}
|
|
383
373
|
}
|
|
384
374
|
}
|
|
385
375
|
|
|
386
376
|
&.active > button:disabled {
|
|
387
|
-
background-color: @contain
|
|
377
|
+
background-color: @color-background-contain;
|
|
388
378
|
}
|
|
389
379
|
|
|
390
380
|
&:hover,
|
|
@@ -393,7 +383,7 @@
|
|
|
393
383
|
&:first-child,
|
|
394
384
|
&:last-child {
|
|
395
385
|
button {
|
|
396
|
-
color: @theme
|
|
386
|
+
color: @color-theme;
|
|
397
387
|
|
|
398
388
|
&:not(:disabled) > .@{pagination-pages-prefix-cls}-jumper-icon {
|
|
399
389
|
opacity: 1;
|
|
@@ -406,6 +396,7 @@
|
|
|
406
396
|
button {
|
|
407
397
|
width: @pagination-nicety-size;
|
|
408
398
|
padding: 0;
|
|
399
|
+
line-height: calc(@pagination-nicety-size - 2px);
|
|
409
400
|
}
|
|
410
401
|
}
|
|
411
402
|
|
|
@@ -416,16 +407,16 @@
|
|
|
416
407
|
padding: 0 6px;
|
|
417
408
|
cursor: pointer;
|
|
418
409
|
outline: none;
|
|
419
|
-
font-size: @
|
|
420
|
-
color: @
|
|
421
|
-
border-radius: @radius-
|
|
422
|
-
border:
|
|
423
|
-
background: @
|
|
424
|
-
transition: color @
|
|
410
|
+
font-size: @pagination-font-size;
|
|
411
|
+
color: @color-text-primary;
|
|
412
|
+
border-radius: @radius-border;
|
|
413
|
+
border: @pagination-border-size solid @pagination-border-color;
|
|
414
|
+
background: @color-background;
|
|
415
|
+
transition: color @duration-promptly, border-color @duration-promptly, background-color @duration-promptly;
|
|
425
416
|
|
|
426
417
|
&:disabled {
|
|
427
418
|
cursor: not-allowed;
|
|
428
|
-
color: @disabled
|
|
419
|
+
color: @color-disabled;
|
|
429
420
|
}
|
|
430
421
|
|
|
431
422
|
.@{pagination-pages-prefix-cls}-jumper-icon {
|
|
@@ -435,10 +426,10 @@
|
|
|
435
426
|
opacity: 0;
|
|
436
427
|
width: 100%;
|
|
437
428
|
height: 100%;
|
|
438
|
-
color: @theme
|
|
429
|
+
color: @color-theme;
|
|
439
430
|
line-height: @pagination-nicety-size;
|
|
440
|
-
background-color: @
|
|
441
|
-
transition: opacity @
|
|
431
|
+
background-color: @color-background;
|
|
432
|
+
transition: opacity @duration-promptly;
|
|
442
433
|
}
|
|
443
434
|
}
|
|
444
435
|
}
|
|
@@ -456,22 +447,22 @@
|
|
|
456
447
|
padding: 0;
|
|
457
448
|
outline: none;
|
|
458
449
|
text-align: center;
|
|
459
|
-
background: @
|
|
460
|
-
color: @
|
|
461
|
-
font-size: @
|
|
462
|
-
border-radius: @radius-
|
|
463
|
-
border:
|
|
464
|
-
transition: border-color @
|
|
450
|
+
background: @color-background;
|
|
451
|
+
color: @color-text-primary;
|
|
452
|
+
font-size: @pagination-font-size;
|
|
453
|
+
border-radius: @radius-border;
|
|
454
|
+
border: @pagination-border-size solid @color-border-strong;
|
|
455
|
+
transition: border-color @duration-promptly;
|
|
465
456
|
|
|
466
457
|
&:hover,
|
|
467
458
|
&:active,
|
|
468
459
|
&:focus {
|
|
469
|
-
border-color: @pagination-hover-color;
|
|
460
|
+
border-color: @pagination-border-hover-color;
|
|
470
461
|
}
|
|
471
462
|
|
|
472
463
|
&:disabled {
|
|
473
|
-
color: @disabled
|
|
474
|
-
border:
|
|
464
|
+
color: @color-disabled;
|
|
465
|
+
border: @pagination-border-size solid @pagination-border-disabled-color;
|
|
475
466
|
background: @pagination-button-disabled-background-color;
|
|
476
467
|
cursor: not-allowed;
|
|
477
468
|
}
|
|
@@ -481,30 +472,30 @@
|
|
|
481
472
|
.reset-component;
|
|
482
473
|
width: @pagination-nicety-size;
|
|
483
474
|
height: @pagination-nicety-size;
|
|
484
|
-
margin-left: @pagination-button-
|
|
475
|
+
margin-left: @pagination-button-spacing;
|
|
485
476
|
line-height: @pagination-nicety-size;
|
|
486
477
|
vertical-align: top;
|
|
487
478
|
cursor: pointer;
|
|
488
479
|
outline: none;
|
|
489
|
-
color: @theme
|
|
490
|
-
font-size: @
|
|
491
|
-
border-radius: @radius-
|
|
492
|
-
border:
|
|
493
|
-
background: @
|
|
494
|
-
transition: border-color @
|
|
480
|
+
color: @color-theme;
|
|
481
|
+
font-size: @pagination-font-size;
|
|
482
|
+
border-radius: @radius-border;
|
|
483
|
+
border: @pagination-border-size solid @color-border-strong;
|
|
484
|
+
background: @color-background;
|
|
485
|
+
transition: border-color @duration-promptly;
|
|
495
486
|
|
|
496
487
|
&:hover,
|
|
497
488
|
&:active,
|
|
498
489
|
&.active {
|
|
499
|
-
border-color: @
|
|
490
|
+
border-color: @pagination-border-hover-color;
|
|
500
491
|
|
|
501
492
|
&:disabled {
|
|
502
|
-
border-color: @
|
|
493
|
+
border-color: @pagination-border-disabled-color;
|
|
503
494
|
}
|
|
504
495
|
}
|
|
505
496
|
|
|
506
497
|
&:disabled {
|
|
507
|
-
color: @disabled
|
|
498
|
+
color: @color-disabled;
|
|
508
499
|
cursor: not-allowed;
|
|
509
500
|
}
|
|
510
501
|
}
|
|
@@ -517,7 +508,7 @@
|
|
|
517
508
|
margin-left: 40px;
|
|
518
509
|
outline: none;
|
|
519
510
|
height: @pagination-nicety-size;
|
|
520
|
-
color: @
|
|
511
|
+
color: @color-text-primary;
|
|
521
512
|
vertical-align: middle;
|
|
522
513
|
|
|
523
514
|
.@{pagination-options-prefix-cls}-size {
|
|
@@ -529,36 +520,36 @@
|
|
|
529
520
|
margin-right: 8px;
|
|
530
521
|
padding: 0 8px;
|
|
531
522
|
line-height: @pagination-nicety-size;
|
|
532
|
-
font-size: @
|
|
533
|
-
color: @
|
|
523
|
+
font-size: @pagination-font-size;
|
|
524
|
+
color: @color-text-primary;
|
|
534
525
|
text-align: left;
|
|
535
|
-
border-radius: @radius-
|
|
536
|
-
border:
|
|
537
|
-
background: @
|
|
526
|
+
border-radius: @radius-border;
|
|
527
|
+
border: @pagination-border-size solid @color-border-strong;
|
|
528
|
+
background: @color-background;
|
|
538
529
|
cursor: pointer;
|
|
539
530
|
outline: none;
|
|
540
|
-
transition: border-color @
|
|
531
|
+
transition: border-color @duration-promptly;
|
|
541
532
|
|
|
542
533
|
&:hover,
|
|
543
534
|
&:active {
|
|
544
|
-
border-color: @
|
|
535
|
+
border-color: @pagination-border-hover-color;
|
|
545
536
|
|
|
546
537
|
&.disabled {
|
|
547
|
-
border-color: @
|
|
538
|
+
border-color: @color-border-strong;
|
|
548
539
|
}
|
|
549
540
|
}
|
|
550
541
|
|
|
551
542
|
&.disabled,
|
|
552
543
|
&.disabled > i {
|
|
553
544
|
cursor: not-allowed;
|
|
554
|
-
color: @
|
|
545
|
+
color: @color-border-disabled;
|
|
555
546
|
}
|
|
556
547
|
|
|
557
548
|
i {
|
|
558
549
|
position: absolute;
|
|
559
550
|
top: 50%;
|
|
560
551
|
right: 5px;
|
|
561
|
-
line-height: @pagination-size - 2px;
|
|
552
|
+
line-height: calc(@pagination-size - 2px);
|
|
562
553
|
font-size: @pagination-icon-size;
|
|
563
554
|
color: @pagination-hover-color;
|
|
564
555
|
transform: translateY(-50%);
|
|
@@ -571,7 +562,7 @@
|
|
|
571
562
|
}
|
|
572
563
|
}
|
|
573
564
|
&-dropdown-icon {
|
|
574
|
-
transition: transform @
|
|
565
|
+
transition: transform @duration-promptly;
|
|
575
566
|
&-open {
|
|
576
567
|
transform: rotate(180deg);
|
|
577
568
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@pagination-custom-prefix: ~'--@{kd-prefix}-c-pagination';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@pagination-text-color: var(~'@{pagination-custom-prefix}-text-color', @color-text-secondary);
|
|
7
|
+
@pagination-hover-color: var(~'@{pagination-custom-prefix}-color-text-hover', @color-theme);
|
|
8
|
+
@pagination-disabled-color: var(~'@{pagination-custom-prefix}-color-text-disabled', @color-border-disabled);
|
|
9
|
+
@pagination-icon-color: var(~'@{pagination-custom-prefix}-button-color', @color-text-secondary);
|
|
10
|
+
@pagination-icon-disabled-color: var(~'@{pagination-custom-prefix}-button-color-disabled', @color-border-disabled);
|
|
11
|
+
@pagination-border-color: var(~'@{pagination-custom-prefix}-color-border', @color-border-strong);
|
|
12
|
+
@pagination-border-hover-color: var(~'@{pagination-custom-prefix}-color-border-hover', @color-theme);
|
|
13
|
+
@pagination-border-disabled-color: var(~'@{pagination-custom-prefix}-color-border-disabled', @color-border-strong);
|
|
14
|
+
@pagination-button-disabled-background-color: var(~'@{pagination-custom-prefix}-button-color-background-disabled', @color-background-contain-disabled);
|
|
15
|
+
|
|
16
|
+
// sizing
|
|
17
|
+
@pagination-size: var(~'@{pagination-custom-prefix}-sizing-square', 24px);
|
|
18
|
+
@pagination-nicety-size: var(~'@{pagination-custom-prefix}-nicety-sizing-square', 30px);
|
|
19
|
+
@pagination-border-size: var(~'@{pagination-custom-prefix}-sizing-border-width', 1px);
|
|
20
|
+
|
|
21
|
+
// spacing
|
|
22
|
+
@pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
|
|
23
|
+
|
|
24
|
+
// font
|
|
25
|
+
@pagination-font-size: var(~'@{pagination-custom-prefix}-font-size', @font-size-small);
|
|
26
|
+
@pagination-icon-size: var(~'@{pagination-custom-prefix}-icon-font-size', @font-size-large);
|
|
27
|
+
|
|
28
|
+
|