feat: remove label and update badgen

移除 label 标注,更新项目徽章
This commit is contained in:
yanglbme 2019-12-25 22:41:41 +08:00
parent b5d11dbc97
commit f193b164e2
4 changed files with 6 additions and 9 deletions

View File

@ -7,7 +7,7 @@
<div align="center"> <div align="center">
[![github](https://badgen.net/badge/⭐/GitHub/cyan)](https://github.com/doocs/md) [![gitee](https://badgen.net/badge/⭐/Gitee/cyan)](https://gitee.com/doocs/md) [![PRs Welcome](https://badgen.net/badge/PRs/welcome/green)](http://makeapullrequest.com) [![license](https://badgen.net/github/license/doocs/md)](./LICENSE) [![release](https://img.shields.io/github/v/release/doocs/md.svg)](https://github.com/doocs/md/releases) [![github](https://badgen.net/badge/⭐/GitHub/cyan)](https://github.com/doocs/md) [![gitee](https://badgen.net/badge/⭐/Gitee/cyan)](https://gitee.com/doocs/md) [![PRs Welcome](https://badgen.net/badge/PRs/welcome/green)](../../pulls) [![license](https://badgen.net/github/license/doocs/md)](./LICENSE) [![release](https://img.shields.io/github/v/release/doocs/md.svg)](../../releases)
</div> </div>

View File

@ -93,6 +93,7 @@ Google 拥有专门设计的系统,可以自动捕获不适当的预测结果
欢迎关注我的公众号**Doocs开源社区**原创技术文章第一时间推送 欢迎关注我的公众号**Doocs开源社区**原创技术文章第一时间推送
<center> <center>
<img src="https://imgkr.cn-bj.ufileos.com/1092dc45-e817-4bb0-82b0-2b2b4826ccf2.gif" style="width: 100px;"></center> <img src="https://imgkr.cn-bj.ufileos.com/1092dc45-e817-4bb0-82b0-2b2b4826ccf2.gif" style="width: 100px;">
</center>
` `

View File

@ -32,7 +32,6 @@ let app = new Vue({
}, },
mounted() { mounted() {
this.showBox = false this.showBox = false
this.editor = CodeMirror.fromTextArea( this.editor = CodeMirror.fromTextArea(
document.getElementById('editor'), document.getElementById('editor'),
{ {
@ -106,7 +105,6 @@ let app = new Vue({
// 如果有编辑器内容被保存则读取,否则加载默认内容 // 如果有编辑器内容被保存则读取,否则加载默认内容
this.loadLocalStorage(this.editor, '__editor_content', DEFAULT_CONTENT); this.loadLocalStorage(this.editor, '__editor_content', DEFAULT_CONTENT);
this.loadLocalStorage(this.cssEditor, '__css_content', DEFAULT_CSS_CONTENT); this.loadLocalStorage(this.cssEditor, '__css_content', DEFAULT_CSS_CONTENT);
}, },
methods: { methods: {
renderWeChat(source) { renderWeChat(source) {
@ -222,7 +220,6 @@ let app = new Vue({
downLink.style.display = 'none'; downLink.style.display = 'none';
let blob = new Blob([this.editor.getValue(0)]); let blob = new Blob([this.editor.getValue(0)]);
downLink.href = URL.createObjectURL(blob); downLink.href = URL.createObjectURL(blob);
console.log(downLink);
document.body.appendChild(downLink); document.body.appendChild(downLink);
downLink.click(); downLink.click();
document.body.removeChild(downLink); document.body.removeChild(downLink);

View File

@ -59,7 +59,7 @@
<i class="el-icon-refresh" size="medium" @click="reset">&nbsp;</i> <i class="el-icon-refresh" size="medium" @click="reset">&nbsp;</i>
</el-tooltip> </el-tooltip>
<el-form size="mini" class="ctrl" :inline=true> <el-form size="mini" class="ctrl" :inline=true>
<el-form-item label="字体"> <el-form-item>
<el-select v-model="currentFont" size="mini" placeholder="选择字体" clearable @change="fontChanged"> <el-select v-model="currentFont" size="mini" placeholder="选择字体" clearable @change="fontChanged">
<el-option v-for="font in builtinFonts" :style="{fontFamily: font.value}" :key="font.value" <el-option v-for="font in builtinFonts" :style="{fontFamily: font.value}" :key="font.value"
:label="font.label" :value="font.value"> :label="font.label" :value="font.value">
@ -68,7 +68,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="字号"> <el-form-item>
<el-select v-model="currentSize" size="mini" placeholder="选择段落字号" clearable @change="sizeChanged"> <el-select v-model="currentSize" size="mini" placeholder="选择段落字号" clearable @change="sizeChanged">
<el-option v-for="size in sizeOption" :key="size.value" :label="size.label" :value="size.value"> <el-option v-for="size in sizeOption" :key="size.value" :label="size.label" :value="size.value">
<span class="select-item-left">{{ size.label }}</span> <span class="select-item-left">{{ size.label }}</span>
@ -76,7 +76,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="颜色"> <el-form-item>
<el-select v-model="currentColor" size="mini" placeholder="选择颜色" clearable @change="colorChanged"> <el-select v-model="currentColor" size="mini" placeholder="选择颜色" clearable @change="colorChanged">
<el-option v-for="color in colorOption" :key="color.value" :label="color.label" :value="color.value"> <el-option v-for="color in colorOption" :key="color.value" :label="color.label" :value="color.value">
<span class="select-item-left">{{ color.label }}</span> <span class="select-item-left">{{ color.label }}</span>
@ -170,5 +170,4 @@
<script src="assets/scripts/loading.js"></script> <script src="assets/scripts/loading.js"></script>
</body> </body>
</html> </html>