提交 f4d2c588 编写于 作者: D dolymood

fix doc

上级 d6bce473
...@@ -19,6 +19,13 @@ ...@@ -19,6 +19,13 @@
"name": "Basic", "name": "Basic",
"subList": { "subList": {
"button": "Button", "button": "Button",
"loading": "Loading",
"tip": "Tip"
}
},
"form": {
"name": "Form",
"subList": {
"checkbox": "Checkbox", "checkbox": "Checkbox",
"checkbox-group": "CheckboxGroup", "checkbox-group": "CheckboxGroup",
"radio": "Radio", "radio": "Radio",
...@@ -28,8 +35,7 @@ ...@@ -28,8 +35,7 @@
"switch": "Switch", "switch": "Switch",
"rate": "Rate", "rate": "Rate",
"validator": "Validator", "validator": "Validator",
"loading": "Loading", "upload": "Upload",
"tip": "Tip",
"form": "Form" "form": "Form"
} }
}, },
...@@ -54,12 +60,6 @@ ...@@ -54,12 +60,6 @@
"index-list": "IndexList", "index-list": "IndexList",
"swipe": "Swipe" "swipe": "Swipe"
} }
},
"advanced": {
"name": "Advanced",
"subList": {
"upload": "Upload"
}
} }
} }
}, },
...@@ -93,6 +93,13 @@ ...@@ -93,6 +93,13 @@
"name": "基础", "name": "基础",
"subList": { "subList": {
"button": "Button", "button": "Button",
"loading": "Loading",
"tip": "Tip"
}
},
"form": {
"name": "表单",
"subList": {
"checkbox": "Checkbox", "checkbox": "Checkbox",
"checkbox-group": "CheckboxGroup", "checkbox-group": "CheckboxGroup",
"radio": "Radio", "radio": "Radio",
...@@ -102,8 +109,7 @@ ...@@ -102,8 +109,7 @@
"switch": "Switch", "switch": "Switch",
"rate": "Rate", "rate": "Rate",
"validator": "Validator", "validator": "Validator",
"loading": "Loading", "upload": "Upload",
"tip": "Tip",
"form": "Form" "form": "Form"
} }
}, },
...@@ -130,12 +136,6 @@ ...@@ -130,12 +136,6 @@
"index-list": "IndexList", "index-list": "IndexList",
"swipe": "Swipe" "swipe": "Swipe"
} }
},
"advanced": {
"name": "高级",
"subList": {
"upload": "Upload"
}
} }
} }
}, },
......
...@@ -22,7 +22,7 @@ export function getItem(k) { ...@@ -22,7 +22,7 @@ export function getItem(k) {
export function getCurrentLang() { export function getCurrentLang() {
const itemKey = 'CUBE_LANGUAGE' const itemKey = 'CUBE_LANGUAGE'
const hash = window.location.hash const hash = window.location.hash
const hashZhLang = hash ? hash.indexOf('/zh-') >= 0 ? 'zh-CN' : 'en-US' : '' const hashZhLang = hash.indexOf('/zh-') >= 0 ? 'zh-CN' : hash.indexOf('/en-') >= 0 ? 'en-US' : ''
const lang = hashZhLang || getItem(itemKey) || window.navigator.language || 'en-US' const lang = hashZhLang || getItem(itemKey) || window.navigator.language || 'en-US'
let defaultLang = 'en-US' let defaultLang = 'en-US'
if (lang.indexOf('zh-') >= 0) { if (lang.indexOf('zh-') >= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册