| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | /** * * @Author 瞿龙俊 - qulongjun@shine.design * @Date 2019-03-24 12:28 */ import {Col, Row} from 'shineDev'; const components = {Row, Col}; export default { basic: { components, jsx: ` <Row className="shine-grid-helper"> <Col col={24}>col-24</Col> </Row> <Row className="shine-grid-helper"> <Col col={12}>col-12</Col> <Col col={12}>col-12</Col> </Row> <Row className="shine-grid-helper"> <Col col={6}>col-6</Col> <Col col={6}>col-6</Col> <Col col={6}>col-6</Col> <Col col={6}>col-6</Col> </Row> <Row className="shine-grid-helper"> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> </Row> `, }, offset: { components, jsx: ` <Row className="shine-grid-helper"> <Col col={12} offset={12}>col-12 | offset-12 </Col> </Row> <Row className="shine-grid-helper"> <Col col={6} offset={6}>col-6 | offset-6 </Col> <Col col={6}>col-6</Col> <Col col={6}>col-6</Col> </Row> <Row className="shine-grid-helper"> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> <Col col={6} offset={6}>col-6 | offset-6 </Col> <Col col={3}>col-3</Col> <Col col={3}>col-3</Col> </Row> `, }, order: { components, jsx: ` <Row className="shine-grid-helper"> <Col col={3} order={1}>order-1</Col> <Col col={3} order={4}>order-4</Col> <Col col={3} order={3}>order-3</Col> <Col col={3} order={2}>order-2</Col> <Col col={3} order={8}>order-8</Col> <Col col={3} order={6}>order-6</Col> <Col col={3} order={7}>order-7</Col> <Col col={3} order={5}>order-5</Col> </Row> `, }, responsive: { components, jsx: ` <Row className="shine-grid-helper"> <Col col={{xxxl:6,xxl:8,xl:10,lg:12,md:14}}>Col</Col> </Row> <Row className="shine-grid-helper"> <Col col="6" order={{xxxl:1,xl:2,lg:3,md:4,sm:1}}>A</Col> <Col col="6" order={{xxxl:2,xl:3,lg:4,md:1,sm:2}}>B</Col> <Col col="6" order={{xxxl:3,xl:4,lg:1,md:2,sm:3}}>C</Col> <Col col="6" order={{xxxl:4,xl:1,lg:2,md:3,sm:4}}>D</Col> </Row> <Row className="shine-grid-helper"> <Col col={6} offset={{xxxl:2,xxl:4,xl:6,lg:7,md:10,sm:12}}>Offset</Col> </Row> `, }, justify: { components, jsx: ` <Row className="shine-grid-helper" justify="start"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> <Row className="shine-grid-helper" justify="center"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> <Row className="shine-grid-helper" justify="end"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> <Row className="shine-grid-helper" justify="space-around"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> <Row className="shine-grid-helper" justify="space-between"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> `, }, align: { components, jsx: ` <Row className="shine-grid-helper shine-grid-height" align="top"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> <Row className="shine-grid-helper shine-grid-height" align="middle"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> <Row className="shine-grid-helper shine-grid-height" align="bottom"> <Col col={3}>col-1</Col> <Col col={3}>col-2</Col> <Col col={3}>col-3</Col> <Col col={3}>col-4</Col> </Row> `, }, }; |