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

# PmFold

# 基础用法

img-fold-01.png
<template>
  <pm-fold ref="fold">
    <template slot="title">
      <span class="fs-16 font-bold">主标题</span>
    </template>
    <div class="p-10">content</div>
  </pm-fold>
</template>
<script>
export default {
  provide() {
    return {
      closeOthers: this.closeOthers
    }
  },
  data() {
    return {
      model: {
        name: 'zzr'
      }
    }
  },
  methods: {
    closeOthers(uid) {
      console.log(uid)
    }
  }
}
</script>

# checkbox

img-fold-02.png
<template>
  <pm-fold ref="fold" title="fold-title" contrlType="checkbox">
    <div class="p-10">content</div>
  </pm-fold>
</template>
<script>
export default {
  provide() {
    return {
      closeOthers: this.closeOthers
    }
  },
  data() {
    return {
      model: {
        name: 'zzr'
      }
    }
  },
  methods: {
    closeOthers(uid) {
      console.log(uid)
    }
  }
}
</script>

# group

img-fold-03.png
<template>
  <pm-fold-group>
    <pm-fold ref="pm-fold" title="fold-title">
      <div class="p-10">content1</div>
    </pm-fold>
    <pm-fold ref="pm-fold" title="fold-title">
      <div class="p-10">content2</div>
    </pm-fold>
  </pm-fold-group>
  
</template>
<script>
export default {
}
</script>

# group 保持展开一项

img-fold-04.png
<template>
  <pm-fold-group :accordion="true">
    <pm-fold ref="pm-fold" title="fold-title">
      <div class="p-10">content1</div>
    </pm-fold>
    <pm-fold ref="pm-fold" title="fold-title">
      <div class="p-10">content2</div>
    </pm-fold>
  </pm-fold-group>
  
</template>
<script>
export default {
}
</script>

# Attributes

参数 说明 类型 可选值 默认值
title 标题 string - -
subTitle 子标题 string - -
contrlType 控件类型 arrow 、 checkbox - arrow
arrowPosition icon位置 left、right - right
isFold 是否展开 boolean - true
bodyBorder 边框 boolean - false

# slot

Name Description
title 标题
- content

# pm-fold-group Attributes

参数 说明 类型 可选值 默认值
accordion 只展开一项 boolean - false
subTitle 子标题 string - -

← 面板分割 展开卡片 →