@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@select-custom-prefix: ~'--@{kd-prefix}-c-select';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// color
|
|
7
|
+
@select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
|
|
8
|
+
@select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', @color-background-contain-disabled);
|
|
9
|
+
@select-item-active-bg: var(~'@{select-custom-prefix}-color-background', @color-hover);
|
|
10
|
+
@select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', #f2f9ff);
|
|
11
|
+
@select-g-color-border: var(~'@{select-custom-prefix}-color-border', @color-input);
|
|
12
|
+
@select-g-color-border-foucs: var(~'@{select-custom-prefix}-color-border-foucs', @color-theme);
|
|
13
|
+
@select-g-color-border-hover: var(~'@{select-custom-prefix}-color-border-hover', @color-theme);
|
|
14
|
+
@select-border-g-color-border: var(~'@{select-custom-prefix}-border-color-border', @color-border-strong);
|
|
15
|
+
@select-placeholder-color: var(~'@{select-custom-prefix}-placeholder-color-text', @color-text-third);
|
|
16
|
+
@select-item-selected-color: var(~'@{select-custom-prefix}-item-color-text-selected', @color-ongoing);
|
|
17
|
+
@select-font-color: var(~'@{select-custom-prefix}-footer-color-text', @color-text-primary);
|
|
18
|
+
@select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', @color-text-link);
|
|
19
|
+
@select-g-item-text-color-disabled: var(~'@{select-custom-prefix}-item-color-text-disabled', @color-disabled);
|
|
20
|
+
|
|
21
|
+
// font
|
|
22
|
+
@select-list-font-size: var(~'@{select-custom-prefix}-dropdown-font-size', 12px); // 下拉列表文字大小
|
|
23
|
+
@select-large-font-size: var(~'@{select-custom-prefix}-font-size-large', 16px); // 大号字体
|
|
24
|
+
@select-middle-font-size: var(~'@{select-custom-prefix}-font-size-middle', 14px); // 中号高度
|
|
25
|
+
@select-small-font-size: var(~'@{select-custom-prefix}-font-size-small', 12px); // 小号高度
|
|
26
|
+
|
|
27
|
+
// sizing
|
|
28
|
+
@select-dropdown-height: var(~'@{select-custom-prefix}-item-sizing-height', 22px);
|
|
29
|
+
@select-large-height: var(~'@{select-custom-prefix}-sizing-height-large', 36px); // 大号高度 lh:28px
|
|
30
|
+
@select-middle-height: var(~'@{select-custom-prefix}-sizing-height-middle', 30px); // 中号高度lh:22px
|
|
31
|
+
@select-small-height: var(~'@{select-custom-prefix}-sizing-height-small', 24px); // 小号高度lh:12px
|
|
32
|
+
|
|
33
|
+
// line-height
|
|
34
|
+
@select-dropdown-line-height: var(~'@{select-custom-prefix}-dropdown-line-height', 22px);
|
|
35
|
+
@select-large-line-height: var(~'@{select-custom-prefix}-line-height-large', 28px);
|
|
36
|
+
@select-middle-line-height: var(~'@{select-custom-prefix}-line-height-middle', 22px);
|
|
37
|
+
@select-small-line-height: var(~'@{select-custom-prefix}-line-height-small', 14px);
|
|
38
|
+
|
|
39
|
+
// radius
|
|
40
|
+
@select-g-radius-border: var(~'@{select-custom-prefix}-radius-border', @radius-border);
|
|
41
|
+
|
|
42
|
+
// z-index
|
|
43
|
+
@select-z-index: var(~'@{select-custom-prefix}-z-index', @z-index-popper);
|
package/lib/slider/slider.js
CHANGED
|
@@ -99,7 +99,6 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
99
99
|
var sliderRef = ref || thisSliderRef;
|
|
100
100
|
var handleRef = (0, _react.useRef)();
|
|
101
101
|
var sliderClasses = (0, _classnames.default)(sliderPrefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(sliderPrefixCls, "-vertical"), vertical), (0, _defineProperty2.default)(_classNames, "".concat(sliderPrefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames, "".concat(sliderPrefixCls, "-reverse"), reverse), _classNames));
|
|
102
|
-
console.log('object :>> ', defaultValue, onAfterChange, onChange, marks, sliderProps);
|
|
103
102
|
|
|
104
103
|
var _useMergedState = (0, _hooks.useMergedState)(0, {
|
|
105
104
|
defaultValue: defaultValue,
|
|
@@ -115,7 +114,6 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
115
114
|
setDraging = _useState2[1];
|
|
116
115
|
|
|
117
116
|
var mouseOffset;
|
|
118
|
-
console.log(setValue, dragging, setDraging);
|
|
119
117
|
|
|
120
118
|
var addDocumentMouseEvents = function addDocumentMouseEvents() {
|
|
121
119
|
document.addEventListener('mousemove', handleMouseMove);
|
|
@@ -192,8 +190,7 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
192
190
|
setDraging(false);
|
|
193
191
|
};
|
|
194
192
|
|
|
195
|
-
var handleTouchStart = function handleTouchStart() {
|
|
196
|
-
console.log('object :>> ', 'object', addDocumentMouseEvents);
|
|
193
|
+
var handleTouchStart = function handleTouchStart() {// console.log('object :>> ', 'object', addDocumentMouseEvents)
|
|
197
194
|
};
|
|
198
195
|
|
|
199
196
|
var handleMouseDown = function handleMouseDown(e) {
|
|
@@ -203,7 +200,6 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
203
200
|
var position = vertical ? e.clientY : e.pageX; // 判断当前点击的区域是否是拖拽点还是bar条
|
|
204
201
|
|
|
205
202
|
var isHandlePoint = handleRef.current === e.target;
|
|
206
|
-
console.log('object :>> ', isHandlePoint, handleRef.current, e.target);
|
|
207
203
|
|
|
208
204
|
if (!isHandlePoint) {
|
|
209
205
|
mouseOffset = 0;
|
|
@@ -211,9 +207,8 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
211
207
|
var handlePosition = (0, _utils2.getHandleCenterposition)(vertical, e.target);
|
|
212
208
|
mouseOffset = position - handlePosition;
|
|
213
209
|
position = handlePosition;
|
|
214
|
-
}
|
|
210
|
+
} // 设置状态值
|
|
215
211
|
|
|
216
|
-
console.log('mouseOffset :>> ', mouseOffset); // 设置状态值
|
|
217
212
|
|
|
218
213
|
setDraging(true);
|
|
219
214
|
var newV = calcValueByPos(position);
|
|
@@ -231,12 +226,10 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
231
226
|
onEnd();
|
|
232
227
|
};
|
|
233
228
|
|
|
234
|
-
var handleKeyDown = function handleKeyDown() {
|
|
235
|
-
console.log('object :>> ', 'object');
|
|
229
|
+
var handleKeyDown = function handleKeyDown() {// console.log('object :>> ', 'object')
|
|
236
230
|
};
|
|
237
231
|
|
|
238
|
-
var handleFocus = function handleFocus() {
|
|
239
|
-
console.log('object :>> ', 'object');
|
|
232
|
+
var handleFocus = function handleFocus() {// console.log('object :>> ', 'object')
|
|
240
233
|
};
|
|
241
234
|
|
|
242
235
|
var handleBlur = function handleBlur(e) {
|
|
@@ -320,8 +313,7 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
320
313
|
min: min,
|
|
321
314
|
max: max,
|
|
322
315
|
bound: value,
|
|
323
|
-
onClickLabel: function onClickLabel() {
|
|
324
|
-
console.log('hello world!');
|
|
316
|
+
onClickLabel: function onClickLabel() {// console.log('hello world!')
|
|
325
317
|
}
|
|
326
318
|
}));
|
|
327
319
|
};
|
|
@@ -60,7 +60,6 @@ var SliderTooltip = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
|
|
|
60
60
|
var range = max - min;
|
|
61
61
|
var offset = "".concat(Math.abs(bound - min) / range * 100, "%");
|
|
62
62
|
var handleStyle = vertical ? (_ref = {}, (0, _defineProperty2.default)(_ref, reverse ? 'top' : 'bottom', offset), (0, _defineProperty2.default)(_ref, reverse ? 'bottom' : 'top', 'auto'), _ref) : (_ref2 = {}, (0, _defineProperty2.default)(_ref2, reverse ? 'right' : 'left', offset), (0, _defineProperty2.default)(_ref2, reverse ? 'left' : 'right', 'auto'), _ref2);
|
|
63
|
-
console.log('visible :>> ', visible);
|
|
64
63
|
var placement = vertical ? 'right' : 'top';
|
|
65
64
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, (0, _extends2.default)({
|
|
66
65
|
ref: tooltipRef
|
|
@@ -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
|
.slider {
|
|
96
105
|
position: relative;
|
|
97
106
|
-webkit-box-sizing: border-box;
|
|
@@ -132,7 +141,7 @@
|
|
|
132
141
|
-webkit-box-sizing: border-box;
|
|
133
142
|
box-sizing: border-box;
|
|
134
143
|
background-color: #fff;
|
|
135
|
-
border: 2px solid #
|
|
144
|
+
border: 2px solid var(--kd-c-slider-handle-color-border, var(--kd-g-color-theme, #5582f3));
|
|
136
145
|
border-radius: 50%;
|
|
137
146
|
cursor: pointer;
|
|
138
147
|
}
|
|
@@ -151,13 +160,13 @@
|
|
|
151
160
|
position: absolute;
|
|
152
161
|
width: 100%;
|
|
153
162
|
height: 4px;
|
|
154
|
-
background-color: #
|
|
163
|
+
background-color: var(--kd-c-slider-trail-color-background, var(--kd-g-color-border-weak, #e5e5e5));
|
|
155
164
|
border-radius: 2px;
|
|
156
165
|
}
|
|
157
166
|
.kd-slider-track {
|
|
158
167
|
position: absolute;
|
|
159
168
|
height: 4px;
|
|
160
|
-
background-color: #
|
|
169
|
+
background-color: var(--kd-c-slider-track-color-background, var(--kd-g-color-theme, #5582f3));
|
|
161
170
|
}
|
|
162
171
|
.kd-slider-step {
|
|
163
172
|
position: absolute;
|
|
@@ -178,7 +187,7 @@
|
|
|
178
187
|
cursor: pointer;
|
|
179
188
|
}
|
|
180
189
|
.kd-slider-dot.kd-slider-dot-actived {
|
|
181
|
-
border-color: #
|
|
190
|
+
border-color: var(--kd-c-slider-dot-color-border-actived, var(--kd-g-color-theme, #5582f3));
|
|
182
191
|
}
|
|
183
192
|
.kd-slider-handle {
|
|
184
193
|
position: absolute;
|
|
@@ -189,7 +198,7 @@
|
|
|
189
198
|
-webkit-box-sizing: border-box;
|
|
190
199
|
box-sizing: border-box;
|
|
191
200
|
background-color: #fff;
|
|
192
|
-
border: 2px solid #
|
|
201
|
+
border: 2px solid var(--kd-c-slider-handle-color-border, var(--kd-g-color-theme, #5582f3));
|
|
193
202
|
border-radius: 50%;
|
|
194
203
|
cursor: pointer;
|
|
195
204
|
}
|
|
@@ -201,7 +210,7 @@
|
|
|
201
210
|
.kd-slider-mark-text {
|
|
202
211
|
position: absolute;
|
|
203
212
|
display: inline-block;
|
|
204
|
-
color:
|
|
213
|
+
color: var(--kd-c-slider-mark-color-text, var(--kd-g-color-text-primary, #212121));
|
|
205
214
|
word-break: keep-all;
|
|
206
215
|
cursor: pointer;
|
|
207
216
|
-webkit-user-select: none;
|
|
@@ -212,16 +221,16 @@
|
|
|
212
221
|
transform: translateX(-50%);
|
|
213
222
|
}
|
|
214
223
|
.kd-slider-mark-text.kd-slider-mark-text-actived {
|
|
215
|
-
color:
|
|
224
|
+
color: var(--kd-c-slider-mark-color-text-actived, var(--kd-g-color-text-primary-2, #ffffff));
|
|
216
225
|
}
|
|
217
226
|
.kd-slider:hover > .kd-slider-rail {
|
|
218
227
|
background-color: #e1e1e1;
|
|
219
228
|
}
|
|
220
229
|
.kd-slider:not(.kd-slider-disabled):hover > .kd-slider-handle {
|
|
221
|
-
border-color: #
|
|
230
|
+
border-color: var(--kd-c-slider-handle-color-border-hover, var(--kd-g-color-theme-5, #87adff));
|
|
222
231
|
}
|
|
223
232
|
.kd-slider:not(.kd-slider-disabled):hover .kd-slider-track {
|
|
224
|
-
background-color: #
|
|
233
|
+
background-color: var(--kd-c-slider-track-color-background-hover, var(--kd-g-color-theme-5, #87adff));
|
|
225
234
|
}
|
|
226
235
|
.kd-slider-reverse .kd-slider-dot {
|
|
227
236
|
top: -2px;
|
|
@@ -293,13 +302,13 @@
|
|
|
293
302
|
cursor: not-allowed;
|
|
294
303
|
}
|
|
295
304
|
.kd-slider-disabled .kd-slider-track {
|
|
296
|
-
background-color:
|
|
305
|
+
background-color: var(--kd-c-slider-track-color-background-hover, var(--kd-g-color-disabled, #b2b2b2));
|
|
297
306
|
}
|
|
298
307
|
.kd-slider-disabled .kd-slider-dot {
|
|
299
|
-
border-color:
|
|
308
|
+
border-color: var(--kd-c-slider-dot-color-border-actived, var(--kd-g-color-disabled, #b2b2b2));
|
|
300
309
|
cursor: not-allowed;
|
|
301
310
|
}
|
|
302
311
|
.kd-slider-disabled .kd-slider-handle {
|
|
303
|
-
border-color:
|
|
312
|
+
border-color: var(--kd-c-slider-handle-color-border-hover, var(--kd-g-color-disabled, #b2b2b2));
|
|
304
313
|
cursor: not-allowed;
|
|
305
314
|
}
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
position: absolute;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 4px;
|
|
12
|
-
background-color:
|
|
12
|
+
background-color: @slider-trail-color-background;
|
|
13
13
|
border-radius: 2px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&-track {
|
|
17
17
|
position: absolute;
|
|
18
18
|
height: 4px;
|
|
19
|
-
background-color:
|
|
19
|
+
background-color: @slider-track-color-background;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&-step {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&-dot.@{slider-prefix-cls}-dot-actived {
|
|
32
|
-
border-color:
|
|
32
|
+
border-color: @slider-dot-color-border-actived;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&-handle {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
&-mark-text {
|
|
46
46
|
position: absolute;
|
|
47
47
|
display: inline-block;
|
|
48
|
-
color:
|
|
48
|
+
color: @slider-mark-text-color;
|
|
49
49
|
word-break: keep-all;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
user-select: none;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&-mark-text.@{slider-prefix-cls}-mark-text-actived {
|
|
56
|
-
color:
|
|
56
|
+
color: @slider-mark-text-color-actived;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&:hover > &-rail{
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&:not(&-disabled):hover > &-handle{
|
|
64
|
-
border-color:
|
|
64
|
+
border-color: @slider-handle-color-border-hover;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:not(&-disabled):hover &-track{
|
|
68
|
-
background-color:
|
|
68
|
+
background-color: @slider-track-color-background-hover;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&-reverse {
|
|
@@ -151,16 +151,16 @@
|
|
|
151
151
|
cursor: not-allowed;
|
|
152
152
|
|
|
153
153
|
.@{slider-prefix-cls}-track {
|
|
154
|
-
background-color:
|
|
154
|
+
background-color: @slider-track-color-background-disabled;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.@{slider-prefix-cls}-dot {
|
|
158
|
-
border-color:
|
|
158
|
+
border-color: @slider-dot-color-border-disabled;
|
|
159
159
|
cursor: not-allowed;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.@{slider-prefix-cls}-handle {
|
|
163
|
-
border-color:
|
|
163
|
+
border-color: @slider-handle-color-border-disabled;
|
|
164
164
|
cursor: not-allowed;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
1
3
|
.slider {
|
|
2
4
|
position: relative;
|
|
3
5
|
box-sizing: border-box;
|
|
@@ -34,7 +36,7 @@
|
|
|
34
36
|
height: 14px;
|
|
35
37
|
box-sizing: border-box;
|
|
36
38
|
background-color: #fff;
|
|
37
|
-
border: 2px solid
|
|
39
|
+
border: 2px solid @slider-handle-color-border;
|
|
38
40
|
border-radius: 50%;
|
|
39
41
|
cursor: pointer;
|
|
40
42
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@slider-custom-prefix: ~'--@{kd-prefix}-c-slider';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@slider-trail-color-background: var(~'@{slider-custom-prefix}-trail-color-background', @color-border-weak);
|
|
7
|
+
@slider-track-color-background: var(~'@{slider-custom-prefix}-track-color-background', @color-theme);
|
|
8
|
+
@slider-track-color-background-hover: var(~'@{slider-custom-prefix}-track-color-background-hover', @color-theme-hover);
|
|
9
|
+
@slider-track-color-background-disabled: var(~'@{slider-custom-prefix}-track-color-background-hover', @color-disabled);
|
|
10
|
+
@slider-handle-color-border: var(~'@{slider-custom-prefix}-handle-color-border', @color-theme);
|
|
11
|
+
@slider-handle-color-border-hover: var(~'@{slider-custom-prefix}-handle-color-border-hover', @color-theme-hover);
|
|
12
|
+
@slider-handle-color-border-disabled: var(~'@{slider-custom-prefix}-handle-color-border-hover', @color-disabled);
|
|
13
|
+
@slider-dot-color-border: var(~'@{slider-custom-prefix}-dot-color-border', @color-theme);
|
|
14
|
+
@slider-dot-color-border-actived: var(~'@{slider-custom-prefix}-dot-color-border-actived', @color-theme);
|
|
15
|
+
@slider-dot-color-border-disabled: var(~'@{slider-custom-prefix}-dot-color-border-actived', @color-disabled);
|
|
16
|
+
@slider-mark-text-color: var(~'@{slider-custom-prefix}-mark-color-text', @color-text-primary);
|
|
17
|
+
@slider-mark-text-color-actived: var(~'@{slider-custom-prefix}-mark-color-text-actived', @color-text-primary-2);
|
|
@@ -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
|
/** 浮层箭头样式 **/
|
package/lib/spin/style/index.css
CHANGED
|
@@ -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-spin-page .kd-spin-dot-spin {
|
|
96
105
|
width: 50px;
|
|
97
106
|
height: 50px;
|
|
@@ -110,9 +119,9 @@
|
|
|
110
119
|
align-content: space-between;
|
|
111
120
|
}
|
|
112
121
|
.kd-spin-page .kd-spin-dot-item {
|
|
113
|
-
width: 15px;
|
|
114
|
-
height: 15px;
|
|
115
|
-
background-color: #2386ee;
|
|
122
|
+
width: var(--kd-c-spin-page-sizing, 15px);
|
|
123
|
+
height: var(--kd-c-spin-page-sizing, 15px);
|
|
124
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-first, var(--kd-g-color-logo-1, #2386ee));
|
|
116
125
|
border-radius: 50%;
|
|
117
126
|
}
|
|
118
127
|
.kd-spin-page .kd-spin-dot-item:nth-child(2n+1) {
|
|
@@ -121,17 +130,17 @@
|
|
|
121
130
|
animation: pageLoading 1s 0.3s ease-in-out infinite;
|
|
122
131
|
}
|
|
123
132
|
.kd-spin-page .kd-spin-dot-item:nth-child(2n+2) {
|
|
124
|
-
background-color: #00ccfe;
|
|
133
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-second, var(--kd-g-color-logo-2, #00ccfe));
|
|
125
134
|
-webkit-animation: pageLoading 1s 0.2s ease-in-out infinite;
|
|
126
135
|
animation: pageLoading 1s 0.2s ease-in-out infinite;
|
|
127
136
|
}
|
|
128
137
|
.kd-spin-page .kd-spin-dot-item:nth-child(2n+3) {
|
|
129
|
-
background-color: #05c8c8;
|
|
138
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-third, var(--kd-g-color-logo-3, #05c8c8));
|
|
130
139
|
-webkit-animation: pageLoading 1s 0.1s ease-in-out infinite;
|
|
131
140
|
animation: pageLoading 1s 0.1s ease-in-out infinite;
|
|
132
141
|
}
|
|
133
142
|
.kd-spin-page .kd-spin-dot-item:nth-child(2n+4) {
|
|
134
|
-
background-color: #a06eff;
|
|
143
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-fourth, var(--kd-g-color-logo-4, #a06eff));
|
|
135
144
|
-webkit-animation: pageLoading 1s ease-in-out infinite;
|
|
136
145
|
animation: pageLoading 1s ease-in-out infinite;
|
|
137
146
|
}
|
|
@@ -169,9 +178,9 @@
|
|
|
169
178
|
align-items: flex-end;
|
|
170
179
|
}
|
|
171
180
|
.kd-spin-container .kd-spin-dot-spin .kd-spin-dot-item {
|
|
172
|
-
width: 5px;
|
|
173
|
-
height: 5px;
|
|
174
|
-
background-color: #2386ee;
|
|
181
|
+
width: var(--kd-c-spin-dot-container-sizing, 5px);
|
|
182
|
+
height: var(--kd-c-spin-dot-container-sizing, 5px);
|
|
183
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-first, var(--kd-g-color-logo-1, #2386ee));
|
|
175
184
|
border-radius: 50%;
|
|
176
185
|
}
|
|
177
186
|
.kd-spin-container .kd-spin-dot-spin .kd-spin-dot-item:nth-child(2n+1) {
|
|
@@ -179,17 +188,17 @@
|
|
|
179
188
|
animation: containerLoading 1s 0.6s ease-in-out infinite;
|
|
180
189
|
}
|
|
181
190
|
.kd-spin-container .kd-spin-dot-spin .kd-spin-dot-item:nth-child(2n+2) {
|
|
182
|
-
background-color: #00ccfe;
|
|
191
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-second, var(--kd-g-color-logo-2, #00ccfe));
|
|
183
192
|
-webkit-animation: containerLoading 1s 0.45s ease-in-out infinite;
|
|
184
193
|
animation: containerLoading 1s 0.45s ease-in-out infinite;
|
|
185
194
|
}
|
|
186
195
|
.kd-spin-container .kd-spin-dot-spin .kd-spin-dot-item:nth-child(2n+3) {
|
|
187
|
-
background-color: #05c8c8;
|
|
196
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-third, var(--kd-g-color-logo-3, #05c8c8));
|
|
188
197
|
-webkit-animation: containerLoading 1s 0.3s ease-in-out infinite;
|
|
189
198
|
animation: containerLoading 1s 0.3s ease-in-out infinite;
|
|
190
199
|
}
|
|
191
200
|
.kd-spin-container .kd-spin-dot-spin .kd-spin-dot-item:nth-child(2n+4) {
|
|
192
|
-
background-color: #a06eff;
|
|
201
|
+
background-color: var(--kd-c-spin-dot-color-backgroung-fourth, var(--kd-g-color-logo-4, #a06eff));
|
|
193
202
|
-webkit-animation: containerLoading 1s 0.15s ease-in-out infinite;
|
|
194
203
|
animation: containerLoading 1s 0.15s ease-in-out infinite;
|
|
195
204
|
}
|
|
@@ -216,7 +225,7 @@
|
|
|
216
225
|
.kd-spin-component .kd-spin-dot-spin {
|
|
217
226
|
width: 13px;
|
|
218
227
|
height: 13px;
|
|
219
|
-
border: 1px solid #e1e1e1;
|
|
228
|
+
border: 1px solid var(--kd-c-spin-component-dot-color-border, #e1e1e1);
|
|
220
229
|
border-radius: 50%;
|
|
221
230
|
position: relative;
|
|
222
231
|
-webkit-box-sizing: border-box;
|
|
@@ -228,7 +237,7 @@
|
|
|
228
237
|
-webkit-box-sizing: border-box;
|
|
229
238
|
box-sizing: border-box;
|
|
230
239
|
border: 1px solid transparent;
|
|
231
|
-
border-right-color: #5582f3;
|
|
240
|
+
border-right-color: var(--kd-c-spin-component-dot-item-color-border, var(--kd-g-color-theme, #5582f3));
|
|
232
241
|
border-radius: 50%;
|
|
233
242
|
position: absolute;
|
|
234
243
|
top: -1px;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
width: 50px;
|
|
16
16
|
height: 50px;
|
|
17
17
|
padding: 5px;
|
|
18
|
+
// background: @logo-color-1;
|
|
18
19
|
box-sizing: border-box;
|
|
19
20
|
display: flex;
|
|
20
21
|
flex-wrap: wrap;
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
.@{spin-prefix-cls}-dot-spin {
|
|
105
106
|
width: 13px;
|
|
106
107
|
height: 13px;
|
|
107
|
-
border: 1px solid
|
|
108
|
+
border: 1px solid @spin-component-dot-color-border;
|
|
108
109
|
border-radius: 50%;
|
|
109
110
|
position: relative;
|
|
110
111
|
box-sizing: border-box;
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
box-sizing: border-box;
|
|
116
117
|
border: 1px solid transparent;
|
|
117
118
|
// border-top-color: #5582f3;
|
|
118
|
-
border-right-color:
|
|
119
|
+
border-right-color: @spin-component-dot-item-color-border;
|
|
119
120
|
border-radius: 50%;
|
|
120
121
|
position: absolute;
|
|
121
122
|
top: -1px;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@spin-custom-prefix: ~'--@{kd-prefix}-c-spin';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@spin-dot-color-first: var(~'@{spin-custom-prefix}-dot-color-backgroung-first', @color-logo-1);
|
|
7
|
+
@spin-dot-color-second: var(~'@{spin-custom-prefix}-dot-color-backgroung-second', @color-logo-2);
|
|
8
|
+
@spin-dot-color-third: var(~'@{spin-custom-prefix}-dot-color-backgroung-third', @color-logo-3);
|
|
9
|
+
@spin-dot-color-fourth: var(~'@{spin-custom-prefix}-dot-color-backgroung-fourth', @color-logo-4);
|
|
10
|
+
@spin-component-dot-color-border: var(~'@{spin-custom-prefix}-component-dot-color-border', #e1e1e1);
|
|
11
|
+
@spin-component-dot-item-color-border: var(~'@{spin-custom-prefix}-component-dot-item-color-border', @color-theme);
|
|
12
|
+
|
|
13
|
+
// sizing
|
|
14
|
+
@spin-page-size: var(~'@{spin-custom-prefix}-page-sizing', 15px);
|
|
15
|
+
@spin-container-size: var(~'@{spin-custom-prefix}-dot-container-sizing', 5px);
|