1
0

添加配置项isShowButton以控制按钮显示状态

This commit is contained in:
Free-sss 2025-08-21 16:08:39 +08:00
parent 75c95a6fe0
commit 350577b904
2 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,8 @@ export const option = {
fontStyle: 'normal',
paddingX: 40,
paddingY: -17,
letterSpacing: 2
letterSpacing: 2,
isShowButton: false
}
export default class Config extends PublicConfigClass implements CreateComponentType {

View File

@ -18,7 +18,7 @@
}">{{ option.title }}</span>
</div>
</div>
<div v-if="false" class="header-right-squares">
<div v-if="option.isShowButton" class="header-right-squares">
<!-- <div class="square" style="background-color: #2e69e0"></div>
<div class="square" style="background-color: #2e9bf0"></div>
<div class="square" style="background-color: #2ef0b3"></div> -->
@ -59,7 +59,6 @@
import { PropType, computed } from 'vue'
import { option as configOption } from './config'
import SmallBorder from '../SmallBorder/index.vue'
import { width } from 'dom-helpers'
const props = defineProps({
chartConfig: {
type: Object as PropType<{ option: typeof configOption }>,
@ -85,7 +84,7 @@ const getStatusColor = (status: string) => {
// background-color: #2066df;
color: #ffffff;
padding: 12px;
margin-top:5px;
margin-top: 5px;
box-sizing: border-box;
.header {