defaultShowSettings props doesn't work
MatCar opened this issue · 2 comments
MatCar commented
defaultShowSettings props doesn't work
MatCar commented
the created function is present 2 times ...
created: function() {
// TODO: check if field keys are correctly set/without duplicates
this.showSettings = this.defaultShowSettings
},
watch:
...
created: function() {
this.updateFieldValues()
}
smarano commented
My solution was to wrap a simple component and override mounted() method (both mounted() will be execute because were merged by Vue)
Just create a file MyPivot.vue
with this content:
<script>
import Pivot from '@marketconnect/vue-pivot-table';
export default {
extends: Pivot,
mounted: function () {
this.showSettings = this.defaultShowSettings
}
}
</script>
then you can use the MyPivot
component in your application.