import { ComponentMetadata, Snippet } from "@alilc/lowcode-types";

const DivMeta: ComponentMetadata = {
  componentName: "Div",
  title: "Div",
  docUrl: "",
  screenshot: "",
  devMode: "proCode",
  npm: {
    package: "@pisell/materials",
    version: "1.0.3",
    exportName: "Div",
    main: "src/index.tsx",
    destructuring: true,
    subName: "",
  },
  props: [
    {
      title: "others",
      name: "others",
      setter: ["JsonSetter","VariableSetter"],
    },
  ],
  configure: {
    supports: {
      style: true,
      events: [
        {
          name: "onClick",
          template:
            "onClick(event,${extParams}){\n// 点击时的回调\nconsole.log('onClick', event);}",
        },
      ],
    },
    component: {
      isContainer: true,
    },
  },
};
const snippets: Snippet[] = [
  {
    title: "Div",
    screenshot: "",
    schema: {
      componentName: "Div",
      props: {},
    },
  },
];

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