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

const snippets: IPublicTypeSnippet[] = [
  {
    title: '二维码扫描器',
    screenshot: '',
    schema: {
      componentName: 'PisellQRScanner',
      props: {
        visible: false,
        showUpload: true,
        onClose: {
          type: 'JSFunction',
          value: '() => {\n  // 处理关闭事件\n}'
        },
        onScan: {
          type: 'JSFunction',
          value: '(result) => {\n  // 处理扫描结果\n  console.log(\'扫描结果:\', result);\n}'
        }
      }
    }
  }
];

export default snippets; 