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
| <template>
| <view class="flex flex-v list">
| <text class="txt" v-for="item in wordList">{{item}}</text>
| </view>
| </template>
|
| <script>
| export default {
| data(){
| return {
| wordList: []
| }
| },
| created(){
| let arr = []
| for(var i=0;i<26;i++){
| arr.push(String.fromCharCode(65+i))
| }
| this.wordList = arr;
| }
| }
| </script>
|
| <style scoped>
| .list{
| padding-top: 15px;
| margin-right: -4px;
| }
| .txt{
| font-size: 12px;
| text-align: center;
| color: #999;
| padding: 2px 0;
| }
| </style>
|
|