style: update button type

This commit is contained in:
yanglbme 2020-08-31 10:15:21 +08:00
parent f9c7d14a3f
commit d1ee063d6f
4 changed files with 5 additions and 5 deletions

View File

@ -8,8 +8,8 @@
<img src="https://gitee.com/yanglbme/resource/raw/master/doocs-md/qrcode.png" style="width: 40%; display: block; margin: 20px auto 10px;">
</div>
<span slot="footer" class="dialog-footer">
<el-button type="success" @click="onRedirect('https://github.com/doocs/md')" plain>GitHub 仓库</el-button>
<el-button type="success" @click="onRedirect('https://gitee.com/doocs/md')" plain>Gitee 仓库</el-button>
<el-button type="primary" @click="onRedirect('https://github.com/doocs/md')" plain>GitHub 仓库</el-button>
<el-button type="primary" @click="onRedirect('https://gitee.com/doocs/md')" plain>Gitee 仓库</el-button>
</span>
</el-dialog>
</template>

View File

@ -100,7 +100,7 @@ export default {
return this.nightMode ? 'dark' : 'light'
},
btnType() {
return !this.nightMode ? 'success' : 'default';
return this.nightMode ? 'default' : 'primary';
},
...mapState({
output: state => state.output,

View File

@ -73,7 +73,7 @@
},
computed: {
btnType() {
return !this.nightMode ? "success" : "default";
return this.nightMode ? "default" : "primary";
},
...mapState({
nightMode: state => state.nightMode,

View File

@ -21,7 +21,7 @@ export default {
},
computed: {
btnType() {
return this.nightMode ? 'default' : 'success';
return this.nightMode ? 'default' : 'primary';
},
...mapState({
nightMode: state => state.nightMode