index.ts 627 Bytes
import { ChartFrameEnum, ConfigType } from '@/packages/index.d'
import { EPackagesCategoryEnum } from '@/packages/components/external/types'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
import { useWidgetKey } from '@/packages/external/useWidgetKey'

const { key, chartKey, conKey } = useWidgetKey('Button')
export const ButtonConfig: ConfigType = {
    key,
    chartKey,
    conKey,
    title: '按钮',
    category: ChatCategoryEnum.MORE,
    categoryName: ChatCategoryEnumName.MORE,
    package: EPackagesCategoryEnum.COMPOSES,
    chartFrame: ChartFrameEnum.NAIVE_UI,
    image: 'button.png',
}