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/resultpageman.js
CHANGED
|
@@ -1,153 +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([11],{
|
|
12
|
-
|
|
13
|
-
/***/ 212:
|
|
14
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
15
|
-
|
|
16
|
-
module.exports = __webpack_require__(81);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/***/ }),
|
|
20
|
-
|
|
21
|
-
/***/ 33:
|
|
22
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
23
|
-
|
|
24
|
-
"use strict";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Object.defineProperty(exports, "__esModule", {
|
|
28
|
-
value: true
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
exports.default = function (tag, data) {
|
|
32
|
-
var canConcat, oldCanConcat;
|
|
33
|
-
|
|
34
|
-
children = [];
|
|
35
|
-
i = arguments.length;
|
|
36
|
-
|
|
37
|
-
while (i-- > 2) {
|
|
38
|
-
stack.push(arguments[i]);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
while (stack.length) {
|
|
42
|
-
if (Array.isArray(node = stack.pop())) {
|
|
43
|
-
i = node.length;
|
|
44
|
-
|
|
45
|
-
while (i--) {
|
|
46
|
-
stack.push(node[i]);
|
|
47
|
-
}
|
|
48
|
-
} else if (node != null && node !== true && node !== false) {
|
|
49
|
-
// Ignore nulls and booleans; this is conditional rendering.
|
|
50
|
-
|
|
51
|
-
if (typeof node === "number") {
|
|
52
|
-
node = node + "";
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Concatenate contiguous number/string nodes into one string.
|
|
56
|
-
// The idea is to avoid creating unnecessary text nodes.
|
|
57
|
-
|
|
58
|
-
canConcat = typeof node === "string";
|
|
59
|
-
|
|
60
|
-
if (canConcat && oldCanConcat) {
|
|
61
|
-
children[children.length - 1] += node;
|
|
62
|
-
} else {
|
|
63
|
-
children.push(node);
|
|
64
|
-
oldCanConcat = canConcat;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (typeof tag === "function") {
|
|
70
|
-
var _class = new tag(data, children);
|
|
71
|
-
if (_class['render']) {
|
|
72
|
-
return new tag(data, children).render();
|
|
73
|
-
} else {
|
|
74
|
-
// throw new Error("view class must define render function.")
|
|
75
|
-
return tag(data, children);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return {
|
|
80
|
-
tag: tag,
|
|
81
|
-
data: data || {},
|
|
82
|
-
children: children
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
var i,
|
|
87
|
-
node,
|
|
88
|
-
children,
|
|
89
|
-
stack = [];
|
|
90
|
-
|
|
91
|
-
/***/ }),
|
|
92
|
-
|
|
93
|
-
/***/ 81:
|
|
94
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
95
|
-
|
|
96
|
-
"use strict";
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Object.defineProperty(exports, "__esModule", {
|
|
100
|
-
value: true
|
|
101
|
-
});
|
|
102
|
-
exports.ResultPage = undefined;
|
|
103
|
-
|
|
104
|
-
var _h = __webpack_require__(33);
|
|
105
|
-
|
|
106
|
-
var _h2 = _interopRequireDefault(_h);
|
|
107
|
-
|
|
108
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
109
|
-
|
|
110
|
-
var ResultPage = function ResultPage(_ref) {
|
|
111
|
-
var _ref$text = _ref.text,
|
|
112
|
-
text = _ref$text === undefined ? '暂无信息' : _ref$text,
|
|
113
|
-
subtext = _ref.subtext,
|
|
114
|
-
imgurl = _ref.imgurl,
|
|
115
|
-
buttons = _ref.buttons;
|
|
116
|
-
|
|
117
|
-
// 是否buttons是数组且有成员
|
|
118
|
-
var isArrayOrMembers = Object.prototype.toString.call(buttons) == '[object Array]' && buttons.length > 0;
|
|
119
|
-
return (0, _h2.default)(
|
|
120
|
-
'div',
|
|
121
|
-
{ 'class': 'ui-result-page' },
|
|
122
|
-
!!imgurl ? (0, _h2.default)('img', { src: imgurl, 'class': 'ui-result-page-img' }) : undefined,
|
|
123
|
-
(0, _h2.default)(
|
|
124
|
-
'div',
|
|
125
|
-
{ 'class': 'text' },
|
|
126
|
-
text
|
|
127
|
-
),
|
|
128
|
-
!!subtext ? (0, _h2.default)(
|
|
129
|
-
'div',
|
|
130
|
-
{ 'class': 'subtext' },
|
|
131
|
-
subtext
|
|
132
|
-
) : undefined,
|
|
133
|
-
isArrayOrMembers ? (0, _h2.default)(
|
|
134
|
-
'div',
|
|
135
|
-
{ 'class': 'ui-btn-wrap' },
|
|
136
|
-
buttons.map(function (item, index) {
|
|
137
|
-
return (0, _h2.default)(
|
|
138
|
-
'button',
|
|
139
|
-
{ 'class': item.type ? "ui-btn " + item.type : "ui-btn", onclick: item.handler },
|
|
140
|
-
item.text || '确定'
|
|
141
|
-
);
|
|
142
|
-
})
|
|
143
|
-
) : undefined
|
|
144
|
-
);
|
|
145
|
-
}; /**
|
|
146
|
-
* Created by dfzq on 2018/5/16.
|
|
147
|
-
*/
|
|
148
|
-
exports.ResultPage = ResultPage;
|
|
149
|
-
|
|
150
|
-
/***/ })
|
|
151
|
-
|
|
152
|
-
},[212]);
|
|
153
|
-
});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return webpackJsonpfastman([11],{212:function(e,t,n){e.exports=n(81)},33:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,s;for(o=[],u=arguments.length;u-- >2;)i.push(arguments[u]);for(;i.length;)if(Array.isArray(r=i.pop()))for(u=r.length;u--;)i.push(r[u]);else null!=r&&!0!==r&&!1!==r&&("number"==typeof r&&(r+=""),n="string"==typeof r,n&&s?o[o.length-1]+=r:(o.push(r),s=n));if("function"==typeof e){return new e(t,o).render?new e(t,o).render():e(t,o)}return{tag:e,data:t||{},children:o}};var u,r,o,i=[]},81:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultPage=void 0;var u=n(33),r=function(e){return e&&e.__esModule?e:{default:e}}(u),o=function(e){var t=e.text,n=void 0===t?"暂无信息":t,u=e.subtext,o=e.imgurl,i=e.buttons,s="[object Array]"==Object.prototype.toString.call(i)&&i.length>0;return(0,r.default)("div",{class:"ui-result-page"},o?(0,r.default)("img",{src:o,class:"ui-result-page-img"}):void 0,(0,r.default)("div",{class:"text"},n),u?(0,r.default)("div",{class:"subtext"},u):void 0,s?(0,r.default)("div",{class:"ui-btn-wrap"},i.map(function(e,t){return(0,r.default)("button",{class:e.type?"ui-btn "+e.type:"ui-btn",onclick:e.handler},e.text||"确定")})):void 0)};t.ResultPage=o}},[212])});
|