1.0.2 • Published 3 years ago
@nuxtjs-extra/ant-design-vue v1.0.2
@nuxtjs-extra/ant-design-vue
Nuxt module for Ant Design Vue
Setup
- Add dependencies to your project
yarn add @nuxtjs-extra/ant-design-vue @nuxt/components # or npm install @nuxtjs-extra/ant-design-vue
If you use useDayJs option, please also add dayjs
to your project, or use @nuxtjs/dayjs
- Add
@nuxtjs-extra/ant-design-vue
to themodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'@nuxtjs-extra/ant-design-vue',
// With options
[
'@nuxtjs-extra/ant-design-vue',
{
style: 'css', // available options: 'css', 'less'
useDayJs: false, // replace moment.js with day.js internally within 'ant-design-vue' for reducing package size
},
],
]
}
Or using separate config:
{
antDesignVue: {
style: 'css', // available options: 'css', 'less'
useDayJs: false, // replace moment.js with day.js internally within 'ant-design-vue' for reducing package size
}
}
How to use
This module uses @nuxtjs/components
internally. So there's no need to import any components in your .vue
file. Just add an A
prefix to any components and it will be automatically loaded:
<template>
<AButton>Test</AButton>
</template>
<script></script>
Enjoy!
License
Copyright (c) Anonymous anonymous@test.com
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago
0.0.0-alhpa5
4 years ago
0.0.0-alhpa2
4 years ago
0.0.0-alhpa1
4 years ago
0.0.0-alhpa4
4 years ago
0.0.0-alhpa3
4 years ago
0.0.0-alhpa0
4 years ago
0.0.0
4 years ago