import { Tooltip } from 'ant-design-vue' import { CheckOutlined } from '@ant-design/icons-vue' import type { FunctionalComponent } from 'vue' export type BlockCheckboxProps = { value: string onChange: (key: string) => void list?: { title: string key: string }[] configType: string prefixCls: string } const BlockCheckbox: FunctionalComponent = props => { const baseClassName = `${props.prefixCls}-drawer-block-checkbox` const domList = (props.list || []).map(item => (
props.onChange(item.key)} >
)) return (
{domList}
) } export default BlockCheckbox