jg-npm-plugin
v1.0.13
Published
<!-- 插件的名称和简介 安装和使用方法 插件的功能和特点 配置项和参数说明 示例代码和演示 常见问题和解答 参与贡献和开发者信息 授权和许可证信息 -->
Downloads
11
Readme
插件的名称和简介:
jg-npm-plugin
简单封装测试,按钮、空值、表单、上传组件
注意每次封装的组件,需要在index.js入口文件引入对应name名注册
下载
npm i jg-npm-plugin
在main.js引入
// 引入自己的组件
import AntPluginUi from "jg-npm-plugin";
import "../node_modules/jg-npm-plugin/jg-npm-plugin.css";
Vue.use(AntPluginUi);
在vue文件内使用
<jg-plugin-empty :msg="'使用自己的插件'" ></jg-plugin-empty>