Last active
May 21, 2021 11:54
-
-
Save powerdot/0646e77ecb334a26699cd3e29dec0b6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<block-content> | |
<!-- Insert block content --> | |
<propertyPopup title="Property title"> | |
<!-- Insert elements for setup --> | |
</propertyPopup> | |
</block-content> | |
</template> | |
<script> | |
import propertyPopup from "../property-popup"; | |
import blockContent from "../block-content.js"; | |
export default { | |
components: { | |
blockContent, | |
propertyPopup | |
}, | |
data: () => { | |
return { | |
// ... | |
}; | |
}, | |
methods: { | |
setData(d) { | |
return require("../setData")(this, d); | |
}, | |
getData() { | |
return require("../getData")(this); | |
}, | |
slotMounted() { | |
return this.$parent.slotMounted(this); | |
} | |
// ... | |
}, | |
mounted() { | |
this.slotMounted(); | |
// ... | |
} | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment