switchComponent
约 105 字小于 1 分钟
2025-10-13
Karin API Docs / switchComponent
变量: switchComponent
constswitchComponent:object
定义于: packages/core/src/components/switch.ts:20
开关组件
类型声明
create()
create: (
key,options) =>SwitchProps
创建基础开关
参数
key
string
唯一标识符
options
Omit<SwitchProps, "key" | "componentType"> = {}
开关配置
返回
options()
options: (
key,config) =>SwitchProps
自定义开关
参数
key
string
唯一标识符
config
Partial<Omit<SwitchProps, "key" | "componentType">> = {}
开关配置
