SafetyScreen-ui/node_modules/vue-grid-layout/website/public/assets/js/41.d0334a36.js

1 line
20 KiB
JavaScript
Raw Permalink Normal View History

2025-03-29 19:33:58 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{511:function(e,t,v){"use strict";v.r(t);var a=v(34),_=Object(a.a)({},(function(){var e=this,t=e._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h2",{attrs:{id:"gridlayout"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gridlayout"}},[e._v("#")]),e._v(" GridLayout")]),e._v(" "),t("h3",{attrs:{id:"layout"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[e._v("#")]),e._v(" layout")]),e._v(" "),t("ul",[t("li",[e._v("type: "),t("code",[e._v("Array")])]),e._v(" "),t("li",[e._v("required: "),t("code",[e._v("true")])])]),e._v(" "),t("p",[e._v("This is the initial layout of the grid.")]),e._v(" "),t("p",[e._v("The value must be an "),t("code",[e._v("Array")]),e._v(" of "),t("code",[e._v("Object")]),e._v(" items. Each item must have "),t("code",[e._v("i")]),e._v(", "),t("code",[e._v("x")]),e._v(", "),t("code",[e._v("y")]),e._v(", "),t("code",[e._v("w")]),e._v(" and "),t("code",[e._v("h")]),e._v(" properties. Please refer to the documentation for "),t("code",[e._v("GridItem")]),e._v(" below for more information.")]),e._v(" "),t("h3",{attrs:{id:"responsivelayouts"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#responsivelayouts"}},[e._v("#")]),e._v(" responsiveLayouts")]),e._v(" "),t("ul",[t("li",[e._v("type: "),t("code",[e._v("Object")])]),e._v(" "),t("li",[e._v("required: "),t("code",[e._v("false")])]),e._v(" "),t("li",[e._v("default : "),t("code",[e._v("{}")])])]),e._v(" "),t("p",[e._v("This is the initial layouts of the grid per breakpoint if "),t("code",[e._v("responsive")]),e._v(" is set to "),t("code",[e._v("true")]),e._v(".\nThe keys of the "),t("code",[e._v("Object")]),e._v(" are breakpoint names and each value is an "),t("code",[e._v("Array")]),e._v(" of "),t("code",[e._v("Object")]),e._v(" items as defined by "),t("code",[e._v("layout")]),e._v(" prop. eg:{ lg:[layout items], md:[layout items] }.\nSetting the prop after the creation of the GridLayout has no effect.")]),e._v(" "),t("p",[e._v("See also "),t("a",{attrs:{href:"#responsive"}},[e._v("responsive")]),e._v(", "),t("a",{attrs:{href:"#breakpoints"}},[e._v("breakpoints")]),e._v(" and "),t("a",{attrs:{href:"#cols"}},[e._v("cols")])]),e._v(" "),t("h3",{attrs:{id:"colnum"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#colnum"}},[e._v("#")]),e._v(" colNum")]),e._v(" "),t("ul",[t("li",[e._v("type: "),t("code",[e._v("Number")])]),e._v(" "),t("li",[e._v("required: "),t("code",[e._v("false")])]),e._v(" "),t("li",[e._v("default: "),t("code",[e._v("12")])])]),e._v(" "),t("p",[e._v("Says how many columns the grid has.")]),e._v(" "),t("p",[e._v("The value should be a "),t("em",[e._v("natural number")]),e._v(".")]),e._v(" "),t("h3",{attrs:{id:"rowheight"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#rowheight"}},[e._v("#")]),e._v(" rowHeight")]),e._v(" "),t("ul",[t("li",[e._v("type: "),t("code",[e._v("Number")])]),e._v(" "),t("li",[e._v("required: "),t("code",[e._v("false")])]),e._v(" "),t("li",[e._v("default: "),t("code",[e._v("150")])])]),e._v(" "),t("p",[e._v("Says what is a height of a single row in pixels.")]),e._v(" "),t("h3",{attrs:{id:"maxrows"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#maxrows"}},[e._v("#")]),e._v(" maxRows")]),e._v(" "),t("ul",[t("li",[e._v("type: "),t("code",[e._v("Number")])]),e._v(" "),t("li",[e._v("required: "),t("code",[e._v("false")])]),e._v(" "),t("li",[e._v("default: "),t("code",[e._v("Infinity")])])]),e._v(" "),t("p",[e._v("Says what is a maximal number of rows in the grid.")]),e._v(" "),t("h3",{attrs:{id:"margin"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#margin"}},[e._v("#")]),e._v(" margin")]),e._v(" "),t("ul",[t("li",[e._v("type: "),t("code",[e._v("Array")])]),e._v(" "),t("li",[e._v("required: "),t("code",[e._v("false")])]),e._v(" "),t("li",[e._v("default: "),t("code",[e._v("[10, 10]")])])]),e._v(" "),t("p",[e._v("Says what are the margins of elements in