@julingbase/jly-arco-design 0.0.1 → 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 -113
- package/dist/arco-vue-icon.js.map +1 -1
- package/dist/arco-vue-icon.min.js.map +1 -1
- package/dist/arco-vue.js +36 -7
- package/dist/arco-vue.js.map +1 -1
- package/dist/arco-vue.min.js +472 -469
- package/dist/arco-vue.min.js.map +1 -1
- package/es/_components/auto-tooltip/style/index.less +10 -10
- package/es/_components/input-label/input-label.d.ts +3 -3
- 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/input-range.d.ts +4 -4
- package/es/_components/picker/input.d.ts +2 -2
- package/es/_components/picker/style/index.less +191 -191
- package/es/_components/picker/style/token.less +58 -58
- package/es/_components/select-view/select-view.d.ts +1 -1
- 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/auto-complete.d.ts +3 -3
- package/es/auto-complete/index.d.ts +9 -9
- 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/calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +3 -3
- 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/cascader-panel.d.ts +1 -1
- package/es/cascader/cascader.d.ts +5 -5
- package/es/cascader/index.d.ts +15 -15
- package/es/cascader/style/index.less +234 -234
- package/es/cascader/style/token.less +24 -24
- package/es/checkbox/checkbox-group.d.ts +2 -2
- package/es/checkbox/checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +5 -5
- 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/color-picker.d.ts +1 -1
- package/es/color-picker/index.d.ts +3 -3
- 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 +7 -7
- package/es/date-picker/picker.d.ts +5 -5
- package/es/date-picker/range-picker.d.ts +7 -7
- 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 +21 -3
- package/es/dropdown/dropdown-panel.js +18 -4
- package/es/dropdown/dropdown.d.ts +21 -3
- package/es/dropdown/dropdown.js +18 -3
- package/es/dropdown/index.d.ts +57 -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/form-item.d.ts +3 -3
- package/es/form/index.d.ts +3 -3
- 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 +8 -8
- package/es/input/input-password.d.ts +2 -2
- package/es/input/input.d.ts +2 -2
- 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/index.d.ts +3 -3
- package/es/input-number/input-number.d.ts +1 -1
- package/es/input-number/style/index.less +160 -160
- package/es/input-number/style/token.less +19 -19
- package/es/input-tag/index.d.ts +21 -21
- package/es/input-tag/input-tag.d.ts +7 -7
- 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 +9 -9
- package/es/mention/mention.d.ts +3 -3
- 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/page-jumper.d.ts +3 -3
- package/es/pagination/page-options.d.ts +16 -16
- 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 +8 -8
- package/es/radio/radio-group.d.ts +2 -2
- package/es/radio/radio.d.ts +2 -2
- package/es/radio/style/index.less +266 -266
- package/es/radio/style/token.less +55 -55
- package/es/rate/index.d.ts +9 -9
- package/es/rate/rate.d.ts +3 -3
- 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/index.d.ts +16 -16
- package/es/select/option.d.ts +5 -5
- package/es/select/select.d.ts +4 -4
- 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/index.d.ts +12 -12
- package/es/slider/slider-input.d.ts +3 -3
- package/es/slider/slider.d.ts +5 -5
- 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 +13 -13
- 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/index.d.ts +6 -6
- package/es/textarea/style/index.less +64 -64
- package/es/textarea/textarea.d.ts +2 -2
- package/es/time-picker/index.d.ts +15 -15
- 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 +7 -7
- 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/index.d.ts +16 -16
- package/es/transfer/style/index.less +294 -294
- package/es/transfer/style/token.less +48 -48
- package/es/transfer/transfer-view.d.ts +5 -5
- package/es/transfer/transfer.d.ts +7 -7
- package/es/tree/base-node.d.ts +5 -5
- package/es/tree/style/index.less +396 -396
- package/es/tree/style/token.less +51 -51
- package/es/tree/transition-node-list.d.ts +5 -5
- package/es/tree-select/index.d.ts +5 -5
- package/es/tree-select/style/index.less +49 -49
- package/es/tree-select/style/token.less +7 -7
- package/es/tree-select/tree-select.d.ts +2 -2
- package/es/trigger/style/index.less +57 -57
- package/es/trigger/style/token.less +5 -5
- package/es/typography/edit-content.d.ts +24 -24
- package/es/typography/style/index.less +207 -207
- package/es/typography/style/token.less +55 -55
- package/es/upload/index.d.ts +3 -3
- package/es/upload/style/index.less +515 -515
- package/es/upload/style/token.less +97 -97
- package/es/upload/upload.d.ts +1 -1
- package/es/verification-code/index.d.ts +6 -6
- package/es/verification-code/style/index.less +32 -32
- package/es/verification-code/style/token.less +1 -1
- package/es/verification-code/verification-code.d.ts +2 -2
- package/json/vetur-attributes.json +1627 -1619
- package/json/vetur-tags.json +724 -722
- package/json/web-types.json +3903 -3887
- 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 +18 -3
- 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
- package/README.zh-CN.md +0 -110
package/es/tree/style/index.less
CHANGED
|
@@ -1,396 +1,396 @@
|
|
|
1
|
-
@import './token.less';
|
|
2
|
-
@import '../../style/mixins/index.less';
|
|
3
|
-
|
|
4
|
-
@tree-prefix-cls: ~'@{prefix}-tree';
|
|
5
|
-
@tree-node-prefix-cls: ~'@{prefix}-tree-node';
|
|
6
|
-
|
|
7
|
-
/******* icon ******/
|
|
8
|
-
|
|
9
|
-
.icon-hover(@tree-node-prefix-cls, @tree-size-default-icon-size, @tree-size-expand-icon-bg_hover);
|
|
10
|
-
|
|
11
|
-
.getLinePos(@size) {
|
|
12
|
-
top: (@size / 2) + (@tree-showline-size-switcher-icon / 2) +
|
|
13
|
-
@tree-showline-spacing-line-vertical;
|
|
14
|
-
bottom: min(
|
|
15
|
-
-((@size / 2) - (@tree-showline-size-switcher-icon / 2) -
|
|
16
|
-
@tree-showline-spacing-line-vertical),
|
|
17
|
-
0
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.getIndentLinePos(@size) {
|
|
22
|
-
top: @tree-showline-spacing-line-vertical -
|
|
23
|
-
((@size / 2) - (@tree-showline-size-switcher-icon / 2));
|
|
24
|
-
// 计算:距离上一节点的图标和下一节点的图标都是 @tree-showline-spacing-line-vertical
|
|
25
|
-
bottom: min(
|
|
26
|
-
-((@size / 2) - (@tree-showline-size-switcher-icon / 2) -
|
|
27
|
-
@tree-showline-spacing-line-vertical),
|
|
28
|
-
0
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.@{tree-node-prefix-cls} {
|
|
33
|
-
&-switcher {
|
|
34
|
-
position: relative;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-shrink: 0;
|
|
37
|
-
align-items: center;
|
|
38
|
-
width: @tree-size-default-icon-size;
|
|
39
|
-
height: @tree-size-default-line-height;
|
|
40
|
-
margin-right: @tree-margin-switcher-icon-right;
|
|
41
|
-
color: @tree-color-switcher-icon;
|
|
42
|
-
font-size: @tree-size-default-icon-size;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
user-select: none;
|
|
45
|
-
|
|
46
|
-
&-icon {
|
|
47
|
-
position: relative;
|
|
48
|
-
margin: 0 auto;
|
|
49
|
-
|
|
50
|
-
svg {
|
|
51
|
-
position: relative;
|
|
52
|
-
transform: rotate(-90deg);
|
|
53
|
-
transition: transform @transition-duration-2
|
|
54
|
-
@transition-timing-function-standard;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-expanded &-switcher-icon svg,
|
|
60
|
-
&-is-leaf &-switcher-icon svg {
|
|
61
|
-
transform: rotate(0);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-drag-icon {
|
|
65
|
-
margin-left: @tree-spacing-drag-icon-text;
|
|
66
|
-
color: @tree-color-drag-icon;
|
|
67
|
-
opacity: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// 自定义icon
|
|
71
|
-
&-custom-icon {
|
|
72
|
-
margin-right: @tree-margin-custom-icon-right;
|
|
73
|
-
font-size: inherit;
|
|
74
|
-
line-height: 1;
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
user-select: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.@{prefix}-icon-loading {
|
|
80
|
-
color: @tree-color-loading-icon;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&-minus-icon,
|
|
84
|
-
&-plus-icon {
|
|
85
|
-
position: relative;
|
|
86
|
-
display: block;
|
|
87
|
-
width: @tree-showline-size-switcher-icon;
|
|
88
|
-
height: @tree-showline-size-switcher-icon;
|
|
89
|
-
background: @tree-showline-color-plus-icon-bg;
|
|
90
|
-
border-radius: @tree-showline-border-plus-icon-radius;
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
|
|
93
|
-
&::after {
|
|
94
|
-
position: absolute;
|
|
95
|
-
top: 50%;
|
|
96
|
-
left: 50%;
|
|
97
|
-
display: block;
|
|
98
|
-
width: @tree-showline-size-plus-icon-width;
|
|
99
|
-
height: @tree-showline-size-plus-icon-stroke;
|
|
100
|
-
margin-top: -(@tree-showline-size-plus-icon-stroke / 2);
|
|
101
|
-
margin-left: -(@tree-showline-size-plus-icon-width / 2);
|
|
102
|
-
color: @tree-color-switcher-icon;
|
|
103
|
-
background-color: @tree-color-switcher-icon;
|
|
104
|
-
border-radius: 0.5px;
|
|
105
|
-
content: '';
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&-plus-icon::before {
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: 50%;
|
|
112
|
-
left: 50%;
|
|
113
|
-
display: block;
|
|
114
|
-
width: @tree-showline-size-plus-icon-stroke;
|
|
115
|
-
height: @tree-showline-size-plus-icon-width;
|
|
116
|
-
margin-top: -(@tree-showline-size-plus-icon-width / 2);
|
|
117
|
-
margin-left: -(@tree-showline-size-plus-icon-stroke / 2);
|
|
118
|
-
color: @tree-color-switcher-icon;
|
|
119
|
-
background-color: @tree-color-switcher-icon;
|
|
120
|
-
border-radius: 0.5px;
|
|
121
|
-
content: '';
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/******* tree ***********/
|
|
126
|
-
.@{tree-prefix-cls} {
|
|
127
|
-
color: @tree-color-title-text;
|
|
128
|
-
|
|
129
|
-
.@{prefix}-checkbox {
|
|
130
|
-
margin-right: @tree-margin-checkbox-right;
|
|
131
|
-
padding-left: 0;
|
|
132
|
-
line-height: @tree-size-default-line-height;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&-node {
|
|
136
|
-
position: relative;
|
|
137
|
-
display: flex;
|
|
138
|
-
flex-wrap: nowrap;
|
|
139
|
-
align-items: center;
|
|
140
|
-
padding-left: (@tree-size-expand-icon-bg_hover / 2) -
|
|
141
|
-
(@tree-size-default-icon-size / 2);
|
|
142
|
-
color: @tree-color-title-text;
|
|
143
|
-
line-height: @line-height-base;
|
|
144
|
-
cursor: pointer;
|
|
145
|
-
|
|
146
|
-
&-selected &-title,
|
|
147
|
-
&-selected &-title:hover {
|
|
148
|
-
color: @tree-color-title-text_active;
|
|
149
|
-
transition: color @transition-duration-2
|
|
150
|
-
@transition-timing-function-linear;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&-disabled-selectable,
|
|
154
|
-
&-disabled {
|
|
155
|
-
.@{tree-node-prefix-cls}-title,
|
|
156
|
-
.@{tree-node-prefix-cls}-title:hover {
|
|
157
|
-
color: @tree-color-title-text_disabled;
|
|
158
|
-
background: none;
|
|
159
|
-
cursor: not-allowed;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&-disabled&-selected &-title {
|
|
164
|
-
color: @tree-color-title-text_active_disabled;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&-node-title-block {
|
|
169
|
-
flex: 1;
|
|
170
|
-
box-sizing: content-box;
|
|
171
|
-
|
|
172
|
-
.@{tree-node-prefix-cls}-drag-icon {
|
|
173
|
-
position: absolute;
|
|
174
|
-
right: @tree-spacing-drag-icon-right;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&-node-indent {
|
|
179
|
-
position: relative;
|
|
180
|
-
flex-shrink: 0;
|
|
181
|
-
align-self: stretch;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&-node-indent-block {
|
|
185
|
-
position: relative;
|
|
186
|
-
display: inline-block;
|
|
187
|
-
width: @tree-size-default-icon-size;
|
|
188
|
-
height: 100%;
|
|
189
|
-
margin-right: @tree-margin-switcher-icon-right;
|
|
190
|
-
vertical-align: top;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&-node-draggable {
|
|
194
|
-
margin-top: @tree-draggable-size-gap-height;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&-node-title {
|
|
198
|
-
position: relative;
|
|
199
|
-
display: flex;
|
|
200
|
-
align-items: center;
|
|
201
|
-
margin-left: -@tree-padding-title-horizontal;
|
|
202
|
-
padding: (
|
|
203
|
-
round((@tree-size-default-line-height - @line-height-base * $font-size)) /
|
|
204
|
-
2
|
|
205
|
-
)
|
|
206
|
-
0;
|
|
207
|
-
padding-right: @tree-padding-title-horizontal;
|
|
208
|
-
padding-left: @tree-padding-title-horizontal;
|
|
209
|
-
font-size: @tree-size-default-font-size;
|
|
210
|
-
border-radius: @tree-node-border-radius;
|
|
211
|
-
|
|
212
|
-
// overflow: hidden;
|
|
213
|
-
&:hover {
|
|
214
|
-
color: @tree-color-title-text_hover;
|
|
215
|
-
background-color: @tree-color-title-bg_hover;
|
|
216
|
-
|
|
217
|
-
.@{tree-node-prefix-cls}-drag-icon {
|
|
218
|
-
opacity: 1;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// &-draggable {
|
|
223
|
-
// margin-top: @tree-draggable-size-gap-height;
|
|
224
|
-
// }
|
|
225
|
-
&-draggable::before {
|
|
226
|
-
position: absolute;
|
|
227
|
-
top: -@tree-draggable-size-gap-height;
|
|
228
|
-
right: 0;
|
|
229
|
-
left: 0;
|
|
230
|
-
display: block;
|
|
231
|
-
height: @tree-draggable-size-gap-height;
|
|
232
|
-
border-radius: (@tree-draggable-size-gap-height / 2);
|
|
233
|
-
content: '';
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&-gap-bottom::before {
|
|
237
|
-
top: unset;
|
|
238
|
-
bottom: -@tree-draggable-size-gap-height;
|
|
239
|
-
background-color: @tree-draggable-color-gap-bg;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&-gap-top::before {
|
|
243
|
-
background-color: @tree-draggable-color-gap-bg;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&-highlight {
|
|
247
|
-
color: @tree-color-title-text_highlight;
|
|
248
|
-
background-color: @tree-color-title-bg_highlight;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&-dragging,
|
|
252
|
-
&-dragging:hover {
|
|
253
|
-
color: @tree-color-title-text_dragging;
|
|
254
|
-
background-color: @tree-color-title-bg_dragging;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// show line
|
|
259
|
-
&-show-line {
|
|
260
|
-
padding-left: (@tree-size-expand-icon-bg_hover / 2) -
|
|
261
|
-
(@tree-showline-size-switcher-icon / 2);
|
|
262
|
-
|
|
263
|
-
.@{tree-prefix-cls}-node-switcher {
|
|
264
|
-
width: @tree-showline-size-switcher-icon;
|
|
265
|
-
text-align: center;
|
|
266
|
-
|
|
267
|
-
.@{prefix}-tree-node-icon-hover {
|
|
268
|
-
width: 100%;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.@{tree-prefix-cls}-node-indent-block {
|
|
273
|
-
width: @tree-showline-size-switcher-icon;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.@{tree-prefix-cls}-node-indent-block::before {
|
|
277
|
-
position: absolute;
|
|
278
|
-
left: 50%;
|
|
279
|
-
box-sizing: border-box;
|
|
280
|
-
width: @tree-showline-size-line-width;
|
|
281
|
-
border-left: @tree-showline-size-line-width @tree-showline-style-line
|
|
282
|
-
@tree-showline-color-line-bg;
|
|
283
|
-
transform: translateX(-50%);
|
|
284
|
-
content: '';
|
|
285
|
-
|
|
286
|
-
.getIndentLinePos(@tree-size-default-line-height);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
290
|
-
.@{tree-prefix-cls}-node-indent::after {
|
|
291
|
-
position: absolute;
|
|
292
|
-
right: -(@tree-showline-size-switcher-icon / 2);
|
|
293
|
-
box-sizing: border-box;
|
|
294
|
-
width: @tree-showline-size-line-width;
|
|
295
|
-
border-left: @tree-showline-size-line-width @tree-showline-style-line
|
|
296
|
-
@tree-showline-color-line-bg;
|
|
297
|
-
transform: translateX(50%);
|
|
298
|
-
content: '';
|
|
299
|
-
|
|
300
|
-
.getLinePos(@tree-size-default-line-height);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.@{tree-prefix-cls}-node-indent-block-lineless:before {
|
|
304
|
-
display: none;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/******** size *******/
|
|
310
|
-
|
|
311
|
-
.@{tree-prefix-cls}-size-mini {
|
|
312
|
-
.@{tree-prefix-cls}-node-switcher {
|
|
313
|
-
height: @tree-size-mini-line-height;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.@{prefix}-checkbox {
|
|
317
|
-
line-height: @tree-size-mini-line-height;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.@{tree-prefix-cls}-node-title {
|
|
321
|
-
padding-top: (
|
|
322
|
-
round((@tree-size-mini-line-height - $line-height * $font-size)) / 2
|
|
323
|
-
);
|
|
324
|
-
padding-bottom: $padding-top;
|
|
325
|
-
font-size: @tree-size-mini-font-size;
|
|
326
|
-
line-height: 1.667;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.@{tree-prefix-cls}-node-indent-block::after {
|
|
330
|
-
.getLinePos(@tree-size-mini-line-height);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
334
|
-
.@{tree-prefix-cls}-node-indent::before {
|
|
335
|
-
.getIndentLinePos(@tree-size-mini-line-height);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.@{tree-prefix-cls}-size-small {
|
|
340
|
-
.@{tree-prefix-cls}-node-switcher {
|
|
341
|
-
height: @tree-size-small-line-height;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.@{prefix}-checkbox {
|
|
345
|
-
line-height: @tree-size-small-line-height;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.@{tree-prefix-cls}-node-title {
|
|
349
|
-
padding-top: (
|
|
350
|
-
round((@tree-size-small-line-height - @line-height-base * $font-size)) / 2
|
|
351
|
-
);
|
|
352
|
-
padding-bottom: $padding-top;
|
|
353
|
-
font-size: @tree-size-small-font-size;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.@{tree-prefix-cls}-node-indent-block::after {
|
|
357
|
-
.getLinePos(@tree-size-small-line-height);
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
361
|
-
.@{tree-prefix-cls}-node-indent::before {
|
|
362
|
-
.getIndentLinePos(@tree-size-small-line-height);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.@{tree-prefix-cls}-size-large {
|
|
367
|
-
.@{tree-prefix-cls}-node-switcher {
|
|
368
|
-
height: @tree-size-large-line-height;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.@{prefix}-checkbox {
|
|
372
|
-
line-height: @tree-size-large-line-height;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.@{tree-prefix-cls}-node-title {
|
|
376
|
-
padding-top: (
|
|
377
|
-
round((@tree-size-large-line-height - @line-height-base * $font-size)) / 2
|
|
378
|
-
);
|
|
379
|
-
padding-bottom: $padding-top;
|
|
380
|
-
font-size: @tree-size-large-font-size;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.@{tree-prefix-cls}-node-indent-block::after {
|
|
384
|
-
.getLinePos(@tree-size-large-line-height);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
388
|
-
.@{tree-prefix-cls}-node-indent::before {
|
|
389
|
-
.getIndentLinePos(@tree-size-large-line-height);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.@{tree-prefix-cls}-node-list {
|
|
394
|
-
overflow: hidden;
|
|
395
|
-
transition: height @transition-duration-2 @transition-timing-function-standard;
|
|
396
|
-
}
|
|
1
|
+
@import './token.less';
|
|
2
|
+
@import '../../style/mixins/index.less';
|
|
3
|
+
|
|
4
|
+
@tree-prefix-cls: ~'@{prefix}-tree';
|
|
5
|
+
@tree-node-prefix-cls: ~'@{prefix}-tree-node';
|
|
6
|
+
|
|
7
|
+
/******* icon ******/
|
|
8
|
+
|
|
9
|
+
.icon-hover(@tree-node-prefix-cls, @tree-size-default-icon-size, @tree-size-expand-icon-bg_hover);
|
|
10
|
+
|
|
11
|
+
.getLinePos(@size) {
|
|
12
|
+
top: (@size / 2) + (@tree-showline-size-switcher-icon / 2) +
|
|
13
|
+
@tree-showline-spacing-line-vertical;
|
|
14
|
+
bottom: min(
|
|
15
|
+
-((@size / 2) - (@tree-showline-size-switcher-icon / 2) -
|
|
16
|
+
@tree-showline-spacing-line-vertical),
|
|
17
|
+
0
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.getIndentLinePos(@size) {
|
|
22
|
+
top: @tree-showline-spacing-line-vertical -
|
|
23
|
+
((@size / 2) - (@tree-showline-size-switcher-icon / 2));
|
|
24
|
+
// 计算:距离上一节点的图标和下一节点的图标都是 @tree-showline-spacing-line-vertical
|
|
25
|
+
bottom: min(
|
|
26
|
+
-((@size / 2) - (@tree-showline-size-switcher-icon / 2) -
|
|
27
|
+
@tree-showline-spacing-line-vertical),
|
|
28
|
+
0
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.@{tree-node-prefix-cls} {
|
|
33
|
+
&-switcher {
|
|
34
|
+
position: relative;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
align-items: center;
|
|
38
|
+
width: @tree-size-default-icon-size;
|
|
39
|
+
height: @tree-size-default-line-height;
|
|
40
|
+
margin-right: @tree-margin-switcher-icon-right;
|
|
41
|
+
color: @tree-color-switcher-icon;
|
|
42
|
+
font-size: @tree-size-default-icon-size;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
user-select: none;
|
|
45
|
+
|
|
46
|
+
&-icon {
|
|
47
|
+
position: relative;
|
|
48
|
+
margin: 0 auto;
|
|
49
|
+
|
|
50
|
+
svg {
|
|
51
|
+
position: relative;
|
|
52
|
+
transform: rotate(-90deg);
|
|
53
|
+
transition: transform @transition-duration-2
|
|
54
|
+
@transition-timing-function-standard;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-expanded &-switcher-icon svg,
|
|
60
|
+
&-is-leaf &-switcher-icon svg {
|
|
61
|
+
transform: rotate(0);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-drag-icon {
|
|
65
|
+
margin-left: @tree-spacing-drag-icon-text;
|
|
66
|
+
color: @tree-color-drag-icon;
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// 自定义icon
|
|
71
|
+
&-custom-icon {
|
|
72
|
+
margin-right: @tree-margin-custom-icon-right;
|
|
73
|
+
font-size: inherit;
|
|
74
|
+
line-height: 1;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
user-select: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.@{prefix}-icon-loading {
|
|
80
|
+
color: @tree-color-loading-icon;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-minus-icon,
|
|
84
|
+
&-plus-icon {
|
|
85
|
+
position: relative;
|
|
86
|
+
display: block;
|
|
87
|
+
width: @tree-showline-size-switcher-icon;
|
|
88
|
+
height: @tree-showline-size-switcher-icon;
|
|
89
|
+
background: @tree-showline-color-plus-icon-bg;
|
|
90
|
+
border-radius: @tree-showline-border-plus-icon-radius;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
|
|
93
|
+
&::after {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 50%;
|
|
96
|
+
left: 50%;
|
|
97
|
+
display: block;
|
|
98
|
+
width: @tree-showline-size-plus-icon-width;
|
|
99
|
+
height: @tree-showline-size-plus-icon-stroke;
|
|
100
|
+
margin-top: -(@tree-showline-size-plus-icon-stroke / 2);
|
|
101
|
+
margin-left: -(@tree-showline-size-plus-icon-width / 2);
|
|
102
|
+
color: @tree-color-switcher-icon;
|
|
103
|
+
background-color: @tree-color-switcher-icon;
|
|
104
|
+
border-radius: 0.5px;
|
|
105
|
+
content: '';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&-plus-icon::before {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 50%;
|
|
112
|
+
left: 50%;
|
|
113
|
+
display: block;
|
|
114
|
+
width: @tree-showline-size-plus-icon-stroke;
|
|
115
|
+
height: @tree-showline-size-plus-icon-width;
|
|
116
|
+
margin-top: -(@tree-showline-size-plus-icon-width / 2);
|
|
117
|
+
margin-left: -(@tree-showline-size-plus-icon-stroke / 2);
|
|
118
|
+
color: @tree-color-switcher-icon;
|
|
119
|
+
background-color: @tree-color-switcher-icon;
|
|
120
|
+
border-radius: 0.5px;
|
|
121
|
+
content: '';
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/******* tree ***********/
|
|
126
|
+
.@{tree-prefix-cls} {
|
|
127
|
+
color: @tree-color-title-text;
|
|
128
|
+
|
|
129
|
+
.@{prefix}-checkbox {
|
|
130
|
+
margin-right: @tree-margin-checkbox-right;
|
|
131
|
+
padding-left: 0;
|
|
132
|
+
line-height: @tree-size-default-line-height;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-node {
|
|
136
|
+
position: relative;
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-wrap: nowrap;
|
|
139
|
+
align-items: center;
|
|
140
|
+
padding-left: (@tree-size-expand-icon-bg_hover / 2) -
|
|
141
|
+
(@tree-size-default-icon-size / 2);
|
|
142
|
+
color: @tree-color-title-text;
|
|
143
|
+
line-height: @line-height-base;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
|
|
146
|
+
&-selected &-title,
|
|
147
|
+
&-selected &-title:hover {
|
|
148
|
+
color: @tree-color-title-text_active;
|
|
149
|
+
transition: color @transition-duration-2
|
|
150
|
+
@transition-timing-function-linear;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&-disabled-selectable,
|
|
154
|
+
&-disabled {
|
|
155
|
+
.@{tree-node-prefix-cls}-title,
|
|
156
|
+
.@{tree-node-prefix-cls}-title:hover {
|
|
157
|
+
color: @tree-color-title-text_disabled;
|
|
158
|
+
background: none;
|
|
159
|
+
cursor: not-allowed;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&-disabled&-selected &-title {
|
|
164
|
+
color: @tree-color-title-text_active_disabled;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&-node-title-block {
|
|
169
|
+
flex: 1;
|
|
170
|
+
box-sizing: content-box;
|
|
171
|
+
|
|
172
|
+
.@{tree-node-prefix-cls}-drag-icon {
|
|
173
|
+
position: absolute;
|
|
174
|
+
right: @tree-spacing-drag-icon-right;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&-node-indent {
|
|
179
|
+
position: relative;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
align-self: stretch;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&-node-indent-block {
|
|
185
|
+
position: relative;
|
|
186
|
+
display: inline-block;
|
|
187
|
+
width: @tree-size-default-icon-size;
|
|
188
|
+
height: 100%;
|
|
189
|
+
margin-right: @tree-margin-switcher-icon-right;
|
|
190
|
+
vertical-align: top;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&-node-draggable {
|
|
194
|
+
margin-top: @tree-draggable-size-gap-height;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&-node-title {
|
|
198
|
+
position: relative;
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
margin-left: -@tree-padding-title-horizontal;
|
|
202
|
+
padding: (
|
|
203
|
+
round((@tree-size-default-line-height - @line-height-base * $font-size)) /
|
|
204
|
+
2
|
|
205
|
+
)
|
|
206
|
+
0;
|
|
207
|
+
padding-right: @tree-padding-title-horizontal;
|
|
208
|
+
padding-left: @tree-padding-title-horizontal;
|
|
209
|
+
font-size: @tree-size-default-font-size;
|
|
210
|
+
border-radius: @tree-node-border-radius;
|
|
211
|
+
|
|
212
|
+
// overflow: hidden;
|
|
213
|
+
&:hover {
|
|
214
|
+
color: @tree-color-title-text_hover;
|
|
215
|
+
background-color: @tree-color-title-bg_hover;
|
|
216
|
+
|
|
217
|
+
.@{tree-node-prefix-cls}-drag-icon {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// &-draggable {
|
|
223
|
+
// margin-top: @tree-draggable-size-gap-height;
|
|
224
|
+
// }
|
|
225
|
+
&-draggable::before {
|
|
226
|
+
position: absolute;
|
|
227
|
+
top: -@tree-draggable-size-gap-height;
|
|
228
|
+
right: 0;
|
|
229
|
+
left: 0;
|
|
230
|
+
display: block;
|
|
231
|
+
height: @tree-draggable-size-gap-height;
|
|
232
|
+
border-radius: (@tree-draggable-size-gap-height / 2);
|
|
233
|
+
content: '';
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&-gap-bottom::before {
|
|
237
|
+
top: unset;
|
|
238
|
+
bottom: -@tree-draggable-size-gap-height;
|
|
239
|
+
background-color: @tree-draggable-color-gap-bg;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&-gap-top::before {
|
|
243
|
+
background-color: @tree-draggable-color-gap-bg;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&-highlight {
|
|
247
|
+
color: @tree-color-title-text_highlight;
|
|
248
|
+
background-color: @tree-color-title-bg_highlight;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&-dragging,
|
|
252
|
+
&-dragging:hover {
|
|
253
|
+
color: @tree-color-title-text_dragging;
|
|
254
|
+
background-color: @tree-color-title-bg_dragging;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// show line
|
|
259
|
+
&-show-line {
|
|
260
|
+
padding-left: (@tree-size-expand-icon-bg_hover / 2) -
|
|
261
|
+
(@tree-showline-size-switcher-icon / 2);
|
|
262
|
+
|
|
263
|
+
.@{tree-prefix-cls}-node-switcher {
|
|
264
|
+
width: @tree-showline-size-switcher-icon;
|
|
265
|
+
text-align: center;
|
|
266
|
+
|
|
267
|
+
.@{prefix}-tree-node-icon-hover {
|
|
268
|
+
width: 100%;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.@{tree-prefix-cls}-node-indent-block {
|
|
273
|
+
width: @tree-showline-size-switcher-icon;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.@{tree-prefix-cls}-node-indent-block::before {
|
|
277
|
+
position: absolute;
|
|
278
|
+
left: 50%;
|
|
279
|
+
box-sizing: border-box;
|
|
280
|
+
width: @tree-showline-size-line-width;
|
|
281
|
+
border-left: @tree-showline-size-line-width @tree-showline-style-line
|
|
282
|
+
@tree-showline-color-line-bg;
|
|
283
|
+
transform: translateX(-50%);
|
|
284
|
+
content: '';
|
|
285
|
+
|
|
286
|
+
.getIndentLinePos(@tree-size-default-line-height);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
290
|
+
.@{tree-prefix-cls}-node-indent::after {
|
|
291
|
+
position: absolute;
|
|
292
|
+
right: -(@tree-showline-size-switcher-icon / 2);
|
|
293
|
+
box-sizing: border-box;
|
|
294
|
+
width: @tree-showline-size-line-width;
|
|
295
|
+
border-left: @tree-showline-size-line-width @tree-showline-style-line
|
|
296
|
+
@tree-showline-color-line-bg;
|
|
297
|
+
transform: translateX(50%);
|
|
298
|
+
content: '';
|
|
299
|
+
|
|
300
|
+
.getLinePos(@tree-size-default-line-height);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.@{tree-prefix-cls}-node-indent-block-lineless:before {
|
|
304
|
+
display: none;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/******** size *******/
|
|
310
|
+
|
|
311
|
+
.@{tree-prefix-cls}-size-mini {
|
|
312
|
+
.@{tree-prefix-cls}-node-switcher {
|
|
313
|
+
height: @tree-size-mini-line-height;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.@{prefix}-checkbox {
|
|
317
|
+
line-height: @tree-size-mini-line-height;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.@{tree-prefix-cls}-node-title {
|
|
321
|
+
padding-top: (
|
|
322
|
+
round((@tree-size-mini-line-height - $line-height * $font-size)) / 2
|
|
323
|
+
);
|
|
324
|
+
padding-bottom: $padding-top;
|
|
325
|
+
font-size: @tree-size-mini-font-size;
|
|
326
|
+
line-height: 1.667;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.@{tree-prefix-cls}-node-indent-block::after {
|
|
330
|
+
.getLinePos(@tree-size-mini-line-height);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
334
|
+
.@{tree-prefix-cls}-node-indent::before {
|
|
335
|
+
.getIndentLinePos(@tree-size-mini-line-height);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.@{tree-prefix-cls}-size-small {
|
|
340
|
+
.@{tree-prefix-cls}-node-switcher {
|
|
341
|
+
height: @tree-size-small-line-height;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.@{prefix}-checkbox {
|
|
345
|
+
line-height: @tree-size-small-line-height;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.@{tree-prefix-cls}-node-title {
|
|
349
|
+
padding-top: (
|
|
350
|
+
round((@tree-size-small-line-height - @line-height-base * $font-size)) / 2
|
|
351
|
+
);
|
|
352
|
+
padding-bottom: $padding-top;
|
|
353
|
+
font-size: @tree-size-small-font-size;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.@{tree-prefix-cls}-node-indent-block::after {
|
|
357
|
+
.getLinePos(@tree-size-small-line-height);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
361
|
+
.@{tree-prefix-cls}-node-indent::before {
|
|
362
|
+
.getIndentLinePos(@tree-size-small-line-height);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.@{tree-prefix-cls}-size-large {
|
|
367
|
+
.@{tree-prefix-cls}-node-switcher {
|
|
368
|
+
height: @tree-size-large-line-height;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.@{prefix}-checkbox {
|
|
372
|
+
line-height: @tree-size-large-line-height;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.@{tree-prefix-cls}-node-title {
|
|
376
|
+
padding-top: (
|
|
377
|
+
round((@tree-size-large-line-height - @line-height-base * $font-size)) / 2
|
|
378
|
+
);
|
|
379
|
+
padding-bottom: $padding-top;
|
|
380
|
+
font-size: @tree-size-large-font-size;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.@{tree-prefix-cls}-node-indent-block::after {
|
|
384
|
+
.getLinePos(@tree-size-large-line-height);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.@{tree-prefix-cls}-node-is-leaf:not(.@{tree-prefix-cls}-node-is-tail)
|
|
388
|
+
.@{tree-prefix-cls}-node-indent::before {
|
|
389
|
+
.getIndentLinePos(@tree-size-large-line-height);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.@{tree-prefix-cls}-node-list {
|
|
394
|
+
overflow: hidden;
|
|
395
|
+
transition: height @transition-duration-2 @transition-timing-function-standard;
|
|
396
|
+
}
|