Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
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
web_component
submodule
Commits
5fb77375
Commit
5fb77375
authored
Jan 06, 2021
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
d3d5555e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
formHelper.tsx
components/apolloTable/utils/formHelper.tsx
+11
-1
No files found.
components/apolloTable/utils/formHelper.tsx
View file @
5fb77375
/* eslint-disable no-case-declarations */
/* eslint-disable no-case-declarations */
// 判断是Android 或 iOS
// 判断是Android 或 iOS
import
{
emptyModel
}
from
"@/submodule/components/apolloTable/component/base/_utils/setFormatter"
;
const
platform
=
(
function
checkPlatForm
()
{
const
platform
=
(
function
checkPlatForm
()
{
// const u = window.navigator.userAgent;
// const u = window.navigator.userAgent;
// const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端
// const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端
...
@@ -372,9 +374,17 @@ const changTableDynamicValue = ({ behavior, originValue }: any) => {
...
@@ -372,9 +374,17 @@ const changTableDynamicValue = ({ behavior, originValue }: any) => {
cellValueList
:
[],
cellValueList
:
[],
});
});
}
else
{
}
else
{
let
cell
=
emptyModel
;
if
(
Array
.
isArray
(
extraData
[
t
]))
{
if
(
extraData
[
t
].
length
>
0
)
{
cell
=
extraData
[
t
];
}
}
else
if
(
extraData
[
t
])
{
cell
=
[
extraData
[
t
]];
}
result
.
push
({
result
.
push
({
columnCode
:
t
,
columnCode
:
t
,
cellValueList
:
Array
.
isArray
(
extraData
[
t
])
?
extraData
[
t
]
:
[
extraData
[
t
]]
,
cellValueList
:
cell
,
});
});
}
}
});
});
...
...
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