Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
劳工
zeroing-engine
Commits
dfc9b6ed
Commit
dfc9b6ed
authored
Jun 23, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
cf66b590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
utils.ts
src/zeroing/utils/utils.ts
+3
-2
No files found.
src/zeroing/utils/utils.ts
View file @
dfc9b6ed
...
@@ -49,7 +49,7 @@ export function propertyParse(key, node, properties) {
...
@@ -49,7 +49,7 @@ export function propertyParse(key, node, properties) {
if
(
value
[
value
.
length
-
1
]
===
'%'
)
{
if
(
value
[
value
.
length
-
1
]
===
'%'
)
{
node
[
percentKey
]
=
parseInt
(
value
);
node
[
percentKey
]
=
parseInt
(
value
);
}
}
}
else
{
}
else
{
node
[
percentKey
]
=
NaN
;
node
[
percentKey
]
=
NaN
;
}
}
}
}
...
@@ -332,10 +332,11 @@ export const cmdOldPrefix = '//z-';
...
@@ -332,10 +332,11 @@ export const cmdOldPrefix = '//z-';
* 属性注入
* 属性注入
* @param target
* @param target
* @param source
* @param source
* @param ignoreCmd
*/
*/
export
function
injectProperties
(
target
,
source
)
{
export
function
injectProperties
(
target
,
source
)
{
for
(
let
key
in
source
)
{
for
(
let
key
in
source
)
{
if
(
key
.
indexOf
(
'//'
)
!==
0
&&
!
source
.
hasOwnProperty
(
cmdPrefix
+
key
)
)
{
if
(
key
.
indexOf
(
'//'
)
!==
0
)
{
propertyParse
(
key
,
target
,
source
);
propertyParse
(
key
,
target
,
source
);
}
}
}
}
...
...
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