Merge pull request #11 from FairyEver/dev

d2-theme-list component revised

Former-commit-id: a39c3bf7d04b6b2a30d883d6b3e14a9e69361392
Former-commit-id: 0ba07d90cc940971823f2d9a4bf72717ffac2b12
Former-commit-id: 995c045313401c3f565a7064416bc6cb7ce079d9
Former-commit-id: 778e6607f446b1fb8d9a7a0f6f2d14fab41bc1cf
This commit is contained in:
李杨
2018-06-12 09:02:46 +08:00
committed by GitHub

View File

@@ -6,7 +6,8 @@
</el-table-column>
<el-table-column prop="address" align="center">
<template slot-scope="scope">
<el-button type="primary" @click="handleSelectTheme(scope.row.value)">使用</el-button>
<el-button v-if="themeName === scope.row.value" type="success" icon="el-icon-check" round>已激活</el-button>
<el-button v-else round @click="handleSelectTheme(scope.row.value)">使用</el-button>
</template>
</el-table-column>
</el-table>