const Meta = {
  componentName: 'SaasAttendance.Settings',
  title: '考勤组设置',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.0.0',
    exportName: 'SaasAttendance',
    main: 'src/index.tsx',
    destructuring: true,
    subName: 'Settings',
  },
  configure: {
    props: [
      {
        name: 'value',
        title: { label: '当前值', tip: '当前值' },
        setter: 'JsonSetter',
      },
      {
        name: 'loading',
        title: { label: '加载中' },
        setter: 'BoolSetter',
      },
    ],
    supports: {
      style: true,
      events: [
        {
          name: 'onValuesChange',
          template:
            "onValuesChange(changedValues, allValues){\n// 输入框内容变化时的回调\nconsole.log('onValuesChange',changedValues, allValues);}",
        },
        {
          name: 'onFinish',
          template:
            "onFinish(allValues){\n// 点击确定时的回调\nconsole.log('onFinish',allValues);}",
        },
      ],
    },
  },
};

export default {
  ...Meta,
  snippets: [
    {
      title: '考勤组设置',
      schema: {
        componentName: 'SaasAttendance.Settings',
      },
    },
  ],
};
