import { PublicConfigClass } from '@/packages/public'
import { chartInitConfig,requestSqlConfig } from '@/settings/designSetting'
import { CreateComponentType } from '@/packages/index.d'
import { TaskTextAreaConfig } from './index'
import cloneDeep from 'lodash/cloneDeep'

export const option = {
  textColor: '#FFFFFF',
  textSize: 14,
  backgroundColor: '#0C2411',
  borderColor: '#00611A',
  dataset: '',
}

export default class Config extends PublicConfigClass implements CreateComponentType {
  public key = TaskTextAreaConfig.key
  public attr = { ...chartInitConfig, w: 437, h: 93, zIndex: 1 }
  public chartConfig = cloneDeep(TaskTextAreaConfig)
  public option = cloneDeep(option)
  public request = { ...requestSqlConfig, requestSQLContent: { sql: 'select * from fm_fireclueinfo where "Id" = #{Id}' }, }
  public filter = "return res.result;"
}
