basic.vue 1.9 KB

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