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

update:更新

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