/** * title: "带描述的多选框" * description: "使用 `` 渲染 `` 分组,定制Checkbox的children添加描述" */ import React, { useState } from 'react'; import { Checkbox } from '@alicloud/console-components'; const List = [ { label: '文本信息', value: 'A', }, { label: '文本信息', value: 'B', }, { label: '文本信息', value: 'C', disabled: true, }, ]; const itemStyle = { marginLeft: '24px', color: '#808080', display: 'inline-block', lineHeight: '16px', }; export default () => { const [checkedList, setCheckedList] = useState>([]); return ( {List.map((item) => ( {item.label}
对于选项的描述/解释文案,对于选项的描述/解释文案
))}
); };