fastman2 3.0.0-alpha.1 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsheetman.js +1 -96
- package/alertman.js +1 -79
- package/annotationman.js +17 -2912
- package/baseman.js +1 -115
- package/blankpageman.js +1 -171
- package/cascadepickerman.js +1 -322
- package/confirmman.js +1 -87
- package/coreman.js +3 -2182
- package/cryptoman.js +2 -8931
- package/datetimepickerman.js +1 -181
- package/domman.js +1 -2759
- package/eventemitterman.js +1 -112
- package/fileuploadman.js +1 -2970
- package/formvalidateman.js +1 -335
- package/jsbridgeman.js +1 -992
- package/lazyloadman.js +1 -133
- package/loadingman.js +1 -81
- package/modalman.js +1 -264
- package/mutationobserverman.js +1 -356
- package/package.json +1 -1
- package/passguardman.js +1 -1722
- package/persistman.js +1 -60
- package/pickerman.js +1 -680
- package/popupman.js +1 -61
- package/postman.js +1 -1649
- package/preloadman.js +2 -8760
- package/resultpageman.js +1 -153
- package/routerman.js +1 -1201
- package/scrollman-infiniteRefresh.js +1 -117
- package/scrollman-pullDownRefresh.js +1 -302
- package/scrollman.js +2 -2567
- package/storeman.js +1 -585
- package/swiperman.js +1 -4702
- package/swiperoldman.js +1 -3005
- package/tabman.js +1 -145
- package/tipman.js +1 -110
- package/toastman.js +1 -78
- package/toolman.js +1 -22
- package/whenman.js +1 -774
- package/wsman.js +1 -7624
package/confirmman.js
CHANGED
|
@@ -1,87 +1 @@
|
|
|
1
|
-
(function
|
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory();
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define([], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["fastman"] = factory();
|
|
8
|
-
else
|
|
9
|
-
root["fastman"] = factory();
|
|
10
|
-
})(this, function() {
|
|
11
|
-
return webpackJsonpfastman([25],{
|
|
12
|
-
|
|
13
|
-
/***/ 218:
|
|
14
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
15
|
-
|
|
16
|
-
module.exports = __webpack_require__(86);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/***/ }),
|
|
20
|
-
|
|
21
|
-
/***/ 86:
|
|
22
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
23
|
-
|
|
24
|
-
"use strict";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Object.defineProperty(exports, "__esModule", {
|
|
28
|
-
value: true
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /*
|
|
32
|
-
* @Author: shenzhiwei
|
|
33
|
-
* @Date: 2018-05-11 10:23:20
|
|
34
|
-
* @Company: orientsec.com.cn
|
|
35
|
-
* @Description: 确认框
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var _modal = __webpack_require__(10);
|
|
40
|
-
|
|
41
|
-
exports.default = function (_text, title, callbackOk, callbackCancel, textOk, textCancel) {
|
|
42
|
-
// 表达式声明
|
|
43
|
-
if (typeof title === 'function') {
|
|
44
|
-
if (textOk) {
|
|
45
|
-
textCancel = textOk;
|
|
46
|
-
}
|
|
47
|
-
if (callbackCancel) {
|
|
48
|
-
textOk = callbackCancel;
|
|
49
|
-
}
|
|
50
|
-
if (callbackOk) {
|
|
51
|
-
callbackCancel = callbackOk;
|
|
52
|
-
}
|
|
53
|
-
callbackOk = title;
|
|
54
|
-
title = undefined;
|
|
55
|
-
}
|
|
56
|
-
// 函数对象式声明
|
|
57
|
-
else if ((typeof _text === 'undefined' ? 'undefined' : _typeof(_text)) === 'object') {
|
|
58
|
-
var _text$text = _text.text,
|
|
59
|
-
text = _text$text === undefined ? '' : _text$text,
|
|
60
|
-
_text$title = _text.title,
|
|
61
|
-
_title = _text$title === undefined ? _modal.defaults.modalTitle : _text$title,
|
|
62
|
-
onCancelClick = _text.onCancelClick,
|
|
63
|
-
onOkClick = _text.onOkClick,
|
|
64
|
-
_text$okText = _text.okText,
|
|
65
|
-
okText = _text$okText === undefined ? _modal.defaults.modalButtonOk : _text$okText,
|
|
66
|
-
_text$cancelText = _text.cancelText,
|
|
67
|
-
cancelText = _text$cancelText === undefined ? _modal.defaults.modalButtonCancel : _text$cancelText;
|
|
68
|
-
|
|
69
|
-
return (0, _modal.modal)({
|
|
70
|
-
text: text,
|
|
71
|
-
title: _title,
|
|
72
|
-
buttons: [{ text: cancelText, onClick: onCancelClick }, { text: okText, bold: true, onClick: onOkClick }],
|
|
73
|
-
extraClass: 'remove-on-close weui'
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return (0, _modal.modal)({
|
|
77
|
-
text: _text || '',
|
|
78
|
-
title: typeof title === 'undefined' ? _modal.defaults.modalTitle : title,
|
|
79
|
-
buttons: [{ text: textCancel || _modal.defaults.modalButtonCancel, onClick: callbackCancel }, { text: textOk || _modal.defaults.modalButtonOk, bold: true, onClick: callbackOk }],
|
|
80
|
-
extraClass: 'remove-on-close weui'
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
/***/ })
|
|
85
|
-
|
|
86
|
-
},[218]);
|
|
87
|
-
});
|
|
1
|
+
!function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.fastman=o():t.fastman=o()}(this,function(){return webpackJsonpfastman([25],{218:function(t,o,e){t.exports=e(86)},86:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=e(10);o.default=function(t,o,e,i,f,u){if("function"==typeof o)f&&(u=f),i&&(f=i),e&&(i=e),e=o,o=void 0;else if("object"===(void 0===t?"undefined":n(t))){var a=t.text,d=void 0===a?"":a,c=t.title,s=void 0===c?l.defaults.modalTitle:c,r=t.onCancelClick,m=t.onOkClick,p=t.okText,y=void 0===p?l.defaults.modalButtonOk:p,b=t.cancelText,x=void 0===b?l.defaults.modalButtonCancel:b;return(0,l.modal)({text:d,title:s,buttons:[{text:x,onClick:r},{text:y,bold:!0,onClick:m}],extraClass:"remove-on-close weui"})}return(0,l.modal)({text:t||"",title:void 0===o?l.defaults.modalTitle:o,buttons:[{text:u||l.defaults.modalButtonCancel,onClick:i},{text:f||l.defaults.modalButtonOk,bold:!0,onClick:e}],extraClass:"remove-on-close weui"})}}},[218])});
|