Skip to content

Update my.setKeepScreenOn.md #2154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 23, 2023
Merged

Update my.setKeepScreenOn.md #2154

merged 8 commits into from
Feb 23, 2023

Conversation

ChenYM520
Copy link
Contributor

my.setKeepScreenOn 在外部组件页面会失效

@yuqing1111
Copy link
Contributor

“仅在当前小程序生效,离开小程序后失效” 这句话前面是句号,感觉缺了一个主语,但是不影响理解。个人观点仅供参考

@ChenYM520
Copy link
Contributor Author

ChenYM520 commented Nov 24, 2022

读起来确实有割裂感,已添加主语。这个限制还是有必要说清楚的

@yuqing1111 再看看哈

@yuqing1111
Copy link
Contributor

已验收合格,请合入 @hbhftgf

@@ -1,6 +1,6 @@
# 简介

**my.setKeepScreenOn** 是设置是否保持屏幕长亮状态的 API。仅在当前小程序生效,离开小程序后失效。
**my.setKeepScreenOn** 是设置是否保持屏幕长亮状态的 API。此 API 仅在当前小程序生效,离开小程序后失效。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setKeepScreenOn 这是个一次性的动作,它触发长亮状态,然后长亮状态在离开当前小程序后自动解除。说 API 仅在当前小程序生效,有点奇怪

关键词替换:API 仅触发长亮状态,失效的是状态不是 API 的本身。状态使用解除的说法。
Copy link
Contributor Author

@ChenYM520 ChenYM520 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuqing1111 麻烦再看看哈

@yuqing1111
Copy link
Contributor

@ChenYM520 “当关闭组件回到小程序后会再次进入长亮状态”这句要不要考虑再描述细致一点,比如说“当关闭这类组件页面,返回到小程序后会再次进入之前设置的长亮状态。”这种描述?仅供参考。

@ChenYM520
Copy link
Contributor Author

@yuqing1111 这个意见非常好,谢谢给出宝贵的意见

@yuqing1111
Copy link
Contributor

@hbhftgf 本人已审核,请复审

@hbhftgf hbhftgf merged commit 68ef5fe into AlipayDocs:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants