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

update:更新

上级 a1c91de8
{{#*inline "FORM"}}{{>@macro/front-end/views/view-form/view-control-form.hbs}}{{/inline}}
{{#*inline "SEARCHFORM"}}{{>@macro/front-end/views/view-form/view-control-form.hbs}}{{/inline}}
{{#*inline "GRID"}}{{>@macro/front-end/views/view-grid/view-control-grid.hbs}}{{/inline}}
{{#*inline "APPMENU"}}{{>@macro/front-end/views/view-menu/view-control-menu.hbs}}{{/inline}}
{{> @macro/front-end/views/config/include-view-control}}
viewCodeName: '{{page.codeName}}',
viewName: '{{page.name}}',
viewCaption: '{{page.caption}}',
......@@ -23,4 +24,8 @@
{{/items}}
{{/page.viewToolBarItems}}
],
{{> @macro/front-end/views/common/control-action}}
\ No newline at end of file
{{#each page.ctrls as | ctrl |}}
{{#if (neq ctrl.controlType "TOOLBAR")}}
{{>(lookup . 'ctrl.controlType') ctrl=ctrl}}{{#unless @last}},{{/unless}}
{{/if}}
{{/each}}
\ No newline at end of file
{{name}}:{
loadAction: '{{ctrl.getPSControlAction.psAppDEMethod.codeName}}',
removeAction: '{{ctrl.removePSControlAction.psAppDEMethod.codeName}}',
updateAction: '{{ctrl.updatePSControlAction.psAppDEMethod.codeName}}',
loadDraftAction: '{{ctrl.getDraftPSControlAction.psAppDEMethod.codeName}}',
createAction: '{{ctrl.createPSControlAction.psAppDEMethod.codeName}}'
}
\ No newline at end of file
controlsAction:{
{{#page.ctrls as | ctrl |}}
{{#neq controlType "TOOLBAR"}}
{{name}}:{
{{name}}:{
action:{
loadAction: '{{ctrl.getPSControlAction.psAppDEMethod.codeName}}',
removeAction: '{{ctrl.removePSControlAction.psAppDEMethod.codeName}}',
updateAction: '{{ctrl.updatePSControlAction.psAppDEMethod.codeName}}',
loadDraftAction: '{{ctrl.getDraftPSControlAction.psAppDEMethod.codeName}}',
createAction: '{{ctrl.createPSControlAction.psAppDEMethod.codeName}}',
fetchAction:'{{ctrl.fetchPSControlAction.psAppDEMethod.codeName}}'
},
{{/neq}}
{{/page.ctrls}}
}
}
\ No newline at end of file
{{name}}:{
loadAction: '{{ctrl.getPSControlAction.psAppDEMethod.codeName}}'
}
\ No newline at end of file
import { MainViewProps } from "@core";
import { MDViewProps } from "@core";
/**
* @description 表格视图props
* @export
* @interface GridViewProps
* @extends {MainViewProps}
* @extends {MDViewProps}
*/
export interface GridViewProps extends MainViewProps {
export interface GridViewProps extends MDViewProps {
}
\ No newline at end of file
import { MainViewState } from "@core";
import { MDViewState } from "@core";
/**
* @description 表格视图状态
* @export
* @interface GridViewState
* @extends {MainViewState}
* @extends {MDViewState}
*/
export interface GridViewState extends MainViewState {
export interface GridViewState extends MDViewState {
/**
* @description 表格行激活模式
......
import { GridViewProps, GridViewState, MainView } from '@core';
import { GridViewProps, GridViewState, MDView } from '@core';
/**
* @description 表格视图
* @export
* @class GridView
* @extends {MainView}
* @extends {MDView}
*/
export class GridView extends MainView {
export class GridView extends MDView {
/**
* @description 视图状态
......
export * from './view-base'
export * from './main-view'
export * from './md-view'
export * from './exp-view'
export * from './edit-view'
export * from './index-view'
......
export * from './md-view-prop'
export * from './md-view-state'
export * from './md-view'
\ No newline at end of file
import { MainViewProps } from '@core';
/**
* 多数据视图输入参数
*
* @export
* @interface MDViewProps
* @extends {MainViewProps}
*/
export interface MDViewProps extends MainViewProps {
}
import { MainViewState } from '@core';
/**
* 多数据视图状态
*
* @export
* @interface MDViewState
* @extends {MainViewState}
*/
export interface MDViewState extends MainViewState {
}
import { MainView, MDViewState } from '@core';
/**
* 多数据视图
*
* @export
* @class MDView
* @extends {MainView}
*/
export class MDView extends MainView {
/**
* 视图状态数据
*/
public declare viewState: MDViewState;
}
export const ViewConfig = {
{{> @macro/front-end/views/common/view-base-config.hbs}}
{{> @macro/front-end/views/config/view-base-config.hbs}}
};
\ No newline at end of file
export const ViewConfig = {
{{> @macro/front-end/views/common/view-base-config.hbs}}
{{> @macro/front-end/views/config/view-base-config.hbs}}
};
\ No newline at end of file
export const ViewConfig = {
gridRowActiveMode: {{page.gridRowActiveMode}},
rowEditState: {{#if page.enableRowEdit}}{{page.rowEditDefault}}{{else}}false{{/if}},
{{> @macro/front-end/views/common/view-base-config.hbs}}
{{> @macro/front-end/views/config/view-base-config.hbs}}
};
\ No newline at end of file
......@@ -55,7 +55,7 @@ const { state, handleCtrlEvent, handleToolbarEvent } = new GridView(ViewConfig).
:rowActiveMode="state.gridRowActiveMode"
:showBusyIndicator="true"
:viewParams="state.viewParams"
:controlAction="state.controlsAction.{{name}}"
:controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject"
@ctrlEvent="handleCtrlEvent"
></{{codeName}}Grid>
......
export const ViewConfig = {
{{> @macro/front-end/views/common/view-base-config.hbs}}
{{> @macro/front-end/views/config/view-base-config.hbs}}
};
\ No newline at end of file
export const ViewConfig = {
{{> @macro/front-end/views/common/view-base-config.hbs}}
{{> @macro/front-end/views/config/view-base-config.hbs}}
};
\ No newline at end of file
export const ViewConfig = {
{{> @macro/front-end/views/common/view-base-config.hbs}}
{{> @macro/front-end/views/config/view-base-config.hbs}}
};
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册