1234567891011121314151617181920212223242526272829 |
- <template>
- <a-modal v-model:visible="modelValue" width="800px" title="添加" @cancel="cancel" @ok="submitStatus" okText="确认"
- cancelText="取消">
- </a-modal>
- </template>
- <script setup>
- import { ref, defineProps, toRef, defineEmits,watch} from 'vue';
- import { Message } from '@arco-design/web-vue';
- const props = defineProps({
- modelValue: {
- type: Boolean,
- default: false
- },
- })
- const modelValue = toRef(props, 'modelValue')
- const emit = defineEmits(['update:modelValue', 'submit'])
- const cancel = ()=>{
- emit('update:modelValue', false)
- }
- // 确定
- const submitStatus = async () => {
- }
- </script>
- <style scoped>
- </style>
|