Socket
Socket
Sign inDemoInstall

hfun-element-plus

Package Overview
Dependencies
61
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hfun-element-plus

一个vue3业务型组件库


Version published
Weekly downloads
16
increased by220%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

HFUN-ELEMENT-PLUS 组件库快速入门

本节介绍如何在项目中使用hfun-element-plus组件库



用法

hfun-element-plus是基于element-plus组件库的基础上进行封装的,所以需要引入element-plus组件库



安装

npm i hfun-element-plus

完整引入

// main.js
import { createApp } from 'vue'
import App from './App.vue'
import hfunElementPlus from 'hfun-element-plus'

// 引入 ElementPlus
import ElementPlus from 'element-plus'
import '../node_modules/element-plus/dist/index.css'

createApp(App).use(ElementPlus).use(hfunElementPlus).mount('#app')


按需导入

// main.js
import { createApp } from 'vue'
import App from './App.vue'
// 只引入hfunButton组件
import {hfunButton} from 'hfun-element-plus'

// 引入 ElementPlus
import ElementPlus from 'element-plus'
import '../node_modules/element-plus/dist/index.css'

createApp(App).use(ElementPlus).use(hfunButton).mount('#app')


FAQs

Last updated on 20 May 2022

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