js 转换成coffee scriptvar b = this; if !b_resizing && !b_ismousedown var c = bargdetectWidth e = bgrid
b = @ unless b._resizing or b._ismousedown c = b.arg "detectWidth" e = b.grid f = e.isLeftToRight() g = p.body() m = e._eventFlags d(".gridxCell", e.header.innerNode).some (l) -> r = h.position l u = if f then r.x + r.w else r.x l.getAttribute "colid" if u - c <= a.clientX and u + c >= a.clientX v = if u = d(a._target or a.target).closest("td", e.header.innerNode)[0] then h.position u else void 0 if u and (a.clientX <= v.x + c or a.clientX >= v.x + v.w - c) k.add g, "gridxColumnResizing" b._targetCell = l b._cellPos = r m.onHeaderMouseDown = b.name b._readyToResize = 1 or (m.onHeaderMouseDown = void 0, k.remove g, "gridxColumnResizing") m.onHeaderCellMouseDown = m.onHeaderMouseDow
原文地址: https://www.cveoy.top/t/topic/fsyB 著作权归作者所有。请勿转载和采集!