Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
dc15f466
提交
dc15f466
编写于
1月 05, 2022
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
a051b91e
变更
31
隐藏空白字符变更
内嵌
并排
正在显示
31 个修改的文件
包含
111 行增加
和
121 行删除
+111
-121
auto-complete.hbs
...c/main/resources/templ/r7/@macro/editor/auto-complete.hbs
+2
-2
checkbox-list.hbs
...c/main/resources/templ/r7/@macro/editor/checkbox-list.hbs
+2
-2
data-picker-view.hbs
...ain/resources/templ/r7/@macro/editor/data-picker-view.hbs
+2
-2
data-picker.hbs
...src/main/resources/templ/r7/@macro/editor/data-picker.hbs
+2
-2
dropdown-list.hbs
...c/main/resources/templ/r7/@macro/editor/dropdown-list.hbs
+2
-2
radio-group.hbs
...src/main/resources/templ/r7/@macro/editor/radio-group.hbs
+2
-2
raw.hbs
...or-core/src/main/resources/templ/r7/@macro/editor/raw.hbs
+1
-3
span.hbs
...r-core/src/main/resources/templ/r7/@macro/editor/span.hbs
+2
-2
form-druipart.hbs
...n/resources/templ/r7/@macro/form-detail/form-druipart.hbs
+1
-0
form-formpart.hbs
...n/resources/templ/r7/@macro/form-detail/form-formpart.hbs
+1
-0
form-group-panel.hbs
...esources/templ/r7/@macro/form-detail/form-group-panel.hbs
+0
-0
form-iframe.hbs
...ain/resources/templ/r7/@macro/form-detail/form-iframe.hbs
+3
-0
form-page.hbs
.../main/resources/templ/r7/@macro/form-detail/form-page.hbs
+1
-2
form-rawitem.hbs
...in/resources/templ/r7/@macro/form-detail/form-rawitem.hbs
+7
-0
form-tabpage.hbs
...in/resources/templ/r7/@macro/form-detail/form-tabpage.hbs
+15
-0
include-form.hbs
...in/resources/templ/r7/@macro/form-detail/include-form.hbs
+6
-1
IbizAutoComplete.vue
.../app_{{apps}}/src/components/editors/IbizAutoComplete.vue
+3
-3
IbizCheckboxList.vue
.../app_{{apps}}/src/components/editors/IbizCheckboxList.vue
+4
-3
IbizDataPicker.vue
...r7/app_{{apps}}/src/components/editors/IbizDataPicker.vue
+9
-9
IbizDataPickerView.vue
...pp_{{apps}}/src/components/editors/IbizDataPickerView.vue
+9
-9
IbizDropdownList.vue
.../app_{{apps}}/src/components/editors/IbizDropdownList.vue
+3
-3
IbizRadioGroup.vue
...r7/app_{{apps}}/src/components/editors/IbizRadioGroup.vue
+4
-3
IbizRaw.vue
.../templ/r7/app_{{apps}}/src/components/editors/IbizRaw.vue
+11
-52
IbizSpan.vue
...templ/r7/app_{{apps}}/src/components/editors/IbizSpan.vue
+3
-3
{{pages@APPINDEXVIEW}}.vue.hbs
...s}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}.vue.hbs
+2
-2
{{pages@DEEDITVIEW}}.vue.hbs
...dules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
+3
-3
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+3
-3
{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
...ges@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
+3
-3
{{pages@DEPICKUPVIEW}}.vue.hbs
...s}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
+3
-3
{{ctrls@FORM}}-form.vue.hbs
...ntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
+1
-1
{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
...ewpanel/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
+1
-1
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/auto-complete.hbs
浏览文件 @
dc15f466
...
...
@@ -7,8 +7,8 @@
{{#if
item
.
psEditor
.
placeHolder
}}
placeholder=
"
{{
item
.
psEditor
.
placeHolder
}}
"
{{/if}}
:context
Prop
=
"state.context"
:viewParams
Prop
=
"state.viewParams"
:context=
"state.context"
:viewParams=
"state.viewParams"
{{#if
item
.
psEditor
.
psNavigateContexts
}}
localContext=
"
{{
item
.
psEditor
.
psNavigateContexts
}}
"
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/checkbox-list.hbs
浏览文件 @
dc15f466
...
...
@@ -18,8 +18,8 @@
{{#if
item
.
psEditor
.
psNavigateParams
}}
localParam=
"
{{
item
.
psEditor
.
psNavigateParams
}}
"
{{/if}}
:context
Prop
=
"state.context"
:viewParams
Prop
=
"state.viewParams"
:context=
"state.context"
:viewParams=
"state.viewParams"
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"handleEditorEvent"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/data-picker-view.hbs
浏览文件 @
dc15f466
...
...
@@ -16,8 +16,8 @@
{{#if
item
.
psEditor
.
psNavigateParams
}}
localParam=
"
{{
item
.
psEditor
.
psNavigateParams
}}
"
{{/if}}
:context
Prop
=
"state.context"
:viewParams
Prop
=
"state.viewParams"
:context=
"state.context"
:viewParams=
"state.viewParams"
{{#if
item
.
psEditor
.
psAppDEACMode
.
minorSortDir
}}
sort=
"
{{
item
.
psEditor
.
psAppDEACMode
.
minorSortDir
}}
"
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/data-picker.hbs
浏览文件 @
dc15f466
...
...
@@ -16,8 +16,8 @@
{{#if
item
.
psEditor
.
psNavigateParams
}}
localParam=
"
{{
item
.
psEditor
.
psNavigateParams
}}
"
{{/if}}
:context
Prop
=
"state.context"
:viewParams
Prop
=
"state.viewParams"
:context=
"state.context"
:viewParams=
"state.viewParams"
{{#if
item
.
psEditor
.
psAppDataEntity
}}
{{!-- {{#each item.psEditor.psAppDataEntity as | filed |}} --}}
{{!-- {{#if filed.majorField}} --}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/dropdown-list.hbs
浏览文件 @
dc15f466
...
...
@@ -24,8 +24,8 @@
{{#
eq
item
.
psEditor
.
editorType
"MDROPDOWNLIST"
}}
:multiple=
"true"
{{/
eq
}}
:context
Prop
=
"state.context"
:viewParams
Prop
=
"state.viewParams"
:context=
"state.context"
:viewParams=
"state.viewParams"
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"handleEditorEvent"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/radio-group.hbs
浏览文件 @
dc15f466
...
...
@@ -18,8 +18,8 @@
{{#if
item
.
psEditor
.
psNavigateParams
}}
localParam=
"
{{
item
.
psEditor
.
psNavigateParams
}}
"
{{/if}}
:context
Prop
=
"state.context"
:viewParams
Prop
=
"state.viewParams"
:context=
"state.context"
:viewParams=
"state.viewParams"
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"handleEditorEvent"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/raw.hbs
浏览文件 @
dc15f466
...
...
@@ -5,13 +5,11 @@
:contentType=
"
{{
item
.
psEditor
.
editorParams
.
contentType
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
icon
}}
icon=
"
{{
item
.
psEditor
.
editorParams
.
icon
}}
"
icon
Class
=
"
{{
item
.
psEditor
.
editorParams
.
icon
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
caption
}}
caption=
"
{{
item
.
psEditor
.
editorParams
.
caption
}}
"
{{/if}}
:contextProp=
"state.context"
:viewParamsProp=
"state.viewParams"
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"handleEditorEvent"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/editor/span.hbs
浏览文件 @
dc15f466
...
...
@@ -28,5 +28,5 @@
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
{{/
eq
}}
:context
Prop
=
"state.context"
:viewParams
Prop
=
"state.viewParams"
/>
:context=
"state.context"
:viewParams=
"state.viewParams"
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-druipart.hbs
0 → 100644
浏览文件 @
dc15f466
关系界面未实现
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-formpart.hbs
0 → 100644
浏览文件 @
dc15f466
表单部件未实现
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-group.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-group
-panel
.hbs
浏览文件 @
dc15f466
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-iframe.hbs
0 → 100644
浏览文件 @
dc15f466
<div
class=
"ibiz-form-iframe"
style=
"
{{#if
item
.
contentHeight
}}
height:
{{
item
.
contentHeight
}}
px;
{{/if}}{{#if
item
.
contentWidth
}}
width:
{{
item
.
contentWidth
}}
px
{{/if}}
"
>
<iframe
src=
"
{{
item
.
iFrameUrl
}}
"
style=
"height: 100%;width: 100%;border: 0"
></iframe>
</div>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-page.hbs
浏览文件 @
dc15f466
<a-tab-pane
key=
"
{{
item
.
codeName
}}
"
tab=
"
{{
item
.
caption
}}
"
>
{{#
eq
item
.
psLayout
.
layout
"FLEX"
}}
<div
class=
"app-form-layout-flex"
style=
"
{{#if
item
.
psLayout
.
dir
}}
flex-direction:
{{
item
.
psLayout
.
dir
}}
;
{{/if}}{{#if
item
.
psLayout
.
align
}}
justify-content:
{{
item
.
psLayout
.
align
}}
;
{{/if}}{{#if
item
.
psLayout
.
vAlign
}}
align-items:
{{
item
.
psLayout
.
vAlign
}}
;
{{/if}}
"
>
...
...
@@ -13,4 +12,4 @@
{{/
each
}}
</a-row>
{{/
eq
}}
</a-tab-pane>
\ No newline at end of file
</a-tab-pane>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-rawitem.hbs
0 → 100644
浏览文件 @
dc15f466
<IbizRaw
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
{{/if}}
{{#if
item
.
psSysImage
}}{{#if
item
.
psSysImage
.
cssClass
}}
iconClass=
"
{{
item
.
psSysImage
.
cssClass
}}
"
{{/if}}{{#if
item
.
psSysImage
.
imagePath
}}
imgPath=
"
{{
item
.
psSysImage
.
imagePath
}}
"
{{/if}}{{/if}}
contentType=
"
{{
item
.
contentType
}}
"
style=
"
{{#if
item
.
rawItemHeight
}}
height:
{{
item
.
rawItemHeight
}}
px;
{{/if}}{{#if
item
.
rawItemWidth
}}
width:
{{
item
.
rawItemWidth
}}
px
{{/if}}
"
{{#if
(
eq
item
.
contentType
'RAW'
)
}}
value=
"
{{
item
.
rawContent
}}
"
{{else
if
(
eq
item
.
contentType
'HTML'
)
}}
:value=
"`
{{
item
.
htmlContent
}}
`"
{{/if}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/form-tabpage.hbs
0 → 100644
浏览文件 @
dc15f466
<a-tab-pane
key=
"
{{
item
.
codeName
}}
"
tab=
"
{{
item
.
caption
}}
"
>
{{#
eq
item
.
psLayout
.
layout
"FLEX"
}}
<div
class=
"app-form-layout-flex"
style=
"
{{#if
item
.
psLayout
.
dir
}}
flex-direction:
{{
item
.
psLayout
.
dir
}}
;
{{/if}}{{#if
item
.
psLayout
.
align
}}
justify-content:
{{
item
.
psLayout
.
align
}}
;
{{/if}}{{#if
item
.
psLayout
.
vAlign
}}
align-items:
{{
item
.
psLayout
.
vAlign
}}
;
{{/if}}
"
>
{{#
each
item
.
psDEFormDetails
as
|
formDetail
|
}}
{{>
(
lookup
.
'formDetail.detailType'
)
item
=
formDetail
}}
{{/
each
}}
</div>
{{else}}
<a-row>
{{#
each
item
.
psDEFormDetails
as
|
formDetail
|
}}
{{>
(
lookup
.
'formDetail.detailType'
)
item
=
formDetail
}}
{{/
each
}}
</a-row>
{{/
eq
}}
</a-tab-pane>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/form-detail/include-form.hbs
浏览文件 @
dc15f466
{{#
*
inline
"FORMPAGE"
}}{{>
@macro
/
form-detail
/
form-page
.
hbs
}}{{/
inline
}}
{{#
*
inline
"GROUPPANEL"
}}{{>
@macro
/
form-detail
/
form-group
.
hbs
}}{{/
inline
}}
{{#
*
inline
"GROUPPANEL"
}}{{>
@macro
/
form-detail
/
form-group
-panel
.
hbs
}}{{/
inline
}}
{{#
*
inline
"FORMITEM"
}}{{>
@macro
/
form-detail
/
form-item
.
hbs
}}{{/
inline
}}
{{#
*
inline
"TABPANEL"
}}{{>
@macro
/
form-detail
/
form-tabpanel
.
hbs
}}{{/
inline
}}
{{#
*
inline
"BUTTON"
}}{{>
@macro
/
form-detail
/
form-button
.
hbs
}}{{/
inline
}}
{{#
*
inline
"RAWITEM"
}}{{>
@macro
/
form-detail
/
form-rawitem
.
hbs
}}{{/
inline
}}
{{#
*
inline
"IFRAME"
}}{{>
@macro
/
form-detail
/
form-iframe
.
hbs
}}{{/
inline
}}
{{#
*
inline
"FORMPART"
}}{{>
@macro
/
form-detail
/
form-formpart
.
hbs
}}{{/
inline
}}
{{#
*
inline
"TABPAGE"
}}{{>
@macro
/
form-detail
/
form-tabpage
.
hbs
}}{{/
inline
}}
{{#
*
inline
"DRUIPART"
}}{{>
@macro
/
form-detail
/
form-druipart
.
hbs
}}{{/
inline
}}
{{#
*
inline
"FORMDETAILSMODEL"
}}{{>
@macro
/
form-detail
/
form-details-model
.
hbs
}}{{/
inline
}}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizAutoComplete.vue
浏览文件 @
dc15f466
<
script
setup
lang=
"ts"
>
import
{
onBeforeMount
,
Ref
,
ref
}
from
"vue"
;
import
{
SearchOutlined
}
from
'@ant-design/icons-vue'
;
import
{
deepCopy
,
IParam
,
IActionParam
,
EditorBase
}
from
"@ibiz-core"
;
import
{
deepCopy
,
IParam
,
IActionParam
,
EditorBase
,
IContext
}
from
"@ibiz-core"
;
interface
AutoCompleteProps
{
/**
* @description 表单数据或表格行数据
...
...
@@ -25,12 +25,12 @@ interface AutoCompleteProps {
/**
* @description 上下文
*/
context
Prop
?:
IParam
;
context
?:
IContext
;
/**
* @description 视图参数
*/
viewParams
Prop
?:
IParam
;
viewParams
?:
IParam
;
/**
* @description 局部上下文
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizCheckboxList.vue
浏览文件 @
dc15f466
...
...
@@ -2,7 +2,8 @@
import
{
EditorBase
,
IActionParam
,
IParam
IParam
,
IContext
}
from
"@ibiz-core"
;
import
{
computed
,
onBeforeMount
,
ref
,
Ref
}
from
"vue"
;
interface
CheckboxListProps
{
...
...
@@ -76,7 +77,7 @@ interface CheckboxListProps {
* @type {*}
* @memberof AppCheckBox
*/
context
Prop
:
IParam
;
context
:
IContext
;
/**
* 视图参数
...
...
@@ -84,7 +85,7 @@ interface CheckboxListProps {
* @type {*}
* @memberof AppCheckBox
*/
viewParams
Prop
:
IParam
;
viewParams
:
IParam
;
/**
* 局部上下文导航参数
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizDataPicker.vue
浏览文件 @
dc15f466
<
script
setup
lang=
"ts"
>
import
{
onBeforeMount
,
Ref
,
ref
}
from
'vue'
;
import
{
SearchOutlined
,
ExportOutlined
}
from
'@ant-design/icons-vue'
;
import
{
deepCopy
,
IParam
,
IActionParam
,
EditorBase
}
from
'@ibiz-core'
;
import
{
deepCopy
,
IParam
,
IActionParam
,
EditorBase
,
IContext
}
from
'@ibiz-core'
;
interface
DataPickerProps
{
/**
* @description 编辑器名称
...
...
@@ -31,27 +31,27 @@ interface DataPickerProps {
/**
* @description 表单数据或表格行数据
*/
data
?:
any
;
data
?:
IParam
;
/**
* @description 上下文
*/
context
Prop
?:
any
;
context
?:
IContext
;
/**
* @description 视图参数
*/
viewParams
Prop
?:
any
;
viewParams
?:
IParam
;
/**
* @description 局部上下文
*/
localContext
?:
any
;
localContext
?:
IParam
;
/**
* @description 局部视图参数
*/
localParam
?:
any
;
localParam
?:
IParam
;
/**
* @description 主信息属性
...
...
@@ -66,17 +66,17 @@ interface DataPickerProps {
/**
* @description 选择视图
*/
pickUpView
?:
any
;
pickUpView
?:
IParam
;
/**
* @description 链接视图
*/
linkView
?:
any
;
linkView
?:
IParam
;
/**
* @description ac参数
*/
acParams
?:
any
;
acParams
?:
IParam
;
/**
* @description 排序
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizDataPickerView.vue
浏览文件 @
dc15f466
<
script
setup
lang=
"ts"
>
import
{
onBeforeMount
,
Ref
,
ref
}
from
'vue'
;
import
{
SearchOutlined
,
ExportOutlined
}
from
'@ant-design/icons-vue'
;
import
{
deepCopy
,
IParam
,
IActionParam
,
EditorBase
}
from
'@ibiz-core'
;
import
{
deepCopy
,
IParam
,
IActionParam
,
EditorBase
,
IContext
}
from
'@ibiz-core'
;
interface
DataPickerViewProps
{
/**
* @description 编辑器名称
...
...
@@ -31,27 +31,27 @@ interface DataPickerViewProps {
/**
* @description 表单数据或表格行数据
*/
data
?:
any
;
data
?:
IParam
;
/**
* @description 上下文
*/
context
Prop
?:
any
;
context
?:
IContext
;
/**
* @description 视图参数
*/
viewParams
Prop
?:
any
;
viewParams
?:
IParam
;
/**
* @description 局部上下文
*/
localContext
?:
any
;
localContext
?:
IParam
;
/**
* @description 局部视图参数
*/
localParam
?:
any
;
localParam
?:
IParam
;
/**
* @description 主信息属性
...
...
@@ -66,17 +66,17 @@ interface DataPickerViewProps {
/**
* @description 选择视图
*/
pickUpView
?:
any
;
pickUpView
?:
IParam
;
/**
* @description 链接视图
*/
linkView
?:
any
;
linkView
?:
IParam
;
/**
* @description ac参数
*/
acParams
?:
any
;
acParams
?:
IParam
;
/**
* @description 排序
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizDropdownList.vue
浏览文件 @
dc15f466
<
script
setup
lang=
"ts"
>
import
{
onBeforeMount
,
Ref
,
ref
}
from
"vue"
;
import
{
IActionParam
,
IParam
,
typeOf
,
EditorBase
}
from
"@ibiz-core"
;
import
{
IActionParam
,
IParam
,
typeOf
,
EditorBase
,
IContext
}
from
"@ibiz-core"
;
interface
DropdownListProps
{
/**
...
...
@@ -31,12 +31,12 @@ interface DropdownListProps {
/**
* @description 上下文
*/
context
Prop
?:
IParam
;
context
?:
IContext
;
/**
* @description 视图参数
*/
viewParams
Prop
?:
IParam
;
viewParams
?:
IParam
;
/**
* @description 局部上下文
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizRadioGroup.vue
浏览文件 @
dc15f466
...
...
@@ -2,7 +2,8 @@
import
{
IActionParam
,
IParam
,
EditorBase
EditorBase
,
IContext
}
from
"@ibiz-core"
;
import
{
onBeforeMount
,
ref
,
Ref
}
from
"vue"
;
interface
RadioGroupProps
{
...
...
@@ -52,7 +53,7 @@ interface RadioGroupProps {
* @type {*}
* @memberof AppCheckBox
*/
context
Prop
:
IParam
;
context
:
IContext
;
/**
* 视图参数
...
...
@@ -60,7 +61,7 @@ interface RadioGroupProps {
* @type {*}
* @memberof AppCheckBox
*/
viewParams
Prop
:
IParam
;
viewParams
:
IParam
;
/**
* 局部上下文导航参数
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizRaw.vue
浏览文件 @
dc15f466
<
script
setup
lang=
"ts"
>
import
{
EditorBase
,
IActionParam
}
from
"@ibiz-core"
;
import
{
onBeforeMount
,
ref
,
Ref
}
from
"vue"
;
import
{
IActionParam
}
from
"@ibiz-core"
;
interface
RawProps
{
/**
* @description 编辑器名称
...
...
@@ -18,28 +17,17 @@ interface RawProps {
contentType
:
"RAW"
|
"HTML"
|
"IMAGE"
|
"MARKDOWN"
;
/**
* @description 上下文
*/
contextProp
?:
any
;
/**
* @description 视图参数
* @description 输入框类型
*/
viewParamsProp
?:
any
;
iconClass
?:
string
;
/**
* 图标
*
* @type {string}
* @memberof AppRawItem
* @description 输入框类型
*/
i
con
?:
string
;
i
mgPath
?:
string
;
/**
* 标题
*
* @type {string}
* @memberof AppRawItem
* @description 标题
*/
caption
?:
string
;
}
...
...
@@ -52,51 +40,22 @@ const props = withDefaults(defineProps<RawProps>(), {
contentType
:
"RAW"
,
});
const
emit
=
defineEmits
<
EditorEmit
>
();
const
{
handleEditorNavParams
}
=
new
EditorBase
();
const
content
:
Ref
<
string
>
=
ref
(
""
);
const
{
navContext
,
navViewParam
}
=
handleEditorNavParams
(
props
);
const
initContent
=
()
=>
{
const
data
=
navContext
;
if
(
props
.
value
)
{
const
items
=
props
.
value
.
match
(
/
\{
{
(
.+
?)\}
}/g
);
if
(
items
)
{
items
.
forEach
((
item
:
string
)
=>
{
content
.
value
=
props
.
value
.
replace
(
/
\{
{
(
.+
?)\}
}/
,
eval
(
item
.
substring
(
2
,
item
.
length
-
2
))
);
});
}
content
.
value
=
props
.
value
.
replaceAll
(
"<"
,
"<"
);
content
.
value
=
props
.
value
.
replaceAll
(
">"
,
">"
);
content
.
value
=
props
.
value
.
replaceAll
(
"&nbsp;"
,
" "
);
content
.
value
=
props
.
value
.
replaceAll
(
" "
,
" "
);
}
return
content
;
};
onBeforeMount
(()
=>
{
initContent
();
});
</
script
>
<
template
>
<div
:class=
"['
app-editor-container', `app-raw-$
{name
}`]">
<div
:class=
"['
ibiz-raw-item', `ibiz-raw-item--$
{contentType.toLowerCase()
}`]">
<div
class=
"raw-caption"
v-if=
"caption"
>
\
{{
caption
}}
</div>
<div
v-if=
"Object.is(contentType, 'RAW')"
>
\
{{
content
}}
\
{{
value
}}
</div>
<div
v-else-if=
"Object.is(contentType, 'HTML')"
v-html=
"
content
"
/>
<div
v-else-if=
"Object.is(contentType, 'HTML')"
v-html=
"
value
"
/>
<div
v-else-if=
"Object.is(contentType, 'IMAGE')"
>
<img
v-if=
"value"
:src=
"value"
/>
<a-icon
v-else
:type=
"icon || ''"
/>
<IbizIconText
:iconClass=
"iconClass"
:imgPath=
"imgPath"
/>
</div>
</div>
</
template
>
<
style
scoped
>
.app-editor-container
{
text-align
:
left
;
}
</
style
>
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/IbizSpan.vue
浏览文件 @
dc15f466
<
script
setup
lang=
"ts"
>
import
{
IParam
,
EditorBase
}
from
"@ibiz-core"
;
import
{
IParam
,
EditorBase
,
IContext
}
from
"@ibiz-core"
;
import
{
onBeforeMount
,
ref
,
Ref
}
from
"vue"
;
interface
SpanProps
{
/**
...
...
@@ -71,12 +71,12 @@ interface SpanProps {
/**
* @description 上下文
*/
context
Prop
?:
IParam
;
context
?:
IContext
;
/**
* @description 视图参数
*/
viewParams
Prop
?:
IParam
;
viewParams
?:
IParam
;
/**
* @description 局部上下文
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}.vue.hbs
浏览文件 @
dc15f466
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
import
{
Ref
}
from
'vue'
;
import
{
IndexView
,
IActionParam
,
IParam
}
from
'@ibiz-core'
;
import
{
IndexView
,
IActionParam
,
IParam
,
IContext
}
from
'@ibiz-core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"APPMENU"
}}
...
...
@@ -13,7 +13,7 @@ import {
MenuFoldOutlined
}
from
'@ant-design/icons-vue'
;
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
viewParams
?:
IParam
;
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
viewSubject
?:
Subject
<
IActionParam
>
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
dc15f466
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
EditView
,
IActionParam
,
IParam
}
from
'@ibiz-core'
;
import
{
EditView
,
IActionParam
,
IParam
,
IContext
}
from
'@ibiz-core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"FORM"
}}
...
...
@@ -10,7 +10,7 @@ import { {{codeName}}Form } from '@widgets/{{spinalCase appEntity.codeName}}/{{s
// props声明和默认值处理
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
viewParams
?:
IParam
;
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
viewSubject
?:
Subject
<
IActionParam
>
;
...
...
@@ -29,7 +29,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleToolbarEvent
}
=
new
EditView
(
ViewConfig
).
moduleInstall
(
props
);
const
{
state
,
handleToolbarEvent
}
=
new
EditView
(
ViewConfig
).
moduleInstall
(
props
,
emit
);
</script>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
dc15f466
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
GridView
,
IActionParam
,
IParam
}
from
'@ibiz-core'
;
import
{
GridView
,
IActionParam
,
IParam
,
IContext
}
from
'@ibiz-core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"GRID"
}}
...
...
@@ -10,7 +10,7 @@ import { {{codeName}}Grid } from '@widgets/{{spinalCase appEntity.codeName}}/{{s
// props声明和默认值处理
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
viewParams
?:
IParam
;
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
viewSubject
?:
Subject
<
IActionParam
>
;
...
...
@@ -29,7 +29,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleCtrlEvent
}
=
new
GridView
(
ViewConfig
).
moduleInstall
(
props
);
const
{
state
,
handleCtrlEvent
}
=
new
GridView
(
ViewConfig
).
moduleInstall
(
props
,
emit
);
</script>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
浏览文件 @
dc15f466
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
PickupGridView
,
IActionParam
,
IParam
}
from
'@ibiz-core'
;
import
{
PickupGridView
,
IActionParam
,
IParam
,
IContext
}
from
'@ibiz-core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"GRID"
}}
...
...
@@ -10,7 +10,7 @@ import { {{codeName}}Grid } from '@widgets/{{spinalCase appEntity.codeName}}/{{s
// props声明和默认值处理
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
viewParams
?:
IParam
;
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
viewSubject
?:
Subject
<
IActionParam
>
;
...
...
@@ -29,7 +29,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
}
=
new
PickupGridView
(
ViewConfig
).
moduleInstall
(
props
);
const
{
state
}
=
new
PickupGridView
(
ViewConfig
).
moduleInstall
(
props
,
emit
);
</script>
<template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
浏览文件 @
dc15f466
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
PickupView
,
IActionParam
,
IParam
}
from
'@ibiz-core'
;
import
{
PickupView
,
IActionParam
,
IParam
,
IContext
}
from
'@ibiz-core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config'
;
// props声明和默认值处理
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
viewParams
?:
IParam
;
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
viewSubject
?:
Subject
<
IActionParam
>
;
...
...
@@ -24,7 +24,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
}
=
new
PickupView
(
ViewConfig
).
moduleInstall
(
props
);
const
{
state
}
=
new
PickupView
(
ViewConfig
).
moduleInstall
(
props
,
emit
);
</script>
<template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
浏览文件 @
dc15f466
...
...
@@ -25,7 +25,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleEditorEvent
}
=
new
FormControl
(
CtrlConfig
).
moduleInstall
(
props
);
const
{
state
,
handleEditorEvent
}
=
new
FormControl
(
CtrlConfig
).
moduleInstall
(
props
,
emit
);
</script>
<template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
浏览文件 @
dc15f466
...
...
@@ -31,7 +31,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
inited
,
viewdata
,
viewparam
}
=
new
PickupViewPanelControl
(
CtrlConfig
).
moduleInstall
(
props
);
const
{
state
,
inited
,
viewdata
,
viewparam
}
=
new
PickupViewPanelControl
(
CtrlConfig
).
moduleInstall
(
props
,
emit
);
</script>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录