fix
parent
44b2c3a477
commit
faf9b9b97d
|
@ -8,9 +8,9 @@ import { isZhCN } from '../util'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
render () {
|
render () {
|
||||||
let { name } = this.$route.params
|
const { name } = this.$route.params
|
||||||
const lang = isZhCN(name) ? 'cn' : 'us'
|
const lang = isZhCN(name) ? 'cn' : 'us'
|
||||||
name = name.replace('-cn', '')
|
// name = name.replace('-cn', '')
|
||||||
const titleMap = {}
|
const titleMap = {}
|
||||||
const menuConfig = {
|
const menuConfig = {
|
||||||
General: [],
|
General: [],
|
||||||
|
@ -28,7 +28,7 @@ export default {
|
||||||
menuConfig[type] = menuConfig[type] || []
|
menuConfig[type] = menuConfig[type] || []
|
||||||
menuConfig[type].push(d)
|
menuConfig[type].push(d)
|
||||||
}
|
}
|
||||||
const Demo = AllDemo[titleMap[name]]
|
const Demo = AllDemo[titleMap[name.replace('-cn', '')]]
|
||||||
const MenuGroup = []
|
const MenuGroup = []
|
||||||
for (const [type, menus] of Object.entries(menuConfig)) {
|
for (const [type, menus] of Object.entries(menuConfig)) {
|
||||||
const MenuItems = []
|
const MenuItems = []
|
||||||
|
|
|
@ -39,3 +39,4 @@ export { default as slider } from 'antd/slider/demo/index.vue'
|
||||||
export { default as progress } from 'antd/progress/demo/index.vue'
|
export { default as progress } from 'antd/progress/demo/index.vue'
|
||||||
export { default as timeline } from 'antd/timeline/demo/index.vue'
|
export { default as timeline } from 'antd/timeline/demo/index.vue'
|
||||||
export { default as table } from 'antd/table/demo/index.vue'
|
export { default as table } from 'antd/table/demo/index.vue'
|
||||||
|
export { default as inputNumber } from 'antd/input-number/demo/index.vue'
|
||||||
|
|
Loading…
Reference in New Issue