mico-vant
v1.0.2
Published
MICO VANT 是一个 Vue3 + Vite + TypeScript 的移动端组件库
Downloads
5
Readme
mico-vant
MICO VANT 是一个 Vue3 + Vite + TypeScript 的移动端组件库
介绍
该组件库是一个结合了Vue3 + TS的移动端组件库,结合业务和通用能力,抽离公共代码,形成通用组件和业务组件,方便项目直接引入开发,而不需要二次开发。
增加组件的扩展能力以及注意组件粒度,努力使其适用多场景,并且灵活配置。
虽然目前组件不多,但是会慢慢的更新
安装
# NPM
$ npm install mico-vant
快速使用
请先[安装]本组件库。
完整引入
// main.ts
import { createApp } from "vue";
import App from "./App.vue";
import MicoUi from "mico-vant";
const app = createApp(App);
app.use(MicoUi);
app.mount("#app");
引入某个组件
import { MicoButton } from "mico-vant";
import "mico-vant/style.css";
完成引入就可以使用提供的组件
Vue 单文件组件
代码示例:
<template>
<mico-button>按钮</mico-button>
</template>