@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
|
/** 浮层箭头样式 **/
|
|
@@ -101,7 +110,7 @@
|
|
|
101
110
|
-webkit-box-sizing: border-box;
|
|
102
111
|
box-sizing: border-box;
|
|
103
112
|
overflow: hidden;
|
|
104
|
-
border-radius: 2px;
|
|
113
|
+
border-radius: var(--kd-c-image-radius-border, var(--kd-g-radius-border, 2px));
|
|
105
114
|
}
|
|
106
115
|
.kd-image:not(.error):hover .kd-image-action {
|
|
107
116
|
opacity: 1;
|
|
@@ -122,27 +131,27 @@
|
|
|
122
131
|
.kd-image-action {
|
|
123
132
|
position: absolute;
|
|
124
133
|
bottom: 0;
|
|
125
|
-
height: 28px;
|
|
126
|
-
width: 100
|
|
134
|
+
height: var(--kd-c-image-action-sizing-height, 28px);
|
|
135
|
+
width: var(--kd-c-image-action-sizing-width, 100%);
|
|
127
136
|
text-align: center;
|
|
128
137
|
opacity: 0;
|
|
129
138
|
-webkit-transform: translateY(100%);
|
|
130
139
|
transform: translateY(100%);
|
|
131
|
-
-webkit-transition: all 0.2s ease-out;
|
|
132
|
-
transition: all 0.2s ease-out;
|
|
133
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
140
|
+
-webkit-transition: all var(--kd-c-image-action-transition, var(--kd-g-duration-quickly, 0.2s)) ease-out;
|
|
141
|
+
transition: all var(--kd-c-image-action-transition, var(--kd-g-duration-quickly, 0.2s)) ease-out;
|
|
142
|
+
background-color: var(--kd-c-image-action-color-background, rgba(0, 0, 0, 0.5));
|
|
134
143
|
}
|
|
135
144
|
.kd-image-action > * {
|
|
136
|
-
color: #fff;
|
|
145
|
+
color: var(--kd-c-image-icon-color, var(--kd-g-color-white, #fff));
|
|
137
146
|
cursor: pointer;
|
|
138
147
|
display: inline-block;
|
|
139
|
-
font-size: 18px;
|
|
148
|
+
font-size: var(--kd-c-image-font-size-x-large, var(--kd-g-font-size-x-large, 18px));
|
|
140
149
|
}
|
|
141
150
|
.kd-image-action > *:not(:first-child) {
|
|
142
151
|
margin-left: 20px;
|
|
143
152
|
}
|
|
144
153
|
.kd-image-preview {
|
|
145
|
-
z-index: 3000;
|
|
154
|
+
z-index: var(--kd-c-image-z-index-masker, var(--kd-g-z-index-masker, 3000));
|
|
146
155
|
position: fixed;
|
|
147
156
|
top: 0;
|
|
148
157
|
right: 0;
|
|
@@ -152,8 +161,8 @@
|
|
|
152
161
|
-webkit-transform: scale(0.15);
|
|
153
162
|
transform: scale(0.15);
|
|
154
163
|
visibility: hidden;
|
|
155
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 1, 0.6);
|
|
156
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 1, 0.6);
|
|
164
|
+
-webkit-transition: all calc(var(--kd-c-image-transition-duration, 0.3s) - 0.1s) var(--kd-c-image-motion-ease-out, var(--kd-g-ease-in, cubic-bezier(0.4, 0, 1, 0.6)));
|
|
165
|
+
transition: all calc(var(--kd-c-image-transition-duration, 0.3s) - 0.1s) var(--kd-c-image-motion-ease-out, var(--kd-g-ease-in, cubic-bezier(0.4, 0, 1, 0.6)));
|
|
157
166
|
-webkit-overflow-scrolling: touch;
|
|
158
167
|
}
|
|
159
168
|
.kd-image-preview.show {
|
|
@@ -161,8 +170,8 @@
|
|
|
161
170
|
-webkit-transform: scale(1);
|
|
162
171
|
transform: scale(1);
|
|
163
172
|
visibility: visible;
|
|
164
|
-
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
165
|
-
transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
173
|
+
-webkit-transition: all calc(var(--kd-c-image-transition-duration, 0.3s) - 0.1s) var(--kd-c-image-motion-ease-out, var(--kd-g-ease-out, cubic-bezier(0, 0.4, 0.4, 1)));
|
|
174
|
+
transition: all calc(var(--kd-c-image-transition-duration, 0.3s) - 0.1s) var(--kd-c-image-motion-ease-out, var(--kd-g-ease-out, cubic-bezier(0, 0.4, 0.4, 1)));
|
|
166
175
|
}
|
|
167
176
|
.kd-image-preview-mask {
|
|
168
177
|
position: fixed;
|
|
@@ -177,12 +186,12 @@
|
|
|
177
186
|
position: absolute;
|
|
178
187
|
top: 18px;
|
|
179
188
|
right: 18px;
|
|
180
|
-
width:
|
|
181
|
-
height:
|
|
182
|
-
font-size:
|
|
183
|
-
color: #
|
|
189
|
+
width: calc(var(--kd-c-image-preview-font-size, 28px) - 10px);
|
|
190
|
+
height: calc(var(--kd-c-image-preview-font-size, 28px) - 10px);
|
|
191
|
+
font-size: var(--kd-c-image-preview-font-size, 28px);
|
|
192
|
+
color: var(--kd-c-image-close-color-background, #666666);
|
|
184
193
|
cursor: pointer;
|
|
185
|
-
background-color: #fff;
|
|
194
|
+
background-color: var(--kd-c-image-icon-color, var(--kd-g-color-white, #fff));
|
|
186
195
|
display: -webkit-box;
|
|
187
196
|
display: -ms-flexbox;
|
|
188
197
|
display: flex;
|
|
@@ -228,7 +237,7 @@
|
|
|
228
237
|
position: absolute;
|
|
229
238
|
left: 50%;
|
|
230
239
|
bottom: 40px;
|
|
231
|
-
width:
|
|
240
|
+
width: 240px;
|
|
232
241
|
height: 40px;
|
|
233
242
|
display: -webkit-box;
|
|
234
243
|
display: -ms-flexbox;
|
|
@@ -245,8 +254,8 @@
|
|
|
245
254
|
transform: translateX(-50%);
|
|
246
255
|
}
|
|
247
256
|
.kd-image-preview-action i {
|
|
248
|
-
color: #fff;
|
|
249
|
-
font-size:
|
|
257
|
+
color: var(--kd-c-image-icon-color, var(--kd-g-color-white, #fff));
|
|
258
|
+
font-size: var(--kd-c-image-icon-font-size, 27px);
|
|
250
259
|
cursor: pointer;
|
|
251
260
|
}
|
|
252
261
|
.kd-image-preview-action i:hover,
|
|
@@ -276,7 +285,7 @@
|
|
|
276
285
|
-ms-flex-pack: center;
|
|
277
286
|
justify-content: center;
|
|
278
287
|
border-radius: 50%;
|
|
279
|
-
color: #fff;
|
|
288
|
+
color: var(--kd-c-image-icon-color, var(--kd-g-color-white, #fff));
|
|
280
289
|
background-color: rgba(0, 0, 0, 0.6);
|
|
281
290
|
-webkit-transform: translateY(-50%);
|
|
282
291
|
transform: translateY(-50%);
|
|
@@ -293,7 +302,7 @@
|
|
|
293
302
|
top: 0;
|
|
294
303
|
width: 100%;
|
|
295
304
|
height: 40px;
|
|
296
|
-
color: #fff;
|
|
305
|
+
color: var(--kd-c-image-icon-color, var(--kd-g-color-white, #fff));
|
|
297
306
|
line-height: 40px;
|
|
298
307
|
background-color: rgba(0, 0, 0, 0.9);
|
|
299
308
|
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.15);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
|
+
@import './token.less';
|
|
2
3
|
@import '../../style/mixins/index';
|
|
3
4
|
|
|
4
5
|
@image-prefix-cls: ~'@{kd-prefix}-image';
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
display: inline-block;
|
|
10
11
|
box-sizing: border-box;
|
|
11
12
|
overflow: hidden;
|
|
12
|
-
border-radius: @radius
|
|
13
|
+
border-radius: @image-border-radius;
|
|
13
14
|
|
|
14
15
|
&:not(.error):hover {
|
|
15
16
|
.@{image-prefix-cls}-action {
|
|
@@ -35,19 +36,19 @@
|
|
|
35
36
|
&-action {
|
|
36
37
|
position: absolute;
|
|
37
38
|
bottom: 0;
|
|
38
|
-
height:
|
|
39
|
-
width:
|
|
39
|
+
height: @image-action-height;
|
|
40
|
+
width: @image-action-width;
|
|
40
41
|
text-align: center;
|
|
41
42
|
opacity: 0;
|
|
42
43
|
transform: translateY(100%);
|
|
43
|
-
transition: all
|
|
44
|
-
background-color:
|
|
44
|
+
transition: all @image-action-transition ease-out;
|
|
45
|
+
background-color: @image-action-background-color;
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
color: @
|
|
47
|
+
>* {
|
|
48
|
+
color: @image-icon-color;
|
|
48
49
|
cursor: pointer;
|
|
49
50
|
display: inline-block;
|
|
50
|
-
font-size: @
|
|
51
|
+
font-size: @image-font-size-x-large;
|
|
51
52
|
|
|
52
53
|
&:not(:first-child) {
|
|
53
54
|
margin-left: 20px;
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
.@{image-preview-prefix-cls} {
|
|
60
|
-
z-index: @
|
|
61
|
+
z-index: @image-z-index-masker;
|
|
61
62
|
position: fixed;
|
|
62
63
|
top: 0;
|
|
63
64
|
right: 0;
|
|
@@ -66,14 +67,14 @@
|
|
|
66
67
|
opacity: 0;
|
|
67
68
|
transform: scale(0.15);
|
|
68
69
|
visibility: hidden;
|
|
69
|
-
transition: all calc(@transition-duration - 0.1s) @ease-in;
|
|
70
|
+
transition: all calc(@image-transition-duration - 0.1s) @image-motion-ease-in;
|
|
70
71
|
-webkit-overflow-scrolling: touch;
|
|
71
72
|
|
|
72
73
|
&.show {
|
|
73
74
|
opacity: 1;
|
|
74
75
|
transform: scale(1);
|
|
75
76
|
visibility: visible;
|
|
76
|
-
transition: all calc(@transition-duration - 0.1s) @ease-out;
|
|
77
|
+
transition: all calc(@image-transition-duration - 0.1s) @image-motion-ease-out;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
&-mask {
|
|
@@ -90,12 +91,12 @@
|
|
|
90
91
|
position: absolute;
|
|
91
92
|
top: 18px;
|
|
92
93
|
right: 18px;
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
95
|
-
font-size:
|
|
96
|
-
color: @
|
|
94
|
+
width: calc(@image-preview-close-font-size - 10px);
|
|
95
|
+
height: calc(@image-preview-close-font-size - 10px);
|
|
96
|
+
font-size: @image-preview-close-font-size;
|
|
97
|
+
color: @image-close-color-background;
|
|
97
98
|
cursor: pointer;
|
|
98
|
-
background-color: @
|
|
99
|
+
background-color: @image-icon-color;
|
|
99
100
|
display: flex;
|
|
100
101
|
align-items: center;
|
|
101
102
|
justify-content: center;
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
position: absolute;
|
|
130
131
|
left: 50%;
|
|
131
132
|
bottom: 40px;
|
|
132
|
-
width:
|
|
133
|
+
width: 240px;
|
|
133
134
|
height: 40px;
|
|
134
135
|
display: flex;
|
|
135
136
|
align-items: center;
|
|
@@ -139,8 +140,8 @@
|
|
|
139
140
|
transform: translateX(-50%);
|
|
140
141
|
|
|
141
142
|
i {
|
|
142
|
-
color: @
|
|
143
|
-
font-size:
|
|
143
|
+
color: @image-icon-color;
|
|
144
|
+
font-size: @image-icon-font-size;
|
|
144
145
|
cursor: pointer;
|
|
145
146
|
|
|
146
147
|
&:hover,
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
align-items: center;
|
|
170
171
|
justify-content: center;
|
|
171
172
|
border-radius: 50%;
|
|
172
|
-
color: @
|
|
173
|
+
color: @image-icon-color;
|
|
173
174
|
background-color: rgba(0, 0, 0, 0.6);
|
|
174
175
|
transform: translateY(-50%);
|
|
175
176
|
cursor: pointer;
|
|
@@ -188,7 +189,7 @@
|
|
|
188
189
|
top: 0;
|
|
189
190
|
width: 100%;
|
|
190
191
|
height: 40px;
|
|
191
|
-
color: @
|
|
192
|
+
color: @image-icon-color;
|
|
192
193
|
line-height: 40px;
|
|
193
194
|
background-color: rgba(0, 0, 0, 0.9);
|
|
194
195
|
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.15);
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
position: absolute;
|
|
208
209
|
right: 40px;
|
|
209
210
|
|
|
210
|
-
|
|
211
|
+
>* {
|
|
211
212
|
display: inline-block;
|
|
212
213
|
margin-left: 20px;
|
|
213
214
|
cursor: pointer;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
|
+
|
|
3
|
+
@image-prefix: '--@{kd-prefix}-c-image';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@image-transition-duration: var(~'@{image-prefix}-transition-duration',@transition-duration);
|
|
12
|
+
|
|
13
|
+
@image-motion-ease-out: var(~'@{image-prefix}-motion-ease-out',@motion-ease-out);
|
|
14
|
+
@image-motion-ease-in: var(~'@{image-prefix}-motion-ease-out',@motion-ease-in);
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@image-z-index-masker: var(~'@{image-prefix}-z-index-masker',@z-index-masker);
|
|
19
|
+
|
|
20
|
+
@image-border-radius: var(~'@{image-prefix}-radius-border',@radius-border);
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@image-action-transition: var(~'@{image-prefix}-action-transition',@duration-quickly);
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
// color
|
|
29
|
+
@image-icon-color: var(~'@{image-prefix}-icon-color',@color-white);//图片预览 图标颜色
|
|
30
|
+
@image-close-color-background: var(~'@{image-prefix}-close-color-background',#666666);//删除图标 背景色
|
|
31
|
+
@image-action-background-color: var(~'@{image-prefix}-action-color-background',rgba(0, 0, 0, 0.5));
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// font
|
|
35
|
+
@image-icon-font-size: var(~'@{image-prefix}-icon-font-size',27px);//图片预览 图标大小
|
|
36
|
+
@image-preview-close-font-size: var(~'@{image-prefix}-preview-font-size',28px);
|
|
37
|
+
@image-font-size-x-large: var(~'@{image-prefix}-font-size-x-large',@font-size-x-large);
|
|
38
|
+
|
|
39
|
+
// sizing
|
|
40
|
+
@image-action-width: var(~'@{image-prefix}-action-sizing-width',100%);
|
|
41
|
+
@image-preview-close-width: var(~'@{image-prefix}-preview-sizing-width',18px);
|
|
42
|
+
@image-preview-close-height: var(~'@{image-prefix}-preview-sizing-height',18px);
|
|
43
|
+
@image-action-height: var(~'@{image-prefix}-action-sizing-height',28px);
|
|
44
|
+
|
|
45
|
+
|
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
/* ----------- Avatar ——————---- end */
|
|
93
93
|
/* ----------- AdvancedSelector ——————---- start */
|
|
94
94
|
/* ----------- AdvancedSelector ——————---- end */
|
|
95
|
+
/* ----------- motion ——————---- start */
|
|
96
|
+
/* ----------- motion ——————---- end */
|
|
97
|
+
/* ----------- transition ——————---- start */
|
|
98
|
+
/* ----------- transition ——————---- end */
|
|
99
|
+
/* ----------- zIndex ——————---- start */
|
|
100
|
+
/*
|
|
101
|
+
普通组件内部自身层级应设置在0-100间
|
|
102
|
+
*/
|
|
103
|
+
/* ----------- zIndex ——————---- end */
|
|
95
104
|
/* 多行显示省略号 */
|
|
96
105
|
/* 单行显示省略号 */
|
|
97
106
|
/** 浮层箭头样式 **/
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -167,6 +167,12 @@ Object.defineProperty(exports, "Layout", {
|
|
|
167
167
|
return _layout.default;
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
|
+
Object.defineProperty(exports, "Link", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function get() {
|
|
173
|
+
return _link.default;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
170
176
|
Object.defineProperty(exports, "Menu", {
|
|
171
177
|
enumerable: true,
|
|
172
178
|
get: function get() {
|
|
@@ -468,6 +474,8 @@ var _stepper = _interopRequireDefault(require("./stepper"));
|
|
|
468
474
|
|
|
469
475
|
var _baseData = _interopRequireDefault(require("./base-data"));
|
|
470
476
|
|
|
477
|
+
var _link = _interopRequireDefault(require("./link"));
|
|
478
|
+
|
|
471
479
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
472
480
|
|
|
473
481
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|