美文网首页
无序列表的点

无序列表的点

作者: 小哼唧麻 | 来源:发表于2022-04-20 17:31 被阅读0次
    image.png
    <view
           v-for="(desc, index) in item.descList"
            :key="index"
    >
           <view
                   v-if="desc.type === 'orderedList'"
                    class="list"
                    @tap="onOrderedListTap(desc)"
             >
                    {{ desc.text }}
             </view>
    </view>
    
    list {
                color: #1F1F1F;
                padding-left: 14px;
                position: relative;
                line-height: 21px;
    
                &::after {
                    position: absolute;
                    top: 0;
                    left: 0;
                    content: "• ";
                    color: #00C8C8;
                }
            }
    

    相关文章

      网友评论

          本文标题:无序列表的点

          本文链接:https://www.haomeiwen.com/subject/afgvertx.html