feat: add description field for theme setting.

pull/59/head
ruibaby 2019-12-02 20:47:33 +08:00
parent 9a15baff85
commit f20ba887cf
4 changed files with 1146 additions and 1736 deletions

2867
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,12 +10,12 @@
},
"dependencies": {
"animate.css": "^3.7.0",
"ant-design-vue": "^1.4.6",
"ant-design-vue": "^1.4.8",
"axios": "^0.18.0",
"enquire.js": "^2.1.6",
"filepond": "^4.7.2",
"filepond-plugin-image-preview": "^4.5.0",
"halo-editor": "^2.7.6",
"halo-editor": "^2.7.9",
"marked": "^0.7.0",
"moment": "^2.24.0",
"nprogress": "^0.2.0",
@ -35,7 +35,7 @@
"@babel/polyfill": "^7.4.4",
"@vue/cli-plugin-babel": "^3.8.0",
"@vue/cli-plugin-eslint": "^3.8.0",
"@vue/cli-plugin-unit-jest": "^3.8.0",
"@vue/cli-plugin-unit-jest": "^4.1.1",
"@vue/cli-service": "^3.8.0",
"@vue/eslint-config-standard": "^4.0.0",
"@vue/test-utils": "^1.0.0-beta.20",

View File

@ -35,7 +35,7 @@ export const asyncRouterMap = [
path: '/posts/write',
name: 'PostEdit',
component: () => import('@/views/post/PostEdit'),
meta: { title: '写文章', hiddenHeaderContent: false }
meta: { title: '写文章', hiddenHeaderContent: false, keepAlive: false }
},
{
path: '/categories',
@ -70,7 +70,7 @@ export const asyncRouterMap = [
path: '/sheets/write',
name: 'SheetEdit',
component: () => import('@/views/sheet/SheetEdit'),
meta: { title: '新建页面', hiddenHeaderContent: false }
meta: { title: '新建页面', hiddenHeaderContent: false, keepAlive: false }
},
{
path: '/sheets/links',

View File

@ -86,6 +86,11 @@
:label="item.label + ''"
:key="index1"
>
<p
v-if="item.description && item.description!=''"
slot="help"
v-html="item.description"
></p>
<a-input
v-model="themeSettings[item.name]"
:defaultValue="item.defaultValue"