1.0.20 • Published 1 year ago
@revfanc/use v1.0.20
Vue 3 Composables
一个实用的 Vue 3 组合式 API 工具库。
详细文档
https://revfanc.github.io/use/
安装
npm install @revfanc/use
# 或
yarn add @revfanc/use使用
useDialog
一个对话框包装组合式函数,方便专注于对话框内容开发。
import { useDialog } from '@revfanc/use'
const dialog = useDialog()
dialog.open({
render(context) {
return (
<div>我是弹窗内容</div>
)
}
})开发
# 安装依赖
npm install
# 开发模式
npm run dev
# 构建
npm run build
# 运行测试
npm run test许可证
MIT