mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
style: 优化类命名,格式化代码结构,优化注释
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { publicConfig } from '@/packages/public'
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Border01Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -9,7 +9,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border01Config.key
|
||||
public chartConfig = cloneDeep(Border01Config)
|
||||
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 { Border02Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,8 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig
|
||||
implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border02Config.key
|
||||
public chartConfig = cloneDeep(Border02Config)
|
||||
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 { Border03Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border03Config.key
|
||||
public chartConfig = cloneDeep(Border03Config)
|
||||
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 { Border04Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -13,7 +13,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border04Config.key
|
||||
public chartConfig = cloneDeep(Border04Config)
|
||||
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 { Border05Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border05Config.key
|
||||
public chartConfig = cloneDeep(Border05Config)
|
||||
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 { Border06Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border06Config.key
|
||||
public chartConfig = cloneDeep(Border06Config)
|
||||
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 { Border07Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border07Config.key
|
||||
public chartConfig = cloneDeep(Border07Config)
|
||||
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 { Border08Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -10,7 +10,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border08Config.key
|
||||
public chartConfig = cloneDeep(Border08Config)
|
||||
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 { Border09Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border09Config.key
|
||||
public chartConfig = cloneDeep(Border09Config)
|
||||
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 { Border10Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border10Config.key
|
||||
public chartConfig = cloneDeep(Border10Config)
|
||||
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 { Border11Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border11Config.key
|
||||
public chartConfig = cloneDeep(Border11Config)
|
||||
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 { Border12Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border12Config.key
|
||||
public chartConfig = cloneDeep(Border12Config)
|
||||
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 { Border13Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Border13Config.key
|
||||
public chartConfig = cloneDeep(Border13Config)
|
||||
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 { Decorates01Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -10,7 +10,7 @@ export const option = {
|
||||
endWidth: 5
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates01Config.key
|
||||
public chartConfig = cloneDeep(Decorates01Config)
|
||||
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 { Decorates02Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -9,7 +9,7 @@ export const option = {
|
||||
lineHeight: 3
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates02Config.key
|
||||
public chartConfig = cloneDeep(Decorates02Config)
|
||||
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 { Decorates03Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -9,7 +9,7 @@ export const option = {
|
||||
colors: ['#1dc1f5', '#1dc1f5'],
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates03Config.key
|
||||
public chartConfig = cloneDeep(Decorates03Config)
|
||||
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 { Decorates04Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -9,7 +9,7 @@ export const option = {
|
||||
reverse: false
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates04Config.key
|
||||
public chartConfig = cloneDeep(Decorates04Config)
|
||||
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 { Decorates05Config } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -8,7 +8,7 @@ export const option = {
|
||||
dur: 3
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = Decorates05Config.key
|
||||
public chartConfig = cloneDeep(Decorates05Config)
|
||||
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 { NumberConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -18,7 +18,7 @@ export const option = {
|
||||
suffixColor: '#4a9ef8',
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = NumberConfig.key
|
||||
public chartConfig = cloneDeep(NumberConfig)
|
||||
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 { TimeCommonConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
@@ -30,7 +30,7 @@ export const option = {
|
||||
colorShadow: '#0075ff'
|
||||
}
|
||||
|
||||
export default class Config extends publicConfig implements CreateComponentType {
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = TimeCommonConfig.key
|
||||
public attr = { ...chartInitConfig, w: 300, h: 50, zIndex: -1 }
|
||||
public chartConfig = cloneDeep(TimeCommonConfig)
|
||||
|
||||
Reference in New Issue
Block a user