|
| 1 | +const menu = [ |
| 2 | + { |
| 3 | + 'text': 'Codeages Design', |
| 4 | + isHideEn: true, |
| 5 | + 'children': [ |
| 6 | + { |
| 7 | + 'text_zh': '简介', |
| 8 | + 'text_en': 'desc', |
| 9 | + 'name': 'principle_desc' |
| 10 | + }, |
| 11 | + { |
| 12 | + 'text_zh': '价值观', |
| 13 | + 'text_en': 'value', |
| 14 | + 'name': 'component_value' |
| 15 | + }, |
| 16 | + { |
| 17 | + 'text_zh': '适用边界', |
| 18 | + 'text_en': 'boundary', |
| 19 | + 'name': 'component_boundary' |
| 20 | + }, |
| 21 | + { |
| 22 | + 'text_zh': '更新日志', |
| 23 | + 'text_en': 'update_log', |
| 24 | + 'name': 'component_update_log' |
| 25 | + }, |
| 26 | + ] |
| 27 | + }, |
| 28 | + { |
| 29 | + 'text': '设计共性', |
| 30 | + isHideEn: true, |
| 31 | + 'children': [ |
| 32 | + { |
| 33 | + 'text_zh': '一致性', |
| 34 | + 'text_en': 'coherence', |
| 35 | + 'name': 'principle_coherence' |
| 36 | + }, |
| 37 | + { |
| 38 | + 'text_zh': '可控性', |
| 39 | + 'text_en': 'controlled', |
| 40 | + 'name': 'component_controlled' |
| 41 | + }, |
| 42 | + { |
| 43 | + 'text_zh': '亲密性', |
| 44 | + 'text_en': 'familiarity', |
| 45 | + 'name': 'component_familiarity' |
| 46 | + }, |
| 47 | + { |
| 48 | + 'text_zh': '友好性', |
| 49 | + 'text_en': 'friendly', |
| 50 | + 'name': 'component_friendly' |
| 51 | + }, |
| 52 | + { |
| 53 | + 'text_zh': '安全性', |
| 54 | + 'text_en': 'safety', |
| 55 | + 'name': 'component_safety' |
| 56 | + }, |
| 57 | + ] |
| 58 | + }, |
| 59 | + { |
| 60 | + text: '设计原则', |
| 61 | + isHideEn: true, |
| 62 | + children: [ |
| 63 | + { |
| 64 | + text_zh: '重点突出', |
| 65 | + text_en: 'importance', |
| 66 | + name: 'principle_importance' |
| 67 | + }, |
| 68 | + { |
| 69 | + text_zh: '对齐', |
| 70 | + text_en: 'align', |
| 71 | + name: 'principle_align' |
| 72 | + }, |
| 73 | + { |
| 74 | + text_zh: '重复', |
| 75 | + text_en: 'repetition', |
| 76 | + name: 'principle_repetition' |
| 77 | + }, |
| 78 | + { |
| 79 | + text_zh: '足不出户', |
| 80 | + text_en: 'keep_in_doors', |
| 81 | + name: 'principle_keep_in_doors' |
| 82 | + }, |
| 83 | + { |
| 84 | + text_zh: '简化交互', |
| 85 | + text_en: 'interaction', |
| 86 | + name: 'principle_interaction' |
| 87 | + }, |
| 88 | + { |
| 89 | + text_zh: '巧用过渡', |
| 90 | + text_en: 'transform', |
| 91 | + name: 'principle_transform' |
| 92 | + }, |
| 93 | + { |
| 94 | + text_zh: '及时反馈', |
| 95 | + text_en: 'couple_back', |
| 96 | + name: 'principle_couple_back' |
| 97 | + } |
| 98 | + ] |
| 99 | + }, |
| 100 | + { |
| 101 | + text: '全局规则', |
| 102 | + isHideEn: true, |
| 103 | + children: [ |
| 104 | + { |
| 105 | + text_zh: '导航', |
| 106 | + text_en: 'navigation', |
| 107 | + name: 'principle_navigation' |
| 108 | + }, |
| 109 | + { |
| 110 | + text_zh: '消息与反馈', |
| 111 | + text_en: 'messages', |
| 112 | + name: 'principle_messages' |
| 113 | + }, |
| 114 | + { |
| 115 | + text_zh: '空状态', |
| 116 | + text_en: 'dummy_status', |
| 117 | + name: 'principle_dummy_status' |
| 118 | + }, |
| 119 | + ] |
| 120 | + }, |
| 121 | + { |
| 122 | + text: '动效', |
| 123 | + children: [], |
| 124 | + }, |
| 125 | + { |
| 126 | + text: '可视化', |
| 127 | + children: [], |
| 128 | + } |
| 129 | +] |
| 130 | +const data = []; |
| 131 | + |
| 132 | +menu.map(item => { |
| 133 | + data.push(...item.children); |
| 134 | +}); |
| 135 | + |
| 136 | +export default menu; |
0 commit comments