Skip to content

gweiguo/pro-layout

Repository files navigation

Ant Design Pro Layout

NPM version NPM downloads

Install

# yarn
yarn add @ant-design-vue/pro-layout
# npm
npm i @ant-design-vue/pro-layout -S

Basic Usage

First, you should add the icons that you need into the library.

import { createApp } from 'vue'
import ProLayout, { PageContainer } from '@ant-design-vue/pro-layout';

const app = createApp();

app.use(ProLayout)
    .use(PageContainer)
    .mount('#app')

After that, you can use pro-layout in your Vue components as simply as this:

<template>
    <pro-layout>
        <router-view />
    </pro-layout>
</template>

or TSX

import ProLayout from '@ant-design-vue/pro-layout'

export default defineComponent({
    setup () {
        return (): JSX.Element => (
            <ProLayout>
                <RouterView />
            </ProLayout>
        )
    }
})

Build project

npm run generate # Generate files to ./src
npm run compile # Build library
npm run test # Runing Test

About

easy use `Ant Design Vue` layout

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 79.3%
  • Less 16.9%
  • JavaScript 3.6%
  • Shell 0.2%