Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xform
Project
Project
Details
Activity
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
田翔
xform
Commits
05019f5b
Commit
05019f5b
authored
4 months ago
by
彭俊龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图选取加判断
parent
ec0618cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.js
src/core/widgets/coord/Coordinate/index.js
+2
-2
No files found.
src/core/widgets/coord/Coordinate/index.js
View file @
05019f5b
...
@@ -278,8 +278,8 @@ const Coordinate = (props) => {
...
@@ -278,8 +278,8 @@ const Coordinate = (props) => {
}
}
const
callback
=
(
value
)
=>
{
const
callback
=
(
value
)
=>
{
if
(
value
.
location
&&
view
)
{
if
(
value
?
.
location
&&
view
)
{
let
array
=
value
.
location
.
split
(
','
)
let
array
=
value
?
.
location
.
split
(
','
)
let
point
=
lngmkt
({
lng
:
Number
(
array
[
0
]),
lat
:
Number
(
array
[
1
])
})
let
point
=
lngmkt
({
lng
:
Number
(
array
[
0
]),
lat
:
Number
(
array
[
1
])
})
onChange
(
`
${
point
.
x
}
,
${
point
.
y
}
`
)
onChange
(
`
${
point
.
x
}
,
${
point
.
y
}
`
)
if
(
value
?.
name
)
{
if
(
value
?.
name
)
{
...
...
This diff is collapsed.
Click to expand it.
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