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
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "standard"
}
+1
View File
@@ -6,6 +6,7 @@
[![GitHub issues](https://img.shields.io/github/issues/zuiidea/antd-admin.svg?style=flat-square)](https://github.com/zuiidea/antd-admin)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/zuiidea/antd-admin/pulls)
[![MIT](https://img.shields.io/dub/l/vibe-d.svg?style=flat-square)](http://opensource.org/licenses/MIT)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com)
演示地址 http://zuiidea.github.io/antd-admin/
+5 -1
View File
@@ -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",
+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 弹层'
}
]
},
-5282
View File
File diff suppressed because it is too large Load Diff