adui
Version:
<div> <img src="https://wxa.wxs.qq.com/mpweb/delivery/legacy/wxadtouch/upload/t1/od834zef_52939fc6.png" style="margin:40px 0 0 -8px; background-color: #fcfcfc; box-shadow: none;" /> </div>
22 lines (21 loc) • 508 B
TypeScript
import * as React from "react";
type ContextProps = {
/**
* 是否禁用
*/
disabled?: boolean;
/**
* 值改变的 handler,传递下去由子组件触发
*/
handleGroupValueChange?: (checkboxValue: React.ReactText) => void;
/**
* 设置尺寸
*/
size?: "mini" | "small" | "medium" | "large";
/**
* 已选中的值
*/
value?: null | Array<React.ReactText>;
};
export declare const GroupContext: React.Context<ContextProps>;
export {};