优化计算属性命名

Former-commit-id: 0408c03874fd1bbe7530e9d950168324c7f56cf9 [formerly 0408c03874fd1bbe7530e9d950168324c7f56cf9 [formerly 0408c03874fd1bbe7530e9d950168324c7f56cf9 [formerly 0408c03874fd1bbe7530e9d950168324c7f56cf9 [formerly 694b66911429e9c93372837bf3217657a03304ef [formerly 81f353c088ffa972063e5bcc604b086ebfcdcb89]]]]]
Former-commit-id: 6fd7c1b9a24b023954111dc3d3d679c50a769eaa
Former-commit-id: 368e02fe286bcca1ef2b4d62389bc5dea12552d1
Former-commit-id: e105f52543900c6839b33865253d47763379dbf8 [formerly e1ae5645440ddeb725514b093b8b048e27341128]
Former-commit-id: bf26051c1fc72e302686e692402986d9eb42a133
Former-commit-id: 5923a43aeaf5283b8ca916f5f067849e8ec52a4f
Former-commit-id: 108334d70e166bfc6c1f5c94e9e6f421cc9c2465
Former-commit-id: daf52855c4f940b771c01947fbe518857bddeb3d
Former-commit-id: 9264f43e994cca8224dff5d5eb842b31b67a83d5
This commit is contained in:
liyang
2019-01-16 20:08:40 +08:00
parent fe786c2c47
commit 833eb27c1c

View File

@@ -1,6 +1,6 @@
<template>
<div
v-if="active"
v-if="show"
class="d2-source"
:class="{ 'd2-source--active': isActive }"
@click="handleClick">
@@ -23,7 +23,7 @@ export default {
}
},
computed: {
active () {
show () {
return process.env.VUE_APP_BUILD_MODE === 'TRAVIS' ||
process.env.NODE_ENV === 'development' &&
this.filename