omi-cli - update omi-mp template
This commit is contained in:
parent
a94933b190
commit
7d2bd68e0d
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "omi-cli",
|
||||
"version": "3.0.28",
|
||||
"version": "3.0.29",
|
||||
"description": "Create website with no build configuration. be friendly to [Omi](https://github.com/Tencent/omi) framework.",
|
||||
"main": "bin/omi",
|
||||
"engines": {
|
||||
|
|
|
@ -140,6 +140,11 @@ class Element extends WeElement {
|
|||
|
||||
install() {
|
||||
this.properties = this.props
|
||||
Object.keys(mpOption).forEach(key => {
|
||||
if (typeof mpOption[key] === 'function') {
|
||||
Element.prototype[key] = mpOption[key].bind(this)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
uninstall = mpOption.onUnload || function() {}
|
||||
|
|
|
@ -140,6 +140,11 @@ class Element extends WeElement {
|
|||
|
||||
install() {
|
||||
this.properties = this.props
|
||||
Object.keys(mpOption).forEach(key => {
|
||||
if (typeof mpOption[key] === 'function') {
|
||||
Element.prototype[key] = mpOption[key].bind(this)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
uninstall = mpOption.onUnload || function() {}
|
||||
|
|
Loading…
Reference in New Issue