27 lines
701 B
Vue
27 lines
701 B
Vue
|
|
<template>
|
||
|
|
<el-dialog v-model="dialogVisible" :title="title" style="width: 1040px">
|
||
|
|
<template #footer>
|
||
|
|
<span class="dialog-footer">
|
||
|
|
<el-button @click="dialogVisible = false">取消</el-button>
|
||
|
|
<el-button type="primary" @click="submit">确认</el-button>
|
||
|
|
</span>
|
||
|
|
</template>
|
||
|
|
</el-dialog>
|
||
|
|
</template>
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { ref, reactive } from 'vue'
|
||
|
|
const dialogVisible = ref(false)
|
||
|
|
const title = ref('')
|
||
|
|
|
||
|
|
const submit = () => {}
|
||
|
|
|
||
|
|
const open = (row: any) => {
|
||
|
|
console.log(row)
|
||
|
|
title.value = row.title
|
||
|
|
dialogVisible.value = true
|
||
|
|
}
|
||
|
|
|
||
|
|
defineExpose({ open })
|
||
|
|
</script>
|
||
|
|
<style lang="scss" scoped></style>
|