option-disabling.vue 5.3 KB

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