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

# PmNavigation

# 基本用法

img-navigation-01.png
<template>
  <div>
    <el-button @click="gotoDesign" type="primary">上传</el-button>
    <pm-navigation ref="nav" :routes="routes" :allow-click="true" />
  </div>
</template>
<script>
  export default {
    data() {
      return {
       routes: [
        {
          title: '复制',
          name: 'copy',
          props: { data: '复制' },
          component: 'pm-clip-button',
          children: [
            {
              title: '绑定',
              name: 'bind',
              component: 'pm-bind',
              props: {
                bindDefaultValue: '绑定',
              },
              children: [
                {
                  title: '上传',
                  name: 'upload',
                  props: {
                    uploadUrl: "https://jsonplaceholder.typicode.com/posts/",
                    removeAction: () => {},
                    autoUpload: false
                  },
                  component: 'pm-upload',
                },
              ],
            },
          ]
        }
       ]
      }
    },
    mounted() {
      this.init()
    },
    methods: {
      init() {
        if (!this.$refs['nav']) {
          return false
        }
        this.$refs['nav'].goto({
          name: 'bind',
          props: this.$props,
          title: `绑定`
        })
      },
      gotoDesign() {
        this.$refs['nav'].goto({
          name: 'upload',
          props: this.$props,
          title: `上传`
        })
      }
    }
  }
</script>

# Attributes

参数 说明 类型 可选值 默认值
routes 路由数组 array - []
bodyStyle 内容区域容易样式 string - -
autoInit 自动跳转第一个 boolean - true
cacheInclude keep-alive缓存列表 object - -
allowClick 面包屑允许点击 boolean - true

← 锚点 文档大纲 →