eeeeeeuuuu-ui
Version:
uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水
12 lines (11 loc) • 2.99 kB
JavaScript
require('../../../app.js');
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-modal/u-modal"],{"04c7":function(t,e,n){},"82fd":function(t,e,n){"use strict";var l=n("04c7"),o=n.n(l);o.a},b2cf:function(t,e,n){"use strict";n.r(e);var l,o={uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,"3626"))},uLoading:function(){return n.e("uview-ui/components/u-loading/u-loading").then(n.bind(null,"98a4"))}},u=function(){var t=this,e=t.$createElement,n=(t._self._c,t.showTitle?t.__get_style([t.titleStyle]):null),l=t.$slots.default?t.__get_style([t.contentStyle]):null,o=t.$slots.default?null:t.__get_style([t.contentStyle]),u=(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:l,s2:o,s3:u,s4:i}})},i=[],a={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(){return{}}},contentStyle:{type:Object,default(){return{}}},cancelStyle:{type:Object,default(){return{}}},confirmStyle:{type:Object,default(){return{}}},zoom:{type:Boolean,default:!0},asyncClose:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!1},negativeTop:{type:[String,Number],default:0}},data(){return{loading:!1}},computed:{cancelBtnStyle(){return Object.assign({color:this.cancelColor},this.cancelStyle)},confirmBtnStyle(){return Object.assign({color:this.confirmColor},this.confirmStyle)},uZIndex(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},watch:{value(t){!0===t&&(this.loading=!1)}},methods:{confirm(){this.asyncClose?this.loading=!0:this.$emit("input",!1),this.$emit("confirm")},cancel(){this.$emit("cancel"),this.$emit("input",!1),setTimeout(()=>{this.loading=!1},300)},popupClose(){this.$emit("input",!1)},clearLoading(){this.loading=!1}}},s=a,c=(n("82fd"),n("f0c5")),r=Object(c["a"])(s,u,i,!1,null,"18247d9c",null,!1,o,l);e["default"]=r.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uview-ui/components/u-modal/u-modal-create-component',
{
'uview-ui/components/u-modal/u-modal-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("b2cf"))
})
},
[['uview-ui/components/u-modal/u-modal-create-component']]
]);