合伙人运营小程序
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
dong aafc725125 esswisdom_wx il y a 1 an
..
README.md esswisdom_wx il y a 1 an
index.d.ts esswisdom_wx il y a 1 an
index.js esswisdom_wx il y a 1 an
props.d.ts esswisdom_wx il y a 1 an
props.js esswisdom_wx il y a 1 an
transition.d.ts esswisdom_wx il y a 1 an
transition.js esswisdom_wx il y a 1 an
transition.json esswisdom_wx il y a 1 an
transition.wxml esswisdom_wx il y a 1 an
transition.wxss esswisdom_wx il y a 1 an
type.d.ts esswisdom_wx il y a 1 an
type.js esswisdom_wx il y a 1 an

README.md


title: Transition 过渡 description: 过渡组件。 spline: message

isComponent: true

引入

引入组件

app.jsonpage.json 中引入组件:

"usingComponents": {
  "t-transition": "tdesign-miniprogram/transition/transition"
}

用法

组件方式

<!-- page.wxml -->
<t-transition
  name="transition-class"
  visible="{{ visible }}"
>
  <view class="block" style="width: 100px; height: 100px; background: red;"></view>
</t-transition>

API

<transition> 组件

组件路径:tdesign-miniprogram/transition/transition

过渡类名

过渡类名指定格式同 vue,enter/enter-to leave/leave-to

Props

属性 值类型 默认值 说明
name String ’t-transition’ 过渡类名,类似 vue 过渡类名
visible Boolean false 是否显示
customClass String false 自定义容器类名
destoryOnHide Boolean false 隐藏之后是否渲染 slot 内容
appear Boolean false 首次出现是否展示动画
durations Number / Boolean 手动指定过渡时间