Element, how to understand this code? Span and offset what does that mean?

      var checkboxSpan = emrPartsOptions.length * 3;
      var checkboxOffset = (24 - checkboxSpan) / 2;
   <el-col :span=checkboxSpan :offset=checkboxOffset></el-col>
Apr.01,2021

this is the grid layout

number of columns occupied by the span grid
number of spacers on the left side of the offset grid

and the following code is a dynamic setting of the above information, for page adaptation, and so on.

var checkboxSpan = emrPartsOptions.length * 3;
var checkboxOffset = (24-checkboxSpan) / 2;

Menu