提交 bcb8cf1a 编写于 作者: tony001's avatar tony001

update:更新

上级 53137e73
......@@ -240,7 +240,7 @@ export class AppSysAction {
public static exit(params: IUIActionParams) {
const { actionEnvironment } = params;
if (isExist(actionEnvironment.closeView)) {
actionEnvironment.refresh();
actionEnvironment.closeView();
}
}
......
......@@ -753,6 +753,7 @@ export class FormControl extends MainControl {
load: this.useLoad(),
loadDraft: this.useLoadDraft(),
save: this.useSave(),
remove: this.useRemove(),
refresh: this.useRefresh(),
onEditorEvent: this.onEditorEvent.bind(this),
onComponentEvent: this.onComponentEvent.bind(this),
......
......@@ -40,10 +40,10 @@ interface CtrlEmit {
const emit = defineEmits <CtrlEmit> ();
// 安装功能模块,提供状态和能力方法
const { name, state, onEditorEvent, onComponentEvent, getData } = new FormControl(ctrlState, props, emit).moduleInstall();
const { name, state, load, loadDraft, save, remove, refresh, onEditorEvent, onComponentEvent, getData } = new FormControl(ctrlState, props, emit).moduleInstall();
// 暴露内部状态及能力
defineExpose({ name, state, getData });
defineExpose({ name, state, load, loadDraft, save, remove, refresh, getData });
</script>
<template>
<a-form name="{{ctrl.codeName}}" class="app-form{{#if ctrl.psSysCss}} {{ctrl.psSysCss.cssName}}{{/if}}{{#if ctrl.infoFormMode}} app-info-form{{/if}}" style="{{#if ctrl.formWidth}}width: {{ctrl.formWidth}}px;{{/if}}" :model="state.data" :rules="state.rules">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册