diff --git a/src/packages/components/Decorates/Mores/CountDown/config.ts b/src/packages/components/Decorates/Mores/CountDown/config.ts index ee3c5193..118797ff 100644 --- a/src/packages/components/Decorates/Mores/CountDown/config.ts +++ b/src/packages/components/Decorates/Mores/CountDown/config.ts @@ -15,24 +15,17 @@ export const FontWeightObject = { } export const option = { - // 数据说明 - timeSize: 24, - timeLineHeight: 50, - timeTextIndent: 2, - timeColor: '#E6F7FF', - fontWeight: 'normal', - - //阴影 - showShadow: true, - hShadow: 0, - vShadow: 0, - blurShadow: 8, - colorShadow: '#0075ff' + flipperBgColor: '#ee6600FF', + flipperTextColor: '#336600FF', + flipperWidth: 60, + flipperHeight: 100, + flipperRadius: 10, + flipperSpeed: 600 } export default class Config extends PublicConfigClass implements CreateComponentType { public key = CountDownConfig.key - public attr = { ...chartInitConfig, w: 300, h: 200, zIndex: -1 } + public attr = { ...chartInitConfig, w: 500, h: 200, zIndex: -1 } public chartConfig = cloneDeep(CountDownConfig) public option = cloneDeep(option) } diff --git a/src/packages/components/Decorates/Mores/CountDown/config.vue b/src/packages/components/Decorates/Mores/CountDown/config.vue index 208cbedb..bd8efe1c 100644 --- a/src/packages/components/Decorates/Mores/CountDown/config.vue +++ b/src/packages/components/Decorates/Mores/CountDown/config.vue @@ -1,53 +1,40 @@ diff --git a/src/packages/components/Decorates/Mores/CountDown/index.vue b/src/packages/components/Decorates/Mores/CountDown/index.vue index d151fe9a..3a7d0b04 100644 --- a/src/packages/components/Decorates/Mores/CountDown/index.vue +++ b/src/packages/components/Decorates/Mores/CountDown/index.vue @@ -1,9 +1,73 @@ @@ -24,18 +88,9 @@ let boxShadow = ref('none') const { w, h } = toRefs(props.chartConfig.attr) -let { - timeColor, - timeSize, - timeLineHeight, - timeTextIndent, - fontWeight, - showShadow, - hShadow, - vShadow, - blurShadow, - colorShadow -} = toRefs(props.chartConfig.option) +let { flipperBgColor, flipperTextColor, flipperWidth, flipperHeight, flipperRadius, flipperSpeed } = toRefs( + props.chartConfig.option +) watch( props.chartConfig.option, @@ -58,7 +113,7 @@ let interval = 0 onMounted(() => { const interval = window.setInterval(() => { COUNT-- - if (COUNT === 0) window.clearInterval(interval) + if (COUNT <= 1) window.clearInterval(interval) const flipperCON: any = flipperRef.value flipperCON?.flipDown(COUNT, COUNT - 1) }, 1000) @@ -73,5 +128,9 @@ useChartDataFetch(props.chartConfig, useChartEditStore) @include go('decorates-more-countdown') { width: v-bind('`${w}px`'); height: v-bind('`${h}px`'); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; }