From 175abfc6e173a9ad636da6af96b61d65c5ac97c3 Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Tue, 20 Nov 2018 11:36:23 +0800 Subject: [PATCH] docs: code format fix --- docs/guides/common-tips.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/guides/common-tips.md b/docs/guides/common-tips.md index d7be5165a..d6e746541 100644 --- a/docs/guides/common-tips.md +++ b/docs/guides/common-tips.md @@ -75,18 +75,18 @@ You can emit a custom event from a child component by accessing the instance. import ChildComponent from './ChildComponent' export default { - name: 'ParentComponent', - components: { ChildComponent }, - data() { - return { - emitted: false - } - }, - methods: { - onCustom () { - this.emitted = true - } + name: 'ParentComponent', + components: { ChildComponent }, + data() { + return { + emitted: false } + }, + methods: { + onCustom () { + this.emitted = true + } + } } ```