
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';

const HtmlFragmentMeta: IPublicTypeComponentMetadata = {
  priority: 9,
  componentName: "HtmlFragment",
  title: "HTML片段",
  category: '通用',
  docUrl: "",
  screenshot: "",
  configure: {
    props: [
      {
        title: {
          label: "片段内容"
        },
        name: "htmlString",
        setter: {
          componentName: "JsonSetter",
          isRequired: true,
          initialValue: "<div>html内容</div>"
        }
      }
    ],
    supports: {
      style: false
    },
    component: {}
  }
};
const snippets: IPublicTypeSnippet[] = [
  {
    title: "HTML片段",
    screenshot: require('./__screenshots__/html-fragment-1.png'),
    schema: {
      componentName: "HtmlFragment",
      props: {}
    }
  }
];

export default {
  ...HtmlFragmentMeta,
  snippets
};
