Loading...
18 |Content
10 |Content
11 |15 | A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found 16 | as a welcome guest in many households across the world. 17 |
18 | ); 19 | 20 | const CollapsePreview = ({ disabled }) => ( 21 |{text}
27 |{text}
30 |{text}
33 |{text1}
40 |{text1}
43 |{text1}
46 |27 | Ant Design, a design language for background applications, is refined by Ant UED Team. Ant 28 | Design, a design language for background applications, is refined by Ant UED Team. Ant Design, 29 | a design language for background applications, is refined by Ant UED Team. Ant Design, a 30 | design language for background applications, is refined by Ant UED Team. Ant Design, a design 31 | language for background applications, is refined by Ant UED Team. Ant Design, a design 32 | language for background applications, is refined by Ant UED Team. 33 |
34 |
37 | function hello () { }
38 |
39 | Card content
16 |Card content
17 |Card content
18 |Card content
23 |Card content
24 |Card content
25 |some messages...some messages...
14 |some messages...some messages...
15 |Some contents...
134 |Some contents...
135 |Some contents...
136 |{record.description}
; 106 | const title = () => 'Here is title'; 107 | const showHeader = true; 108 | const footer = () => 'Here is footer'; 109 | const scroll = { y: 240 }; 110 | const pagination = { position: 'bottom' }; 111 | 112 | class TablePreview extends React.Component { 113 | state = { 114 | bordered: false, 115 | loading: false, 116 | pagination, 117 | size: 'default', 118 | expandedRowRender, 119 | title: undefined, 120 | showHeader, 121 | footer, 122 | rowSelection: {}, 123 | scroll: undefined, 124 | hasData: true 125 | }; 126 | 127 | handleToggle = prop => (enable) => { 128 | this.setState({ [prop]: enable }); 129 | }; 130 | 131 | handleSizeChange = (e) => { 132 | this.setState({ size: e.target.value }); 133 | }; 134 | 135 | handleExpandChange = (enable) => { 136 | this.setState({ expandedRowRender: enable ? expandedRowRender : undefined }); 137 | }; 138 | 139 | handleTitleChange = (enable) => { 140 | this.setState({ title: enable ? title : undefined }); 141 | }; 142 | 143 | handleHeaderChange = (enable) => { 144 | this.setState({ showHeader: enable ? showHeader : false }); 145 | }; 146 | 147 | handleFooterChange = (enable) => { 148 | this.setState({ footer: enable ? footer : undefined }); 149 | }; 150 | 151 | handleRowSelectionChange = (enable) => { 152 | this.setState({ rowSelection: enable ? {} : undefined }); 153 | }; 154 | 155 | handleScollChange = (enable) => { 156 | this.setState({ scroll: enable ? scroll : undefined }); 157 | }; 158 | 159 | handleDataChange = (hasData) => { 160 | this.setState({ hasData }); 161 | }; 162 | 163 | handlePaginationChange = (e) => { 164 | const { value } = e.target; 165 | this.setState({ 166 | pagination: value === 'none' ? false : { position: value } 167 | }); 168 | }; 169 | 170 | 171 | render() { 172 | const { disabled } = this.props; 173 | const { state } = this; 174 | 175 | return ( 176 |