🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

hfun-element-plus

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hfun-element-plus

一个vue3业务型组件库

0.3.3
latest
npm
Version published
Weekly downloads
87
200%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 25 May 2022

Did you know?

Socket

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