mirror of
https://github.com/nasa/openmct.git
synced 2025-05-24 03:04:16 +00:00
Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 7.20.0 to 8.0.3. - [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases) - [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v7.20.0...v8.0.3) --- updated-dependencies: - dependency-name: eslint-plugin-vue dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * bump eslint to 8.11.0 * bump eslint-plugin-vue to 8.5.0 * disable eslint rule for multi-word component names. TODO enable it and follow conventions Co-authored-by: Nikhil Mandlik <nikhil.k.mandlik@nasa.gov> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: John Hill <john.c.hill@nasa.gov> Co-authored-by: unlikelyzero <jchill2@gmail.com> Co-authored-by: Andrew Henry <akhenry@gmail.com>
54 lines
1.2 KiB
Vue
54 lines
1.2 KiB
Vue
<template>
|
|
<div
|
|
class="c-plot-limit"
|
|
:style="styleObj"
|
|
:class="limitClass"
|
|
>
|
|
<div class="c-plot-limit__label">
|
|
<span class="c-plot-limit__direction-icon"></span>
|
|
<span class="c-plot-limit__severity-icon"></span>
|
|
<span class="c-plot-limit__limit-value">{{ limit.value }}</span>
|
|
<span
|
|
class="c-plot-limit__series-color-swatch"
|
|
:style="{ 'background-color': limit.seriesColor }"
|
|
></span>
|
|
<span class="c-plot-limit__series-name">{{ limit.name }}</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getLimitClass } from "./limitUtil";
|
|
|
|
export default {
|
|
props: {
|
|
limit: {
|
|
type: Object,
|
|
required: true,
|
|
default() {
|
|
return {};
|
|
}
|
|
},
|
|
point: {
|
|
type: Object,
|
|
required: true,
|
|
default() {
|
|
return {};
|
|
}
|
|
}
|
|
},
|
|
computed: {
|
|
styleObj() {
|
|
const top = `${this.point.top}px`;
|
|
|
|
return {
|
|
'top': top
|
|
};
|
|
},
|
|
limitClass() {
|
|
return getLimitClass(this.limit, 'c-plot-limit--');
|
|
}
|
|
}
|
|
};
|
|
</script>
|