gonsin-components
TypeScript icon, indicating that this package has built-in type declarations

0.6.5 • Public • Published

gonsin-components

安装依赖

npm install

项目测试

npm run serve

项目打包

npm run build

项目上传(上传前需将package.json版本号升高)

npm login
npm publish

全局引用

import GonsinComponents from "gonsin-components"
Vue.use(GonsinComponents)

局部引用

1.安装babel-plugin-component包

2.在babel.config.js中新增如下配置

3.如要ts引用也需加此配置

module.exports = {
	presets: [
		'@vue/cli-plugin-babel/preset',
		["@babel/preset-env", { "modules": false }]
	],
  	plugins: [
  	 	[
    	  "component",
    	  {
	    	"libraryName": "gonsin-components",
	    	"root": "index",
	    	"style": true
    	  }
  	 	]
  	]
};

3.组件局部引用

import { Nameplate } from "gonsin-components";

Readme

Keywords

none

Package Sidebar

Install

npm i gonsin-components

Weekly Downloads

0

Version

0.6.5

License

none

Unpacked Size

11.7 MB

Total Files

30

Last publish

Collaborators

  • gonsin