tn-modal.js 4.2 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["tuniao-ui/components/tn-modal/tn-modal"],{337:function(t,n,e){"use strict";e.r(n);var o=e(338),u=e(340);for(var r in u)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(r);e(342);var i,a=e(36),l=Object(a["default"])(u["default"],o["render"],o["staticRenderFns"],!1,null,"3a2c8cbc",null,!1,o["components"],i);l.options.__file="tuniao-ui/components/tn-modal/tn-modal.vue",n["default"]=l.exports},338:function(t,n,e){"use strict";e.r(n);var o=e(339);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},339:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return u})),e.d(n,"staticRenderFns",(function(){return i})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return o}));try{o={tnPopup:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-popup/tn-popup")]).then(e.bind(null,344))},tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,488))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var u=function(){var t=this,n=t.$createElement,e=(t._self._c,t.value?t.__get_style([t.boxStyle]):null),o=t.value&&!t.custom?t.button&&t.button.length:null,u=t.value&&!t.custom&&o?t.button.length:null,r=t.value&&!t.custom&&o?t.__map(t.button,(function(n,e){var o=t.__get_orig(n),u=t.button.length,r=t.button.length;return{$orig:o,g2:u,g3:r}})):null;t.$mp.data=Object.assign({},{$root:{s0:e,g0:o,g1:u,l0:r}})},r=!1,i=[];u._withStripped=!0},340:function(t,n,e){"use strict";e.r(n);var o=e(341),u=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=u.a},341:function(t,n,e){"use strict";var o=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=o(e(209)),r={mixins:[u.default],name:"tn-modal",props:{value:{type:Boolean,default:!1},width:{type:String,default:"84%"},padding:{type:String,default:""},radius:{type:Number,default:12},title:{type:String,default:""},content:{type:String,default:""},button:{type:Array,default:function(){return[]}},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseable:{type:Boolean,default:!0},showCloseBtn:{type:Boolean,default:!1},zoom:{type:Boolean,default:!0},custom:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},computed:{boxStyle:function(){var t={};return this.padding&&(t.padding=this.padding),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),t},contentClass:function(){var t="";return this.title?t+=" tn-margin-top":t+=" tn-modal__box__content--no-title",t},contentStyle:function(){var t={};return this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),this.fontColorStyle&&(t.color=this.fontColorStyle),t}},data:function(){return{}},methods:{handleClick:function(t){this.value&&this.$emit("click",{index:Number(t)})},close:function(){this.$emit("cancel"),this.$emit("input",!1)}}};n.default=r},342:function(t,n,e){"use strict";e.r(n);var o=e(343),u=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=u.a},343:function(t,n,e){}}]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/tuniao-ui/components/tn-modal/tn-modal.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'tuniao-ui/components/tn-modal/tn-modal-create-component',
  5. {
  6. 'tuniao-ui/components/tn-modal/tn-modal-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(337))
  8. })
  9. },
  10. [['tuniao-ui/components/tn-modal/tn-modal-create-component']]
  11. ]);