-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from nih-sparc/feature_distribution-graph
Finalize V1 Styles
- Loading branch information
Showing
16 changed files
with
318 additions
and
170 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<div class="content-header stick-to-top tw-flex tw-flex-row tw-items-center tw-justify-between tw-h-10 tw-p-1"> | ||
<div> | ||
<h3>{{ widgetName }}</h3> | ||
</div> | ||
<div> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup> | ||
//this component really only has one job, and it's to format the header correctly and make it easier for users to add icons to the header without much markup on their end. | ||
//alternative markup that would be needed on all children > | ||
// <div v-bind="$attrs"> | ||
// <slot name="title" :widgetName="widgetName"></slot> | ||
// <div> | ||
// <GraphIcon class="tw-p-1" @click="settingsVisible=true"></GraphIcon> | ||
// <slot></slot> | ||
// </div> | ||
// </div> | ||
import { ref, inject, computed, watch, provide} from 'vue'; | ||
const emitter = inject('emitter'); | ||
const props = defineProps({ | ||
widgetName:{ | ||
type:String, | ||
required:true | ||
} | ||
}) | ||
</script> | ||
<style scoped lang="scss"> | ||
@import './node_modules/sparc-design-system-components-2/src/assets/_variables.scss'; | ||
.content-header{ | ||
border-bottom: 1px solid $mediumGrey; | ||
h3{ | ||
margin:10px; | ||
} | ||
.close-button{ | ||
cursor: pointer; | ||
margin-right:3px; | ||
width:20px; | ||
height: 20px; | ||
padding:8px; | ||
} | ||
} | ||
.stick-to-top{ | ||
position: sticky; | ||
top: 0; | ||
width: 100%; | ||
} | ||
</style> |
Oops, something went wrong.