1.0.2 • Published 6 years ago

comp-section-layout v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

comp-section-layout image

API

属性说明类型默认值
title标题String/RectNode
titleSytle标题自定义样式Object
contentSytle内容自定义样式Object

Example

import React from 'react';
import { render } from 'react-dom';
import { Form } from 'antd';
import CompSectionLayout from 'comp-section-layout';

const FormItem = Form.Item;
const formItemLayout = {
  labelCol: {
    span: 2
  },
  wrapperCol: {
    span: 16
  }
};

render(
  <CompSectionLayout title="基本信息" titleStyle={{fontSize: '18px'}}>
    <Form>
      <FormItem
        {...formItemLayout}
        label="英文名字"
      >
        张三
      </FormItem>
      <FormItem
        {...formItemLayout}
        label="实际年龄"
      >
        28
      </FormItem>
    </Form>
  </CompSectionLayout>,
  document.getElementById('app')
);

Develop

$ npm run start

Publish

$ cd ../..          // 返回项目根目录,通过 `lerna` 来构建与发布
$ npm run build
$ npm publish
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago