import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_client__ from "@tachybase/client";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/components";
const options = [
    {
        label: '选项1',
        value: 1,
        color: 'red'
    },
    {
        label: '选项2',
        value: 2,
        color: 'blue'
    }
];
const schema = {
    type: 'object',
    properties: {
        input: {
            type: 'array',
            title: "编辑模式",
            enum: options,
            'x-decorator': 'FormItem',
            'x-component': 'Checkbox.Group',
            'x-reactions': {
                target: 'read',
                fulfill: {
                    state: {
                        value: '{{$self.value}}'
                    }
                }
            }
        },
        read: {
            type: 'array',
            title: "阅读模式",
            enum: options,
            'x-read-pretty': true,
            'x-decorator': 'FormItem',
            'x-component': 'Checkbox.Group'
        }
    }
};
const checkbox_group_rslib_entry_ = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_client__.SchemaComponentProvider, {
        components: {
            Checkbox: __WEBPACK_EXTERNAL_MODULE__tachybase_client__.Checkbox,
            FormItem: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormItem
        },
        children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_client__.SchemaComponent, {
            schema: schema
        })
    });
export { checkbox_group_rslib_entry_ as default };
