remark.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <u-popup
  3. :show="show"
  4. mode="center"
  5. @close="$emit('remarkClose')"
  6. :closeable="true"
  7. safeAreaInsetTop
  8. :round="10"
  9. >
  10. <view style="width: 500rpx; padding: 20rpx">
  11. <u--textarea
  12. v-model="value1"
  13. placeholder="请输入内容"
  14. count
  15. :height="100"
  16. ></u--textarea>
  17. <view class="btn-list">
  18. <button class="btn-1" @click="$emit('remarkClose')">取消</button
  19. ><button class="btn-2" @click="$emit('remarkClose', value1)">
  20. 确认
  21. </button>
  22. </view>
  23. </view>
  24. </u-popup>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. show: {
  30. typeof: Boolean,
  31. default: false,
  32. },
  33. },
  34. data() {
  35. return { value1: "" };
  36. },
  37. };
  38. </script>
  39. <style lang="scss" scoped>
  40. .btn-list {
  41. display: flex;
  42. justify-content: space-around;
  43. align-items: center;
  44. margin-top: 20rpx;
  45. .btn-1 {
  46. width: 204rpx;
  47. height: 72rpx;
  48. border-radius: 42rpx;
  49. border: 2rpx solid #f83224;
  50. background-color: #fff;
  51. line-height: 72rpx;
  52. color: #f83224;
  53. }
  54. .btn-2 {
  55. width: 204rpx;
  56. height: 72rpx;
  57. border-radius: 42rpx;
  58. border: 2rpx solid #f83224;
  59. background-color: #f83224;
  60. line-height: 72rpx;
  61. color: #fff;
  62. }
  63. }
  64. </style>