Socket
Book a DemoInstallSign in
Socket

vue-slim-dialog

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-slim-dialog

开箱即用的 vue 移动端弹窗组件

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

vue-slim-dialog

开箱即用的 vue 移动端弹窗组件

🐠 示例&文档

Demo

Demo 示例代码

🚀 快速开始

  • 安装 vue-slim-dialog
// 使用yarn:
yarn add vue-slim-dialog
// 或使用npm:
npm i -S vue-slim-dialog
  • 引入 vue-slim-dialog
  • 插件形式全局引入
// 入口文件 main.js 中
import SlimDialog from 'vue-slim-dialog'
Vue.use(SlimDialog)
  • 组件形式引入
// *.vue 中
import SlimDialog from 'vue-slim-dialog'
export default {
  /* ... */
  components: {
    SlimDialog,
  },
  /* ... */
}

🔌 API

Props

参数说明类型默认值
show.sync 是否显示Booleanfalse
hideOnMaskClick点击遮罩是否关闭弹窗Booleanfalse
maskTransition遮罩动画Stringslim-fade
dialogTransition弹窗动画,内置 'slim-scale', 'slim-zoom', 'slim-radius'Stringslim-scale
maskClass遮罩的样式类Stringnull
dialogClass弹窗的样式类Stringnull


如果它对你有所帮助,可以点一下 star ~ 😊

Keywords

vue

FAQs

Package last updated on 27 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts