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 dataSource = [
    {
        label: '选项1',
        value: 1,
        children: [
            {
                label: 'Child Node1',
                value: '0-0-0'
            },
            {
                label: 'Child Node2',
                value: '0-0-1'
            },
            {
                label: 'Child Node3',
                value: '0-0-2'
            }
        ]
    },
    {
        label: '选项2',
        value: 2,
        children: [
            {
                label: 'Child Node1',
                value: '0-1-0'
            },
            {
                label: 'Child Node2',
                value: '0-1-1'
            },
            {
                label: 'Child Node3',
                value: '0-1-2'
            }
        ]
    }
];
const schema = {
    type: 'object',
    properties: {
        input: {
            type: 'string',
            title: "Editable",
            'x-decorator': 'FormItem',
            'x-component': 'TreeSelect',
            'x-component-props': {
                treeData: dataSource
            },
            'x-reactions': {
                target: 'read',
                fulfill: {
                    state: {
                        value: '{{$self.value}}'
                    }
                }
            }
        },
        read: {
            type: 'string',
            title: "Read pretty",
            'x-read-pretty': true,
            'x-decorator': 'FormItem',
            'x-component': 'TreeSelect',
            'x-component-props': {
                treeData: dataSource
            }
        }
    }
};
const demo1_rslib_entry_ = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_client__.SchemaComponentProvider, {
        components: {
            TreeSelect: __WEBPACK_EXTERNAL_MODULE__tachybase_client__.TreeSelect,
            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 { demo1_rslib_entry_ as default };
