-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**IMPORTANT: Please do not create a Pull Request without creating an issue first.** Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request. Please provide enough information so that we can review your pull request. ## Summary **Issue:** #81 ## Type (Fill in "x" to check) - [ ] Bug Fix - [x] New Feature (Application) - [ ] New Feature (Chart / Map Type) - [ ] New Component ## Checklist Please make sure that all items are checked before submitting this request. - [x] Code linter has been run and issues have all been resolved - [x] The code has been thoroughly tested and no visible bugs have been introduced - [x] The pull request will completely resolve the issue(s) mentioned - [x] The pull request only resolves the issue(s) mentioned and nothing more ## Attribution Thanks for your hard work. If you will like to be attributed in all components that directly benefitted from your contribution, please check the box below. - [x] I would like to be attributed As TUIC ## Additional context N/A
- Loading branch information
Showing
4 changed files
with
137 additions
and
62 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
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,46 @@ | ||
<script setup> | ||
const props = defineProps({ | ||
position: { type: Object }, | ||
hasFilter: { type: Boolean, default: false }, | ||
hasMapLayer: { type: Boolean, default: false }, | ||
hasHistory: { type: Boolean, default: false }, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div :style="props.position" class="chart-tooltip tagtooltip"> | ||
<h6>組件資訊與功能</h6> | ||
<p> | ||
<span>{{ props.hasFilter ? "check" : "clear" }}</span | ||
>用圖表篩選地圖 | ||
</p> | ||
<p> | ||
<span>{{ props.hasMapLayer ? "check" : "clear" }}</span | ||
>具備空間資料(地圖交叉比對) | ||
</p> | ||
<p> | ||
<span>{{ props.hasHistory ? "check" : "clear" }}</span | ||
>具備歷史資料(組件資訊) | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.tagtooltip { | ||
position: fixed; | ||
box-shadow: 0px 0px 5px black; | ||
z-index: 30; | ||
p { | ||
display: flex; | ||
align-items: center; | ||
font-size: 16px; | ||
span { | ||
font-family: var(--font-icon); | ||
color: var(--color-highlight); | ||
font-size: var(--font-m); | ||
} | ||
} | ||
} | ||
</style> |