1.0.14 • Published 1 year ago

common-comandfun v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

扩展服务插件 common-comandfun

简介

基于 vue 3.0 和 Element Plus UI 实现。

插件项目本地运行

本地运行,可进行插件/服务的测试

npm run serve

插件项目打包

打包后,可以发布至服务器进行微服务部署

npm run package

发布插件

先在 package.json 里更改版本号,再运行 npm 发布当前插件

npm publish

安装插件

# 使用npm
npm i common-comandfun --save

引入组件

// 在main.js引入

import {AutoTable} from 'common-comandfun/packages/index';

Vue.use(AutoTable);
Vue.use(...);

使用组件

<template>
    <div>
        <AutoTable></AutoTable>
    </div>
</template>