@variousjs/create 0.1.0 → 0.3.1

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/demo/dist/card.js CHANGED
@@ -1,696 +1,2 @@
1
- define(["react","antd"], function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_antd__) { return /******/ (function() { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ var __webpack_modules__ = ({
4
-
5
- /***/ "./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/card.less":
6
- /*!***********************************************************************************************************************************************************************!*\
7
- !*** ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/card.less ***!
8
- \***********************************************************************************************************************************************************************/
9
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10
-
11
- __webpack_require__.r(__webpack_exports__);
12
- /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "./node_modules/css-loader/dist/runtime/sourceMaps.js");
13
- /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
14
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
15
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
16
- // Imports
17
-
18
-
19
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
20
- // Module
21
- ___CSS_LOADER_EXPORT___.push([module.id, ".container_Lng5c {\n margin-top: 30px;\n}\n", "",{"version":3,"sources":["webpack://./src/components/card.less"],"names":[],"mappings":"AAAA;EACE,gBAAA;AACF","sourcesContent":[".container {\n margin-top: 30px;\n}\n"],"sourceRoot":""}]);
22
- // Exports
23
- ___CSS_LOADER_EXPORT___.locals = {
24
- "container": "container_Lng5c"
25
- };
26
- /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
27
-
28
-
29
- /***/ }),
30
-
31
- /***/ "./node_modules/css-loader/dist/runtime/api.js":
32
- /*!*****************************************************!*\
33
- !*** ./node_modules/css-loader/dist/runtime/api.js ***!
34
- \*****************************************************/
35
- /***/ (function(module) {
36
-
37
-
38
-
39
- /*
40
- MIT License http://www.opensource.org/licenses/mit-license.php
41
- Author Tobias Koppers @sokra
42
- */
43
- module.exports = function (cssWithMappingToString) {
44
- var list = []; // return the list of modules as css string
45
-
46
- list.toString = function toString() {
47
- return this.map(function (item) {
48
- var content = "";
49
- var needLayer = typeof item[5] !== "undefined";
50
-
51
- if (item[4]) {
52
- content += "@supports (".concat(item[4], ") {");
53
- }
54
-
55
- if (item[2]) {
56
- content += "@media ".concat(item[2], " {");
57
- }
58
-
59
- if (needLayer) {
60
- content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
61
- }
62
-
63
- content += cssWithMappingToString(item);
64
-
65
- if (needLayer) {
66
- content += "}";
67
- }
68
-
69
- if (item[2]) {
70
- content += "}";
71
- }
72
-
73
- if (item[4]) {
74
- content += "}";
75
- }
76
-
77
- return content;
78
- }).join("");
79
- }; // import a list of modules into the list
80
-
81
-
82
- list.i = function i(modules, media, dedupe, supports, layer) {
83
- if (typeof modules === "string") {
84
- modules = [[null, modules, undefined]];
85
- }
86
-
87
- var alreadyImportedModules = {};
88
-
89
- if (dedupe) {
90
- for (var _i = 0; _i < this.length; _i++) {
91
- var id = this[_i][0];
92
-
93
- if (id != null) {
94
- alreadyImportedModules[id] = true;
95
- }
96
- }
97
- }
98
-
99
- for (var _i2 = 0; _i2 < modules.length; _i2++) {
100
- var item = [].concat(modules[_i2]);
101
-
102
- if (dedupe && alreadyImportedModules[item[0]]) {
103
- continue;
104
- }
105
-
106
- if (typeof layer !== "undefined") {
107
- if (typeof item[5] === "undefined") {
108
- item[5] = layer;
109
- } else {
110
- item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
111
- item[5] = layer;
112
- }
113
- }
114
-
115
- if (media) {
116
- if (!item[2]) {
117
- item[2] = media;
118
- } else {
119
- item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
120
- item[2] = media;
121
- }
122
- }
123
-
124
- if (supports) {
125
- if (!item[4]) {
126
- item[4] = "".concat(supports);
127
- } else {
128
- item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
129
- item[4] = supports;
130
- }
131
- }
132
-
133
- list.push(item);
134
- }
135
- };
136
-
137
- return list;
138
- };
139
-
140
- /***/ }),
141
-
142
- /***/ "./node_modules/css-loader/dist/runtime/sourceMaps.js":
143
- /*!************************************************************!*\
144
- !*** ./node_modules/css-loader/dist/runtime/sourceMaps.js ***!
145
- \************************************************************/
146
- /***/ (function(module) {
147
-
148
-
149
-
150
- module.exports = function (item) {
151
- var content = item[1];
152
- var cssMapping = item[3];
153
-
154
- if (!cssMapping) {
155
- return content;
156
- }
157
-
158
- if (typeof btoa === "function") {
159
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
160
- var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
161
- var sourceMapping = "/*# ".concat(data, " */");
162
- var sourceURLs = cssMapping.sources.map(function (source) {
163
- return "/*# sourceURL=".concat(cssMapping.sourceRoot || "").concat(source, " */");
164
- });
165
- return [content].concat(sourceURLs).concat([sourceMapping]).join("\n");
166
- }
167
-
168
- return [content].join("\n");
169
- };
170
-
171
- /***/ }),
172
-
173
- /***/ "./src/components/card.less":
174
- /*!**********************************!*\
175
- !*** ./src/components/card.less ***!
176
- \**********************************/
177
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
178
-
179
- __webpack_require__.r(__webpack_exports__);
180
- /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
181
- /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
182
- /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "./node_modules/style-loader/dist/runtime/styleDomAPI.js");
183
- /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
184
- /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "./node_modules/style-loader/dist/runtime/insertBySelector.js");
185
- /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
186
- /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js");
187
- /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
188
- /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "./node_modules/style-loader/dist/runtime/insertStyleElement.js");
189
- /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
190
- /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "./node_modules/style-loader/dist/runtime/styleTagTransform.js");
191
- /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
192
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_less_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_card_less__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./card.less */ "./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/components/card.less");
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- var options = {};
205
-
206
- options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
207
- options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
208
-
209
- options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
210
-
211
- options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
212
- options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
213
-
214
- var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_less_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_card_less__WEBPACK_IMPORTED_MODULE_6__["default"], options);
215
-
216
-
217
-
218
-
219
- /* harmony default export */ __webpack_exports__["default"] = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_less_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_card_less__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_less_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_card_less__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_less_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_card_less__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);
220
-
221
-
222
- /***/ }),
223
-
224
- /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
225
- /*!****************************************************************************!*\
226
- !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
227
- \****************************************************************************/
228
- /***/ (function(module) {
229
-
230
-
231
-
232
- var stylesInDOM = [];
233
-
234
- function getIndexByIdentifier(identifier) {
235
- var result = -1;
236
-
237
- for (var i = 0; i < stylesInDOM.length; i++) {
238
- if (stylesInDOM[i].identifier === identifier) {
239
- result = i;
240
- break;
241
- }
242
- }
243
-
244
- return result;
245
- }
246
-
247
- function modulesToDom(list, options) {
248
- var idCountMap = {};
249
- var identifiers = [];
250
-
251
- for (var i = 0; i < list.length; i++) {
252
- var item = list[i];
253
- var id = options.base ? item[0] + options.base : item[0];
254
- var count = idCountMap[id] || 0;
255
- var identifier = "".concat(id, " ").concat(count);
256
- idCountMap[id] = count + 1;
257
- var indexByIdentifier = getIndexByIdentifier(identifier);
258
- var obj = {
259
- css: item[1],
260
- media: item[2],
261
- sourceMap: item[3],
262
- supports: item[4],
263
- layer: item[5]
264
- };
265
-
266
- if (indexByIdentifier !== -1) {
267
- stylesInDOM[indexByIdentifier].references++;
268
- stylesInDOM[indexByIdentifier].updater(obj);
269
- } else {
270
- var updater = addElementStyle(obj, options);
271
- options.byIndex = i;
272
- stylesInDOM.splice(i, 0, {
273
- identifier: identifier,
274
- updater: updater,
275
- references: 1
276
- });
277
- }
278
-
279
- identifiers.push(identifier);
280
- }
281
-
282
- return identifiers;
283
- }
284
-
285
- function addElementStyle(obj, options) {
286
- var api = options.domAPI(options);
287
- api.update(obj);
288
-
289
- var updater = function updater(newObj) {
290
- if (newObj) {
291
- if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
292
- return;
293
- }
294
-
295
- api.update(obj = newObj);
296
- } else {
297
- api.remove();
298
- }
299
- };
300
-
301
- return updater;
302
- }
303
-
304
- module.exports = function (list, options) {
305
- options = options || {};
306
- list = list || [];
307
- var lastIdentifiers = modulesToDom(list, options);
308
- return function update(newList) {
309
- newList = newList || [];
310
-
311
- for (var i = 0; i < lastIdentifiers.length; i++) {
312
- var identifier = lastIdentifiers[i];
313
- var index = getIndexByIdentifier(identifier);
314
- stylesInDOM[index].references--;
315
- }
316
-
317
- var newLastIdentifiers = modulesToDom(newList, options);
318
-
319
- for (var _i = 0; _i < lastIdentifiers.length; _i++) {
320
- var _identifier = lastIdentifiers[_i];
321
-
322
- var _index = getIndexByIdentifier(_identifier);
323
-
324
- if (stylesInDOM[_index].references === 0) {
325
- stylesInDOM[_index].updater();
326
-
327
- stylesInDOM.splice(_index, 1);
328
- }
329
- }
330
-
331
- lastIdentifiers = newLastIdentifiers;
332
- };
333
- };
334
-
335
- /***/ }),
336
-
337
- /***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js":
338
- /*!********************************************************************!*\
339
- !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***!
340
- \********************************************************************/
341
- /***/ (function(module) {
342
-
343
-
344
-
345
- var memo = {};
346
- /* istanbul ignore next */
347
-
348
- function getTarget(target) {
349
- if (typeof memo[target] === "undefined") {
350
- var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
351
-
352
- if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
353
- try {
354
- // This will throw an exception if access to iframe is blocked
355
- // due to cross-origin restrictions
356
- styleTarget = styleTarget.contentDocument.head;
357
- } catch (e) {
358
- // istanbul ignore next
359
- styleTarget = null;
360
- }
361
- }
362
-
363
- memo[target] = styleTarget;
364
- }
365
-
366
- return memo[target];
367
- }
368
- /* istanbul ignore next */
369
-
370
-
371
- function insertBySelector(insert, style) {
372
- var target = getTarget(insert);
373
-
374
- if (!target) {
375
- throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
376
- }
377
-
378
- target.appendChild(style);
379
- }
380
-
381
- module.exports = insertBySelector;
382
-
383
- /***/ }),
384
-
385
- /***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js":
386
- /*!**********************************************************************!*\
387
- !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***!
388
- \**********************************************************************/
389
- /***/ (function(module) {
390
-
391
-
392
-
393
- /* istanbul ignore next */
394
- function insertStyleElement(options) {
395
- var element = document.createElement("style");
396
- options.setAttributes(element, options.attributes);
397
- options.insert(element, options.options);
398
- return element;
399
- }
400
-
401
- module.exports = insertStyleElement;
402
-
403
- /***/ }),
404
-
405
- /***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":
406
- /*!**********************************************************************************!*\
407
- !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***!
408
- \**********************************************************************************/
409
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
410
-
411
-
412
-
413
- /* istanbul ignore next */
414
- function setAttributesWithoutAttributes(styleElement) {
415
- var nonce = true ? __webpack_require__.nc : 0;
416
-
417
- if (nonce) {
418
- styleElement.setAttribute("nonce", nonce);
419
- }
420
- }
421
-
422
- module.exports = setAttributesWithoutAttributes;
423
-
424
- /***/ }),
425
-
426
- /***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js":
427
- /*!***************************************************************!*\
428
- !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***!
429
- \***************************************************************/
430
- /***/ (function(module) {
431
-
432
-
433
-
434
- /* istanbul ignore next */
435
- function apply(styleElement, options, obj) {
436
- var css = "";
437
-
438
- if (obj.supports) {
439
- css += "@supports (".concat(obj.supports, ") {");
440
- }
441
-
442
- if (obj.media) {
443
- css += "@media ".concat(obj.media, " {");
444
- }
445
-
446
- var needLayer = typeof obj.layer !== "undefined";
447
-
448
- if (needLayer) {
449
- css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
450
- }
451
-
452
- css += obj.css;
453
-
454
- if (needLayer) {
455
- css += "}";
456
- }
457
-
458
- if (obj.media) {
459
- css += "}";
460
- }
461
-
462
- if (obj.supports) {
463
- css += "}";
464
- }
465
-
466
- var sourceMap = obj.sourceMap;
467
-
468
- if (sourceMap && typeof btoa !== "undefined") {
469
- css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
470
- } // For old IE
471
-
472
- /* istanbul ignore if */
473
-
474
-
475
- options.styleTagTransform(css, styleElement, options.options);
476
- }
477
-
478
- function removeStyleElement(styleElement) {
479
- // istanbul ignore if
480
- if (styleElement.parentNode === null) {
481
- return false;
482
- }
483
-
484
- styleElement.parentNode.removeChild(styleElement);
485
- }
486
- /* istanbul ignore next */
487
-
488
-
489
- function domAPI(options) {
490
- var styleElement = options.insertStyleElement(options);
491
- return {
492
- update: function update(obj) {
493
- apply(styleElement, options, obj);
494
- },
495
- remove: function remove() {
496
- removeStyleElement(styleElement);
497
- }
498
- };
499
- }
500
-
501
- module.exports = domAPI;
502
-
503
- /***/ }),
504
-
505
- /***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js":
506
- /*!*********************************************************************!*\
507
- !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***!
508
- \*********************************************************************/
509
- /***/ (function(module) {
510
-
511
-
512
-
513
- /* istanbul ignore next */
514
- function styleTagTransform(css, styleElement) {
515
- if (styleElement.styleSheet) {
516
- styleElement.styleSheet.cssText = css;
517
- } else {
518
- while (styleElement.firstChild) {
519
- styleElement.removeChild(styleElement.firstChild);
520
- }
521
-
522
- styleElement.appendChild(document.createTextNode(css));
523
- }
524
- }
525
-
526
- module.exports = styleTagTransform;
527
-
528
- /***/ }),
529
-
530
- /***/ "react":
531
- /*!***********************************************!*\
532
- !*** external {"root":"React","amd":"react"} ***!
533
- \***********************************************/
534
- /***/ (function(module) {
535
-
536
- module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
537
-
538
- /***/ }),
539
-
540
- /***/ "antd":
541
- /*!*********************************************!*\
542
- !*** external {"root":"antd","amd":"antd"} ***!
543
- \*********************************************/
544
- /***/ (function(module) {
545
-
546
- module.exports = __WEBPACK_EXTERNAL_MODULE_antd__;
547
-
548
- /***/ })
549
-
550
- /******/ });
551
- /************************************************************************/
552
- /******/ // The module cache
553
- /******/ var __webpack_module_cache__ = {};
554
- /******/
555
- /******/ // The require function
556
- /******/ function __webpack_require__(moduleId) {
557
- /******/ // Check if module is in cache
558
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
559
- /******/ if (cachedModule !== undefined) {
560
- /******/ return cachedModule.exports;
561
- /******/ }
562
- /******/ // Create a new module (and put it into the cache)
563
- /******/ var module = __webpack_module_cache__[moduleId] = {
564
- /******/ id: moduleId,
565
- /******/ // no module.loaded needed
566
- /******/ exports: {}
567
- /******/ };
568
- /******/
569
- /******/ // Execute the module function
570
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
571
- /******/
572
- /******/ // Return the exports of the module
573
- /******/ return module.exports;
574
- /******/ }
575
- /******/
576
- /************************************************************************/
577
- /******/ /* webpack/runtime/compat get default export */
578
- /******/ !function() {
579
- /******/ // getDefaultExport function for compatibility with non-harmony modules
580
- /******/ __webpack_require__.n = function(module) {
581
- /******/ var getter = module && module.__esModule ?
582
- /******/ function() { return module['default']; } :
583
- /******/ function() { return module; };
584
- /******/ __webpack_require__.d(getter, { a: getter });
585
- /******/ return getter;
586
- /******/ };
587
- /******/ }();
588
- /******/
589
- /******/ /* webpack/runtime/define property getters */
590
- /******/ !function() {
591
- /******/ // define getter functions for harmony exports
592
- /******/ __webpack_require__.d = function(exports, definition) {
593
- /******/ for(var key in definition) {
594
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
595
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
596
- /******/ }
597
- /******/ }
598
- /******/ };
599
- /******/ }();
600
- /******/
601
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
602
- /******/ !function() {
603
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
604
- /******/ }();
605
- /******/
606
- /******/ /* webpack/runtime/make namespace object */
607
- /******/ !function() {
608
- /******/ // define __esModule on exports
609
- /******/ __webpack_require__.r = function(exports) {
610
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
611
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
612
- /******/ }
613
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
614
- /******/ };
615
- /******/ }();
616
- /******/
617
- /************************************************************************/
618
- var __webpack_exports__ = {};
619
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
620
- !function() {
621
- /*!*********************************!*\
622
- !*** ./src/components/card.tsx ***!
623
- \*********************************/
624
- __webpack_require__.r(__webpack_exports__);
625
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
626
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
627
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd */ "antd");
628
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(antd__WEBPACK_IMPORTED_MODULE_1__);
629
- /* harmony import */ var _card_less__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./card.less */ "./src/components/card.less");
630
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
631
-
632
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
633
-
634
-
635
-
636
-
637
-
638
- var H = function H(props) {
639
- var _props$$router;
640
-
641
- var id = (_props$$router = props.$router) === null || _props$$router === void 0 ? void 0 : _props$$router.match.params.id;
642
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
643
- className: _card_less__WEBPACK_IMPORTED_MODULE_2__["default"].container
644
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(antd__WEBPACK_IMPORTED_MODULE_1__.Card, {
645
- hoverable: true,
646
- style: {
647
- width: 240
648
- },
649
- cover: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("img", {
650
- alt: "example",
651
- src: "https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png"
652
- }),
653
- actions: [id ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(antd__WEBPACK_IMPORTED_MODULE_1__.Button, {
654
- key: "next",
655
- onClick: function onClick() {
656
- return props.$dispatch('next', 'setValue', 1);
657
- }
658
- }, "Next") : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(antd__WEBPACK_IMPORTED_MODULE_1__.Button, {
659
- key: "store",
660
- type: "primary",
661
- onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
662
- return regeneratorRuntime.wrap(function _callee$(_context) {
663
- while (1) {
664
- switch (_context.prev = _context.next) {
665
- case 0:
666
- _context.next = 2;
667
- return props.$dispatch('store', 'setName', "".concat(Math.random().toFixed(2)));
668
-
669
- case 2:
670
- antd__WEBPACK_IMPORTED_MODULE_1__.message.info('changed');
671
-
672
- case 3:
673
- case "end":
674
- return _context.stop();
675
- }
676
- }
677
- }, _callee);
678
- }))
679
- }, "Store")]
680
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(antd__WEBPACK_IMPORTED_MODULE_1__.Card.Meta, {
681
- title: "Route Params",
682
- description: id || 'none'
683
- })));
684
- };
685
-
686
- H.getName = function (e) {
687
- return antd__WEBPACK_IMPORTED_MODULE_1__.message.info(e);
688
- };
689
-
690
- /* harmony default export */ __webpack_exports__["default"] = (H);
691
- }();
692
- /******/ return __webpack_exports__;
693
- /******/ })()
694
- ;
695
- });;
1
+ define(["react","antd"],(function(e,n){return function(){"use strict";var t={233:function(e,n,t){var r=t(537),o=t.n(r),a=t(645),c=t.n(a)()(o());c.push([e.id,".container_Lng5c {\n margin-top: 30px;\n}\n","",{version:3,sources:["webpack://./src/components/card.less"],names:[],mappings:"AAAA;EACE,gBAAA;AACF",sourcesContent:[".container {\n margin-top: 30px;\n}\n"],sourceRoot:""}]),c.locals={container:"container_Lng5c"},n.Z=c},645:function(e){e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var c={};if(r)for(var i=0;i<this.length;i++){var u=this[i][0];null!=u&&(c[u]=!0)}for(var s=0;s<e.length;s++){var f=[].concat(e[s]);r&&c[f[0]]||(void 0!==a&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=a),t&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=t):f[2]=t),o&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=o):f[4]="".concat(o)),n.push(f))}},n}},537:function(e){e.exports=function(e){var n=e[1],t=e[3];if(!t)return n;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(o," */"),c=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[n].concat(c).concat([a]).join("\n")}return[n].join("\n")}},379:function(e){var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var a={},c=[],i=0;i<e.length;i++){var u=e[i],s=r.base?u[0]+r.base:u[0],f=a[s]||0,p="".concat(s," ").concat(f);a[s]=f+1;var l=t(p),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==l)n[l].references++,n[l].updater(d);else{var v=o(d,r);r.byIndex=i,n.splice(i,0,{identifier:p,updater:v,references:1})}c.push(p)}return c}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var c=0;c<a.length;c++){var i=t(a[c]);n[i].references--}for(var u=r(e,o),s=0;s<a.length;s++){var f=t(a[s]);0===n[f].references&&(n[f].updater(),n.splice(f,1))}a=u}}},569:function(e){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},216:function(e){e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},565:function(e,n,t){e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},795:function(e){e.exports=function(e){var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},589:function(e){e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},161:function(n){n.exports=e},937:function(e){e.exports=n}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={id:e,exports:{}};return t[e](a,a.exports,o),a.exports}o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,{a:n}),n},o.d=function(e,n){for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){o.r(a),o.d(a,{default:function(){return E}});var e=o(161),n=o.n(e),t=o(937),r=o(379),c=o.n(r),i=o(795),u=o.n(i),s=o(569),f=o.n(s),p=o(565),l=o.n(p),d=o(216),v=o.n(d),m=o(589),h=o.n(m),y=o(233),g={};g.styleTagTransform=h(),g.setAttributes=l(),g.insert=f().bind(null,"head"),g.domAPI=u(),g.insertStyleElement=v(),c()(y.Z,g);var b=y.Z&&y.Z.locals?y.Z.locals:void 0;function x(e,n,t,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void t(e)}i.done?n(u):Promise.resolve(u).then(r,o)}function A(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var a=e.apply(n,t);function c(e){x(a,r,o,c,i,"next",e)}function i(e){x(a,r,o,c,i,"throw",e)}c(void 0)}))}}var C=function(e){var r,o=null===(r=e.$router)||void 0===r?void 0:r.match.params.id;return n().createElement("div",{className:b.container},n().createElement(t.Card,{hoverable:!0,style:{width:240},cover:n().createElement("img",{alt:"example",src:"https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png"}),actions:[o?n().createElement(t.Button,{key:"next",onClick:function(){return e.$dispatch("next","setValue",1)}},"Next"):null,n().createElement(t.Button,{key:"store",type:"primary",onClick:A(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$dispatch("store","setName","".concat(Math.random().toFixed(2)));case 2:t.message.info("changed");case 3:case"end":return n.stop()}}),n)})))},"Store")]},n().createElement(t.Card.Meta,{title:"Route Params",description:o||"none"})))};C.getName=function(e){return t.message.info(e)};var E=C}(),a}()}));
696
2
  //# sourceMappingURL=card.js.map