0.0.5 • Published 2 years ago
gocopy-ui v0.0.5
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
npm组件上传
1 修改package.json中的version 2 运行 npm publish
npm组件拉取
运行 npm i gocopy-ui
全局注册
import { Button } from 'vant';
import { createApp } from 'vue';
const app = createApp();
app.use(Button);
局部注册
import { Table } from 'gocopy-ui/ui'
export default {
components: {
Table: Table,
},
};
<template>
<Table />
</template>