Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
2a5b03cf
提交
2a5b03cf
编写于
11月 01, 2022
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:调整面板模型
上级
5d23a255
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
42 行增加
和
100 行删除
+42
-100
index.ts
src/model/panel-detail/index.ts
+2
-1
panel-button.ts
src/model/panel-detail/panel-button.ts
+0
-28
panel-container.ts
src/model/panel-detail/panel-container.ts
+15
-1
panel-ctrlpos.ts
src/model/panel-detail/panel-ctrlpos.ts
+16
-0
panel-detail.ts
src/model/panel-detail/panel-detail.ts
+2
-70
panel-tab-page.ts
src/model/panel-detail/panel-tab-page.ts
+7
-0
未找到文件。
src/model/panel-detail/index.ts
浏览文件 @
2a5b03cf
...
...
@@ -6,4 +6,5 @@ export { PanelFieldModel } from './panel-field';
export
{
PanelContainerModel
}
from
'./panel-container'
;
export
{
PanelControlModel
}
from
'./panel-control'
;
export
{
PanelUserControlModel
}
from
'./panel-user-control'
;
export
{
PanelButtonModel
}
from
'./panel-button'
;
\ No newline at end of file
export
{
PanelButtonModel
}
from
'./panel-button'
;
export
{
PanelCtrlPosModel
}
from
'./panel-ctrlpos'
;
\ No newline at end of file
src/model/panel-detail/panel-button.ts
浏览文件 @
2a5b03cf
...
...
@@ -11,18 +11,9 @@ export class PanelButtonModel extends PanelDetailModel {
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
$disabled
=
opts
.
disabled
;
this
.
uiaction
=
opts
.
uiaction
;
}
/**
* 是否禁用
*
* @type {boolean}
* @memberof PanelButtonModel
*/
private
$disabled
:
boolean
=
false
;
/**
* 按钮对应的界面行为
*
...
...
@@ -31,26 +22,7 @@ export class PanelButtonModel extends PanelDetailModel {
*/
public
uiaction
:
any
;
/**
* 是否启用
*
* @type {boolean}
* @memberof PanelButtonModel
*/
public
get
disabled
():
boolean
{
return
this
.
$disabled
;
}
/**
* 设置是否启用
*
* @memberof PanelButtonModel
*/
public
set
disabled
(
val
:
boolean
)
{
if
(
this
.
isPower
)
{
this
.
$disabled
=
val
;
}
}
}
\ No newline at end of file
src/model/panel-detail/panel-container.ts
浏览文件 @
2a5b03cf
...
...
@@ -9,8 +9,22 @@ import { PanelDetailModel } from './panel-detail';
*/
export
class
PanelContainerModel
extends
PanelDetailModel
{
/**
* 子项
*
* @type {string[]}
* @memberof PanelContainerModel
*/
public
details
:
string
[]
=
[];
constructor
(
opts
:
any
=
{})
{
/**
* Creates an instance of PanelContainerModel.
* @param {*} [opts={}]
* @memberof PanelContainerModel
*/
public
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
src/model/panel-detail/panel-ctrlpos.ts
0 → 100644
浏览文件 @
2a5b03cf
import
{
PanelDetailModel
}
from
"./panel-detail"
;
/**
* 部件占位模型
*
* @export
* @class PanelCtrlPosModel
* @extends {PanelDetailModel}
*/
export
class
PanelCtrlPosModel
extends
PanelDetailModel
{
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
src/model/panel-detail/panel-detail.ts
浏览文件 @
2a5b03cf
...
...
@@ -6,14 +6,6 @@
*/
export
class
PanelDetailModel
{
/**
* 是否有权限
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public
isPower
:
boolean
=
true
;
/**
* 成员标题
*
...
...
@@ -52,24 +44,8 @@ export class PanelDetailModel {
* @type {boolean}
* @memberof PanelDetailModel
*/
public
$
visible
:
boolean
=
true
;
public
visible
:
boolean
=
true
;
/**
* 成员是否显示(旧)
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public
oldVisible
:
boolean
=
true
;
/**
* 成员是否显示标题
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public
isShowCaption
:
boolean
=
true
;
/**
* Creates an instance of PanelDetailModel.
...
...
@@ -83,51 +59,7 @@ export class PanelDetailModel {
this
.
itemType
=
!
Object
.
is
(
opts
.
itemType
,
''
)
?
opts
.
itemType
:
''
;
this
.
panel
=
opts
.
panel
?
opts
.
panel
:
{};
this
.
name
=
!
Object
.
is
(
opts
.
name
,
''
)
?
opts
.
name
:
''
;
this
.
$visible
=
opts
.
visible
?
true
:
false
;
this
.
oldVisible
=
opts
.
visible
?
true
:
false
;
this
.
isShowCaption
=
opts
.
isShowCaption
?
true
:
false
;
this
.
visible
=
opts
.
visible
?
true
:
false
;
}
/**
* 设置成员是否隐藏
*
* @memberof PanelDetailModel
*/
public
set
visible
(
val
:
boolean
)
{
if
(
this
.
isPower
)
{
this
.
$visible
=
val
;
}
}
/**
* 获取成员是否隐藏
*
* @memberof PanelDetailModel
*/
public
get
visible
()
{
return
this
.
$visible
;
}
/**
* 设置显示与隐藏
*
* @param {boolean} state
* @memberof PanelDetailModel
*/
public
setVisible
(
state
:
boolean
):
void
{
if
(
this
.
isPower
)
{
this
.
visible
=
state
;
}
}
/**
* 设置显示标题栏
*
* @param {boolean} state
* @memberof PanelDetailModel
*/
public
setShowCaption
(
state
:
boolean
):
void
{
this
.
isShowCaption
=
state
;
}
}
\ No newline at end of file
src/model/panel-detail/panel-tab-page.ts
浏览文件 @
2a5b03cf
...
...
@@ -10,6 +10,13 @@ import { PanelTabPanelModel } from './panel-tab-panel';
*/
export
class
PanelTabPageModel
extends
PanelDetailModel
{
/**
* 子项
*
* @type {string[]}
* @memberof PanelTabPageModel
*/
public
details
:
string
[]
=
[];
/**
* Creates an instance of PanelTabPageModel.
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录