@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,622 +1,622 @@
|
|
|
1
|
-
@import '../../style/mixins/index.less';
|
|
2
|
-
@import './token.less';
|
|
3
|
-
@import '../../dropdown/style/token.less';
|
|
4
|
-
|
|
5
|
-
@menu-prefix-cls: ~'@{prefix}-menu';
|
|
6
|
-
@trigger-menu-prefix-cls: ~'@{prefix}-trigger-menu';
|
|
7
|
-
|
|
8
|
-
.applyStyleToItem(@style) {
|
|
9
|
-
.@{menu-prefix-cls}-item,
|
|
10
|
-
.@{menu-prefix-cls}-group-title,
|
|
11
|
-
.@{menu-prefix-cls}-pop-header,
|
|
12
|
-
.@{menu-prefix-cls}-inline-header {
|
|
13
|
-
@style();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@keyframes ~'@{prefix}-menu-selected-item-label-enter' {
|
|
18
|
-
from {
|
|
19
|
-
opacity: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
to {
|
|
23
|
-
opacity: 1;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.@{menu-prefix-cls} {
|
|
28
|
-
position: relative;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
width: 100%;
|
|
31
|
-
font-size: @menu-font-size;
|
|
32
|
-
line-height: @menu-line-height;
|
|
33
|
-
transition: width @transition-duration-2 @transition-timing-function-standard;
|
|
34
|
-
|
|
35
|
-
&:focus-visible {
|
|
36
|
-
outline: 3px solid var(~'@{arco-cssvars-prefix}-color-primary-light-2');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// 设置菜单层级的缩进
|
|
40
|
-
&-indent {
|
|
41
|
-
display: inline-block;
|
|
42
|
-
width: @menu-item-indent-spacing;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.text-color-transition() {
|
|
46
|
-
transition: color @transition-duration-2 @transition-timing-function-linear;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// menu-item 一些与 theme 和 mode 无关的样式
|
|
50
|
-
.item-base() {
|
|
51
|
-
@style: {
|
|
52
|
-
position: relative;
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
border-radius: @menu-border-radius;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
|
|
57
|
-
&.@{menu-prefix-cls}-disabled {
|
|
58
|
-
cursor: not-allowed;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.@{menu-prefix-cls}-selected {
|
|
62
|
-
font-weight: @menu-font-weight-item-selected;
|
|
63
|
-
.text-color-transition();
|
|
64
|
-
|
|
65
|
-
svg {
|
|
66
|
-
.text-color-transition();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.@{prefix}-icon,
|
|
71
|
-
.@{menu-prefix-cls}-icon {
|
|
72
|
-
margin-right: @menu-margin-right-item-prefix-icon;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.@{menu-prefix-cls}-icon {
|
|
76
|
-
.@{prefix}-icon {
|
|
77
|
-
margin-right: 0;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
.applyStyleToItem(@style);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.item-mode(@mode) {
|
|
86
|
-
@style-both: {
|
|
87
|
-
padding: 0 ~'@{menu-@{mode}-item-padding-horizontal}';
|
|
88
|
-
line-height: ~'@{menu-@{mode}-item-height}';
|
|
89
|
-
|
|
90
|
-
.@{menu-prefix-cls}-icon-suffix .@{prefix}-icon {
|
|
91
|
-
margin-right: 0;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
@style-vertical-only: {
|
|
96
|
-
margin-bottom: @menu-item-gap;
|
|
97
|
-
&:not(.@{menu-prefix-cls}-has-icon) {
|
|
98
|
-
.text-ellipsis();
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&.@{menu-prefix-cls}-has-icon {
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
|
|
105
|
-
> .@{menu-prefix-cls}-indent-list,
|
|
106
|
-
> .@{menu-prefix-cls}-icon {
|
|
107
|
-
flex: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.@{menu-prefix-cls}-icon {
|
|
111
|
-
line-height: 1;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.@{menu-prefix-cls}-title {
|
|
115
|
-
.text-ellipsis();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.@{menu-prefix-cls}-item-inner {
|
|
120
|
-
.text-ellipsis();
|
|
121
|
-
|
|
122
|
-
width: 100%;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.@{menu-prefix-cls}-icon-suffix {
|
|
126
|
-
position: absolute;
|
|
127
|
-
right: @menu-vertical-item-padding-horizontal;
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
@style-horizontal-only: {
|
|
132
|
-
.@{prefix}-icon,
|
|
133
|
-
.@{menu-prefix-cls}-icon {
|
|
134
|
-
margin-right: @menu-horizontal-margin-right-item-prefix-icon;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.@{menu-prefix-cls}-icon-suffix {
|
|
138
|
-
margin-left: @menu-margin-left-item-suffix-icon;
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
.applyStyleToItem(@style-both);
|
|
143
|
-
.applyStyleToItem(if(@mode = vertical, @style-vertical-only, @style-horizontal-only));
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.theme(@theme) {
|
|
147
|
-
&-@{theme} {
|
|
148
|
-
background-color: ~'@{menu-@{theme}-color-bg}';
|
|
149
|
-
|
|
150
|
-
// 处理普通菜单项的状态变化
|
|
151
|
-
@item-style: {
|
|
152
|
-
color: ~'@{menu-@{theme}-color-item_default}';
|
|
153
|
-
background-color: ~'@{menu-@{theme}-color-bg-item_default}';
|
|
154
|
-
|
|
155
|
-
.@{prefix}-icon,
|
|
156
|
-
.@{menu-prefix-cls}-icon {
|
|
157
|
-
color: ~'@{menu-@{theme}-color-icon_default}';
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&:hover {
|
|
161
|
-
color: ~'@{menu-@{theme}-color-item_hover}';
|
|
162
|
-
background-color: ~'@{menu-@{theme}-color-bg-item_hover}';
|
|
163
|
-
|
|
164
|
-
.@{prefix}-icon,
|
|
165
|
-
.@{menu-prefix-cls}-icon {
|
|
166
|
-
color: ~'@{menu-@{theme}-color-icon_hover}';
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&.@{menu-prefix-cls}-selected {
|
|
171
|
-
color: ~'@{menu-@{theme}-color-item_selected}';
|
|
172
|
-
|
|
173
|
-
.@{prefix}-icon,
|
|
174
|
-
.@{menu-prefix-cls}-icon {
|
|
175
|
-
color: ~'@{menu-@{theme}-color-icon_selected}';
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&.@{menu-prefix-cls}-disabled {
|
|
180
|
-
color: ~'@{menu-@{theme}-color-item_disabled}';
|
|
181
|
-
background-color: ~'@{menu-@{theme}-color-bg-item_disabled}';
|
|
182
|
-
|
|
183
|
-
.@{prefix}-icon,
|
|
184
|
-
.@{menu-prefix-cls}-icon {
|
|
185
|
-
color: ~'@{menu-@{theme}-color-icon_disabled}';
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
.applyStyleToItem(@item-style);
|
|
191
|
-
|
|
192
|
-
// 只有 menuItem 选中时需要背景色
|
|
193
|
-
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-selected {
|
|
194
|
-
background-color: ~'@{menu-@{theme}-color-bg-item_selected}';
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// 子菜单被选中时,没有背景色,所以可以单独设置字体色
|
|
198
|
-
.@{menu-prefix-cls}-inline-header.@{menu-prefix-cls}-selected {
|
|
199
|
-
color: ~'@{menu-@{theme}-color-submenu_selected}';
|
|
200
|
-
|
|
201
|
-
.@{prefix}-icon,
|
|
202
|
-
.@{menu-prefix-cls}-icon {
|
|
203
|
-
color: ~'@{menu-@{theme}-color-submenu_selected}';
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&:hover {
|
|
207
|
-
background-color: ~'@{menu-@{theme}-color-bg-submenu_selected_hover}';
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// 为水平菜单添加项目选中的样式
|
|
212
|
-
&.@{menu-prefix-cls}-horizontal {
|
|
213
|
-
@item-selected-style: {
|
|
214
|
-
&.@{menu-prefix-cls}-selected {
|
|
215
|
-
background: none;
|
|
216
|
-
.text-color-transition();
|
|
217
|
-
|
|
218
|
-
&:hover {
|
|
219
|
-
background-color: ~'@{menu-@{theme}-color-bg-item_hover}';
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
.applyStyleToItem(@item-selected-style);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
// 处理标题样式
|
|
228
|
-
.@{menu-prefix-cls}-group-title {
|
|
229
|
-
color: ~'@{menu-@{theme}-color-group-title}';
|
|
230
|
-
// 快速消除 hover 的特殊样式
|
|
231
|
-
pointer-events: none;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// 展开折叠按钮颜色
|
|
235
|
-
.@{menu-prefix-cls}-collapse-button {
|
|
236
|
-
color: ~'@{menu-@{theme}-color-button}';
|
|
237
|
-
background-color: ~'@{menu-@{theme}-color-bg-button}';
|
|
238
|
-
|
|
239
|
-
&:hover {
|
|
240
|
-
background-color: ~'@{menu-@{theme}-color-bg-button_hover}';
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.item-base();
|
|
247
|
-
.theme(light);
|
|
248
|
-
.theme(dark);
|
|
249
|
-
|
|
250
|
-
// 校正 a 标签颜色
|
|
251
|
-
a,
|
|
252
|
-
a:hover,
|
|
253
|
-
a:focus,
|
|
254
|
-
a:active {
|
|
255
|
-
color: inherit;
|
|
256
|
-
text-decoration: none;
|
|
257
|
-
cursor: inherit;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
&-inner {
|
|
261
|
-
box-sizing: border-box;
|
|
262
|
-
width: 100%;
|
|
263
|
-
height: 100%;
|
|
264
|
-
overflow: auto;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
// 展开折叠图标
|
|
268
|
-
&-icon-suffix {
|
|
269
|
-
&.is-open {
|
|
270
|
-
transform: rotate(180deg);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
&-vertical {
|
|
275
|
-
.item-mode(vertical);
|
|
276
|
-
|
|
277
|
-
.@{menu-prefix-cls}-inner {
|
|
278
|
-
padding: @menu-vertical-padding-vertical @menu-vertical-padding-horizontal;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-indented {
|
|
282
|
-
display: flex;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
// 为 header 右侧预留下放置 suffixIcon 的空间
|
|
286
|
-
.@{menu-prefix-cls}-pop-header,
|
|
287
|
-
.@{menu-prefix-cls}-inline-header {
|
|
288
|
-
padding-right: @menu-vertical-item-padding-horizontal + 16;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
// 水平菜单中,仅允许出现普通 item 和 popSubMenu
|
|
293
|
-
&-horizontal {
|
|
294
|
-
width: 100%;
|
|
295
|
-
height: auto;
|
|
296
|
-
|
|
297
|
-
.item-mode(horizontal);
|
|
298
|
-
|
|
299
|
-
.@{menu-prefix-cls}-inner {
|
|
300
|
-
display: flex;
|
|
301
|
-
align-items: center;
|
|
302
|
-
padding: @menu-horizontal-padding-vertical
|
|
303
|
-
@menu-horizontal-padding-horizontal;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.@{menu-prefix-cls}-item,
|
|
307
|
-
.@{menu-prefix-cls}-pop {
|
|
308
|
-
display: inline-block;
|
|
309
|
-
flex-shrink: 0;
|
|
310
|
-
vertical-align: middle;
|
|
311
|
-
|
|
312
|
-
&:not(:first-child) {
|
|
313
|
-
margin-left: @menu-horizontal-item-gap;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.@{menu-prefix-cls}-pop::after {
|
|
318
|
-
position: absolute;
|
|
319
|
-
bottom: -$height;
|
|
320
|
-
left: 0;
|
|
321
|
-
width: 100%;
|
|
322
|
-
height: @menu-horizontal-padding-vertical;
|
|
323
|
-
content: ' ';
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// 水平菜单的动态折叠容器
|
|
328
|
-
&-overflow {
|
|
329
|
-
&-wrap {
|
|
330
|
-
width: 100%;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
&-sub-menu-mirror,
|
|
334
|
-
&-hidden-menu-item {
|
|
335
|
-
position: absolute !important;
|
|
336
|
-
white-space: nowrap;
|
|
337
|
-
visibility: hidden;
|
|
338
|
-
pointer-events: none;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
// 选中状态下的提示浮标,相对于 MenuItem 定位
|
|
343
|
-
&-selected-label {
|
|
344
|
-
position: absolute;
|
|
345
|
-
right: $left;
|
|
346
|
-
bottom: -@menu-horizontal-padding-vertical;
|
|
347
|
-
left: @menu-horizontal-item-padding-horizontal;
|
|
348
|
-
height: @menu-height-label-item-selected;
|
|
349
|
-
background-color: @menu-color-label-item-selected;
|
|
350
|
-
animation: ~'@{prefix}-menu-selected-item-label-enter' @transition-duration-2
|
|
351
|
-
@transition-timing-function-linear;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
&-pop-button {
|
|
355
|
-
width: auto;
|
|
356
|
-
background: none;
|
|
357
|
-
box-shadow: none;
|
|
358
|
-
|
|
359
|
-
&.@{menu-prefix-cls}-collapsed {
|
|
360
|
-
width: auto;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
@item-style: {
|
|
364
|
-
width: @menu-pop-button-size;
|
|
365
|
-
height: $width;
|
|
366
|
-
margin-bottom: @menu-pop-button-margin-bottom;
|
|
367
|
-
line-height: $height;
|
|
368
|
-
border: 1px solid @menu-pop-button-border-color;
|
|
369
|
-
border-radius: 50%;
|
|
370
|
-
box-shadow: @menu-pop-button-box-shadow;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
.applyStyleToItem(@item-style);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
// 折叠样式
|
|
377
|
-
&-collapsed {
|
|
378
|
-
width: @menu-collapse-width;
|
|
379
|
-
|
|
380
|
-
.@{menu-prefix-cls}-inner {
|
|
381
|
-
padding: @menu-collapse-padding-vertical @menu-collapse-padding-horizontal;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.@{menu-prefix-cls}-icon-suffix {
|
|
385
|
-
display: none;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
// Hide text after icon when menu is collapsed
|
|
389
|
-
@style-item-text: {
|
|
390
|
-
.@{prefix}-icon {
|
|
391
|
-
margin-right: 100%;
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
.@{menu-prefix-cls}-has-icon {
|
|
396
|
-
> *:not(.@{menu-prefix-cls}-icon) {
|
|
397
|
-
opacity: 0;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.applyStyleToItem(@style-item-text);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// 折叠按钮
|
|
405
|
-
&-collapse-button {
|
|
406
|
-
position: absolute;
|
|
407
|
-
right: 12px;
|
|
408
|
-
bottom: 12px;
|
|
409
|
-
display: flex;
|
|
410
|
-
align-items: center;
|
|
411
|
-
justify-content: center;
|
|
412
|
-
width: @menu-width-collapse-button;
|
|
413
|
-
height: @menu-height-collapse-button;
|
|
414
|
-
border-radius: @menu-border-radius-collapse-button;
|
|
415
|
-
cursor: pointer;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
// sub-menu-inline 的内容区域样式
|
|
419
|
-
&-inline-content {
|
|
420
|
-
height: auto;
|
|
421
|
-
overflow: hidden;
|
|
422
|
-
transition: height @transition-duration-2
|
|
423
|
-
@transition-timing-function-standard;
|
|
424
|
-
|
|
425
|
-
&-hide {
|
|
426
|
-
height: 0;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
// 弹出的 ToolTip 中 a 标签的样式
|
|
431
|
-
&-item-tooltip a {
|
|
432
|
-
color: inherit;
|
|
433
|
-
cursor: text;
|
|
434
|
-
|
|
435
|
-
&:hover,
|
|
436
|
-
&:focus,
|
|
437
|
-
&:active {
|
|
438
|
-
color: inherit;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
// 弹出菜单浮层三角箭头
|
|
443
|
-
&-pop-trigger {
|
|
444
|
-
&.@{prefix}-trigger-position-bl {
|
|
445
|
-
transform: translateY(@menu-horizontal-padding-vertical);
|
|
446
|
-
|
|
447
|
-
.@{prefix}-trigger-arrow {
|
|
448
|
-
z-index: 0;
|
|
449
|
-
border-top: 1px solid @menu-color-border-popup;
|
|
450
|
-
border-left: 1px solid @menu-color-border-popup;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
&.@{prefix}-trigger-position-rt {
|
|
455
|
-
transform: translateX(@menu-vertical-padding-horizontal);
|
|
456
|
-
|
|
457
|
-
.@{prefix}-trigger-arrow {
|
|
458
|
-
z-index: 0;
|
|
459
|
-
border-bottom: 1px solid @menu-color-border-popup;
|
|
460
|
-
border-left: 1px solid @menu-color-border-popup;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
&.@{menu-prefix-cls}-pop-trigger-dark {
|
|
465
|
-
.@{prefix}-trigger-arrow {
|
|
466
|
-
background-color: @menu-dark-color-bg;
|
|
467
|
-
border-color: @menu-dark-color-bg;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
// trigger 里的 menu
|
|
474
|
-
.@{trigger-menu-prefix-cls} {
|
|
475
|
-
position: relative;
|
|
476
|
-
box-sizing: border-box;
|
|
477
|
-
max-height: @dropdown-max-height;
|
|
478
|
-
padding: @dropdown-padding-vertical 0;
|
|
479
|
-
overflow: auto;
|
|
480
|
-
background-color: @dropdown-color-bg;
|
|
481
|
-
border: 1px solid @dropdown-color-border;
|
|
482
|
-
border-radius: @dropdown-border-radius;
|
|
483
|
-
box-shadow: @dropdown-box-shadow;
|
|
484
|
-
|
|
485
|
-
&-hidden {
|
|
486
|
-
display: none;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
&-item,
|
|
490
|
-
&-pop-header {
|
|
491
|
-
position: relative;
|
|
492
|
-
// 避免 Trigger 的小箭头位于其上方
|
|
493
|
-
z-index: 1;
|
|
494
|
-
box-sizing: border-box;
|
|
495
|
-
width: 100%;
|
|
496
|
-
height: @dropdown-option-height;
|
|
497
|
-
padding: 0 @dropdown-option-padding-horizontal;
|
|
498
|
-
|
|
499
|
-
// default
|
|
500
|
-
color: @dropdown-option-color-text_default;
|
|
501
|
-
font-size: @dropdown-font-size;
|
|
502
|
-
line-height: $height;
|
|
503
|
-
text-align: left;
|
|
504
|
-
background-color: @dropdown-option-color-bg_default;
|
|
505
|
-
cursor: pointer;
|
|
506
|
-
.text-ellipsis();
|
|
507
|
-
|
|
508
|
-
// selected
|
|
509
|
-
&.@{trigger-menu-prefix-cls}-selected {
|
|
510
|
-
color: @dropdown-option-color-text_selected;
|
|
511
|
-
font-weight: @dropdown-option-font-weight_selected;
|
|
512
|
-
background-color: @dropdown-option-color-bg_selected;
|
|
513
|
-
transition: all @transition-duration-1 @transition-timing-function-linear;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
// hover
|
|
517
|
-
&:hover {
|
|
518
|
-
color: @dropdown-option-color-text_hover;
|
|
519
|
-
background-color: @dropdown-option-color-bg_hover;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
// disabled
|
|
523
|
-
&.@{trigger-menu-prefix-cls}-disabled {
|
|
524
|
-
color: @dropdown-option-color-text_disabled;
|
|
525
|
-
background-color: @dropdown-option-color-bg_disabled;
|
|
526
|
-
cursor: not-allowed;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
.@{trigger-menu-prefix-cls}-has-icon {
|
|
531
|
-
display: flex;
|
|
532
|
-
align-items: center;
|
|
533
|
-
|
|
534
|
-
.@{trigger-menu-prefix-cls}-icon {
|
|
535
|
-
margin-right: 8px;
|
|
536
|
-
line-height: 1;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
> * {
|
|
540
|
-
flex: none;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.@{trigger-menu-prefix-cls}-title {
|
|
544
|
-
flex: auto;
|
|
545
|
-
.text-ellipsis();
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
&-pop-header {
|
|
550
|
-
display: flex;
|
|
551
|
-
align-items: center;
|
|
552
|
-
justify-content: space-between;
|
|
553
|
-
|
|
554
|
-
.@{trigger-menu-prefix-cls}-icon-suffix {
|
|
555
|
-
margin-left: @dropdown-margin-left-suffix-icon;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
&-group {
|
|
560
|
-
&:first-child &-title {
|
|
561
|
-
padding-top: @dropdown-group-title-padding-top -
|
|
562
|
-
@dropdown-padding-vertical;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
&-group-title {
|
|
567
|
-
box-sizing: border-box;
|
|
568
|
-
width: 100%;
|
|
569
|
-
padding: @dropdown-group-title-padding-top
|
|
570
|
-
@dropdown-group-title-padding-horizontal 0
|
|
571
|
-
@dropdown-group-title-padding-horizontal;
|
|
572
|
-
color: @dropdown-group-title-color-text;
|
|
573
|
-
font-size: @dropdown-group-title-font-size;
|
|
574
|
-
line-height: @dropdown-group-title-height;
|
|
575
|
-
.text-ellipsis();
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
&-pop-trigger {
|
|
579
|
-
// 下拉框的 menu 弹出不需要小箭头
|
|
580
|
-
.@{prefix}-trigger-arrow {
|
|
581
|
-
display: none;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
&-dark {
|
|
586
|
-
background-color: @dropdown-dark-color-bg;
|
|
587
|
-
border-color: @dropdown-dark-color-border;
|
|
588
|
-
|
|
589
|
-
.@{trigger-menu-prefix-cls}-item,
|
|
590
|
-
.@{trigger-menu-prefix-cls}-pop-header {
|
|
591
|
-
// default
|
|
592
|
-
color: @dropdown-dark-option-color-text_default;
|
|
593
|
-
background-color: @dropdown-dark-option-color-bg_default;
|
|
594
|
-
|
|
595
|
-
// selected
|
|
596
|
-
&.@{trigger-menu-prefix-cls}-selected {
|
|
597
|
-
color: @dropdown-dark-option-color-text_selected;
|
|
598
|
-
background-color: @dropdown-dark-option-color-bg_selected;
|
|
599
|
-
|
|
600
|
-
&:hover {
|
|
601
|
-
color: @dropdown-dark-option-color-text_selected;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
// hover
|
|
606
|
-
&:hover {
|
|
607
|
-
color: @dropdown-dark-option-color-text_hover;
|
|
608
|
-
background-color: @dropdown-dark-option-color-bg_hover;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
// disabled
|
|
612
|
-
&.@{trigger-menu-prefix-cls}-disabled {
|
|
613
|
-
color: @dropdown-dark-option-color-text_disabled;
|
|
614
|
-
background-color: @dropdown-dark-option-color-bg_disabled;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
.@{trigger-menu-prefix-cls}-group-title {
|
|
619
|
-
color: @dropdown-dark-group-title-color-text;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
1
|
+
@import '../../style/mixins/index.less';
|
|
2
|
+
@import './token.less';
|
|
3
|
+
@import '../../dropdown/style/token.less';
|
|
4
|
+
|
|
5
|
+
@menu-prefix-cls: ~'@{prefix}-menu';
|
|
6
|
+
@trigger-menu-prefix-cls: ~'@{prefix}-trigger-menu';
|
|
7
|
+
|
|
8
|
+
.applyStyleToItem(@style) {
|
|
9
|
+
.@{menu-prefix-cls}-item,
|
|
10
|
+
.@{menu-prefix-cls}-group-title,
|
|
11
|
+
.@{menu-prefix-cls}-pop-header,
|
|
12
|
+
.@{menu-prefix-cls}-inline-header {
|
|
13
|
+
@style();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@keyframes ~'@{prefix}-menu-selected-item-label-enter' {
|
|
18
|
+
from {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
to {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.@{menu-prefix-cls} {
|
|
28
|
+
position: relative;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
width: 100%;
|
|
31
|
+
font-size: @menu-font-size;
|
|
32
|
+
line-height: @menu-line-height;
|
|
33
|
+
transition: width @transition-duration-2 @transition-timing-function-standard;
|
|
34
|
+
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
outline: 3px solid var(~'@{arco-cssvars-prefix}-color-primary-light-2');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 设置菜单层级的缩进
|
|
40
|
+
&-indent {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
width: @menu-item-indent-spacing;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.text-color-transition() {
|
|
46
|
+
transition: color @transition-duration-2 @transition-timing-function-linear;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// menu-item 一些与 theme 和 mode 无关的样式
|
|
50
|
+
.item-base() {
|
|
51
|
+
@style: {
|
|
52
|
+
position: relative;
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
border-radius: @menu-border-radius;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
|
|
57
|
+
&.@{menu-prefix-cls}-disabled {
|
|
58
|
+
cursor: not-allowed;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.@{menu-prefix-cls}-selected {
|
|
62
|
+
font-weight: @menu-font-weight-item-selected;
|
|
63
|
+
.text-color-transition();
|
|
64
|
+
|
|
65
|
+
svg {
|
|
66
|
+
.text-color-transition();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.@{prefix}-icon,
|
|
71
|
+
.@{menu-prefix-cls}-icon {
|
|
72
|
+
margin-right: @menu-margin-right-item-prefix-icon;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.@{menu-prefix-cls}-icon {
|
|
76
|
+
.@{prefix}-icon {
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
.applyStyleToItem(@style);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.item-mode(@mode) {
|
|
86
|
+
@style-both: {
|
|
87
|
+
padding: 0 ~'@{menu-@{mode}-item-padding-horizontal}';
|
|
88
|
+
line-height: ~'@{menu-@{mode}-item-height}';
|
|
89
|
+
|
|
90
|
+
.@{menu-prefix-cls}-icon-suffix .@{prefix}-icon {
|
|
91
|
+
margin-right: 0;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
@style-vertical-only: {
|
|
96
|
+
margin-bottom: @menu-item-gap;
|
|
97
|
+
&:not(.@{menu-prefix-cls}-has-icon) {
|
|
98
|
+
.text-ellipsis();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.@{menu-prefix-cls}-has-icon {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
|
|
105
|
+
> .@{menu-prefix-cls}-indent-list,
|
|
106
|
+
> .@{menu-prefix-cls}-icon {
|
|
107
|
+
flex: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.@{menu-prefix-cls}-icon {
|
|
111
|
+
line-height: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.@{menu-prefix-cls}-title {
|
|
115
|
+
.text-ellipsis();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.@{menu-prefix-cls}-item-inner {
|
|
120
|
+
.text-ellipsis();
|
|
121
|
+
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.@{menu-prefix-cls}-icon-suffix {
|
|
126
|
+
position: absolute;
|
|
127
|
+
right: @menu-vertical-item-padding-horizontal;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
@style-horizontal-only: {
|
|
132
|
+
.@{prefix}-icon,
|
|
133
|
+
.@{menu-prefix-cls}-icon {
|
|
134
|
+
margin-right: @menu-horizontal-margin-right-item-prefix-icon;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.@{menu-prefix-cls}-icon-suffix {
|
|
138
|
+
margin-left: @menu-margin-left-item-suffix-icon;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
.applyStyleToItem(@style-both);
|
|
143
|
+
.applyStyleToItem(if(@mode = vertical, @style-vertical-only, @style-horizontal-only));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.theme(@theme) {
|
|
147
|
+
&-@{theme} {
|
|
148
|
+
background-color: ~'@{menu-@{theme}-color-bg}';
|
|
149
|
+
|
|
150
|
+
// 处理普通菜单项的状态变化
|
|
151
|
+
@item-style: {
|
|
152
|
+
color: ~'@{menu-@{theme}-color-item_default}';
|
|
153
|
+
background-color: ~'@{menu-@{theme}-color-bg-item_default}';
|
|
154
|
+
|
|
155
|
+
.@{prefix}-icon,
|
|
156
|
+
.@{menu-prefix-cls}-icon {
|
|
157
|
+
color: ~'@{menu-@{theme}-color-icon_default}';
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
color: ~'@{menu-@{theme}-color-item_hover}';
|
|
162
|
+
background-color: ~'@{menu-@{theme}-color-bg-item_hover}';
|
|
163
|
+
|
|
164
|
+
.@{prefix}-icon,
|
|
165
|
+
.@{menu-prefix-cls}-icon {
|
|
166
|
+
color: ~'@{menu-@{theme}-color-icon_hover}';
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&.@{menu-prefix-cls}-selected {
|
|
171
|
+
color: ~'@{menu-@{theme}-color-item_selected}';
|
|
172
|
+
|
|
173
|
+
.@{prefix}-icon,
|
|
174
|
+
.@{menu-prefix-cls}-icon {
|
|
175
|
+
color: ~'@{menu-@{theme}-color-icon_selected}';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.@{menu-prefix-cls}-disabled {
|
|
180
|
+
color: ~'@{menu-@{theme}-color-item_disabled}';
|
|
181
|
+
background-color: ~'@{menu-@{theme}-color-bg-item_disabled}';
|
|
182
|
+
|
|
183
|
+
.@{prefix}-icon,
|
|
184
|
+
.@{menu-prefix-cls}-icon {
|
|
185
|
+
color: ~'@{menu-@{theme}-color-icon_disabled}';
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
.applyStyleToItem(@item-style);
|
|
191
|
+
|
|
192
|
+
// 只有 menuItem 选中时需要背景色
|
|
193
|
+
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-selected {
|
|
194
|
+
background-color: ~'@{menu-@{theme}-color-bg-item_selected}';
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// 子菜单被选中时,没有背景色,所以可以单独设置字体色
|
|
198
|
+
.@{menu-prefix-cls}-inline-header.@{menu-prefix-cls}-selected {
|
|
199
|
+
color: ~'@{menu-@{theme}-color-submenu_selected}';
|
|
200
|
+
|
|
201
|
+
.@{prefix}-icon,
|
|
202
|
+
.@{menu-prefix-cls}-icon {
|
|
203
|
+
color: ~'@{menu-@{theme}-color-submenu_selected}';
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&:hover {
|
|
207
|
+
background-color: ~'@{menu-@{theme}-color-bg-submenu_selected_hover}';
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// 为水平菜单添加项目选中的样式
|
|
212
|
+
&.@{menu-prefix-cls}-horizontal {
|
|
213
|
+
@item-selected-style: {
|
|
214
|
+
&.@{menu-prefix-cls}-selected {
|
|
215
|
+
background: none;
|
|
216
|
+
.text-color-transition();
|
|
217
|
+
|
|
218
|
+
&:hover {
|
|
219
|
+
background-color: ~'@{menu-@{theme}-color-bg-item_hover}';
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
.applyStyleToItem(@item-selected-style);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// 处理标题样式
|
|
228
|
+
.@{menu-prefix-cls}-group-title {
|
|
229
|
+
color: ~'@{menu-@{theme}-color-group-title}';
|
|
230
|
+
// 快速消除 hover 的特殊样式
|
|
231
|
+
pointer-events: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// 展开折叠按钮颜色
|
|
235
|
+
.@{menu-prefix-cls}-collapse-button {
|
|
236
|
+
color: ~'@{menu-@{theme}-color-button}';
|
|
237
|
+
background-color: ~'@{menu-@{theme}-color-bg-button}';
|
|
238
|
+
|
|
239
|
+
&:hover {
|
|
240
|
+
background-color: ~'@{menu-@{theme}-color-bg-button_hover}';
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.item-base();
|
|
247
|
+
.theme(light);
|
|
248
|
+
.theme(dark);
|
|
249
|
+
|
|
250
|
+
// 校正 a 标签颜色
|
|
251
|
+
a,
|
|
252
|
+
a:hover,
|
|
253
|
+
a:focus,
|
|
254
|
+
a:active {
|
|
255
|
+
color: inherit;
|
|
256
|
+
text-decoration: none;
|
|
257
|
+
cursor: inherit;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&-inner {
|
|
261
|
+
box-sizing: border-box;
|
|
262
|
+
width: 100%;
|
|
263
|
+
height: 100%;
|
|
264
|
+
overflow: auto;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// 展开折叠图标
|
|
268
|
+
&-icon-suffix {
|
|
269
|
+
&.is-open {
|
|
270
|
+
transform: rotate(180deg);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&-vertical {
|
|
275
|
+
.item-mode(vertical);
|
|
276
|
+
|
|
277
|
+
.@{menu-prefix-cls}-inner {
|
|
278
|
+
padding: @menu-vertical-padding-vertical @menu-vertical-padding-horizontal;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-indented {
|
|
282
|
+
display: flex;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// 为 header 右侧预留下放置 suffixIcon 的空间
|
|
286
|
+
.@{menu-prefix-cls}-pop-header,
|
|
287
|
+
.@{menu-prefix-cls}-inline-header {
|
|
288
|
+
padding-right: @menu-vertical-item-padding-horizontal + 16;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// 水平菜单中,仅允许出现普通 item 和 popSubMenu
|
|
293
|
+
&-horizontal {
|
|
294
|
+
width: 100%;
|
|
295
|
+
height: auto;
|
|
296
|
+
|
|
297
|
+
.item-mode(horizontal);
|
|
298
|
+
|
|
299
|
+
.@{menu-prefix-cls}-inner {
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
padding: @menu-horizontal-padding-vertical
|
|
303
|
+
@menu-horizontal-padding-horizontal;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.@{menu-prefix-cls}-item,
|
|
307
|
+
.@{menu-prefix-cls}-pop {
|
|
308
|
+
display: inline-block;
|
|
309
|
+
flex-shrink: 0;
|
|
310
|
+
vertical-align: middle;
|
|
311
|
+
|
|
312
|
+
&:not(:first-child) {
|
|
313
|
+
margin-left: @menu-horizontal-item-gap;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.@{menu-prefix-cls}-pop::after {
|
|
318
|
+
position: absolute;
|
|
319
|
+
bottom: -$height;
|
|
320
|
+
left: 0;
|
|
321
|
+
width: 100%;
|
|
322
|
+
height: @menu-horizontal-padding-vertical;
|
|
323
|
+
content: ' ';
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// 水平菜单的动态折叠容器
|
|
328
|
+
&-overflow {
|
|
329
|
+
&-wrap {
|
|
330
|
+
width: 100%;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
&-sub-menu-mirror,
|
|
334
|
+
&-hidden-menu-item {
|
|
335
|
+
position: absolute !important;
|
|
336
|
+
white-space: nowrap;
|
|
337
|
+
visibility: hidden;
|
|
338
|
+
pointer-events: none;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// 选中状态下的提示浮标,相对于 MenuItem 定位
|
|
343
|
+
&-selected-label {
|
|
344
|
+
position: absolute;
|
|
345
|
+
right: $left;
|
|
346
|
+
bottom: -@menu-horizontal-padding-vertical;
|
|
347
|
+
left: @menu-horizontal-item-padding-horizontal;
|
|
348
|
+
height: @menu-height-label-item-selected;
|
|
349
|
+
background-color: @menu-color-label-item-selected;
|
|
350
|
+
animation: ~'@{prefix}-menu-selected-item-label-enter' @transition-duration-2
|
|
351
|
+
@transition-timing-function-linear;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&-pop-button {
|
|
355
|
+
width: auto;
|
|
356
|
+
background: none;
|
|
357
|
+
box-shadow: none;
|
|
358
|
+
|
|
359
|
+
&.@{menu-prefix-cls}-collapsed {
|
|
360
|
+
width: auto;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
@item-style: {
|
|
364
|
+
width: @menu-pop-button-size;
|
|
365
|
+
height: $width;
|
|
366
|
+
margin-bottom: @menu-pop-button-margin-bottom;
|
|
367
|
+
line-height: $height;
|
|
368
|
+
border: 1px solid @menu-pop-button-border-color;
|
|
369
|
+
border-radius: 50%;
|
|
370
|
+
box-shadow: @menu-pop-button-box-shadow;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
.applyStyleToItem(@item-style);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// 折叠样式
|
|
377
|
+
&-collapsed {
|
|
378
|
+
width: @menu-collapse-width;
|
|
379
|
+
|
|
380
|
+
.@{menu-prefix-cls}-inner {
|
|
381
|
+
padding: @menu-collapse-padding-vertical @menu-collapse-padding-horizontal;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.@{menu-prefix-cls}-icon-suffix {
|
|
385
|
+
display: none;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Hide text after icon when menu is collapsed
|
|
389
|
+
@style-item-text: {
|
|
390
|
+
.@{prefix}-icon {
|
|
391
|
+
margin-right: 100%;
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
.@{menu-prefix-cls}-has-icon {
|
|
396
|
+
> *:not(.@{menu-prefix-cls}-icon) {
|
|
397
|
+
opacity: 0;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.applyStyleToItem(@style-item-text);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
// 折叠按钮
|
|
405
|
+
&-collapse-button {
|
|
406
|
+
position: absolute;
|
|
407
|
+
right: 12px;
|
|
408
|
+
bottom: 12px;
|
|
409
|
+
display: flex;
|
|
410
|
+
align-items: center;
|
|
411
|
+
justify-content: center;
|
|
412
|
+
width: @menu-width-collapse-button;
|
|
413
|
+
height: @menu-height-collapse-button;
|
|
414
|
+
border-radius: @menu-border-radius-collapse-button;
|
|
415
|
+
cursor: pointer;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// sub-menu-inline 的内容区域样式
|
|
419
|
+
&-inline-content {
|
|
420
|
+
height: auto;
|
|
421
|
+
overflow: hidden;
|
|
422
|
+
transition: height @transition-duration-2
|
|
423
|
+
@transition-timing-function-standard;
|
|
424
|
+
|
|
425
|
+
&-hide {
|
|
426
|
+
height: 0;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// 弹出的 ToolTip 中 a 标签的样式
|
|
431
|
+
&-item-tooltip a {
|
|
432
|
+
color: inherit;
|
|
433
|
+
cursor: text;
|
|
434
|
+
|
|
435
|
+
&:hover,
|
|
436
|
+
&:focus,
|
|
437
|
+
&:active {
|
|
438
|
+
color: inherit;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// 弹出菜单浮层三角箭头
|
|
443
|
+
&-pop-trigger {
|
|
444
|
+
&.@{prefix}-trigger-position-bl {
|
|
445
|
+
transform: translateY(@menu-horizontal-padding-vertical);
|
|
446
|
+
|
|
447
|
+
.@{prefix}-trigger-arrow {
|
|
448
|
+
z-index: 0;
|
|
449
|
+
border-top: 1px solid @menu-color-border-popup;
|
|
450
|
+
border-left: 1px solid @menu-color-border-popup;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&.@{prefix}-trigger-position-rt {
|
|
455
|
+
transform: translateX(@menu-vertical-padding-horizontal);
|
|
456
|
+
|
|
457
|
+
.@{prefix}-trigger-arrow {
|
|
458
|
+
z-index: 0;
|
|
459
|
+
border-bottom: 1px solid @menu-color-border-popup;
|
|
460
|
+
border-left: 1px solid @menu-color-border-popup;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
&.@{menu-prefix-cls}-pop-trigger-dark {
|
|
465
|
+
.@{prefix}-trigger-arrow {
|
|
466
|
+
background-color: @menu-dark-color-bg;
|
|
467
|
+
border-color: @menu-dark-color-bg;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// trigger 里的 menu
|
|
474
|
+
.@{trigger-menu-prefix-cls} {
|
|
475
|
+
position: relative;
|
|
476
|
+
box-sizing: border-box;
|
|
477
|
+
max-height: @dropdown-max-height;
|
|
478
|
+
padding: @dropdown-padding-vertical 0;
|
|
479
|
+
overflow: auto;
|
|
480
|
+
background-color: @dropdown-color-bg;
|
|
481
|
+
border: 1px solid @dropdown-color-border;
|
|
482
|
+
border-radius: @dropdown-border-radius;
|
|
483
|
+
box-shadow: @dropdown-box-shadow;
|
|
484
|
+
|
|
485
|
+
&-hidden {
|
|
486
|
+
display: none;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
&-item,
|
|
490
|
+
&-pop-header {
|
|
491
|
+
position: relative;
|
|
492
|
+
// 避免 Trigger 的小箭头位于其上方
|
|
493
|
+
z-index: 1;
|
|
494
|
+
box-sizing: border-box;
|
|
495
|
+
width: 100%;
|
|
496
|
+
height: @dropdown-option-height;
|
|
497
|
+
padding: 0 @dropdown-option-padding-horizontal;
|
|
498
|
+
|
|
499
|
+
// default
|
|
500
|
+
color: @dropdown-option-color-text_default;
|
|
501
|
+
font-size: @dropdown-font-size;
|
|
502
|
+
line-height: $height;
|
|
503
|
+
text-align: left;
|
|
504
|
+
background-color: @dropdown-option-color-bg_default;
|
|
505
|
+
cursor: pointer;
|
|
506
|
+
.text-ellipsis();
|
|
507
|
+
|
|
508
|
+
// selected
|
|
509
|
+
&.@{trigger-menu-prefix-cls}-selected {
|
|
510
|
+
color: @dropdown-option-color-text_selected;
|
|
511
|
+
font-weight: @dropdown-option-font-weight_selected;
|
|
512
|
+
background-color: @dropdown-option-color-bg_selected;
|
|
513
|
+
transition: all @transition-duration-1 @transition-timing-function-linear;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// hover
|
|
517
|
+
&:hover {
|
|
518
|
+
color: @dropdown-option-color-text_hover;
|
|
519
|
+
background-color: @dropdown-option-color-bg_hover;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// disabled
|
|
523
|
+
&.@{trigger-menu-prefix-cls}-disabled {
|
|
524
|
+
color: @dropdown-option-color-text_disabled;
|
|
525
|
+
background-color: @dropdown-option-color-bg_disabled;
|
|
526
|
+
cursor: not-allowed;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.@{trigger-menu-prefix-cls}-has-icon {
|
|
531
|
+
display: flex;
|
|
532
|
+
align-items: center;
|
|
533
|
+
|
|
534
|
+
.@{trigger-menu-prefix-cls}-icon {
|
|
535
|
+
margin-right: 8px;
|
|
536
|
+
line-height: 1;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
> * {
|
|
540
|
+
flex: none;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.@{trigger-menu-prefix-cls}-title {
|
|
544
|
+
flex: auto;
|
|
545
|
+
.text-ellipsis();
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
&-pop-header {
|
|
550
|
+
display: flex;
|
|
551
|
+
align-items: center;
|
|
552
|
+
justify-content: space-between;
|
|
553
|
+
|
|
554
|
+
.@{trigger-menu-prefix-cls}-icon-suffix {
|
|
555
|
+
margin-left: @dropdown-margin-left-suffix-icon;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
&-group {
|
|
560
|
+
&:first-child &-title {
|
|
561
|
+
padding-top: @dropdown-group-title-padding-top -
|
|
562
|
+
@dropdown-padding-vertical;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
&-group-title {
|
|
567
|
+
box-sizing: border-box;
|
|
568
|
+
width: 100%;
|
|
569
|
+
padding: @dropdown-group-title-padding-top
|
|
570
|
+
@dropdown-group-title-padding-horizontal 0
|
|
571
|
+
@dropdown-group-title-padding-horizontal;
|
|
572
|
+
color: @dropdown-group-title-color-text;
|
|
573
|
+
font-size: @dropdown-group-title-font-size;
|
|
574
|
+
line-height: @dropdown-group-title-height;
|
|
575
|
+
.text-ellipsis();
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
&-pop-trigger {
|
|
579
|
+
// 下拉框的 menu 弹出不需要小箭头
|
|
580
|
+
.@{prefix}-trigger-arrow {
|
|
581
|
+
display: none;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
&-dark {
|
|
586
|
+
background-color: @dropdown-dark-color-bg;
|
|
587
|
+
border-color: @dropdown-dark-color-border;
|
|
588
|
+
|
|
589
|
+
.@{trigger-menu-prefix-cls}-item,
|
|
590
|
+
.@{trigger-menu-prefix-cls}-pop-header {
|
|
591
|
+
// default
|
|
592
|
+
color: @dropdown-dark-option-color-text_default;
|
|
593
|
+
background-color: @dropdown-dark-option-color-bg_default;
|
|
594
|
+
|
|
595
|
+
// selected
|
|
596
|
+
&.@{trigger-menu-prefix-cls}-selected {
|
|
597
|
+
color: @dropdown-dark-option-color-text_selected;
|
|
598
|
+
background-color: @dropdown-dark-option-color-bg_selected;
|
|
599
|
+
|
|
600
|
+
&:hover {
|
|
601
|
+
color: @dropdown-dark-option-color-text_selected;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
// hover
|
|
606
|
+
&:hover {
|
|
607
|
+
color: @dropdown-dark-option-color-text_hover;
|
|
608
|
+
background-color: @dropdown-dark-option-color-bg_hover;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// disabled
|
|
612
|
+
&.@{trigger-menu-prefix-cls}-disabled {
|
|
613
|
+
color: @dropdown-dark-option-color-text_disabled;
|
|
614
|
+
background-color: @dropdown-dark-option-color-bg_disabled;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.@{trigger-menu-prefix-cls}-group-title {
|
|
619
|
+
color: @dropdown-dark-group-title-color-text;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|