@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
package/es/tabs/style/index.css
CHANGED
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
.kd-tabs {
|
|
96
105
|
display: -webkit-box;
|
|
97
106
|
display: -ms-flexbox;
|
|
@@ -105,7 +114,7 @@
|
|
|
105
114
|
height: 100%;
|
|
106
115
|
}
|
|
107
116
|
.kd-tabs-noContainer {
|
|
108
|
-
height: 48px;
|
|
117
|
+
height: var(--kd-c-tabs-sizing-height, 48px);
|
|
109
118
|
}
|
|
110
119
|
.kd-tabs-tab-wrap {
|
|
111
120
|
position: relative;
|
|
@@ -122,8 +131,8 @@
|
|
|
122
131
|
white-space: nowrap;
|
|
123
132
|
top: 0;
|
|
124
133
|
left: 0;
|
|
125
|
-
-webkit-transition: all 0.3s cubic-bezier(0.42, 0, 1, 1);
|
|
126
|
-
transition: all 0.3s cubic-bezier(0.42, 0, 1, 1);
|
|
134
|
+
-webkit-transition: all var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s)) var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
135
|
+
transition: all var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s)) var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
127
136
|
}
|
|
128
137
|
.kd-tabs-bottom {
|
|
129
138
|
-webkit-box-orient: vertical;
|
|
@@ -168,7 +177,7 @@
|
|
|
168
177
|
background-color: #fff;
|
|
169
178
|
-webkit-box-shadow: unset;
|
|
170
179
|
box-shadow: unset;
|
|
171
|
-
border: 1px solid #d9d9d9;
|
|
180
|
+
border: 1px solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
172
181
|
}
|
|
173
182
|
.kd-tabs-right-arrows-grid .kd-tabs-more-btn {
|
|
174
183
|
line-height: 22px;
|
|
@@ -194,7 +203,7 @@
|
|
|
194
203
|
top: 50%;
|
|
195
204
|
-webkit-transform: translateY(-50%);
|
|
196
205
|
transform: translateY(-50%);
|
|
197
|
-
background-color: #d9d9d9;
|
|
206
|
+
background-color: var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
198
207
|
}
|
|
199
208
|
.kd-tabs-left-operations-item {
|
|
200
209
|
padding: 0 12px;
|
|
@@ -213,7 +222,7 @@
|
|
|
213
222
|
top: 50%;
|
|
214
223
|
-webkit-transform: translateY(-50%);
|
|
215
224
|
transform: translateY(-50%);
|
|
216
|
-
background-color: #d9d9d9;
|
|
225
|
+
background-color: var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
217
226
|
}
|
|
218
227
|
.kd-tabs-right-operations-item {
|
|
219
228
|
padding: 0 12px;
|
|
@@ -230,14 +239,14 @@
|
|
|
230
239
|
cursor: pointer;
|
|
231
240
|
}
|
|
232
241
|
.kd-tabs-more-btn:hover {
|
|
233
|
-
color: #5582f3;
|
|
242
|
+
color: var(--kd-c-tabs-color-text-hover, var(--kd-g-color-theme, #5582f3));
|
|
234
243
|
}
|
|
235
244
|
.kd-tabs-more-btn-disabled {
|
|
236
|
-
color: #b2b2b2;
|
|
245
|
+
color: var(--kd-c-tabs-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
237
246
|
cursor: not-allowed;
|
|
238
247
|
}
|
|
239
248
|
.kd-tabs-more-btn-disabled:hover {
|
|
240
|
-
color: #b2b2b2;
|
|
249
|
+
color: var(--kd-c-tabs-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
241
250
|
}
|
|
242
251
|
.kd-tabs-navs {
|
|
243
252
|
position: relative;
|
|
@@ -255,11 +264,11 @@
|
|
|
255
264
|
-webkit-box-align: center;
|
|
256
265
|
-ms-flex-align: center;
|
|
257
266
|
align-items: center;
|
|
258
|
-
height: 48px;
|
|
259
|
-
border-bottom: 1px solid #d9d9d9;
|
|
267
|
+
height: var(--kd-c-tabs-sizing-height, 48px);
|
|
268
|
+
border-bottom: var(--kd-c-tabs-sizing-border, 1px) solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
260
269
|
}
|
|
261
270
|
.kd-tabs-navs-line.kd-tabs-navs-bottom {
|
|
262
|
-
border-top: 1px solid #d9d9d9;
|
|
271
|
+
border-top: 1px solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
263
272
|
border-bottom: unset;
|
|
264
273
|
}
|
|
265
274
|
.kd-tabs-navs-line.kd-tabs-navs-bottom .kd-tabs-tab-wrap {
|
|
@@ -273,8 +282,8 @@
|
|
|
273
282
|
bottom: unset;
|
|
274
283
|
}
|
|
275
284
|
.kd-tabs-navs-card {
|
|
276
|
-
border-top: 1px solid #d9d9d9;
|
|
277
|
-
background-color: #f5f5f5;
|
|
285
|
+
border-top: 1px solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
286
|
+
background-color: var(--kd-c-tabs-card-color-background, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
278
287
|
}
|
|
279
288
|
.kd-tabs-navs-card .kd-tabs-tab-wrap {
|
|
280
289
|
top: -1px;
|
|
@@ -295,7 +304,7 @@
|
|
|
295
304
|
display: inline-block;
|
|
296
305
|
width: 1px;
|
|
297
306
|
height: 100%;
|
|
298
|
-
background-color: #d9d9d9;
|
|
307
|
+
background-color: var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
299
308
|
}
|
|
300
309
|
.kd-tabs-navs-card.kd-tabs-navs-left::before,
|
|
301
310
|
.kd-tabs-navs-card.kd-tabs-navs-right::before {
|
|
@@ -334,7 +343,7 @@
|
|
|
334
343
|
border-bottom: unset;
|
|
335
344
|
}
|
|
336
345
|
.kd-tabs-navs-dynamic {
|
|
337
|
-
background-color: #f5f5f5;
|
|
346
|
+
background-color: var(--kd-c-tabs-card-color-background, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
338
347
|
border-bottom: unset;
|
|
339
348
|
height: 40px;
|
|
340
349
|
}
|
|
@@ -355,31 +364,31 @@
|
|
|
355
364
|
vertical-align: middle;
|
|
356
365
|
-webkit-box-sizing: border-box;
|
|
357
366
|
box-sizing: border-box;
|
|
358
|
-
font-size: 14px;
|
|
359
|
-
color: #666;
|
|
360
|
-
height: 48px;
|
|
361
|
-
line-height: 48px;
|
|
362
|
-
margin-right: 24px;
|
|
367
|
+
font-size: var(--kd-c-tabs-pane-font-size, var(--kd-g-font-size-middle, 14px));
|
|
368
|
+
color: var(--kd-c-tabs-color-text, var(--kd-g-color-text-secondary, #666));
|
|
369
|
+
height: var(--kd-c-tabs-pane-sizing-height, 48px);
|
|
370
|
+
line-height: var(--kd-c-tabs-pane-line-height, 48px);
|
|
371
|
+
margin-right: var(--kd-c-tabs-pane-spacing-margin-right, 24px);
|
|
363
372
|
cursor: pointer;
|
|
364
373
|
}
|
|
365
374
|
.kd-tab-pane-text {
|
|
366
375
|
display: inline-block;
|
|
367
|
-
-webkit-transition: color 0.3s;
|
|
368
|
-
transition: color 0.3s;
|
|
376
|
+
-webkit-transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
|
|
377
|
+
transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
|
|
369
378
|
}
|
|
370
379
|
.kd-tab-pane-text-active,
|
|
371
380
|
.kd-tab-pane-text:hover {
|
|
372
|
-
color: #5582f3;
|
|
381
|
+
color: var(--kd-c-tabs-color-text-active, var(--kd-g-color-theme, #5582f3));
|
|
373
382
|
}
|
|
374
383
|
.kd-tab-pane-text-disabled:hover {
|
|
375
|
-
color: #b2b2b2;
|
|
384
|
+
color: var(--kd-c-tabs-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
376
385
|
}
|
|
377
386
|
.kd-tab-pane-disabled {
|
|
378
|
-
color: #b2b2b2;
|
|
387
|
+
color: var(--kd-c-tabs-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
379
388
|
cursor: not-allowed;
|
|
380
389
|
}
|
|
381
390
|
.kd-tab-pane-disabled:hover {
|
|
382
|
-
color: #b2b2b2;
|
|
391
|
+
color: var(--kd-c-tabs-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
383
392
|
}
|
|
384
393
|
.kd-tab-pane-type-card {
|
|
385
394
|
margin-right: 0;
|
|
@@ -389,11 +398,11 @@
|
|
|
389
398
|
}
|
|
390
399
|
.kd-tab-pane-type-card.kd-tab-pane-box-active {
|
|
391
400
|
background-color: #fff;
|
|
392
|
-
border: 1px solid #d9d9d9;
|
|
401
|
+
border: 1px solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
393
402
|
border-top: 2px solid;
|
|
394
|
-
border-color: #5582f3 #d9d9d9 transparent #d9d9d9;
|
|
395
|
-
-webkit-transition: background-color 0.2s cubic-bezier(0.42, 0, 1, 1);
|
|
396
|
-
transition: background-color 0.2s cubic-bezier(0.42, 0, 1, 1);
|
|
403
|
+
border-color: var(--kd-c-tabs-line-color-active, var(--kd-g-color-theme, #5582f3)) var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9)) transparent var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
404
|
+
-webkit-transition: background-color 0.2s var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
405
|
+
transition: background-color 0.2s var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
397
406
|
}
|
|
398
407
|
.kd-tab-pane-type-card.kd-tab-pane-box-active:first-of-type {
|
|
399
408
|
border-left: unset;
|
|
@@ -403,29 +412,29 @@
|
|
|
403
412
|
width: 100%;
|
|
404
413
|
padding: 0;
|
|
405
414
|
text-align: center;
|
|
406
|
-
border-top: 1px solid #d9d9d9;
|
|
415
|
+
border-top: 1px solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
407
416
|
}
|
|
408
417
|
.kd-tab-pane-type-card.kd-tab-pane-left:last-of-type,
|
|
409
418
|
.kd-tab-pane-type-card.kd-tab-pane-right:last-of-type {
|
|
410
|
-
border-bottom: 1px solid #d9d9d9;
|
|
419
|
+
border-bottom: 1px solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
411
420
|
}
|
|
412
421
|
.kd-tab-pane-type-card.kd-tab-pane-left {
|
|
413
422
|
border-left: 1px solid transparent;
|
|
414
423
|
}
|
|
415
424
|
.kd-tab-pane-type-card.kd-tab-pane-left.kd-tab-pane-box-active {
|
|
416
|
-
border-left: 2px solid #5582f3;
|
|
425
|
+
border-left: 2px solid var(--kd-c-tabs-line-color-active, var(--kd-g-color-theme, #5582f3));
|
|
417
426
|
border-right: 1px solid transparent;
|
|
418
427
|
}
|
|
419
428
|
.kd-tab-pane-type-card.kd-tab-pane-right {
|
|
420
429
|
border-right: 1px solid transparent;
|
|
421
430
|
}
|
|
422
431
|
.kd-tab-pane-type-card.kd-tab-pane-right.kd-tab-pane-box-active {
|
|
423
|
-
border-right: 2px solid #5582f3;
|
|
432
|
+
border-right: 2px solid var(--kd-c-tabs-line-color-active, var(--kd-g-color-theme, #5582f3));
|
|
424
433
|
border-left: 1px solid transparent;
|
|
425
434
|
}
|
|
426
435
|
.kd-tab-pane-type-card.kd-tab-pane-bottom.kd-tab-pane-box-active {
|
|
427
436
|
border-bottom: 2px solid;
|
|
428
|
-
border-color: transparent #d9d9d9 #5582f3 #d9d9d9;
|
|
437
|
+
border-color: transparent var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9)) var(--kd-c-tabs-line-color-active, var(--kd-g-color-theme, #5582f3)) var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
429
438
|
}
|
|
430
439
|
.kd-tab-pane-type-dynamic {
|
|
431
440
|
height: 40px;
|
|
@@ -449,7 +458,7 @@
|
|
|
449
458
|
height: 24px;
|
|
450
459
|
line-height: 22px;
|
|
451
460
|
padding: 0 19px;
|
|
452
|
-
border: 1px solid #d9d9d9;
|
|
461
|
+
border: 1px solid var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
453
462
|
margin-right: -1px;
|
|
454
463
|
}
|
|
455
464
|
.kd-tab-pane-type-grid:first-of-type {
|
|
@@ -461,19 +470,19 @@
|
|
|
461
470
|
.kd-tab-pane-type-grid.kd-tab-pane-box-active {
|
|
462
471
|
position: relative;
|
|
463
472
|
z-index: 2;
|
|
464
|
-
background-color: #5582f3;
|
|
465
|
-
border: 1px solid #5582f3;
|
|
466
|
-
-webkit-transition: background-color 0.2s cubic-bezier(0.42, 0, 1, 1);
|
|
467
|
-
transition: background-color 0.2s cubic-bezier(0.42, 0, 1, 1);
|
|
473
|
+
background-color: var(--kd-c-tabs-line-color-active, var(--kd-g-color-theme, #5582f3));
|
|
474
|
+
border: 1px solid var(--kd-c-tabs-line-color-active, var(--kd-g-color-theme, #5582f3));
|
|
475
|
+
-webkit-transition: background-color 0.2s var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
476
|
+
transition: background-color 0.2s var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
468
477
|
}
|
|
469
478
|
.kd-tab-pane-type-grid.kd-tab-pane-box-active .kd-tab-pane-text-active {
|
|
470
479
|
color: #fff;
|
|
471
480
|
}
|
|
472
481
|
.kd-tab-pane-type-grid.kd-tab-pane-disabled {
|
|
473
|
-
background-color: #f2f2f2;
|
|
482
|
+
background-color: var(--kd-c-tabs-color-background-disabled, var(--kd-g-color-background-2, #f2f2f2));
|
|
474
483
|
}
|
|
475
484
|
.kd-tab-pane-type-grid:hover {
|
|
476
|
-
color: #5582f3;
|
|
485
|
+
color: var(--kd-c-tabs-color-text-active, var(--kd-g-color-theme, #5582f3));
|
|
477
486
|
}
|
|
478
487
|
.kd-tab-pane-operations {
|
|
479
488
|
position: relative;
|
|
@@ -492,7 +501,7 @@
|
|
|
492
501
|
content: '';
|
|
493
502
|
width: 1px;
|
|
494
503
|
height: 14px;
|
|
495
|
-
background-color: #d9d9d9;
|
|
504
|
+
background-color: var(--kd-c-tabs-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
496
505
|
right: 0;
|
|
497
506
|
top: 50%;
|
|
498
507
|
opacity: 1;
|
|
@@ -512,9 +521,9 @@
|
|
|
512
521
|
left: 0;
|
|
513
522
|
bottom: 0;
|
|
514
523
|
height: 2px;
|
|
515
|
-
background-color: #5582f3;
|
|
516
|
-
-webkit-transition: all 0.3s cubic-bezier(0.42, 0, 1, 1);
|
|
517
|
-
transition: all 0.3s cubic-bezier(0.42, 0, 1, 1);
|
|
524
|
+
background-color: var(--kd-c-tabs-line-color-active, var(--kd-g-color-theme, #5582f3));
|
|
525
|
+
-webkit-transition: all var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s)) var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
526
|
+
transition: all var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s)) var(--kd-c-tabs-motion-timing-function, cubic-bezier(0.42, 0, 1, 1));
|
|
518
527
|
}
|
|
519
528
|
.kd-arrow-button {
|
|
520
529
|
display: inline-block;
|
|
@@ -527,7 +536,7 @@
|
|
|
527
536
|
cursor: pointer;
|
|
528
537
|
}
|
|
529
538
|
.kd-arrow-button:hover {
|
|
530
|
-
color: #5582f3;
|
|
539
|
+
color: var(--kd-c-tabs-color-text-hover, var(--kd-g-color-theme, #5582f3));
|
|
531
540
|
}
|
|
532
541
|
.kd-arrow-button-line {
|
|
533
542
|
width: 24px;
|
|
@@ -537,11 +546,11 @@
|
|
|
537
546
|
line-height: 40px;
|
|
538
547
|
}
|
|
539
548
|
.kd-arrow-button-disabled {
|
|
540
|
-
color: #b2b2b2;
|
|
549
|
+
color: var(--kd-c-tabs-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
541
550
|
cursor: not-allowed;
|
|
542
551
|
}
|
|
543
552
|
.kd-arrow-button-disabled:hover {
|
|
544
|
-
color: #b2b2b2;
|
|
553
|
+
color: var(--kd-c-tabs-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
545
554
|
}
|
|
546
555
|
.kd-arrow-button .kdicon {
|
|
547
556
|
font-size: 14px;
|
package/es/tabs/style/index.less
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
white-space: nowrap;
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
27
|
-
transition: all @
|
|
27
|
+
transition: all @tab-g-motion-duration @tab-transition-fn;
|
|
28
28
|
}
|
|
29
29
|
&-bottom {
|
|
30
30
|
flex-direction: column-reverse;
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
.tabPane;
|
|
216
216
|
&-text {
|
|
217
217
|
display: inline-block;
|
|
218
|
-
transition: color @
|
|
218
|
+
transition: color @tab-g-motion-duration;
|
|
219
219
|
&-active, &:hover {
|
|
220
220
|
color: @tabPane-font-color-active;
|
|
221
221
|
}
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
bottom: 0;
|
|
363
363
|
height: 2px;
|
|
364
364
|
background-color: @tab-line-color-active;
|
|
365
|
-
transition: all @
|
|
365
|
+
transition: all @tab-g-motion-duration @tab-transition-fn;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
.@{arrowBtn-prefix-cls} {
|
package/es/tabs/style/mixin.less
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@tabs-custom-prefix: ~'--@{kd-prefix}-c-tabs';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@tabs-border-color: var(~'@{tabs-custom-prefix}-color-border', @color-border-strong);
|
|
7
|
+
@tab-line-color-active: var(~'@{tabs-custom-prefix}-line-color-active', @color-theme);
|
|
8
|
+
@tabs-card-bg: var(~'@{tabs-custom-prefix}-card-color-background', @color-background-contain-disabled);
|
|
9
|
+
@tab-disabled-bg: var(~'@{tabs-custom-prefix}-color-background-disabled', @color-background-2);
|
|
10
|
+
@tabs-font-color: var(~'@{tabs-custom-prefix}-color-text', @color-text-secondary);
|
|
11
|
+
@tabPane-font-color-active: var(~'@{tabs-custom-prefix}-color-text-active', @color-theme);
|
|
12
|
+
@tabPane-font-color-hover: var(~'@{tabs-custom-prefix}-color-text-hover', @color-theme);
|
|
13
|
+
@tabPane-font-color-disabled: var(~'@{tabs-custom-prefix}-color-text-disabled', @color-disabled);
|
|
14
|
+
|
|
15
|
+
// font
|
|
16
|
+
@tabPane-font-size: var(~'@{tabs-custom-prefix}-pane-font-size', @font-size-middle);
|
|
17
|
+
|
|
18
|
+
// line-height
|
|
19
|
+
@tab-pane-line-height: var(~'@{tabs-custom-prefix}-pane-line-height', 48px);
|
|
20
|
+
|
|
21
|
+
// motion
|
|
22
|
+
@tab-transition-fn: var(~'@{tabs-custom-prefix}-motion-timing-function', cubic-bezier(0.42, 0, 1, 1));
|
|
23
|
+
@tab-g-motion-duration: var(~'@{tabs-custom-prefix}-motion-duration', @duration-promptly);
|
|
24
|
+
|
|
25
|
+
// sizing
|
|
26
|
+
@tabs-height: var(~'@{tabs-custom-prefix}-sizing-height', 48px);
|
|
27
|
+
@tabs-border-width: var(~'@{tabs-custom-prefix}-sizing-border', 1px);
|
|
28
|
+
@tab-pane-height: var(~'@{tabs-custom-prefix}-pane-sizing-height', 48px);
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// spacing
|
|
32
|
+
@tab-pane-margin-right: var(~'@{tabs-custom-prefix}-pane-spacing-margin-right', 24px);
|
package/es/tabs/tabs.js
CHANGED
|
@@ -248,10 +248,12 @@ var Tabs = function Tabs(props) {
|
|
|
248
248
|
var menu = _mapInstanceProperty(nodes).call(nodes, function (node) {
|
|
249
249
|
var tmp = {
|
|
250
250
|
label: '',
|
|
251
|
-
key: 0
|
|
251
|
+
key: 0,
|
|
252
|
+
disabled: false
|
|
252
253
|
};
|
|
253
254
|
tmp.label = node.props.tab;
|
|
254
255
|
tmp.key = node.props.id;
|
|
256
|
+
tmp.disabled = node.props.disabled;
|
|
255
257
|
return tmp;
|
|
256
258
|
});
|
|
257
259
|
|