dictionary.vue 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div class="image">
  3. <el-input
  4. style="width: 310px"
  5. v-model="input1"
  6. placeholder="请输入您要查询的字词"
  7. >
  8. <template #append>
  9. <el-button type="primary" :loading="is_status === 'load'" @click="search">查询</el-button>
  10. </template>
  11. </el-input>
  12. </div>
  13. </template>
  14. <script setup>
  15. // 词典
  16. import { ref } from 'vue';
  17. const is_status = ref('none');
  18. const search = () => {
  19. is_status.value = 'load'
  20. let t = setTimeout(() => {
  21. clearTimeout(t)
  22. is_status.value = 'none'
  23. }, 1000);
  24. }
  25. </script>
  26. <style scoped>
  27. .none_title {
  28. font-size: 24px;
  29. text-align: left;
  30. font-weight: 700;
  31. margin-bottom: 16px;
  32. margin-left: 11.3%;
  33. }
  34. ul {
  35. margin-left: 20px;
  36. }
  37. ul > li {
  38. font-size: 14px;
  39. color: #2c3e50;
  40. margin-bottom: 16px;
  41. }
  42. </style>