@julingbase/jly-arco-design 0.0.2 → 0.0.3
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/README.md +2 -8
- package/dist/arco-vue-icon.js.map +1 -1
- package/dist/arco-vue-icon.min.js.map +1 -1
- package/dist/arco-vue.js +30 -6
- package/dist/arco-vue.js.map +1 -1
- package/dist/arco-vue.min.js +471 -468
- package/dist/arco-vue.min.js.map +1 -1
- package/es/_components/auto-tooltip/style/index.less +10 -10
- package/es/_components/input-label/style/index.less +7 -7
- package/es/_components/input-label/style/input-label.less +70 -70
- package/es/_components/picker/style/index.less +191 -191
- package/es/_components/picker/style/token.less +58 -58
- package/es/_components/select-view/style/index.less +58 -58
- package/es/_components/select-view/style/token.less +4 -4
- package/es/affix/style/index.less +8 -8
- package/es/alert/style/index.less +198 -198
- package/es/alert/style/token.less +76 -76
- package/es/anchor/style/index.less +99 -99
- package/es/anchor/style/token.less +30 -30
- package/es/auto-complete/style/index.less +44 -44
- package/es/auto-complete/style/token.less +29 -29
- package/es/avatar/style/index.less +155 -155
- package/es/avatar/style/token.less +29 -29
- package/es/back-top/style/index.less +33 -33
- package/es/back-top/style/token.less +12 -12
- package/es/badge/style/index.less +178 -178
- package/es/badge/style/token.less +30 -30
- package/es/breadcrumb/style/index.less +76 -76
- package/es/breadcrumb/style/token.less +24 -24
- package/es/button/style/index.less +304 -304
- package/es/button/style/token.less +459 -459
- package/es/calendar/style/index.less +479 -479
- package/es/calendar/style/token.less +62 -62
- package/es/card/style/index.less +219 -219
- package/es/card/style/token.less +40 -40
- package/es/carousel/style/index.less +405 -405
- package/es/carousel/style/slide.less +175 -175
- package/es/carousel/style/token.less +33 -33
- package/es/cascader/style/index.less +234 -234
- package/es/cascader/style/token.less +24 -24
- package/es/checkbox/style/index.less +182 -182
- package/es/checkbox/style/token.less +37 -37
- package/es/collapse/style/index.less +180 -180
- package/es/collapse/style/token.less +34 -34
- package/es/color-picker/style/index.less +309 -309
- package/es/color-picker/style/token.less +70 -70
- package/es/comment/style/index.less +66 -66
- package/es/comment/style/token.less +17 -17
- package/es/date-picker/index.d.ts +1 -1
- package/es/date-picker/picker.d.ts +1 -1
- package/es/date-picker/range-picker.d.ts +1 -1
- package/es/date-picker/style/date.less +128 -128
- package/es/date-picker/style/index.less +309 -309
- package/es/date-picker/style/month.less +26 -26
- package/es/date-picker/style/quarter.less +8 -8
- package/es/date-picker/style/range.less +9 -9
- package/es/date-picker/style/shortcuts.less +25 -25
- package/es/date-picker/style/token.less +76 -76
- package/es/date-picker/style/week.less +68 -68
- package/es/date-picker/style/year.less +8 -8
- package/es/descriptions/descriptions.d.ts +1 -1
- package/es/descriptions/index.d.ts +3 -3
- package/es/descriptions/style/index.less +159 -159
- package/es/descriptions/style/token.less +45 -45
- package/es/divider/style/index.less +56 -56
- package/es/divider/style/token.less +15 -15
- package/es/drawer/style/index.less +230 -230
- package/es/drawer/style/token.less +16 -16
- package/es/dropdown/context.d.ts +2 -1
- package/es/dropdown/dropdown-button.d.ts +12 -3
- package/es/dropdown/dropdown-panel.js +18 -4
- package/es/dropdown/dropdown.d.ts +12 -3
- package/es/dropdown/dropdown.js +12 -2
- package/es/dropdown/index.d.ts +33 -9
- package/es/dropdown/style/index.less +106 -106
- package/es/dropdown/style/token.less +40 -40
- package/es/empty/style/index.less +26 -26
- package/es/empty/style/token.less +10 -10
- package/es/form/style/index.less +257 -257
- package/es/form/style/status.less +152 -152
- package/es/form/style/token.less +81 -81
- package/es/grid/style/col.less +95 -95
- package/es/grid/style/grid.less +5 -5
- package/es/grid/style/index.less +3 -3
- package/es/grid/style/row.less +44 -44
- package/es/image/style/image.less +158 -158
- package/es/image/style/index.less +5 -5
- package/es/image/style/preview.less +227 -227
- package/es/image/style/token.less +123 -123
- package/es/image/style/trigger.less +14 -14
- package/es/input/index.d.ts +4 -4
- package/es/input/input-password.d.ts +1 -1
- package/es/input/input.d.ts +1 -1
- package/es/input/style/group.less +63 -63
- package/es/input/style/index.less +121 -121
- package/es/input/style/input.less +185 -185
- package/es/input/style/password.less +11 -11
- package/es/input/style/search.less +18 -18
- package/es/input/style/size.less +149 -149
- package/es/input/style/textarea.less +37 -37
- package/es/input/style/token.less +131 -131
- package/es/input-number/style/index.less +160 -160
- package/es/input-number/style/token.less +19 -19
- package/es/input-tag/style/index.less +40 -40
- package/es/input-tag/style/input-tag.less +129 -129
- package/es/input-tag/style/token.less +83 -83
- package/es/layout/style/index.less +104 -104
- package/es/layout/style/token.less +13 -13
- package/es/link/style/index.less +120 -120
- package/es/link/style/token.less +48 -48
- package/es/list/style/index.less +183 -183
- package/es/list/style/token.less +55 -55
- package/es/mention/index.d.ts +3 -3
- package/es/mention/mention.d.ts +1 -1
- package/es/mention/style/index.less +21 -21
- package/es/mention/style/token.less +6 -6
- package/es/menu/style/index.less +622 -622
- package/es/menu/style/token.less +117 -117
- package/es/message/style/index.less +191 -191
- package/es/message/style/token.less +52 -52
- package/es/modal/style/index.less +283 -283
- package/es/modal/style/token.less +30 -30
- package/es/notification/style/index.less +249 -249
- package/es/notification/style/token.less +58 -58
- package/es/overflow-list/style/index.less +19 -19
- package/es/page-header/style/index.less +127 -127
- package/es/page-header/style/token.less +30 -30
- package/es/pagination/style/index.less +300 -300
- package/es/pagination/style/token.less +91 -91
- package/es/popconfirm/style/index.less +70 -70
- package/es/popconfirm/style/token.less +20 -20
- package/es/popover/style/index.less +38 -38
- package/es/popover/style/token.less +15 -15
- package/es/progress/style/index.less +378 -378
- package/es/progress/style/token.less +60 -60
- package/es/radio/index.d.ts +4 -4
- package/es/radio/radio-group.d.ts +1 -1
- package/es/radio/radio.d.ts +1 -1
- package/es/radio/style/index.less +266 -266
- package/es/radio/style/token.less +55 -55
- package/es/rate/style/index.less +87 -87
- package/es/rate/style/token.less +13 -13
- package/es/resize-box/style/index.less +60 -60
- package/es/resize-box/style/token.less +6 -6
- package/es/result/style/index.less +94 -94
- package/es/result/style/token.less +32 -32
- package/es/scrollbar/style/index.less +137 -137
- package/es/scrollbar/style/token.less +12 -12
- package/es/select/style/index.less +132 -132
- package/es/select/style/token.less +43 -43
- package/es/skeleton/style/index.less +66 -66
- package/es/skeleton/style/token.less +15 -15
- package/es/slider/style/index.less +282 -282
- package/es/slider/style/token.less +50 -50
- package/es/space/style/index.less +50 -50
- package/es/spin/style/dot-loading.less +64 -64
- package/es/spin/style/index.less +56 -56
- package/es/spin/style/token.less +17 -17
- package/es/split/style/index.less +53 -53
- package/es/split/style/token.less +7 -7
- package/es/statistic/style/index.less +47 -47
- package/es/statistic/style/token.less +15 -15
- package/es/steps/style/arrow.less +212 -212
- package/es/steps/style/circle.less +265 -265
- package/es/steps/style/dot.less +210 -210
- package/es/steps/style/index.less +74 -74
- package/es/steps/style/navigation.less +60 -60
- package/es/steps/style/token.less +144 -144
- package/es/style/animation/fade.less +57 -57
- package/es/style/animation/index.less +3 -3
- package/es/style/animation/slide.less +158 -158
- package/es/style/animation/zoom.less +217 -217
- package/es/style/color/colors.less +427 -427
- package/es/style/color/css-variables.less +389 -389
- package/es/style/color/get-rgb-str.js +17 -17
- package/es/style/color/palette-dark.js +10 -10
- package/es/style/color/palette.js +10 -10
- package/es/style/icon.less +86 -86
- package/es/style/index.less +11 -11
- package/es/style/mixins/icon-hover.less +14 -14
- package/es/style/mixins/index.less +13 -13
- package/es/style/normalize.less +353 -353
- package/es/style/theme/component.less +21 -21
- package/es/style/theme/css-variables.less +146 -146
- package/es/style/theme/global.less +416 -416
- package/es/style/theme/index.less +42 -42
- package/es/switch/index.d.ts +3 -3
- package/es/switch/style/index.less +332 -332
- package/es/switch/style/token.less +62 -62
- package/es/switch/switch.d.ts +1 -1
- package/es/table/style/filters-popup.less +51 -51
- package/es/table/style/index.less +868 -868
- package/es/table/style/token.less +134 -134
- package/es/table/table-operation-td.d.ts +4 -4
- package/es/tabs/style/index.less +730 -730
- package/es/tabs/style/rtl.less +104 -104
- package/es/tabs/style/token.less +146 -146
- package/es/tabs/style/vertical.less +156 -156
- package/es/tag/style/index.less +171 -171
- package/es/tag/style/token.less +171 -171
- package/es/textarea/style/index.less +64 -64
- package/es/time-picker/index.d.ts +3 -3
- package/es/time-picker/style/index.less +94 -94
- package/es/time-picker/style/token.less +17 -17
- package/es/time-picker/time-picker.d.ts +1 -1
- package/es/timeline/style/horizontal.less +87 -87
- package/es/timeline/style/index.less +272 -272
- package/es/timeline/style/token.less +25 -25
- package/es/tooltip/style/index.less +24 -24
- package/es/tooltip/style/token.less +14 -14
- package/es/transfer/style/index.less +294 -294
- package/es/transfer/style/token.less +48 -48
- package/es/tree/style/index.less +396 -396
- package/es/tree/style/token.less +51 -51
- package/es/tree-select/style/index.less +49 -49
- package/es/tree-select/style/token.less +7 -7
- package/es/trigger/style/index.less +57 -57
- package/es/trigger/style/token.less +5 -5
- package/es/typography/edit-content.d.ts +12 -12
- package/es/typography/style/index.less +207 -207
- package/es/typography/style/token.less +55 -55
- package/es/upload/style/index.less +515 -515
- package/es/upload/style/token.less +97 -97
- package/es/verification-code/style/index.less +32 -32
- package/es/verification-code/style/token.less +1 -1
- package/json/vetur-attributes.json +1403 -1399
- package/json/vetur-tags.json +573 -572
- package/json/web-types.json +4401 -4393
- package/lib/_components/auto-tooltip/style/index.less +10 -10
- package/lib/_components/input-label/style/index.less +7 -7
- package/lib/_components/input-label/style/input-label.less +70 -70
- package/lib/_components/picker/style/index.less +191 -191
- package/lib/_components/picker/style/token.less +58 -58
- package/lib/_components/select-view/style/index.less +58 -58
- package/lib/_components/select-view/style/token.less +4 -4
- package/lib/affix/style/index.less +8 -8
- package/lib/alert/style/index.less +198 -198
- package/lib/alert/style/token.less +76 -76
- package/lib/anchor/style/index.less +99 -99
- package/lib/anchor/style/token.less +30 -30
- package/lib/auto-complete/style/index.less +44 -44
- package/lib/auto-complete/style/token.less +29 -29
- package/lib/avatar/style/index.less +155 -155
- package/lib/avatar/style/token.less +29 -29
- package/lib/back-top/style/index.less +33 -33
- package/lib/back-top/style/token.less +12 -12
- package/lib/badge/style/index.less +178 -178
- package/lib/badge/style/token.less +30 -30
- package/lib/breadcrumb/style/index.less +76 -76
- package/lib/breadcrumb/style/token.less +24 -24
- package/lib/button/style/index.less +304 -304
- package/lib/button/style/token.less +459 -459
- package/lib/calendar/style/index.less +479 -479
- package/lib/calendar/style/token.less +62 -62
- package/lib/card/style/index.less +219 -219
- package/lib/card/style/token.less +40 -40
- package/lib/carousel/style/index.less +405 -405
- package/lib/carousel/style/slide.less +175 -175
- package/lib/carousel/style/token.less +33 -33
- package/lib/cascader/style/index.less +234 -234
- package/lib/cascader/style/token.less +24 -24
- package/lib/checkbox/style/index.less +182 -182
- package/lib/checkbox/style/token.less +37 -37
- package/lib/collapse/style/index.less +180 -180
- package/lib/collapse/style/token.less +34 -34
- package/lib/color-picker/style/index.less +309 -309
- package/lib/color-picker/style/token.less +70 -70
- package/lib/comment/style/index.less +66 -66
- package/lib/comment/style/token.less +17 -17
- package/lib/date-picker/style/date.less +128 -128
- package/lib/date-picker/style/index.less +309 -309
- package/lib/date-picker/style/month.less +26 -26
- package/lib/date-picker/style/quarter.less +8 -8
- package/lib/date-picker/style/range.less +9 -9
- package/lib/date-picker/style/shortcuts.less +25 -25
- package/lib/date-picker/style/token.less +76 -76
- package/lib/date-picker/style/week.less +68 -68
- package/lib/date-picker/style/year.less +8 -8
- package/lib/descriptions/style/index.less +159 -159
- package/lib/descriptions/style/token.less +45 -45
- package/lib/divider/style/index.less +56 -56
- package/lib/divider/style/token.less +15 -15
- package/lib/drawer/style/index.less +230 -230
- package/lib/drawer/style/token.less +16 -16
- package/lib/dropdown/dropdown-panel.js +18 -4
- package/lib/dropdown/dropdown.js +12 -2
- package/lib/dropdown/style/index.less +106 -106
- package/lib/dropdown/style/token.less +40 -40
- package/lib/empty/style/index.less +26 -26
- package/lib/empty/style/token.less +10 -10
- package/lib/form/style/index.less +257 -257
- package/lib/form/style/status.less +152 -152
- package/lib/form/style/token.less +81 -81
- package/lib/grid/style/col.less +95 -95
- package/lib/grid/style/grid.less +5 -5
- package/lib/grid/style/index.less +3 -3
- package/lib/grid/style/row.less +44 -44
- package/lib/image/style/image.less +158 -158
- package/lib/image/style/index.less +5 -5
- package/lib/image/style/preview.less +227 -227
- package/lib/image/style/token.less +123 -123
- package/lib/image/style/trigger.less +14 -14
- package/lib/input/style/group.less +63 -63
- package/lib/input/style/index.less +121 -121
- package/lib/input/style/input.less +185 -185
- package/lib/input/style/password.less +11 -11
- package/lib/input/style/search.less +18 -18
- package/lib/input/style/size.less +149 -149
- package/lib/input/style/textarea.less +37 -37
- package/lib/input/style/token.less +131 -131
- package/lib/input-number/style/index.less +160 -160
- package/lib/input-number/style/token.less +19 -19
- package/lib/input-tag/style/index.less +40 -40
- package/lib/input-tag/style/input-tag.less +129 -129
- package/lib/input-tag/style/token.less +83 -83
- package/lib/layout/style/index.less +104 -104
- package/lib/layout/style/token.less +13 -13
- package/lib/link/style/index.less +120 -120
- package/lib/link/style/token.less +48 -48
- package/lib/list/style/index.less +183 -183
- package/lib/list/style/token.less +55 -55
- package/lib/mention/style/index.less +21 -21
- package/lib/mention/style/token.less +6 -6
- package/lib/menu/style/index.less +622 -622
- package/lib/menu/style/token.less +117 -117
- package/lib/message/style/index.less +191 -191
- package/lib/message/style/token.less +52 -52
- package/lib/modal/style/index.less +283 -283
- package/lib/modal/style/token.less +30 -30
- package/lib/notification/style/index.less +249 -249
- package/lib/notification/style/token.less +58 -58
- package/lib/overflow-list/style/index.less +19 -19
- package/lib/page-header/style/index.less +127 -127
- package/lib/page-header/style/token.less +30 -30
- package/lib/pagination/style/index.less +300 -300
- package/lib/pagination/style/token.less +91 -91
- package/lib/popconfirm/style/index.less +70 -70
- package/lib/popconfirm/style/token.less +20 -20
- package/lib/popover/style/index.less +38 -38
- package/lib/popover/style/token.less +15 -15
- package/lib/progress/style/index.less +378 -378
- package/lib/progress/style/token.less +60 -60
- package/lib/radio/style/index.less +266 -266
- package/lib/radio/style/token.less +55 -55
- package/lib/rate/style/index.less +87 -87
- package/lib/rate/style/token.less +13 -13
- package/lib/resize-box/style/index.less +60 -60
- package/lib/resize-box/style/token.less +6 -6
- package/lib/result/style/index.less +94 -94
- package/lib/result/style/token.less +32 -32
- package/lib/scrollbar/style/index.less +137 -137
- package/lib/scrollbar/style/token.less +12 -12
- package/lib/select/style/index.less +132 -132
- package/lib/select/style/token.less +43 -43
- package/lib/skeleton/style/index.less +66 -66
- package/lib/skeleton/style/token.less +15 -15
- package/lib/slider/style/index.less +282 -282
- package/lib/slider/style/token.less +50 -50
- package/lib/space/style/index.less +50 -50
- package/lib/spin/style/dot-loading.less +64 -64
- package/lib/spin/style/index.less +56 -56
- package/lib/spin/style/token.less +17 -17
- package/lib/split/style/index.less +53 -53
- package/lib/split/style/token.less +7 -7
- package/lib/statistic/style/index.less +47 -47
- package/lib/statistic/style/token.less +15 -15
- package/lib/steps/style/arrow.less +212 -212
- package/lib/steps/style/circle.less +265 -265
- package/lib/steps/style/dot.less +210 -210
- package/lib/steps/style/index.less +74 -74
- package/lib/steps/style/navigation.less +60 -60
- package/lib/steps/style/token.less +144 -144
- package/lib/style/animation/fade.less +57 -57
- package/lib/style/animation/index.less +3 -3
- package/lib/style/animation/slide.less +158 -158
- package/lib/style/animation/zoom.less +217 -217
- package/lib/style/color/colors.less +427 -427
- package/lib/style/color/css-variables.less +389 -389
- package/lib/style/color/get-rgb-str.js +17 -17
- package/lib/style/color/palette-dark.js +10 -10
- package/lib/style/color/palette.js +10 -10
- package/lib/style/icon.less +86 -86
- package/lib/style/index.less +11 -11
- package/lib/style/mixins/icon-hover.less +14 -14
- package/lib/style/mixins/index.less +13 -13
- package/lib/style/normalize.less +353 -353
- package/lib/style/theme/component.less +21 -21
- package/lib/style/theme/css-variables.less +146 -146
- package/lib/style/theme/global.less +416 -416
- package/lib/style/theme/index.less +42 -42
- package/lib/switch/style/index.less +332 -332
- package/lib/switch/style/token.less +62 -62
- package/lib/table/style/filters-popup.less +51 -51
- package/lib/table/style/index.less +868 -868
- package/lib/table/style/token.less +134 -134
- package/lib/tabs/style/index.less +730 -730
- package/lib/tabs/style/rtl.less +104 -104
- package/lib/tabs/style/token.less +146 -146
- package/lib/tabs/style/vertical.less +156 -156
- package/lib/tag/style/index.less +171 -171
- package/lib/tag/style/token.less +171 -171
- package/lib/textarea/style/index.less +64 -64
- package/lib/time-picker/style/index.less +94 -94
- package/lib/time-picker/style/token.less +17 -17
- package/lib/timeline/style/horizontal.less +87 -87
- package/lib/timeline/style/index.less +272 -272
- package/lib/timeline/style/token.less +25 -25
- package/lib/tooltip/style/index.less +24 -24
- package/lib/tooltip/style/token.less +14 -14
- package/lib/transfer/style/index.less +294 -294
- package/lib/transfer/style/token.less +48 -48
- package/lib/tree/style/index.less +396 -396
- package/lib/tree/style/token.less +51 -51
- package/lib/tree-select/style/index.less +49 -49
- package/lib/tree-select/style/token.less +7 -7
- package/lib/trigger/style/index.less +57 -57
- package/lib/trigger/style/token.less +5 -5
- package/lib/typography/style/index.less +207 -207
- package/lib/typography/style/token.less +55 -55
- package/lib/upload/style/index.less +515 -515
- package/lib/upload/style/token.less +97 -97
- package/lib/verification-code/style/index.less +32 -32
- package/lib/verification-code/style/token.less +1 -1
- package/package.json +2 -2
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
@import '../../style/mixins/index.less';
|
|
2
|
-
@import '../../input/style/token.less';
|
|
3
|
-
@import '../../input/style/input.less';
|
|
4
|
-
@import '../../tag/style/index.less';
|
|
5
|
-
@import './token.less';
|
|
6
|
-
|
|
7
|
-
.input-tag-style(@cls) {
|
|
8
|
-
.input-wrapper-style(@cls);
|
|
9
|
-
|
|
10
|
-
&.@{cls}-has-tag {
|
|
11
|
-
padding-right: @input-tag-padding-horizontal;
|
|
12
|
-
padding-left: @input-tag-padding-horizontal;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&.@{cls}-has-prefix {
|
|
16
|
-
padding-left: @input-padding-horizontal;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.@{cls}-has-suffix {
|
|
20
|
-
padding-right: @input-padding-horizontal;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.@{cls}-inner {
|
|
24
|
-
flex: 1;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
line-height: 0;
|
|
27
|
-
|
|
28
|
-
&.@{cls}-nowrap {
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-wrap: wrap;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.@{cls}-tag {
|
|
34
|
-
display: inline-flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
margin-right: @input-tag-tag-margin-right;
|
|
37
|
-
color: @input-tag-color-text_default;
|
|
38
|
-
font-size: @input-tag-tag-font-size;
|
|
39
|
-
white-space: pre-wrap;
|
|
40
|
-
word-break: break-word;
|
|
41
|
-
background-color: @input-tag-tag-color-bg;
|
|
42
|
-
border-color: @input-tag-tag-color-border;
|
|
43
|
-
|
|
44
|
-
.@{prefix}-icon-hover:hover::before {
|
|
45
|
-
background-color: @input-tag-tag-remove-icon-color-bg;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.@{prefix}-tag-custom-color {
|
|
49
|
-
color: @tag-custom-color-text;
|
|
50
|
-
|
|
51
|
-
.icon-hover-bg(@tag-prefix-cls, @tag-custom-color-icon-bg_hover);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.@{cls}-input {
|
|
56
|
-
.input-style();
|
|
57
|
-
|
|
58
|
-
box-sizing: border-box;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.@{cls}-mirror {
|
|
63
|
-
position: absolute;
|
|
64
|
-
top: 0;
|
|
65
|
-
left: 0;
|
|
66
|
-
white-space: pre;
|
|
67
|
-
visibility: hidden;
|
|
68
|
-
pointer-events: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.@{cls}-focus {
|
|
72
|
-
.@{cls}-tag {
|
|
73
|
-
background-color: @input-tag-tag-color-bg_focus;
|
|
74
|
-
border-color: @input-tag-tag-color-border_focus;
|
|
75
|
-
|
|
76
|
-
.@{prefix}-icon-hover:hover::before {
|
|
77
|
-
background-color: @input-tag-tag-remove-icon-color-bg_focus;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.@{cls}-disabled {
|
|
83
|
-
.@{cls}-tag {
|
|
84
|
-
color: @input-tag-color-text_disabled;
|
|
85
|
-
background-color: @input-tag-tag-color-bg_disabled;
|
|
86
|
-
border-color: @input-tag-tag-color-border_disabled;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&.@{cls}-readonly,
|
|
91
|
-
&.@{cls}-disabled-input {
|
|
92
|
-
cursor: default;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.size(@size) {
|
|
96
|
-
&.@{cls}-size-@{size} {
|
|
97
|
-
@font-size: ~'input-tag-size-@{size}-font-size';
|
|
98
|
-
@height: ~'input-tag-size-@{size}-height';
|
|
99
|
-
@tag-height: ~'input-tag-size-@{size}-tag-height';
|
|
100
|
-
|
|
101
|
-
font-size: @@font-size;
|
|
102
|
-
|
|
103
|
-
.@{cls}-inner {
|
|
104
|
-
padding-top: (@@height / 2) - (@@tag-height / 2) -
|
|
105
|
-
@input-tag-border-width - (@input-tag-tag-margin-vertical / 2);
|
|
106
|
-
padding-bottom: $padding-top;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.@{cls}-tag,
|
|
110
|
-
.@{cls}-input {
|
|
111
|
-
margin-top: (@input-tag-tag-margin-vertical / 2);
|
|
112
|
-
margin-bottom: $margin-top;
|
|
113
|
-
line-height: @@tag-height - 2;
|
|
114
|
-
vertical-align: middle;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.@{cls}-tag,
|
|
118
|
-
.@{cls}-input {
|
|
119
|
-
height: auto;
|
|
120
|
-
min-height: @@tag-height;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.size(mini);
|
|
126
|
-
.size(medium);
|
|
127
|
-
.size(small);
|
|
128
|
-
.size(large);
|
|
129
|
-
}
|
|
1
|
+
@import '../../style/mixins/index.less';
|
|
2
|
+
@import '../../input/style/token.less';
|
|
3
|
+
@import '../../input/style/input.less';
|
|
4
|
+
@import '../../tag/style/index.less';
|
|
5
|
+
@import './token.less';
|
|
6
|
+
|
|
7
|
+
.input-tag-style(@cls) {
|
|
8
|
+
.input-wrapper-style(@cls);
|
|
9
|
+
|
|
10
|
+
&.@{cls}-has-tag {
|
|
11
|
+
padding-right: @input-tag-padding-horizontal;
|
|
12
|
+
padding-left: @input-tag-padding-horizontal;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.@{cls}-has-prefix {
|
|
16
|
+
padding-left: @input-padding-horizontal;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.@{cls}-has-suffix {
|
|
20
|
+
padding-right: @input-padding-horizontal;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.@{cls}-inner {
|
|
24
|
+
flex: 1;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
line-height: 0;
|
|
27
|
+
|
|
28
|
+
&.@{cls}-nowrap {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.@{cls}-tag {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin-right: @input-tag-tag-margin-right;
|
|
37
|
+
color: @input-tag-color-text_default;
|
|
38
|
+
font-size: @input-tag-tag-font-size;
|
|
39
|
+
white-space: pre-wrap;
|
|
40
|
+
word-break: break-word;
|
|
41
|
+
background-color: @input-tag-tag-color-bg;
|
|
42
|
+
border-color: @input-tag-tag-color-border;
|
|
43
|
+
|
|
44
|
+
.@{prefix}-icon-hover:hover::before {
|
|
45
|
+
background-color: @input-tag-tag-remove-icon-color-bg;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.@{prefix}-tag-custom-color {
|
|
49
|
+
color: @tag-custom-color-text;
|
|
50
|
+
|
|
51
|
+
.icon-hover-bg(@tag-prefix-cls, @tag-custom-color-icon-bg_hover);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.@{cls}-input {
|
|
56
|
+
.input-style();
|
|
57
|
+
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.@{cls}-mirror {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
white-space: pre;
|
|
67
|
+
visibility: hidden;
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.@{cls}-focus {
|
|
72
|
+
.@{cls}-tag {
|
|
73
|
+
background-color: @input-tag-tag-color-bg_focus;
|
|
74
|
+
border-color: @input-tag-tag-color-border_focus;
|
|
75
|
+
|
|
76
|
+
.@{prefix}-icon-hover:hover::before {
|
|
77
|
+
background-color: @input-tag-tag-remove-icon-color-bg_focus;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.@{cls}-disabled {
|
|
83
|
+
.@{cls}-tag {
|
|
84
|
+
color: @input-tag-color-text_disabled;
|
|
85
|
+
background-color: @input-tag-tag-color-bg_disabled;
|
|
86
|
+
border-color: @input-tag-tag-color-border_disabled;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.@{cls}-readonly,
|
|
91
|
+
&.@{cls}-disabled-input {
|
|
92
|
+
cursor: default;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.size(@size) {
|
|
96
|
+
&.@{cls}-size-@{size} {
|
|
97
|
+
@font-size: ~'input-tag-size-@{size}-font-size';
|
|
98
|
+
@height: ~'input-tag-size-@{size}-height';
|
|
99
|
+
@tag-height: ~'input-tag-size-@{size}-tag-height';
|
|
100
|
+
|
|
101
|
+
font-size: @@font-size;
|
|
102
|
+
|
|
103
|
+
.@{cls}-inner {
|
|
104
|
+
padding-top: (@@height / 2) - (@@tag-height / 2) -
|
|
105
|
+
@input-tag-border-width - (@input-tag-tag-margin-vertical / 2);
|
|
106
|
+
padding-bottom: $padding-top;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.@{cls}-tag,
|
|
110
|
+
.@{cls}-input {
|
|
111
|
+
margin-top: (@input-tag-tag-margin-vertical / 2);
|
|
112
|
+
margin-bottom: $margin-top;
|
|
113
|
+
line-height: @@tag-height - 2;
|
|
114
|
+
vertical-align: middle;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.@{cls}-tag,
|
|
118
|
+
.@{cls}-input {
|
|
119
|
+
height: auto;
|
|
120
|
+
min-height: @@tag-height;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.size(mini);
|
|
126
|
+
.size(medium);
|
|
127
|
+
.size(small);
|
|
128
|
+
.size(large);
|
|
129
|
+
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
@import '../../style/theme/index.less';
|
|
2
|
-
|
|
3
|
-
/**********************************************
|
|
4
|
-
* size: mini / small / default / large
|
|
5
|
-
**********************************************/
|
|
6
|
-
@input-tag-size-mini-height: @size-mini;
|
|
7
|
-
@input-tag-size-small-height: @size-small;
|
|
8
|
-
@input-tag-size-default-height: @size-default;
|
|
9
|
-
@input-tag-size-large-height: @size-large;
|
|
10
|
-
|
|
11
|
-
@input-tag-size-mini-tag-height: @size-5;
|
|
12
|
-
@input-tag-size-small-tag-height: @size-5;
|
|
13
|
-
@input-tag-size-default-tag-height: @size-6;
|
|
14
|
-
@input-tag-size-large-tag-height: @size-7;
|
|
15
|
-
|
|
16
|
-
@input-tag-size-mini-font-size: @font-size-body-1;
|
|
17
|
-
@input-tag-size-small-font-size: @font-size-body-3;
|
|
18
|
-
@input-tag-size-default-font-size: @font-size-body-3;
|
|
19
|
-
@input-tag-size-large-font-size: @font-size-body-3;
|
|
20
|
-
|
|
21
|
-
/****************************************************
|
|
22
|
-
* status: default / error / disabled _ (hover / focus)
|
|
23
|
-
****************************************************/
|
|
24
|
-
// text color
|
|
25
|
-
@input-tag-color-text_default: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
26
|
-
@input-tag-color-text_error: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
27
|
-
@input-tag-color-text_disabled: var(~'@{arco-cssvars-prefix}-color-text-4');
|
|
28
|
-
|
|
29
|
-
// icon color
|
|
30
|
-
@input-tag-color-placeholder: var(~'@{arco-cssvars-prefix}-color-text-3');
|
|
31
|
-
@input-tag-color-icon-clear: var(~'@{arco-cssvars-prefix}-color-text-2');
|
|
32
|
-
@input-tag-color-icon-clear-bg_hover: var(~'@{arco-cssvars-prefix}-color-fill-4');
|
|
33
|
-
|
|
34
|
-
// border color with focus & hover
|
|
35
|
-
@input-tag-color-border_default: @color-transparent;
|
|
36
|
-
@input-tag-color-border_default_hover: @color-transparent;
|
|
37
|
-
@input-tag-color-border_default_focus: @color-primary-6;
|
|
38
|
-
@input-tag-color-border_error: @color-transparent;
|
|
39
|
-
@input-tag-color-border_error_hover: @color-transparent;
|
|
40
|
-
@input-tag-color-border_error_focus: @color-danger-6;
|
|
41
|
-
@input-tag-color-border_disabled: @color-transparent;
|
|
42
|
-
@input-tag-color-border_disabled_hover: @input-tag-color-border_disabled;
|
|
43
|
-
@input-tag-color-border_disabled_focus: @input-tag-color-border_disabled;
|
|
44
|
-
|
|
45
|
-
// bg color with focus & hover
|
|
46
|
-
@input-tag-color-bg_default: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
47
|
-
@input-tag-color-bg_default_hover: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
48
|
-
@input-tag-color-bg_default_focus: var(~'@{arco-cssvars-prefix}-color-bg-2');
|
|
49
|
-
@input-tag-color-bg_error: @color-danger-1;
|
|
50
|
-
@input-tag-color-bg_error_hover: @color-danger-2;
|
|
51
|
-
@input-tag-color-bg_error_focus: var(~'@{arco-cssvars-prefix}-color-bg-2');
|
|
52
|
-
@input-tag-color-bg_disabled: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
53
|
-
@input-tag-color-bg_disabled_hover: @input-tag-color-bg_disabled;
|
|
54
|
-
|
|
55
|
-
@input-tag-color-shadow_default_focus: @color-primary-2;
|
|
56
|
-
@input-tag-color-shadow_error_focus: @color-danger-2;
|
|
57
|
-
@input-tag-size-shadow_error_focus: @shadow-distance-none;
|
|
58
|
-
@input-tag-size-shadow_default_focus: @shadow-distance-none;
|
|
59
|
-
|
|
60
|
-
// input box
|
|
61
|
-
@input-tag-tag-margin-right: @spacing-2;
|
|
62
|
-
@input-tag-tag-margin-vertical: @spacing-1;
|
|
63
|
-
@input-tag-padding-horizontal: @spacing-2;
|
|
64
|
-
@input-tag-border-radius: @radius-small;
|
|
65
|
-
@input-tag-border-width: @border-1;
|
|
66
|
-
@input-tag-size-icon-clear: @size-3;
|
|
67
|
-
@input-tag-size-icon-clear_hover: @size-5;
|
|
68
|
-
|
|
69
|
-
// tags
|
|
70
|
-
@input-tag-tag-font-size: @font-size-body-1;
|
|
71
|
-
@input-tag-tag-color-bg: var(~'@{arco-cssvars-prefix}-color-bg-2');
|
|
72
|
-
@input-tag-tag-color-bg_focus: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
73
|
-
@input-tag-tag-color-bg_disabled: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
74
|
-
@input-tag-tag-color-border: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
75
|
-
@input-tag-tag-color-border_disabled: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
76
|
-
@input-tag-tag-color-border_focus: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
77
|
-
@input-tag-tag-remove-icon-color-bg: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
78
|
-
@input-tag-tag-remove-icon-color-bg_focus: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
79
|
-
|
|
80
|
-
// vue overwrite token
|
|
81
|
-
@input-tag-size-medium-height: @input-tag-size-default-height;
|
|
82
|
-
@input-tag-size-medium-tag-height: @input-tag-size-default-tag-height;
|
|
83
|
-
@input-tag-size-medium-font-size: @input-tag-size-default-font-size;
|
|
1
|
+
@import '../../style/theme/index.less';
|
|
2
|
+
|
|
3
|
+
/**********************************************
|
|
4
|
+
* size: mini / small / default / large
|
|
5
|
+
**********************************************/
|
|
6
|
+
@input-tag-size-mini-height: @size-mini;
|
|
7
|
+
@input-tag-size-small-height: @size-small;
|
|
8
|
+
@input-tag-size-default-height: @size-default;
|
|
9
|
+
@input-tag-size-large-height: @size-large;
|
|
10
|
+
|
|
11
|
+
@input-tag-size-mini-tag-height: @size-5;
|
|
12
|
+
@input-tag-size-small-tag-height: @size-5;
|
|
13
|
+
@input-tag-size-default-tag-height: @size-6;
|
|
14
|
+
@input-tag-size-large-tag-height: @size-7;
|
|
15
|
+
|
|
16
|
+
@input-tag-size-mini-font-size: @font-size-body-1;
|
|
17
|
+
@input-tag-size-small-font-size: @font-size-body-3;
|
|
18
|
+
@input-tag-size-default-font-size: @font-size-body-3;
|
|
19
|
+
@input-tag-size-large-font-size: @font-size-body-3;
|
|
20
|
+
|
|
21
|
+
/****************************************************
|
|
22
|
+
* status: default / error / disabled _ (hover / focus)
|
|
23
|
+
****************************************************/
|
|
24
|
+
// text color
|
|
25
|
+
@input-tag-color-text_default: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
26
|
+
@input-tag-color-text_error: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
27
|
+
@input-tag-color-text_disabled: var(~'@{arco-cssvars-prefix}-color-text-4');
|
|
28
|
+
|
|
29
|
+
// icon color
|
|
30
|
+
@input-tag-color-placeholder: var(~'@{arco-cssvars-prefix}-color-text-3');
|
|
31
|
+
@input-tag-color-icon-clear: var(~'@{arco-cssvars-prefix}-color-text-2');
|
|
32
|
+
@input-tag-color-icon-clear-bg_hover: var(~'@{arco-cssvars-prefix}-color-fill-4');
|
|
33
|
+
|
|
34
|
+
// border color with focus & hover
|
|
35
|
+
@input-tag-color-border_default: @color-transparent;
|
|
36
|
+
@input-tag-color-border_default_hover: @color-transparent;
|
|
37
|
+
@input-tag-color-border_default_focus: @color-primary-6;
|
|
38
|
+
@input-tag-color-border_error: @color-transparent;
|
|
39
|
+
@input-tag-color-border_error_hover: @color-transparent;
|
|
40
|
+
@input-tag-color-border_error_focus: @color-danger-6;
|
|
41
|
+
@input-tag-color-border_disabled: @color-transparent;
|
|
42
|
+
@input-tag-color-border_disabled_hover: @input-tag-color-border_disabled;
|
|
43
|
+
@input-tag-color-border_disabled_focus: @input-tag-color-border_disabled;
|
|
44
|
+
|
|
45
|
+
// bg color with focus & hover
|
|
46
|
+
@input-tag-color-bg_default: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
47
|
+
@input-tag-color-bg_default_hover: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
48
|
+
@input-tag-color-bg_default_focus: var(~'@{arco-cssvars-prefix}-color-bg-2');
|
|
49
|
+
@input-tag-color-bg_error: @color-danger-1;
|
|
50
|
+
@input-tag-color-bg_error_hover: @color-danger-2;
|
|
51
|
+
@input-tag-color-bg_error_focus: var(~'@{arco-cssvars-prefix}-color-bg-2');
|
|
52
|
+
@input-tag-color-bg_disabled: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
53
|
+
@input-tag-color-bg_disabled_hover: @input-tag-color-bg_disabled;
|
|
54
|
+
|
|
55
|
+
@input-tag-color-shadow_default_focus: @color-primary-2;
|
|
56
|
+
@input-tag-color-shadow_error_focus: @color-danger-2;
|
|
57
|
+
@input-tag-size-shadow_error_focus: @shadow-distance-none;
|
|
58
|
+
@input-tag-size-shadow_default_focus: @shadow-distance-none;
|
|
59
|
+
|
|
60
|
+
// input box
|
|
61
|
+
@input-tag-tag-margin-right: @spacing-2;
|
|
62
|
+
@input-tag-tag-margin-vertical: @spacing-1;
|
|
63
|
+
@input-tag-padding-horizontal: @spacing-2;
|
|
64
|
+
@input-tag-border-radius: @radius-small;
|
|
65
|
+
@input-tag-border-width: @border-1;
|
|
66
|
+
@input-tag-size-icon-clear: @size-3;
|
|
67
|
+
@input-tag-size-icon-clear_hover: @size-5;
|
|
68
|
+
|
|
69
|
+
// tags
|
|
70
|
+
@input-tag-tag-font-size: @font-size-body-1;
|
|
71
|
+
@input-tag-tag-color-bg: var(~'@{arco-cssvars-prefix}-color-bg-2');
|
|
72
|
+
@input-tag-tag-color-bg_focus: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
73
|
+
@input-tag-tag-color-bg_disabled: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
74
|
+
@input-tag-tag-color-border: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
75
|
+
@input-tag-tag-color-border_disabled: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
76
|
+
@input-tag-tag-color-border_focus: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
77
|
+
@input-tag-tag-remove-icon-color-bg: var(~'@{arco-cssvars-prefix}-color-fill-2');
|
|
78
|
+
@input-tag-tag-remove-icon-color-bg_focus: var(~'@{arco-cssvars-prefix}-color-fill-3');
|
|
79
|
+
|
|
80
|
+
// vue overwrite token
|
|
81
|
+
@input-tag-size-medium-height: @input-tag-size-default-height;
|
|
82
|
+
@input-tag-size-medium-tag-height: @input-tag-size-default-tag-height;
|
|
83
|
+
@input-tag-size-medium-font-size: @input-tag-size-default-font-size;
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
@import './token.less';
|
|
2
|
-
|
|
3
|
-
@layout-prefix-cls: ~'@{prefix}-layout';
|
|
4
|
-
|
|
5
|
-
.@{layout-prefix-cls} {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex: 1;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
|
|
12
|
-
&-sider {
|
|
13
|
-
position: relative;
|
|
14
|
-
flex: none; // flex: 0 0 auto; 当右侧文字过长的时候不会被压缩。
|
|
15
|
-
width: auto;
|
|
16
|
-
margin: 0;
|
|
17
|
-
padding: 0;
|
|
18
|
-
background: @layout-sider-background;
|
|
19
|
-
transition: width @transition-duration-2
|
|
20
|
-
@transition-timing-function-standard;
|
|
21
|
-
|
|
22
|
-
&-children {
|
|
23
|
-
height: 100%;
|
|
24
|
-
overflow: auto;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-collapsed &-children {
|
|
28
|
-
/* width */
|
|
29
|
-
&::-webkit-scrollbar {
|
|
30
|
-
width: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// /* Track */
|
|
34
|
-
// &::-webkit-scrollbar-track {
|
|
35
|
-
// background: #f1f1f1;
|
|
36
|
-
// }
|
|
37
|
-
|
|
38
|
-
// /* Handle */
|
|
39
|
-
// &::-webkit-scrollbar-thumb {
|
|
40
|
-
// background: #888;
|
|
41
|
-
// }
|
|
42
|
-
|
|
43
|
-
// /* Handle on hover */
|
|
44
|
-
// &::-webkit-scrollbar-thumb:hover {
|
|
45
|
-
// background: #555;
|
|
46
|
-
// }
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&-has-trigger {
|
|
50
|
-
box-sizing: border-box;
|
|
51
|
-
padding-bottom: @layout-trigger-height;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-trigger {
|
|
55
|
-
z-index: 1;
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
box-sizing: border-box;
|
|
60
|
-
width: 100%;
|
|
61
|
-
height: @layout-trigger-height;
|
|
62
|
-
color: var(~'@{arco-cssvars-prefix}-color-white');
|
|
63
|
-
background: @layout-trigger-dark-color;
|
|
64
|
-
cursor: pointer;
|
|
65
|
-
transition: width @transition-duration-2
|
|
66
|
-
@transition-timing-function-standard;
|
|
67
|
-
|
|
68
|
-
&-light {
|
|
69
|
-
color: @layout-font-color;
|
|
70
|
-
background: @layout-sider-background-light;
|
|
71
|
-
border-top: 1px solid @layout-trigger-light-color-border;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&-sider-light {
|
|
77
|
-
background: @layout-sider-background-light;
|
|
78
|
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&-header {
|
|
82
|
-
flex: 0 0 auto;
|
|
83
|
-
box-sizing: border-box;
|
|
84
|
-
margin: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&-content {
|
|
88
|
-
flex: 1;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&-footer {
|
|
92
|
-
flex: 0 0 auto;
|
|
93
|
-
margin: 0;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.@{layout-prefix-cls}-has-sider {
|
|
98
|
-
flex-direction: row;
|
|
99
|
-
|
|
100
|
-
> .@{layout-prefix-cls},
|
|
101
|
-
> .@{layout-prefix-cls}-content {
|
|
102
|
-
overflow-x: hidden;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
3
|
+
@layout-prefix-cls: ~'@{prefix}-layout';
|
|
4
|
+
|
|
5
|
+
.@{layout-prefix-cls} {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex: 1;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
|
|
12
|
+
&-sider {
|
|
13
|
+
position: relative;
|
|
14
|
+
flex: none; // flex: 0 0 auto; 当右侧文字过长的时候不会被压缩。
|
|
15
|
+
width: auto;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
background: @layout-sider-background;
|
|
19
|
+
transition: width @transition-duration-2
|
|
20
|
+
@transition-timing-function-standard;
|
|
21
|
+
|
|
22
|
+
&-children {
|
|
23
|
+
height: 100%;
|
|
24
|
+
overflow: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-collapsed &-children {
|
|
28
|
+
/* width */
|
|
29
|
+
&::-webkit-scrollbar {
|
|
30
|
+
width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// /* Track */
|
|
34
|
+
// &::-webkit-scrollbar-track {
|
|
35
|
+
// background: #f1f1f1;
|
|
36
|
+
// }
|
|
37
|
+
|
|
38
|
+
// /* Handle */
|
|
39
|
+
// &::-webkit-scrollbar-thumb {
|
|
40
|
+
// background: #888;
|
|
41
|
+
// }
|
|
42
|
+
|
|
43
|
+
// /* Handle on hover */
|
|
44
|
+
// &::-webkit-scrollbar-thumb:hover {
|
|
45
|
+
// background: #555;
|
|
46
|
+
// }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-has-trigger {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
padding-bottom: @layout-trigger-height;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-trigger {
|
|
55
|
+
z-index: 1;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: @layout-trigger-height;
|
|
62
|
+
color: var(~'@{arco-cssvars-prefix}-color-white');
|
|
63
|
+
background: @layout-trigger-dark-color;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
transition: width @transition-duration-2
|
|
66
|
+
@transition-timing-function-standard;
|
|
67
|
+
|
|
68
|
+
&-light {
|
|
69
|
+
color: @layout-font-color;
|
|
70
|
+
background: @layout-sider-background-light;
|
|
71
|
+
border-top: 1px solid @layout-trigger-light-color-border;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-sider-light {
|
|
77
|
+
background: @layout-sider-background-light;
|
|
78
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-header {
|
|
82
|
+
flex: 0 0 auto;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
margin: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-content {
|
|
88
|
+
flex: 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-footer {
|
|
92
|
+
flex: 0 0 auto;
|
|
93
|
+
margin: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.@{layout-prefix-cls}-has-sider {
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
|
|
100
|
+
> .@{layout-prefix-cls},
|
|
101
|
+
> .@{layout-prefix-cls}-content {
|
|
102
|
+
overflow-x: hidden;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@import '../../style/theme/index.less';
|
|
2
|
-
|
|
3
|
-
@layout-trigger-height: 48px;
|
|
4
|
-
|
|
5
|
-
// Layout Theme Dark(Default)
|
|
6
|
-
@layout-sider-background: var(~'@{arco-cssvars-prefix}-color-menu-dark-bg');
|
|
7
|
-
@layout-font-color-dark: var(~'@{arco-cssvars-prefix}-color-white');
|
|
8
|
-
@layout-font-color: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
9
|
-
@layout-trigger-dark-color: rgba(255, 255, 255, 0.2);
|
|
10
|
-
|
|
11
|
-
// Layout Theme Light
|
|
12
|
-
@layout-sider-background-light: var(~'@{arco-cssvars-prefix}-color-menu-light-bg');
|
|
13
|
-
@layout-trigger-light-color-border: var(~'@{arco-cssvars-prefix}-color-bg-5');
|
|
1
|
+
@import '../../style/theme/index.less';
|
|
2
|
+
|
|
3
|
+
@layout-trigger-height: 48px;
|
|
4
|
+
|
|
5
|
+
// Layout Theme Dark(Default)
|
|
6
|
+
@layout-sider-background: var(~'@{arco-cssvars-prefix}-color-menu-dark-bg');
|
|
7
|
+
@layout-font-color-dark: var(~'@{arco-cssvars-prefix}-color-white');
|
|
8
|
+
@layout-font-color: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
9
|
+
@layout-trigger-dark-color: rgba(255, 255, 255, 0.2);
|
|
10
|
+
|
|
11
|
+
// Layout Theme Light
|
|
12
|
+
@layout-sider-background-light: var(~'@{arco-cssvars-prefix}-color-menu-light-bg');
|
|
13
|
+
@layout-trigger-light-color-border: var(~'@{arco-cssvars-prefix}-color-bg-5');
|