123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/uni-popup/uni-popup" ], {
- 519: function(n, t, o) {
- o.r(t);
- var e = o(520), i = o(522);
- for (var u in i) "default" !== u && function(n) {
- o.d(t, n, function() {
- return i[n];
- });
- }(u);
- o(526);
- var r = o(13), s = Object(r.default)(i.default, e.render, e.staticRenderFns, !1, null, "7da806a4", null, !1, e.components, void 0);
- s.options.__file = "components/uni-popup/uni-popup.vue", t.default = s.exports;
- },
- 520: function(n, t, o) {
- o.r(t);
- var e = o(521);
- o.d(t, "render", function() {
- return e.render;
- }), o.d(t, "staticRenderFns", function() {
- return e.staticRenderFns;
- }), o.d(t, "recyclableRender", function() {
- return e.recyclableRender;
- }), o.d(t, "components", function() {
- return e.components;
- });
- },
- 521: function(n, t, o) {
- var e;
- o.r(t), o.d(t, "render", function() {
- return i;
- }), o.d(t, "staticRenderFns", function() {
- return r;
- }), o.d(t, "recyclableRender", function() {
- return u;
- }), o.d(t, "components", function() {
- return e;
- });
- try {
- e = {
- uniTransition: function() {
- return o.e("components/uni-transition/uni-transition").then(o.bind(null, 556));
- }
- };
- } catch (n) {
- if (-1 === n.message.indexOf("Cannot find module") || -1 === n.message.indexOf(".vue")) throw n;
- console.error(n.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
- console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
- }
- var i = function() {
- var n = this;
- n.$createElement;
- n._self._c;
- }, u = !1, r = [];
- i._withStripped = !0;
- },
- 522: function(n, t, o) {
- o.r(t);
- var e = o(523), i = o.n(e);
- for (var u in e) "default" !== u && function(n) {
- o.d(t, n, function() {
- return e[n];
- });
- }(u);
- t.default = i.a;
- },
- 523: function(n, t, o) {
- Object.defineProperty(t, "__esModule", {
- value: !0
- }), t.default = void 0;
- var e = function(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }(o(524)), i = {
- name: "UniPopup",
- components: {
- uniTransition: function() {
- o.e("components/uni-transition/uni-transition").then(function() {
- return resolve(o(556));
- }.bind(null, o)).catch(o.oe);
- }
- },
- props: {
- animation: {
- type: Boolean,
- default: !0
- },
- type: {
- type: String,
- default: "center"
- },
- maskClick: {
- type: Boolean,
- default: !0
- }
- },
- provide: function() {
- return {
- popup: this
- };
- },
- mixins: [ e.default ],
- watch: {
- type: {
- handler: function(n) {
- this[this.config[n]]();
- },
- immediate: !0
- },
- maskClick: function(n) {
- this.mkclick = n;
- }
- },
- data: function() {
- return {
- duration: 300,
- ani: [],
- showPopup: !1,
- showTrans: !1,
- maskClass: {
- position: "fixed",
- bottom: 0,
- top: 0,
- left: 0,
- right: 0,
- backgroundColor: "rgba(0, 0, 0, 0.4)"
- },
- transClass: {
- position: "fixed",
- left: 0,
- right: 0
- },
- maskShow: !0,
- mkclick: !0,
- popupstyle: "top"
- };
- },
- created: function() {
- this.mkclick = this.maskClick, this.animation ? this.duration = 300 : this.duration = 0;
- },
- methods: {
- clear: function(n) {
- n.stopPropagation();
- },
- open: function() {
- var n = this;
- this.showPopup = !0, this.$nextTick(function() {
- new Promise(function(t) {
- clearTimeout(n.timer), n.timer = setTimeout(function() {
- n.showTrans = !0, n.$nextTick(function() {
- t();
- });
- }, 50);
- }).then(function(t) {
- clearTimeout(n.msgtimer), n.msgtimer = setTimeout(function() {
- n.customOpen && n.customOpen();
- }, 100), n.$emit("change", {
- show: !0,
- type: n.type
- });
- });
- });
- },
- close: function(n) {
- var t = this;
- this.showTrans = !1, this.$nextTick(function() {
- t.$emit("change", {
- show: !1,
- type: t.type
- }), clearTimeout(t.timer), t.customOpen && t.customClose(), t.timer = setTimeout(function() {
- t.showPopup = !1;
- }, 300);
- });
- },
- onTap: function() {
- this.mkclick && this.close();
- },
- top: function() {
- this.popupstyle = "top", this.ani = [ "slide-top" ], this.transClass = {
- position: "fixed",
- left: 0,
- right: 0
- };
- },
- bottom: function() {
- this.popupstyle = "bottom", this.ani = [ "slide-bottom" ], this.transClass = {
- position: "fixed",
- left: 0,
- right: 0,
- bottom: 0
- };
- },
- center: function() {
- this.popupstyle = "center", this.ani = [ "zoom-out", "fade" ], this.transClass = {
- position: "fixed",
- display: "flex",
- flexDirection: "column",
- bottom: 0,
- left: 0,
- right: 0,
- top: 0,
- justifyContent: "center",
- alignItems: "center"
- };
- }
- }
- };
- t.default = i;
- },
- 526: function(n, t, o) {
- o.r(t);
- var e = o(527), i = o.n(e);
- for (var u in e) "default" !== u && function(n) {
- o.d(t, n, function() {
- return e[n];
- });
- }(u);
- t.default = i.a;
- },
- 527: function(n, t, o) {}
- } ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/uni-popup/uni-popup-create-component", {
- "components/uni-popup/uni-popup-create-component": function(n, t, o) {
- o("1").createComponent(o(519));
- }
- }, [ [ "components/uni-popup/uni-popup-create-component" ] ] ]);
|