MCPcopy
hub / github.com/youzan/vant-weapp / setSiderbarRect

Function setSiderbarRect

packages/index-bar/index.ts:114–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 },
113
114 setSiderbarRect() {
115 return getRect(this, '.van-index-bar__sidebar').then((res) => {
116 if (!isDef(res)) {
117 return;
118 }
119 this.sidebar = {
120 height: res.height,
121 top: res.top,
122 };
123 });
124 },
125
126 setDiffData({ target, data }) {
127 const diffData = {};

Callers

nothing calls this directly

Calls 2

getRectFunction · 0.90
isDefFunction · 0.50

Tested by

no test coverage detected