last-level.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <el-cascader :options="options" :show-all-levels="false" />
  3. </template>
  4. <script lang="ts" setup>
  5. const options = [
  6. {
  7. value: 'guide',
  8. label: 'Guide',
  9. children: [
  10. {
  11. value: 'disciplines',
  12. label: 'Disciplines',
  13. children: [
  14. {
  15. value: 'consistency',
  16. label: 'Consistency',
  17. },
  18. {
  19. value: 'feedback',
  20. label: 'Feedback',
  21. },
  22. {
  23. value: 'efficiency',
  24. label: 'Efficiency',
  25. },
  26. {
  27. value: 'controllability',
  28. label: 'Controllability',
  29. },
  30. ],
  31. },
  32. {
  33. value: 'navigation',
  34. label: 'Navigation',
  35. children: [
  36. {
  37. value: 'side nav',
  38. label: 'Side Navigation',
  39. },
  40. {
  41. value: 'top nav',
  42. label: 'Top Navigation',
  43. },
  44. ],
  45. },
  46. ],
  47. },
  48. {
  49. value: 'component',
  50. label: 'Component',
  51. children: [
  52. {
  53. value: 'basic',
  54. label: 'Basic',
  55. children: [
  56. {
  57. value: 'layout',
  58. label: 'Layout',
  59. },
  60. {
  61. value: 'color',
  62. label: 'Color',
  63. },
  64. {
  65. value: 'typography',
  66. label: 'Typography',
  67. },
  68. {
  69. value: 'icon',
  70. label: 'Icon',
  71. },
  72. {
  73. value: 'button',
  74. label: 'Button',
  75. },
  76. ],
  77. },
  78. {
  79. value: 'form',
  80. label: 'Form',
  81. children: [
  82. {
  83. value: 'radio',
  84. label: 'Radio',
  85. },
  86. {
  87. value: 'checkbox',
  88. label: 'Checkbox',
  89. },
  90. {
  91. value: 'input',
  92. label: 'Input',
  93. },
  94. {
  95. value: 'input-number',
  96. label: 'InputNumber',
  97. },
  98. {
  99. value: 'select',
  100. label: 'Select',
  101. },
  102. {
  103. value: 'cascader',
  104. label: 'Cascader',
  105. },
  106. {
  107. value: 'switch',
  108. label: 'Switch',
  109. },
  110. {
  111. value: 'slider',
  112. label: 'Slider',
  113. },
  114. {
  115. value: 'time-picker',
  116. label: 'TimePicker',
  117. },
  118. {
  119. value: 'date-picker',
  120. label: 'DatePicker',
  121. },
  122. {
  123. value: 'datetime-picker',
  124. label: 'DateTimePicker',
  125. },
  126. {
  127. value: 'upload',
  128. label: 'Upload',
  129. },
  130. {
  131. value: 'rate',
  132. label: 'Rate',
  133. },
  134. {
  135. value: 'form',
  136. label: 'Form',
  137. },
  138. ],
  139. },
  140. {
  141. value: 'data',
  142. label: 'Data',
  143. children: [
  144. {
  145. value: 'table',
  146. label: 'Table',
  147. },
  148. {
  149. value: 'tag',
  150. label: 'Tag',
  151. },
  152. {
  153. value: 'progress',
  154. label: 'Progress',
  155. },
  156. {
  157. value: 'tree',
  158. label: 'Tree',
  159. },
  160. {
  161. value: 'pagination',
  162. label: 'Pagination',
  163. },
  164. {
  165. value: 'badge',
  166. label: 'Badge',
  167. },
  168. ],
  169. },
  170. {
  171. value: 'notice',
  172. label: 'Notice',
  173. children: [
  174. {
  175. value: 'alert',
  176. label: 'Alert',
  177. },
  178. {
  179. value: 'loading',
  180. label: 'Loading',
  181. },
  182. {
  183. value: 'message',
  184. label: 'Message',
  185. },
  186. {
  187. value: 'message-box',
  188. label: 'MessageBox',
  189. },
  190. {
  191. value: 'notification',
  192. label: 'Notification',
  193. },
  194. ],
  195. },
  196. {
  197. value: 'navigation',
  198. label: 'Navigation',
  199. children: [
  200. {
  201. value: 'menu',
  202. label: 'Menu',
  203. },
  204. {
  205. value: 'tabs',
  206. label: 'Tabs',
  207. },
  208. {
  209. value: 'breadcrumb',
  210. label: 'Breadcrumb',
  211. },
  212. {
  213. value: 'dropdown',
  214. label: 'Dropdown',
  215. },
  216. {
  217. value: 'steps',
  218. label: 'Steps',
  219. },
  220. ],
  221. },
  222. {
  223. value: 'others',
  224. label: 'Others',
  225. children: [
  226. {
  227. value: 'dialog',
  228. label: 'Dialog',
  229. },
  230. {
  231. value: 'tooltip',
  232. label: 'Tooltip',
  233. },
  234. {
  235. value: 'popover',
  236. label: 'Popover',
  237. },
  238. {
  239. value: 'card',
  240. label: 'Card',
  241. },
  242. {
  243. value: 'carousel',
  244. label: 'Carousel',
  245. },
  246. {
  247. value: 'collapse',
  248. label: 'Collapse',
  249. },
  250. ],
  251. },
  252. ],
  253. },
  254. {
  255. value: 'resource',
  256. label: 'Resource',
  257. children: [
  258. {
  259. value: 'axure',
  260. label: 'Axure Components',
  261. },
  262. {
  263. value: 'sketch',
  264. label: 'Sketch Templates',
  265. },
  266. {
  267. value: 'docs',
  268. label: 'Design Documentation',
  269. },
  270. ],
  271. },
  272. ]
  273. </script>