/**
 * title: "图文型"
 * description: "通过设置align属性设置气泡出现方向，气泡内容通过Children自定义。"
 */
import React from 'react';
import { Balloon, Button } from '@alicloud/console-components';

const titleStyle = {
  fontSize: '12px',
  fontWeight: 500,
  lineHeight: '20px',
  marginBottom: '8px',
};

const but = (
  <Button
    id="topRight"
    style={{
      margin: '25px 0 25px 400px',
      background: '#E5E5E5',
    }}
  />
);

const ExtraWithPicture = {
  trigger: but,
  content: (
    <div style={{ width: '266px' }}>
      <div style={titleStyle}>第一步标题</div>
      <div
        style={{
          backgroundColor: '#F6F6F6',
          width: 'auto',
          height: '106px',
          marginBottom: '8px',
        }}
      />
      <span>
        点击/鼠标移入元素，弹出气泡浮层，内容文案超出长度后允许自动换行。点击/鼠标移入元素，弹出气泡浮层，内容文案超出长度后允许自动换行。
      </span>
    </div>
  ),
};

export default () => {
  return (
    <Balloon triggerType="click" align="l" trigger={ExtraWithPicture.trigger}>
      {ExtraWithPicture.content}
    </Balloon>
  );
};


