Skip to content

Commit

Permalink
Merge pull request #2716 from nocodb/add-ant-view
Browse files Browse the repository at this point in the history
Add ant design
  • Loading branch information
pranavxc committed Jul 18, 2022
2 parents 737b48b + 1667806 commit b11a843
Show file tree
Hide file tree
Showing 4 changed files with 505 additions and 19 deletions.
14 changes: 14 additions & 0 deletions packages/nc-gui-v2/components.d.ts
@@ -0,0 +1,14 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'

export {}

declare module '@vue/runtime-core' {
export interface GlobalComponents {
ATable: typeof import('ant-design-vue/es')['Table']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
}
5 changes: 5 additions & 0 deletions packages/nc-gui-v2/nuxt.config.ts
Expand Up @@ -2,6 +2,8 @@ import path from 'path'
import { defineNuxtConfig } from 'nuxt'
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite';
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
Expand Down Expand Up @@ -52,6 +54,9 @@ export default defineNuxtConfig({
autoInstall: true,
compiler: 'vue3',
}),
Components({
resolvers: [AntDesignVueResolver()],
}),
],
define: {
'process.env.DEBUG': 'false',
Expand Down

0 comments on commit b11a843

Please sign in to comment.