MCPcopy Create free account
hub / github.com/CoderOpen/waimai / getSelectorQuery

Function getSelectorQuery

front/components/uni-swipe-action-item/bindingx.js:224–243  ·  view source on GitHub ↗

* 获取节点信息

()

Source from the content-addressed store, hash-verified

222 * 获取节点信息
223 */
224 getSelectorQuery() {
225 dom.getComponentRect(this.$refs['selector-content-hock'], (data) => {
226 if (this.position.content) return
227 this.position.content = data.size
228 })
229 for (let i = 0; i < this.options.length; i++) {
230 dom.getComponentRect(this.$refs['button-hock'][i], (data) => {
231 if (!this.button) {
232 this.button = []
233 }
234 if (this.options.length === this.button.length) return
235 this.button.push(data.size)
236 this.right += data.size.width
237 if (this.autoClose) return
238 if (this.show) {
239 this.open()
240 }
241 })
242 }
243 }
244 }
245}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected