style: 优化类命名,格式化代码结构,优化注释

This commit is contained in:
奔跑的面条
2022-09-12 00:28:13 +08:00
parent 18947db22b
commit 049d3fb911
39 changed files with 88 additions and 95 deletions
@@ -1,4 +1,4 @@
import { publicConfig } from '@/packages/public'
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { TableListConfig } from './index'
import cloneDeep from 'lodash/cloneDeep'
@@ -29,7 +29,7 @@ export const option = {
valueFormatter(item: { value: any}) { return item.value}
}
export default class Config extends publicConfig implements CreateComponentType {
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = TableListConfig.key
public chartConfig = cloneDeep(TableListConfig)
public option = cloneDeep(option)
@@ -1,4 +1,4 @@
import { publicConfig } from '@/packages/public'
import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { TableScrollBoardConfig } from './index'
import cloneDeep from 'lodash/cloneDeep'
@@ -9,20 +9,17 @@ export const option = {
dataset: dataJson,
index: true,
columnWidth: [30, 100, 100],
align: ['center','right','right','right'],
align: ['center', 'right', 'right', 'right'],
rowNum: 5,
waitTime: 2,
headerHeight: 35,
carousel: 'single',
headerBGC: '#00BAFF',
oddRowBGC: '#003B51',
evenRowBGC: '#0A2732',
evenRowBGC: '#0A2732'
}
export default class Config
extends publicConfig
implements CreateComponentType
{
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = TableScrollBoardConfig.key
public chartConfig = cloneDeep(TableScrollBoardConfig)
public option = cloneDeep(option)