Refactor properties

pull/9/head
johnniang 2019-04-02 00:21:58 +08:00
parent 535199530e
commit 9de86ff8b9
2 changed files with 32 additions and 19 deletions

13
package-lock.json generated
View File

@ -4149,6 +4149,11 @@
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
"dev": true "dev": true
}, },
"codemirror": {
"version": "5.45.0",
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.45.0.tgz",
"integrity": "sha512-c19j644usCE8gQaXa0jqn2B/HN9MnB2u6qPIrrhrMkB+QAP42y8G4QnTwuwbVSoUS1jEl7JU9HZMGhCDL0nsAw=="
},
"collection-visit": { "collection-visit": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "http://registry.npm.taobao.org/collection-visit/download/collection-visit-1.0.0.tgz", "resolved": "http://registry.npm.taobao.org/collection-visit/download/collection-visit-1.0.0.tgz",
@ -15414,6 +15419,14 @@
"clipboard": "^2.0.0" "clipboard": "^2.0.0"
} }
}, },
"vue-codemirror-lite": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/vue-codemirror-lite/-/vue-codemirror-lite-1.0.4.tgz",
"integrity": "sha1-SKXNfRfAkUUDyM2dm1a0OOScNBA=",
"requires": {
"codemirror": "^5.22.0"
}
},
"vue-cropper": { "vue-cropper": {
"version": "0.4.9", "version": "0.4.9",
"resolved": "https://registry.npmjs.org/vue-cropper/-/vue-cropper-0.4.9.tgz", "resolved": "https://registry.npmjs.org/vue-cropper/-/vue-cropper-0.4.9.tgz",

View File

@ -130,7 +130,7 @@
<a-input <a-input
type="number" type="number"
defaultValue="10" defaultValue="10"
v-model="options.post_index_pagesize" v-model="options.post_index_page_size"
/> />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
@ -140,7 +140,7 @@
<a-input <a-input
type="number" type="number"
defaultValue="10" defaultValue="10"
v-model="options.rss_pagesize" v-model="options.rss_page_size"
/> />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
@ -242,7 +242,7 @@
<a-radio-group <a-radio-group
v-decorator="['radio-group']" v-decorator="['radio-group']"
defaultValue="false" defaultValue="false"
v-model="options.comment_api_switch" v-model="options.comment_api_enabled"
> >
<a-radio value="true">启用</a-radio> <a-radio value="true">启用</a-radio>
<a-radio value="false">禁用</a-radio> <a-radio value="false">禁用</a-radio>
@ -255,7 +255,7 @@
<a-input <a-input
type="number" type="number"
defaultValue="10" defaultValue="10"
v-model="options.comment_post_pagesize" v-model="options.comment_page_size"
/> />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
@ -292,14 +292,14 @@
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-select <a-select
defaultValue="0" defaultValue="local"
@change="handleAttachChange" @change="handleAttachChange"
v-model="options.attachment_type" v-model="options.attachment_type"
> >
<a-select-option value="0">本地</a-select-option> <a-select-option value="local">本地</a-select-option>
<a-select-option value="1">又拍云</a-select-option> <a-select-option value="ypyun">又拍云</a-select-option>
<a-select-option value="2">七牛云</a-select-option> <a-select-option value="qnyun">七牛云</a-select-option>
<a-select-option value="3">SM.MS</a-select-option> <a-select-option value="smms">SM.MS</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<div <div
@ -340,13 +340,13 @@
label="文件目录:" label="文件目录:"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input v-model="options.oss_upyun_src" /> <a-input v-model="options.oss_upyun_source" />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
label="处理策略:" label="处理策略:"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input v-model="options.oss_upyun_small" /> <a-input v-model="options.oss_upyun_small_url" />
</a-form-item> </a-form-item>
</div> </div>
<div <div
@ -431,7 +431,7 @@
<a-radio-group <a-radio-group
v-decorator="['radio-group']" v-decorator="['radio-group']"
defaultValue="false" defaultValue="false"
v-model="options.smtp_email_enable" v-model="options.email_enabled"
> >
<a-radio value="true">启用</a-radio> <a-radio value="true">启用</a-radio>
<a-radio value="false">禁用</a-radio> <a-radio value="false">禁用</a-radio>
@ -441,25 +441,25 @@
label="SMTP 地址:" label="SMTP 地址:"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input v-model="options.smtp_email_host" /> <a-input v-model="options.email_host" />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
label="发送协议:" label="发送协议:"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input v-model="options.smtp_email_host" /> <a-input v-model="options.email_protocol" />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
label="SSL 端口:" label="SSL 端口:"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input v-model="options.smtp_email_port" /> <a-input v-model="options.email_ssl_port" />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
label="邮箱账号:" label="邮箱账号:"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input v-model="options.smtp_email_username" /> <a-input v-model="options.email_username" />
</a-form-item> </a-form-item>
<a-form-item <a-form-item
label="邮箱密码:" label="邮箱密码:"
@ -470,14 +470,14 @@
placement="right" placement="right"
title="部分邮箱可能是授权码" title="部分邮箱可能是授权码"
> >
<a-input v-model="options.smtp_email_password" /> <a-input v-model="options.email_password" />
</a-tooltip> </a-tooltip>
</a-form-item> </a-form-item>
<a-form-item <a-form-item
label="发件人:" label="发件人:"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-input v-model="options.smtp_from_name" /> <a-input v-model="options.email_from_name" />
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<a-button <a-button
@ -532,7 +532,7 @@
<a-radio-group <a-radio-group
v-decorator="['radio-group']" v-decorator="['radio-group']"
defaultValue="false" defaultValue="false"
v-model="options.blog_api_status" v-model="options.api_enabled"
> >
<a-radio value="true">启用</a-radio> <a-radio value="true">启用</a-radio>
<a-radio value="false">禁用</a-radio> <a-radio value="false">禁用</a-radio>