🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@kyfe/hroa-ui

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyfe/hroa-ui

HR-OA-KTS部门前端公共组件

latest
npmnpm
Version
1.0.6
Version published
Maintainers
0
Created
Source

@kyfe/hroa-ui

安装

yarn add @kyfe/hroa-ui

使用HROA公共组件库

全局引入组件

// 全局引入UI组件
import hroaUI from '@kyfe/hroa-ui'

Vue.use(hroaUI)

按需引入组件

按需引入组件需要先装依赖来支持

yarn add babel-plugin-import

然后在根目录babel.config.js中配置

module.exports = {
  "presets": [
    "@vue/app"
    ],
    "plugins": [
      [
        "import",
        {
          libraryName: "@kyfe/hroa-ui",  // 这是我们的包名
          style: (name) => {
            return `${name}/index.css`;
          },
          camel2DashComponentName: true, // 是否需要驼峰转短线
          camel2UnderlineComponentName: false, // 是否需要驼峰转下划线
        },
      ],
  ]
}

最后在项目入口文件引入注册需要使用的组件

// 按需引入组件
import {
  hrButton
} from "hroa-ui";

// 注册
Vue.use(hrButton)

| 注意:

组件列表

组件名说明
hrButton按钮
hrViewItem表单项视图组件

我们将源文件放在packages中,支持大家查阅源码

FAQs

Package last updated on 06 Dec 2024

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