chore: 升级到antdv4

This commit is contained in:
xiaojunnuo
2024-03-08 17:07:53 +08:00
parent e1b372c33b
commit 5b576112d1
17 changed files with 53 additions and 89 deletions
@@ -4,7 +4,7 @@
<span v-else class="mlr-5 gray">请选择</span>
<a-button @click="chooseForm.open">选择</a-button>
<a-form-item-rest v-if="chooseForm.show">
<a-modal v-model:visible="chooseForm.show" title="选择授权提供者" width="700px" @ok="chooseForm.ok">
<a-modal v-model:open="chooseForm.show" title="选择授权提供者" width="700px" @ok="chooseForm.ok">
<div style="height: 400px; position: relative">
<cert-access-modal v-model="selectedId" :type="type"></cert-access-modal>
</div>
@@ -1,5 +1,5 @@
<template>
<a-drawer v-model:visible="notificationDrawerVisible" placement="right" :closable="true" width="600px" class="pi-notification-form" @after-visible-change="notificationDrawerOnAfterVisibleChange">
<a-drawer v-model:open="notificationDrawerVisible" placement="right" :closable="true" width="600px" class="pi-notification-form" @after-open-change="notificationDrawerOnAfterVisibleChange">
<template #title>
编辑触发器
<a-button v-if="mode === 'edit'" @click="notificationDelete()">
@@ -1,5 +1,5 @@
<template>
<a-drawer v-model:visible="stepDrawerVisible" placement="right" :closable="true" width="600px" @after-visible-change="stepDrawerOnAfterVisibleChange">
<a-drawer v-model:open="stepDrawerVisible" placement="right" :closable="true" width="600px" @after-open-change="stepDrawerOnAfterVisibleChange">
<template #title>
编辑任务
<a-button v-if="editMode" @click="stepDelete()">
@@ -1,5 +1,5 @@
<template>
<a-drawer v-model:visible="taskDrawerVisible" placement="right" :closable="true" width="600px" class="pi-task-form" @after-visible-change="taskDrawerOnAfterVisibleChange">
<a-drawer v-model:open="taskDrawerVisible" placement="right" :closable="true" width="600px" class="pi-task-form" @after-open-change="taskDrawerOnAfterVisibleChange">
<template #title>
编辑任务
<a-button v-if="editMode" @click="taskDelete()">
@@ -1,5 +1,5 @@
<template>
<a-modal v-model:visible="taskModal.visible" class="pi-task-view" title="任务日志" style="width: 80%" v-bind="taskModal">
<a-modal v-model:open="taskModal.open" class="pi-task-view" title="任务日志" style="width: 80%" v-bind="taskModal">
<a-tabs v-model:activeKey="activeKey" tab-position="left" animated>
<a-tab-pane v-for="item of detail.nodes" :key="item.node.id">
<template #tab>
@@ -25,7 +25,7 @@ export default {
props: {},
setup(props: any, ctx: any) {
const taskModal = ref({
visible: false,
open: false,
onOk() {
taskViewClose();
},
@@ -36,7 +36,7 @@ export default {
const activeKey = ref();
const currentHistory: Ref<RunHistory> | undefined = inject("currentHistory");
const taskViewOpen = (task: any) => {
taskModal.value.visible = true;
taskModal.value.open = true;
const nodes: any = [];
// nodes.push({
// node: task,
@@ -71,7 +71,7 @@ export default {
};
const taskViewClose = () => {
taskModal.value.visible = false;
taskModal.value.open = false;
};
return {
@@ -1,11 +1,11 @@
<template>
<a-drawer
v-model:visible="triggerDrawerVisible"
v-model:open="triggerDrawerVisible"
placement="right"
:closable="true"
width="600px"
class="pi-trigger-form"
@after-visible-change="triggerDrawerOnAfterVisibleChange"
@after-open-change="triggerDrawerOnAfterVisibleChange"
>
<template #title>
编辑触发器
@@ -7,7 +7,7 @@
<a-button type="primary" @click="openDialog">打开对话框</a-button>
</div>
<a-modal v-model:visible="dialogShow" width="80%" title="fs-crud in dialog">
<a-modal v-model:open="dialogShow" width="80%" title="fs-crud in dialog">
<div style="height: 400px; position: relative">
<!-- 在此处显示fs-crud页面 -->
<fs-in-dialog></fs-in-dialog>
@@ -4,7 +4,7 @@
<div class="title">角色管理</div>
</template>
<fs-crud ref="crudRef" v-bind="crudBinding" />
<a-modal v-model:visible="authzDialogVisible" width="860px" title="分配权限" @ok="updatePermission">
<a-modal v-model:open="authzDialogVisible" width="860px" title="分配权限" @ok="updatePermission">
<fs-permission-tree ref="permissionTreeRef" v-model:checkedKeys="checkedKeys" :tree="permissionTreeData" :editable="false" checkable :replace-fields="{ key: 'id', label: 'title' }"> </fs-permission-tree>
</a-modal>
</fs-page>