import {
  IPublicTypeComponentMetadata,
  IPublicTypeSnippet,
} from '@alilc/lowcode-types';

const EditBookingModalMeta: IPublicTypeComponentMetadata = {
  componentName: 'EditBookingModal',
  title: 'EditBookingModal',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.4',
    exportName: 'EditBookingModal',
    main: 'src/index.ts',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [],
    supports: {
      events: [
        {
          name: 'onOk',
          template:
            "onOk(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onOk', event);}",
        },
        {
          name: 'onCancel',
          template:
            "onCancel(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onCancel', event);}",
        },
      ],
    },
    component: {},
  },
};
const snippets: IPublicTypeSnippet[] = [
  {
    title: 'EditBookingModal',
    screenshot: '',
    schema: {
      componentName: 'EditBookingModal',
      props: {},
    },
  },
];

export default {
  ...EditBookingModalMeta,
  snippets,
};
