@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
|
@@ -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,20 +113,32 @@
|
|
|
104
113
|
list-style: none;
|
|
105
114
|
-webkit-font-feature-settings: 'tnum';
|
|
106
115
|
font-feature-settings: 'tnum';
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
font-size: 12px;
|
|
110
|
-
background-color: #fff;
|
|
111
|
-
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
112
|
-
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3);
|
|
116
|
+
border-radius: var(--kd-c-popconfirm-radius-border, var(--kd-g-radius-border, 2px));
|
|
117
|
+
background-color: var(--kd-c-popconfirm-color-background, var(--kd-g-color-background, #fff));
|
|
113
118
|
opacity: 1;
|
|
114
|
-
z-index: 1050;
|
|
119
|
+
z-index: var(--kd-g-z-index-popper, 1050);
|
|
115
120
|
visibility: visible;
|
|
116
121
|
}
|
|
117
122
|
.kd-popconfirm.hidden {
|
|
118
123
|
opacity: 0;
|
|
119
124
|
visibility: hidden;
|
|
120
125
|
}
|
|
126
|
+
.kd-popconfirm[class*="top"] {
|
|
127
|
+
-webkit-box-shadow: 0 6px 16px 3px rgba(0, 0, 0, 0.08);
|
|
128
|
+
box-shadow: 0 6px 16px 3px rgba(0, 0, 0, 0.08);
|
|
129
|
+
}
|
|
130
|
+
.kd-popconfirm[class*="bottom"] {
|
|
131
|
+
-webkit-box-shadow: 0 -6px 16px 3px rgba(0, 0, 0, 0.08);
|
|
132
|
+
box-shadow: 0 -6px 16px 3px rgba(0, 0, 0, 0.08);
|
|
133
|
+
}
|
|
134
|
+
.kd-popconfirm[class*="left"] {
|
|
135
|
+
-webkit-box-shadow: 6px 0 16px 3px rgba(0, 0, 0, 0.08);
|
|
136
|
+
box-shadow: 6px 0 16px 3px rgba(0, 0, 0, 0.08);
|
|
137
|
+
}
|
|
138
|
+
.kd-popconfirm[class*="right"] {
|
|
139
|
+
-webkit-box-shadow: -6px 0 16px 3px rgba(0, 0, 0, 0.08);
|
|
140
|
+
box-shadow: -6px 0 16px 3px rgba(0, 0, 0, 0.08);
|
|
141
|
+
}
|
|
121
142
|
.kd-popconfirm.arrow::before {
|
|
122
143
|
position: absolute;
|
|
123
144
|
z-index: -2;
|
|
@@ -136,44 +157,44 @@
|
|
|
136
157
|
bottom: 0;
|
|
137
158
|
left: 0;
|
|
138
159
|
content: '';
|
|
139
|
-
background: #fff;
|
|
140
|
-
border-radius: 2px;
|
|
160
|
+
background: var(--kd-c-popconfirm-color-background, var(--kd-g-color-background, #fff));
|
|
161
|
+
border-radius: var(--kd-g-radius-border, 2px);
|
|
141
162
|
}
|
|
142
163
|
.kd-popconfirm.arrow.bottomLeft::before,
|
|
143
164
|
.kd-popconfirm.arrow.bottom::before,
|
|
144
165
|
.kd-popconfirm.arrow.bottomRight::before {
|
|
145
166
|
left: var(--arrowLeft);
|
|
146
167
|
top: var(--arrowSpill);
|
|
147
|
-
-webkit-box-shadow: -2px -2px
|
|
148
|
-
box-shadow: -2px -2px
|
|
149
|
-
border-color: #fff transparent transparent #fff;
|
|
168
|
+
-webkit-box-shadow: -2px -2px calc(16px - 1px) rgba(0, 0, 0, 0.1);
|
|
169
|
+
box-shadow: -2px -2px calc(16px - 1px) rgba(0, 0, 0, 0.1);
|
|
170
|
+
border-color: var(--kd-g-color-white, #fff) transparent transparent var(--kd-g-color-white, #fff);
|
|
150
171
|
}
|
|
151
172
|
.kd-popconfirm.arrow.topLeft::before,
|
|
152
173
|
.kd-popconfirm.arrow.top::before,
|
|
153
174
|
.kd-popconfirm.arrow.topRight::before {
|
|
154
175
|
left: var(--arrowLeft);
|
|
155
176
|
bottom: var(--arrowSpill);
|
|
156
|
-
-webkit-box-shadow: 3px 3px
|
|
157
|
-
box-shadow: 3px 3px
|
|
158
|
-
border-color: transparent #fff #fff transparent;
|
|
177
|
+
-webkit-box-shadow: 3px 3px calc(16px + 1px) rgba(0, 0, 0, 0.15);
|
|
178
|
+
box-shadow: 3px 3px calc(16px + 1px) rgba(0, 0, 0, 0.15);
|
|
179
|
+
border-color: transparent var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff) transparent;
|
|
159
180
|
}
|
|
160
181
|
.kd-popconfirm.arrow.leftTop::before,
|
|
161
182
|
.kd-popconfirm.arrow.left::before,
|
|
162
183
|
.kd-popconfirm.arrow.leftBottom::before {
|
|
163
184
|
top: var(--arrowTop);
|
|
164
185
|
right: var(--arrowSpill);
|
|
165
|
-
-webkit-box-shadow: 3px 0
|
|
166
|
-
box-shadow: 3px 0
|
|
167
|
-
border-color: #fff #fff transparent transparent;
|
|
186
|
+
-webkit-box-shadow: 3px 0 16px rgba(0, 0, 0, 0.12), 0 -2px 16px rgba(204, 149, 149, 0.12);
|
|
187
|
+
box-shadow: 3px 0 16px rgba(0, 0, 0, 0.12), 0 -2px 16px rgba(204, 149, 149, 0.12);
|
|
188
|
+
border-color: var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff) transparent transparent;
|
|
168
189
|
}
|
|
169
190
|
.kd-popconfirm.arrow.rightTop::before,
|
|
170
191
|
.kd-popconfirm.arrow.right::before,
|
|
171
192
|
.kd-popconfirm.arrow.rightBottom::before {
|
|
172
193
|
top: var(--arrowTop);
|
|
173
194
|
left: var(--arrowSpill);
|
|
174
|
-
-webkit-box-shadow: 0 3px
|
|
175
|
-
box-shadow: 0 3px
|
|
176
|
-
border-color: transparent transparent #fff #fff;
|
|
195
|
+
-webkit-box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1), -2px 0 16px rgba(0, 0, 0, 0.1);
|
|
196
|
+
box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1), -2px 0 16px rgba(0, 0, 0, 0.1);
|
|
197
|
+
border-color: transparent transparent var(--kd-g-color-white, #fff) var(--kd-g-color-white, #fff);
|
|
177
198
|
}
|
|
178
199
|
.kd-popconfirm-content {
|
|
179
200
|
-webkit-box-sizing: border-box;
|
|
@@ -184,30 +205,30 @@
|
|
|
184
205
|
list-style: none;
|
|
185
206
|
-webkit-font-feature-settings: 'tnum';
|
|
186
207
|
font-feature-settings: 'tnum';
|
|
187
|
-
min-width
|
|
188
|
-
|
|
189
|
-
min-height: 98px;
|
|
190
|
-
max-height: 400px;
|
|
191
|
-
padding: 16px 16px;
|
|
192
|
-
overflow-y: auto;
|
|
208
|
+
width: var(--kd-c-popconfirm-sizing-min-width, 240px);
|
|
209
|
+
padding: var(--kd-c-popconfirm-spacing-padding-vertical, 16px) var(--kd-c-popconfirm-spacing-padding-horizontal, 16px);
|
|
193
210
|
}
|
|
194
211
|
.kd-popconfirm-title {
|
|
195
212
|
line-height: 21px;
|
|
196
|
-
|
|
213
|
+
color: var(--kd-c-popconfirm-title-color-text, var(--kd-g-color-text-primary, #212121));
|
|
214
|
+
font-size: var(--kd-c-popconfirm-title-font-size, var(--kd-g-font-size-middle, 14px));
|
|
197
215
|
}
|
|
198
216
|
.kd-popconfirm-title i {
|
|
199
|
-
margin-right:
|
|
217
|
+
margin-right: var(--kd-c-popconfirm-title-icon-spacing-margin-right, 6px);
|
|
200
218
|
vertical-align: top;
|
|
201
|
-
color: #ff991c;
|
|
202
|
-
font-size: 17px;
|
|
203
219
|
line-height: 21px;
|
|
220
|
+
color: var(--kd-c-popconfirm-icon-color-text, var(--kd-g-color-warning, #ff991c));
|
|
221
|
+
font-size: var(--kd-c-popconfirm-icon-sizing-square, 17px);
|
|
204
222
|
}
|
|
205
223
|
.kd-popconfirm-message {
|
|
206
|
-
|
|
224
|
+
color: var(--kd-c-popconfirm-message-color-text, var(--kd-g-color-text-primary, #212121));
|
|
225
|
+
font-size: var(--kd-c-popconfirm-message-font-size, var(--kd-g-font-size-small, 12px));
|
|
226
|
+
line-height: 18px;
|
|
227
|
+
margin: var(--kd-c-popconfirm-message-spacing-margin-top, 6px) 0 var(--kd-c-popconfirm-message-spacing-margin-bottom, 18px);
|
|
207
228
|
}
|
|
208
229
|
.kd-popconfirm-interaction {
|
|
209
230
|
text-align: right;
|
|
210
231
|
}
|
|
211
232
|
.kd-popconfirm-interaction button:not(:last-child) {
|
|
212
|
-
margin-right: 12px;
|
|
233
|
+
margin-right: var(--kd-c-popconfirm-button-spacing, 12px);
|
|
213
234
|
}
|
|
@@ -1,59 +1,80 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@popconfirm-prefix-cls: ~'@{kd-prefix}-popconfirm';
|
|
5
6
|
|
|
7
|
+
@popconfirm-title-line-height: 21px;
|
|
8
|
+
@popconfirm-box-shadow-blur: 16px;
|
|
9
|
+
|
|
10
|
+
.showdow(@x, @y) {
|
|
11
|
+
box-shadow: @x @y @popconfirm-box-shadow-blur 3px rgba(0, 0, 0, 0.08);
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
.@{popconfirm-prefix-cls} {
|
|
7
15
|
.reset-component;
|
|
8
|
-
|
|
9
|
-
border-radius: @radius-size;
|
|
10
|
-
font-size: @popconfirm-font-size;
|
|
16
|
+
border-radius: @popconfirm-border-radius;
|
|
11
17
|
background-color: @popconfirm-background-color;
|
|
12
|
-
box-shadow: 0 1px @popconfirm-box-shadow-blur 0 rgba(0, 0, 0, 0.3);
|
|
13
18
|
opacity: 1;
|
|
14
|
-
z-index: @
|
|
19
|
+
z-index: @z-index-popper;
|
|
15
20
|
visibility: visible;
|
|
16
|
-
|
|
21
|
+
|
|
17
22
|
&.hidden {
|
|
18
23
|
opacity: 0;
|
|
19
24
|
visibility: hidden;
|
|
20
25
|
}
|
|
21
26
|
|
|
27
|
+
&[class*="top"] {
|
|
28
|
+
.showdow(0, 6px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[class*="bottom"] {
|
|
32
|
+
.showdow(0, -6px);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[class*="left"] {
|
|
36
|
+
.showdow(6px, 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[class*="right"] {
|
|
40
|
+
.showdow(-6px, 0);
|
|
41
|
+
}
|
|
42
|
+
|
|
22
43
|
// 箭头样式
|
|
23
44
|
.popperArrow(@popconfirm-background-color, @popconfirm-horizontal-gap, @popconfirm-box-shadow-blur);
|
|
24
|
-
|
|
45
|
+
|
|
25
46
|
&-content {
|
|
26
47
|
.reset-component;
|
|
27
|
-
|
|
28
|
-
max-width: @popconfirm-max-width;
|
|
29
|
-
min-height: @popconfirm-min-height;
|
|
30
|
-
max-height: @popconfirm-max-height;
|
|
48
|
+
width: @popconfirm-width;
|
|
31
49
|
padding: @popconfirm-vertical-gap @popconfirm-horizontal-gap;
|
|
32
|
-
overflow-y: auto;
|
|
33
50
|
}
|
|
34
|
-
|
|
51
|
+
|
|
35
52
|
&-title {
|
|
36
53
|
line-height: @popconfirm-title-line-height;
|
|
54
|
+
color: @popconfirm-title-color;
|
|
37
55
|
font-size: @popconfirm-title-font-size;
|
|
38
|
-
|
|
56
|
+
|
|
39
57
|
i {
|
|
40
|
-
margin-right:
|
|
58
|
+
margin-right: @popconfirm-title-icon-margin-right;
|
|
41
59
|
vertical-align: top;
|
|
42
|
-
color: @warning-color;
|
|
43
|
-
font-size: @popconfirm-icon-size;
|
|
44
60
|
line-height: @popconfirm-title-line-height;
|
|
61
|
+
color: @popconfirm-icon-color;
|
|
62
|
+
font-size: @popconfirm-icon-size;
|
|
45
63
|
}
|
|
46
64
|
}
|
|
47
|
-
|
|
65
|
+
|
|
48
66
|
&-message {
|
|
49
|
-
|
|
67
|
+
color: @popconfirm-message-color;
|
|
68
|
+
font-size: @popconfirm-message-font-size;
|
|
69
|
+
line-height: 18px;
|
|
70
|
+
margin: @popconfirm-message-margin-top 0 @popconfirm-message-margin-bottom;
|
|
50
71
|
}
|
|
51
72
|
|
|
52
73
|
&-interaction {
|
|
53
74
|
text-align: right;
|
|
54
75
|
|
|
55
76
|
button:not(:last-child) {
|
|
56
|
-
margin-right:
|
|
77
|
+
margin-right: @popconfirm-button-spacing;
|
|
57
78
|
}
|
|
58
79
|
}
|
|
59
80
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@popconfirm-custom-prefix: ~'--@{kd-prefix}-c-popconfirm';
|
|
4
|
+
|
|
5
|
+
// spacing
|
|
6
|
+
@popconfirm-vertical-gap: var(~'@{popconfirm-custom-prefix}-spacing-padding-vertical', 16px);
|
|
7
|
+
@popconfirm-horizontal-gap: var(~'@{popconfirm-custom-prefix}-spacing-padding-horizontal', 16px);
|
|
8
|
+
@popconfirm-title-icon-margin-right: var(~'@{popconfirm-custom-prefix}-title-icon-spacing-margin-right', 6px);
|
|
9
|
+
@popconfirm-message-margin-top: var(~'@{popconfirm-custom-prefix}-message-spacing-margin-top', 6px);
|
|
10
|
+
@popconfirm-message-margin-bottom: var(~'@{popconfirm-custom-prefix}-message-spacing-margin-bottom', 18px);
|
|
11
|
+
@popconfirm-button-spacing: var(~'@{popconfirm-custom-prefix}-button-spacing', 12px);
|
|
12
|
+
|
|
13
|
+
// sizing
|
|
14
|
+
@popconfirm-width: var(~'@{popconfirm-custom-prefix}-sizing-min-width', 240px);
|
|
15
|
+
@popconfirm-icon-size: var(~'@{popconfirm-custom-prefix}-icon-sizing-square', 17px);
|
|
16
|
+
|
|
17
|
+
// color
|
|
18
|
+
@popconfirm-title-color: var(~'@{popconfirm-custom-prefix}-title-color-text', @color-text-primary);
|
|
19
|
+
@popconfirm-message-color: var(~'@{popconfirm-custom-prefix}-message-color-text', @color-text-primary);
|
|
20
|
+
@popconfirm-icon-color: var(~'@{popconfirm-custom-prefix}-icon-color-text', @color-warning);
|
|
21
|
+
@popconfirm-background-color: var(~'@{popconfirm-custom-prefix}-color-background', @color-background);
|
|
22
|
+
|
|
23
|
+
// font
|
|
24
|
+
@popconfirm-title-font-size: var(~'@{popconfirm-custom-prefix}-title-font-size', @font-size-middle);
|
|
25
|
+
@popconfirm-message-font-size: var(~'@{popconfirm-custom-prefix}-message-font-size', @font-size-small);
|
|
26
|
+
|
|
27
|
+
// radius
|
|
28
|
+
@popconfirm-border-radius: var(~'@{popconfirm-custom-prefix}-radius-border', @radius-border);
|
|
@@ -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-progress {
|
|
96
105
|
display: inline-block;
|
|
97
106
|
font-variant: tabular-nums;
|
|
@@ -102,7 +111,7 @@
|
|
|
102
111
|
vertical-align: top;
|
|
103
112
|
}
|
|
104
113
|
.kd-progress-show-info {
|
|
105
|
-
font-size: 16px;
|
|
114
|
+
font-size: var(--kd-c-progress-line-text-font-size, 16px);
|
|
106
115
|
}
|
|
107
116
|
.kd-progress-type-line {
|
|
108
117
|
width: 100%;
|
|
@@ -121,8 +130,8 @@
|
|
|
121
130
|
font-size: 0;
|
|
122
131
|
}
|
|
123
132
|
.kd-progress-show-info .kd-progress-outer {
|
|
124
|
-
margin-right: -
|
|
125
|
-
padding-right:
|
|
133
|
+
margin-right: calc(-1 * var(--kd-c-progress-line-text-font-size, 16px) * 3 - 8px);
|
|
134
|
+
padding-right: calc(var(--kd-c-progress-line-text-font-size, 16px) * 3 + 8px);
|
|
126
135
|
}
|
|
127
136
|
.kd-progress-inner {
|
|
128
137
|
position: relative;
|
|
@@ -131,8 +140,8 @@
|
|
|
131
140
|
overflow: hidden;
|
|
132
141
|
vertical-align: middle;
|
|
133
142
|
font-size: 0;
|
|
134
|
-
border-radius: 100px;
|
|
135
|
-
background-color: #e5e5e5;
|
|
143
|
+
border-radius: var(--kd-c-progress-radius-border, 100px);
|
|
144
|
+
background-color: var(--kd-c-progress-color-remaining, #e5e5e5);
|
|
136
145
|
}
|
|
137
146
|
.kd-progress-success-bg,
|
|
138
147
|
.kd-progress-bg {
|
|
@@ -140,9 +149,9 @@
|
|
|
140
149
|
display: inline-block;
|
|
141
150
|
-webkit-box-sizing: border-box;
|
|
142
151
|
box-sizing: border-box;
|
|
143
|
-
border-radius: 100px;
|
|
144
|
-
background-color: #
|
|
145
|
-
height: 8px;
|
|
152
|
+
border-radius: var(--kd-c-progress-radius-border, 100px);
|
|
153
|
+
background-color: var(--kd-c-progress-color-default, #5582f3);
|
|
154
|
+
height: var(--kd-c-progress-line-stroke-sizing-width, 8px);
|
|
146
155
|
-webkit-transition: all 0.3s cubic-bezier(0.66, 0, 0.34, 1);
|
|
147
156
|
transition: all 0.3s cubic-bezier(0.66, 0, 0.34, 1);
|
|
148
157
|
}
|
|
@@ -150,59 +159,64 @@
|
|
|
150
159
|
position: absolute;
|
|
151
160
|
top: 0;
|
|
152
161
|
left: 0;
|
|
153
|
-
background-color: #1ba854;
|
|
162
|
+
background-color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
|
|
154
163
|
}
|
|
155
164
|
.kd-progress-text {
|
|
156
165
|
display: inline-block;
|
|
157
166
|
-webkit-box-sizing: border-box;
|
|
158
167
|
box-sizing: border-box;
|
|
159
|
-
width:
|
|
160
|
-
margin-left: 8px;
|
|
168
|
+
width: calc(var(--kd-c-progress-line-text-font-size, 16px)*3);
|
|
169
|
+
margin-left: var(--kd-c-progress-line-text-spacing-margin-left, 8px);
|
|
161
170
|
white-space: nowrap;
|
|
162
171
|
text-align: left;
|
|
163
172
|
vertical-align: middle;
|
|
164
173
|
word-break: normal;
|
|
165
174
|
}
|
|
166
175
|
.kd-progress-special-text {
|
|
167
|
-
font-size: 16px;
|
|
176
|
+
font-size: var(--kd-c-progress-line-special-text-font-size, 16px);
|
|
168
177
|
text-align: center;
|
|
169
178
|
overflow: hidden;
|
|
170
|
-
padding-right:
|
|
179
|
+
padding-right: calc(var(--kd-c-progress-line-text-font-size, 16px)*3 + 8px);
|
|
171
180
|
}
|
|
172
181
|
.kd-progress-status-success .kd-progress-bg {
|
|
173
|
-
background-color: #1ba854;
|
|
182
|
+
background-color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
|
|
174
183
|
}
|
|
175
184
|
.kd-progress-status-success .kd-progress-text,
|
|
176
185
|
.kd-progress-status-success .kd-progress-special-text {
|
|
177
|
-
color: #1ba854;
|
|
186
|
+
color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
|
|
178
187
|
}
|
|
179
188
|
.kd-progress-status-success .kd-progress-text {
|
|
180
189
|
font-size: 0;
|
|
181
190
|
}
|
|
191
|
+
.kd-progress-status-success .kd-progress-icon {
|
|
192
|
+
font-size: var(--kd-c-progress-line-icon-font-size, 16px);
|
|
193
|
+
color: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
|
|
194
|
+
}
|
|
182
195
|
.kd-progress-status-success .kd-progress-circle-box:not(.kd-progress-circle-gradient) .kd-progress-circle-path {
|
|
183
|
-
stroke: #1ba854;
|
|
196
|
+
stroke: var(--kd-c-progress-color-success, var(--kd-g-color-success, #1ba854));
|
|
184
197
|
}
|
|
185
198
|
.kd-progress-status-failure .kd-progress-bg {
|
|
186
|
-
background-color: #fb2323;
|
|
199
|
+
background-color: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
|
|
187
200
|
}
|
|
188
201
|
.kd-progress-status-failure .kd-progress-text,
|
|
189
202
|
.kd-progress-status-failure .kd-progress-special-text {
|
|
190
|
-
color: #fb2323;
|
|
203
|
+
color: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
|
|
191
204
|
}
|
|
192
205
|
.kd-progress-status-failure .kd-progress-text {
|
|
193
206
|
font-size: 0;
|
|
194
207
|
}
|
|
195
|
-
.kd-progress-status-failure .kd-progress-
|
|
196
|
-
|
|
208
|
+
.kd-progress-status-failure .kd-progress-icon {
|
|
209
|
+
font-size: var(--kd-c-progress-line-icon-font-size, 16px);
|
|
210
|
+
color: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
|
|
197
211
|
}
|
|
198
|
-
.kd-progress .kd-progress-
|
|
199
|
-
|
|
212
|
+
.kd-progress-status-failure .kd-progress-circle-box:not(.kd-progress-circle-gradient) .kd-progress-circle-path {
|
|
213
|
+
stroke: var(--kd-c-progress-color-failure, var(--kd-g-color-error, #fb2323));
|
|
200
214
|
}
|
|
201
215
|
.kd-progress-circle-box {
|
|
202
216
|
position: relative;
|
|
203
217
|
}
|
|
204
218
|
.kd-progress-circle-box .kd-progress-circle-trail {
|
|
205
|
-
stroke: #e5e5e5;
|
|
219
|
+
stroke: var(--kd-c-progress-color-remaining, #e5e5e5);
|
|
206
220
|
}
|
|
207
221
|
.kd-progress-circle-box .kd-progress-circle-path {
|
|
208
222
|
-webkit-transition: stroke-dasharray 0.3s cubic-bezier(0.66, 0, 0.34, 1), stroke-dashoffset 0.3s cubic-bezier(0.66, 0, 0.34, 1);
|
|
@@ -225,18 +239,18 @@
|
|
|
225
239
|
vertical-align: top;
|
|
226
240
|
}
|
|
227
241
|
.kd-progress-circle-box .kd-progress-text-percent {
|
|
228
|
-
line-height: 48px;
|
|
242
|
+
line-height: var(--kd-c-progress-circle-percent-line-height, 48px);
|
|
229
243
|
}
|
|
230
244
|
.kd-progress-circle-box .kd-progress-text-unit {
|
|
231
|
-
line-height: 18px;
|
|
245
|
+
line-height: var(--kd-c-progress-circle-unit-line-height, 18px);
|
|
232
246
|
font-size: 12px;
|
|
233
|
-
margin-top: 18px;
|
|
247
|
+
margin-top: var(--kd-c-progress-circle-unit-spacing-margin-top, 18px);
|
|
234
248
|
}
|
|
235
249
|
.kd-progress-circle-box .kd-progress-icon {
|
|
236
250
|
font-size: 48px;
|
|
237
251
|
}
|
|
238
252
|
.kd-progress-circle-box:not(.kd-progress-circle-gradient) .kd-progress-circle-path {
|
|
239
|
-
stroke: #
|
|
253
|
+
stroke: var(--kd-c-progress-color-default, #5582f3);
|
|
240
254
|
-webkit-transition: stroke-dasharray 0.3s cubic-bezier(0.66, 0, 0.34, 1), stroke-dashoffset 0.3s cubic-bezier(0.66, 0, 0.34, 1);
|
|
241
255
|
transition: stroke-dasharray 0.3s cubic-bezier(0.66, 0, 0.34, 1), stroke-dashoffset 0.3s cubic-bezier(0.66, 0, 0.34, 1);
|
|
242
256
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import './mixin.less';
|
|
3
3
|
@progress-prefix-cls: ~'@{kd-prefix}-progress';
|
|
4
|
+
|
|
4
5
|
.@{progress-prefix-cls} {
|
|
5
6
|
.progress;
|
|
6
7
|
line-height: 1;
|
|
@@ -29,9 +30,10 @@
|
|
|
29
30
|
margin-right: 0;
|
|
30
31
|
padding-right: 0;
|
|
31
32
|
font-size: 0;
|
|
33
|
+
|
|
32
34
|
.@{progress-prefix-cls}-show-info & {
|
|
33
|
-
margin-right:
|
|
34
|
-
padding-right: @progress-line-text-
|
|
35
|
+
margin-right: calc(-1 * @progress-line-text-font-size * 3 - 8px);
|
|
36
|
+
padding-right: calc(@progress-line-text-font-size * 3 + 8px);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
&-text {
|
|
70
72
|
display: inline-block;
|
|
71
73
|
box-sizing: border-box;
|
|
72
|
-
width: @progress-line-text-
|
|
74
|
+
width: calc(@progress-line-text-font-size*3);
|
|
73
75
|
margin-left: @progress-line-text-margin-left;
|
|
74
76
|
// font-size: @progress-line-text-font-size;
|
|
75
77
|
// line-height: 1;
|
|
@@ -83,13 +85,14 @@
|
|
|
83
85
|
font-size: @progress-line-special-text-font-size;
|
|
84
86
|
text-align: center;
|
|
85
87
|
overflow: hidden;
|
|
86
|
-
padding-right: @progress-line-text-
|
|
88
|
+
padding-right: calc(@progress-line-text-font-size*3 + 8px);
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
&-status-success {
|
|
90
92
|
.@{progress-prefix-cls}-bg {
|
|
91
93
|
background-color: @progress-success-color;
|
|
92
94
|
}
|
|
95
|
+
|
|
93
96
|
.@{progress-prefix-cls}-text,
|
|
94
97
|
.@{progress-prefix-cls}-special-text {
|
|
95
98
|
color: @progress-success-color;
|
|
@@ -98,6 +101,10 @@
|
|
|
98
101
|
.@{progress-prefix-cls}-text {
|
|
99
102
|
font-size: 0;
|
|
100
103
|
}
|
|
104
|
+
.@{progress-prefix-cls}-icon {
|
|
105
|
+
font-size: @progress-line-icon-font-size;
|
|
106
|
+
color: @progress-success-color;
|
|
107
|
+
}
|
|
101
108
|
|
|
102
109
|
.@{progress-prefix-cls}-circle-box:not(.@{progress-prefix-cls}-circle-gradient) {
|
|
103
110
|
.@{progress-prefix-cls}-circle-path {
|
|
@@ -110,6 +117,7 @@
|
|
|
110
117
|
.@{progress-prefix-cls}-bg {
|
|
111
118
|
background-color: @progress-failure-color;
|
|
112
119
|
}
|
|
120
|
+
|
|
113
121
|
.@{progress-prefix-cls}-text,
|
|
114
122
|
.@{progress-prefix-cls}-special-text {
|
|
115
123
|
color: @progress-failure-color;
|
|
@@ -118,6 +126,10 @@
|
|
|
118
126
|
.@{progress-prefix-cls}-text {
|
|
119
127
|
font-size: 0;
|
|
120
128
|
}
|
|
129
|
+
.@{progress-prefix-cls}-icon {
|
|
130
|
+
font-size: @progress-line-icon-font-size;
|
|
131
|
+
color: @progress-failure-color;
|
|
132
|
+
}
|
|
121
133
|
|
|
122
134
|
.@{progress-prefix-cls}-circle-box:not(.@{progress-prefix-cls}-circle-gradient) {
|
|
123
135
|
.@{progress-prefix-cls}-circle-path {
|
|
@@ -126,19 +138,19 @@
|
|
|
126
138
|
}
|
|
127
139
|
}
|
|
128
140
|
|
|
129
|
-
|
|
130
|
-
font-size: @progress-line-icon-font-size;
|
|
131
|
-
}
|
|
141
|
+
|
|
132
142
|
|
|
133
143
|
&-circle-box {
|
|
134
144
|
position: relative;
|
|
145
|
+
|
|
135
146
|
.@{progress-prefix-cls}-circle-trail {
|
|
136
147
|
stroke: @progress-remaining-color;
|
|
137
148
|
}
|
|
149
|
+
|
|
138
150
|
.@{progress-prefix-cls}-circle-path {
|
|
139
151
|
transition: stroke-dasharray @transition-duration @progress-transition-fn, stroke-dashoffset @transition-duration @progress-transition-fn;
|
|
140
152
|
}
|
|
141
|
-
|
|
153
|
+
|
|
142
154
|
.@{progress-prefix-cls}-text {
|
|
143
155
|
position: absolute;
|
|
144
156
|
width: auto;
|
|
@@ -148,14 +160,17 @@
|
|
|
148
160
|
top: 50%;
|
|
149
161
|
left: 50%;
|
|
150
162
|
transform: translate(-50%, -50%);
|
|
163
|
+
|
|
151
164
|
&-percent,
|
|
152
165
|
&-unit {
|
|
153
166
|
display: inline-block;
|
|
154
167
|
vertical-align: top;
|
|
155
168
|
}
|
|
169
|
+
|
|
156
170
|
&-percent {
|
|
157
171
|
line-height: @progress-circle-percent-line-height;
|
|
158
172
|
}
|
|
173
|
+
|
|
159
174
|
&-unit {
|
|
160
175
|
line-height: @progress-circle-unit-line-height;
|
|
161
176
|
font-size: @progress-circle-unit-font-size;
|
|
@@ -167,6 +182,7 @@
|
|
|
167
182
|
font-size: @progress-circle-icon-font-size;
|
|
168
183
|
}
|
|
169
184
|
}
|
|
185
|
+
|
|
170
186
|
&-circle-box:not(.@{progress-prefix-cls}-circle-gradient) {
|
|
171
187
|
.@{progress-prefix-cls}-circle-path {
|
|
172
188
|
stroke: @progress-default-color;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
@progress-prefix: '--@{kd-prefix}-c-progress';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@progress-transition-fn: cubic-bezier(0.66, 0, 0.34, 1);
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// color
|
|
13
|
+
@progress-remaining-color: var(~'@{progress-prefix}-color-remaining', #e5e5e5);//背景色
|
|
14
|
+
@progress-default-color: var(~'@{progress-prefix}-color-default', #5582f3);//进度条 默认色
|
|
15
|
+
@progress-success-color: var(~'@{progress-prefix}-color-success', @color-success);//进度条 成功
|
|
16
|
+
@progress-failure-color: var(~'@{progress-prefix}-color-failure', @color-error);//进度条 失败
|
|
17
|
+
|
|
18
|
+
// font
|
|
19
|
+
@progress-line-icon-font-size: var(~'@{progress-prefix}-line-icon-font-size', 16px); //线性进度条 icon 大小
|
|
20
|
+
@progress-line-text-font-size: var(~'@{progress-prefix}-line-text-font-size', 16px);//线性进度条 数值文本
|
|
21
|
+
@progress-line-special-text-font-size: var(~'@{progress-prefix}-line-special-text-font-size', 16px);// 圆形进度条 状态文本
|
|
22
|
+
|
|
23
|
+
// line-height
|
|
24
|
+
@progress-circle-percent-line-height: var(~'@{progress-prefix}-circle-percent-line-height', 48px);
|
|
25
|
+
@progress-circle-unit-line-height: var(~'@{progress-prefix}-circle-unit-line-height', 18px);
|
|
26
|
+
|
|
27
|
+
//radius
|
|
28
|
+
@progress-border-radius: var(~'@{progress-prefix}-radius-border', 100px);//线性进度条圆角
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// sizing
|
|
33
|
+
@progress-line-stroke-width: var(~'@{progress-prefix}-line-stroke-sizing-width', 8px);
|
|
34
|
+
@progress-circle-stroke-width: var(~'@{progress-prefix}-circle-stroke-sizing-width', 4px);
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
// spacing
|
|
38
|
+
@progress-circle-unit-margin-top: var(~'@{progress-prefix}-circle-unit-spacing-margin-top', 18px);
|
|
39
|
+
@progress-line-text-margin-left: var(~'@{progress-prefix}-line-text-spacing-margin-left', 8px); //进度与文字或者图标的间距
|
|
40
|
+
|