npm.io
0.2.0-beta.1 • Published 2 years ago

knot-vue

Licence
MIT
Version
0.2.0-beta.1
Deps
5
Size
64 kB
Vulns
0
Weekly
0

knot-vue

介绍

A vue library developed with vitepress

npm npm npm bundle size npm collaborators NPM

GitHub last commit (by committer) GitHub commit activity (branch) GitHub top language GitHub language count GitHub Workflow Status (with event) GitHub pull requests GitHub Repo stars

快速上手

相关技术

vue , ts

安装

npm i knot-vue

or

yarn add knot-vue

使用示例

全局引入
// main.ts

import KnotVue from 'knot-vue'
const app = createApp(App)

app.use(KnotVue)
app.mount('#app')
// index.vue

<template>
  <kn-hello />
</template>
按需引入
// index.vue

<template>
  <kn-hello />
</template>

<script setup lang="ts">
  import { KnHello } from 'knot-vue'
</script>

使用文档

https://lh-js.github.io/knot-vue

参与贡献

1.Fork 本仓库

2.新建 Feat_xxx 分支

3.提交代码

4.新建 Pull Request

启动项目

1.安装node_modules包(yarn install)

2.设置本地npm目录指向src目录(npm link ./src)

3.启动项目(yarn docs:dev)