baidu / NoahV

An efficient front-end application framework based on vue.js

Home Page:https://baidu.github.io/NoahV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

我只想使用组件不需要脚手架,在npm找到库但是没有调用方式

gpuer opened this issue · comments

commented

使用的是Vue的技术栈吗?

commented

是的

在入口文件中,一般为 main.js 添加如下代码:

import noahvComponent from 'noahv-component';
Vue.use(noahvComponent);

在单文件组件中可以直接使用:
<nv-icon type="user-o" content="用户名" />

npm install --save noahv-component
安装测试可用
缺少样式文件<template> <NvDutyTable :name-list="nameList" :style="{fontSize: '12px'}"></NvDutyTable> </template>