forked from lucas/go-view-fetch
添加配置项isShowButton以控制按钮显示状态
This commit is contained in:
parent
75c95a6fe0
commit
350577b904
@ -44,7 +44,8 @@ export const option = {
|
|||||||
fontStyle: 'normal',
|
fontStyle: 'normal',
|
||||||
paddingX: 40,
|
paddingX: 40,
|
||||||
paddingY: -17,
|
paddingY: -17,
|
||||||
letterSpacing: 2
|
letterSpacing: 2,
|
||||||
|
isShowButton: false
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
}">{{ option.title }}</span>
|
}">{{ option.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</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: #2e69e0"></div>
|
||||||
<div class="square" style="background-color: #2e9bf0"></div>
|
<div class="square" style="background-color: #2e9bf0"></div>
|
||||||
<div class="square" style="background-color: #2ef0b3"></div> -->
|
<div class="square" style="background-color: #2ef0b3"></div> -->
|
||||||
@ -59,7 +59,6 @@
|
|||||||
import { PropType, computed } from 'vue'
|
import { PropType, computed } from 'vue'
|
||||||
import { option as configOption } from './config'
|
import { option as configOption } from './config'
|
||||||
import SmallBorder from '../SmallBorder/index.vue'
|
import SmallBorder from '../SmallBorder/index.vue'
|
||||||
import { width } from 'dom-helpers'
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
chartConfig: {
|
chartConfig: {
|
||||||
type: Object as PropType<{ option: typeof configOption }>,
|
type: Object as PropType<{ option: typeof configOption }>,
|
||||||
|
Loading…
Reference in New Issue
Block a user