-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add option to switch order of Alluvial labels/values
- Loading branch information
1 parent
a2d400c
commit 3322cf2
Showing
5 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
...oups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
<template> | ||
<text class="lume-alluvial-group__node-label"> | ||
<text | ||
class="lume-alluvial-group__node-label" | ||
:dy="bottom ? '1.2em' : ''" | ||
> | ||
<slot /> | ||
</text> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
defineProps({ | ||
bottom: { type: Boolean, default: false }, | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@use '../../styles'; | ||
</style> |
9 changes: 7 additions & 2 deletions
9
...oups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
<template> | ||
<text | ||
class="lume-alluvial-group__node-value" | ||
x="0" | ||
dy="1.2em" | ||
:dy="bottom ? '1.2em' : ''" | ||
> | ||
<slot /> | ||
</text> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
defineProps({ | ||
bottom: { type: Boolean, default: true }, | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@use '../../styles'; | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters