File tree Expand file tree Collapse file tree 1 file changed +20
-22
lines changed
packages/@vue/cli-ui/src/components Expand file tree Collapse file tree 1 file changed +20
-22
lines changed Original file line number Diff line number Diff line change 42
42
v-if =" data"
43
43
class =" path-value"
44
44
>
45
- <VueButton
45
+ <div
46
46
v-for =" (slice, index) of slicePath(data.cwd)"
47
47
:key =" index"
48
- class =" path-folder flat"
49
- :icon-left =" !slice.name ? 'folder' : null"
50
- :class =" {
51
- 'icon-button': !slice.name
52
- }"
53
- @click =" openFolder(slice.path)"
48
+ class =" path-part"
54
49
>
55
- {{ slice.name }}
56
- </VueButton >
50
+ <VueButton
51
+ class =" path-folder flat"
52
+ :icon-left =" !slice.name ? 'folder' : null"
53
+ :class =" {
54
+ 'icon-button': !slice.name
55
+ }"
56
+ @click =" openFolder(slice.path)"
57
+ >
58
+ {{ slice.name }}
59
+ </VueButton >
60
+ </div >
57
61
</div >
58
62
<VueButton
59
63
class =" edit-path-button icon-button"
@@ -412,21 +416,15 @@ export default {
412
416
h-box ()
413
417
align-items stretch
414
418
419
+ .path-part
420
+ & :not (:first-child )
421
+ border-left 2px solid
422
+ border-left-color $vue-ui-color-light
423
+ .vue-ui-dark-mode &
424
+ border-left-color $vue-ui-color-darker
425
+
415
426
.path-folder
416
427
padding 0 9px
417
- & :not (:first-child )
418
- position relative
419
- & ::before
420
- display block
421
- content ''
422
- position absolute
423
- top 0
424
- left - 1px
425
- height 100%
426
- width 2px
427
- background $vue-ui-color-light
428
- .vue-ui-dark-mode &
429
- background $vue-ui-color-darker
430
428
431
429
.edit-path-button
432
430
margin-left 4px
You can’t perform that action at this time.
0 commit comments