dom.d.ts.map 822 B

1
  1. {"version":3,"sources":["../src/behaviors/dom.ts"],"names":[],"mappings":";AAAA,wBAwBG","file":"dom.d.ts","sourcesContent":["export default Behavior({\n methods: {\n gettingBoundingClientRect(selector: string, all: boolean) {\n return new Promise((resolve, reject) => {\n try {\n wx.createSelectorQuery()\n .in(this)\n [all ? 'selectAll' : 'select'](selector)\n .boundingClientRect((rect) => {\n if (all && Array.isArray(rect) && rect.length) {\n resolve(rect);\n } else if (!all && rect) {\n resolve(rect);\n } else {\n reject();\n }\n })\n .exec();\n } catch (err) {\n reject(err);\n }\n });\n },\n },\n});\n"]}