Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 706a57c

Browse files
committed
增加导出msgbox函数
1 parent 0b0d8ce commit 706a57c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuetify-message-box",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "基于 vue2 + vuetify 的消息弹框组件",
55
"main": "lib/vuetify-message-box.umd.min.js",
66
"author": "luren",

‎src/components/message-box/index.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const getName = (name) => {
1313
return name && typeof name === 'string' ? 'name:' + name : ''
1414
}
1515

16-
const msgbox = ({ vuetify, zIndex = 1 }) => {
16+
exportconst msgbox = ({ vuetify, zIndex = 1 }) => {
1717
zIndex = isNaN(zIndex) || zIndex < 1 ? 1 : zIndex
1818
const instances = []
1919
const Ctor = Vue.extend(Object.assign({ vuetify }, messageBox))
@@ -117,6 +117,7 @@ export const MessageBox = {
117117
}
118118

119119
if (typeof window !== 'undefined' && window instanceof Object) {
120+
window.VuetifyMsgbox = msgbox
120121
window.VuetifyMessageBox = MessageBox
121122
window.VuetifyMessageBoxComponent = messageBox
122123
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /