import snippets from './snippets'; export default { snippets, componentName: 'PisellScan', title: '扫描组件', category: '表单', docUrl: '', screenshot: '', devMode: 'proCode', npm: { package: '@pisell/materials', version: '1.0.1', exportName: 'PisellScan', main: 'src/index.tsx', destructuring: true, subName: '', }, props: [ { name: 'width', title: { label: '宽度', tip: '宽度' }, propType: { type: 'oneOfType', value: ['string', 'number'] }, defaultValue: 200, }, { name: 'height', title: { label: '高度', tip: '高度' }, propType: { type: 'oneOfType', value: ['string', 'number'] }, defaultValue: 200, }, { name: 'borderRadius', title: { label: '圆角度数', tip: '圆角度数' }, propType: { type: 'oneOfType', value: ['string', 'number'] }, defaultValue: 0, }, ], configure: { component: { isContainer: true, }, supports: { style: true, events: [ { name: 'onChange', template: "onChange(value,${extParams}){\n// 扫描内容变化时的回调\nconsole.log('onChange',value);}", }, ], }, }, };