20 lines
492 B
TypeScript
20 lines
492 B
TypeScript
import { ComponentGroup, CustomComponent, DataMode } from 'open-data-v/base'
|
|
|
|
export const componentName = 'ComChart'
|
|
class ComChartComponent extends CustomComponent {
|
|
constructor(id?: string, name?: string, icon?: string) {
|
|
super({
|
|
component: componentName,
|
|
group: ComponentGroup.OTHER,
|
|
name: name ? name : '通用Echart图',
|
|
id,
|
|
width: 500,
|
|
height: 170,
|
|
icon,
|
|
dataMode: DataMode.UNIVERSAL
|
|
})
|
|
}
|
|
}
|
|
|
|
export default ComChartComponent
|