Skip to content

Commit

Permalink
props属性不能带数字
Browse files Browse the repository at this point in the history
  • Loading branch information
aiplat committed Feb 1, 2019
1 parent 7c83fc5 commit 35292f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions components/copyright.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<template>
<div class="cm_pf cm_pc_12 cm_hl3 cm_tc" :class="{'cm_b3e':isb0!=1,'cm_bl0':isb0==1}" @click="$cm.toWin('',app.url)">
<div class="cm_pf cm_pc_12 cm_hl3 cm_tc" :class="{'cm_b3e':isCrB!='1','cm_bl0':isCrB=='1'}" @click="$cm.toWin('',app.url)">
&copy;2016 {{app.name}} {{app.site}}
</div>
</template>

<script>
export default {
props: ['isb0'],
props: {
isCrB: {
type: String,
default: '',
}
},
data() {
return {
app: {
Expand All @@ -15,7 +20,6 @@
}
}
},
components: {},
methods: {
},
Expand Down
2 changes: 1 addition & 1 deletion pages/common/test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="cm_pc_12 cm_prl05 cm_tc cm_hl3">{{message}}</div>
</ul>
</div>
<copyright2 isb0="1"></copyright2>
<copyright2 isCrB="1"></copyright2>
</div>
</div>
</template>
Expand Down

0 comments on commit 35292f6

Please sign in to comment.