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


const SelectTimeMeta: ComponentMetadata = {
  componentName: "SelectTime",
  title: "SelectTime",
  docUrl: "",
  screenshot: "",
  devMode: "proCode",
  npm: {
    package: "@pisell/materials",
    version: "1.0.3",
    exportName: "SelectTime",
    main: "src/index.tsx",
    destructuring: true,
    subName: "",
  },
  props: [
    {
      title: "value",
      name: "value",
      setter: ["JsonSetter", "VariableSetter"],
    },
    {
      title: "弹层的配置项",
      name: "popoverProps",
      setter: ["JsonSetter", "VariableSetter"],
    },
    {
      title: "虚拟键盘的配置项",
      name: "timePickerProps",
      setter: ["JsonSetter", "VariableSetter"],
    },
    {
      title: "时间input框的配置项",
      name: "timeProps",
      setter: ["JsonSetter", "VariableSetter"],
    },
    {
      title: "时间切片",
      name: "slice",
      setter: ["JsonSetter", "VariableSetter"],
    },
  ],
  configure: {
    supports: {
      style: true,
      events: [
        {
          name: "onChange",
          template:
            "onChange(event,${extParams}){\n// 点击时的回调\nconsole.log('onClick', event);}",
        },
      ],
    },
    component: {
      isContainer: true,
    },
  },
};
const snippets: Snippet[] = [
  {
    title: "SelectTime",
    screenshot: "",
    schema: {
      componentName: "SelectTime",
      props: {},
    },
  },
];

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