add:standard-js

This commit is contained in:
zuiidea
2017-03-14 14:25:17 +08:00
parent 66ee718374
commit db5105e482
10 changed files with 83 additions and 5284 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import Ico from './ico.js'
import Search from './search.js'
import DropOption from './dropOption.js'
import Layer from './layer.js'
export { Ico, Search, DropOption }
export { Ico, Search, DropOption, Layer }
+10
View File
@@ -0,0 +1,10 @@
import React, {PropTypes} from 'react'
import { Modal, Button } from 'antd'
const Layer = () => {
console.log('555')
console.log()
console.log()
}
export default Layer
View File
+8
View File
@@ -64,6 +64,14 @@ export default function ({history, app}) {
cb(null, require('./routes/ui/dropOption'))
}, 'ui-dropOption')
}
}, {
path: 'ui/layer',
name: 'ui/layer',
getComponent (nextState, cb) {
require.ensure([], require => {
cb(null, require('./routes/ui/layer'))
}, 'ui-layer')
}
}, {
path: '*',
name: 'error',
+50
View File
@@ -0,0 +1,50 @@
import React from 'react'
import { Layer } from '../../components/ui'
import { Table, Row, Col, Button, Card } from 'antd'
import styles from './ico.less'
const IcoPage = () => <div className='content-inner'>
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title='默认'>
<Button type='primary'>打开Layer</Button>
</Card>
</Col>
</Row>
<h2 style={{margin: '16px 0'}}>Props</h2>
<Row>
<Col lg={18} md={24}>
<Table rowKey={(record, key) => key}
pagination={false}
bordered
scroll={{ x: 800 }}
columns={[
{
title: '参数',
dataIndex: 'props'
},
{
title: '说明',
dataIndex: 'desciption'
},
{
title: '类型',
dataIndex: 'type'
},
{
title: '默认值',
dataIndex: 'default'
}
]}
dataSource={[
{
props: 'type',
desciption: '图标类型',
type: 'String',
default: '-'
}]} />
</Col>
</Row>
</div>
export default IcoPage
+4
View File
@@ -26,6 +26,10 @@ module.exports = [
{
key: 'dropOption',
name: 'DropOption 下拉操作'
},
{
key: 'layer',
name: 'Layer 弹层'
}
]
},