Commit 53eb3c1d by cwq0219

文档-组件更新

1 parent 5e61e688
...@@ -13,7 +13,7 @@ module.exports = { ...@@ -13,7 +13,7 @@ module.exports = {
proxyTable: {}, proxyTable: {},
// Various Dev Server settings // Various Dev Server settings
host: '192.168.3.32', // can be overwritten by process.env.HOST host: '192.168.2.39', // can be overwritten by process.env.HOST
port: 8899, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined port: 8899, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true, autoOpenBrowser: true,
errorOverlay: true, errorOverlay: true,
......
...@@ -98,34 +98,27 @@ export default { ...@@ -98,34 +98,27 @@ export default {
{ {
title: '组件封装', title: '组件封装',
list: [ list: [
{ text: '表格组件', link: 'tableIntroduce' { text: '表格组件', link: 'tableIntroduce' }
// pageLinkList: [{ text: '接口返回规则', jumpTag: 'rule' }]
}
] ]
} }
] ]
} }
}, },
mounted () { mounted () {
// console.log(this.$route) var pageLink = window.location.href.split('/')[window.location.href.split('/').length - 1]
for (var item of this.data) {
var subItem = item.list.find(i => i.link === pageLink)
if (subItem) {
this.header = subItem.text
break
}
}
}, },
methods: { methods: {
scrollTop (val) { scrollTop (val) {
document.documentElement.scrollTop = 0 document.documentElement.scrollTop = 0
this.header = val.text this.header = val.text
} }
// 调到页面指定位置
// jumpTo (parentItem, targetIdx) {
// this.$router.push({
// name: parentItem.link,
// query: {
// random: Math.random()
// },
// params: {
// jumpTag: parentItem.pageLinkList[targetIdx].jumpTag
// }
// })
// }
} }
} }
</script> </script>
...@@ -192,7 +185,6 @@ export default { ...@@ -192,7 +185,6 @@ export default {
.app-main { .app-main {
margin: 100px 0 40px; margin: 100px 0 40px;
width: 100%; width: 100%;
color: #333;
} }
.nav-group__title { .nav-group__title {
font-size: 14px; font-size: 14px;
......
...@@ -70,16 +70,16 @@ ...@@ -70,16 +70,16 @@
<p class="explain">登陆系统后,默认进入的页面,无需权限控制。</p> <p class="explain">登陆系统后,默认进入的页面,无需权限控制。</p>
<pre><code> <pre><code>
<span class="hljs-attribute">export</span> <span class="hljs-keyword">const</span> home = { <span class="hljs-attribute">export</span> <span class="hljs-keyword">const</span> home = {
path: <sapn class="hljs-string">'/index'</sapn>, path: <span class="hljs-string">'/index'</span>,
name: <sapn class="hljs-string">'index'</sapn>, name: <span class="hljs-string">'index'</span>,
icon: <sapn class="hljs-string">'s-home'</sapn>, icon: <span class="hljs-string">'s-home'</span>,
meta: { meta: {
title: <sapn class="hljs-string">'echats'</sapn>, title: <span class="hljs-string">'echats'</span>,
authId: <sapn class="hljs-string">'101'</sapn>, authId: <span class="hljs-string">'101'</span>,
parentId: <sapn class="hljs-string">'0'</sapn>, parentId: <span class="hljs-string">'0'</span>,
cache: true cache: true
}, },
component: <span id="configItem" class="hljs-attribute">_import</span>(<sapn class="hljs-string">'index'</sapn>) component: <span id="configItem" class="hljs-attribute">_import</span>(<span class="hljs-string">'index'</span>)
} }
</code></pre> </code></pre>
<table cellspacing='0'> <table cellspacing='0'>
......
...@@ -7,7 +7,8 @@ body, ...@@ -7,7 +7,8 @@ body,
html { html {
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'SimSun', sans-serif; font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'SimSun', sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
color: #1f2f3d; color: #333;
/* color: #5e6d82; */
} }
a { a {
...@@ -40,7 +41,6 @@ a { ...@@ -40,7 +41,6 @@ a {
.box p { .box p {
font-size: 16px; font-size: 16px;
color: #5e6d82;
line-height: 1.5em; line-height: 1.5em;
/* margin: 1em 0; */ /* margin: 1em 0; */
} }
...@@ -111,11 +111,12 @@ table { ...@@ -111,11 +111,12 @@ table {
} }
table td { table td {
height: 40px; /* height: 40px; */
padding: 0px 16px; line-height: 20px;
padding: 8px 16px;
border-bottom: 1px solid #cfd3d5; border-bottom: 1px solid #cfd3d5;
border-width: 0px 1px 1px 0px; border-width: 0px 1px 1px 0px;
white-space: nowrap; /* white-space: nowrap; */
} }
code { code {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!