@edu-fe/modal

0.0.2 • Public • Published

@edu/Dialog

Common dialog component for edu-fe team

Installing

Using npm

$ npm i @edu-fe/dialog

Using yarn

$ yarn add @edu-fe/dialog

Example

import dialog from '@edu-fe/dialog'
Vue.use(dialog)

// global invoking
Vue.dialog(options)

// In a vue instance
new Vue({
	el: '#app',
	created() {
		this.$dialog(options)
	}
})

Options

Name Description Type Default
title 标题内容 String ""
text 文字内容 String ""
buttons 功能按钮,每项需要包含type、text、handler三项,type为1时为浅颜色字体 Array []

关闭方法

const dialog = Vue.dialog(options)
dialog.close()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.21latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.21
0.0.10

Package Sidebar

Install

npm i @edu-fe/modal

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

11.8 kB

Total Files

4

Last publish

Collaborators

  • julywind
  • hungryyang
  • ccforeverd
  • shockw4ver