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 = [
    {
        value: 'zhejiang',
        label: 'Zhejiang',
        children: [
            {
                value: 'hangzhou',
                label: 'Hangzhou',
                children: [
                    {
                        value: 'xihu',
                        label: 'West Lake'
                    }
                ]
            }
        ]
    },
    {
        value: 'jiangsu',
        label: 'Jiangsu',
        children: [
            {
                value: 'nanjing',
                label: 'Nanjing',
                children: [
                    {
                        value: 'zhonghuamen',
                        label: 'Zhong Hua Men'
                    }
                ]
            }
        ]
    }
];
const schema = {
    type: 'object',
    properties: {
        input: {
            type: 'string',
            title: "编辑模式",
            name: 'name1',
            enum: options,
            'x-decorator': 'FormItem',
            'x-component': 'Cascader',
            'x-component-props': {},
            'x-reactions': {
                target: 'read',
                fulfill: {
                    state: {
                        value: '{{$self.value}}'
                    }
                }
            }
        },
        read: {
            type: 'string',
            title: "阅读模式",
            enum: options,
            name: 'name2',
            'x-read-pretty': true,
            'x-decorator': 'FormItem',
            'x-component': 'Cascader',
            'x-component-props': {
                changeOnSelect: true
            }
        }
    }
};
const demo1_rslib_entry_ = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_client__.SchemaComponentProvider, {
        components: {
            Cascader: __WEBPACK_EXTERNAL_MODULE__tachybase_client__.Cascader,
            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 };
