Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
8893d494
提交
8893d494
编写于
5月 16, 2023
作者:
chitanda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 布局面板更新
上级
b4c1de1a
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
132 行增加
和
0 行删除
+132
-0
index.ts
plugins/view-layout-panel-dsl/src/index.ts
+2
-0
view-layout-model-repository-de-edit-view-layout.ts
...itory/view-layout-model-repository-de-edit-view-layout.ts
+122
-0
view-layout-model-repository-de-grid-view-layout.ts
...itory/view-layout-model-repository-de-grid-view-layout.ts
+3
-0
index.ts.hbs
plugins/view-layout-panel-dsl/template/index.ts.hbs
+2
-0
{{pages@DEEDITVIEW}}.ts.hbs
...-dsl/template/{{appEntities}}/{{pages@DEEDITVIEW}}.ts.hbs
+3
-0
未找到文件。
plugins/view-layout-panel-dsl/src/index.ts
浏览文件 @
8893d494
import
AppIndexViewLayout
from
'./app-index-view-layout'
;
import
DEGridView
from
'./view-layout-model-repository/view-layout-model-repository-de-grid-view-layout'
;
import
DEEditView
from
'./view-layout-model-repository/view-layout-model-repository-de-edit-view-layout'
;
/**
* 安装视图默认布局
...
...
@@ -12,4 +13,5 @@ import DEGridView from './view-layout-model-repository/view-layout-model-reposit
export
function
install
(
callBack
:
(
key
:
string
,
model
:
any
)
=>
void
):
void
{
callBack
(
'APPINDEXVIEW_DEFAULT'
,
AppIndexViewLayout
);
callBack
(
'DEGRIDVIEW_DEFAULT'
,
DEGridView
);
callBack
(
'DEEDITVIEW_DEFAULT'
,
DEEditView
);
}
\ No newline at end of file
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-edit-view-layout.ts
0 → 100644
浏览文件 @
8893d494
export
default
{
"layoutMode"
:
"TABLE_24COL"
,
"rootPanelItems"
:
[
{
"panelItems"
:
[
{
"panelItems"
:
[
{
"allowEmpty"
:
true
,
"caption"
:
"页面标题"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"FIELD"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"id"
:
"view_pagecaption"
}
],
"layout"
:
{
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"id"
:
"page_header_left"
},
{
"panelItems"
:
[
{
"caption"
:
"搜索栏"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"568271fd-80cf-499e-ab0a-61934b5f0262"
},
{
"caption"
:
"工具栏"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"toolbar"
}
],
"layout"
:
{
"dir"
:
"row"
,
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"id"
:
"page_header_right"
}
],
"layout"
:
{
"align"
:
"space-between"
,
"dir"
:
"row"
,
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"contentHeight"
:
54
,
"height"
:
54
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"colMD"
:
24
,
"height"
:
54
,
"heightMode"
:
"PX"
,
"layout"
:
"TABLE_24COL"
},
"id"
:
"page_header"
},
{
"panelItems"
:
[
{
"caption"
:
"表单"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"form"
}
],
"layout"
:
{
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
},
"id"
:
"page_content"
}
],
"layoutPanel"
:
true
,
"codeName"
:
"EditViewLayout"
,
"controlType"
:
"VIEWLAYOUTPANEL"
,
"logicName"
:
"编辑视图布局面板(预置模型)"
,
"appDataEntityId"
:
"web.viewlayoutmodelrepository"
,
"controlParam"
:
{},
"name"
:
"layoutpanel"
,
"id"
:
"editviewlayout"
}
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-grid-view-layout.ts
浏览文件 @
8893d494
...
...
@@ -72,9 +72,12 @@ export default {
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"contentHeight"
:
54
,
"height"
:
54
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"height"
:
54
,
"heightMode"
:
"PX"
,
"layout"
:
"FLEX"
},
...
...
plugins/view-layout-panel-dsl/template/index.ts.hbs
浏览文件 @
8893d494
import AppIndexViewLayout from './app-index-view-layout';
import DEGridView from './view-layout-model-repository/view-layout-model-repository-de-grid-view-layout';
import DEEditView from './view-layout-model-repository/view-layout-model-repository-de-edit-view-layout';
/**
* 安装视图默认布局
...
...
@@ -12,4 +13,5 @@ import DEGridView from './view-layout-model-repository/view-layout-model-reposit
export function install(callBack: (key: string, model: any) => void): void {
callBack('APPINDEXVIEW_DEFAULT', AppIndexViewLayout);
callBack('DEGRIDVIEW_DEFAULT', DEGridView);
callBack('DEEDITVIEW_DEFAULT', DEEditView);
}
\ No newline at end of file
plugins/view-layout-panel-dsl/template/{{appEntities}}/{{pages@DEEDITVIEW}}.ts.hbs
0 → 100644
浏览文件 @
8893d494
{{#
eq
page
.
codeName
'ViewLayoutModelRepositoryDEEditViewLayout'
}}
export default
{{
jsonStringify
pageDSL
.
viewLayoutPanel
2
}}
{{/
eq
}}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录