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

View File

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

View File

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

View File

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