Go_button.vue 486 B

123456789101112131415161718
  1. <template>
  2. <up-button type="primary" @click="click" plain>
  3. <image class="w-36 h-36 mr-10" src="https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images-plt/common/select_push_icon.png" mode="widthFix" />
  4. <span>{{ title }}</span>
  5. </up-button>
  6. </template>
  7. <script setup lang="ts">
  8. const props = defineProps({
  9. title: {
  10. type: String,
  11. default: '',
  12. },
  13. });
  14. const emit = defineEmits(['click']);
  15. const click = () => {
  16. emit('click');
  17. };
  18. </script>