我有一个离子选择器,并在ionChange上打开一个带有复选框的警报。可以选择多个选项。 这是我的代码:
MERGE (artifact :ARTIFACT :V_1 :LAKE :EXISTING { blobUid: 'existingArtifact'})
ON CREATE SET
artifact.uid = 'abc',
artifact.createdAt = 123,
artifact.createdBy = 'snekki'
WITH artifact
OPTIONAL MATCH (maybeFileData :FILE_DATA :V_1 :LAKE) -[:DESCRIBES]-> (artifact)
WITH
artifact,
maybeFileData,
CASE
WHEN maybeFileData IS null THEN [true]
ELSE []
END AS isFileDataNull,
CASE
WHEN maybeFileData IS null THEN []
ELSE [true]
END AS isFileDataNonNull
WITH
CASE
WHEN
maybeFileData IS NOT null
AND maybeFileData.filename = 'abc.txt'
AND maybeFileData.checksum = '1a2b3c'
AND maybeFileData.fileSize = 12345
THEN
maybeFileData
ELSE
null
END AS resultForNonNull,
artifact, maybeFileData, isFileDataNull
UNWIND isFileDataNull AS x
CREATE (fileData :FILE_DATA :V_1 :LAKE {
uid: 'xyz',
createdAt: 123,
createdBy: 'georgio',
filename: 'abc.txt',
checksum: '1a2b3c',
fileSize: 12345
}) -[:DESCRIBES]-> (artifact)
WITH artifact, maybeFileData, fileData AS resultForNull, resultForNonNull
RETURN
CASE
WHEN maybeFileData IS null THEN [resultForNonNull, artifact]
ELSE [resultForNull, artifact]
END AS result
问题在于当用户快速向下滚动选项时,即使滚动触摸也可以选中复选框。 有什么办法吗 谢谢