Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
T_FT_01
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
T_FT_01
Commits
cfdd1e33
Commit
cfdd1e33
authored
Jan 31, 2021
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复配置页面问题 fix:修复标题因内容太多显示不全的问题
parent
17f98669
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
form.component.html
form/src/app/form/form.component.html
+1
-3
Scene.js
play/assets/tmpGame/script/Scene.js
+1
-1
No files found.
form/src/app/form/form.component.html
View file @
cfdd1e33
...
@@ -12,9 +12,7 @@
...
@@ -12,9 +12,7 @@
<nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
3
"
nzFor=
"title"
>
标题
</nz-form-label>
<nz-form-label
[
nzSpan
]="
3
"
nzFor=
"title"
>
标题
</nz-form-label>
<nz-form-control
[
nzSpan
]="
6
"
>
<nz-form-control
[
nzSpan
]="
6
"
>
<nz-input-group
nzAddOnBefore=
"Part"
>
<input
type=
"text"
id=
"title"
nz-input
[(
ngModel
)]="
item
.
title
.
val
"
(
blur
)="
save
()"
>
<input
type=
"text"
id=
"title"
nz-input
[(
ngModel
)]="
item
.
title
.
val
"
(
blur
)="
save
()"
>
</nz-input-group>
</nz-form-control>
</nz-form-control>
</nz-form-item>
</nz-form-item>
<nz-form-item>
<nz-form-item>
...
...
play/assets/tmpGame/script/Scene.js
View file @
cfdd1e33
...
@@ -334,7 +334,7 @@ cc.Class({
...
@@ -334,7 +334,7 @@ cc.Class({
this
.
titleLabel
=
label
;
this
.
titleLabel
=
label
;
const
maxW
=
titleBgNode
.
width
*
0.
8
;
const
maxW
=
titleBgNode
.
width
*
0.
7
;
if
(
labelNode
.
width
>
maxW
)
{
if
(
labelNode
.
width
>
maxW
)
{
labelNode
.
scale
=
maxW
/
labelNode
.
width
;
labelNode
.
scale
=
maxW
/
labelNode
.
width
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment