Socket
Socket
Sign inDemoInstall

babel-plugin-veui

Package Overview
Dependencies
28
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-veui

Import VEUI components with ease.


Version published
Weekly downloads
45
decreased by-89.61%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

2.17.9 (2024-04-29)

💡 主要变更

  • [^] 更新了 less-plugin-dls 版本,升级全局 design token 值到最新规范。<!-- #veui-theme-dls -->

Readme

Source

babel-plugin-veui

This Babel plugin enables you to write simpler import statements by converting such statements:

import { Button, Input } from 'veui'

...into:

import Button from 'veui/components/Button'
import Input from 'veui/components/Input'

...just like babel-plugin-lodash does.

You can also use the following prefixed version to make it easier to register components using object property shorthand:

import { VeuiButton, VeuiInput } from 'veui'

export default {
  components: {
    VeuiButton,
    VeuiIcon
  }
}

...or...

import { VButton, VInput } from 'veui'

export default {
  components: {
    VButton,
    VIcon
  }
}

So you can use <veui-button> or <v-button> in templates.

Keywords

FAQs

Last updated on 29 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc