Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kyfe/hroa-ui

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyfe/hroa-ui

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

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
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 02 Sep 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc