Skip to content

Commit

Permalink
chore: add arco-mobile eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaPeach committed Feb 22, 2024
1 parent 9872ecb commit 7000351
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ Use scroll events to monitor whether children enter or leave the viewport.
|----------|-------------|------|
|dom|The outermost element DOM|HTMLDivElement|
|checkVisible|Ignore the state of the element before and after, manually check whether the element is in the viewport, trigger the onVisibleChange callback function|() =\> boolean|
|flushVisibleStatus|Reset the initial visible state of the element to false, and re\-detect the visibility of the element, the priority is lower than 'disabled'(Usually used to re\-listen when elements inside ShowMonitor change)|() =\> void|
1 change: 1 addition & 0 deletions packages/arcodesign/components/show-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
|----------|-------------|------|
|dom|最外层元素 DOM|HTMLDivElement|
|checkVisible|忽略元素前后状态,手动检查元素是否在视口内,触发onVisibleChange回调函数|() =\> boolean|
|flushVisibleStatus|重置元素初始可见态为false,并重新对元素可见度发起检测,优先级低于disabled(通常用在对ShowMonitor内部元素变化时发起的重新监听)|() =\> void|
13 changes: 13 additions & 0 deletions packages/arcodesign/components/show-monitor/__ast__/index.ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,19 @@
"en": "Ignore the state of the element before and after, manually check whether the element is in the viewport, trigger the onVisibleChange callback function"
},
"descWithTags": "忽略元素前后状态,手动检查元素是否在视口内,触发onVisibleChange回调函数"
},
"flushVisibleStatus": {
"name": "flushVisibleStatus",
"required": true,
"description": "重置元素初始可见态为false,并重新对元素可见度发起检测,优先级低于disabled(通常用在对ShowMonitor内部元素变化时发起的重新监听)\n@en Reset the initial visible state of the element to false, and re-detect the visibility of the element, the priority is lower than 'disabled'(Usually used to re-listen when elements inside ShowMonitor change)",
"defaultValue": null,
"type": {
"name": "() => void"
},
"tags": {
"en": "Reset the initial visible state of the element to false, and re-detect the visibility of the element, the priority is lower than 'disabled'(Usually used to re-listen when elements inside ShowMonitor change)"
},
"descWithTags": "重置元素初始可见态为false,并重新对元素可见度发起检测,优先级低于disabled(通常用在对ShowMonitor内部元素变化时发起的重新监听)"
}
}
},
Expand Down

0 comments on commit 7000351

Please sign in to comment.