@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,42 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@tag-custom-prefix: ~'--@{kd-prefix}-c-tag';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@tag-process-color: var(~'@{tag-custom-prefix}-color-process', @color-ongoing);
|
|
7
|
+
@tag-success-color: var(~'@{tag-custom-prefix}-color-success', @color-success);
|
|
8
|
+
@tag-warning-color: var(~'@{tag-custom-prefix}-color-warning', @color-warning);
|
|
9
|
+
@tag-error-color: var(~'@{tag-custom-prefix}-color-error', @color-error);
|
|
10
|
+
@tag-end-color: var(~'@{tag-custom-prefix}-color-end', @color-end);
|
|
11
|
+
@tag-expired-color: var(~'@{tag-custom-prefix}-color-expired', @color-disabled);
|
|
12
|
+
@tag-disabled-color: var(~'@{tag-custom-prefix}-color-disabled', @color-disabled);
|
|
13
|
+
@tag-attribute-g-text-color: var(~'@{tag-custom-prefix}-attribute-color-text', @color-white);
|
|
14
|
+
@tag-edit-g-color-border: var(~'@{tag-custom-prefix}-edit-color-border', @color-text-placeholder);
|
|
15
|
+
@tag-edit-g-text-color: var(~'@{tag-custom-prefix}-edit-color-text', @color-text-primary);
|
|
16
|
+
@tag-edit-g-color-border-hover: var(~'@{tag-custom-prefix}-edit-color-border-hover', @color-theme);
|
|
17
|
+
@tag-edit-cloesWrapper-g-color-background-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-background-hover', @color-theme);
|
|
18
|
+
@tag-edit-cloesWrapper-g-text-color-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-text-hover', @color-white);
|
|
19
|
+
@tag-edit-g-color-background-disabled: var(~'@{tag-custom-prefix}-edit-color-background-disabled', @color-background-contain-disabled);
|
|
20
|
+
@tag-edit-g-color-border-disabled: var(~'@{tag-custom-prefix}-edit-color-background-disabled', @color-border-strong);
|
|
21
|
+
@tag-edit-g-text-color-disabled: var(~'@{tag-custom-prefix}-edit-color-text-disabled', @color-border-strong);
|
|
22
|
+
|
|
23
|
+
// font
|
|
24
|
+
@tag-small-font-size: var(~'@{tag-custom-prefix}-font-size-small', @font-size-small);
|
|
25
|
+
@tag-middle-font-size: var(~'@{tag-custom-prefix}-font-size-middle', @font-size-small);
|
|
26
|
+
@tag-large-font-size: var(~'@{tag-custom-prefix}-font-size-large', @font-size-middle);
|
|
27
|
+
|
|
28
|
+
// motion
|
|
29
|
+
@tag-g-motion-duration: var(~'@{tag-custom-prefix}-motion-duration', @duration-promptly);
|
|
30
|
+
|
|
31
|
+
// radius
|
|
32
|
+
@tag-border-radius: var(~'@{tag-custom-prefix}-radius-border', 10px);
|
|
33
|
+
|
|
34
|
+
// sizing
|
|
35
|
+
@tag-small-height: var(~'@{tag-custom-prefix}-sizing-height-small', 20px);
|
|
36
|
+
@tag-middle-height: var(~'@{tag-custom-prefix}-sizing-height-middle', 20px);
|
|
37
|
+
@tag-large-height: var(~'@{tag-custom-prefix}-sizing-height-large', 24px);
|
|
38
|
+
|
|
39
|
+
// spacing
|
|
40
|
+
@tag-small-padding-horizontal: var(~'@{tag-custom-prefix}-spacing-padding-horizontal-small', 6px);
|
|
41
|
+
@tag-middle-padding-horizontal: var(~'@{tag-custom-prefix}-spacing-padding-horizontal-middle', 7px);
|
|
42
|
+
@tag-large-padding-horizontal: var(~'@{tag-custom-prefix}-spacing-padding-horizontal-large', 8px);
|
|
@@ -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
|
/** 浮层箭头样式 **/
|
|
@@ -116,17 +125,17 @@
|
|
|
116
125
|
font-feature-settings: 'tnum';
|
|
117
126
|
position: relative;
|
|
118
127
|
margin: 0;
|
|
119
|
-
padding-bottom: 26px;
|
|
120
|
-
font-size: 12px;
|
|
128
|
+
padding-bottom: var(--kd-c-timeline-spacing-padding-bottom, 26px);
|
|
129
|
+
font-size: var(--kd-c-timeline-content-font-size, var(--kd-g-font-size-small, 12px));
|
|
121
130
|
}
|
|
122
131
|
.kd-timeline .kd-timeline-item-tail {
|
|
123
132
|
position: absolute;
|
|
124
|
-
left:
|
|
133
|
+
left: calc((9px - 1px) / 2);
|
|
125
134
|
height: calc(100% - 9px * 2 + 4px);
|
|
126
|
-
border-left: 1px solid #e5e5e5;
|
|
135
|
+
border-left: var(--kd-c-timeline-sizing-width, 1px) solid var(--kd-c-timeline-line-color, var(--kd-g-color-border-weak, #e5e5e5));
|
|
127
136
|
}
|
|
128
137
|
.kd-timeline .kd-timeline-item.pending .kd-timeline-item-dot {
|
|
129
|
-
font-size: 12px;
|
|
138
|
+
font-size: var(--kd-c-timeline-content-font-size, var(--kd-g-font-size-small, 12px));
|
|
130
139
|
}
|
|
131
140
|
.kd-timeline .kd-timeline-item.pending .kd-timeline-item-tail {
|
|
132
141
|
display: none;
|
|
@@ -142,24 +151,24 @@
|
|
|
142
151
|
transform: translateY(-50%);
|
|
143
152
|
}
|
|
144
153
|
.kd-timeline .kd-timeline-item-dot.blue {
|
|
145
|
-
color: #5582f3;
|
|
146
|
-
background-color: #5582f3;
|
|
154
|
+
color: var(--kd-c-timeline-finished-color, var(--kd-g-color-theme, #5582f3));
|
|
155
|
+
background-color: var(--kd-c-timeline-finished-color, var(--kd-g-color-theme, #5582f3));
|
|
147
156
|
}
|
|
148
157
|
.kd-timeline .kd-timeline-item-dot.red {
|
|
149
|
-
color: #fb2323;
|
|
150
|
-
background-color: #fb2323;
|
|
158
|
+
color: var(--kd-c-timeline-error-color, var(--kd-g-color-error, #fb2323));
|
|
159
|
+
background-color: var(--kd-c-timeline-error-color, var(--kd-g-color-error, #fb2323));
|
|
151
160
|
}
|
|
152
161
|
.kd-timeline .kd-timeline-item-dot.green {
|
|
153
|
-
color: #1ba854;
|
|
154
|
-
background-color: #1ba854;
|
|
162
|
+
color: var(--kd-c-timeline-success-color, var(--kd-g-color-success, #1ba854));
|
|
163
|
+
background-color: var(--kd-c-timeline-success-color, var(--kd-g-color-success, #1ba854));
|
|
155
164
|
}
|
|
156
165
|
.kd-timeline .kd-timeline-item-dot.gray {
|
|
157
|
-
color: #b2b2b2;
|
|
158
|
-
background-color: #b2b2b2;
|
|
166
|
+
color: var(--kd-c-timeline-disabled-color, var(--kd-g-color-disabled, #b2b2b2));
|
|
167
|
+
background-color: var(--kd-c-timeline-disabled-color, var(--kd-g-color-disabled, #b2b2b2));
|
|
159
168
|
}
|
|
160
169
|
.kd-timeline .kd-timeline-item-dot.custom {
|
|
161
170
|
position: absolute;
|
|
162
|
-
left:
|
|
171
|
+
left: calc(9px / 2);
|
|
163
172
|
width: auto;
|
|
164
173
|
height: auto;
|
|
165
174
|
margin-top: 0;
|
|
@@ -174,9 +183,9 @@
|
|
|
174
183
|
}
|
|
175
184
|
.kd-timeline .kd-timeline-item-content {
|
|
176
185
|
position: relative;
|
|
177
|
-
margin: 0 0 0
|
|
186
|
+
margin: 0 0 0 calc(2 * (9px - var(--kd-c-timeline-sizing-width, 1px)) + 8px);
|
|
178
187
|
word-break: break-word;
|
|
179
|
-
color: #212121;
|
|
188
|
+
color: var(--kd-c-timeline-content-color-text, var(--kd-g-color-text-primary, #212121));
|
|
180
189
|
}
|
|
181
190
|
.kd-timeline .kd-timeline-item-content > * {
|
|
182
191
|
margin: 0;
|
|
@@ -194,7 +203,7 @@
|
|
|
194
203
|
left: 50%;
|
|
195
204
|
}
|
|
196
205
|
.kd-timeline.alternate .kd-timeline-item-dot {
|
|
197
|
-
margin-left: -
|
|
206
|
+
margin-left: calc(-1 * (9px - 1px) / 2);
|
|
198
207
|
}
|
|
199
208
|
.kd-timeline.alternate .kd-timeline-item-dot.custom {
|
|
200
209
|
margin-left: 1px;
|
|
@@ -216,7 +225,7 @@
|
|
|
216
225
|
right: 4.5px;
|
|
217
226
|
}
|
|
218
227
|
.kd-timeline.right .kd-timeline-item-dot {
|
|
219
|
-
margin-right: -
|
|
228
|
+
margin-right: calc(-1 * (9px - 1px) / 2);
|
|
220
229
|
}
|
|
221
230
|
.kd-timeline.right .kd-timeline-item-dot.custom {
|
|
222
231
|
margin-right: 1px;
|
|
@@ -224,16 +233,16 @@
|
|
|
224
233
|
.kd-timeline.right .kd-timeline-item .kd-timeline-item-content {
|
|
225
234
|
left: 0;
|
|
226
235
|
text-align: right;
|
|
227
|
-
margin: 0
|
|
236
|
+
margin: 0 calc(2 * (9px - var(--kd-c-timeline-sizing-width, 1px)) + 8px) 0 0;
|
|
228
237
|
width: auto;
|
|
229
238
|
}
|
|
230
239
|
.kd-timeline.label.left .kd-timeline-item-tail,
|
|
231
240
|
.kd-timeline.label.left .kd-timeline-item-dot,
|
|
232
241
|
.kd-timeline.label.left .kd-timeline-item-dot.custom {
|
|
233
|
-
left:
|
|
242
|
+
left: calc((2 * 8px) + (9px / 2));
|
|
234
243
|
}
|
|
235
244
|
.kd-timeline.label.left .kd-timeline-item-dot {
|
|
236
|
-
margin-left: -
|
|
245
|
+
margin-left: calc(-1 * (9px - 1px) / 2);
|
|
237
246
|
}
|
|
238
247
|
.kd-timeline.label.left .kd-timeline-item-dot.custom {
|
|
239
248
|
margin-left: 1px;
|
|
@@ -241,9 +250,10 @@
|
|
|
241
250
|
.kd-timeline.label.left .kd-timeline-item .kd-timeline-item-label {
|
|
242
251
|
position: absolute;
|
|
243
252
|
text-align: right;
|
|
253
|
+
color: var(--kd-c-timeline-label-color-text, #666666);
|
|
244
254
|
}
|
|
245
255
|
.kd-timeline.label.left .kd-timeline-item .kd-timeline-item-content {
|
|
246
|
-
left:
|
|
256
|
+
left: calc(9px + 7.5px);
|
|
247
257
|
text-align: left;
|
|
248
258
|
margin-right: 16px;
|
|
249
259
|
}
|
|
@@ -251,13 +261,13 @@
|
|
|
251
261
|
.kd-timeline.label.right .kd-timeline-item-dot,
|
|
252
262
|
.kd-timeline.label.right .kd-timeline-item-dot.custom {
|
|
253
263
|
left: auto;
|
|
254
|
-
right:
|
|
264
|
+
right: calc((2 * 8px) + (9px / 2));
|
|
255
265
|
}
|
|
256
266
|
.kd-timeline.label.right .kd-timeline-item-dot {
|
|
257
|
-
margin-right: -
|
|
267
|
+
margin-right: calc(-1 * (9px - 1px) / 2);
|
|
258
268
|
}
|
|
259
269
|
.kd-timeline.label.right .kd-timeline-item-dot.custom {
|
|
260
|
-
right:
|
|
270
|
+
right: calc(-1 * (9px - 1px) / 2);
|
|
261
271
|
}
|
|
262
272
|
.kd-timeline.label.right .kd-timeline-item .kd-timeline-item-label {
|
|
263
273
|
position: absolute;
|
|
@@ -266,7 +276,7 @@
|
|
|
266
276
|
}
|
|
267
277
|
.kd-timeline.label.right .kd-timeline-item .kd-timeline-item-content {
|
|
268
278
|
left: auto;
|
|
269
|
-
right:
|
|
279
|
+
right: calc(9px + 7.5px);
|
|
270
280
|
text-align: right;
|
|
271
281
|
margin-left: 17px;
|
|
272
282
|
}
|
|
@@ -277,14 +287,14 @@
|
|
|
277
287
|
}
|
|
278
288
|
.kd-timeline.label.alternate .kd-timeline-item:nth-child(2n) .kd-timeline-item-label {
|
|
279
289
|
position: absolute;
|
|
280
|
-
left: calc(50% + (2 * (9px - 1px) + 8px) - 9px / 2);
|
|
281
|
-
width: calc(50% - (2 * (9px - 1px) + 8px) + 9px / 2);
|
|
290
|
+
left: calc(50% + (2 * (9px - var(--kd-c-timeline-sizing-width, 1px)) + 8px) - 9px / 2);
|
|
291
|
+
width: calc(50% - (2 * (9px - var(--kd-c-timeline-sizing-width, 1px)) + 8px) + 9px / 2);
|
|
282
292
|
text-align: left;
|
|
283
293
|
}
|
|
284
294
|
.kd-timeline.pending .kd-timeline-item.last .kd-timeline-item-tail {
|
|
285
295
|
display: block;
|
|
286
296
|
height: calc(100% - 14px);
|
|
287
|
-
border-left: 2px dotted #e5e5e5;
|
|
297
|
+
border-left: 2px dotted var(--kd-c-timeline-line-color, var(--kd-g-color-border-weak, #e5e5e5));
|
|
288
298
|
}
|
|
289
299
|
.kd-timeline.reverse .kd-timeline-item.last .kd-timeline-item-tail {
|
|
290
300
|
display: none;
|
|
@@ -293,7 +303,7 @@
|
|
|
293
303
|
top: 15px;
|
|
294
304
|
display: block;
|
|
295
305
|
height: calc(100% - 15px);
|
|
296
|
-
border-left: 2px dotted #e5e5e5;
|
|
306
|
+
border-left: 2px dotted var(--kd-c-timeline-line-color, var(--kd-g-color-border-weak, #e5e5e5));
|
|
297
307
|
}
|
|
298
308
|
.kd-timeline.reverse .kd-timeline-item.pending .kd-timeline-item-content {
|
|
299
309
|
min-height: 48px;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
|
+
@import 'token.less';
|
|
2
3
|
@import '../../style/mixins/index';
|
|
3
4
|
|
|
5
|
+
|
|
4
6
|
@timeline-prefix-cls: ~'@{kd-prefix}-timeline';
|
|
5
7
|
@timeline-item-prefix-cls: ~'@{kd-prefix}-timeline-item';
|
|
6
8
|
|
|
@@ -16,17 +18,17 @@
|
|
|
16
18
|
position: relative;
|
|
17
19
|
margin: 0;
|
|
18
20
|
padding-bottom: @timeline-item-padding-bottom;
|
|
19
|
-
font-size: @
|
|
21
|
+
font-size: @timeline-content-font-size-small;
|
|
20
22
|
|
|
21
23
|
&-tail {
|
|
22
24
|
position: absolute;
|
|
23
|
-
left: (@timeline-dot-size -
|
|
25
|
+
left: calc((@timeline-dot-size - 1px) / 2);
|
|
24
26
|
height: calc(100% - @timeline-dot-size * 2 + 4px);
|
|
25
|
-
border-left: @timeline-width solid @timeline-color;
|
|
27
|
+
border-left: @timeline-width solid @timeline-line-color;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
&.pending .@{timeline-item-prefix-cls}-dot {
|
|
29
|
-
font-size: @
|
|
31
|
+
font-size: @timeline-content-font-size-small;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
&.pending .@{timeline-item-prefix-cls}-tail {
|
|
@@ -42,29 +44,29 @@
|
|
|
42
44
|
transform: translateY(-50%);
|
|
43
45
|
|
|
44
46
|
&.blue {
|
|
45
|
-
color: @
|
|
46
|
-
background-color: @
|
|
47
|
+
color: @timeline-finished-color;
|
|
48
|
+
background-color: @timeline-finished-color;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
&.red {
|
|
50
|
-
color: @error-color;
|
|
51
|
-
background-color: @error-color;
|
|
52
|
+
color: @timeline-error-color;
|
|
53
|
+
background-color: @timeline-error-color;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
&.green {
|
|
55
|
-
color: @success-color;
|
|
56
|
-
background-color: @success-color;
|
|
57
|
+
color: @timeline-success-color;
|
|
58
|
+
background-color: @timeline-success-color;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
&.gray {
|
|
60
|
-
color: @disabled-color;
|
|
61
|
-
background-color: @disabled-color;
|
|
62
|
+
color: @timeline-disabled-color;
|
|
63
|
+
background-color: @timeline-disabled-color;
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
&-dot.custom {
|
|
66
68
|
position: absolute;
|
|
67
|
-
left: @timeline-dot-size / 2;
|
|
69
|
+
left: calc(@timeline-dot-size / 2);
|
|
68
70
|
width: auto;
|
|
69
71
|
height: auto;
|
|
70
72
|
margin-top: 0;
|
|
@@ -79,9 +81,9 @@
|
|
|
79
81
|
|
|
80
82
|
&-content {
|
|
81
83
|
position: relative;
|
|
82
|
-
margin: 0 0 0 2 * (@timeline-dot-size - @timeline-width) + @timeline-gap;
|
|
84
|
+
margin: 0 0 0 calc(2 * (@timeline-dot-size - @timeline-width) + @timeline-gap);
|
|
83
85
|
word-break: break-word;
|
|
84
|
-
color: @
|
|
86
|
+
color: @timeline-content-color-text;
|
|
85
87
|
|
|
86
88
|
> * {
|
|
87
89
|
margin: 0;
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
&-dot {
|
|
111
|
-
margin-left:
|
|
113
|
+
margin-left:calc(-1 * (@timeline-dot-size - 1px) / 2);
|
|
112
114
|
|
|
113
115
|
&.custom {
|
|
114
116
|
margin-left: 1px;
|
|
@@ -143,7 +145,7 @@
|
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
&-dot {
|
|
146
|
-
margin-right:
|
|
148
|
+
margin-right:calc(-1 * (@timeline-dot-size - 1px) / 2) ;
|
|
147
149
|
|
|
148
150
|
&.custom {
|
|
149
151
|
margin-right: 1px;
|
|
@@ -152,7 +154,7 @@
|
|
|
152
154
|
.@{timeline-item-prefix-cls}-content {
|
|
153
155
|
left: 0;
|
|
154
156
|
text-align: right;
|
|
155
|
-
margin: 0 2 * (@timeline-dot-size - @timeline-width) + @timeline-gap
|
|
157
|
+
margin: 0 calc(2 * (@timeline-dot-size - @timeline-width) + @timeline-gap) 0 0;
|
|
156
158
|
width: auto;
|
|
157
159
|
}
|
|
158
160
|
}
|
|
@@ -164,12 +166,12 @@
|
|
|
164
166
|
&-tail,
|
|
165
167
|
&-dot,
|
|
166
168
|
&-dot.custom {
|
|
167
|
-
left: ((2 * @timeline-gap) + (@timeline-dot-size / 2));
|
|
169
|
+
left: calc((2 * @timeline-gap) + (@timeline-dot-size / 2));
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
&-dot {
|
|
171
|
-
margin-left: -1 * (@timeline-dot-size -
|
|
172
|
-
|
|
173
|
+
margin-left: calc(-1 * (@timeline-dot-size - 1px) / 2);
|
|
174
|
+
|
|
173
175
|
&.custom {
|
|
174
176
|
margin-left: 1px;
|
|
175
177
|
}
|
|
@@ -177,9 +179,10 @@
|
|
|
177
179
|
.@{timeline-item-prefix-cls}-label {
|
|
178
180
|
position: absolute;
|
|
179
181
|
text-align: right;
|
|
182
|
+
color: @timeline-label-color-text;
|
|
180
183
|
}
|
|
181
184
|
.@{timeline-item-prefix-cls}-content {
|
|
182
|
-
left: @timeline-dot-size + 7.5px;
|
|
185
|
+
left: calc(@timeline-dot-size + 7.5px);
|
|
183
186
|
text-align: left;
|
|
184
187
|
margin-right: 16px;
|
|
185
188
|
}
|
|
@@ -191,14 +194,14 @@
|
|
|
191
194
|
&-dot,
|
|
192
195
|
&-dot.custom {
|
|
193
196
|
left: auto;
|
|
194
|
-
right: ((2 * @timeline-gap) + (@timeline-dot-size / 2));
|
|
197
|
+
right: calc((2 * @timeline-gap) + (@timeline-dot-size / 2));
|
|
195
198
|
}
|
|
196
|
-
|
|
199
|
+
|
|
197
200
|
&-dot {
|
|
198
|
-
margin-right: -1 * (@timeline-dot-size -
|
|
199
|
-
|
|
201
|
+
margin-right: calc(-1 * (@timeline-dot-size - 1px) / 2);
|
|
202
|
+
|
|
200
203
|
&.custom {
|
|
201
|
-
right: @timeline-
|
|
204
|
+
right: calc(-1 * (@timeline-dot-size - 1px) / 2);
|
|
202
205
|
}
|
|
203
206
|
}
|
|
204
207
|
.@{timeline-item-prefix-cls}-label {
|
|
@@ -208,7 +211,7 @@
|
|
|
208
211
|
}
|
|
209
212
|
.@{timeline-item-prefix-cls}-content {
|
|
210
213
|
left: auto;
|
|
211
|
-
right: @timeline-dot-size + 7.5px;
|
|
214
|
+
right: calc(@timeline-dot-size + 7.5px);
|
|
212
215
|
text-align: right;
|
|
213
216
|
margin-left: 17px;
|
|
214
217
|
}
|
|
@@ -238,7 +241,7 @@
|
|
|
238
241
|
&.pending .@{timeline-item-prefix-cls}.last .@{timeline-item-prefix-cls}-tail {
|
|
239
242
|
display: block;
|
|
240
243
|
height: calc(100% - 14px);
|
|
241
|
-
border-left: 2px dotted @timeline-color;
|
|
244
|
+
border-left: 2px dotted @timeline-line-color;
|
|
242
245
|
}
|
|
243
246
|
|
|
244
247
|
&.reverse .@{timeline-item-prefix-cls}.last .@{timeline-item-prefix-cls}-tail {
|
|
@@ -250,7 +253,7 @@
|
|
|
250
253
|
top: 15px;
|
|
251
254
|
display: block;
|
|
252
255
|
height: calc(100% - 15px);
|
|
253
|
-
border-left: 2px dotted @timeline-color;
|
|
256
|
+
border-left: 2px dotted @timeline-line-color;
|
|
254
257
|
}
|
|
255
258
|
.@{timeline-item-prefix-cls}-content {
|
|
256
259
|
min-height: 48px;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@timeline-prefix: '--@{kd-prefix}-c-timeline';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@timeline-gap: 8px;
|
|
9
|
+
|
|
10
|
+
// @timeline-dot-size: var(~'@{timeline-prefix}-dot-sizing',9px);
|
|
11
|
+
@timeline-dot-size: 9px;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// color
|
|
20
|
+
@timeline-finished-color: var(~'@{timeline-prefix}-finished-color',@color-theme);
|
|
21
|
+
@timeline-error-color: var(~'@{timeline-prefix}-error-color',@color-error);
|
|
22
|
+
@timeline-success-color: var(~'@{timeline-prefix}-success-color',@color-success);
|
|
23
|
+
@timeline-disabled-color: var(~'@{timeline-prefix}-disabled-color',@color-disabled);
|
|
24
|
+
@timeline-line-color: var(~'@{timeline-prefix}-line-color',@color-border-weak);//引导线颜色
|
|
25
|
+
@timeline-label-color-text: var(~'@{timeline-prefix}-label-color-text',#666666);
|
|
26
|
+
@timeline-content-color-text: var(~'@{timeline-prefix}-content-color-text',@color-text-primary);
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
// font
|
|
30
|
+
@timeline-content-font-size-small: var(~'@{timeline-prefix}-content-font-size',@font-size-small);
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// sizing
|
|
34
|
+
@timeline-width: var(~'@{timeline-prefix}-sizing-width',1px);
|
|
35
|
+
|
|
36
|
+
// spacing
|
|
37
|
+
@timeline-item-padding-bottom: var(~'@{timeline-prefix}-spacing-padding-bottom',26px);
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
@@ -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
|
/** 浮层箭头样式 **/
|
|
@@ -104,17 +113,17 @@
|
|
|
104
113
|
list-style: none;
|
|
105
114
|
-webkit-font-feature-settings: 'tnum';
|
|
106
115
|
font-feature-settings: 'tnum';
|
|
107
|
-
max-width:
|
|
108
|
-
padding: 8px 12px;
|
|
109
|
-
color: #212121;
|
|
110
|
-
border-radius: 2px;
|
|
111
|
-
font-size: 12px;
|
|
116
|
+
max-width: var(--kd-c-tooltip-sizing-max-width, 360px);
|
|
117
|
+
padding: var(--kd-c-tooltip-spacing-padding-vertical, 8px) var(--kd-c-tooltip-spacing-padding-vertical, 12px);
|
|
118
|
+
color: var(--kd-c-tooltip-color-text, var(--kd-g-color-text-primary, #212121));
|
|
119
|
+
border-radius: var(--kd-c-tooltip-radius-border, var(--kd-g-radius-border, 2px));
|
|
120
|
+
font-size: var(--kd-c-tooltip-color-text, var(--kd-g-font-size-small, 12px));
|
|
112
121
|
line-height: 18px;
|
|
113
|
-
background-color: #fff;
|
|
122
|
+
background-color: var(--kd-c-tooltip-color-background, var(--kd-g-color-background, #fff));
|
|
114
123
|
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
115
124
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
116
125
|
opacity: 1;
|
|
117
|
-
z-index: 1050;
|
|
126
|
+
z-index: var(--kd-g-z-index-popper, 1050);
|
|
118
127
|
visibility: visible;
|
|
119
128
|
}
|
|
120
129
|
.kd-tooltip.hidden {
|
|
@@ -139,26 +148,26 @@
|
|
|
139
148
|
bottom: 0;
|
|
140
149
|
left: 0;
|
|
141
150
|
content: '';
|
|
142
|
-
background: #fff;
|
|
143
|
-
border-radius: 2px;
|
|
151
|
+
background: var(--kd-c-tooltip-color-background, var(--kd-g-color-background, #fff));
|
|
152
|
+
border-radius: var(--kd-g-radius-border, 2px);
|
|
144
153
|
}
|
|
145
154
|
.kd-tooltip.arrow.bottomLeft::before,
|
|
146
155
|
.kd-tooltip.arrow.bottom::before,
|
|
147
156
|
.kd-tooltip.arrow.bottomRight::before {
|
|
148
157
|
left: var(--arrowLeft);
|
|
149
158
|
top: var(--arrowSpill);
|
|
150
|
-
-webkit-box-shadow: -2px -2px
|
|
151
|
-
box-shadow: -2px -2px
|
|
152
|
-
border-color: #fff transparent transparent #fff;
|
|
159
|
+
-webkit-box-shadow: -2px -2px calc(6px - 1px) rgba(0, 0, 0, 0.1);
|
|
160
|
+
box-shadow: -2px -2px calc(6px - 1px) rgba(0, 0, 0, 0.1);
|
|
161
|
+
border-color: var(--kd-g-color-white, #fff) transparent transparent var(--kd-g-color-white, #fff);
|
|
153
162
|
}
|
|
154
163
|
.kd-tooltip.arrow.topLeft::before,
|
|
155
164
|
.kd-tooltip.arrow.top::before,
|
|
156
165
|
.kd-tooltip.arrow.topRight::before {
|
|
157
166
|
left: var(--arrowLeft);
|
|
158
167
|
bottom: var(--arrowSpill);
|
|
159
|
-
-webkit-box-shadow: 3px 3px
|
|
160
|
-
box-shadow: 3px 3px
|
|
161
|
-
border-color: transparent #fff #fff transparent;
|
|
168
|
+
-webkit-box-shadow: 3px 3px calc(6px + 1px) rgba(0, 0, 0, 0.15);
|
|
169
|
+
box-shadow: 3px 3px calc(6px + 1px) rgba(0, 0, 0, 0.15);
|
|
170
|
+
border-color: transparent var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff) transparent;
|
|
162
171
|
}
|
|
163
172
|
.kd-tooltip.arrow.leftTop::before,
|
|
164
173
|
.kd-tooltip.arrow.left::before,
|
|
@@ -167,7 +176,7 @@
|
|
|
167
176
|
right: var(--arrowSpill);
|
|
168
177
|
-webkit-box-shadow: 3px 0 6px rgba(0, 0, 0, 0.12), 0 -2px 6px rgba(204, 149, 149, 0.12);
|
|
169
178
|
box-shadow: 3px 0 6px rgba(0, 0, 0, 0.12), 0 -2px 6px rgba(204, 149, 149, 0.12);
|
|
170
|
-
border-color: #fff #fff transparent transparent;
|
|
179
|
+
border-color: var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff) transparent transparent;
|
|
171
180
|
}
|
|
172
181
|
.kd-tooltip.arrow.rightTop::before,
|
|
173
182
|
.kd-tooltip.arrow.right::before,
|
|
@@ -176,5 +185,5 @@
|
|
|
176
185
|
left: var(--arrowSpill);
|
|
177
186
|
-webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), -2px 0 6px rgba(0, 0, 0, 0.1);
|
|
178
187
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), -2px 0 6px rgba(0, 0, 0, 0.1);
|
|
179
|
-
border-color: transparent transparent #fff #fff;
|
|
188
|
+
border-color: transparent transparent var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff);
|
|
180
189
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@tootip-prefix-cls: ~'@{kd-prefix}-tooltip';
|
|
5
6
|
|
|
6
7
|
.@{tootip-prefix-cls} {
|
|
7
8
|
.reset-component;
|
|
8
|
-
max-width: @tooltip-width;
|
|
9
|
+
max-width: @tooltip-max-width;
|
|
9
10
|
padding: @tooltip-vertical-gap @tooltip-horizontal-gap;
|
|
10
11
|
color: @tooltip-color;
|
|
11
|
-
border-radius: @radius
|
|
12
|
+
border-radius: @tooltip-border-radius;
|
|
12
13
|
font-size: @tooltip-font-size;
|
|
13
|
-
line-height:
|
|
14
|
+
line-height: 18px;
|
|
14
15
|
background-color: @tooltip-background-color;
|
|
15
|
-
box-shadow: 0 1px
|
|
16
|
+
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
16
17
|
opacity: 1;
|
|
17
|
-
z-index: @
|
|
18
|
+
z-index: @z-index-popper;
|
|
18
19
|
visibility: visible;
|
|
19
20
|
|
|
20
21
|
&.hidden {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@tooltip-custom-prefix: ~'--@{kd-prefix}-c-tooltip';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@tooltip-color: var(~'@{tooltip-custom-prefix}-color-text', @color-text-primary);
|
|
7
|
+
@tooltip-background-color: var(~'@{tooltip-custom-prefix}-color-background', @color-background);
|
|
8
|
+
|
|
9
|
+
// font
|
|
10
|
+
@tooltip-font-size: var(~'@{tooltip-custom-prefix}-color-text', @font-size-small);
|
|
11
|
+
|
|
12
|
+
// spacing
|
|
13
|
+
@tooltip-vertical-gap: var(~'@{tooltip-custom-prefix}-spacing-padding-vertical', 8px);
|
|
14
|
+
@tooltip-horizontal-gap: var(~'@{tooltip-custom-prefix}-spacing-padding-vertical', 12px);
|
|
15
|
+
|
|
16
|
+
// sizing
|
|
17
|
+
@tooltip-max-width: var(~'@{tooltip-custom-prefix}-sizing-max-width', 360px);
|
|
18
|
+
|
|
19
|
+
// radius
|
|
20
|
+
@tooltip-border-radius: var(~'@{tooltip-custom-prefix}-radius-border', @radius-border);
|
|
@@ -31,7 +31,7 @@ var Operation = function Operation(_ref) {
|
|
|
31
31
|
className: className,
|
|
32
32
|
style: style
|
|
33
33
|
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
34
|
-
type:
|
|
34
|
+
type: disabled || !rightActive ? 'ghost' : 'primary',
|
|
35
35
|
size: "small",
|
|
36
36
|
disabled: disabled || !rightActive,
|
|
37
37
|
onClick: moveToRight,
|
|
@@ -41,7 +41,7 @@ var Operation = function Operation(_ref) {
|
|
|
41
41
|
type: "arrow-left"
|
|
42
42
|
})
|
|
43
43
|
}, rightArrowText), !oneWay && /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
44
|
-
type:
|
|
44
|
+
type: disabled || !leftActive ? 'ghost' : 'primary',
|
|
45
45
|
size: "small",
|
|
46
46
|
disabled: disabled || !leftActive,
|
|
47
47
|
onClick: moveToLeft,
|