init
This commit is contained in:
115
unpackage/dist/dev/mp-weixin/popup.js
vendored
Normal file
115
unpackage/dist/dev/mp-weixin/popup.js
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
"use strict";
|
||||
const uni_modules_nutuiUni_components__constants_event = require("./uni_modules/nutui-uni/components/_constants/event.js");
|
||||
require("./common/vendor.js");
|
||||
require("./uni_modules/nutui-uni/components/_utils/env.js");
|
||||
const uni_modules_nutuiUni_components__utils_props = require("./uni_modules/nutui-uni/components/_utils/props.js");
|
||||
const uni_modules_nutuiUni_components__utils_is = require("./uni_modules/nutui-uni/components/_utils/is.js");
|
||||
const overlayProps = {
|
||||
...uni_modules_nutuiUni_components__utils_props.commonProps,
|
||||
/**
|
||||
* @description 控制遮罩的显示/隐藏
|
||||
*/
|
||||
visible: Boolean,
|
||||
/**
|
||||
* @description 自定义遮罩层级
|
||||
*/
|
||||
zIndex: Number,
|
||||
/**
|
||||
* @description 显示/隐藏的动画时长,单位毫秒
|
||||
*/
|
||||
duration: uni_modules_nutuiUni_components__utils_props.makeNumericProp(300),
|
||||
/**
|
||||
* @description 自定义遮罩类名
|
||||
*/
|
||||
overlayClass: uni_modules_nutuiUni_components__utils_props.makeStringProp(""),
|
||||
/**
|
||||
* @description 自定义遮罩样式
|
||||
*/
|
||||
overlayStyle: Object,
|
||||
/**
|
||||
* @description 遮罩显示时的背景是否锁定
|
||||
*/
|
||||
lockScroll: Boolean,
|
||||
/**
|
||||
* @description 点击遮罩时是否关闭
|
||||
*/
|
||||
closeOnClickOverlay: uni_modules_nutuiUni_components__utils_props.truthProp,
|
||||
/**
|
||||
* @description 是否保留遮罩关闭后的内容
|
||||
*/
|
||||
destroyOnClose: Boolean
|
||||
};
|
||||
const overlayEmits = {
|
||||
[uni_modules_nutuiUni_components__constants_event.UPDATE_VISIBLE_EVENT]: (visible) => uni_modules_nutuiUni_components__utils_is.isBoolean(visible),
|
||||
[uni_modules_nutuiUni_components__constants_event.CLICK_EVENT]: (evt) => evt instanceof Object
|
||||
};
|
||||
const popupProps = {
|
||||
...overlayProps,
|
||||
...uni_modules_nutuiUni_components__utils_props.commonProps,
|
||||
/**
|
||||
* @description 弹出位置(top,bottom,left,right,center)
|
||||
*/
|
||||
position: uni_modules_nutuiUni_components__utils_props.makeStringProp("center"),
|
||||
/**
|
||||
* @description 动画名
|
||||
*/
|
||||
transition: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
/**
|
||||
* @description 自定义弹框类名
|
||||
*/
|
||||
popClass: uni_modules_nutuiUni_components__utils_props.makeStringProp(""),
|
||||
/**
|
||||
* @description 是否显示圆角
|
||||
*/
|
||||
round: Boolean,
|
||||
/**
|
||||
* @description 是否显示关闭按钮
|
||||
*/
|
||||
closeable: Boolean,
|
||||
/**
|
||||
* @description 关闭按钮图标
|
||||
*/
|
||||
closeIcon: uni_modules_nutuiUni_components__utils_props.makeStringProp("close"),
|
||||
/**
|
||||
* @description 关闭按钮位置(top-left,top-right,bottom-left,bottom-right)
|
||||
*/
|
||||
closeIconPosition: uni_modules_nutuiUni_components__utils_props.makeStringProp("top-right"),
|
||||
/**
|
||||
* @description 是否保留弹层关闭后的内容
|
||||
*/
|
||||
destroyOnClose: uni_modules_nutuiUni_components__utils_props.truthProp,
|
||||
/**
|
||||
* @description 是否显示遮罩层
|
||||
*/
|
||||
overlay: uni_modules_nutuiUni_components__utils_props.truthProp,
|
||||
/**
|
||||
* @description 是否开启 iPhone 系列全面屏底部安全区适配,仅当 `position` 为 `bottom` 时有效
|
||||
*/
|
||||
safeAreaInsetBottom: Boolean,
|
||||
/**
|
||||
* @description 是否开启 iPhone 顶部安全区适配
|
||||
*/
|
||||
safeAreaInsetTop: uni_modules_nutuiUni_components__utils_props.truthProp
|
||||
};
|
||||
const popupEmits = {
|
||||
[uni_modules_nutuiUni_components__constants_event.UPDATE_VISIBLE_EVENT]: (value) => true,
|
||||
"click-pop": (event) => true,
|
||||
"click-close-icon": () => true,
|
||||
"click-overlay": () => true,
|
||||
[uni_modules_nutuiUni_components__constants_event.OPEN_EVENT]: () => true,
|
||||
[uni_modules_nutuiUni_components__constants_event.OPENED_EVENT]: () => true,
|
||||
[uni_modules_nutuiUni_components__constants_event.CLOSE_EVENT]: () => true,
|
||||
[uni_modules_nutuiUni_components__constants_event.CLOSED_EVENT]: () => true,
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
"opend": () => true
|
||||
};
|
||||
exports.overlayEmits = overlayEmits;
|
||||
exports.overlayProps = overlayProps;
|
||||
exports.popupEmits = popupEmits;
|
||||
exports.popupProps = popupProps;
|
||||
//# sourceMappingURL=../.sourcemap/mp-weixin/popup.js.map
|
||||
Reference in New Issue
Block a user