formDel.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div class="formDel">
  3. <div class="del-title">删除原因:</div>
  4. <a-textarea :rows="4" placeholder="请输入删除原因..." v-model:value="delReason" allowClear />
  5. <div class="btn-box">
  6. <a-button type="primary" style="margin-right:10px" @click="confirm">确定</a-button>
  7. <a-button type="plain" @click="cancel">取消</a-button>
  8. </div>
  9. </div>
  10. </template>
  11. <script setup lang="ts">
  12. import {ref} from 'vue'
  13. let delReason=ref('')
  14. let emit=defineEmits(['confirmClick','cancelClick'])
  15. function confirm(){
  16. emit('confirmClick',delReason.value);
  17. }
  18. function cancel(){
  19. delReason.value=''
  20. emit('cancelClick');
  21. }
  22. </script>
  23. <style lang="less" scoped>
  24. .formDel{
  25. position: relative;
  26. width: 100%;
  27. height: 100%;
  28. padding: 15px;
  29. box-sizing:border-box;
  30. .del-title{
  31. margin-bottom: 10px;
  32. }
  33. .btn-box{
  34. width: 100%;
  35. padding: 10px 0px;
  36. box-sizing: border-box;
  37. display: flex;
  38. justify-content: flex-end;
  39. }
  40. }
  41. :deep(.zxm-input-affix-wrapper) {
  42. background-color: #ffffff00;
  43. border: 1px solid #3ad8ff77 !important;
  44. }
  45. </style>