hsy-vue-dialog
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -232,3 +232,6 @@ module.exports = | ||
backgroundColor: _vm.maskColor | ||
}) | ||
}), | ||
on: { | ||
"click": _vm.maskClicked | ||
} | ||
}), _vm._v(" "), _c('div', { | ||
@@ -242,3 +245,3 @@ staticClass: "main" | ||
staticClass: "content" | ||
}, [_vm._t("title")], 2), _vm._v(" "), _c('div', { | ||
}, [_vm._t("title")], 2), _vm._v(" "), (_vm.closeButton) ? _c('div', { | ||
staticClass: "btnClose", | ||
@@ -248,3 +251,3 @@ on: { | ||
} | ||
})]), _vm._v(" "), _c('div', { | ||
}) : _vm._e()]), _vm._v(" "), _c('div', { | ||
staticClass: "body" | ||
@@ -718,2 +721,6 @@ }, [_vm._t("body")], 2)])])]) | ||
}); | ||
}, | ||
maskClicked() { | ||
if (!this.clickMask2Close) return; | ||
this.hide(); | ||
} | ||
@@ -720,0 +727,0 @@ } |
{ | ||
"name": "hsy-vue-dialog", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "vue dialog component", | ||
@@ -5,0 +5,0 @@ "author": "hsiaosiyuan0 <hsiaosiyuan0@outlook.com>", |
@@ -57,5 +57,7 @@ # vue-dialog | ||
| Prop | Description | Type | Accepted Values | Default | | ||
|:------|:---------------------------------|:--------|:----------------|:--------| | ||
| value | whether dialog is visible or not | Boolean | -- | false | | ||
| Prop | Description | Type | Accepted Values | Default | | ||
|:----------------|:------------------------------------------------|:--------|:----------------|:--------| | ||
| value | whether dialog is visible or not | Boolean | -- | false | | ||
| closeButton | whether close button is visible or not | Boolean | -- | true | | ||
| clickMask2Close | if dialog should be closed when mask is clicked | Boolean | -- | true | | ||
@@ -62,0 +64,0 @@ ## Screenshot |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37773
821
67