vux组件的cell组件上下箭头图标显示问题,cell必须放在groud内才会显示

3 篇文章 0 订阅

vux组件的cell组件上下箭头图标显示问题,cell必须放在groud内才会显示

<template>
  <div>
    <x-header :left-options="{backText: ''}">积分管理</x-header>
    <div class="showIntegral">你当前的积分为222分</div>
    <group class="cellView">
        <cell
          :title="('积分兑换')"
          is-link
          :border-intent="false"
          :arrow-direction="showContent004 ? 'up' : 'down'"
          @click.native="showContent004 = !showContent004"></cell>
      <p class="slide" :class="showContent004?'animate':''">blablabla...<br/>blablabla...<br/>blablabla...<br/>blablabla...</p>
    </group>
  </div>
</template>

<script>
import { XHeader, Actionsheet, TransferDom, ButtonTab, ButtonTabItem, Cell, CellBox, CellFormPreview, Group, Badge } from 'vux'

export default {
    name: "index",
        data() {
            return {
                show4: false,
                showContent004: false
            };
        },
  components: {
    XHeader,
    Actionsheet,
    ButtonTab,
    ButtonTabItem,
    Group,
    Cell,
    CellFormPreview,
    CellBox,
    Badge
  },
  methods: {
  }
}
</script>

<style scoped>
    .showIntegral{
        height: 44px;
        width: 100%;
        text-align: center;
        line-height: 44px;
        color: #269e62;
    }
    .cellView{
        background-color: #f5f5f5;
        height: 31px;
    }
    .slide {
  padding: 0 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s cubic-bezier(0, 1, 0, 1) -.1s;
}
.animate {
  max-height: 9999px;
  transition-timing-function: cubic-bezier(0.5, 0, 1, 0);
  transition-delay: 0s;
}
</style>
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值