mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-21 06:53:47 +00:00
add:standard-js
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
[](https://github.com/zuiidea/antd-admin)
|
||||
[](https://github.com/zuiidea/antd-admin/pulls)
|
||||
[](http://opensource.org/licenses/MIT)
|
||||
[](http://standardjs.com)
|
||||
|
||||
演示地址 http://zuiidea.github.io/antd-admin/
|
||||
|
||||
|
||||
+5
-1
@@ -31,9 +31,13 @@
|
||||
"dora-plugin-webpack-hmr": "^0.2.1",
|
||||
"eslint": "^2.13.1",
|
||||
"eslint-config-airbnb": "^9.0.1",
|
||||
"eslint-plugin-import": "^1.8.1",
|
||||
"eslint-config-standard": "^7.0.1",
|
||||
"eslint-plugin-import": "^1.16.0",
|
||||
"eslint-plugin-jsx-a11y": "^1.4.2",
|
||||
"eslint-plugin-node": "^4.2.0",
|
||||
"eslint-plugin-promise": "^3.5.0",
|
||||
"eslint-plugin-react": "^5.1.1",
|
||||
"eslint-plugin-standard": "^2.1.1",
|
||||
"glob": "^7.0.5",
|
||||
"mockjs": "^1.0.1-beta3",
|
||||
"rc-tween-one": "^1.0.0",
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
@@ -26,6 +26,10 @@ module.exports = [
|
||||
{
|
||||
key: 'dropOption',
|
||||
name: 'DropOption 下拉操作'
|
||||
},
|
||||
{
|
||||
key: 'layer',
|
||||
name: 'Layer 弹层'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user