提交 00d71b95 编写于 作者: RedPig97's avatar RedPig97

update:更新

上级 2b994e9b
......@@ -31,8 +31,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const IndexView = new IndexView(viewState, props, emit).moduleInstall();
const { state, menu } = IndexView;
const indexView = new IndexView(viewState, props, emit).moduleInstall();
const { state, menu } = indexView;
const collapsed: Ref<boolean> = ref(false);
const collapsedChange = () => {
collapsed.value = !collapsed.value;
......@@ -67,7 +67,7 @@ const collapsedChange = () => {
:defaultView="state.defaultView"
:viewParams="state.viewParams"
:viewSubject="state.viewSubject"
:parent="IndexView"
:parent="indexView"
></{{codeName}}Menu>
{{/eq}}
{{/page.ctrls}}
......
......@@ -29,8 +29,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const PortalView = new PortalView(viewState, props, emit).moduleInstall();
const { state, dashboard, onCtrlEvent } = PortalView;
const portalView = new PortalView(viewState, props, emit).moduleInstall();
const { state, dashboard, onCtrlEvent } = portalView;
</script>
......@@ -51,7 +51,7 @@ const { state, dashboard, onCtrlEvent } = PortalView;
:context="state.context"
:viewParams="state.viewParams"
:viewSubject="state.viewSubject"
:parent="PortalView"
:parent="portalView"
@ctrlEvent="onCtrlEvent"
></{{codeName}}Dashboard>
{{/eq}}
......
......@@ -29,8 +29,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const EditView = new EditView(viewState, props, emit).moduleInstall();
const { state, form, onToolbarEvent, onCtrlEvent } = EditView;
const editView = new EditView(viewState, props, emit).moduleInstall();
const { state, form, onToolbarEvent, onCtrlEvent } = editView;
</script>
......@@ -64,7 +64,7 @@ const { state, form, onToolbarEvent, onCtrlEvent } = EditView;
:viewParams="state.viewParams"
:controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject"
:parent="EditView"
:parent="editView"
@ctrlEvent="onCtrlEvent"
></{{codeName}}Form>
{{/eq}}
......
......@@ -39,8 +39,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const GridView = new GridView(viewState, props, emit).moduleInstall();
const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = GridView;
const gridView = new GridView(viewState, props, emit).moduleInstall();
const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = gridView;
</script>
......@@ -128,7 +128,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
:viewParams="state.viewParams"
:controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject"
:parent="GridView"
:parent="gridView"
@ctrlEvent="onCtrlEvent"
></{{codeName}}Grid>
{{/eq}}
......
......@@ -29,8 +29,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const MPickupView = new MPickupView(viewState, props, emit).moduleInstall();
const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onMoveLeft, onAllMoveRight, onAllMoveLeft } = new MPickupView(viewState, props, emit).moduleInstall();
const mpickupView = new MPickupView(viewState, props, emit).moduleInstall();
const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onMoveLeft, onAllMoveRight, onAllMoveLeft } = mpickupView;
</script>
<template>
......@@ -62,7 +62,7 @@ const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onM
:viewParams="state.viewParams"
:controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject"
:parent="MPickupView"
:parent="mpickupView"
@onCtrlEvent="onCtrlEvent"
></{{codeName}}PickupViewPanel>
{{/eq}}
......
......@@ -38,8 +38,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const PickupGridView = new PickupGridView(viewState, props, emit).moduleInstall();
const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = PickupGridView;
const pickupGridView = new PickupGridView(viewState, props, emit).moduleInstall();
const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = pickupGridView;
</script>
<template>
......@@ -67,7 +67,6 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = Pick
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
:viewSubject="state.viewSubject"
:parent="PickupGridView"
@ctrlEvent="onCtrlEvent"
></{{codeName}}SearchForm>
</template>
......@@ -113,6 +112,7 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = Pick
:viewParams="state.viewParams"
:controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject"
:parent="pickupGridView"
@ctrlEvent="onCtrlEvent"
></{{codeName}}Grid>
{{/eq}}
......
......@@ -28,8 +28,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const PickupView = new PickupView(viewState, props, emit).moduleInstall();
const { state, onCancel, onConfirm, onCtrlEvent, selectData } = PickupView;
const pickupView = new PickupView(viewState, props, emit).moduleInstall();
const { state, onCancel, onConfirm, onCtrlEvent, selectData } = pickupView;
</script>
<template>
......@@ -58,7 +58,7 @@ const { state, onCancel, onConfirm, onCtrlEvent, selectData } = PickupView;
:controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject"
:selectData="selectData"
:parent="PickupView"
:parent="pickupView"
@onCtrlEvent="onCtrlEvent"
></{{codeName}}PickupViewPanel>
{{/eq}}
......
......@@ -28,8 +28,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const TabExpView = new TabExpView(viewState, props, emit).moduleInstall();
const { state, onCtrlEvent } = TabExpView;
const tabExpView = new TabExpView(viewState, props, emit).moduleInstall();
const { state, onCtrlEvent } = tabExpView;
</script>
<template>
......@@ -55,7 +55,7 @@ const { state, onCtrlEvent } = TabExpView;
:viewParams="state.viewParams"
:viewSubject="state.viewSubject"
:defaultActivePanel="state.defaultActivePanel"
:parent="TabExpView"
:parent="tabExpView"
@onCtrlEvent="onCtrlEvent"
></{{codeName}}TabExpPanel>
{{/eq}}
......
......@@ -25,8 +25,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块
const TreeExpView = new TreeExpView(viewState, props, emit).moduleInstall()
const { state, onCtrlEvent, onToolbarEvent } = TreeExpView;
const treeExpView = new TreeExpView(viewState, props, emit).moduleInstall()
const { state, onCtrlEvent, onToolbarEvent } = treeExpView;
</script>
<template>
......@@ -51,7 +51,7 @@ const { state, onCtrlEvent, onToolbarEvent } = TreeExpView;
:showBusyIndicator="true"
:viewParams="state.viewParams"
:viewSubject="state.viewSubject"
:parent="TreeExpView"
:parent="treeExpView"
@ctrlEvent="onCtrlEvent"
></{{codeName}}TreeExpBar>
{{/eq}}
......
......@@ -38,8 +38,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法
const TreeView = new TreeView(viewState, props, emit).moduleInstall();
const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = TreeView;
const treeView = new TreeView(viewState, props, emit).moduleInstall();
const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = treeView;
</script>
......@@ -127,7 +127,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
:viewParams="state.viewParams"
:controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject"
:parent="TreeView"
:parent="treeView"
@ctrlEvent="onCtrlEvent"
></{{codeName}}Tree>
{{/eq}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册