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

const OadpIframeMeta: IPublicTypeComponentMetadata = {
  "componentName": "OadpIframe",
  "title": "页面卡片",
  "docUrl": "",
  "category": "高级组件",
  "group": "低代码组件",
  "screenshot": "https://img.alicdn.com/imgextra/i3/O1CN01tnhXhk1GUIFhsXwzA_!!6000000000625-55-tps-56-56.svg",
  "devMode": "proCode",
  "npm": {
    "package": "oadp-material",
    "version": "{{version}}",
    "exportName": "OadpIframe",
    "main": "src/index.tsx",
    "destructuring": true,
    "subName": ""
  },
  "configure": {
    "props": [
      {
        "name": "DataSetting",
        "title": "数据设置",
        "type": "group",
        "display": "block",
        "items": [   
          {
            "name": "name",
            "title": {
              "label": {
                "type": "i18n",
                "zh_CN": "表单标识",
                "en_US": "Name",
              },
              "tip": {
                "type": "i18n",
                "zh_CN": "属性: name | 说明: 表单标识",
                "en_US": "prop: name | description: switch name",
              },
            },
            "setter": "StringSetter", 
            "supportVariable": false,
          },
          {
            "name": "id",
            "title": {
              "label": {
                "type": "i18n",
                "zh_CN": "唯一标识",
                "en_US": "ID",
              },
              "tip": {
                "type": "i18n",
                "zh_CN": "属性: id | 说明: 唯一标识",
                "en_US": "prop: id | description: switch id",
              },
            },
            "setter": "StringSetter" 
          }, 
          {
            "name": "src",
            "title": {
              "label": {
                "type": "i18n",
                "zh_CN": "链接地址",
                "en_US": "Src Value",
              },
              "tip": {
                "type": "i18n",
                "zh_CN": "属性: src | 说明: 链接地址",
                "en_US": "prop: src | description: src",
              },
            },
            "setter": "StringSetter",
            "supportVariable": true,
            "description": "链接地址",
          },  
          {
            "name": "page",
            "title": {
              "label": {
                "type": "i18n",
                "zh_CN": "链接页面",
                "en_US": "page",
              },
              "tip": {
                "type": "i18n",
                "zh_CN": "属性: page | 说明: 链接页面",
                "en_US": "prop: page | description: page",
              },
            },
            "setter": "OadpPageSetter",
            "supportVariable": true,
            "description": "链接页面",
          }, 
        ]
      },
      // {
      //   "name": "DisplaySetting",
      //   "title": "显示设置",
      //   "type": "group",
      //   "display": "block",
      //   "items": [  
      //   ]
      // }, 
      // {
      //   "name": "InteractionSetting",
      //   "title": "交互设置",
      //   "type": "group",
      //   "display": "block",
      //   "items": [  
          
      //   ]
      // },
    ],
    "supports": {
      "style": true
    },
    "component": {}
  }
};
const snippets: IPublicTypeSnippet[] = [
  {
    "title": "页面卡片",
    "screenshot": "https://img.alicdn.com/imgextra/i3/O1CN01tnhXhk1GUIFhsXwzA_!!6000000000625-55-tps-56-56.svg",
    "schema": {
      "componentName": "OadpIframe", 
      "props": {      
      },
    }
  }
];

export default {
  ...OadpIframeMeta,
  snippets
};
