Skip to content

Instantly share code, notes, and snippets.

@powerdot
Last active May 21, 2021 11:54
Show Gist options
  • Save powerdot/0646e77ecb334a26699cd3e29dec0b6e to your computer and use it in GitHub Desktop.
Save powerdot/0646e77ecb334a26699cd3e29dec0b6e to your computer and use it in GitHub Desktop.
<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