(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/sp-editor/components/sp-editor/fab-tool"],{1592:function(t,e,n){"use strict";n.r(e);var a=n("68e0"),c=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=c.a},"394c":function(t,e,n){"use strict";var a=n("b575"),c=n.n(a);c.a},"68e0":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{visible:{type:Boolean,default:!1},placement:{type:String,default:"auto"}},data:function(){return{placementHeight:"0",placementType:""}},watch:{visible:function(e){var n=this;if(e){var a=t.getSystemInfoSync(),c=a.screenWidth;this.$nextTick((function(){var e=0;t.createSelectorQuery().in(n).select("#placementfab").boundingClientRect((function(t){n.placementHeight=-t.height+"px",e=t.width})).exec(),"auto"==n.placement&&t.createSelectorQuery().in(n).select("#toolfab").boundingClientRect((function(t){var a=t.left,o=c-a;n.placementType=o>e?"bottom-start":a>e?"bottom-end":"bottom-center"})).exec()}))}}},mounted:function(){this.placementType=this.placement},computed:{placementStyle:function(){var t={};switch(this.placementType){case"top-start":t={top:this.placementHeight,left:0};break;case"top-center":t={top:this.placementHeight,left:"50%",transform:"translateX(-50%)"};break;case"top-end":t={top:this.placementHeight,right:0};break;case"bottom-start":t={bottom:this.placementHeight,left:0};break;case"bottom-center":t={bottom:this.placementHeight,left:"50%",transform:"translateX(-50%)"};break;case"bottom-end":t={bottom:this.placementHeight,right:0};break;default:break}return t}},methods:{}};e.default=n}).call(this,n("df3c")["default"])},b575:function(t,e,n){},eb5b:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},c=[]},f5bd:function(t,e,n){"use strict";n.r(e);var a=n("eb5b"),c=n("1592");for(var o in c)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(o);n("394c");var i=n("828b"),r=Object(i["a"])(c["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=r.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/sp-editor/components/sp-editor/fab-tool-create-component',
    {
        'uni_modules/sp-editor/components/sp-editor/fab-tool-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("f5bd"))
        })
    },
    [['uni_modules/sp-editor/components/sp-editor/fab-tool-create-component']]
]);
