import { WidgetType } from '../constant'
import { positionConfig } from './base'

export default {
  type: WidgetType.WEB,
  label: '网页',
  icon: 'w-web',
  defaults (scale) {
    return {
      top: 0,
      left: 0,
      width: 300 * scale.width | 0,
      height: 200 * scale.height | 0,
      href: ''
    }
  },
  options: [
    {
      label: '配置',
      list: [
        {
          key: 'href',
          label: '链接地址',
          type: 'textarea',
          options: {
            singleLine: true
          }
        }
      ]
    },
    positionConfig
  ]
}
