add.vue 668 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <a-modal v-model:visible="modelValue" width="800px" title="添加" @cancel="cancel" @ok="submitStatus" okText="确认"
  3. cancelText="取消">
  4. </a-modal>
  5. </template>
  6. <script setup>
  7. import { ref, defineProps, toRef, defineEmits,watch} from 'vue';
  8. import { Message } from '@arco-design/web-vue';
  9. const props = defineProps({
  10. modelValue: {
  11. type: Boolean,
  12. default: false
  13. },
  14. })
  15. const modelValue = toRef(props, 'modelValue')
  16. const emit = defineEmits(['update:modelValue', 'submit'])
  17. const cancel = ()=>{
  18. emit('update:modelValue', false)
  19. }
  20. // 确定
  21. const submitStatus = async () => {
  22. }
  23. </script>
  24. <style scoped>
  25. </style>