|
@@ -9,11 +9,10 @@ type STYLE = '时分秒' | '冒号'
|
|
|
|
|
|
|
|
export interface OptionType {
|
|
export interface OptionType {
|
|
|
dataset: number
|
|
dataset: number
|
|
|
- fixedDate: boolean
|
|
|
|
|
|
|
+ useEndDate: boolean
|
|
|
endDate: number
|
|
endDate: number
|
|
|
style: STYLE
|
|
style: STYLE
|
|
|
showDay: boolean
|
|
showDay: boolean
|
|
|
- flipperLength: number
|
|
|
|
|
flipperBgColor: string
|
|
flipperBgColor: string
|
|
|
flipperTextColor: string
|
|
flipperTextColor: string
|
|
|
flipperWidth: number
|
|
flipperWidth: number
|
|
@@ -26,16 +25,15 @@ export interface OptionType {
|
|
|
|
|
|
|
|
export const option: OptionType = {
|
|
export const option: OptionType = {
|
|
|
dataset: 10 * 60, // 10分钟
|
|
dataset: 10 * 60, // 10分钟
|
|
|
- fixedDate: false,
|
|
|
|
|
|
|
+ useEndDate: false,
|
|
|
endDate: new Date().getTime(), // 当前时间
|
|
endDate: new Date().getTime(), // 当前时间
|
|
|
style: '时分秒',
|
|
style: '时分秒',
|
|
|
- showDay: true,
|
|
|
|
|
- flipperLength: 6,
|
|
|
|
|
|
|
+ showDay: false,
|
|
|
flipperBgColor: '#253E4E',
|
|
flipperBgColor: '#253E4E',
|
|
|
flipperTextColor: '#7CFFB2FF',
|
|
flipperTextColor: '#7CFFB2FF',
|
|
|
- flipperWidth: 60,
|
|
|
|
|
- flipperHeight: 100,
|
|
|
|
|
- flipperRadius: 10,
|
|
|
|
|
|
|
+ flipperWidth: 30,
|
|
|
|
|
+ flipperHeight: 50,
|
|
|
|
|
+ flipperRadius: 5,
|
|
|
flipperGap: 10,
|
|
flipperGap: 10,
|
|
|
flipperType: 'down',
|
|
flipperType: 'down',
|
|
|
flipperSpeed: 450
|
|
flipperSpeed: 450
|
|
@@ -43,7 +41,7 @@ export const option: OptionType = {
|
|
|
|
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
|
public key = CountDownConfig.key
|
|
public key = CountDownConfig.key
|
|
|
- public attr = { ...chartInitConfig, w: 950, h: 160, zIndex: -1 }
|
|
|
|
|
|
|
+ public attr = { ...chartInitConfig, w: 500, h: 100, zIndex: -1 }
|
|
|
public chartConfig = cloneDeep(CountDownConfig)
|
|
public chartConfig = cloneDeep(CountDownConfig)
|
|
|
public option = cloneDeep(option)
|
|
public option = cloneDeep(option)
|
|
|
}
|
|
}
|