提交 5cb92d59 编写于 作者: WodahsOrez's avatar WodahsOrez

fix: 部件name

上级 4ab07086
......@@ -57,6 +57,7 @@ const collapsedChange = () => {
<template #menu>
<{{#page.ctrls}}{{#eq controlType "APPMENU"}}{{codeName}}Menu{{/eq}}{{/page.ctrls}}
ref="menu"
name={{name}}
:context="state.context"
:collapsed="collapsed"
:menuAlign="state.menuAlign"
......
......@@ -57,6 +57,7 @@ const { state, form, onToolbarEvent } = new EditView(viewState, props, emit).mod
{{#eq controlType "FORM"}}
<{{codeName}}Form
ref="form"
name={{name}}
:showBusyIndicator="true"
:context="state.context"
:viewParams="state.viewParams"
......
......@@ -72,6 +72,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
<template #content>
<{{codeName}}SearchForm
v-if="state.expandSearchForm"
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -87,6 +88,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
<template v-slot:searchForm>
<{{codeName}}SearchForm
v-if="state.expandSearchForm"
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -99,6 +101,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
{{#if (and (eq controlType "SEARCHFORM") (eq name 'quicksearchform'))}}
<template v-slot:quickSearchForm>
<{{codeName}}QuickSearchForm
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -117,6 +120,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
{{#eq controlType "GRID"}}
<{{codeName}}Grid
ref="grid"
name={{name}}
:context="state.context"
:rowEditState="state.rowEditState"
:rowActiveMode="state.gridRowActiveMode"
......
......@@ -53,6 +53,7 @@ const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onM
{{#page.ctrls}}
{{#eq controlType "PICKUPVIEWPANEL"}}
<{{codeName}}PickupViewPanel
name={{name}}
:context="state.context"
:rowEditState="state.rowEditState"
:rowActiveMode="state.gridRowActiveMode"
......
......@@ -65,6 +65,7 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = new
<template #content>
<{{codeName}}SearchForm
v-if="state.expandSearchForm"
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -80,6 +81,7 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = new
<template v-slot:searchForm>
<{{codeName}}SearchForm
v-if="state.expandSearchForm"
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -92,6 +94,7 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = new
{{#if (and (eq controlType "SEARCHFORM") (eq name 'quicksearchform'))}}
<template v-slot:quickSearchForm>
<{{codeName}}QuickSearchForm
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -103,6 +106,7 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = new
{{#eq controlType "GRID"}}
<{{codeName}}Grid
ref="grid"
name={{name}}
:context="state.context"
:multiple="false"
:rowEditState="state.rowEditState"
......
......@@ -48,6 +48,7 @@ const { state, onCancel, onConfirm, onCtrlEvent, selectData } = new PickupView(v
{{/eq}}
{{#eq controlType "PICKUPVIEWPANEL"}}
<{{codeName}}PickupViewPanel
name={{name}}
:context="state.context"
:rowEditState="state.rowEditState"
:rowActiveMode="state.gridRowActiveMode"
......
......@@ -45,6 +45,7 @@ const { state, onCtrlEvent, onToolbarEvent } = new TreeExpView(viewState, props,
{{/eq}}
{{#eq controlType "TREEEXPBAR"}}
<{{codeName}}TreeExpBar
name={{name}}
:context="state.context"
:showBusyIndicator="true"
:viewParams="state.viewParams"
......
......@@ -71,6 +71,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
<template #content>
<{{codeName}}SearchForm
v-if="state.expandSearchForm"
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -86,6 +87,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
<template v-slot:searchForm>
<{{codeName}}SearchForm
v-if="state.expandSearchForm"
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -98,6 +100,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
{{#if (and (eq controlType "SEARCHFORM") (eq name 'quicksearchform'))}}
<template v-slot:quickSearchForm>
<{{codeName}}QuickSearchForm
name={{name}}
:context="state.context"
:viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action"
......@@ -109,6 +112,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
{{#eq controlType "SEARCHBAR"}}
<template v-slot:searchBar>
<{{codeName}}SearchBar
name={{name}}
:controlAction="state.{{camelCase name}}.action"
:viewSubject="state.viewSubject"/>
</template>
......@@ -116,7 +120,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
{{#eq controlType "TREEVIEW"}}
<{{codeName}}Tree
ref="tree"
:name="state.xDataControlName"
name={{name}}
:context="state.context"
:showBusyIndicator="true"
:viewParams="state.viewParams"
......
......@@ -3,6 +3,7 @@ import { Subject } from "rxjs";
import { ctrlState } from "./{{spinalCase ctrl.codeName}}-menu-state";
import { IParam, IActionParam, MenuControl, IContext } from "@core";
interface Props {
name:string,
context: IContext;
defaultView?: string;
collapsed: boolean;
......
......@@ -19,6 +19,7 @@ import {{formDetail.psAppView.codeName}} from '@views/{{spinalCase formDetail.ps
{{/if}}
{{/each}}
interface Props {
name:string,
context: IContext;
viewParams?: IParam;
controlAction: ControlAction;
......
......@@ -5,6 +5,7 @@ import { ctrlState } from './{{spinalCase ctrl.codeName}}-grid-state';
import { GridControl, IActionParam, IParam, IContext, ControlAction, deepCopy } from '@core';
interface Props {
name:string,
context: IContext;
viewParams: IParam;
multiple?: boolean;
......
......@@ -6,6 +6,7 @@ import { ctrlState } from './{{spinalCase ctrl.codeName}}-pickup-view-panel-stat
import {{ctrl.embeddedPSAppDEView.codeName}} from '@views/{{spinalCase ctrl.embeddedPSAppDEView.psAppModule.codeName}}/{{spinalCase ctrl.embeddedPSAppDEView.codeName}}';
{{/if}}
interface Props {
name:string,
context: IContext;
viewParams?: IParam;
controlAction: ControlAction;
......
......@@ -6,6 +6,7 @@ import { ctrlState } from './{{spinalCase ctrl.codeName}}-quick-search-form-stat
import { QuickSearchFormControl, IActionParam, IParam, ControlAction, IContext } from '@core';
interface Props {
name:string,
context: IContext;
viewParams?: IParam;
controlAction: ControlAction;
......
......@@ -5,6 +5,7 @@ import { CtrlConfig } from './{{spinalCase ctrl.codeName}}-searchBar-config';
import { SearchBarControl, IActionParam, IParam, IContext, ControlAction, deepCopy } from '@core';
interface Props {
name:string,
controlAction: ControlAction;
viewSubject: Subject<IActionParam>;
}
......
......@@ -6,6 +6,7 @@ import { ctrlState } from './{{spinalCase ctrl.codeName}}-search-form-state';
import { SearchFormControl, IActionParam, IParam, ControlAction, IContext } from '@core';
interface Props {
name:string,
context: IContext;
viewParams?: IParam;
controlAction: ControlAction;
......
......@@ -14,6 +14,7 @@ import {{viewRef.refPSAppView.name}} from '@views/{{spinalCase viewRef.refPSAppV
{{/each}}
interface Props {
name:string,
context: IContext;
viewParams?: IParam;
controlAction: ControlAction;
......
......@@ -4,6 +4,7 @@ import { IActionParam, IParam, ControlAction, TreeControl, IContext } from '@cor
import { ctrlState } from './{{spinalCase ctrl.codeName}}-tree-state';
interface Props {
name:string,
context: IContext;
selectedData: IParam[];
selectFirstDefault?: boolean;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册