update 质量缺陷分析的标题+legend

This commit is contained in:
lb
2022-11-18 16:56:10 +08:00
parent 5e78b4b5da
commit 9dd1f27481
4 changed files with 270 additions and 106 deletions

View File

@@ -1,10 +1,22 @@
<template>
<div class="techy-analysis-header">
<span style="display: inline-block; width: calc(56px * var(--beilv)); height: calc(13px * var(--beilv));" v-html="titleLeftSVG" />
<span class="techy-analysis-header__title">
<slot />
</span>
<span style="display: inline-block; width: calc(56px * var(--beilv)); height: calc(13px * var(--beilv));" v-html="titleRightSVG" />
<template v-if="type === 'special'">
<div style="background: #cccc; width: 200px; height: 20px;"></div>
</template>
<template v-else>
<span
style="display: inline-block; width: calc(56px * var(--beilv)); height: calc(13px * var(--beilv));"
v-html="titleLeftSVG"
/>
<span class="techy-analysis-header__title">
<slot />
</span>
<span
style="display: inline-block; width: calc(56px * var(--beilv)); height: calc(13px * var(--beilv));"
v-html="titleRightSVG"
/>
</template>
</div>
</template>
@@ -109,6 +121,12 @@ const titleRightSVG = `<svg
export default {
name: 'TechyAnalysisHeader',
props: {
type: {
type: String,
default: 'default-type'
}
},
data() {
return { titleLeftSVG, titleRightSVG }
}