npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nuxt-alt/antdv

v0.2.1

Published

A nuxt module to handle the use of ant-design-vue

Downloads

6

Readme

Ant Design Vue module for Nuxt

Infos

A somewhat comprehensive module for Ant Design Vue

Setup

  1. Add @nuxt-alt/antdv and less dependency to your project
yarn add @nuxt-alt/antdv less
  1. Add @nuxt-alt/antdv to the modules section of nuxt.config.ts
export default defineNuxtConfig({
    modules: [
        '@nuxt-alt/antdv'
    ],
    antdv: {
        /* module options */
    }
});

Options

styles

  • Type: String
  • Default: less

Whether to use less or css for procesing. Do note that all themes options will not work with css as it is a pre-generated file.

| Style | Description | | --- | --- | | less | Renders the stylesheet in less | | css | Renders the stylesheet in css |

icons

  • Type: Boolean
  • Default: true

Whether to enable resolving icons for ant-design-vue.

themes.suffix

  • Type: String
  • Default: -theme

The suffix for when using the custom mode.

themes.mode

  • Type: String
  • Default: default

The theme mode to choose for ant-design-vue, choosing default will disable the option to use custom themes as they rely on being enclosed in a class.

| Mode | Description | | --- | --- | | default | Renders the default theme of ant-design-vue, which is the light theme but without being enclosed into a theme class | | custom | disables the default theme in favor of using the light and/or dark theme |

themes.dark

  • Type: Object | boolean
  • Default: false

Modify the properties of the default dark theme.

| Properties | Type | Description | | --- | --- | --- | | compact | Boolean | Whether to use compact variables | | theme | String | The theme's name | | themePrefix | String | Prefix of the theme to use ofr enclosing | | modifyVars | Object | The variables to edit for the theme |

themes.light

  • Type: Object | boolean
  • Default: false

Modify the properties of the default light theme.

| Properties | Type | Description | | --- | --- | --- | | compact | Boolean | Whether to use compact variables | | theme | String | The theme's name | | themePrefix | String | Prefix of the theme to use ofr enclosing | | modifyVars | Object | The variables to edit for the theme |

themes.prefixClass

  • Type: String
  • Default: ant

Set the Class prefix for all the themes. For example instead of ant-button, if you were to set it as app it would then be app-button. You also need to change this in your ConfigProvider for ant-design-vue`

themeConfig

  • Type: Array
    • Items: Object
  • Default: []

You may register any other themes you wish to include in the preprocessing options.

Example (Example of a dark theme):

// nuxt.config.ts
export default defineNuxtConfig({
    antdv: {
        themeConfig: [{
            theme: 'dark',
            themePrefix: 'dark',
            dark: true,
            compact: false,
            modifyVars: {
                'text-color': 'fade(@white, 65%)',
                'gray-8': '@text-color',
                'background-color-base': '#555',
                'skeleton-color': 'rgba(0,0,0,0.8)',
                'root-entry-name': 'dark'
            },
        }]
    }
});

Setting the dark property will use the dark variables, setting the compact proprty will use compact variables.