29 lines
615 B
Vue
29 lines
615 B
Vue
|
|
<template>
|
||
|
|
<a-modal
|
||
|
|
v-model:open="visible"
|
||
|
|
title="编辑放鱼数据"
|
||
|
|
width="600px"
|
||
|
|
:footer="null"
|
||
|
|
>
|
||
|
|
<a-empty description="编辑功能开发中,接口待接入" />
|
||
|
|
</a-modal>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { ref, computed } from 'vue';
|
||
|
|
import { useDraggable } from '@/utils/drag';
|
||
|
|
|
||
|
|
const props = defineProps<{
|
||
|
|
open: boolean;
|
||
|
|
record?: any;
|
||
|
|
}>();
|
||
|
|
|
||
|
|
const emit = defineEmits(['update:open', 'success']);
|
||
|
|
|
||
|
|
const visible = computed({
|
||
|
|
get: () => props.open,
|
||
|
|
set: val => emit('update:open', val)
|
||
|
|
});
|
||
|
|
useDraggable(visible, { boundary: true, resetOnOpen: true });
|
||
|
|
</script>
|