0.1.2 • Published 2 years ago
retcomponent v0.1.2
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.
Recommended IDE Setup
主文件结构
docs存放ui库文件 src/components存放组件源码文件
现有组件
- Dialog弹窗
- Toast提示
- Button按钮
- Banner,BannerItem 轮播图
- List 列表组件
组件使用方法
- 在mian.js中 ① 单个导入 import { DialogPlugin,ToastPlugin,ButtonPlugin,BannerPlugin,BannerItemPlugin} from 'retcomponent' import 'retcomponent/dist/style.css' app.use(DialogPlugin).use(ToastPlugin).use(ButtonPlugin) ② 全部导入 import {retPlugin} from './components'; import 'retcomponent/dist/style.css' app.use(retPlugin)
- 如果是以组件方式显示,在组件前加ne (ne-button,ne-dialog)。如果是以js方法使用,调用.show方法即(Dialog.show(),Toast.show())