0.1.11 • Published 1 year ago
@nanta/ui v0.1.11
nanta-ui
Ant-design based UI framework. Docs.
Features
- Schema-style form/table design.
- Light-weight ui component library.
- Typescript support.
- Support vue 3 and nuxt 3 (SSR support).
- Vite support.
- I18N support (Default 'en').
Deps
- Vue 3.0
- ant-design-vue
- Lodash
- vue-i18n
Setup
- Install nanta-ui
yarn add @nanta/ui
yarn install
- Configure
- Vue 3 framework
Install Antd plugin inmain.ts
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import { setupNanta } from '@nanta/ui';
import '@nanta/ui/dist/style.css';
const app = createApp(App);
setupNanta(app);
app.use(Antd).mount('#app');
Here is an example in docs
, and another example nanta-ui-vue:
yarn docs
- Nuxt 3 framework
Auto-install Antd plguin, createnantaui.ts
in<projectDir>/plugins/
with the following boilerplate:
// plugins/nantaui.ts
import { defineNuxtPlugin } from '#app';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import { setupNanta } from '@nanta/ui';
import '@nanta/ui/dist/style.css';
export default defineNuxtPlugin(nuxtApp => {
setupNanta(nuxtApp.vueApp);
nuxtApp.vueApp.use(Antd)
})
Here is an exmple nanta-ui-nuxt
- Nuxt 3 Module setup (recommended)
The simplest way to setup nanta in Nuxt env. Your can use nanta module.
yarn add @nanta/nuxt-nanta
yarn install
And add nanta module to nuxt.config.ts
export default defineNuxtConfig({
modules: [
'nanta',
],
})
Notice
This project still in alpha stage, you can try it in non-production environment.
How to dev
- build package
yarn package
- test pkg in local
yarn pack # pack local
npm install nanta-ui-v0.1.0-alpha.1.tgz # install local
- publish to npm Remove nanta-ui && local deps befor publish it.
npm publish --access public
0.1.10
1 year ago
0.1.11
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.9
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.0
1 year ago
0.1.0-rc.9
2 years ago
0.1.0-rc.13
2 years ago
0.1.0-rc.12
2 years ago
0.1.0-rc.11
2 years ago
0.1.0-rc.10
2 years ago
0.1.0-rc.14
1 year ago
0.1.0-rc.8
2 years ago
0.1.0-rc.7
2 years ago
0.1.0-rc.6
2 years ago
0.1.0-rc.5
2 years ago
0.1.0-rc.4
2 years ago
0.1.0-rc.3
2 years ago
0.1.0-rc.2
2 years ago
0.1.0-rc.1
2 years ago
0.1.0-alpha.11
2 years ago
0.1.0-alpha.10
2 years ago
0.1.0-alpha.9
2 years ago
0.1.0-alpha.8
2 years ago
0.1.0-alpha.7
2 years ago
0.1.0-alpha.6
2 years ago
0.1.0-alpha.5
2 years ago
0.1.0-alpha.4
2 years ago
0.1.0-alpha.3
2 years ago
0.1.0-alpha.2
2 years ago
0.1.0-alpha.1
2 years ago