UNPKG

lark-cms

Version:

Multi terminal CMS component library

39 lines (38 loc) 1.11 kB
import React from "react"; interface YhwCheckboxProps { /** * 复选框标签 */ label: string; /** * 复选框的值 */ value: string | number; /** * 自定义样式,默认为null */ customStyle?: object | null; /** * 复选框形状,默认方形 */ shape?: "square" | "circle"; /** * 复选框选中时的图标 */ selectIcon?: string; /** * 是否选中 */ selected: boolean; /** * 选中回调函数 */ onSelect: (value: string | number) => void; } /** * 【基础组件】复选框组件,支持多选,自定义图标,自定义样式 * selectIcon: 复选框选中时的图标 可从:https://knowledge.raodaor.com/blog/tool/emoji.html 直接复制图表传入,比如:✔️ * @Demo: <YhwCheckboxRN label="选项1" value="option1" selected={true} onSelect={(value) => console.log(value)} /> */ declare const YhwCheckboxRN: ({ label, value, customStyle, shape, selectIcon, selected, onSelect, }: YhwCheckboxProps) => React.JSX.Element; export default YhwCheckboxRN;