Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
解决菜单没有 active 状态的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xxapp committed Jun 14, 2017
1 parent 72902cc commit 281876b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/nav.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ module.exports = [{
key: 'components',
title: '组件',
children: [{
key: 'ms-input',
key: 'component-demo-input',
title: '输入框',
uri: '/input'
}, {
key: 'ms-select',
key: 'component-demo-select',
title: '选择框',
uri: '/select'
}]
Expand Down
4 changes: 2 additions & 2 deletions docs/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const travel = item => {
path: item.uri,
component(resolve) {
require.ensure([], function () {
const name = item.key.replace('ms-', '');
resolve(require('../components/ms-' + name + '/demo/' + name + '.md'));
const name = item.key.replace('component-demo-', '');
resolve(require('../components/ms-' + name + '/ms-' + name + '.md'));
});
}
});
Expand Down
2 changes: 1 addition & 1 deletion webpack.doc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = {
}, {
test: /\.md$/,
include: [
RegExp(path.resolve(__dirname, 'components') + '/.*?/demo')
RegExp(path.resolve(__dirname, 'components') + '/.*?')
],
use: [
{ loader: 'ane-markdown-loader', options: { highlight: false } }
Expand Down

0 comments on commit 281876b

Please sign in to comment.