mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 20:57:10 +08:00
fix: 修复文件重命名时不能回显原值的问题
This commit is contained in:
@@ -14,11 +14,17 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { FileItem } from '@/apis'
|
||||
import type { FormInstance } from '@arco-design/web-vue'
|
||||
|
||||
interface Props {
|
||||
data: FileItem
|
||||
}
|
||||
const props = withDefaults(defineProps<Props>(), {})
|
||||
|
||||
const formRef = ref<FormInstance>()
|
||||
const form = reactive({
|
||||
name: ''
|
||||
name: props.data?.name || ''
|
||||
})
|
||||
|
||||
defineExpose({ formRef })
|
||||
|
@@ -12,6 +12,7 @@ export function openFileRenameModal(data: FileItem, callback?: () => void) {
|
||||
width: '90%',
|
||||
content: () =>
|
||||
h(ModalContent, {
|
||||
data,
|
||||
ref: (e) => {
|
||||
ModalContentRef.value = e as any
|
||||
}
|
||||
|
Reference in New Issue
Block a user