Files
ZangShiQi/public/weapp/components/uni-grid/uni-grid.js
2026-04-05 10:48:38 +08:00

11 lines
2.2 KiB
JavaScript
Executable File

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-grid/uni-grid"],{"2c85":function(e,t,n){"use strict";n.r(t);var i=n("9a4a"),u=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=u.a},3828:function(e,t,n){"use strict";var i=n("db25"),u=n.n(i);u.a},"9a4a":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"UniGrid",props:{column:{type:Number,default:3},showBorder:{type:Boolean,default:!0},borderColor:{type:String,default:"#e5e5e5"},hor:{type:Number,default:0},ver:{type:Number,default:0},square:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0}},provide:function(){return{grid:this}},data:function(){var e="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{index:0,elId:e}},created:function(){this.index=0,this.childrens=[],this.pIndex=this.pIndex?this.pIndex++:0},methods:{change:function(e){this.$emit("change",e)},_getSize:function(t){var n=this;e.createSelectorQuery().in(this).select("#".concat(this.elId)).boundingClientRect().exec((function(e){if(e[0]){var i=2*(parseInt(e[0].width/n.column)-1)+"rpx";"function"===typeof t&&t(i)}else setTimeout(n._getSize(t))}))}}};t.default=n}).call(this,n("df3c")["default"])},cf41:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},u=[]},cf69:function(e,t,n){"use strict";n.r(t);var i=n("cf41"),u=n("2c85");for(var r in u)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(r);n("3828");var a=n("828b"),o=Object(a["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=o.exports},db25:function(e,t,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uni-grid/uni-grid-create-component',
{
'components/uni-grid/uni-grid-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("cf69"))
})
},
[['components/uni-grid/uni-grid-create-component']]
]);