@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,230 +1,230 @@
|
|
|
1
|
-
@import './token.less';
|
|
2
|
-
|
|
3
|
-
@drawer-prefix-cls: ~'@{prefix}-drawer';
|
|
4
|
-
|
|
5
|
-
.@{drawer-prefix-cls}-container {
|
|
6
|
-
position: fixed;
|
|
7
|
-
top: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
bottom: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
z-index: @z-index-drawer;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.@{drawer-prefix-cls}-mask {
|
|
15
|
-
position: absolute;
|
|
16
|
-
top: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
left: 0;
|
|
20
|
-
background-color: var(~'@{arco-cssvars-prefix}-color-mask-bg');
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.@{drawer-prefix-cls} {
|
|
24
|
-
position: absolute;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
overflow: auto;
|
|
30
|
-
line-height: @line-height-base;
|
|
31
|
-
background-color: var(~'@{arco-cssvars-prefix}-color-bg-3');
|
|
32
|
-
|
|
33
|
-
&-header {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-shrink: 0;
|
|
36
|
-
align-items: center;
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: @drawer-size-header-height;
|
|
40
|
-
padding: 0 @drawer-padding-horizontal;
|
|
41
|
-
border-bottom: @border-1 solid @drawer-color-border;
|
|
42
|
-
|
|
43
|
-
.@{drawer-prefix-cls}-title {
|
|
44
|
-
margin-right: auto;
|
|
45
|
-
color: @drawer-color-header-text;
|
|
46
|
-
font-weight: @drawer-font-header-weight;
|
|
47
|
-
font-size: @drawer-font-header-size;
|
|
48
|
-
text-align: left;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.@{drawer-prefix-cls}-close-btn {
|
|
52
|
-
margin-left: 8px;
|
|
53
|
-
color: @drawer-color-header-text;
|
|
54
|
-
font-size: @drawer-font-size-close-icon;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-footer {
|
|
60
|
-
flex-shrink: 0;
|
|
61
|
-
box-sizing: border-box;
|
|
62
|
-
padding: @drawer-padding-footer-vertical @drawer-padding-horizontal;
|
|
63
|
-
text-align: right;
|
|
64
|
-
border-top: @border-1 solid @drawer-color-border;
|
|
65
|
-
|
|
66
|
-
> .@{prefix}-btn {
|
|
67
|
-
margin-left: @drawer-margin-footer-button-left;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&-body {
|
|
72
|
-
position: relative;
|
|
73
|
-
flex: 1;
|
|
74
|
-
box-sizing: border-box;
|
|
75
|
-
height: 100%;
|
|
76
|
-
padding: @drawer-padding-content-vertical @drawer-padding-horizontal;
|
|
77
|
-
overflow: auto;
|
|
78
|
-
color: @drawer-color-content-text;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.fade-drawer-enter-from,
|
|
83
|
-
.fade-drawer-appear-from {
|
|
84
|
-
opacity: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.fade-drawer-enter-to,
|
|
88
|
-
.fade-drawer-appear-to {
|
|
89
|
-
opacity: 1;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.fade-drawer-enter-active,
|
|
93
|
-
.fade-drawer-appear-active {
|
|
94
|
-
transition: opacity @transition-duration-3
|
|
95
|
-
@transition-timing-function-standard;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.fade-drawer-leave-from {
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.fade-drawer-leave-to {
|
|
103
|
-
opacity: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.fade-drawer-leave-active {
|
|
107
|
-
transition: opacity @transition-duration-3
|
|
108
|
-
@transition-timing-function-standard;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.slide-left-drawer-enter-from,
|
|
112
|
-
.slide-left-drawer-appear-from {
|
|
113
|
-
transform: translateX(-100%);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.slide-left-drawer-enter-to,
|
|
117
|
-
.slide-left-drawer-appear-to {
|
|
118
|
-
transform: translateX(0);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.slide-left-drawer-enter-active,
|
|
122
|
-
.slide-left-drawer-appear-active {
|
|
123
|
-
transition: transform @transition-duration-3
|
|
124
|
-
@transition-timing-function-standard;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.slide-left-drawer-leave-from {
|
|
128
|
-
transform: translateX(0);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.slide-left-drawer-leave-to {
|
|
132
|
-
transform: translateX(-100%);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.slide-left-drawer-leave-active {
|
|
136
|
-
transition: transform @transition-duration-3
|
|
137
|
-
@transition-timing-function-standard;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.slide-right-drawer-enter-from,
|
|
141
|
-
.slide-right-drawer-appear-from {
|
|
142
|
-
transform: translateX(100%);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.slide-right-drawer-enter-to,
|
|
146
|
-
.slide-right-drawer-appear-to {
|
|
147
|
-
transform: translateX(0);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.slide-right-drawer-enter-active,
|
|
151
|
-
.slide-right-drawer-appear-active {
|
|
152
|
-
transition: transform @transition-duration-3
|
|
153
|
-
@transition-timing-function-standard;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.slide-right-drawer-leave-from {
|
|
157
|
-
transform: translateX(0);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.slide-right-drawer-leave-to {
|
|
161
|
-
transform: translateX(100%);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.slide-right-drawer-leave-active {
|
|
165
|
-
transition: transform @transition-duration-3
|
|
166
|
-
@transition-timing-function-standard;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.slide-top-drawer-enter,
|
|
170
|
-
.slide-top-drawer-appear {
|
|
171
|
-
transform: translateY(-100%);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.slide-top-drawer-enter-from,
|
|
175
|
-
.slide-top-drawer-appear-from {
|
|
176
|
-
transform: translateY(-100%);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.slide-top-drawer-enter-to,
|
|
180
|
-
.slide-top-drawer-appear-to {
|
|
181
|
-
transform: translateY(0);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.slide-top-drawer-enter-active,
|
|
185
|
-
.slide-top-drawer-appear-active {
|
|
186
|
-
transition: transform @transition-duration-3
|
|
187
|
-
@transition-timing-function-standard;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.slide-top-drawer-leave-from {
|
|
191
|
-
transform: translateY(0);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.slide-top-drawer-leave-to {
|
|
195
|
-
transform: translateY(-100%);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.slide-top-drawer-leave-active {
|
|
199
|
-
transition: transform @transition-duration-3
|
|
200
|
-
@transition-timing-function-standard;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.slide-bottom-drawer-enter-from,
|
|
204
|
-
.slide-bottom-drawer-appear-from {
|
|
205
|
-
transform: translateY(100%);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.slide-bottom-drawer-enter-to,
|
|
209
|
-
.slide-bottom-drawer-appear-to {
|
|
210
|
-
transform: translateY(0);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.slide-bottom-drawer-enter-active,
|
|
214
|
-
.slide-bottom-drawer-appear-active {
|
|
215
|
-
transition: transform @transition-duration-3
|
|
216
|
-
@transition-timing-function-standard;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.slide-bottom-drawer-leave-from {
|
|
220
|
-
transform: translateY(0);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.slide-bottom-drawer-leave-to {
|
|
224
|
-
transform: translateY(100%);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.slide-bottom-drawer-leave-active {
|
|
228
|
-
transition: transform @transition-duration-3
|
|
229
|
-
@transition-timing-function-standard;
|
|
230
|
-
}
|
|
1
|
+
@import './token.less';
|
|
2
|
+
|
|
3
|
+
@drawer-prefix-cls: ~'@{prefix}-drawer';
|
|
4
|
+
|
|
5
|
+
.@{drawer-prefix-cls}-container {
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
z-index: @z-index-drawer;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.@{drawer-prefix-cls}-mask {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
right: 0;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
background-color: var(~'@{arco-cssvars-prefix}-color-mask-bg');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.@{drawer-prefix-cls} {
|
|
24
|
+
position: absolute;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
line-height: @line-height-base;
|
|
31
|
+
background-color: var(~'@{arco-cssvars-prefix}-color-bg-3');
|
|
32
|
+
|
|
33
|
+
&-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
align-items: center;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: @drawer-size-header-height;
|
|
40
|
+
padding: 0 @drawer-padding-horizontal;
|
|
41
|
+
border-bottom: @border-1 solid @drawer-color-border;
|
|
42
|
+
|
|
43
|
+
.@{drawer-prefix-cls}-title {
|
|
44
|
+
margin-right: auto;
|
|
45
|
+
color: @drawer-color-header-text;
|
|
46
|
+
font-weight: @drawer-font-header-weight;
|
|
47
|
+
font-size: @drawer-font-header-size;
|
|
48
|
+
text-align: left;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.@{drawer-prefix-cls}-close-btn {
|
|
52
|
+
margin-left: 8px;
|
|
53
|
+
color: @drawer-color-header-text;
|
|
54
|
+
font-size: @drawer-font-size-close-icon;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-footer {
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
padding: @drawer-padding-footer-vertical @drawer-padding-horizontal;
|
|
63
|
+
text-align: right;
|
|
64
|
+
border-top: @border-1 solid @drawer-color-border;
|
|
65
|
+
|
|
66
|
+
> .@{prefix}-btn {
|
|
67
|
+
margin-left: @drawer-margin-footer-button-left;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-body {
|
|
72
|
+
position: relative;
|
|
73
|
+
flex: 1;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
height: 100%;
|
|
76
|
+
padding: @drawer-padding-content-vertical @drawer-padding-horizontal;
|
|
77
|
+
overflow: auto;
|
|
78
|
+
color: @drawer-color-content-text;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.fade-drawer-enter-from,
|
|
83
|
+
.fade-drawer-appear-from {
|
|
84
|
+
opacity: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.fade-drawer-enter-to,
|
|
88
|
+
.fade-drawer-appear-to {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.fade-drawer-enter-active,
|
|
93
|
+
.fade-drawer-appear-active {
|
|
94
|
+
transition: opacity @transition-duration-3
|
|
95
|
+
@transition-timing-function-standard;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.fade-drawer-leave-from {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.fade-drawer-leave-to {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.fade-drawer-leave-active {
|
|
107
|
+
transition: opacity @transition-duration-3
|
|
108
|
+
@transition-timing-function-standard;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.slide-left-drawer-enter-from,
|
|
112
|
+
.slide-left-drawer-appear-from {
|
|
113
|
+
transform: translateX(-100%);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.slide-left-drawer-enter-to,
|
|
117
|
+
.slide-left-drawer-appear-to {
|
|
118
|
+
transform: translateX(0);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.slide-left-drawer-enter-active,
|
|
122
|
+
.slide-left-drawer-appear-active {
|
|
123
|
+
transition: transform @transition-duration-3
|
|
124
|
+
@transition-timing-function-standard;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.slide-left-drawer-leave-from {
|
|
128
|
+
transform: translateX(0);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.slide-left-drawer-leave-to {
|
|
132
|
+
transform: translateX(-100%);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.slide-left-drawer-leave-active {
|
|
136
|
+
transition: transform @transition-duration-3
|
|
137
|
+
@transition-timing-function-standard;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.slide-right-drawer-enter-from,
|
|
141
|
+
.slide-right-drawer-appear-from {
|
|
142
|
+
transform: translateX(100%);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.slide-right-drawer-enter-to,
|
|
146
|
+
.slide-right-drawer-appear-to {
|
|
147
|
+
transform: translateX(0);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.slide-right-drawer-enter-active,
|
|
151
|
+
.slide-right-drawer-appear-active {
|
|
152
|
+
transition: transform @transition-duration-3
|
|
153
|
+
@transition-timing-function-standard;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.slide-right-drawer-leave-from {
|
|
157
|
+
transform: translateX(0);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.slide-right-drawer-leave-to {
|
|
161
|
+
transform: translateX(100%);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.slide-right-drawer-leave-active {
|
|
165
|
+
transition: transform @transition-duration-3
|
|
166
|
+
@transition-timing-function-standard;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.slide-top-drawer-enter,
|
|
170
|
+
.slide-top-drawer-appear {
|
|
171
|
+
transform: translateY(-100%);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.slide-top-drawer-enter-from,
|
|
175
|
+
.slide-top-drawer-appear-from {
|
|
176
|
+
transform: translateY(-100%);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.slide-top-drawer-enter-to,
|
|
180
|
+
.slide-top-drawer-appear-to {
|
|
181
|
+
transform: translateY(0);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.slide-top-drawer-enter-active,
|
|
185
|
+
.slide-top-drawer-appear-active {
|
|
186
|
+
transition: transform @transition-duration-3
|
|
187
|
+
@transition-timing-function-standard;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.slide-top-drawer-leave-from {
|
|
191
|
+
transform: translateY(0);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.slide-top-drawer-leave-to {
|
|
195
|
+
transform: translateY(-100%);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.slide-top-drawer-leave-active {
|
|
199
|
+
transition: transform @transition-duration-3
|
|
200
|
+
@transition-timing-function-standard;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.slide-bottom-drawer-enter-from,
|
|
204
|
+
.slide-bottom-drawer-appear-from {
|
|
205
|
+
transform: translateY(100%);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.slide-bottom-drawer-enter-to,
|
|
209
|
+
.slide-bottom-drawer-appear-to {
|
|
210
|
+
transform: translateY(0);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.slide-bottom-drawer-enter-active,
|
|
214
|
+
.slide-bottom-drawer-appear-active {
|
|
215
|
+
transition: transform @transition-duration-3
|
|
216
|
+
@transition-timing-function-standard;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.slide-bottom-drawer-leave-from {
|
|
220
|
+
transform: translateY(0);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.slide-bottom-drawer-leave-to {
|
|
224
|
+
transform: translateY(100%);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.slide-bottom-drawer-leave-active {
|
|
228
|
+
transition: transform @transition-duration-3
|
|
229
|
+
@transition-timing-function-standard;
|
|
230
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@import '../../style/theme/index.less';
|
|
2
|
-
|
|
3
|
-
@drawer-size-header-height: @size-12;
|
|
4
|
-
@drawer-margin-footer-button-left: @spacing-6;
|
|
5
|
-
@drawer-font-header-size: @font-size-title-1;
|
|
6
|
-
@drawer-padding-horizontal: @spacing-7;
|
|
7
|
-
@drawer-padding-footer-vertical: @spacing-7;
|
|
8
|
-
@drawer-padding-content-vertical: @spacing-6;
|
|
9
|
-
@drawer-font-header-weight: @font-weight-500;
|
|
10
|
-
|
|
11
|
-
@drawer-color-border: var(~'@{arco-cssvars-prefix}-color-neutral-3');
|
|
12
|
-
@drawer-color-header-text: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
13
|
-
@drawer-color-content-text: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
14
|
-
|
|
15
|
-
@drawer-position-close-icon-right: @spacing-7;
|
|
16
|
-
@drawer-font-size-close-icon: @size-3;
|
|
1
|
+
@import '../../style/theme/index.less';
|
|
2
|
+
|
|
3
|
+
@drawer-size-header-height: @size-12;
|
|
4
|
+
@drawer-margin-footer-button-left: @spacing-6;
|
|
5
|
+
@drawer-font-header-size: @font-size-title-1;
|
|
6
|
+
@drawer-padding-horizontal: @spacing-7;
|
|
7
|
+
@drawer-padding-footer-vertical: @spacing-7;
|
|
8
|
+
@drawer-padding-content-vertical: @spacing-6;
|
|
9
|
+
@drawer-font-header-weight: @font-weight-500;
|
|
10
|
+
|
|
11
|
+
@drawer-color-border: var(~'@{arco-cssvars-prefix}-color-neutral-3');
|
|
12
|
+
@drawer-color-header-text: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
13
|
+
@drawer-color-content-text: var(~'@{arco-cssvars-prefix}-color-text-1');
|
|
14
|
+
|
|
15
|
+
@drawer-position-close-icon-right: @spacing-7;
|
|
16
|
+
@drawer-font-size-close-icon: @size-3;
|
|
@@ -49,10 +49,24 @@ const _sfc_main = vue.defineComponent({
|
|
|
49
49
|
emit("scroll", e);
|
|
50
50
|
};
|
|
51
51
|
const style = vue.computed(() => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
52
|
+
const heightStyle = {};
|
|
53
|
+
const hasMaxHeight = dropdownCtx.popupMaxHeight && is.isNumber(+dropdownCtx.popupMaxHeight);
|
|
54
|
+
if (hasMaxHeight) {
|
|
55
|
+
heightStyle.maxHeight = `${dropdownCtx.popupMaxHeight}px`;
|
|
56
|
+
}
|
|
57
|
+
if (dropdownCtx.popupMinHeight && is.isNumber(+dropdownCtx.popupMinHeight)) {
|
|
58
|
+
if (hasMaxHeight) {
|
|
59
|
+
if (+dropdownCtx.popupMaxHeight < +dropdownCtx.popupMinHeight) {
|
|
60
|
+
heightStyle.minHeight = `${dropdownCtx.popupMaxHeight}px`;
|
|
61
|
+
} else {
|
|
62
|
+
heightStyle.minHeight = `${dropdownCtx.popupMinHeight}px`;
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
heightStyle.minHeight = `${dropdownCtx.popupMinHeight}px`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (Object.keys(heightStyle).length > 0) {
|
|
69
|
+
return heightStyle;
|
|
56
70
|
}
|
|
57
71
|
if (!dropdownCtx.popupMaxHeight) {
|
|
58
72
|
return {
|
package/lib/dropdown/dropdown.js
CHANGED
|
@@ -33,7 +33,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
33
33
|
type: [String, Object]
|
|
34
34
|
},
|
|
35
35
|
popupMaxHeight: {
|
|
36
|
-
type: [Boolean, Number],
|
|
36
|
+
type: [Boolean, Number, String],
|
|
37
|
+
default: true
|
|
38
|
+
},
|
|
39
|
+
popupMinHeight: {
|
|
40
|
+
type: [Boolean, Number, String],
|
|
37
41
|
default: true
|
|
38
42
|
},
|
|
39
43
|
hideOnSelect: {
|
|
@@ -51,7 +55,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
51
55
|
"select": (value, ev) => true
|
|
52
56
|
},
|
|
53
57
|
setup(props, { emit }) {
|
|
54
|
-
const {
|
|
58
|
+
const {
|
|
59
|
+
defaultPopupVisible,
|
|
60
|
+
popupVisible,
|
|
61
|
+
popupMaxHeight,
|
|
62
|
+
popupMinHeight
|
|
63
|
+
} = vue.toRefs(props);
|
|
55
64
|
const prefixCls = globalConfig.getPrefixCls("dropdown");
|
|
56
65
|
const { computedPopupVisible, handlePopupVisibleChange } = useTrigger.useTrigger({
|
|
57
66
|
defaultPopupVisible,
|
|
@@ -66,6 +75,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
66
75
|
context.dropdownInjectionKey,
|
|
67
76
|
vue.reactive({
|
|
68
77
|
popupMaxHeight,
|
|
78
|
+
popupMinHeight,
|
|
69
79
|
onOptionClick: handleOptionClick
|
|
70
80
|
})
|
|
71
81
|
);
|