EOS Low-Code Platform 8 EOS Low-Code Platform 8
产品简介
安装部署
应用开发
专题场景实战案例
低代码(Low-Code)开发参考手册
高开开发参考手册
流程开发参考手册
AFCenter 使用指南
Governor 使用指南
升级手册
FAQ
8.3.2更新说明
  • PmFlip
  • 基础用法
  • Attributes

# PmFlip

翻转效果切换元素

# 基础用法

img-flip-01.png img-flip-02.png
<el-row :gutter="20">
  <el-col :span="12">
    <PmFlip width="300px" height="150px" class="p-20">
      <template slot="front">
        <el-card>
          <h2>标题</h2>
        </el-card>
      </template>
      <template slot="back">
        <el-card>
          <h2>正文正文正文正文正文正文正文正文正文</h2>
        </el-card>
      </template>
    </PmFlip>
  </el-col>
  <el-col :span="12">
    <PmFlip width="300px" height="150px" class="p-20" direction="X">
      <template slot="front">
        <div style="background:#409EFF">
          <h2>标题</h2>
        </div>
      </template>
      <template slot="back">
        <div style="background:#67C23A">
          <h2>正文正文正文正文正文正文正文正文正文</h2>
        </div>
      </template>
    </PmFlip>
  </el-col>
</el-row>

# Attributes

参数 说明 类型 可选值 默认值
direction 旋转方向 string X,Y Y
width 宽度 string - 200px
height 高度 string - 200px

← 展开面板 骨架屏 →