mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
style: update button type
This commit is contained in:
parent
f9c7d14a3f
commit
d1ee063d6f
@ -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>
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user