@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
|
/** 浮层箭头样式 **/
|
|
@@ -117,7 +126,7 @@
|
|
|
117
126
|
margin-right: 6px;
|
|
118
127
|
}
|
|
119
128
|
.kd-transfer-disabled .kd-transfer-list {
|
|
120
|
-
background: #f5f5f5;
|
|
129
|
+
background: var(--kd-c-transfer-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
121
130
|
}
|
|
122
131
|
.kd-transfer-list {
|
|
123
132
|
display: -webkit-box;
|
|
@@ -129,14 +138,14 @@
|
|
|
129
138
|
flex-direction: column;
|
|
130
139
|
width: 250px;
|
|
131
140
|
min-height: 300px;
|
|
132
|
-
border: 1px solid #d9d9d9;
|
|
141
|
+
border: 1px solid var(--kd-c-transfer-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
133
142
|
}
|
|
134
143
|
.kd-transfer-list-with-pagination {
|
|
135
144
|
width: 250px;
|
|
136
145
|
height: auto;
|
|
137
146
|
}
|
|
138
147
|
.kd-transfer-list-header {
|
|
139
|
-
height: 36px;
|
|
148
|
+
height: var(--kd-c-transfer-header-sizing-height, 36px);
|
|
140
149
|
display: -webkit-box;
|
|
141
150
|
display: -ms-flexbox;
|
|
142
151
|
display: flex;
|
|
@@ -152,10 +161,10 @@
|
|
|
152
161
|
justify-content: space-between;
|
|
153
162
|
-ms-flex-negative: 0;
|
|
154
163
|
flex-shrink: 0;
|
|
155
|
-
font-size: 12px;
|
|
156
|
-
background-color: #f5f5f5;
|
|
157
|
-
border-bottom: 1px solid #d9d9d9;
|
|
158
|
-
padding: 0 14px;
|
|
164
|
+
font-size: var(--kd-c-transfer-font-size, 12px);
|
|
165
|
+
background-color: var(--kd-c-transfer-header-color-background, #f5f5f5);
|
|
166
|
+
border-bottom: 1px solid var(--kd-c-transfer-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
167
|
+
padding: 0 var(--kd-c-transfer-spacing-horizontal, 14px);
|
|
159
168
|
}
|
|
160
169
|
.kd-transfer-list-header-left {
|
|
161
170
|
display: -webkit-box;
|
|
@@ -182,20 +191,20 @@
|
|
|
182
191
|
align-items: center;
|
|
183
192
|
}
|
|
184
193
|
.kd-transfer-list-search {
|
|
185
|
-
height: 32px;
|
|
194
|
+
height: var(--kd-c-transfer-search-sizing-height, 32px);
|
|
186
195
|
position: relative;
|
|
187
196
|
}
|
|
188
197
|
.kd-transfer-list-search-prefix i {
|
|
189
|
-
color: #
|
|
198
|
+
color: var(--kd-c-transfer-search-icon-color-text-prefix, #999);
|
|
190
199
|
}
|
|
191
200
|
.kd-transfer-list-search-suffix {
|
|
192
201
|
cursor: pointer;
|
|
193
202
|
}
|
|
194
203
|
.kd-transfer-list-search-suffix i {
|
|
195
|
-
color: #bbb;
|
|
204
|
+
color: var(--kd-c-transfer-search-icon-color-text-suffix, #bbb);
|
|
196
205
|
}
|
|
197
206
|
.kd-transfer-list-search-suffix i:hover {
|
|
198
|
-
color: #999;
|
|
207
|
+
color: var(--kd-c-transfer-search-icon-color-text-suffix-hover, #999);
|
|
199
208
|
}
|
|
200
209
|
.kd-transfer-list-body {
|
|
201
210
|
display: -webkit-box;
|
|
@@ -209,7 +218,7 @@
|
|
|
209
218
|
-ms-flex-direction: column;
|
|
210
219
|
flex-direction: column;
|
|
211
220
|
overflow: hidden;
|
|
212
|
-
font-size: 12px;
|
|
221
|
+
font-size: var(--kd-c-transfer-font-size, 12px);
|
|
213
222
|
}
|
|
214
223
|
.kd-transfer-list-body-search-wrapper {
|
|
215
224
|
position: relative;
|
|
@@ -220,7 +229,7 @@
|
|
|
220
229
|
margin: 8px 0;
|
|
221
230
|
}
|
|
222
231
|
.kd-transfer-list-content {
|
|
223
|
-
height: 320px;
|
|
232
|
+
height: var(--kd-c-transfer-list-item-content-sizing-height, 320px);
|
|
224
233
|
-webkit-box-flex: 1;
|
|
225
234
|
-ms-flex: auto;
|
|
226
235
|
flex: auto;
|
|
@@ -231,7 +240,7 @@
|
|
|
231
240
|
padding-bottom: 8px;
|
|
232
241
|
}
|
|
233
242
|
.kd-transfer-list-content-item {
|
|
234
|
-
height: 32px;
|
|
243
|
+
height: var(--kd-c-transfer-list-item-sizing-height, 32px);
|
|
235
244
|
display: -webkit-box;
|
|
236
245
|
display: -ms-flexbox;
|
|
237
246
|
display: flex;
|
|
@@ -241,20 +250,20 @@
|
|
|
241
250
|
-webkit-box-pack: justify;
|
|
242
251
|
-ms-flex-pack: justify;
|
|
243
252
|
justify-content: space-between;
|
|
244
|
-
padding: 0 14px;
|
|
253
|
+
padding: 0 var(--kd-c-transfer-spacing-horizontal, 14px);
|
|
245
254
|
cursor: pointer;
|
|
246
255
|
-webkit-transition: background-color 0.3s;
|
|
247
256
|
transition: background-color 0.3s;
|
|
248
257
|
}
|
|
249
258
|
.kd-transfer-list-content-item-disabled {
|
|
250
|
-
color: #b2b2b2;
|
|
259
|
+
color: var(--kd-c-transfer-list-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
251
260
|
cursor: not-allowed;
|
|
252
261
|
}
|
|
253
262
|
.kd-transfer-list-content-item:hover:not(.kd-transfer-list-content-item-disabled) {
|
|
254
|
-
background: #f5f5f5;
|
|
263
|
+
background: var(--kd-c-transfer-list-item-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
255
264
|
}
|
|
256
265
|
.kd-transfer-list-content-item-checked {
|
|
257
|
-
color: #5582f3;
|
|
266
|
+
color: var(--kd-c-transfer-list-item-color-text-checked, var(--kd-g-color-theme, #5582f3));
|
|
258
267
|
}
|
|
259
268
|
.kd-transfer-list-content-item-text {
|
|
260
269
|
-webkit-box-flex: 1;
|
|
@@ -268,13 +277,13 @@
|
|
|
268
277
|
cursor: pointer;
|
|
269
278
|
}
|
|
270
279
|
.kd-transfer-list-content-item-remove i {
|
|
271
|
-
color: #bbb;
|
|
280
|
+
color: var(--kd-c-transfer-search-icon-color-text-suffix, #bbb);
|
|
272
281
|
}
|
|
273
282
|
.kd-transfer-list-content-item-remove i:hover {
|
|
274
|
-
color: #999;
|
|
283
|
+
color: var(--kd-c-transfer-search-icon-color-text-suffix-hover, #999);
|
|
275
284
|
}
|
|
276
285
|
.kd-transfer-list-pagination {
|
|
277
|
-
height: 36px;
|
|
286
|
+
height: var(--kd-c-transfer-pagination-sizing-height, 36px);
|
|
278
287
|
display: -webkit-box;
|
|
279
288
|
display: -ms-flexbox;
|
|
280
289
|
display: flex;
|
|
@@ -284,11 +293,11 @@
|
|
|
284
293
|
-webkit-box-pack: end;
|
|
285
294
|
-ms-flex-pack: end;
|
|
286
295
|
justify-content: flex-end;
|
|
287
|
-
padding: 0 14px;
|
|
288
|
-
border-top: 1px solid #d9d9d9;
|
|
296
|
+
padding: 0 var(--kd-c-transfer-spacing-horizontal, 14px);
|
|
297
|
+
border-top: 1px solid var(--kd-c-transfer-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
289
298
|
}
|
|
290
299
|
.kd-transfer-list-footer {
|
|
291
|
-
border-top: 1px solid #d9d9d9;
|
|
300
|
+
border-top: 1px solid var(--kd-c-transfer-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
292
301
|
}
|
|
293
302
|
.kd-transfer-list-body-not-found {
|
|
294
303
|
-webkit-box-flex: 1;
|
|
@@ -338,7 +347,11 @@
|
|
|
338
347
|
padding: 0 10px;
|
|
339
348
|
-webkit-box-sizing: border-box;
|
|
340
349
|
box-sizing: border-box;
|
|
350
|
+
min-width: 40px;
|
|
341
351
|
}
|
|
342
352
|
.kd-transfer-operation .kd-btn + .kd-btn {
|
|
343
353
|
margin-top: 20px;
|
|
344
354
|
}
|
|
355
|
+
.kd-transfer-operation .kd-btn .kd-btn-iconWrapper-left {
|
|
356
|
+
float: none;
|
|
357
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@transfer-custom-prefix: ~'--@{kd-prefix}-c-transfer';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@transfer-disabled-bg: var(~'@{transfer-custom-prefix}-color-background-disabled', @color-background-contain-disabled);
|
|
7
|
+
@transfer-border-color: var(~'@{transfer-custom-prefix}-color-border', @color-border-strong);
|
|
8
|
+
@transfer-list-item-hover-bg: var(~'@{transfer-custom-prefix}-list-item-color-background-hover', @color-hover);
|
|
9
|
+
@transfer-header-bg: var(~'@{transfer-custom-prefix}-header-color-background', #f5f5f5);
|
|
10
|
+
|
|
11
|
+
// font
|
|
12
|
+
@transfer-font-size-base: var(~'@{transfer-custom-prefix}-font-size', 12px);
|
|
13
|
+
|
|
14
|
+
// sizing
|
|
15
|
+
@transfer-list-item-height: var(~'@{transfer-custom-prefix}-list-item-sizing-height', 32px);
|
|
16
|
+
@transfer-list-content-height: var(~'@{transfer-custom-prefix}-list-item-content-sizing-height', 320px);
|
|
17
|
+
@transfer-header-height: var(~'@{transfer-custom-prefix}-header-sizing-height', 36px);
|
|
18
|
+
@transfer-search-height: var(~'@{transfer-custom-prefix}-search-sizing-height', 32px);
|
|
19
|
+
@transfer-pagination-height: var(~'@{transfer-custom-prefix}-pagination-sizing-height', 36px);
|
|
20
|
+
|
|
21
|
+
// spacing
|
|
22
|
+
@transfer-padding-base: var(~'@{transfer-custom-prefix}-spacing-horizontal', 14px);
|
|
23
|
+
|
|
24
|
+
// text
|
|
25
|
+
@transfer-list-item-checked: var(~'@{transfer-custom-prefix}-list-item-color-text-checked', @color-theme);
|
|
26
|
+
@transfer-list-item-disabled: var(~'@{transfer-custom-prefix}-list-item-color-text-disabled', @color-disabled);
|
|
27
|
+
@transfer-search-prefix-icon-color: var(~'@{transfer-custom-prefix}-search-icon-color-text-prefix', #999);
|
|
28
|
+
@transfer-search-suffix-icon-color: var(~'@{transfer-custom-prefix}-search-icon-color-text-suffix', #bbb);
|
|
29
|
+
@transfer-search-suffix-icon-color-hover: var(~'@{transfer-custom-prefix}-search-icon-color-text-suffix-hover', #999);
|
package/lib/tree/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-tree {
|
|
96
105
|
position: relative;
|
|
97
106
|
overflow: auto;
|
|
@@ -102,7 +111,8 @@
|
|
|
102
111
|
-webkit-box-flex: 1;
|
|
103
112
|
-ms-flex-positive: 1;
|
|
104
113
|
flex-grow: 1;
|
|
105
|
-
font-size:
|
|
114
|
+
font-size: var(--kd-c-tree-font-size, var(--kd-g-font-size-small, 12px));
|
|
115
|
+
color: var(--kd-c-tree-color-text, var(--kd-g-color-text-primary, #212121));
|
|
106
116
|
}
|
|
107
117
|
.kd-tree-root {
|
|
108
118
|
min-width: 100%;
|
|
@@ -130,7 +140,7 @@
|
|
|
130
140
|
pointer-events: none;
|
|
131
141
|
}
|
|
132
142
|
.kd-tree-node-item {
|
|
133
|
-
height:
|
|
143
|
+
height: var(--kd-c-tree-node-sizing-height, 32px);
|
|
134
144
|
display: -webkit-box;
|
|
135
145
|
display: -ms-flexbox;
|
|
136
146
|
display: flex;
|
|
@@ -139,11 +149,11 @@
|
|
|
139
149
|
align-items: center;
|
|
140
150
|
}
|
|
141
151
|
.kd-tree-node-item-hover {
|
|
142
|
-
-webkit-transition: background-color 0.3s, color 0.3s;
|
|
143
|
-
transition: background-color 0.3s, color 0.3s;
|
|
152
|
+
-webkit-transition: background-color var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s)), color var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
153
|
+
transition: background-color var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s)), color var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
144
154
|
}
|
|
145
155
|
.kd-tree-node-item-hover:hover {
|
|
146
|
-
background-color: #f5f5f5;
|
|
156
|
+
background-color: var(--kd-c-tree-node-color-backgroung-hover, var(--kd-g-color-hover, #f5f5f5));
|
|
147
157
|
cursor: pointer;
|
|
148
158
|
}
|
|
149
159
|
.kd-tree-node-indent {
|
|
@@ -157,7 +167,7 @@
|
|
|
157
167
|
border-right: 10px;
|
|
158
168
|
border-color: white;
|
|
159
169
|
border-style: solid;
|
|
160
|
-
height:
|
|
170
|
+
height: var(--kd-c-tree-node-sizing-height, 32px);
|
|
161
171
|
cursor: default;
|
|
162
172
|
opacity: 0;
|
|
163
173
|
}
|
|
@@ -167,8 +177,8 @@
|
|
|
167
177
|
}
|
|
168
178
|
.kd-tree-node-icon {
|
|
169
179
|
cursor: pointer;
|
|
170
|
-
height: 22px;
|
|
171
|
-
width: 22px;
|
|
180
|
+
height: var(--kd-c-tree-expand-icon-sizing-height, 22px);
|
|
181
|
+
width: var(--kd-c-tree-expand-icon-sizing-width, 22px);
|
|
172
182
|
display: -webkit-box;
|
|
173
183
|
display: -ms-flexbox;
|
|
174
184
|
display: flex;
|
|
@@ -178,10 +188,12 @@
|
|
|
178
188
|
-webkit-box-align: center;
|
|
179
189
|
-ms-flex-align: center;
|
|
180
190
|
align-items: center;
|
|
191
|
+
font-size: var(--kd-c-tree-node-icon-font-size, 16px);
|
|
192
|
+
color: var(--kd-c-tree-node-icon-color-text, #666666);
|
|
181
193
|
}
|
|
182
194
|
.kd-tree-node-icon-hidden {
|
|
183
|
-
height:
|
|
184
|
-
width:
|
|
195
|
+
height: var(--kd-c-tree-node-icon-sizing-height, 20px);
|
|
196
|
+
width: var(--kd-c-tree-node-icon-sizing-width, 20px);
|
|
185
197
|
-ms-flex-negative: 0;
|
|
186
198
|
flex-shrink: 0;
|
|
187
199
|
opacity: 0;
|
|
@@ -190,48 +202,36 @@
|
|
|
190
202
|
.kd-tree-node-animation-expand {
|
|
191
203
|
-webkit-transform: rotate(90deg);
|
|
192
204
|
transform: rotate(90deg);
|
|
193
|
-
-webkit-transition: -webkit-transform 0.3s;
|
|
194
|
-
transition: -webkit-transform 0.3s;
|
|
195
|
-
transition: transform 0.3s;
|
|
196
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
205
|
+
-webkit-transition: -webkit-transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
206
|
+
transition: -webkit-transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
207
|
+
transition: transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
208
|
+
transition: transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
197
209
|
}
|
|
198
210
|
.kd-tree-node-animation-collapse {
|
|
199
211
|
-webkit-transform: rotate(0deg);
|
|
200
212
|
transform: rotate(0deg);
|
|
201
|
-
-webkit-transition: -webkit-transform 0.3s;
|
|
202
|
-
transition: -webkit-transform 0.3s;
|
|
203
|
-
transition: transform 0.3s;
|
|
204
|
-
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
213
|
+
-webkit-transition: -webkit-transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
214
|
+
transition: -webkit-transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
215
|
+
transition: transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
216
|
+
transition: transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s)), -webkit-transform var(--kd-c-tree-motion-duration, var(--kd-g-duration, 0.3s));
|
|
205
217
|
}
|
|
206
218
|
.kd-tree-node-disabled {
|
|
207
219
|
cursor: not-allowed !important;
|
|
208
|
-
border-color: #ccc;
|
|
220
|
+
border-color: var(--kd-c-tree-node-color-border-disabled, var(--kd-g-color-border-disabled, #ccc));
|
|
209
221
|
}
|
|
210
222
|
.kd-tree-node-title-disabled {
|
|
211
|
-
color: #b2b2b2;
|
|
223
|
+
color: var(--kd-c-tree-node-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
212
224
|
}
|
|
213
225
|
.kd-tree-node-title {
|
|
214
226
|
white-space: nowrap;
|
|
215
227
|
margin-left: 6px;
|
|
216
228
|
}
|
|
217
229
|
.kd-tree-node-selected {
|
|
218
|
-
background-color: #
|
|
219
|
-
color: #
|
|
220
|
-
}
|
|
221
|
-
.kd-tree-node-selected .kd-checkbox-default-checked {
|
|
222
|
-
background-color: #fff;
|
|
223
|
-
}
|
|
224
|
-
.kd-tree-node-selected .kd-checkbox-default-inner {
|
|
225
|
-
color: #5582f3;
|
|
226
|
-
}
|
|
227
|
-
.kd-tree-node-selected .kd-checkbox-default-indeterminate {
|
|
228
|
-
background-color: #fff;
|
|
229
|
-
}
|
|
230
|
-
.kd-tree-node-selected .kd-checkbox-default-indeterminate::before {
|
|
231
|
-
background-color: #5582f3;
|
|
230
|
+
background-color: var(--kd-c-tree-node-color-backgroung-checked, #E3EBFF) !important;
|
|
231
|
+
color: var(--kd-c-tree-node-color-text-checked, var(--kd-g-color-theme-6, #5582f3));
|
|
232
232
|
}
|
|
233
233
|
.kd-tree-node-selected .kd-tree-node-title {
|
|
234
|
-
color: #
|
|
234
|
+
color: var(--kd-c-tree-node-color-text-checked, var(--kd-g-color-theme-6, #5582f3));
|
|
235
235
|
}
|
|
236
236
|
.kd-tree-node-draggabled {
|
|
237
237
|
display: -webkit-box;
|
|
@@ -254,8 +254,8 @@
|
|
|
254
254
|
border-top: 1px solid #fc8555;
|
|
255
255
|
}
|
|
256
256
|
.kd-tree-node-leaf-icon {
|
|
257
|
-
height:
|
|
258
|
-
width:
|
|
257
|
+
height: var(--kd-c-tree-node-icon-sizing-height, 20px);
|
|
258
|
+
width: var(--kd-c-tree-node-icon-sizing-width, 20px);
|
|
259
259
|
display: -webkit-box;
|
|
260
260
|
display: -ms-flexbox;
|
|
261
261
|
display: flex;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-grow: 1;
|
|
12
12
|
font-size: @tree-font-size;
|
|
13
|
+
color: @tree-color-text;
|
|
13
14
|
&-root {
|
|
14
15
|
min-width: 100%;
|
|
15
16
|
flex-shrink: 0;
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
align-items: center;
|
|
38
39
|
}
|
|
39
40
|
&-item-hover {
|
|
40
|
-
transition: background-color @transition-duration, color @transition-duration;
|
|
41
|
+
transition: background-color @tree-transition-duration, color @tree-transition-duration;
|
|
41
42
|
}
|
|
42
43
|
&-item-hover:hover {
|
|
43
44
|
background-color: @tree-node-hover-bg-color;
|
|
@@ -68,6 +69,8 @@
|
|
|
68
69
|
display: flex;
|
|
69
70
|
justify-content: center;
|
|
70
71
|
align-items: center;
|
|
72
|
+
font-size: @tree-node-icon-size;
|
|
73
|
+
color: @tree-node-icon-color-text;
|
|
71
74
|
}
|
|
72
75
|
&-icon-hidden {
|
|
73
76
|
height: @tree-node-icon-height;
|
|
@@ -78,11 +81,11 @@
|
|
|
78
81
|
}
|
|
79
82
|
&-animation-expand {
|
|
80
83
|
transform: rotate(90deg);
|
|
81
|
-
transition: transform @transition-duration;
|
|
84
|
+
transition: transform @tree-transition-duration;
|
|
82
85
|
}
|
|
83
86
|
&-animation-collapse {
|
|
84
87
|
transform: rotate(0deg);
|
|
85
|
-
transition: transform @transition-duration;
|
|
88
|
+
transition: transform @tree-transition-duration;
|
|
86
89
|
}
|
|
87
90
|
&-disabled {
|
|
88
91
|
cursor: not-allowed !important;
|
|
@@ -97,25 +100,10 @@
|
|
|
97
100
|
}
|
|
98
101
|
&-selected {
|
|
99
102
|
background-color: @tree-node-checked-bg-color !important;
|
|
100
|
-
color:
|
|
101
|
-
|
|
102
|
-
.@{kd-prefix}-checkbox {
|
|
103
|
-
&-default-checked {
|
|
104
|
-
background-color: #fff;
|
|
105
|
-
}
|
|
106
|
-
&-default-inner {
|
|
107
|
-
color: @theme-color;
|
|
108
|
-
}
|
|
109
|
-
&-default-indeterminate {
|
|
110
|
-
background-color: #fff;
|
|
111
|
-
&::before {
|
|
112
|
-
background-color: @theme-color;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
103
|
+
color: @tree-node-checked-text-color;
|
|
116
104
|
|
|
117
105
|
.@{tree-node-prefix-cls}-title {
|
|
118
|
-
color:
|
|
106
|
+
color: @tree-node-checked-text-color;
|
|
119
107
|
}
|
|
120
108
|
}
|
|
121
109
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@tree-prefix: '--@{kd-prefix}-c-tree';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@tree-color-text: var(~'@{tree-prefix}-color-text', @color-text-primary);
|
|
7
|
+
@tree-node-disabled-color: var(~'@{tree-prefix}-node-color-disabled', @color-disabled);
|
|
8
|
+
@tree-node-disabled-border-color: var(~'@{tree-prefix}-node-color-border-disabled', @color-border-disabled);
|
|
9
|
+
@tree-color-theme: var(~'@{tree-prefix}-color-theme', @color-theme);
|
|
10
|
+
@tree-node-checked-bg-color: var(~'@{tree-prefix}-node-color-backgroung-checked', #E3EBFF);
|
|
11
|
+
@tree-node-checked-text-color: var(~'@{tree-prefix}-node-color-text-checked', @color-theme-6);
|
|
12
|
+
@tree-node-hover-bg-color: var(~'@{tree-prefix}-node-color-backgroung-hover', @color-hover);
|
|
13
|
+
@tree-node-icon-color-text: var(~'@{tree-prefix}-node-icon-color-text', #666666);
|
|
14
|
+
|
|
15
|
+
// sizing
|
|
16
|
+
@tree-node-height: var(~'@{tree-prefix}-node-sizing-height', 32px);
|
|
17
|
+
@tree-expand-icon-height: var(~'@{tree-prefix}-expand-icon-sizing-height', 22px);
|
|
18
|
+
@tree-expand-icon-width: var(~'@{tree-prefix}-expand-icon-sizing-width', 22px);
|
|
19
|
+
@tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 20px);
|
|
20
|
+
@tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 20px);
|
|
21
|
+
|
|
22
|
+
// font
|
|
23
|
+
@tree-font-size: var(~'@{tree-prefix}-font-size', @font-size-small);
|
|
24
|
+
@tree-node-icon-size: var(~'@{tree-prefix}-node-icon-font-size', 16px);
|
|
25
|
+
|
|
26
|
+
// motion
|
|
27
|
+
@tree-transition-duration: var(~'@{tree-prefix}-motion-duration', @duration-promptly);
|
|
@@ -92,26 +92,35 @@
|
|
|
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-typography {
|
|
96
|
-
color: #212121;
|
|
105
|
+
color: var(--kd-c-typography-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
97
106
|
overflow-wrap: break-word;
|
|
98
107
|
line-height: 2;
|
|
99
|
-
max-width: 830px;
|
|
108
|
+
max-width: var(--kd-c-typography-sizing-width-max, 830px);
|
|
100
109
|
}
|
|
101
110
|
.kd-typography.kd-typography-second {
|
|
102
|
-
color: #666;
|
|
111
|
+
color: var(--kd-c-typography-color-text-secondary, var(--kd-g-color-text-secondary, #666));
|
|
103
112
|
}
|
|
104
113
|
.kd-typography.kd-typography-success {
|
|
105
|
-
color: #1ba854;
|
|
114
|
+
color: var(--kd-c-typography-color-success, var(--kd-g-color-success, #1ba854));
|
|
106
115
|
}
|
|
107
116
|
.kd-typography.kd-typography-warning {
|
|
108
|
-
color: #ff991c;
|
|
117
|
+
color: var(--kd-c-typography-color-warning, var(--kd-g-color-warning, #ff991c));
|
|
109
118
|
}
|
|
110
119
|
.kd-typography.kd-typography-danger {
|
|
111
|
-
color: #fb2323;
|
|
120
|
+
color: var(--kd-c-typography-color-error, var(--kd-g-color-error, #fb2323));
|
|
112
121
|
}
|
|
113
122
|
.kd-typography.kd-typography-disabled {
|
|
114
|
-
color: #b2b2b2;
|
|
123
|
+
color: var(--kd-c-typography-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
115
124
|
cursor: not-allowed;
|
|
116
125
|
-webkit-user-select: none;
|
|
117
126
|
-moz-user-select: none;
|
|
@@ -119,86 +128,70 @@
|
|
|
119
128
|
user-select: none;
|
|
120
129
|
}
|
|
121
130
|
.kd-typography.kd-typography-assist {
|
|
122
|
-
color: #999;
|
|
131
|
+
color: var(--kd-c-typography-color-text-third, var(--kd-g-color-text-third, #999));
|
|
123
132
|
}
|
|
124
133
|
.kd-typography + h1.kd-typography,
|
|
125
134
|
.kd-typography + h2.kd-typography,
|
|
126
135
|
.kd-typography + h3.kd-typography,
|
|
127
136
|
.kd-typography + h4.kd-typography,
|
|
128
137
|
.kd-typography + h5.kd-typography {
|
|
129
|
-
margin-top: 1.2em;
|
|
138
|
+
margin-top: var(--kd-c-typography-title-spacing-margin-top, 1.2em);
|
|
130
139
|
}
|
|
131
140
|
article.kd-typography > div.kd-typography {
|
|
132
|
-
margin-bottom: 24px;
|
|
141
|
+
margin-bottom: var(--kd-c-typography-paragraph-spacing-margin-bottom, 24px);
|
|
133
142
|
}
|
|
134
143
|
article.kd-typography > div.kd-typography:first-child {
|
|
135
|
-
margin-bottom: 80px;
|
|
144
|
+
margin-bottom: var(--kd-c-typography-spacing-margin-bottom, 80px);
|
|
136
145
|
}
|
|
137
146
|
article.kd-typography > div.kd-typography + div.kd-typography h2 {
|
|
138
|
-
margin-top: 80px;
|
|
147
|
+
margin-top: var(--kd-c-typography-spacing-margin-bottom, 80px);
|
|
139
148
|
}
|
|
140
149
|
article.kd-typography h1 {
|
|
141
150
|
margin-top: 0;
|
|
142
|
-
margin-bottom: 12px;
|
|
143
|
-
color: #212121;
|
|
144
|
-
font-weight: 600;
|
|
145
|
-
font-size: 40px;
|
|
151
|
+
margin-bottom: var(--kd-c-typography-spacing-margin-bottom-1, 12px);
|
|
152
|
+
color: var(--kd-c-typography-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
153
|
+
font-weight: var(--kd-c-typography-title-font-weight, 600);
|
|
154
|
+
font-size: var(--kd-c-typography-font-size-1, 40px);
|
|
146
155
|
line-height: 1.5;
|
|
147
156
|
}
|
|
148
157
|
article.kd-typography h2 {
|
|
149
158
|
margin-top: 0;
|
|
150
|
-
margin-bottom: 24px;
|
|
151
|
-
color: #276ff5;
|
|
152
|
-
font-weight: 600;
|
|
153
|
-
font-size: 28px;
|
|
159
|
+
margin-bottom: var(--kd-c-typography-spacing-margin-bottom-2, 24px);
|
|
160
|
+
color: var(--kd-c-typography-title-color-text, #276ff5);
|
|
161
|
+
font-weight: var(--kd-c-typography-title-font-weight, 600);
|
|
162
|
+
font-size: var(--kd-c-typography-font-size-2, 28px);
|
|
154
163
|
line-height: 1.5;
|
|
155
164
|
}
|
|
156
165
|
article.kd-typography h3 {
|
|
157
166
|
margin-top: 0;
|
|
158
|
-
margin-bottom: 12px;
|
|
159
|
-
color: #212121;
|
|
160
|
-
font-weight: 600;
|
|
161
|
-
font-size: 18px;
|
|
167
|
+
margin-bottom: var(--kd-c-typography-spacing-margin-bottom-3, 12px);
|
|
168
|
+
color: var(--kd-c-typography-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
169
|
+
font-weight: var(--kd-c-typography-title-font-weight, 600);
|
|
170
|
+
font-size: var(--kd-c-typography-font-size-3, 18px);
|
|
162
171
|
line-height: 1.5;
|
|
163
172
|
}
|
|
164
173
|
h1.kd-typography,
|
|
165
174
|
.kd-typography h1 {
|
|
166
|
-
margin-bottom: 0.5em;
|
|
167
|
-
color: #212121;
|
|
168
|
-
font-weight: 600;
|
|
169
|
-
font-size: 40px;
|
|
175
|
+
margin-bottom: var(--kd-c-typography-title-spacing-margin-bottom, 0.5em);
|
|
176
|
+
color: var(--kd-c-typography-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
177
|
+
font-weight: var(--kd-c-typography-title-font-weight, 600);
|
|
178
|
+
font-size: var(--kd-c-typography-font-size-1, 40px);
|
|
170
179
|
line-height: 1.5;
|
|
171
180
|
}
|
|
172
181
|
h2.kd-typography,
|
|
173
182
|
.kd-typography h2 {
|
|
174
|
-
margin-bottom: 0.5em;
|
|
175
|
-
color: #276ff5;
|
|
176
|
-
font-weight: 600;
|
|
177
|
-
font-size: 28px;
|
|
183
|
+
margin-bottom: var(--kd-c-typography-title-spacing-margin-bottom, 0.5em);
|
|
184
|
+
color: var(--kd-c-typography-title-color-text, #276ff5);
|
|
185
|
+
font-weight: var(--kd-c-typography-title-font-weight, 600);
|
|
186
|
+
font-size: var(--kd-c-typography-font-size-2, 28px);
|
|
178
187
|
line-height: 1.5;
|
|
179
188
|
}
|
|
180
189
|
h3.kd-typography,
|
|
181
190
|
.kd-typography h3 {
|
|
182
|
-
margin-bottom: 0.5em;
|
|
183
|
-
color: #212121;
|
|
184
|
-
font-weight: 600;
|
|
185
|
-
font-size: 18px;
|
|
186
|
-
line-height: 1.5;
|
|
187
|
-
}
|
|
188
|
-
h4.kd-typography,
|
|
189
|
-
.kd-typography h4 {
|
|
190
|
-
margin-bottom: 0.5em;
|
|
191
|
-
color: #212121;
|
|
192
|
-
font-weight: 600;
|
|
193
|
-
font-size: 20px;
|
|
194
|
-
line-height: 1.4;
|
|
195
|
-
}
|
|
196
|
-
h5.kd-typography,
|
|
197
|
-
.kd-typography h5 {
|
|
198
|
-
margin-bottom: 0.5em;
|
|
199
|
-
color: #212121;
|
|
200
|
-
font-weight: 600;
|
|
201
|
-
font-size: 16px;
|
|
191
|
+
margin-bottom: var(--kd-c-typography-title-spacing-margin-bottom, 0.5em);
|
|
192
|
+
color: var(--kd-c-typography-color-text-primary, var(--kd-g-color-text-primary, #212121));
|
|
193
|
+
font-weight: var(--kd-c-typography-title-font-weight, 600);
|
|
194
|
+
font-size: var(--kd-c-typography-font-size-3, 18px);
|
|
202
195
|
line-height: 1.5;
|
|
203
196
|
}
|
|
204
197
|
.kd-typography code {
|
|
@@ -223,7 +216,7 @@ h5.kd-typography,
|
|
|
223
216
|
}
|
|
224
217
|
.kd-typography ul,
|
|
225
218
|
.kd-typography ol {
|
|
226
|
-
margin: 0 0 24px 0;
|
|
219
|
+
margin: 0 0 var(--kd-c-typography-spacing-margin-bottom-2, 24px) 0;
|
|
227
220
|
padding: 0;
|
|
228
221
|
}
|
|
229
222
|
.kd-typography ul li,
|