u-modal.js 4.7 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-modal/u-modal"],{1243:function(t,e,n){"use strict";n.r(e);var o=n(1244),u=n(1246);for(var l in u)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(l);n(1248);var i,r=n(32),c=Object(r["default"])(u["default"],o["render"],o["staticRenderFns"],!1,null,"3626fcec",null,!1,o["components"],i);c.options.__file="uview-ui/components/u-modal/u-modal.vue",e["default"]=c.exports},1244:function(t,e,n){"use strict";n.r(e);var o=n(1245);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},1245:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return u})),n.d(e,"staticRenderFns",(function(){return i})),n.d(e,"recyclableRender",(function(){return l})),n.d(e,"components",(function(){return o}));try{o={uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,1315))},uLoading:function(){return n.e("uview-ui/components/u-loading/u-loading").then(n.bind(null,1250))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.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,e=t.$createElement,n=(t._self._c,t.showTitle?t.__get_style([t.titleStyle]):null),o=t.$slots.default||t.$slots.$default?t.__get_style([t.contentStyle]):null,u=t.$slots.default||t.$slots.$default?null:t.__get_style([t.contentStyle]),l=(t.showCancelButton||t.showConfirmButton)&&t.showCancelButton?t.__get_style([t.cancelBtnStyle]):null,i=(t.showCancelButton||t.showConfirmButton)&&(t.showConfirmButton||t.$slots["confirm-button"])?t.__get_style([t.confirmBtnStyle]):null;t.$mp.data=Object.assign({},{$root:{s0:n,s1:o,s2:u,s3:l,s4:i}})},l=!1,i=[];u._withStripped=!0},1246:function(t,e,n){"use strict";n.r(e);var o=n(1247),u=n.n(o);for(var l in o)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(l);e["default"]=u.a},1247:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"u-modal",props:{value:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:""},title:{type:[String],default:"提示"},width:{type:[Number,String],default:600},content:{type:String,default:"内容"},showTitle:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},confirmText:{type:String,default:"确认"},cancelText:{type:String,default:"取消"},confirmColor:{type:String,default:"#2979ff"},cancelColor:{type:String,default:"#606266"},borderRadius:{type:[Number,String],default:16},titleStyle:{type:Object,default:function(){return{}}},contentStyle:{type:Object,default:function(){return{}}},cancelStyle:{type:Object,default:function(){return{}}},confirmStyle:{type:Object,default:function(){return{}}},zoom:{type:Boolean,default:!0},asyncClose:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!1},negativeTop:{type:[String,Number],default:0}},data:function(){return{loading:!1}},computed:{cancelBtnStyle:function(){return Object.assign({color:this.cancelColor},this.cancelStyle)},confirmBtnStyle:function(){return Object.assign({color:this.confirmColor},this.confirmStyle)},uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},watch:{value:function(t){!0===t&&(this.loading=!1)}},methods:{confirm:function(){this.asyncClose?this.loading=!0:this.$emit("input",!1),this.$emit("confirm")},cancel:function(){var t=this;this.$emit("cancel"),this.$emit("input",!1),setTimeout((function(){t.loading=!1}),300)},popupClose:function(){this.$emit("input",!1)},clearLoading:function(){this.loading=!1}}};e.default=o},1248:function(t,e,n){"use strict";n.r(e);var o=n(1249),u=n.n(o);for(var l in o)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(l);e["default"]=u.a},1249:function(t,e,n){}}]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-modal/u-modal.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'uview-ui/components/u-modal/u-modal-create-component',
  5. {
  6. 'uview-ui/components/u-modal/u-modal-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(1243))
  8. })
  9. },
  10. [['uview-ui/components/u-modal/u-modal-create-component']]
  11. ]);