amis icon indicating copy to clipboard operation
amis copied to clipboard

查看文档没有看到样式需要特殊处理的?应该是有默认样式的吧!

Open xichangzhou opened this issue 6 years ago • 1 comments

import React from 'react';
import { render as renderAmis } from 'amis';

export default () => {
  return (
    <div style={{ width: '100%' }}>
      {renderAmis({
        type: 'page',
        body: [
          {
            type: 'tpl',
            tpl: 'Hello World!',
          },
          {
            type: 'divider',
          },
          {
            type: 'form',
            controls: [
              {
                type: 'text',
                name: 'name',
                label: '姓名',
              },
            ],
          },
        ],
      })}
    </div>
  );
};

预览生成的页面 生成的页面和官网文档相差太大,基本没有样式,请问什么原因?项目使用umi生成的

xichangzhou avatar Aug 04 '20 01:08 xichangzhou

#532 已经在这个里面找到答案

xichangzhou avatar Aug 04 '20 01:08 xichangzhou