Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
20c9b272
提交
20c9b272
编写于
5月 24, 2023
作者:
chitanda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 补充日历、选择、选择表格视图
上级
debbae6e
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
244 行增加
和
27 行删除
+244
-27
CHANGELOG.md
plugins/view-layout-panel-dsl/CHANGELOG.md
+6
-0
index.ts
plugins/view-layout-panel-dsl/src/index.ts
+10
-4
view-layout-model-repository-de-calendar-view-layout.ts
...y/view-layout-model-repository-de-calendar-view-layout.ts
+84
-0
view-layout-model-repository-de-data-view-layout.ts
...itory/view-layout-model-repository-de-data-view-layout.ts
+5
-7
view-layout-model-repository-de-edit-view-layout.ts
...itory/view-layout-model-repository-de-edit-view-layout.ts
+4
-5
view-layout-model-repository-de-list-view-layout.ts
...itory/view-layout-model-repository-de-list-view-layout.ts
+5
-7
view-layout-model-repository-de-pickup-grid-view-layout.ts
...iew-layout-model-repository-de-pickup-grid-view-layout.ts
+24
-0
view-layout-model-repository-de-pickup-view-layout.ts
...ory/view-layout-model-repository-de-pickup-view-layout.ts
+87
-0
index.ts.hbs
plugins/view-layout-panel-dsl/template/index.ts.hbs
+10
-4
{{pages@DECALENDARVIEW}}.ts.hbs
.../template/{{appEntities}}/{{pages@DECALENDARVIEW}}.ts.hbs
+3
-0
{{pages@DEPICKUPGRIDVIEW}}.ts.hbs
...emplate/{{appEntities}}/{{pages@DEPICKUPGRIDVIEW}}.ts.hbs
+3
-0
{{pages@DEPICKUPVIEW}}.ts.hbs
...sl/template/{{appEntities}}/{{pages@DEPICKUPVIEW}}.ts.hbs
+3
-0
未找到文件。
plugins/view-layout-panel-dsl/CHANGELOG.md
浏览文件 @
20c9b272
...
...
@@ -7,6 +7,12 @@
## [Unreleased]
### Added
-
日历视图布局面板
-
选择视图布局面板
-
选择表格视图布局面板
## [1.0.9] - 2023-05-22
### Added
...
...
plugins/view-layout-panel-dsl/src/index.ts
浏览文件 @
20c9b272
import
AppIndexViewLayout
from
'./app-index-view-layout'
;
import
DEGridView
from
'./view-layout-model-repository/view-layout-model-repository-de-grid-view-layout'
;
import
DECalendarView
from
'./view-layout-model-repository/view-layout-model-repository-de-calendar-view-layout'
;
import
DEDataView
from
'./view-layout-model-repository/view-layout-model-repository-de-data-view-layout'
;
import
DEEditView
from
'./view-layout-model-repository/view-layout-model-repository-de-edit-view-layout'
;
import
DEGridView
from
'./view-layout-model-repository/view-layout-model-repository-de-grid-view-layout'
;
import
DEListView
from
'./view-layout-model-repository/view-layout-model-repository-de-list-view-layout'
;
import
DEDataView
from
'./view-layout-model-repository/view-layout-model-repository-de-data-view-layout'
;
import
DEOptView
from
'./view-layout-model-repository/view-layout-model-repository-de-option-view-layout'
;
import
DEPickupGirdView
from
'./view-layout-model-repository/view-layout-model-repository-de-pickup-grid-view-layout'
;
import
DEPickupView
from
'./view-layout-model-repository/view-layout-model-repository-de-pickup-view-layout'
;
/**
* 安装视图默认布局
...
...
@@ -15,9 +18,12 @@ import DEOptView from './view-layout-model-repository/view-layout-model-reposito
*/
export
function
install
(
callBack
:
(
key
:
string
,
model
:
any
)
=>
void
):
void
{
callBack
(
'APPINDEXVIEW_DEFAULT'
,
AppIndexViewLayout
);
callBack
(
'DEGRIDVIEW_DEFAULT'
,
DEGridView
);
callBack
(
'DECALENDARVIEW_DEFAULT'
,
DECalendarView
);
callBack
(
'DEDATAVIEW_DEFAULT'
,
DEDataView
);
callBack
(
'DEEDITVIEW_DEFAULT'
,
DEEditView
);
callBack
(
'DEGRIDVIEW_DEFAULT'
,
DEGridView
);
callBack
(
'DELISTVIEW_DEFAULT'
,
DEListView
);
callBack
(
'DEDATAVIEW_DEFAULT'
,
DEDataView
);
callBack
(
'DEOPTVIEW_DEFAULT'
,
DEOptView
);
callBack
(
'DEPICKUPGRIDVIEW_DEFAULT'
,
DEPickupGirdView
);
callBack
(
'DEPICKUPVIEW_DEFAULT'
,
DEPickupView
);
}
\ No newline at end of file
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-calendar-view-layout.ts
0 → 100644
浏览文件 @
20c9b272
export
default
{
"layoutMode"
:
"FLEX"
,
"rootPanelItems"
:
[
{
"panelItems"
:
[
{
"panelItems"
:
[
{
"caption"
:
"页面标题"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"captionbar"
}
],
"layout"
:
{
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"id"
:
"page_header_left"
}
],
"layout"
:
{
"dir"
:
"row"
,
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"contentHeight"
:
54
,
"height"
:
54
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"height"
:
54
,
"heightMode"
:
"PX"
,
"layout"
:
"FLEX"
},
"id"
:
"page_header"
},
{
"panelItems"
:
[
{
"caption"
:
"日历"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"calendar"
}
],
"layout"
:
{
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"grow"
:
1
,
"layout"
:
"FLEX"
},
"id"
:
"container2"
}
],
"layoutPanel"
:
true
,
"codeName"
:
"DECalendarViewLayout"
,
"controlType"
:
"VIEWLAYOUTPANEL"
,
"logicName"
:
"日历视图布局面板"
,
"appDataEntityId"
:
"web.viewlayoutmodelrepository"
,
"controlParam"
:
{},
"name"
:
"layoutpanel"
,
"id"
:
"decalendarviewlayout"
}
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-data-view-layout.ts
浏览文件 @
20c9b272
export
default
{
"layoutMode"
:
"
TABLE_24COL
"
,
"layoutMode"
:
"
FLEX
"
,
"rootPanelItems"
:
[
{
"panelItems"
:
[
...
...
@@ -75,8 +75,7 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
"layout"
:
"FLEX"
},
"id"
:
"page_header"
},
...
...
@@ -101,8 +100,7 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
"layout"
:
"FLEX"
},
"id"
:
"page_search_content"
},
...
...
@@ -127,8 +125,8 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"
colMD"
:
24
,
"layout"
:
"
TABLE_24COL
"
"
grow"
:
1
,
"layout"
:
"
FLEX
"
},
"id"
:
"page_content"
}
...
...
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-edit-view-layout.ts
浏览文件 @
20c9b272
export
default
{
"layoutMode"
:
"
TABLE_24COL
"
,
"layoutMode"
:
"
FLEX
"
,
"rootPanelItems"
:
[
{
"panelItems"
:
[
...
...
@@ -67,10 +67,9 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"colMD"
:
24
,
"height"
:
54
,
"heightMode"
:
"PX"
,
"layout"
:
"
TABLE_24COL
"
"layout"
:
"
FLEX
"
},
"id"
:
"page_header"
},
...
...
@@ -95,8 +94,8 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"
colMD"
:
24
,
"layout"
:
"
TABLE_24COL
"
"
grow"
:
1
,
"layout"
:
"
FLEX
"
},
"id"
:
"page_content"
}
...
...
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-list-view-layout.ts
浏览文件 @
20c9b272
export
default
{
"layoutMode"
:
"
TABLE_24COL
"
,
"layoutMode"
:
"
FLEX
"
,
"rootPanelItems"
:
[
{
"panelItems"
:
[
...
...
@@ -77,10 +77,9 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"colMD"
:
24
,
"height"
:
54
,
"heightMode"
:
"PX"
,
"layout"
:
"
TABLE_24COL
"
"layout"
:
"
FLEX
"
},
"id"
:
"page_header"
},
...
...
@@ -105,8 +104,7 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
"layout"
:
"FLEX"
},
"id"
:
"page_search_content"
},
...
...
@@ -131,8 +129,8 @@ export default {
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"
colMD"
:
24
,
"layout"
:
"
TABLE_24COL
"
"
grow"
:
1
,
"layout"
:
"
FLEX
"
},
"id"
:
"page_content"
}
...
...
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-pickup-grid-view-layout.ts
0 → 100644
浏览文件 @
20c9b272
export
default
{
"layoutMode"
:
"FLEX"
,
"rootPanelItems"
:
[
{
"caption"
:
"表格"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"layoutPos"
:
{
"grow"
:
1
,
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"grid"
}
],
"layoutPanel"
:
true
,
"codeName"
:
"PickupGridViewLayout"
,
"controlType"
:
"VIEWLAYOUTPANEL"
,
"logicName"
:
"实体选择表格视图布局面板"
,
"appDataEntityId"
:
"web.viewlayoutmodelrepository"
,
"controlParam"
:
{},
"name"
:
"layoutpanel"
,
"id"
:
"pickupgridviewlayout"
}
plugins/view-layout-panel-dsl/src/view-layout-model-repository/view-layout-model-repository-de-pickup-view-layout.ts
0 → 100644
浏览文件 @
20c9b272
export
default
{
"layoutMode"
:
"FLEX"
,
"rootPanelItems"
:
[
{
"panelItems"
:
[
{
"caption"
:
"控件占位"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"pickupviewpanel"
}
],
"layout"
:
{
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"grow"
:
1
,
"layout"
:
"FLEX"
},
"id"
:
"page_content"
},
{
"panelItems"
:
[
{
"actionType"
:
"UIACTION"
,
"uiactionId"
:
"panel_pickupviewlayout_ok_click@viewlayoutmodelrepository"
,
"tooltip"
:
"确认"
,
"uiactionTarget"
:
"NONE"
,
"caption"
:
"确认"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"BUTTON"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"ok"
},
{
"actionType"
:
"UIACTION"
,
"uiactionId"
:
"panel_pickupviewlayout_cancel_click@viewlayoutmodelrepository"
,
"tooltip"
:
"取消"
,
"uiactionTarget"
:
"NONE"
,
"caption"
:
"取消"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"BUTTON"
,
"layoutPos"
:
{
"layout"
:
"FLEX"
},
"showCaption"
:
true
,
"id"
:
"cancel"
}
],
"layout"
:
{
"dir"
:
"row-reverse"
,
"layout"
:
"FLEX"
},
"dataRegionType"
:
"INHERIT"
,
"caption"
:
"容器"
,
"contentHeight"
:
54
,
"height"
:
54
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"layoutPos"
:
{
"height"
:
54
,
"heightMode"
:
"PX"
,
"layout"
:
"FLEX"
},
"id"
:
"page_bottom"
}
],
"layoutPanel"
:
true
,
"codeName"
:
"PickupViewLayout"
,
"controlType"
:
"VIEWLAYOUTPANEL"
,
"logicName"
:
"选择视图布局面板布局面板"
,
"appDataEntityId"
:
"web.viewlayoutmodelrepository"
,
"controlParam"
:
{},
"name"
:
"layoutpanel"
,
"id"
:
"pickupviewlayout"
}
plugins/view-layout-panel-dsl/template/index.ts.hbs
浏览文件 @
20c9b272
import AppIndexViewLayout from './app-index-view-layout';
import DEGridView from './view-layout-model-repository/view-layout-model-repository-de-grid-view-layout';
import DECalendarView from './view-layout-model-repository/view-layout-model-repository-de-calendar-view-layout';
import DEDataView from './view-layout-model-repository/view-layout-model-repository-de-data-view-layout';
import DEEditView from './view-layout-model-repository/view-layout-model-repository-de-edit-view-layout';
import DEGridView from './view-layout-model-repository/view-layout-model-repository-de-grid-view-layout';
import DEListView from './view-layout-model-repository/view-layout-model-repository-de-list-view-layout';
import DEDataView from './view-layout-model-repository/view-layout-model-repository-de-data-view-layout';
import DEOptView from './view-layout-model-repository/view-layout-model-repository-de-option-view-layout';
import DEPickupGirdView from './view-layout-model-repository/view-layout-model-repository-de-pickup-grid-view-layout';
import DEPickupView from './view-layout-model-repository/view-layout-model-repository-de-pickup-view-layout';
/**
* 安装视图默认布局
...
...
@@ -15,9 +18,12 @@ import DEOptView from './view-layout-model-repository/view-layout-model-reposito
*/
export function install(callBack: (key: string, model: any) => void): void {
callBack('APPINDEXVIEW_DEFAULT', AppIndexViewLayout);
callBack('DEGRIDVIEW_DEFAULT', DEGridView);
callBack('DECALENDARVIEW_DEFAULT', DECalendarView);
callBack('DEDATAVIEW_DEFAULT', DEDataView);
callBack('DEEDITVIEW_DEFAULT', DEEditView);
callBack('DEGRIDVIEW_DEFAULT', DEGridView);
callBack('DELISTVIEW_DEFAULT', DEListView);
callBack('DEDATAVIEW_DEFAULT', DEDataView);
callBack('DEOPTVIEW_DEFAULT', DEOptView);
callBack('DEPICKUPGRIDVIEW_DEFAULT', DEPickupGirdView);
callBack('DEPICKUPVIEW_DEFAULT', DEPickupView);
}
\ No newline at end of file
plugins/view-layout-panel-dsl/template/{{appEntities}}/{{pages@DECALENDARVIEW}}.ts.hbs
0 → 100644
浏览文件 @
20c9b272
{{#
eq
page
.
codeName
'ViewLayoutModelRepositoryDECalendarViewLayout'
}}
export default
{{
jsonStringify
pageDSL
.
viewLayoutPanel
2
}}
{{/
eq
}}
plugins/view-layout-panel-dsl/template/{{appEntities}}/{{pages@DEPICKUPGRIDVIEW}}.ts.hbs
0 → 100644
浏览文件 @
20c9b272
{{#
eq
page
.
codeName
'ViewLayoutModelRepositoryDEPickupGridViewLayout'
}}
export default
{{
jsonStringify
pageDSL
.
viewLayoutPanel
2
}}
{{/
eq
}}
plugins/view-layout-panel-dsl/template/{{appEntities}}/{{pages@DEPICKUPVIEW}}.ts.hbs
0 → 100644
浏览文件 @
20c9b272
{{#
eq
page
.
codeName
'ViewLayoutModelRepositoryDEPickupViewLayout'
}}
export default
{{
jsonStringify
pageDSL
.
viewLayoutPanel
2
}}
{{/
eq
}}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录