Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <el-button type="text" @click="dialogVisible = true" v-text="Open Dialog" />
- <el-dialog
- title="I am a dialog"
- :visible.sync="dialogVisible"
- width="50%">
- <span>You could play with the html here</span>
- <p v-for="message in messages" v-html="message" />
- </el-dialog>
- <script>
- export default {
- data() {
- return {
- dialogVisible: false,
- messages: ["Message one", "Second message"]
- };
- }
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement