@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
|
/** 浮层箭头样式 **/
|
|
@@ -108,8 +117,8 @@
|
|
|
108
117
|
}
|
|
109
118
|
.kd-filter .kd-filter-header-title {
|
|
110
119
|
white-space: nowrap;
|
|
111
|
-
color: #212121;
|
|
112
|
-
font-size: 16px;
|
|
120
|
+
color: var(--kd-c-filter-header-title-color-text, var(--kd-g-color-text-primary, #212121));
|
|
121
|
+
font-size: var(--kd-c-filter-header-title-font-size, var(--kd-g-font-size-large, 16px));
|
|
113
122
|
}
|
|
114
123
|
.kd-filter .kd-filter-header-condition {
|
|
115
124
|
display: -webkit-box;
|
|
@@ -125,9 +134,9 @@
|
|
|
125
134
|
}
|
|
126
135
|
.kd-filter .kd-filter-header-condition-label {
|
|
127
136
|
padding-right: 8px;
|
|
128
|
-
font-size: 14px;
|
|
137
|
+
font-size: var(--kd-c-filter-condition-label-font-size, var(--kd-g-font-size-middle, 14px));
|
|
129
138
|
white-space: nowrap;
|
|
130
|
-
color: #999;
|
|
139
|
+
color: var(--kd-c-filter-condition-label-color-text, var(--kd-g-color-text-third, #999));
|
|
131
140
|
}
|
|
132
141
|
.kd-filter .kd-filter-header-condition-item-text {
|
|
133
142
|
max-width: 224px;
|
|
@@ -154,8 +163,8 @@
|
|
|
154
163
|
height: 44px;
|
|
155
164
|
line-height: 44px;
|
|
156
165
|
text-align: center;
|
|
157
|
-
color: #276ff5;
|
|
158
|
-
font-size: 14px;
|
|
166
|
+
color: var(--kd-c-filter-handle-color-text, var(--kd-g-color-ongoing, #276ff5));
|
|
167
|
+
font-size: var(--kd-c-filter-handle-font-size, var(--kd-g-font-size-middle, 14px));
|
|
159
168
|
cursor: pointer;
|
|
160
169
|
-webkit-user-select: none;
|
|
161
170
|
-moz-user-select: none;
|
|
@@ -172,8 +181,8 @@
|
|
|
172
181
|
}
|
|
173
182
|
.kd-filter .kd-filter-header-handle.spread {
|
|
174
183
|
border-radius: 4px 4px 0 0;
|
|
175
|
-
background-color: #fafafa;
|
|
176
|
-
border-color: #d9d9d9;
|
|
184
|
+
background-color: var(--kd-c-filter-handle-color-background-spread, var(--kd-g-color-background-contain, #fafafa));
|
|
185
|
+
border-color: var(--kd-c-filter-handle-color-border-spread, var(--kd-g-color-border-strong, #d9d9d9));
|
|
177
186
|
}
|
|
178
187
|
.kd-filter .kd-filter-header-handle.spread > i {
|
|
179
188
|
-webkit-transform: rotate(180deg);
|
|
@@ -189,26 +198,26 @@
|
|
|
189
198
|
overflow: visible;
|
|
190
199
|
padding: 8px 20px;
|
|
191
200
|
border-radius: 4px 0 4px 4px;
|
|
192
|
-
background-color: #fafafa;
|
|
193
|
-
border: 1px solid #d9d9d9;
|
|
201
|
+
background-color: var(--kd-c-filter-body-color-background, var(--kd-g-color-background-contain, #fafafa));
|
|
202
|
+
border: 1px solid var(--kd-c-filter-body-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
194
203
|
}
|
|
195
204
|
.kd-filter .kd-filter-body-tabs {
|
|
196
|
-
border-bottom: 1px solid #e5e5e5;
|
|
205
|
+
border-bottom: 1px solid var(--kd-c-filter-body-tabs-color-border, var(--kd-g-color-border-weak, #e5e5e5));
|
|
197
206
|
}
|
|
198
207
|
.kd-filter .kd-filter-body-tabs-item {
|
|
199
208
|
padding: 10px 0;
|
|
200
|
-
font-size: 14px;
|
|
201
|
-
color: #999;
|
|
209
|
+
font-size: var(--kd-c-filter-body-tabs-item-font-size, var(--kd-g-font-size-middle, 14px));
|
|
210
|
+
color: var(--kd-c-filter-body-tabs-item-color-text, var(--kd-g-color-text-third, #999));
|
|
202
211
|
cursor: pointer;
|
|
203
212
|
}
|
|
204
213
|
.kd-filter .kd-filter-body-tabs-item:hover,
|
|
205
214
|
.kd-filter .kd-filter-body-tabs-item.active {
|
|
206
|
-
color: #276ff5;
|
|
215
|
+
color: var(--kd-c-filter-body-tabs-item-color-text-active, var(--kd-g-color-ongoing, #276ff5));
|
|
207
216
|
}
|
|
208
217
|
.kd-filter .kd-filter-body-tabs-split {
|
|
209
218
|
width: 1px;
|
|
210
219
|
height: 16px;
|
|
211
|
-
background-color: #d9d9d9;
|
|
220
|
+
background-color: var(--kd-g-color-border-strong, #d9d9d9);
|
|
212
221
|
}
|
|
213
222
|
.kd-filter .kd-filter-body-conditions {
|
|
214
223
|
display: none;
|
|
@@ -220,14 +229,14 @@
|
|
|
220
229
|
display: -webkit-box;
|
|
221
230
|
display: -ms-flexbox;
|
|
222
231
|
display: flex;
|
|
223
|
-
font-size: 12px;
|
|
232
|
+
font-size: var(--kd-g-font-size-small, 12px);
|
|
224
233
|
}
|
|
225
234
|
.kd-filter .kd-filter-body-condition:not(:last-child) {
|
|
226
|
-
border-bottom: 1px solid #e5e5e5;
|
|
235
|
+
border-bottom: 1px solid var(--kd-g-color-border-weak, #e5e5e5);
|
|
227
236
|
}
|
|
228
237
|
.kd-filter .kd-filter-body-condition-label {
|
|
229
238
|
padding: 11px 0 10px;
|
|
230
|
-
color: #999;
|
|
239
|
+
color: var(--kd-g-color-text-third, #999);
|
|
231
240
|
line-height: 18px;
|
|
232
241
|
}
|
|
233
242
|
.kd-filter .kd-filter-body-condition-options {
|
|
@@ -250,11 +259,11 @@
|
|
|
250
259
|
.kd-filter .kd-filter-body-condition-option {
|
|
251
260
|
margin-bottom: 4px;
|
|
252
261
|
padding: 0 12px;
|
|
253
|
-
color: #666;
|
|
262
|
+
color: var(--kd-g-color-text-secondary, #666);
|
|
254
263
|
vertical-align: middle;
|
|
255
264
|
line-height: 22px;
|
|
256
|
-
font-size: 12px;
|
|
257
|
-
border-radius: 2px;
|
|
265
|
+
font-size: var(--kd-g-font-size-small, 12px);
|
|
266
|
+
border-radius: var(--kd-g-radius-border, 2px);
|
|
258
267
|
border: 1px solid transparent;
|
|
259
268
|
cursor: pointer;
|
|
260
269
|
white-space: nowrap;
|
|
@@ -265,7 +274,7 @@
|
|
|
265
274
|
.kd-filter .kd-filter-body-condition-option.active {
|
|
266
275
|
color: #276ff5;
|
|
267
276
|
border-color: #276ff5;
|
|
268
|
-
background-color: #fff;
|
|
277
|
+
background-color: var(--kd-g-color-background, #fff);
|
|
269
278
|
}
|
|
270
279
|
.kd-filter .kd-filter-body-condition-option-customer {
|
|
271
280
|
margin-left: -20px;
|
|
@@ -289,8 +298,8 @@
|
|
|
289
298
|
}
|
|
290
299
|
.kd-filter .kd-filter-body-scheme-label {
|
|
291
300
|
width: 96px;
|
|
292
|
-
color: #999;
|
|
293
|
-
font-size: 12px;
|
|
301
|
+
color: var(--kd-g-color-text-third, #999);
|
|
302
|
+
font-size: var(--kd-g-font-size-small, 12px);
|
|
294
303
|
}
|
|
295
304
|
.kd-filter .kd-filter-body-scheme-list {
|
|
296
305
|
display: -webkit-box;
|
|
@@ -298,8 +307,8 @@
|
|
|
298
307
|
display: flex;
|
|
299
308
|
}
|
|
300
309
|
.kd-filter .kd-filter-body-scheme-item {
|
|
301
|
-
font-size: 12px;
|
|
302
|
-
color: #666;
|
|
310
|
+
font-size: var(--kd-g-font-size-small, 12px);
|
|
311
|
+
color: var(--kd-g-color-text-secondary, #666);
|
|
303
312
|
cursor: pointer;
|
|
304
313
|
}
|
|
305
314
|
.kd-filter .kd-filter-body-scheme-item:not(:last-child) {
|
|
@@ -312,10 +321,13 @@
|
|
|
312
321
|
position: absolute;
|
|
313
322
|
right: 0;
|
|
314
323
|
}
|
|
324
|
+
.kd-filter .kd-filter-body-scheme-detail {
|
|
325
|
+
list-style: none;
|
|
326
|
+
}
|
|
315
327
|
.kd-filter .kd-filter-body-scheme-detail > li {
|
|
316
328
|
line-height: 40px;
|
|
317
|
-
color: #212121;
|
|
318
|
-
font-size: 12px;
|
|
329
|
+
color: var(--kd-g-color-text-primary, #212121);
|
|
330
|
+
font-size: var(--kd-g-font-size-small, 12px);
|
|
319
331
|
}
|
|
320
332
|
.kd-filter .kd-filter-body-scheme-detail > li > span {
|
|
321
333
|
display: inline-block;
|
|
@@ -333,13 +345,13 @@
|
|
|
333
345
|
width: 220px;
|
|
334
346
|
}
|
|
335
347
|
.kd-filter .kd-filter-body-scheme-detail-and {
|
|
336
|
-
font-size: 14px;
|
|
348
|
+
font-size: var(--kd-g-font-size-middle, 14px);
|
|
337
349
|
}
|
|
338
350
|
.kd-filter .kd-filter-body-scheme-detail-delete {
|
|
339
|
-
color: #b2b2b2;
|
|
340
|
-
font-size: 20px;
|
|
351
|
+
color: var(--kd-g-color-disabled, #b2b2b2);
|
|
352
|
+
font-size: var(--kd-g-font-size-xx-large, 20px);
|
|
341
353
|
cursor: pointer;
|
|
342
354
|
}
|
|
343
355
|
.kd-filter .kd-filter-body-scheme-detail-delete:hover {
|
|
344
|
-
color: #fb2323;
|
|
356
|
+
color: var(--kd-g-color-error, #fb2323);
|
|
345
357
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
|
+
@import './token.less';
|
|
3
4
|
|
|
4
5
|
@filter-prefix-cls: ~'@{kd-prefix}-filter';
|
|
5
6
|
@filter-header-prefix-cls: ~'@{kd-prefix}-filter-header';
|
|
@@ -15,8 +16,8 @@
|
|
|
15
16
|
|
|
16
17
|
&-title {
|
|
17
18
|
white-space: nowrap;
|
|
18
|
-
color: @
|
|
19
|
-
font-size: @
|
|
19
|
+
color: @filter-header-title-color;
|
|
20
|
+
font-size: @filter-header-title-font-size;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
&-condition {
|
|
@@ -27,9 +28,9 @@
|
|
|
27
28
|
|
|
28
29
|
&-label {
|
|
29
30
|
padding-right: 8px;
|
|
30
|
-
font-size: @font-size;
|
|
31
|
+
font-size: @filter-condition-label-font-size;
|
|
31
32
|
white-space: nowrap;
|
|
32
|
-
color: @
|
|
33
|
+
color: @filter-condition-label-color;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
&-item-text {
|
|
@@ -51,8 +52,8 @@
|
|
|
51
52
|
height: 44px;
|
|
52
53
|
line-height: 44px;
|
|
53
54
|
text-align: center;
|
|
54
|
-
color: @
|
|
55
|
-
font-size: @font-size;
|
|
55
|
+
color: @filter-handle-color;
|
|
56
|
+
font-size: @filter-handle-font-size;
|
|
56
57
|
cursor: pointer;
|
|
57
58
|
user-select: none;
|
|
58
59
|
border: 1px solid transparent;
|
|
@@ -64,8 +65,8 @@
|
|
|
64
65
|
|
|
65
66
|
&.spread {
|
|
66
67
|
border-radius: 4px 4px 0 0;
|
|
67
|
-
background-color: @
|
|
68
|
-
border-color: @
|
|
68
|
+
background-color: @filter-handle-spread-bg-color;
|
|
69
|
+
border-color: @filter-handle-spread-border-color;
|
|
69
70
|
|
|
70
71
|
> i {
|
|
71
72
|
transform: rotate(180deg);
|
|
@@ -83,29 +84,29 @@
|
|
|
83
84
|
overflow: visible;
|
|
84
85
|
padding: 8px 20px;
|
|
85
86
|
border-radius: 4px 0 4px 4px;
|
|
86
|
-
background-color: @
|
|
87
|
-
border: 1px solid @
|
|
87
|
+
background-color: @filter-body-bg-color;
|
|
88
|
+
border: 1px solid @filter-body-border-color;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
&-tabs {
|
|
91
|
-
border-bottom: 1px solid @
|
|
92
|
+
border-bottom: 1px solid @filter-body-tabs-border-color;
|
|
92
93
|
|
|
93
94
|
&-item {
|
|
94
95
|
padding: 10px 0;
|
|
95
|
-
font-size: @font-size;
|
|
96
|
-
color: @
|
|
96
|
+
font-size: @filter-body-tabs-item-font-size;
|
|
97
|
+
color: @filter-body-tabs-item-color;
|
|
97
98
|
cursor: pointer;
|
|
98
99
|
|
|
99
100
|
&:hover,
|
|
100
101
|
&.active {
|
|
101
|
-
color: @
|
|
102
|
+
color: @filter-body-tabs-item-active-color;
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
&-split {
|
|
106
107
|
width: 1px;
|
|
107
108
|
height: 16px;
|
|
108
|
-
background-color: @
|
|
109
|
+
background-color: @color-border-strong;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
|
|
@@ -119,15 +120,15 @@
|
|
|
119
120
|
|
|
120
121
|
&-condition {
|
|
121
122
|
display: flex;
|
|
122
|
-
font-size: @
|
|
123
|
+
font-size: @font-size-small;
|
|
123
124
|
|
|
124
125
|
&:not(:last-child) {
|
|
125
|
-
border-bottom: 1px solid @
|
|
126
|
+
border-bottom: 1px solid @color-border-weak;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
&-label {
|
|
129
130
|
padding: 11px 0 10px;
|
|
130
|
-
color: @
|
|
131
|
+
color: @color-text-third;
|
|
131
132
|
line-height: 18px;
|
|
132
133
|
}
|
|
133
134
|
|
|
@@ -145,11 +146,11 @@
|
|
|
145
146
|
&-option {
|
|
146
147
|
margin-bottom: 4px;
|
|
147
148
|
padding: 0 12px;
|
|
148
|
-
color: @
|
|
149
|
+
color: @color-text-secondary;
|
|
149
150
|
vertical-align: middle;
|
|
150
151
|
line-height: 22px;
|
|
151
|
-
font-size: @
|
|
152
|
-
border-radius: @radius-
|
|
152
|
+
font-size: @font-size-small;
|
|
153
|
+
border-radius: @radius-border;
|
|
153
154
|
border: 1px solid transparent;
|
|
154
155
|
cursor: pointer;
|
|
155
156
|
white-space: nowrap;
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
&.active {
|
|
162
163
|
color: @ongoing-color;
|
|
163
164
|
border-color: @ongoing-color;
|
|
164
|
-
background-color: @
|
|
165
|
+
background-color: @color-background;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
&-customer {
|
|
@@ -190,8 +191,8 @@
|
|
|
190
191
|
|
|
191
192
|
&-label {
|
|
192
193
|
width: 96px;
|
|
193
|
-
color: @
|
|
194
|
-
font-size: @
|
|
194
|
+
color: @color-text-third;
|
|
195
|
+
font-size: @font-size-small;
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
&-list {
|
|
@@ -199,8 +200,8 @@
|
|
|
199
200
|
}
|
|
200
201
|
|
|
201
202
|
&-item {
|
|
202
|
-
font-size: @
|
|
203
|
-
color: @
|
|
203
|
+
font-size: @font-size-small;
|
|
204
|
+
color: @color-text-secondary;
|
|
204
205
|
cursor: pointer;
|
|
205
206
|
|
|
206
207
|
&:not(:last-child) {
|
|
@@ -218,10 +219,11 @@
|
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
&-detail {
|
|
222
|
+
list-style: none;
|
|
221
223
|
> li {
|
|
222
224
|
line-height: 40px;
|
|
223
|
-
color: @
|
|
224
|
-
font-size: @
|
|
225
|
+
color: @color-text-primary;
|
|
226
|
+
font-size: @font-size-small;
|
|
225
227
|
|
|
226
228
|
> span {
|
|
227
229
|
display: inline-block;
|
|
@@ -245,16 +247,16 @@
|
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
&-and {
|
|
248
|
-
font-size: @font-size;
|
|
250
|
+
font-size: @font-size-middle;
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
&-delete {
|
|
252
|
-
color: @disabled
|
|
253
|
-
font-size: @
|
|
254
|
+
color: @color-disabled;
|
|
255
|
+
font-size: @font-size-xx-large;
|
|
254
256
|
cursor: pointer;
|
|
255
257
|
|
|
256
258
|
&:hover {
|
|
257
|
-
color: @error
|
|
259
|
+
color: @color-error;
|
|
258
260
|
}
|
|
259
261
|
}
|
|
260
262
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@filter-custom-prefix: ~'--@{kd-prefix}-c-filter';
|
|
4
|
+
|
|
5
|
+
// color
|
|
6
|
+
@filter-header-title-color: var(~'@{filter-custom-prefix}-header-title-color-text', @color-text-primary);
|
|
7
|
+
|
|
8
|
+
@filter-condition-label-color: var(~'@{filter-custom-prefix}-condition-label-color-text', @color-text-third);
|
|
9
|
+
|
|
10
|
+
@filter-handle-color: var(~'@{filter-custom-prefix}-handle-color-text', @color-ongoing);
|
|
11
|
+
|
|
12
|
+
@filter-handle-spread-bg-color: var(~'@{filter-custom-prefix}-handle-color-background-spread', @color-background-contain);
|
|
13
|
+
@filter-handle-spread-border-color: var(~'@{filter-custom-prefix}-handle-color-border-spread', @color-border-strong);
|
|
14
|
+
|
|
15
|
+
@filter-body-bg-color: var(~'@{filter-custom-prefix}-body-color-background', @color-background-contain);
|
|
16
|
+
@filter-body-border-color: var(~'@{filter-custom-prefix}-body-color-border', @color-border-strong);
|
|
17
|
+
|
|
18
|
+
@filter-body-tabs-border-color: var(~'@{filter-custom-prefix}-body-tabs-color-border', @color-border-weak);
|
|
19
|
+
|
|
20
|
+
@filter-body-tabs-item-color: var(~'@{filter-custom-prefix}-body-tabs-item-color-text', @color-text-third);
|
|
21
|
+
|
|
22
|
+
@filter-body-tabs-item-active-color: var(~'@{filter-custom-prefix}-body-tabs-item-color-text-active', @color-ongoing);
|
|
23
|
+
|
|
24
|
+
// font
|
|
25
|
+
@filter-header-title-font-size: var(~'@{filter-custom-prefix}-header-title-font-size', @font-size-large);
|
|
26
|
+
@filter-condition-label-font-size: var(~'@{filter-custom-prefix}-condition-label-font-size', @font-size-middle);
|
|
27
|
+
@filter-handle-font-size: var(~'@{filter-custom-prefix}-handle-font-size', @font-size-middle);
|
|
28
|
+
@filter-body-tabs-item-font-size: var(~'@{filter-custom-prefix}-body-tabs-item-font-size', @font-size-middle);
|
package/es/form/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
|
/* 多行显示省略号 */
|
|
96
105
|
/* 单行显示省略号 */
|
|
97
106
|
/** 浮层箭头样式 **/
|
|
@@ -120,7 +129,7 @@
|
|
|
120
129
|
-webkit-box-align: center;
|
|
121
130
|
-ms-flex-align: center;
|
|
122
131
|
align-items: center;
|
|
123
|
-
margin: 0 30px 22px 0;
|
|
132
|
+
margin: 0 var(--kd-c-form-field-spacing-margin-right, 30px) var(--kd-c-form-field-spacing-margin-bottom, 22px) 0;
|
|
124
133
|
}
|
|
125
134
|
.kd-form-field-vertical {
|
|
126
135
|
-webkit-box-align: start;
|
|
@@ -138,9 +147,9 @@
|
|
|
138
147
|
display: none !important;
|
|
139
148
|
}
|
|
140
149
|
.kd-form-field-label {
|
|
141
|
-
font-size: 12px;
|
|
142
|
-
line-height: 18px;
|
|
143
|
-
color: #666;
|
|
150
|
+
font-size: var(--kd-c-form-field-label-font-size, 12px);
|
|
151
|
+
line-height: var(--kd-c-form-field-label-line-height, 18px);
|
|
152
|
+
color: var(--kd-c-form-field-color, var(--kd-g-color-text-secondary, #666));
|
|
144
153
|
text-align: left;
|
|
145
154
|
margin-right: 30px;
|
|
146
155
|
}
|
|
@@ -158,7 +167,7 @@
|
|
|
158
167
|
width: 5px;
|
|
159
168
|
height: 5px;
|
|
160
169
|
line-height: 1;
|
|
161
|
-
color: #fb2323;
|
|
170
|
+
color: var(--kd-c-form-error-color, var(--kd-g-color-error, #fb2323));
|
|
162
171
|
}
|
|
163
172
|
.kd-form-field-wrapper {
|
|
164
173
|
position: relative;
|
|
@@ -167,11 +176,11 @@
|
|
|
167
176
|
position: absolute;
|
|
168
177
|
left: 0;
|
|
169
178
|
right: 0;
|
|
170
|
-
padding: 2px 8px;
|
|
171
|
-
font-size: 12px;
|
|
172
|
-
line-height: 18px;
|
|
173
|
-
color: #fb2323;
|
|
174
|
-
background-color: #fff2f4;
|
|
179
|
+
padding: var(--kd-c-form-field-message-spacing-padding-horizontal, 2px) var(--kd-c-form-field-message-spacing-padding-vertical, 8px);
|
|
180
|
+
font-size: var(--kd-c-form-field-message-font-size, 12px);
|
|
181
|
+
line-height: var(--kd-c-form-field-message-line-height, 18px);
|
|
182
|
+
color: var(--kd-c-form-error-color, var(--kd-g-color-error, #fb2323));
|
|
183
|
+
background-color: var(--kd-c-form-error-color-background, var(--kd-g-color-background-error, #fff2f4));
|
|
175
184
|
word-break: break-word;
|
|
176
185
|
overflow: hidden;
|
|
177
186
|
white-space: nowrap;
|
package/es/form/style/index.less
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import '../../style/mixins/index';
|
|
3
3
|
|
|
4
|
+
@import './token.less';
|
|
5
|
+
|
|
4
6
|
@form-prefix-cls: ~'@{kd-prefix}-form';
|
|
5
7
|
@field-prefix-cls: ~'@{form-prefix-cls}-field';
|
|
6
8
|
@field-label-cls: ~'@{field-prefix-cls}-label';
|
|
@@ -24,7 +26,8 @@
|
|
|
24
26
|
|
|
25
27
|
.@{field-prefix-cls} {
|
|
26
28
|
align-items: center;
|
|
27
|
-
margin: @form-field-margin;
|
|
29
|
+
margin: 0 @form-field-spacing-margin-right @form-field-spacing-margin-bottom 0 ;
|
|
30
|
+
|
|
28
31
|
&-vertical {
|
|
29
32
|
align-items: flex-start;
|
|
30
33
|
flex-direction: column;
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
.@{field-label-cls} {
|
|
43
46
|
font-size: @form-field-label-font-size;
|
|
44
47
|
line-height: @form-field-label-line-height;
|
|
45
|
-
color: @
|
|
48
|
+
color: @form-field-color;
|
|
46
49
|
text-align: left;
|
|
47
50
|
margin-right: 30px;
|
|
48
51
|
&-right {
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
width: 5px;
|
|
62
65
|
height: 5px;
|
|
63
66
|
line-height: 1;
|
|
64
|
-
color: @error-color;
|
|
67
|
+
color: @form-error-color;
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
@@ -71,11 +74,11 @@
|
|
|
71
74
|
position: absolute;
|
|
72
75
|
left: 0;
|
|
73
76
|
right: 0;
|
|
74
|
-
padding: @form-field-message-padding;
|
|
77
|
+
padding: @form-field-message-spacing-padding-horizontal @form-field-message-spacing-padding-vertical;
|
|
75
78
|
font-size: @form-field-message-font-size;
|
|
76
79
|
line-height: @form-field-message-line-height;
|
|
77
|
-
color: @error-color;
|
|
78
|
-
background-color: @error-
|
|
80
|
+
color: @form-error-color;
|
|
81
|
+
background-color: @form-error-color-background;
|
|
79
82
|
word-break: break-word;
|
|
80
83
|
overflow: hidden;
|
|
81
84
|
white-space: nowrap;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import "../../style/themes/token.less";
|
|
2
|
+
|
|
3
|
+
@form-prefix: '--@{kd-prefix}-c-form';
|
|
4
|
+
|
|
5
|
+
// shadow
|
|
6
|
+
// color
|
|
7
|
+
@form-field-color: var(~'@{form-prefix}-field-color', @color-text-secondary);
|
|
8
|
+
@form-error-color: var(~'@{form-prefix}-error-color', @color-error);
|
|
9
|
+
@form-error-color-background: var(~'@{form-prefix}-error-color-background', @color-background-error);
|
|
10
|
+
|
|
11
|
+
// sizing
|
|
12
|
+
// spacing
|
|
13
|
+
@form-field-spacing-margin-right: var(~'@{form-prefix}-field-spacing-margin-right', 30px);
|
|
14
|
+
@form-field-spacing-margin-bottom: var(~'@{form-prefix}-field-spacing-margin-bottom', 22px);
|
|
15
|
+
@form-field-message-spacing-padding-horizontal: var(~'@{form-prefix}-field-message-spacing-padding-horizontal', 2px);
|
|
16
|
+
@form-field-message-spacing-padding-vertical: var(~'@{form-prefix}-field-message-spacing-padding-vertical', 8px);
|
|
17
|
+
|
|
18
|
+
// motion
|
|
19
|
+
// font
|
|
20
|
+
@form-field-label-font-size: var(~'@{form-prefix}-field-label-font-size',12px);
|
|
21
|
+
@form-field-message-font-size: var(~'@{form-prefix}-field-message-font-size', 12px);
|
|
22
|
+
|
|
23
|
+
// radius
|
|
24
|
+
// line-height
|
|
25
|
+
@form-field-label-line-height: var(~'@{form-prefix}-field-label-line-height', 18px);
|
|
26
|
+
@form-field-message-line-height: var(~'@{form-prefix}-field-message-line-height', 18px);
|
|
27
|
+
// z-index
|
package/es/grid/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
|
/* 多行显示省略号 */
|
|
96
105
|
/* 单行显示省略号 */
|
|
97
106
|
/** 浮层箭头样式 **/
|