You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
846 B
39 lines
846 B
<template>
|
|
<w-dialog
|
|
ref="dialogRef"
|
|
:persistent="true"
|
|
:maximized="false"
|
|
title="xxx"
|
|
width="50%"
|
|
height="50%"
|
|
:can-maximize="false"
|
|
:buttons="[
|
|
{
|
|
icon: IconEnum.保存,
|
|
label: '保存',
|
|
loading: false,
|
|
click: async () => {},
|
|
},
|
|
]"
|
|
@maximized="dialogMaximize"
|
|
></w-dialog>
|
|
</template>
|
|
<script setup lang="ts">
|
|
// import { Environment, axios } from '@/platform';
|
|
|
|
// const response = await axios.get(Environment.apiContextPath('/api/sample/action1'));
|
|
// const message = response.data.message;
|
|
|
|
import { ref, reactive, onMounted } from 'vue';
|
|
import { IconEnum } from '@/platform';
|
|
|
|
const dialogRef = ref();
|
|
|
|
const dialogMaximize = (maximizedToggle: boolean) => {
|
|
console.log(maximizedToggle);
|
|
};
|
|
|
|
onMounted(() => {
|
|
dialogRef.value.show();
|
|
});
|
|
</script>
|
|
|