Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
89af27f3
提交
89af27f3
编写于
12月 31, 2021
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 更新
上级
8a18cc6d
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
98 行增加
和
47 行删除
+98
-47
IbizEditViewLayout.vue
...app_{{apps}}/src/components/layout/IbizEditViewLayout.vue
+2
-12
IbizGridViewLayout.vue
...app_{{apps}}/src/components/layout/IbizGridViewLayout.vue
+30
-0
IbizIndexViewBaseLayout.vue
...{apps}}/src/components/layout/IbizIndexViewBaseLayout.vue
+40
-0
IbizIndexViewLayout.vue
...pp_{{apps}}/src/components/layout/IbizIndexViewLayout.vue
+17
-10
IbizViewBaseLayout.vue
...app_{{apps}}/src/components/layout/IbizViewBaseLayout.vue
+0
-14
{{pages@APPINDEXVIEW}}.vue.hbs
...s}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}.vue.hbs
+4
-4
{{pages@DEEDITVIEW}}.vue.hbs
...dules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
+1
-0
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+4
-4
{{ctrls@FORM}}-form.vue.hbs
...ntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
+0
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/IbizEditViewLayout.vue
浏览文件 @
89af27f3
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
interface
Props
{
viewCaption
?:
string
showHeader
?:
boolean
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
// 设定默认值,可选属性可以在这初始化
showHeader
:
true
,
})
</
script
>
</
script
>
<
template
>
<
template
>
<Ibiz
DefaultView
Layout>
<Ibiz
ViewBase
Layout>
<template
v-slot:header-left
>
<template
v-slot:header-left
>
<slot
name=
"caption"
/>
<slot
name=
"caption"
/>
</
template
>
</
template
>
...
@@ -31,7 +21,7 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -31,7 +21,7 @@ const props = withDefaults(defineProps<Props>(), {
<
template
v-slot:footer-content
>
<
template
v-slot:footer-content
>
<slot
name=
"bottomMessage"
/>
<slot
name=
"bottomMessage"
/>
</
template
>
</
template
>
</Ibiz
DefaultView
Layout>
</Ibiz
ViewBase
Layout>
</template>
</template>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/IbizGridViewLayout.vue
0 → 100644
浏览文件 @
89af27f3
<
script
setup
lang=
"ts"
>
</
script
>
<
template
>
<IbizViewBaseLayout>
<template
v-slot:header-left
>
<slot
name=
"caption"
/>
</
template
>
<
template
v-slot:header-right
>
<slot
name=
"toolbar"
/>
</
template
>
<
template
v-slot:header-bottom
>
<slot
name=
"topMessage"
/>
<slot
name=
"searchForm"
/>
</
template
>
<
template
v-slot:body-top
>
<slot
name=
"bodyMessage"
/>
</
template
>
<slot
/>
<
template
v-slot:footer-content
>
<slot
name=
"bottomMessage"
/>
</
template
>
</IbizViewBaseLayout>
</template>
<
style
lang=
"scss"
>
</
style
>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/IbizIndexViewBaseLayout.vue
0 → 100644
浏览文件 @
89af27f3
<
script
setup
lang=
"ts"
>
</
script
>
<
template
>
<a-layout
class=
"app-index-view"
>
<a-layout-header>
<slot
name=
"header-left"
/>
<slot
name=
"header-content"
/>
<slot
name=
"header-right"
/>
</a-layout-header>
<a-layout>
<slot
name=
"side-left"
/>
<a-layout-content>
<slot
name=
"content"
></slot>
</a-layout-content>
<slot
name=
"side-right"
/>
</a-layout>
<a-layout-footer>
<slot
name=
"footer-left"
/>
<slot
name=
"footer-content"
/>
<slot
name=
"footer-right"
/>
</a-layout-footer>
</a-layout>
</
template
>
<
style
lang=
"scss"
>
.app-index-view
{
width
:
100%
;
height
:
100%
;
.ant-layout-header
{
display
:
flex
;
background-color
:
#fff
;
justify-content
:
space-between
;
}
.ant-layout-sider
{
overflow-y
:
auto
;
}
}
</
style
>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/Ibiz
Default
IndexViewLayout.vue
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/IbizIndexViewLayout.vue
浏览文件 @
89af27f3
...
@@ -17,13 +17,17 @@ const props = withDefaults(defineProps<LayoutProps>(), {
...
@@ -17,13 +17,17 @@ const props = withDefaults(defineProps<LayoutProps>(), {
</
script
>
</
script
>
<
template
>
<
template
>
<a-layout
class=
"app-index-view"
>
<IbizIndexViewBaseLayout
:collapsed=
"collapsed"
>
<a-layout-header>
<template
v-slot:header-left
>
<slot
name=
"header"
></slot>
<slot
name=
"caption"
></slot>
</
template
>
<
template
v-slot:header-content
>
<slot
name=
"menu"
v-if=
"Object.is(menuAlign, 'TOP')"
></slot>
<slot
name=
"menu"
v-if=
"Object.is(menuAlign, 'TOP')"
></slot>
</
template
>
<
template
v-slot:header-right
>
<slot
name=
"user"
></slot>
<slot
name=
"user"
></slot>
</
a-layout-header
>
</
template
>
<
a-layou
t>
<
template
v-slot:side-lef
t
>
<a-layout-sider
<a-layout-sider
v-if=
"Object.is(menuAlign, 'LEFT')"
v-if=
"Object.is(menuAlign, 'LEFT')"
theme=
"light"
theme=
"light"
...
@@ -32,11 +36,11 @@ const props = withDefaults(defineProps<LayoutProps>(), {
...
@@ -32,11 +36,11 @@ const props = withDefaults(defineProps<LayoutProps>(), {
:collapsed=
"collapsed"
>
:collapsed=
"collapsed"
>
<slot
name=
"menu"
></slot>
<slot
name=
"menu"
></slot>
</a-layout-sider>
</a-layout-sider>
<a-layout-content
>
</
template
>
<slot
name=
"content"
></slo
t>
<
template
v-slot:conten
t
>
<
/a-layout-content
>
<
slot
name=
"router"
/
>
</
a-layout
>
</
template
>
</
a-l
ayout>
</
IbizIndexViewBaseL
ayout>
</template>
</template>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
@@ -51,5 +55,8 @@ const props = withDefaults(defineProps<LayoutProps>(), {
...
@@ -51,5 +55,8 @@ const props = withDefaults(defineProps<LayoutProps>(), {
.ant-layout-sider
{
.ant-layout-sider
{
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.ant-layout-footer
{
padding
:
0
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/Ibiz
DefaultView
Layout.vue
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/Ibiz
ViewBase
Layout.vue
浏览文件 @
89af27f3
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
interface
Props
{
viewCaption
?:
string
showHeader
?:
boolean
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
// 设定默认值,可选属性可以在这初始化
showHeader
:
true
,
})
const
slots
=
useSlots
();
const
showHeader
=
computed
(()
=>
props
.
showHeader
&&
(
props
.
viewCaption
||
slots
.
header
||
slots
[
'header-left'
]
||
slots
[
'header-left'
]
||
slots
[
'header-right'
]
||
slots
[
'header-bottom'
]))
</
script
>
</
script
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}.vue.hbs
浏览文件 @
89af27f3
...
@@ -38,8 +38,8 @@ const collapsedChange = () => {
...
@@ -38,8 +38,8 @@ const collapsedChange = () => {
</script>
</script>
<template>
<template>
<Ibiz
Default
IndexViewLayout
class=
"ibiz-index-view"
:menuAlign=
"state.menuAlign"
:collapsed=
"collapsed"
>
<IbizIndexViewLayout
class=
"ibiz-index-view"
:menuAlign=
"state.menuAlign"
:collapsed=
"collapsed"
>
<template
#
header
>
<template
#
caption
>
<div
class=
"index-view-header"
>
<div
class=
"index-view-header"
>
\{{state.viewCaption}}
\{{state.viewCaption}}
<MenuUnfoldOutlined
<MenuUnfoldOutlined
...
@@ -63,10 +63,10 @@ const collapsedChange = () => {
...
@@ -63,10 +63,10 @@ const collapsedChange = () => {
:viewSubject=
"state.viewSubject"
:viewSubject=
"state.viewSubject"
></
{{#
page
.
ctrls
}}{{#
eq
controlType
"APPMENU"
}}{{
codeName
}}
Menu
{{/
eq
}}{{/
page
.
ctrls
}}
>
></
{{#
page
.
ctrls
}}{{#
eq
controlType
"APPMENU"
}}{{
codeName
}}
Menu
{{/
eq
}}{{/
page
.
ctrls
}}
>
</template>
</template>
<template
#
content
>
<template
#
router
>
<router-view
/>
<router-view
/>
</template>
</template>
</Ibiz
Default
IndexViewLayout>
</IbizIndexViewLayout>
</template>
</template>
<style
lang=
"scss"
>
<style
lang=
"scss"
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
89af27f3
...
@@ -71,5 +71,6 @@ const { state, handleToolbarEvent } = new EditView(ViewConfig).moduleInstall(pro
...
@@ -71,5 +71,6 @@ const { state, handleToolbarEvent } = new EditView(ViewConfig).moduleInstall(pro
.ibiz-edit-view
{
.ibiz-edit-view
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
overflow
:
auto
;
}
}
</style>
</style>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
89af27f3
...
@@ -34,13 +34,13 @@ const { state, handleCtrlEvent } = new GridView(ViewConfig).moduleInstall(props)
...
@@ -34,13 +34,13 @@ const { state, handleCtrlEvent } = new GridView(ViewConfig).moduleInstall(props)
</script>
</script>
<template>
<template>
<Ibiz
Default
ViewLayout
class=
"ibiz-grid-view"
>
<Ibiz
Grid
ViewLayout
class=
"ibiz-grid-view"
>
<template
v-slot:
header-left
>
<template
v-slot:
caption
>
<IbizIconText
class=
"ibiz-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
<IbizIconText
class=
"ibiz-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
</template>
</template>
{{#
page
.
ctrls
}}
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TOOLBAR"
}}
{{#
eq
controlType
"TOOLBAR"
}}
<template
v-slot:
header-right
>
<template
v-slot:
toolbar
>
<IbizToolbar
<IbizToolbar
mode=
"button"
mode=
"button"
name=
"
{{
lowerCase
codeName
}}
"
name=
"
{{
lowerCase
codeName
}}
"
...
@@ -61,7 +61,7 @@ const { state, handleCtrlEvent } = new GridView(ViewConfig).moduleInstall(props)
...
@@ -61,7 +61,7 @@ const { state, handleCtrlEvent } = new GridView(ViewConfig).moduleInstall(props)
></
{{
codeName
}}
Grid>
></
{{
codeName
}}
Grid>
{{/
eq
}}
{{/
eq
}}
{{/
page
.
ctrls
}}
{{/
page
.
ctrls
}}
</Ibiz
Default
ViewLayout>
</Ibiz
Grid
ViewLayout>
</template>
</template>
<style
lang=
"scss"
>
<style
lang=
"scss"
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
浏览文件 @
89af27f3
...
@@ -51,7 +51,4 @@ const { state, handleEditorEvent } = new FormControl(CtrlConfig).moduleInstall(p
...
@@ -51,7 +51,4 @@ const { state, handleEditorEvent } = new FormControl(CtrlConfig).moduleInstall(p
</a-form>
</a-form>
</template>
</template>
<style
lang=
"scss"
>
<style
lang=
"scss"
>
.ibiz-form
{
margin
:
20px
!important
;
}
</style>
</style>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录