-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afea13d
commit 82a1bc8
Showing
13 changed files
with
169 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,13 @@ | |
<title>index</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.css"></script> | ||
<style> | ||
body { | ||
background-color: #f5f5f5; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<body style="background-color:#f5f5f5"> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.tableComponet { | ||
background-color: white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import './GridLess.less' | ||
import { Table, Tag, Space } from 'antd'; | ||
class TableComponent extends React.Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
|
||
onSelectInfoChange = (selectedRowKeys,selectedRows) => { | ||
console.log(selectedRowKeys,selectedRows) | ||
}; | ||
render() { | ||
const data = [ | ||
{ | ||
key: '1', | ||
name: 'John Brown', | ||
age: 32, | ||
address: 'New York No. 1 Lake Park', | ||
tags: ['nice', 'developer'], | ||
}, | ||
{ | ||
key: '2', | ||
name: 'Jim Green', | ||
age: 42, | ||
address: 'London No. 1 Lake Park', | ||
tags: ['loser'], | ||
}, | ||
{ | ||
key: '3', | ||
name: 'Joe Black', | ||
age: 32, | ||
address: 'Sidney No. 1 Lake Park', | ||
tags: ['cool', 'teacher'], | ||
}, | ||
]; | ||
const columns = [ | ||
{ | ||
title: 'Name', | ||
dataIndex: 'name', | ||
key: 'name', | ||
render: text => <a>{text}</a>, | ||
}, | ||
{ | ||
title: 'Age', | ||
dataIndex: 'age', | ||
key: 'age', | ||
}, | ||
{ | ||
title: 'Address', | ||
dataIndex: 'address', | ||
key: 'address', | ||
}, | ||
{ | ||
title: 'Tags', | ||
key: 'tags', | ||
dataIndex: 'tags', | ||
render: tags => ( | ||
<> | ||
{tags.map(tag => { | ||
let color = tag.length > 5 ? 'geekblue' : 'green'; | ||
if (tag === 'loser') { | ||
color = 'volcano'; | ||
} | ||
return ( | ||
<Tag color={color} key={tag}> | ||
{tag.toUpperCase()} | ||
</Tag> | ||
); | ||
})} | ||
</> | ||
), | ||
}, | ||
{ | ||
title: 'Action', | ||
key: 'action', | ||
render: (text, record) => ( | ||
<Space size="middle"> | ||
<a>Invite {record.name}</a> | ||
<a>Delete</a> | ||
</Space> | ||
), | ||
}, | ||
]; | ||
|
||
// 消息模板列表的勾选 | ||
const rowSelection = { | ||
selectedRowKeys:['1'], | ||
onChange: this.onSelectInfoChange, | ||
}; | ||
return ( | ||
<div className={'tableComponet'}> | ||
|
||
<Table columns={columns} dataSource={data} bordered rowSelection={rowSelection} /> | ||
</div> | ||
); | ||
} | ||
} | ||
export default TableComponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.query { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
import './QueryLess.less' | ||
import {DatePicker} from 'antd' | ||
class App extends React.Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
onClick() { | ||
this.props.dispatch({ | ||
type: 'INCREMENT', | ||
}) | ||
// this.props.history.push('/about/') | ||
} | ||
|
||
|
||
|
||
render() { | ||
const onChange =(date, dateString) => { | ||
console.log(date, dateString); | ||
} | ||
return ( | ||
<div className={'query'}> | ||
|
||
</div> | ||
); | ||
} | ||
} | ||
export default connect( state => ({ | ||
number: state.number | ||
}))(App); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Grid from './Grid/GridView' | ||
import Query from './Query/QueryView' | ||
|
||
|
||
export { | ||
Grid, | ||
Query | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
.app { | ||
background-color: red; | ||
} | ||
.sss { | ||
text-emphasis: none; | ||
} | ||
.ssss{ | ||
text-align: center; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters