vxe-design-nuxt
v1.0.2
Published
Vxe Design module for Nuxt
Downloads
990
Maintainers
Readme
Vxe Design Nuxt
Vxe Design module for Nuxt
Features
- Automatically import components and styles on demand.
Installation
npm install vxe-design-nuxt -DConfiguration
export default defineNuxtConfig({
modules: [
'vxe-design-nuxt'
],
vxeDesignSetting: { /** Options */ }
})Usage
<template>
<div>
<vxe-form-design :widgets="formDesignWidgets" :height="800" />
</div>
</template>
<script>
export default {
data() {
const formDesignWidgets = [
{
group: 'base',
children: [
'VxeInput',
'VxeTextarea',
'VxeSelect',
'VxeSwitch',
'VxeRadioGroup',
'VxeCheckboxGroup'
]
}
]
return {
formDesignWidgets
}
}
}
</script>Reference Nuxt documentation and playground use.
Development
- Run
npm run update ito install the dependencies. - Run
npm run runto start playground in development mode. - Run
npm run buildto build this project.
