猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
589 B

  1. <template>
  2. <view class="submit-but">
  3. <slot name="tips"></slot>
  4. <view class="submit-but-box">
  5. <up-button @click="handleClick" :disabled="disabled" size="large" type="primary" :text="text" shape="circle"
  6. color="#FFAA48"></up-button>
  7. </view>
  8. </view>
  9. </template>
  10. <script setup>
  11. defineProps({
  12. text: {
  13. type: String,
  14. default: "确定"
  15. },
  16. disabled: {
  17. type: Boolean,
  18. default: false
  19. }
  20. })
  21. const emit = defineEmits(['click'])
  22. const handleClick = () => {
  23. emit('click')
  24. }
  25. </script>
  26. <style scoped lang="scss">
  27. @import "index";
  28. </style>