0.0.2 • Published 9 months ago

cangni v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

藏匿

GitHub license GitHub issues GitHub stars

文档地址

https://guo1186874557.github.io/cangni/

项目简介

基于 element-plus 二次开发的一些常用组件

技术栈

  • 前端框架:Vue
  • 样式框架:ElementPlus
  • 编程语言:TypeScript
  • 构建工具:Vite

快速开始

安装

npm i cangni

全局使用

main.ts

import { createApp } from "vue";
import App from "./App.vue";

// 组件
import * as cangni from "cangni";

// 样式
import "element-plus/dist/index.css";
import "cangni/dist/style.css";

const app = createApp(App);
app.use(cangni);
app.mount("#app");

局部使用

<template>
  <CnButton>按钮</CnButton>
</template>
<script setup lang="ts">
  import "cangni/components/button/style";
  import { CnButton } from "cangni";
</script>

贡献者

LICENSE

MIT

0.0.2

9 months ago

0.0.1

9 months ago