antanklayout_vue3
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

antanklayout

Installation

npm i antanklayout

Usage

main.ts

// script
import { createApp } from 'vue';
import App from './App.vue';
import antanklayout from "antanklayout"
const app = createApp(App);
app.use(antanklayout); //全局注册
app.mount('#app');

Create a Vue page named "layout" and map all dynamic routes to it simultaneously. layout.vue

<template>
  <div class="app-container">
    <antanklayout>
    code here ...
    </antanklayout>
  </div>
</template>


Each DynameicMenuList ,router mapping

DynameicMenuList.push({
  path: "/layout",
  name: "layout",
  component: Layout,
  redirect: item.path,
  children:[
    item
  ]
})

Dependents (0)

Package Sidebar

Install

npm i antanklayout_vue3

Weekly Downloads

0

Version

0.0.12

License

MIT

Unpacked Size

1.85 MB

Total Files

35

Last publish

Collaborators

  • funclee