Commit 2171f454fd706610ab7b671e6e3731a0760a2472
1 parent
9cd69375
added many test
Showing
1 changed file
with
90 additions
and
2 deletions
Show diff stats
test/routers/carousel.vue
| ... | ... | @@ -74,10 +74,30 @@ |
| 74 | 74 | </Alert> |
| 75 | 75 | </Carousel-item> |
| 76 | 76 | <Carousel-item> |
| 77 | - <div style="height: 100%; min-height: 20px; background: #f50; position: relative;"> | |
| 77 | + <div style="height: 150px; background: #f50; position: relative"> | |
| 78 | 78 | <p style="position: absolute; width: 100%; color: #fff; top: 50%; height: 20px; line-height: 20px; margin-top: -10px; text-align: center">test font 定高测试</p> |
| 79 | 79 | </div> |
| 80 | 80 | </Carousel-item> |
| 81 | + <Carousel-item> | |
| 82 | + <div style="height: 100%; min-height: 20px; background: #f50; position: relative;"> | |
| 83 | + <p style="position: absolute; width: 100%; color: #fff; top: 50%; height: 20px; line-height: 20px; margin-top: -10px; text-align: center">test font 居中测试</p> | |
| 84 | + </div> | |
| 85 | + </Carousel-item> | |
| 86 | + <Carousel-item> | |
| 87 | + <Card style="width:350px"> | |
| 88 | + <p slot="title"> | |
| 89 | + <Icon type="ios-film-outline"></Icon> | |
| 90 | + 经典电影 | |
| 91 | + </p> | |
| 92 | + <a href="#" slot="extra"> | |
| 93 | + <Icon type="ios-loop-strong"></Icon> | |
| 94 | + 换一换 | |
| 95 | + </a> | |
| 96 | + <ul> | |
| 97 | + | |
| 98 | + </ul> | |
| 99 | + </Card> | |
| 100 | + </Carousel-item> | |
| 81 | 101 | <Carousel-item style="text-align: center"> |
| 82 | 102 | <Icon type="checkmark" style="font-size: 5em"></Icon> |
| 83 | 103 | </Carousel-item> |
| ... | ... | @@ -86,9 +106,77 @@ |
| 86 | 106 | <Icon type="checkmark" style="font-size: 5em"></Icon>{{item}} |
| 87 | 107 | </Carousel-item> |
| 88 | 108 | </Carousel> |
| 89 | - <div> | |
| 109 | + <div style="max-height: 200px; overflow: scroll"> | |
| 90 | 110 | <p v-for="item in log" track-by="$index">{{item}}</p> |
| 91 | 111 | </div> |
| 112 | + | |
| 113 | + <Card style="width:350px"> | |
| 114 | + <p slot="title"> | |
| 115 | + <Icon type="ios-film-outline"></Icon> | |
| 116 | + 经典电影 | |
| 117 | + </p> | |
| 118 | + <Carousel> | |
| 119 | + <Carousel-item v-if="!remove"> | |
| 120 | + <Alert type="warning" show-icon> | |
| 121 | + 警告提示文案 | |
| 122 | + <template slot="desc"> | |
| 123 | + 警告的提示描述文案警告的提示描述文案警告的提示描述文案 | |
| 124 | + </template> | |
| 125 | + </Alert> | |
| 126 | + </Carousel-item> | |
| 127 | + <Carousel-item> | |
| 128 | + <div style="height: 100%; min-height: 20px; background: #f50; position: relative;"> | |
| 129 | + <p style="position: absolute; width: 100%; color: #fff; top: 50%; height: 20px; line-height: 20px; margin-top: -10px; text-align: center">test font 定高测试</p> | |
| 130 | + </div> | |
| 131 | + </Carousel-item> | |
| 132 | + <Carousel-item style="text-align: center"> | |
| 133 | + <Icon type="checkmark" style="font-size: 5em"></Icon> | |
| 134 | + </Carousel-item> | |
| 135 | + </Carousel> | |
| 136 | + </Card> | |
| 137 | + <Tabs> | |
| 138 | + <Tab-pane label="标签一"> | |
| 139 | + <Carousel> | |
| 140 | + <Carousel-item v-if="!remove"> | |
| 141 | + <Alert type="warning" show-icon> | |
| 142 | + 警告提示文案 | |
| 143 | + <template slot="desc"> | |
| 144 | + 警告的提示描述文案警告的提示描述文案警告的提示描述文案 | |
| 145 | + </template> | |
| 146 | + </Alert> | |
| 147 | + </Carousel-item> | |
| 148 | + <Carousel-item> | |
| 149 | + <div style="height: 100%; min-height: 20px; background: #f50; position: relative;"> | |
| 150 | + <p style="position: absolute; width: 100%; color: #fff; top: 50%; height: 20px; line-height: 20px; margin-top: -10px; text-align: center">test font 定高测试</p> | |
| 151 | + </div> | |
| 152 | + </Carousel-item> | |
| 153 | + <Carousel-item style="text-align: center"> | |
| 154 | + <Icon type="checkmark" style="font-size: 5em"></Icon> | |
| 155 | + </Carousel-item> | |
| 156 | + </Carousel> | |
| 157 | + </Tab-pane> | |
| 158 | + <Tab-pane label="标签二" disabled>标签二的内容</Tab-pane> | |
| 159 | + <Tab-pane label="标签三"> | |
| 160 | + <Carousel> | |
| 161 | + <Carousel-item v-if="!remove"> | |
| 162 | + <Alert type="warning" show-icon> | |
| 163 | + 警告提示文案 | |
| 164 | + <template slot="desc"> | |
| 165 | + 警告的提示描述文案警告的提示描述文案警告的提示描述文案 | |
| 166 | + </template> | |
| 167 | + </Alert> | |
| 168 | + </Carousel-item> | |
| 169 | + <Carousel-item> | |
| 170 | + <div style="height: 100%; min-height: 20px; background: #f50; position: relative;"> | |
| 171 | + <p style="position: absolute; width: 100%; color: #fff; top: 50%; height: 20px; line-height: 20px; margin-top: -10px; text-align: center">test font 定高测试</p> | |
| 172 | + </div> | |
| 173 | + </Carousel-item> | |
| 174 | + <Carousel-item style="text-align: center"> | |
| 175 | + <Icon type="checkmark" style="font-size: 5em"></Icon> | |
| 176 | + </Carousel-item> | |
| 177 | + </Carousel> | |
| 178 | + </Tab-pane> | |
| 179 | + </Tabs> | |
| 92 | 180 | </template> |
| 93 | 181 | <script> |
| 94 | 182 | export default { | ... | ... |