collapse.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div class="demo-collapse">
  3. <el-collapse v-model="activeName" accordion>
  4. <el-collapse-item title="Consistency" name="1">
  5. <div>
  6. Consistent with real life: in line with the process and logic of real
  7. life, and comply with languages and habits that the users are used to;
  8. </div>
  9. <div>
  10. Consistent within interface: all elements should be consistent, such
  11. as: design style, icons and texts, position of elements, etc.
  12. </div>
  13. </el-collapse-item>
  14. <el-collapse-item title="Feedback" name="2">
  15. <div>
  16. Operation feedback: enable the users to clearly perceive their
  17. operations by style updates and interactive effects;
  18. </div>
  19. <div>
  20. Visual feedback: reflect current state by updating or rearranging
  21. elements of the page.
  22. </div>
  23. </el-collapse-item>
  24. <el-collapse-item title="Efficiency" name="3">
  25. <div>
  26. Simplify the process: keep operating process simple and intuitive;
  27. </div>
  28. <div>
  29. Definite and clear: enunciate your intentions clearly so that the
  30. users can quickly understand and make decisions;
  31. </div>
  32. <div>
  33. Easy to identify: the interface should be straightforward, which helps
  34. the users to identify and frees them from memorizing and recalling.
  35. </div>
  36. </el-collapse-item>
  37. <el-collapse-item title="Controllability" name="4">
  38. <div>
  39. Decision making: giving advices about operations is acceptable, but do
  40. not make decisions for the users;
  41. </div>
  42. <div>
  43. Controlled consequences: users should be granted the freedom to
  44. operate, including canceling, aborting or terminating current
  45. operation.
  46. </div>
  47. </el-collapse-item>
  48. </el-collapse>
  49. </div>
  50. </template>
  51. <script lang="ts" setup>
  52. import { ref } from 'vue'
  53. const activeName = ref('1')
  54. </script>