SubmitBtn.vue 762 B

123456789101112131415161718192021222324252627282930313233
  1. <script setup name="SubmitBtn">
  2. import { defineProps } from "vue";
  3. const props = defineProps({
  4. desc: {
  5. type: String,
  6. default: "",
  7. },
  8. type: {
  9. type: String,
  10. default: "primary",
  11. },
  12. });
  13. </script>
  14. <template>
  15. <!-- <div class="h-[24px] flex justify-center items-center text-white bg-[rgba(0,70,199,0.5)] px-[15px] cursor-pointer text-[14px] rounded-[13px]">{{props.desc}}</div> -->
  16. <el-button class="buttons" size="mini" :type="type">{{
  17. props.desc
  18. }}</el-button>
  19. </template>
  20. <style lang="less" scoped>
  21. .buttons {
  22. max-width: 120px;
  23. background-color: rgba(5, 187, 76, 0.2);
  24. border: 1px solid #3b6c53;
  25. color: #b3b3b3;
  26. font-size: 14px;
  27. &:hover {
  28. background-color: rgba(5, 187, 76, 0.5);
  29. color: #ffffff;
  30. }
  31. }
  32. </style>