import snippets from './snippets';

export default {
  snippets,
  componentName: 'PisellGoodPassCard',
  title: '商品券卡片',
  category: '数据展示',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/materials',
    version: '1.0.0',
    exportName: 'PisellGoodPassCard',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  props: [
    {
      name: 'dataSource',
      title: { label: '数据源' },
      setter: ['JsonSetter', 'VariableSetter'],
    },
  ],
  configure: {
    supports: {
      style: true,
      events: [
        {
          name: 'onChange',
          template:
            "onChange(value,${extParams}){\n// 选择变化时的回调\nconsole.log('onChange',value);}",
        },
      ]
    }
  }
}