buttonNew.vue 424 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <u-button @click="submit" :color="color" shape="circle">
  3. {{text}}
  4. </u-button>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'buttonNew',
  9. props: {
  10. color: {
  11. type: String,
  12. default: "linear-gradient(to top, #F59A02, #FFD334 )",
  13. },
  14. text: {
  15. type: String,
  16. default: "",
  17. },
  18. },
  19. methods: {
  20. submit(){
  21. this.$emit('click')
  22. }
  23. },
  24. }
  25. </script>
  26. <style>
  27. </style>