Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
595ae686
提交
595ae686
编写于
5月 26, 2025
作者:
jlj05024111@163.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新sy-ui基础组件样式,更新编辑类视图样式,更新菜单样式
上级
d8d0158b
变更
8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
56 行增加
和
11 行删除
+56
-11
app-user.tsx
app_Web/src/components/common/app-user/app-user.tsx
+12
-4
ibiz-input.tsx
.../src/components/editor/text-box/ibiz-input/ibiz-input.tsx
+1
-1
view-layout.tsx
app_Web/src/components/layout/view-layout/view-layout.tsx
+20
-4
app-menu.tsx
app_Web/src/components/widgets/app-menu/app-menu.tsx
+6
-0
form-button.tsx
...mponents/widgets/form-control/form-button/form-button.tsx
+3
-0
form-item-container.scss
...form-control/form-item-container/form-item-container.scss
+1
-0
grid-control.util.ts
.../src/components/widgets/grid-control/grid-control.util.ts
+3
-0
grid-field-column.tsx
...gets/grid-control/grid-field-column/grid-field-column.tsx
+10
-2
未找到文件。
app_Web/src/components/common/app-user/app-user.tsx
浏览文件 @
595ae686
...
@@ -50,11 +50,19 @@ export const AppUser = defineComponent({
...
@@ -50,11 +50,19 @@ export const AppUser = defineComponent({
]
}
]
}
>
>
<
span
class=
{
this
.
ns
.
b
(
'avatar-wrapper'
)
}
>
<
span
class=
{
this
.
ns
.
b
(
'avatar-wrapper'
)
}
>
<
i
-
avatar
<
i
-
avatar
size=
'small'
src=
'./assets/img/avatar.png'
/>
size=
'small'
src=
'https://i.loli.net/2017/08/21/599a521472424.jpg'
/>
<
span
class=
{
this
.
ns
.
be
(
'avatar'
,
'name'
)
}
>
{
this
.
srfusername
}
</
span
>
<
span
class=
{
this
.
ns
.
be
(
'avatar'
,
'name'
)
}
>
{
this
.
srfusername
}
</
span
>
<
span
class=
{
[
this
.
ns
.
be
(
'avatar'
,
'arrow'
),
this
.
ns
.
is
(
'hidden'
,
ibiz
.
env
.
disableChangePwd
&&
ibiz
.
env
.
disableLogout
,
),
]
}
>
<
i
-
icon
type=
'ios-arrow-down'
/>
</
span
>
</
span
>
</
span
>
{
ibiz
.
env
.
disableChangePwd
?
null
:
(
{
ibiz
.
env
.
disableChangePwd
?
null
:
(
<
i
-
dropdown
-
menu
slot=
'list'
>
<
i
-
dropdown
-
menu
slot=
'list'
>
...
...
app_Web/src/components/editor/text-box/ibiz-input/ibiz-input.tsx
浏览文件 @
595ae686
...
@@ -227,7 +227,7 @@ export const IBizInput = defineComponent({
...
@@ -227,7 +227,7 @@ export const IBizInput = defineComponent({
props
:
{
props
:
{
...
this
.
c
.
customProps
,
...
this
.
c
.
customProps
,
value
:
this
.
currentVal
,
value
:
this
.
currentVal
,
clearable
:
true
,
clearable
:
!
this
.
disabled
&&
!
this
.
readonly
&&
true
,
placeholder
:
this
.
controller
.
placeHolder
,
placeholder
:
this
.
controller
.
placeHolder
,
type
:
this
.
type
,
type
:
this
.
type
,
rows
:
this
.
rows
,
rows
:
this
.
rows
,
...
...
app_Web/src/components/layout/view-layout/view-layout.tsx
浏览文件 @
595ae686
...
@@ -31,8 +31,17 @@ export const ViewLayout = defineComponent({
...
@@ -31,8 +31,17 @@ export const ViewLayout = defineComponent({
const
isShowHeader
=
computed
(()
=>
{
const
isShowHeader
=
computed
(()
=>
{
return
props
.
modelData
.
source
.
showCaptionBar
||
!!
props
.
modelData
.
toolbar
;
return
props
.
modelData
.
source
.
showCaptionBar
||
!!
props
.
modelData
.
toolbar
;
});
});
// 是否是编辑视图
const
isEditView
=
computed
(()
=>
{
return
(
props
.
modelData
?.
source
?.
viewType
===
'DEEDITVIEW'
||
props
.
modelData
?.
source
?.
viewType
===
'DEEDITVIE2'
||
props
.
modelData
?.
source
?.
viewType
===
'DEEDITVIEW3'
||
props
.
modelData
?.
source
?.
viewType
===
'DEEDITVIEW4'
);
});
return
{
ns
,
isShowHeader
};
return
{
ns
,
isShowHeader
,
isEditView
};
},
},
render
()
{
render
()
{
return
!
this
.
isComplete
?
(
return
!
this
.
isComplete
?
(
...
@@ -67,9 +76,11 @@ export const ViewLayout = defineComponent({
...
@@ -67,9 +76,11 @@ export const ViewLayout = defineComponent({
{
this
.
$scopedSlots
.
quickSearch
&&
{
this
.
$scopedSlots
.
quickSearch
&&
this
.
$scopedSlots
.
quickSearch
({})
}
this
.
$scopedSlots
.
quickSearch
({})
}
</
div
>
</
div
>
{
this
.
isEditView
?
null
:
(
<
div
class=
{
this
.
ns
.
e
(
'toolbar'
)
}
>
<
div
class=
{
this
.
ns
.
e
(
'toolbar'
)
}
>
{
this
.
$scopedSlots
.
toolbar
&&
this
.
$scopedSlots
.
toolbar
({})
}
{
this
.
$scopedSlots
.
toolbar
&&
this
.
$scopedSlots
.
toolbar
({})
}
</
div
>
</
div
>
)
}
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class=
{
this
.
ns
.
b
(
'header-exp'
)
}
></
div
>
<
div
class=
{
this
.
ns
.
b
(
'header-exp'
)
}
></
div
>
...
@@ -102,6 +113,11 @@ export const ViewLayout = defineComponent({
...
@@ -102,6 +113,11 @@ export const ViewLayout = defineComponent({
{
this
.
$scopedSlots
.
footer
&&
this
.
$scopedSlots
.
footer
({})
}
{
this
.
$scopedSlots
.
footer
&&
this
.
$scopedSlots
.
footer
({})
}
</
div
>
</
div
>
)
:
null
}
)
:
null
}
{
this
.
isEditView
?
(
<
div
class=
{
[
this
.
ns
.
e
(
'toolbar'
),
this
.
ns
.
e
(
'isedit'
)]
}
>
{
this
.
$scopedSlots
.
toolbar
&&
this
.
$scopedSlots
.
toolbar
({})
}
</
div
>
)
:
null
}
</
div
>
</
div
>
);
);
},
},
...
...
app_Web/src/components/widgets/app-menu/app-menu.tsx
浏览文件 @
595ae686
...
@@ -63,6 +63,12 @@ function renderMenuItem(
...
@@ -63,6 +63,12 @@ function renderMenuItem(
if
(
!
c
.
menuItemsState
[
menu
.
key
].
visible
)
{
if
(
!
c
.
menuItemsState
[
menu
.
key
].
visible
)
{
return
;
return
;
}
}
const
target
=
c
.
model
.
items
.
find
(
item
=>
{
return
item
.
id
===
menu
.
key
;
});
if
(
target
?.
itemType
===
'SEPERATOR'
)
{
return
<
div
class=
{
ns
.
e
(
'menu-seperator'
)
}
></
div
>;
}
return
!
collapseChange
?
(
return
!
collapseChange
?
(
<
i
-
menu
-
item
class=
{
ns
.
e
(
'item'
)
}
name=
{
menu
.
key
}
>
<
i
-
menu
-
item
class=
{
ns
.
e
(
'item'
)
}
name=
{
menu
.
key
}
>
<
app
-
icon
class=
{
ns
.
e
(
'icon'
)
}
icon=
{
menu
.
image
}
></
app
-
icon
>
<
app
-
icon
class=
{
ns
.
e
(
'icon'
)
}
icon=
{
menu
.
image
}
></
app
-
icon
>
...
...
app_Web/src/components/widgets/form-control/form-button/form-button.tsx
浏览文件 @
595ae686
...
@@ -39,6 +39,9 @@ export const FormButton = defineComponent({
...
@@ -39,6 +39,9 @@ export const FormButton = defineComponent({
loading=
{
this
.
isLoading
}
loading=
{
this
.
isLoading
}
class=
{
this
.
ns
.
b
()
}
class=
{
this
.
ns
.
b
()
}
>
>
{
this
.
modelData
.
sysImage
&&
this
.
modelData
.
sysImage
.
cssClass
&&
(
<
i
class=
{
[
this
.
ns
.
e
(
'icon'
),
this
.
modelData
.
sysImage
.
cssClass
]
}
></
i
>
)
}
{
this
.
modelData
.
source
.
caption
}
{
this
.
modelData
.
source
.
caption
}
</
i
-
button
>
</
i
-
button
>
);
);
...
...
app_Web/src/components/widgets/form-control/form-item-container/form-item-container.scss
浏览文件 @
595ae686
...
@@ -10,5 +10,6 @@
...
@@ -10,5 +10,6 @@
@include
b
(
form-item-container-input-tip-popper
)
{
@include
b
(
form-item-container-input-tip-popper
)
{
.ivu-tooltip-inner
{
.ivu-tooltip-inner
{
white-space
:
normal
;
white-space
:
normal
;
background-color
:
#4d4d4d
;
}
}
}
}
app_Web/src/components/widgets/grid-control/grid-control.util.ts
浏览文件 @
595ae686
...
@@ -127,6 +127,9 @@ export function useITableColumns(c: GridController) {
...
@@ -127,6 +127,9 @@ export function useITableColumns(c: GridController) {
}
else
if
(
frozenLastColumn
&&
index
>=
allNum
-
frozenLastColumn
)
{
}
else
if
(
frozenLastColumn
&&
index
>=
allNum
-
frozenLastColumn
)
{
column
.
fixed
=
'right'
;
column
.
fixed
=
'right'
;
}
}
if
(
ibiz
.
env
.
enableGridRowBreak
)
{
column
.
ellipsis
=
false
;
}
});
});
return
copy
;
return
copy
;
});
});
...
...
app_Web/src/components/widgets/grid-control/grid-field-column/grid-field-column.tsx
浏览文件 @
595ae686
...
@@ -71,14 +71,22 @@ export const GridFieldColumn = defineComponent({
...
@@ -71,14 +71,22 @@ export const GridFieldColumn = defineComponent({
>
>
{
this
.
codeList
?
(
{
this
.
codeList
?
(
<
code
-
list
<
code
-
list
class=
{
this
.
ns
.
e
(
'text'
)
}
class=
{
[
this
.
ns
.
e
(
'text'
),
this
.
ns
.
is
(
'enablebreak'
,
ibiz
.
env
.
enableGridRowBreak
),
]
}
codeListItems=
{
c
.
codeListItems
}
codeListItems=
{
c
.
codeListItems
}
codeList=
{
this
.
codeList
}
codeList=
{
this
.
codeList
}
value=
{
fieldValue
}
value=
{
fieldValue
}
textSeparator=
{
c
.
model
.
source
?.
textSeparator
}
textSeparator=
{
c
.
model
.
source
?.
textSeparator
}
></
code
-
list
>
></
code
-
list
>
)
:
(
)
:
(
<
span
class=
{
this
.
ns
.
e
(
'text'
)
}
>
<
span
class=
{
[
this
.
ns
.
e
(
'text'
),
this
.
ns
.
is
(
'enablebreak'
,
ibiz
.
env
.
enableGridRowBreak
),
]
}
>
{
fieldValue
}
{
fieldValue
}
{
fieldValue
!=
null
&&
c
.
model
.
unitName
}
{
fieldValue
!=
null
&&
c
.
model
.
unitName
}
</
span
>
</
span
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录