Closed givehug closed 1 year ago
Have you considered where you placed the Vue.use()
<template>
<div>
<MdDialogAlert
:md-active.sync="first"
md-content="Your post has been deleted!"
md-confirm-text="Cool!"
/>
<MdButton class="md-accent md-raised" @click="first = true">Alert</MdButton>
</div>
</template>
<script>
export default {
name: "App",
data: () => ({
first: false,
second: false
})
};
</script>
Omitting imports and rather only including Vue.use(VueMaterial) in the entry point, index.js or main.js should cater for all individual use cases without you having to individually import components you wish to use.
Steps to reproduce
render and click on the button
Which browser?
all
What is expected?
no error
What is actually happening?
Thoughts
I guess I have import and register
md-dialog-content
andmd-dialog-actions
myself, butmd-dialog-content
andmd-dialog-actions
(sorry but I feel like a blind chicken here, I tied several things likeimport MdDialogContent from 'vue-material/dist/components/MdDialog/MdDialogContent';
, and there are no type definitions)