1.0.10 • Published 1 year ago

mp-menu v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

微信自定义菜单组件

npm (tag) npm bundle size npm NPM

Install

npm install mp-menu

yarn add mp-menu

pnpm add mp-menu

Advanced

<template>
  <MpMenu ref="mpMenuRef">
    <button @click="onsubmit">发布菜单</button>
  </MpMenu>
</template>

<script setup lang="ts">
  import {MpMenu} from "mp-menu"
  import 'mp-menu/dist/style.css'
  import {ref} from "vue";

  const mpMenuRef = ref();
  const onsubmit = () => {
    console.log(mpMenuRef.value.getButtons())
  }

  // 更新菜单
  mpMenuRef.value.update([
    {
      name: '子菜单名称',
      type: 'view',
      url: "",
      appId: "",
      pagePath: ""
    }
  ])
</script>

效果图

案例图片

1.0.9

1 year ago

1.0.8

1 year ago

1.0.10

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago