@deanwu/vue-component-library 1.0.8 → 1.0.10

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.
@@ -1,9 +1,1616 @@
1
1
  /******/ (function() { // webpackBootstrap
2
2
  /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ 9662:
6
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
7
+
8
+
9
+ var isCallable = __webpack_require__(614);
10
+ var tryToString = __webpack_require__(6330);
11
+
12
+ var $TypeError = TypeError;
13
+
14
+ // `Assert: IsCallable(argument) is true`
15
+ module.exports = function (argument) {
16
+ if (isCallable(argument)) return argument;
17
+ throw $TypeError(tryToString(argument) + ' is not a function');
18
+ };
19
+
20
+
21
+ /***/ }),
22
+
23
+ /***/ 9670:
24
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25
+
26
+
27
+ var isObject = __webpack_require__(111);
28
+
29
+ var $String = String;
30
+ var $TypeError = TypeError;
31
+
32
+ // `Assert: Type(argument) is Object`
33
+ module.exports = function (argument) {
34
+ if (isObject(argument)) return argument;
35
+ throw $TypeError($String(argument) + ' is not an object');
36
+ };
37
+
38
+
39
+ /***/ }),
40
+
41
+ /***/ 1318:
42
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
43
+
44
+
45
+ var toIndexedObject = __webpack_require__(5656);
46
+ var toAbsoluteIndex = __webpack_require__(1400);
47
+ var lengthOfArrayLike = __webpack_require__(6244);
48
+
49
+ // `Array.prototype.{ indexOf, includes }` methods implementation
50
+ var createMethod = function (IS_INCLUDES) {
51
+ return function ($this, el, fromIndex) {
52
+ var O = toIndexedObject($this);
53
+ var length = lengthOfArrayLike(O);
54
+ var index = toAbsoluteIndex(fromIndex, length);
55
+ var value;
56
+ // Array#includes uses SameValueZero equality algorithm
57
+ // eslint-disable-next-line no-self-compare -- NaN check
58
+ if (IS_INCLUDES && el !== el) while (length > index) {
59
+ value = O[index++];
60
+ // eslint-disable-next-line no-self-compare -- NaN check
61
+ if (value !== value) return true;
62
+ // Array#indexOf ignores holes, Array#includes - not
63
+ } else for (;length > index; index++) {
64
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
65
+ } return !IS_INCLUDES && -1;
66
+ };
67
+ };
68
+
69
+ module.exports = {
70
+ // `Array.prototype.includes` method
71
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
72
+ includes: createMethod(true),
73
+ // `Array.prototype.indexOf` method
74
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
75
+ indexOf: createMethod(false)
76
+ };
77
+
78
+
79
+ /***/ }),
80
+
81
+ /***/ 3658:
82
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
83
+
84
+
85
+ var DESCRIPTORS = __webpack_require__(9781);
86
+ var isArray = __webpack_require__(3157);
87
+
88
+ var $TypeError = TypeError;
89
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
90
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
91
+
92
+ // Safari < 13 does not throw an error in this case
93
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
94
+ // makes no sense without proper strict mode support
95
+ if (this !== undefined) return true;
96
+ try {
97
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
98
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
99
+ } catch (error) {
100
+ return error instanceof TypeError;
101
+ }
102
+ }();
103
+
104
+ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
105
+ if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
106
+ throw $TypeError('Cannot set read only .length');
107
+ } return O.length = length;
108
+ } : function (O, length) {
109
+ return O.length = length;
110
+ };
111
+
112
+
113
+ /***/ }),
114
+
115
+ /***/ 4326:
116
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
117
+
118
+
119
+ var uncurryThis = __webpack_require__(1702);
120
+
121
+ var toString = uncurryThis({}.toString);
122
+ var stringSlice = uncurryThis(''.slice);
123
+
124
+ module.exports = function (it) {
125
+ return stringSlice(toString(it), 8, -1);
126
+ };
127
+
128
+
129
+ /***/ }),
130
+
131
+ /***/ 9920:
132
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
133
+
134
+
135
+ var hasOwn = __webpack_require__(2597);
136
+ var ownKeys = __webpack_require__(3887);
137
+ var getOwnPropertyDescriptorModule = __webpack_require__(1236);
138
+ var definePropertyModule = __webpack_require__(3070);
139
+
140
+ module.exports = function (target, source, exceptions) {
141
+ var keys = ownKeys(source);
142
+ var defineProperty = definePropertyModule.f;
143
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
144
+ for (var i = 0; i < keys.length; i++) {
145
+ var key = keys[i];
146
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
147
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
148
+ }
149
+ }
150
+ };
151
+
152
+
153
+ /***/ }),
154
+
155
+ /***/ 8880:
156
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
157
+
158
+
159
+ var DESCRIPTORS = __webpack_require__(9781);
160
+ var definePropertyModule = __webpack_require__(3070);
161
+ var createPropertyDescriptor = __webpack_require__(9114);
162
+
163
+ module.exports = DESCRIPTORS ? function (object, key, value) {
164
+ return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
165
+ } : function (object, key, value) {
166
+ object[key] = value;
167
+ return object;
168
+ };
169
+
170
+
171
+ /***/ }),
172
+
173
+ /***/ 9114:
174
+ /***/ (function(module) {
175
+
176
+
177
+ module.exports = function (bitmap, value) {
178
+ return {
179
+ enumerable: !(bitmap & 1),
180
+ configurable: !(bitmap & 2),
181
+ writable: !(bitmap & 4),
182
+ value: value
183
+ };
184
+ };
185
+
186
+
187
+ /***/ }),
188
+
189
+ /***/ 8052:
190
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
191
+
192
+
193
+ var isCallable = __webpack_require__(614);
194
+ var definePropertyModule = __webpack_require__(3070);
195
+ var makeBuiltIn = __webpack_require__(6339);
196
+ var defineGlobalProperty = __webpack_require__(3072);
197
+
198
+ module.exports = function (O, key, value, options) {
199
+ if (!options) options = {};
200
+ var simple = options.enumerable;
201
+ var name = options.name !== undefined ? options.name : key;
202
+ if (isCallable(value)) makeBuiltIn(value, name, options);
203
+ if (options.global) {
204
+ if (simple) O[key] = value;
205
+ else defineGlobalProperty(key, value);
206
+ } else {
207
+ try {
208
+ if (!options.unsafe) delete O[key];
209
+ else if (O[key]) simple = true;
210
+ } catch (error) { /* empty */ }
211
+ if (simple) O[key] = value;
212
+ else definePropertyModule.f(O, key, {
213
+ value: value,
214
+ enumerable: false,
215
+ configurable: !options.nonConfigurable,
216
+ writable: !options.nonWritable
217
+ });
218
+ } return O;
219
+ };
220
+
221
+
222
+ /***/ }),
223
+
224
+ /***/ 3072:
225
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
226
+
227
+
228
+ var global = __webpack_require__(7854);
229
+
230
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
231
+ var defineProperty = Object.defineProperty;
232
+
233
+ module.exports = function (key, value) {
234
+ try {
235
+ defineProperty(global, key, { value: value, configurable: true, writable: true });
236
+ } catch (error) {
237
+ global[key] = value;
238
+ } return value;
239
+ };
240
+
241
+
242
+ /***/ }),
243
+
244
+ /***/ 9781:
245
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
246
+
247
+
248
+ var fails = __webpack_require__(7293);
249
+
250
+ // Detect IE8's incomplete defineProperty implementation
251
+ module.exports = !fails(function () {
252
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
253
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
254
+ });
255
+
256
+
257
+ /***/ }),
258
+
259
+ /***/ 4154:
260
+ /***/ (function(module) {
261
+
262
+
263
+ var documentAll = typeof document == 'object' && document.all;
264
+
265
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
266
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
267
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
268
+
269
+ module.exports = {
270
+ all: documentAll,
271
+ IS_HTMLDDA: IS_HTMLDDA
272
+ };
273
+
274
+
275
+ /***/ }),
276
+
277
+ /***/ 317:
278
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
279
+
280
+
281
+ var global = __webpack_require__(7854);
282
+ var isObject = __webpack_require__(111);
283
+
284
+ var document = global.document;
285
+ // typeof document.createElement is 'object' in old IE
286
+ var EXISTS = isObject(document) && isObject(document.createElement);
287
+
288
+ module.exports = function (it) {
289
+ return EXISTS ? document.createElement(it) : {};
290
+ };
291
+
292
+
293
+ /***/ }),
294
+
295
+ /***/ 7207:
296
+ /***/ (function(module) {
297
+
298
+
299
+ var $TypeError = TypeError;
300
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
301
+
302
+ module.exports = function (it) {
303
+ if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
304
+ return it;
305
+ };
306
+
307
+
308
+ /***/ }),
309
+
310
+ /***/ 8113:
311
+ /***/ (function(module) {
312
+
313
+
314
+ module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
315
+
316
+
317
+ /***/ }),
318
+
319
+ /***/ 7392:
320
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
321
+
322
+
323
+ var global = __webpack_require__(7854);
324
+ var userAgent = __webpack_require__(8113);
325
+
326
+ var process = global.process;
327
+ var Deno = global.Deno;
328
+ var versions = process && process.versions || Deno && Deno.version;
329
+ var v8 = versions && versions.v8;
330
+ var match, version;
331
+
332
+ if (v8) {
333
+ match = v8.split('.');
334
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
335
+ // but their correct versions are not interesting for us
336
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
337
+ }
338
+
339
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
340
+ // so check `userAgent` even if `.v8` exists, but 0
341
+ if (!version && userAgent) {
342
+ match = userAgent.match(/Edge\/(\d+)/);
343
+ if (!match || match[1] >= 74) {
344
+ match = userAgent.match(/Chrome\/(\d+)/);
345
+ if (match) version = +match[1];
346
+ }
347
+ }
348
+
349
+ module.exports = version;
350
+
351
+
352
+ /***/ }),
353
+
354
+ /***/ 748:
355
+ /***/ (function(module) {
356
+
357
+
358
+ // IE8- don't enum bug keys
359
+ module.exports = [
360
+ 'constructor',
361
+ 'hasOwnProperty',
362
+ 'isPrototypeOf',
363
+ 'propertyIsEnumerable',
364
+ 'toLocaleString',
365
+ 'toString',
366
+ 'valueOf'
367
+ ];
368
+
369
+
370
+ /***/ }),
371
+
372
+ /***/ 2109:
373
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
374
+
375
+
376
+ var global = __webpack_require__(7854);
377
+ var getOwnPropertyDescriptor = (__webpack_require__(1236).f);
378
+ var createNonEnumerableProperty = __webpack_require__(8880);
379
+ var defineBuiltIn = __webpack_require__(8052);
380
+ var defineGlobalProperty = __webpack_require__(3072);
381
+ var copyConstructorProperties = __webpack_require__(9920);
382
+ var isForced = __webpack_require__(4705);
383
+
384
+ /*
385
+ options.target - name of the target object
386
+ options.global - target is the global object
387
+ options.stat - export as static methods of target
388
+ options.proto - export as prototype methods of target
389
+ options.real - real prototype method for the `pure` version
390
+ options.forced - export even if the native feature is available
391
+ options.bind - bind methods to the target, required for the `pure` version
392
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
393
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
394
+ options.sham - add a flag to not completely full polyfills
395
+ options.enumerable - export as enumerable property
396
+ options.dontCallGetSet - prevent calling a getter on target
397
+ options.name - the .name of the function if it does not match the key
398
+ */
399
+ module.exports = function (options, source) {
400
+ var TARGET = options.target;
401
+ var GLOBAL = options.global;
402
+ var STATIC = options.stat;
403
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
404
+ if (GLOBAL) {
405
+ target = global;
406
+ } else if (STATIC) {
407
+ target = global[TARGET] || defineGlobalProperty(TARGET, {});
408
+ } else {
409
+ target = (global[TARGET] || {}).prototype;
410
+ }
411
+ if (target) for (key in source) {
412
+ sourceProperty = source[key];
413
+ if (options.dontCallGetSet) {
414
+ descriptor = getOwnPropertyDescriptor(target, key);
415
+ targetProperty = descriptor && descriptor.value;
416
+ } else targetProperty = target[key];
417
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
418
+ // contained in target
419
+ if (!FORCED && targetProperty !== undefined) {
420
+ if (typeof sourceProperty == typeof targetProperty) continue;
421
+ copyConstructorProperties(sourceProperty, targetProperty);
422
+ }
423
+ // add a flag to not completely full polyfills
424
+ if (options.sham || (targetProperty && targetProperty.sham)) {
425
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
426
+ }
427
+ defineBuiltIn(target, key, sourceProperty, options);
428
+ }
429
+ };
430
+
431
+
432
+ /***/ }),
433
+
434
+ /***/ 7293:
435
+ /***/ (function(module) {
436
+
437
+
438
+ module.exports = function (exec) {
439
+ try {
440
+ return !!exec();
441
+ } catch (error) {
442
+ return true;
443
+ }
444
+ };
445
+
446
+
447
+ /***/ }),
448
+
449
+ /***/ 4374:
450
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
451
+
452
+
453
+ var fails = __webpack_require__(7293);
454
+
455
+ module.exports = !fails(function () {
456
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
457
+ var test = (function () { /* empty */ }).bind();
458
+ // eslint-disable-next-line no-prototype-builtins -- safe
459
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
460
+ });
461
+
462
+
463
+ /***/ }),
464
+
465
+ /***/ 6916:
466
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
467
+
468
+
469
+ var NATIVE_BIND = __webpack_require__(4374);
470
+
471
+ var call = Function.prototype.call;
472
+
473
+ module.exports = NATIVE_BIND ? call.bind(call) : function () {
474
+ return call.apply(call, arguments);
475
+ };
476
+
477
+
478
+ /***/ }),
479
+
480
+ /***/ 6530:
481
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
482
+
483
+
484
+ var DESCRIPTORS = __webpack_require__(9781);
485
+ var hasOwn = __webpack_require__(2597);
486
+
487
+ var FunctionPrototype = Function.prototype;
488
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
489
+ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
490
+
491
+ var EXISTS = hasOwn(FunctionPrototype, 'name');
492
+ // additional protection from minified / mangled / dropped function names
493
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
494
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
495
+
496
+ module.exports = {
497
+ EXISTS: EXISTS,
498
+ PROPER: PROPER,
499
+ CONFIGURABLE: CONFIGURABLE
500
+ };
501
+
502
+
503
+ /***/ }),
504
+
505
+ /***/ 1702:
506
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
507
+
508
+
509
+ var NATIVE_BIND = __webpack_require__(4374);
510
+
511
+ var FunctionPrototype = Function.prototype;
512
+ var call = FunctionPrototype.call;
513
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
514
+
515
+ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
516
+ return function () {
517
+ return call.apply(fn, arguments);
518
+ };
519
+ };
520
+
521
+
522
+ /***/ }),
523
+
524
+ /***/ 5005:
525
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
526
+
527
+
528
+ var global = __webpack_require__(7854);
529
+ var isCallable = __webpack_require__(614);
530
+
531
+ var aFunction = function (argument) {
532
+ return isCallable(argument) ? argument : undefined;
533
+ };
534
+
535
+ module.exports = function (namespace, method) {
536
+ return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
537
+ };
538
+
539
+
540
+ /***/ }),
541
+
542
+ /***/ 8173:
543
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
544
+
545
+
546
+ var aCallable = __webpack_require__(9662);
547
+ var isNullOrUndefined = __webpack_require__(8554);
548
+
549
+ // `GetMethod` abstract operation
550
+ // https://tc39.es/ecma262/#sec-getmethod
551
+ module.exports = function (V, P) {
552
+ var func = V[P];
553
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
554
+ };
555
+
556
+
557
+ /***/ }),
558
+
559
+ /***/ 7854:
560
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
561
+
562
+
563
+ var check = function (it) {
564
+ return it && it.Math === Math && it;
565
+ };
566
+
567
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
568
+ module.exports =
569
+ // eslint-disable-next-line es/no-global-this -- safe
570
+ check(typeof globalThis == 'object' && globalThis) ||
571
+ check(typeof window == 'object' && window) ||
572
+ // eslint-disable-next-line no-restricted-globals -- safe
573
+ check(typeof self == 'object' && self) ||
574
+ check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
575
+ // eslint-disable-next-line no-new-func -- fallback
576
+ (function () { return this; })() || this || Function('return this')();
577
+
578
+
579
+ /***/ }),
580
+
581
+ /***/ 2597:
582
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
583
+
584
+
585
+ var uncurryThis = __webpack_require__(1702);
586
+ var toObject = __webpack_require__(7908);
587
+
588
+ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
589
+
590
+ // `HasOwnProperty` abstract operation
591
+ // https://tc39.es/ecma262/#sec-hasownproperty
592
+ // eslint-disable-next-line es/no-object-hasown -- safe
593
+ module.exports = Object.hasOwn || function hasOwn(it, key) {
594
+ return hasOwnProperty(toObject(it), key);
595
+ };
596
+
597
+
598
+ /***/ }),
599
+
600
+ /***/ 3501:
601
+ /***/ (function(module) {
602
+
603
+
604
+ module.exports = {};
605
+
606
+
607
+ /***/ }),
608
+
609
+ /***/ 4664:
610
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
611
+
612
+
613
+ var DESCRIPTORS = __webpack_require__(9781);
614
+ var fails = __webpack_require__(7293);
615
+ var createElement = __webpack_require__(317);
616
+
617
+ // Thanks to IE8 for its funny defineProperty
618
+ module.exports = !DESCRIPTORS && !fails(function () {
619
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
620
+ return Object.defineProperty(createElement('div'), 'a', {
621
+ get: function () { return 7; }
622
+ }).a !== 7;
623
+ });
624
+
625
+
626
+ /***/ }),
627
+
628
+ /***/ 8361:
629
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
630
+
631
+
632
+ var uncurryThis = __webpack_require__(1702);
633
+ var fails = __webpack_require__(7293);
634
+ var classof = __webpack_require__(4326);
635
+
636
+ var $Object = Object;
637
+ var split = uncurryThis(''.split);
638
+
639
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
640
+ module.exports = fails(function () {
641
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
642
+ // eslint-disable-next-line no-prototype-builtins -- safe
643
+ return !$Object('z').propertyIsEnumerable(0);
644
+ }) ? function (it) {
645
+ return classof(it) === 'String' ? split(it, '') : $Object(it);
646
+ } : $Object;
647
+
648
+
649
+ /***/ }),
650
+
651
+ /***/ 2788:
652
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
653
+
654
+
655
+ var uncurryThis = __webpack_require__(1702);
656
+ var isCallable = __webpack_require__(614);
657
+ var store = __webpack_require__(5465);
658
+
659
+ var functionToString = uncurryThis(Function.toString);
660
+
661
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
662
+ if (!isCallable(store.inspectSource)) {
663
+ store.inspectSource = function (it) {
664
+ return functionToString(it);
665
+ };
666
+ }
667
+
668
+ module.exports = store.inspectSource;
669
+
670
+
671
+ /***/ }),
672
+
673
+ /***/ 9909:
674
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
675
+
676
+
677
+ var NATIVE_WEAK_MAP = __webpack_require__(4811);
678
+ var global = __webpack_require__(7854);
679
+ var isObject = __webpack_require__(111);
680
+ var createNonEnumerableProperty = __webpack_require__(8880);
681
+ var hasOwn = __webpack_require__(2597);
682
+ var shared = __webpack_require__(5465);
683
+ var sharedKey = __webpack_require__(6200);
684
+ var hiddenKeys = __webpack_require__(3501);
685
+
686
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
687
+ var TypeError = global.TypeError;
688
+ var WeakMap = global.WeakMap;
689
+ var set, get, has;
690
+
691
+ var enforce = function (it) {
692
+ return has(it) ? get(it) : set(it, {});
693
+ };
694
+
695
+ var getterFor = function (TYPE) {
696
+ return function (it) {
697
+ var state;
698
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
699
+ throw TypeError('Incompatible receiver, ' + TYPE + ' required');
700
+ } return state;
701
+ };
702
+ };
703
+
704
+ if (NATIVE_WEAK_MAP || shared.state) {
705
+ var store = shared.state || (shared.state = new WeakMap());
706
+ /* eslint-disable no-self-assign -- prototype methods protection */
707
+ store.get = store.get;
708
+ store.has = store.has;
709
+ store.set = store.set;
710
+ /* eslint-enable no-self-assign -- prototype methods protection */
711
+ set = function (it, metadata) {
712
+ if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
713
+ metadata.facade = it;
714
+ store.set(it, metadata);
715
+ return metadata;
716
+ };
717
+ get = function (it) {
718
+ return store.get(it) || {};
719
+ };
720
+ has = function (it) {
721
+ return store.has(it);
722
+ };
723
+ } else {
724
+ var STATE = sharedKey('state');
725
+ hiddenKeys[STATE] = true;
726
+ set = function (it, metadata) {
727
+ if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
728
+ metadata.facade = it;
729
+ createNonEnumerableProperty(it, STATE, metadata);
730
+ return metadata;
731
+ };
732
+ get = function (it) {
733
+ return hasOwn(it, STATE) ? it[STATE] : {};
734
+ };
735
+ has = function (it) {
736
+ return hasOwn(it, STATE);
737
+ };
738
+ }
739
+
740
+ module.exports = {
741
+ set: set,
742
+ get: get,
743
+ has: has,
744
+ enforce: enforce,
745
+ getterFor: getterFor
746
+ };
747
+
748
+
749
+ /***/ }),
750
+
751
+ /***/ 3157:
752
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
753
+
754
+
755
+ var classof = __webpack_require__(4326);
756
+
757
+ // `IsArray` abstract operation
758
+ // https://tc39.es/ecma262/#sec-isarray
759
+ // eslint-disable-next-line es/no-array-isarray -- safe
760
+ module.exports = Array.isArray || function isArray(argument) {
761
+ return classof(argument) === 'Array';
762
+ };
763
+
764
+
765
+ /***/ }),
766
+
767
+ /***/ 614:
768
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
769
+
770
+
771
+ var $documentAll = __webpack_require__(4154);
772
+
773
+ var documentAll = $documentAll.all;
774
+
775
+ // `IsCallable` abstract operation
776
+ // https://tc39.es/ecma262/#sec-iscallable
777
+ module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
778
+ return typeof argument == 'function' || argument === documentAll;
779
+ } : function (argument) {
780
+ return typeof argument == 'function';
781
+ };
782
+
783
+
784
+ /***/ }),
785
+
786
+ /***/ 4705:
787
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
788
+
789
+
790
+ var fails = __webpack_require__(7293);
791
+ var isCallable = __webpack_require__(614);
792
+
793
+ var replacement = /#|\.prototype\./;
794
+
795
+ var isForced = function (feature, detection) {
796
+ var value = data[normalize(feature)];
797
+ return value === POLYFILL ? true
798
+ : value === NATIVE ? false
799
+ : isCallable(detection) ? fails(detection)
800
+ : !!detection;
801
+ };
802
+
803
+ var normalize = isForced.normalize = function (string) {
804
+ return String(string).replace(replacement, '.').toLowerCase();
805
+ };
806
+
807
+ var data = isForced.data = {};
808
+ var NATIVE = isForced.NATIVE = 'N';
809
+ var POLYFILL = isForced.POLYFILL = 'P';
810
+
811
+ module.exports = isForced;
812
+
813
+
814
+ /***/ }),
815
+
816
+ /***/ 8554:
817
+ /***/ (function(module) {
818
+
819
+
820
+ // we can't use just `it == null` since of `document.all` special case
821
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
822
+ module.exports = function (it) {
823
+ return it === null || it === undefined;
824
+ };
825
+
826
+
827
+ /***/ }),
828
+
829
+ /***/ 111:
830
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
831
+
832
+
833
+ var isCallable = __webpack_require__(614);
834
+ var $documentAll = __webpack_require__(4154);
835
+
836
+ var documentAll = $documentAll.all;
837
+
838
+ module.exports = $documentAll.IS_HTMLDDA ? function (it) {
839
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
840
+ } : function (it) {
841
+ return typeof it == 'object' ? it !== null : isCallable(it);
842
+ };
843
+
844
+
845
+ /***/ }),
846
+
847
+ /***/ 1913:
848
+ /***/ (function(module) {
849
+
850
+
851
+ module.exports = false;
852
+
853
+
854
+ /***/ }),
855
+
856
+ /***/ 2190:
857
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
858
+
859
+
860
+ var getBuiltIn = __webpack_require__(5005);
861
+ var isCallable = __webpack_require__(614);
862
+ var isPrototypeOf = __webpack_require__(7976);
863
+ var USE_SYMBOL_AS_UID = __webpack_require__(3307);
864
+
865
+ var $Object = Object;
866
+
867
+ module.exports = USE_SYMBOL_AS_UID ? function (it) {
868
+ return typeof it == 'symbol';
869
+ } : function (it) {
870
+ var $Symbol = getBuiltIn('Symbol');
871
+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
872
+ };
873
+
874
+
875
+ /***/ }),
876
+
877
+ /***/ 6244:
878
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
879
+
880
+
881
+ var toLength = __webpack_require__(7466);
882
+
883
+ // `LengthOfArrayLike` abstract operation
884
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
885
+ module.exports = function (obj) {
886
+ return toLength(obj.length);
887
+ };
888
+
889
+
890
+ /***/ }),
891
+
892
+ /***/ 6339:
893
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
894
+
895
+
896
+ var uncurryThis = __webpack_require__(1702);
897
+ var fails = __webpack_require__(7293);
898
+ var isCallable = __webpack_require__(614);
899
+ var hasOwn = __webpack_require__(2597);
900
+ var DESCRIPTORS = __webpack_require__(9781);
901
+ var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(6530).CONFIGURABLE);
902
+ var inspectSource = __webpack_require__(2788);
903
+ var InternalStateModule = __webpack_require__(9909);
904
+
905
+ var enforceInternalState = InternalStateModule.enforce;
906
+ var getInternalState = InternalStateModule.get;
907
+ var $String = String;
908
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
909
+ var defineProperty = Object.defineProperty;
910
+ var stringSlice = uncurryThis(''.slice);
911
+ var replace = uncurryThis(''.replace);
912
+ var join = uncurryThis([].join);
913
+
914
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
915
+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
916
+ });
917
+
918
+ var TEMPLATE = String(String).split('String');
919
+
920
+ var makeBuiltIn = module.exports = function (value, name, options) {
921
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
922
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
923
+ }
924
+ if (options && options.getter) name = 'get ' + name;
925
+ if (options && options.setter) name = 'set ' + name;
926
+ if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
927
+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
928
+ else value.name = name;
929
+ }
930
+ if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
931
+ defineProperty(value, 'length', { value: options.arity });
932
+ }
933
+ try {
934
+ if (options && hasOwn(options, 'constructor') && options.constructor) {
935
+ if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
936
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
937
+ } else if (value.prototype) value.prototype = undefined;
938
+ } catch (error) { /* empty */ }
939
+ var state = enforceInternalState(value);
940
+ if (!hasOwn(state, 'source')) {
941
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
942
+ } return value;
943
+ };
944
+
945
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
946
+ // eslint-disable-next-line no-extend-native -- required
947
+ Function.prototype.toString = makeBuiltIn(function toString() {
948
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
949
+ }, 'toString');
950
+
951
+
952
+ /***/ }),
953
+
954
+ /***/ 4758:
955
+ /***/ (function(module) {
956
+
957
+
958
+ var ceil = Math.ceil;
959
+ var floor = Math.floor;
960
+
961
+ // `Math.trunc` method
962
+ // https://tc39.es/ecma262/#sec-math.trunc
963
+ // eslint-disable-next-line es/no-math-trunc -- safe
964
+ module.exports = Math.trunc || function trunc(x) {
965
+ var n = +x;
966
+ return (n > 0 ? floor : ceil)(n);
967
+ };
968
+
969
+
970
+ /***/ }),
971
+
972
+ /***/ 3070:
973
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
974
+
975
+
976
+ var DESCRIPTORS = __webpack_require__(9781);
977
+ var IE8_DOM_DEFINE = __webpack_require__(4664);
978
+ var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(3353);
979
+ var anObject = __webpack_require__(9670);
980
+ var toPropertyKey = __webpack_require__(4948);
981
+
982
+ var $TypeError = TypeError;
983
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
984
+ var $defineProperty = Object.defineProperty;
985
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
986
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
987
+ var ENUMERABLE = 'enumerable';
988
+ var CONFIGURABLE = 'configurable';
989
+ var WRITABLE = 'writable';
990
+
991
+ // `Object.defineProperty` method
992
+ // https://tc39.es/ecma262/#sec-object.defineproperty
993
+ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
994
+ anObject(O);
995
+ P = toPropertyKey(P);
996
+ anObject(Attributes);
997
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
998
+ var current = $getOwnPropertyDescriptor(O, P);
999
+ if (current && current[WRITABLE]) {
1000
+ O[P] = Attributes.value;
1001
+ Attributes = {
1002
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
1003
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
1004
+ writable: false
1005
+ };
1006
+ }
1007
+ } return $defineProperty(O, P, Attributes);
1008
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
1009
+ anObject(O);
1010
+ P = toPropertyKey(P);
1011
+ anObject(Attributes);
1012
+ if (IE8_DOM_DEFINE) try {
1013
+ return $defineProperty(O, P, Attributes);
1014
+ } catch (error) { /* empty */ }
1015
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
1016
+ if ('value' in Attributes) O[P] = Attributes.value;
1017
+ return O;
1018
+ };
1019
+
1020
+
1021
+ /***/ }),
1022
+
1023
+ /***/ 1236:
1024
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1025
+
1026
+
1027
+ var DESCRIPTORS = __webpack_require__(9781);
1028
+ var call = __webpack_require__(6916);
1029
+ var propertyIsEnumerableModule = __webpack_require__(5296);
1030
+ var createPropertyDescriptor = __webpack_require__(9114);
1031
+ var toIndexedObject = __webpack_require__(5656);
1032
+ var toPropertyKey = __webpack_require__(4948);
1033
+ var hasOwn = __webpack_require__(2597);
1034
+ var IE8_DOM_DEFINE = __webpack_require__(4664);
1035
+
1036
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1037
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1038
+
1039
+ // `Object.getOwnPropertyDescriptor` method
1040
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1041
+ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
1042
+ O = toIndexedObject(O);
1043
+ P = toPropertyKey(P);
1044
+ if (IE8_DOM_DEFINE) try {
1045
+ return $getOwnPropertyDescriptor(O, P);
1046
+ } catch (error) { /* empty */ }
1047
+ if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
1048
+ };
1049
+
1050
+
1051
+ /***/ }),
1052
+
1053
+ /***/ 8006:
1054
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1055
+
1056
+
1057
+ var internalObjectKeys = __webpack_require__(6324);
1058
+ var enumBugKeys = __webpack_require__(748);
1059
+
1060
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1061
+
1062
+ // `Object.getOwnPropertyNames` method
1063
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1064
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1065
+ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1066
+ return internalObjectKeys(O, hiddenKeys);
1067
+ };
1068
+
1069
+
1070
+ /***/ }),
1071
+
1072
+ /***/ 5181:
1073
+ /***/ (function(__unused_webpack_module, exports) {
1074
+
1075
+
1076
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1077
+ exports.f = Object.getOwnPropertySymbols;
1078
+
1079
+
1080
+ /***/ }),
1081
+
1082
+ /***/ 7976:
1083
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1084
+
1085
+
1086
+ var uncurryThis = __webpack_require__(1702);
1087
+
1088
+ module.exports = uncurryThis({}.isPrototypeOf);
1089
+
1090
+
1091
+ /***/ }),
1092
+
1093
+ /***/ 6324:
1094
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1095
+
1096
+
1097
+ var uncurryThis = __webpack_require__(1702);
1098
+ var hasOwn = __webpack_require__(2597);
1099
+ var toIndexedObject = __webpack_require__(5656);
1100
+ var indexOf = (__webpack_require__(1318).indexOf);
1101
+ var hiddenKeys = __webpack_require__(3501);
1102
+
1103
+ var push = uncurryThis([].push);
1104
+
1105
+ module.exports = function (object, names) {
1106
+ var O = toIndexedObject(object);
1107
+ var i = 0;
1108
+ var result = [];
1109
+ var key;
1110
+ for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
1111
+ // Don't enum bug & hidden keys
1112
+ while (names.length > i) if (hasOwn(O, key = names[i++])) {
1113
+ ~indexOf(result, key) || push(result, key);
1114
+ }
1115
+ return result;
1116
+ };
1117
+
1118
+
1119
+ /***/ }),
1120
+
1121
+ /***/ 5296:
1122
+ /***/ (function(__unused_webpack_module, exports) {
1123
+
1124
+
1125
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
1126
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1127
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1128
+
1129
+ // Nashorn ~ JDK8 bug
1130
+ var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
1131
+
1132
+ // `Object.prototype.propertyIsEnumerable` method implementation
1133
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
1134
+ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1135
+ var descriptor = getOwnPropertyDescriptor(this, V);
1136
+ return !!descriptor && descriptor.enumerable;
1137
+ } : $propertyIsEnumerable;
1138
+
1139
+
1140
+ /***/ }),
1141
+
1142
+ /***/ 2140:
1143
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1144
+
1145
+
1146
+ var call = __webpack_require__(6916);
1147
+ var isCallable = __webpack_require__(614);
1148
+ var isObject = __webpack_require__(111);
1149
+
1150
+ var $TypeError = TypeError;
1151
+
1152
+ // `OrdinaryToPrimitive` abstract operation
1153
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1154
+ module.exports = function (input, pref) {
1155
+ var fn, val;
1156
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1157
+ if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
1158
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1159
+ throw $TypeError("Can't convert object to primitive value");
1160
+ };
1161
+
1162
+
1163
+ /***/ }),
1164
+
1165
+ /***/ 3887:
1166
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1167
+
1168
+
1169
+ var getBuiltIn = __webpack_require__(5005);
1170
+ var uncurryThis = __webpack_require__(1702);
1171
+ var getOwnPropertyNamesModule = __webpack_require__(8006);
1172
+ var getOwnPropertySymbolsModule = __webpack_require__(5181);
1173
+ var anObject = __webpack_require__(9670);
1174
+
1175
+ var concat = uncurryThis([].concat);
1176
+
1177
+ // all object keys, includes non-enumerable and symbols
1178
+ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1179
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
1180
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1181
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1182
+ };
1183
+
1184
+
1185
+ /***/ }),
1186
+
1187
+ /***/ 4488:
1188
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1189
+
1190
+
1191
+ var isNullOrUndefined = __webpack_require__(8554);
1192
+
1193
+ var $TypeError = TypeError;
1194
+
1195
+ // `RequireObjectCoercible` abstract operation
1196
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
1197
+ module.exports = function (it) {
1198
+ if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
1199
+ return it;
1200
+ };
1201
+
1202
+
1203
+ /***/ }),
1204
+
1205
+ /***/ 6200:
1206
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1207
+
1208
+
1209
+ var shared = __webpack_require__(2309);
1210
+ var uid = __webpack_require__(9711);
1211
+
1212
+ var keys = shared('keys');
1213
+
1214
+ module.exports = function (key) {
1215
+ return keys[key] || (keys[key] = uid(key));
1216
+ };
1217
+
1218
+
1219
+ /***/ }),
1220
+
1221
+ /***/ 5465:
1222
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1223
+
1224
+
1225
+ var global = __webpack_require__(7854);
1226
+ var defineGlobalProperty = __webpack_require__(3072);
1227
+
1228
+ var SHARED = '__core-js_shared__';
1229
+ var store = global[SHARED] || defineGlobalProperty(SHARED, {});
1230
+
1231
+ module.exports = store;
1232
+
1233
+
1234
+ /***/ }),
1235
+
1236
+ /***/ 2309:
1237
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1238
+
1239
+
1240
+ var IS_PURE = __webpack_require__(1913);
1241
+ var store = __webpack_require__(5465);
1242
+
1243
+ (module.exports = function (key, value) {
1244
+ return store[key] || (store[key] = value !== undefined ? value : {});
1245
+ })('versions', []).push({
1246
+ version: '3.32.2',
1247
+ mode: IS_PURE ? 'pure' : 'global',
1248
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1249
+ license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE',
1250
+ source: 'https://github.com/zloirock/core-js'
1251
+ });
1252
+
1253
+
1254
+ /***/ }),
1255
+
1256
+ /***/ 6293:
1257
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1258
+
1259
+
1260
+ /* eslint-disable es/no-symbol -- required for testing */
1261
+ var V8_VERSION = __webpack_require__(7392);
1262
+ var fails = __webpack_require__(7293);
1263
+ var global = __webpack_require__(7854);
1264
+
1265
+ var $String = global.String;
1266
+
1267
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1268
+ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
1269
+ var symbol = Symbol('symbol detection');
1270
+ // Chrome 38 Symbol has incorrect toString conversion
1271
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
1272
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
1273
+ // of course, fail.
1274
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
1275
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1276
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
1277
+ });
1278
+
1279
+
1280
+ /***/ }),
1281
+
1282
+ /***/ 1400:
1283
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1284
+
1285
+
1286
+ var toIntegerOrInfinity = __webpack_require__(9303);
1287
+
1288
+ var max = Math.max;
1289
+ var min = Math.min;
1290
+
1291
+ // Helper for a popular repeating case of the spec:
1292
+ // Let integer be ? ToInteger(index).
1293
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1294
+ module.exports = function (index, length) {
1295
+ var integer = toIntegerOrInfinity(index);
1296
+ return integer < 0 ? max(integer + length, 0) : min(integer, length);
1297
+ };
1298
+
1299
+
1300
+ /***/ }),
1301
+
1302
+ /***/ 5656:
1303
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1304
+
1305
+
1306
+ // toObject with fallback for non-array-like ES3 strings
1307
+ var IndexedObject = __webpack_require__(8361);
1308
+ var requireObjectCoercible = __webpack_require__(4488);
1309
+
1310
+ module.exports = function (it) {
1311
+ return IndexedObject(requireObjectCoercible(it));
1312
+ };
1313
+
1314
+
1315
+ /***/ }),
1316
+
1317
+ /***/ 9303:
1318
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1319
+
1320
+
1321
+ var trunc = __webpack_require__(4758);
1322
+
1323
+ // `ToIntegerOrInfinity` abstract operation
1324
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
1325
+ module.exports = function (argument) {
1326
+ var number = +argument;
1327
+ // eslint-disable-next-line no-self-compare -- NaN check
1328
+ return number !== number || number === 0 ? 0 : trunc(number);
1329
+ };
1330
+
1331
+
1332
+ /***/ }),
1333
+
1334
+ /***/ 7466:
1335
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1336
+
1337
+
1338
+ var toIntegerOrInfinity = __webpack_require__(9303);
1339
+
1340
+ var min = Math.min;
1341
+
1342
+ // `ToLength` abstract operation
1343
+ // https://tc39.es/ecma262/#sec-tolength
1344
+ module.exports = function (argument) {
1345
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1346
+ };
1347
+
1348
+
1349
+ /***/ }),
1350
+
1351
+ /***/ 7908:
1352
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1353
+
1354
+
1355
+ var requireObjectCoercible = __webpack_require__(4488);
1356
+
1357
+ var $Object = Object;
1358
+
1359
+ // `ToObject` abstract operation
1360
+ // https://tc39.es/ecma262/#sec-toobject
1361
+ module.exports = function (argument) {
1362
+ return $Object(requireObjectCoercible(argument));
1363
+ };
1364
+
1365
+
1366
+ /***/ }),
1367
+
1368
+ /***/ 7593:
1369
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1370
+
1371
+
1372
+ var call = __webpack_require__(6916);
1373
+ var isObject = __webpack_require__(111);
1374
+ var isSymbol = __webpack_require__(2190);
1375
+ var getMethod = __webpack_require__(8173);
1376
+ var ordinaryToPrimitive = __webpack_require__(2140);
1377
+ var wellKnownSymbol = __webpack_require__(5112);
1378
+
1379
+ var $TypeError = TypeError;
1380
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
1381
+
1382
+ // `ToPrimitive` abstract operation
1383
+ // https://tc39.es/ecma262/#sec-toprimitive
1384
+ module.exports = function (input, pref) {
1385
+ if (!isObject(input) || isSymbol(input)) return input;
1386
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
1387
+ var result;
1388
+ if (exoticToPrim) {
1389
+ if (pref === undefined) pref = 'default';
1390
+ result = call(exoticToPrim, input, pref);
1391
+ if (!isObject(result) || isSymbol(result)) return result;
1392
+ throw $TypeError("Can't convert object to primitive value");
1393
+ }
1394
+ if (pref === undefined) pref = 'number';
1395
+ return ordinaryToPrimitive(input, pref);
1396
+ };
1397
+
1398
+
1399
+ /***/ }),
1400
+
1401
+ /***/ 4948:
1402
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1403
+
1404
+
1405
+ var toPrimitive = __webpack_require__(7593);
1406
+ var isSymbol = __webpack_require__(2190);
1407
+
1408
+ // `ToPropertyKey` abstract operation
1409
+ // https://tc39.es/ecma262/#sec-topropertykey
1410
+ module.exports = function (argument) {
1411
+ var key = toPrimitive(argument, 'string');
1412
+ return isSymbol(key) ? key : key + '';
1413
+ };
1414
+
1415
+
1416
+ /***/ }),
1417
+
1418
+ /***/ 6330:
1419
+ /***/ (function(module) {
1420
+
1421
+
1422
+ var $String = String;
1423
+
1424
+ module.exports = function (argument) {
1425
+ try {
1426
+ return $String(argument);
1427
+ } catch (error) {
1428
+ return 'Object';
1429
+ }
1430
+ };
1431
+
1432
+
1433
+ /***/ }),
1434
+
1435
+ /***/ 9711:
1436
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1437
+
1438
+
1439
+ var uncurryThis = __webpack_require__(1702);
1440
+
1441
+ var id = 0;
1442
+ var postfix = Math.random();
1443
+ var toString = uncurryThis(1.0.toString);
1444
+
1445
+ module.exports = function (key) {
1446
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
1447
+ };
1448
+
1449
+
1450
+ /***/ }),
1451
+
1452
+ /***/ 3307:
1453
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1454
+
1455
+
1456
+ /* eslint-disable es/no-symbol -- required for testing */
1457
+ var NATIVE_SYMBOL = __webpack_require__(6293);
1458
+
1459
+ module.exports = NATIVE_SYMBOL
1460
+ && !Symbol.sham
1461
+ && typeof Symbol.iterator == 'symbol';
1462
+
1463
+
1464
+ /***/ }),
1465
+
1466
+ /***/ 3353:
1467
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1468
+
1469
+
1470
+ var DESCRIPTORS = __webpack_require__(9781);
1471
+ var fails = __webpack_require__(7293);
1472
+
1473
+ // V8 ~ Chrome 36-
1474
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1475
+ module.exports = DESCRIPTORS && fails(function () {
1476
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1477
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1478
+ value: 42,
1479
+ writable: false
1480
+ }).prototype !== 42;
1481
+ });
1482
+
1483
+
1484
+ /***/ }),
1485
+
1486
+ /***/ 4811:
1487
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1488
+
1489
+
1490
+ var global = __webpack_require__(7854);
1491
+ var isCallable = __webpack_require__(614);
1492
+
1493
+ var WeakMap = global.WeakMap;
1494
+
1495
+ module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
1496
+
1497
+
1498
+ /***/ }),
1499
+
1500
+ /***/ 5112:
1501
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1502
+
1503
+
1504
+ var global = __webpack_require__(7854);
1505
+ var shared = __webpack_require__(2309);
1506
+ var hasOwn = __webpack_require__(2597);
1507
+ var uid = __webpack_require__(9711);
1508
+ var NATIVE_SYMBOL = __webpack_require__(6293);
1509
+ var USE_SYMBOL_AS_UID = __webpack_require__(3307);
1510
+
1511
+ var Symbol = global.Symbol;
1512
+ var WellKnownSymbolsStore = shared('wks');
1513
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
1514
+
1515
+ module.exports = function (name) {
1516
+ if (!hasOwn(WellKnownSymbolsStore, name)) {
1517
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
1518
+ ? Symbol[name]
1519
+ : createWellKnownSymbol('Symbol.' + name);
1520
+ } return WellKnownSymbolsStore[name];
1521
+ };
1522
+
1523
+
1524
+ /***/ }),
1525
+
1526
+ /***/ 7658:
1527
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1528
+
1529
+
1530
+ var $ = __webpack_require__(2109);
1531
+ var toObject = __webpack_require__(7908);
1532
+ var lengthOfArrayLike = __webpack_require__(6244);
1533
+ var setArrayLength = __webpack_require__(3658);
1534
+ var doesNotExceedSafeInteger = __webpack_require__(7207);
1535
+ var fails = __webpack_require__(7293);
1536
+
1537
+ var INCORRECT_TO_LENGTH = fails(function () {
1538
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1539
+ });
1540
+
1541
+ // V8 and Safari <= 15.4, FF < 23 throws InternalError
1542
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1543
+ var properErrorOnNonWritableLength = function () {
1544
+ try {
1545
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1546
+ Object.defineProperty([], 'length', { writable: false }).push();
1547
+ } catch (error) {
1548
+ return error instanceof TypeError;
1549
+ }
1550
+ };
1551
+
1552
+ var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1553
+
1554
+ // `Array.prototype.push` method
1555
+ // https://tc39.es/ecma262/#sec-array.prototype.push
1556
+ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1557
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1558
+ push: function push(item) {
1559
+ var O = toObject(this);
1560
+ var len = lengthOfArrayLike(O);
1561
+ var argCount = arguments.length;
1562
+ doesNotExceedSafeInteger(len + argCount);
1563
+ for (var i = 0; i < argCount; i++) {
1564
+ O[len] = arguments[i];
1565
+ len++;
1566
+ }
1567
+ setArrayLength(O, len);
1568
+ return len;
1569
+ }
1570
+ });
1571
+
1572
+
1573
+ /***/ })
1574
+
1575
+ /******/ });
1576
+ /************************************************************************/
1577
+ /******/ // The module cache
1578
+ /******/ var __webpack_module_cache__ = {};
1579
+ /******/
1580
+ /******/ // The require function
1581
+ /******/ function __webpack_require__(moduleId) {
1582
+ /******/ // Check if module is in cache
1583
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1584
+ /******/ if (cachedModule !== undefined) {
1585
+ /******/ return cachedModule.exports;
1586
+ /******/ }
1587
+ /******/ // Create a new module (and put it into the cache)
1588
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1589
+ /******/ // no module.id needed
1590
+ /******/ // no module.loaded needed
1591
+ /******/ exports: {}
1592
+ /******/ };
1593
+ /******/
1594
+ /******/ // Execute the module function
1595
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1596
+ /******/
1597
+ /******/ // Return the exports of the module
1598
+ /******/ return module.exports;
1599
+ /******/ }
5
1600
  /******/
6
1601
  /************************************************************************/
1602
+ /******/ /* webpack/runtime/compat get default export */
1603
+ /******/ !function() {
1604
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1605
+ /******/ __webpack_require__.n = function(module) {
1606
+ /******/ var getter = module && module.__esModule ?
1607
+ /******/ function() { return module['default']; } :
1608
+ /******/ function() { return module; };
1609
+ /******/ __webpack_require__.d(getter, { a: getter });
1610
+ /******/ return getter;
1611
+ /******/ };
1612
+ /******/ }();
1613
+ /******/
7
1614
  /******/ /* webpack/runtime/define property getters */
8
1615
  /******/ !function() {
9
1616
  /******/ // define getter functions for harmony exports
@@ -16,6 +1623,18 @@
16
1623
  /******/ };
17
1624
  /******/ }();
18
1625
  /******/
1626
+ /******/ /* webpack/runtime/global */
1627
+ /******/ !function() {
1628
+ /******/ __webpack_require__.g = (function() {
1629
+ /******/ if (typeof globalThis === 'object') return globalThis;
1630
+ /******/ try {
1631
+ /******/ return this || new Function('return this')();
1632
+ /******/ } catch (e) {
1633
+ /******/ if (typeof window === 'object') return window;
1634
+ /******/ }
1635
+ /******/ })();
1636
+ /******/ }();
1637
+ /******/
19
1638
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
1639
  /******/ !function() {
21
1640
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -39,218 +1658,967 @@
39
1658
  /******/
40
1659
  /************************************************************************/
41
1660
  var __webpack_exports__ = {};
1661
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1662
+ !function() {
42
1663
  // ESM COMPAT FLAG
43
1664
  __webpack_require__.r(__webpack_exports__);
44
1665
 
45
- // EXPORTS
46
- __webpack_require__.d(__webpack_exports__, {
47
- "default": function() { return /* binding */ entry_lib; }
48
- });
1666
+ // EXPORTS
1667
+ __webpack_require__.d(__webpack_exports__, {
1668
+ "default": function() { return /* binding */ entry_lib; }
1669
+ });
1670
+
1671
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
1672
+ /* eslint-disable no-var */
1673
+ // This file is imported into lib/wc client bundles.
1674
+
1675
+ if (typeof window !== 'undefined') {
1676
+ var currentScript = window.document.currentScript
1677
+ if (false) { var getCurrentScript; }
1678
+
1679
+ var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
1680
+ if (src) {
1681
+ __webpack_require__.p = src[1] // eslint-disable-line
1682
+ }
1683
+ }
1684
+
1685
+ // Indicate to webpack that this file can be concatenated
1686
+ /* harmony default export */ var setPublicPath = (null);
1687
+
1688
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/button.vue?vue&type=template&id=73616ebe&scoped=true&
1689
+ var render = function render() {
1690
+ var _vm = this,
1691
+ _c = _vm._self._c;
1692
+ return _c('button', {
1693
+ staticClass: "c-button",
1694
+ attrs: {
1695
+ "color": _vm.color,
1696
+ "size": _vm.size,
1697
+ "hollow": _vm.hollow,
1698
+ "disabled": !!_vm.disabled
1699
+ },
1700
+ on: {
1701
+ "click": $event => _vm.$emit('click', $event)
1702
+ }
1703
+ }, [_c('div', {
1704
+ staticClass: "flex-center"
1705
+ }, [_vm.icon ? _c('i', {
1706
+ staticClass: "tf",
1707
+ class: _vm.icon
1708
+ }) : _vm._e(), _c('span', [_vm._t("default")], 2)])]);
1709
+ };
1710
+ var staticRenderFns = [];
1711
+
1712
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/button.vue?vue&type=script&lang=js&
1713
+ /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
1714
+ name: 'cButton',
1715
+ props: {
1716
+ size: {
1717
+ // 按钮尺寸(s:小号;m:中号;l:大号)
1718
+ type: String,
1719
+ default: 's'
1720
+ },
1721
+ color: {
1722
+ // 按钮颜色(default: 系统辅色;sys:系统主色;)
1723
+ type: String,
1724
+ default: 'black'
1725
+ },
1726
+ hollow: Boolean,
1727
+ // 是否为空心按钮
1728
+
1729
+ disabled: Boolean,
1730
+ // 禁用
1731
+
1732
+ icon: String // 按钮图标
1733
+ }
1734
+ });
1735
+ ;// CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=script&lang=js&
1736
+ /* harmony default export */ var unit_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
1737
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/button.vue?vue&type=style&index=0&id=73616ebe&prod&lang=stylus&scoped=true&
1738
+ // extracted by mini-css-extract-plugin
1739
+
1740
+ ;// CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=style&index=0&id=73616ebe&prod&lang=stylus&scoped=true&
1741
+
1742
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1743
+ /* globals __VUE_SSR_CONTEXT__ */
1744
+
1745
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1746
+ // This module is a runtime utility for cleaner component module output and will
1747
+ // be included in the final webpack user bundle.
1748
+
1749
+ function normalizeComponent(
1750
+ scriptExports,
1751
+ render,
1752
+ staticRenderFns,
1753
+ functionalTemplate,
1754
+ injectStyles,
1755
+ scopeId,
1756
+ moduleIdentifier /* server only */,
1757
+ shadowMode /* vue-cli only */
1758
+ ) {
1759
+ // Vue.extend constructor export interop
1760
+ var options =
1761
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1762
+
1763
+ // render functions
1764
+ if (render) {
1765
+ options.render = render
1766
+ options.staticRenderFns = staticRenderFns
1767
+ options._compiled = true
1768
+ }
1769
+
1770
+ // functional template
1771
+ if (functionalTemplate) {
1772
+ options.functional = true
1773
+ }
1774
+
1775
+ // scopedId
1776
+ if (scopeId) {
1777
+ options._scopeId = 'data-v-' + scopeId
1778
+ }
1779
+
1780
+ var hook
1781
+ if (moduleIdentifier) {
1782
+ // server build
1783
+ hook = function (context) {
1784
+ // 2.3 injection
1785
+ context =
1786
+ context || // cached call
1787
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
1788
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1789
+ // 2.2 with runInNewContext: true
1790
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1791
+ context = __VUE_SSR_CONTEXT__
1792
+ }
1793
+ // inject component styles
1794
+ if (injectStyles) {
1795
+ injectStyles.call(this, context)
1796
+ }
1797
+ // register component module identifier for async chunk inferrence
1798
+ if (context && context._registeredComponents) {
1799
+ context._registeredComponents.add(moduleIdentifier)
1800
+ }
1801
+ }
1802
+ // used by ssr in case component is cached and beforeCreate
1803
+ // never gets called
1804
+ options._ssrRegister = hook
1805
+ } else if (injectStyles) {
1806
+ hook = shadowMode
1807
+ ? function () {
1808
+ injectStyles.call(
1809
+ this,
1810
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
1811
+ )
1812
+ }
1813
+ : injectStyles
1814
+ }
1815
+
1816
+ if (hook) {
1817
+ if (options.functional) {
1818
+ // for template-only hot-reload because in that case the render fn doesn't
1819
+ // go through the normalizer
1820
+ options._injectStyles = hook
1821
+ // register for functional component in vue file
1822
+ var originalRender = options.render
1823
+ options.render = function renderWithStyleInjection(h, context) {
1824
+ hook.call(context)
1825
+ return originalRender(h, context)
1826
+ }
1827
+ } else {
1828
+ // inject component registration as beforeCreate hook
1829
+ var existing = options.beforeCreate
1830
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1831
+ }
1832
+ }
1833
+
1834
+ return {
1835
+ exports: scriptExports,
1836
+ options: options
1837
+ }
1838
+ }
1839
+
1840
+ ;// CONCATENATED MODULE: ./src/components/unit/button.vue
1841
+
1842
+
1843
+
1844
+ ;
1845
+
1846
+
1847
+ /* normalize component */
1848
+
1849
+ var component = normalizeComponent(
1850
+ unit_buttonvue_type_script_lang_js_,
1851
+ render,
1852
+ staticRenderFns,
1853
+ false,
1854
+ null,
1855
+ "73616ebe",
1856
+ null
1857
+
1858
+ )
1859
+
1860
+ /* harmony default export */ var unit_button = (component.exports);
1861
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/input.vue?vue&type=template&id=3a00d18a&scoped=true&
1862
+ var inputvue_type_template_id_3a00d18a_scoped_true_render = function render() {
1863
+ var _vm = this,
1864
+ _c = _vm._self._c;
1865
+ return _c('div', {
1866
+ directives: [{
1867
+ name: "show",
1868
+ rawName: "v-show",
1869
+ value: _vm.type != 'hidden',
1870
+ expression: "type != 'hidden'"
1871
+ }],
1872
+ staticClass: "c-input",
1873
+ class: {
1874
+ 'c-textarea': _vm.type == 'textarea',
1875
+ 'z-dis': _vm.disabled
1876
+ }
1877
+ }, [_vm.type == 'textarea' ? _c('div', [_c('textarea', {
1878
+ directives: [{
1879
+ name: "model",
1880
+ rawName: "v-model",
1881
+ value: _vm.valueData,
1882
+ expression: "valueData"
1883
+ }],
1884
+ ref: "input",
1885
+ style: {
1886
+ 'padding-bottom': _vm.maxlength ? '20px' : '8px'
1887
+ },
1888
+ attrs: {
1889
+ "placeholder": _vm.placeholder,
1890
+ "maxlength": _vm.maxlength,
1891
+ "disabled": _vm.disabled,
1892
+ "readonly": _vm.readonly
1893
+ },
1894
+ domProps: {
1895
+ "value": _vm.valueData
1896
+ },
1897
+ on: {
1898
+ "input": [function ($event) {
1899
+ if ($event.target.composing) return;
1900
+ _vm.valueData = $event.target.value;
1901
+ }, _vm.inputHandle],
1902
+ "focus": _vm.inputHandle,
1903
+ "blur": _vm.inputHandle,
1904
+ "change": function ($event) {
1905
+ return _vm.$emit('change');
1906
+ }
1907
+ }
1908
+ }), _vm.maxlength ? _c('span', {
1909
+ staticClass: "c-input-length"
1910
+ }, [_vm._v(_vm._s(_vm.valueData.length) + " / " + _vm._s(_vm.maxlength))]) : _vm._e()]) : _c('div', {
1911
+ staticClass: "flex"
1912
+ }, [_vm.type == 'stepper' && _vm.stepControls == 'both' ? _c('button', {
1913
+ staticClass: "c-input-step flex-center",
1914
+ class: {
1915
+ 'z-dis': _vm.valueData !== '' && _vm.minRange !== false && _vm.minRange == _vm.valueData
1916
+ },
1917
+ on: {
1918
+ "click": function ($event) {
1919
+ return _vm.stepHandle(-1);
1920
+ }
1921
+ }
1922
+ }, [_c('i', {
1923
+ staticClass: "tf tf-minus"
1924
+ })]) : _vm._e(), _vm.compType === 'checkbox' ? _c('input', {
1925
+ directives: [{
1926
+ name: "model",
1927
+ rawName: "v-model",
1928
+ value: _vm.valueData,
1929
+ expression: "valueData"
1930
+ }],
1931
+ ref: "input",
1932
+ staticClass: "flex-grow",
1933
+ attrs: {
1934
+ "placeholder": _vm.placeholder,
1935
+ "maxlength": _vm.maxlength,
1936
+ "disabled": _vm.disabled,
1937
+ "readonly": _vm.readonly,
1938
+ "type": "checkbox"
1939
+ },
1940
+ domProps: {
1941
+ "checked": Array.isArray(_vm.valueData) ? _vm._i(_vm.valueData, null) > -1 : _vm.valueData
1942
+ },
1943
+ on: {
1944
+ "input": _vm.inputHandle,
1945
+ "focus": _vm.inputHandle,
1946
+ "blur": _vm.inputHandle,
1947
+ "change": [function ($event) {
1948
+ var $$a = _vm.valueData,
1949
+ $$el = $event.target,
1950
+ $$c = $$el.checked ? true : false;
1951
+ if (Array.isArray($$a)) {
1952
+ var $$v = null,
1953
+ $$i = _vm._i($$a, $$v);
1954
+ if ($$el.checked) {
1955
+ $$i < 0 && (_vm.valueData = $$a.concat([$$v]));
1956
+ } else {
1957
+ $$i > -1 && (_vm.valueData = $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
1958
+ }
1959
+ } else {
1960
+ _vm.valueData = $$c;
1961
+ }
1962
+ }, function ($event) {
1963
+ return _vm.$emit('change');
1964
+ }]
1965
+ }
1966
+ }) : _vm.compType === 'radio' ? _c('input', {
1967
+ directives: [{
1968
+ name: "model",
1969
+ rawName: "v-model",
1970
+ value: _vm.valueData,
1971
+ expression: "valueData"
1972
+ }],
1973
+ ref: "input",
1974
+ staticClass: "flex-grow",
1975
+ attrs: {
1976
+ "placeholder": _vm.placeholder,
1977
+ "maxlength": _vm.maxlength,
1978
+ "disabled": _vm.disabled,
1979
+ "readonly": _vm.readonly,
1980
+ "type": "radio"
1981
+ },
1982
+ domProps: {
1983
+ "checked": _vm._q(_vm.valueData, null)
1984
+ },
1985
+ on: {
1986
+ "input": _vm.inputHandle,
1987
+ "focus": _vm.inputHandle,
1988
+ "blur": _vm.inputHandle,
1989
+ "change": [function ($event) {
1990
+ _vm.valueData = null;
1991
+ }, function ($event) {
1992
+ return _vm.$emit('change');
1993
+ }]
1994
+ }
1995
+ }) : _c('input', {
1996
+ directives: [{
1997
+ name: "model",
1998
+ rawName: "v-model",
1999
+ value: _vm.valueData,
2000
+ expression: "valueData"
2001
+ }],
2002
+ ref: "input",
2003
+ staticClass: "flex-grow",
2004
+ attrs: {
2005
+ "placeholder": _vm.placeholder,
2006
+ "maxlength": _vm.maxlength,
2007
+ "disabled": _vm.disabled,
2008
+ "readonly": _vm.readonly,
2009
+ "type": _vm.compType
2010
+ },
2011
+ domProps: {
2012
+ "value": _vm.valueData
2013
+ },
2014
+ on: {
2015
+ "input": [function ($event) {
2016
+ if ($event.target.composing) return;
2017
+ _vm.valueData = $event.target.value;
2018
+ }, _vm.inputHandle],
2019
+ "focus": _vm.inputHandle,
2020
+ "blur": _vm.inputHandle,
2021
+ "change": function ($event) {
2022
+ return _vm.$emit('change');
2023
+ }
2024
+ }
2025
+ }), _vm.clear && _vm.valueData ? _c('a', {
2026
+ staticClass: "c-input-handle clear flex-center",
2027
+ on: {
2028
+ "click": _vm.clearHandle
2029
+ }
2030
+ }, [_c('i', {
2031
+ staticClass: "tf tf-clear"
2032
+ })]) : _vm._e(), _vm.visible ? _c('a', {
2033
+ staticClass: "c-input-handle flex-center",
2034
+ on: {
2035
+ "click": function ($event) {
2036
+ _vm.visibleState = !_vm.visibleState;
2037
+ }
2038
+ }
2039
+ }, [_c('i', {
2040
+ staticClass: "tf tf-eyes",
2041
+ class: {
2042
+ 'tf-eyes-close': _vm.visibleState
2043
+ }
2044
+ })]) : _vm._e(), _c('div', {
2045
+ staticClass: "flex-column"
2046
+ }, [_vm.type == 'stepper' ? _c('button', {
2047
+ staticClass: "c-input-step flex-center flex-grow",
2048
+ class: {
2049
+ 'z-dis': _vm.valueData !== '' && _vm.maxRange !== false && _vm.maxRange == _vm.valueData
2050
+ },
2051
+ on: {
2052
+ "click": function ($event) {
2053
+ return _vm.stepHandle(1);
2054
+ }
2055
+ }
2056
+ }, [_c('i', {
2057
+ staticClass: "tf tf-plus"
2058
+ })]) : _vm._e(), _vm.type == 'stepper' && _vm.stepControls == 'side' ? _c('button', {
2059
+ staticClass: "c-input-step flex-center flex-grow",
2060
+ class: {
2061
+ 'z-dis': _vm.valueData !== '' && _vm.minRange !== false && _vm.minRange == _vm.valueData
2062
+ },
2063
+ on: {
2064
+ "click": function ($event) {
2065
+ return _vm.stepHandle(-1);
2066
+ }
2067
+ }
2068
+ }, [_c('i', {
2069
+ staticClass: "tf tf-minus"
2070
+ })]) : _vm._e()]), _vm.unit ? _c('span', {
2071
+ staticClass: "c-input-unit flex-center"
2072
+ }, [_vm._v(_vm._s(_vm.unit))]) : _vm._e()])]);
2073
+ };
2074
+ var inputvue_type_template_id_3a00d18a_scoped_true_staticRenderFns = [];
2075
+
2076
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/input.vue?vue&type=script&lang=js&
2077
+ /* harmony default export */ var inputvue_type_script_lang_js_ = ({
2078
+ name: 'cInput',
2079
+ props: {
2080
+ type: {
2081
+ // 文本框类型(hidden: 隐藏; password: 密码; number: 数字; stepper: 步进器; textarea: 多行文本)
2082
+ type: String,
2083
+ default: 'text'
2084
+ },
2085
+ value: [Number, String],
2086
+ name: String,
2087
+ placeholder: String,
2088
+ maxlength: [Number, String],
2089
+ decimal: [Number, String],
2090
+ // 保留小数位数
2091
+ range: [Number, String, Array],
2092
+ // 数字范围
2093
+ disabled: Boolean,
2094
+ readonly: Boolean,
2095
+ unit: String,
2096
+ // 显示单位
2097
+ visible: Boolean,
2098
+ // 可见密码按钮
2099
+ clear: {
2100
+ //清空按钮
2101
+ type: Boolean,
2102
+ default: true
2103
+ },
2104
+ step: {
2105
+ // 步进器精度
2106
+ type: [String, Number],
2107
+ default: 1
2108
+ },
2109
+ stepControls: {
2110
+ // 步进器按钮位置(both: 两侧; side: 一侧)
2111
+ type: String,
2112
+ default: 'both'
2113
+ }
2114
+ },
2115
+ data() {
2116
+ return {
2117
+ valueData: this.value || '',
2118
+ visibleState: false
2119
+ };
2120
+ },
2121
+ computed: {
2122
+ compType() {
2123
+ if (this.type == 'number' || this.visibleState) {
2124
+ return 'text';
2125
+ }
2126
+ return this.type;
2127
+ },
2128
+ compRange() {
2129
+ return this.range ? typeof this.range == 'string' ? this.range.split(',') : this.range : false;
2130
+ },
2131
+ minRange() {
2132
+ if (typeof this.compRange == 'object' && this.compRange.length == 2) {
2133
+ return parseFloat(this.compRange[0]);
2134
+ }
2135
+ return false;
2136
+ },
2137
+ maxRange() {
2138
+ return this.compRange !== false ? parseFloat(this.compRange[1]) : false;
2139
+ },
2140
+ compDecimal() {
2141
+ if (this.type == 'number') {
2142
+ return this.decimal || 0;
2143
+ } else if (this.type == 'stepper') {
2144
+ return this.decimal || 99;
2145
+ }
2146
+ return false;
2147
+ }
2148
+ },
2149
+ watch: {
2150
+ value(val) {
2151
+ this.set(val);
2152
+ },
2153
+ valueData() {
2154
+ this.$emit('input', this.get());
2155
+ }
2156
+ },
2157
+ methods: {
2158
+ set(val = '') {
2159
+ this.valueData = val.toString();
2160
+ },
2161
+ get() {
2162
+ return this.valueData;
2163
+ },
2164
+ inputHandle(e) {
2165
+ if (this.compDecimal !== false) {
2166
+ var reg = [[this.compDecimal ? '[^-\\d\\.]+$' : '[^-\\d]+$', ''],
2167
+ //过滤非数字、负号、点的输入
2168
+ ['^(-?)0?(\\d+)$', '$1$2'],
2169
+ //过滤首位为0的输入
2170
+ ['^(-?)\\.$', '$1'],
2171
+ //过滤首位为.的输入
2172
+ ['\\.(\\d*)\\.+', '.$1'],
2173
+ //过滤第二个.
2174
+ ['^(\\d+\\.?\\d*)-+', '$1'],
2175
+ //过滤除第一位之外的-
2176
+ ['^(-\\d*\\.?\\d*)-+', '$1'],
2177
+ //过滤除第一位之外的-
2178
+ ['^(-?\\d+\\.\\d{' + this.compDecimal + '}).+', '$1'] //过滤多余小数位
2179
+ ];
2180
+
2181
+ reg.forEach(item => {
2182
+ this.valueData = this.valueData.toString().replace(new RegExp(item[0]), item[1]);
2183
+ });
2184
+ if (this.valueData !== '' && e.type == 'blur') {
2185
+ if (this.minRange !== false && this.valueData < this.minRange) {
2186
+ this.valueData = this.minRange;
2187
+ }
2188
+ if (this.maxRange !== false && this.valueData > this.maxRange) {
2189
+ this.valueData = this.maxRange;
2190
+ }
2191
+ }
2192
+ }
2193
+ if (e.type != 'input') {
2194
+ this.$emit(e.type, e);
2195
+ }
2196
+ },
2197
+ clearHandle() {
2198
+ this.valueData = '';
2199
+ this.$refs.input.focus();
2200
+ },
2201
+ stepHandle(step) {
2202
+ let valueStep = this.valueData.toString().split('.')[1] || '';
2203
+ let stepStep = this.step.toString().split('.')[1] || '';
2204
+ let n = stepStep.length > valueStep.length ? stepStep.length : valueStep.length;
2205
+ this.valueData = parseFloat(((parseFloat(this.valueData) || 0) + step * parseFloat(this.step)).toFixed(n));
2206
+ this.inputHandle({
2207
+ type: 'blur'
2208
+ });
2209
+ }
2210
+ }
2211
+ });
2212
+ ;// CONCATENATED MODULE: ./src/components/unit/input.vue?vue&type=script&lang=js&
2213
+ /* harmony default export */ var unit_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_);
2214
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/input.vue?vue&type=style&index=0&id=3a00d18a&prod&lang=stylus&scoped=true&
2215
+ // extracted by mini-css-extract-plugin
2216
+
2217
+ ;// CONCATENATED MODULE: ./src/components/unit/input.vue?vue&type=style&index=0&id=3a00d18a&prod&lang=stylus&scoped=true&
2218
+
2219
+ ;// CONCATENATED MODULE: ./src/components/unit/input.vue
2220
+
49
2221
 
50
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
51
- /* eslint-disable no-var */
52
- // This file is imported into lib/wc client bundles.
53
2222
 
54
- if (typeof window !== 'undefined') {
55
- var currentScript = window.document.currentScript
56
- if (false) { var getCurrentScript; }
2223
+ ;
57
2224
 
58
- var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
59
- if (src) {
60
- __webpack_require__.p = src[1] // eslint-disable-line
61
- }
62
- }
63
2225
 
64
- // Indicate to webpack that this file can be concatenated
65
- /* harmony default export */ var setPublicPath = (null);
2226
+ /* normalize component */
66
2227
 
67
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/test.vue?vue&type=template&id=6aed911d&
68
- var render = function render() {
2228
+ var input_component = normalizeComponent(
2229
+ unit_inputvue_type_script_lang_js_,
2230
+ inputvue_type_template_id_3a00d18a_scoped_true_render,
2231
+ inputvue_type_template_id_3a00d18a_scoped_true_staticRenderFns,
2232
+ false,
2233
+ null,
2234
+ "3a00d18a",
2235
+ null
2236
+
2237
+ )
2238
+
2239
+ /* harmony default export */ var input = (input_component.exports);
2240
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/radio.vue?vue&type=template&id=07d956d7&scoped=true&
2241
+ var radiovue_type_template_id_07d956d7_scoped_true_render = function render() {
69
2242
  var _vm = this,
70
2243
  _c = _vm._self._c;
71
- return _c('button', [_vm._v("test")]);
2244
+ return _c('div', {
2245
+ staticClass: "c-radio",
2246
+ class: {
2247
+ 'z-chk': _vm.checkState,
2248
+ 'z-dis': _vm.disabledState
2249
+ },
2250
+ on: {
2251
+ "click": _vm.checkHandle
2252
+ }
2253
+ }, [_c('div'), _vm.$slots.default ? _c('span', [_vm._t("default")], 2) : _vm._e()]);
72
2254
  };
73
- var staticRenderFns = [];
2255
+ var radiovue_type_template_id_07d956d7_scoped_true_staticRenderFns = [];
74
2256
 
75
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/test.vue?vue&type=script&lang=js&
76
- /* harmony default export */ var testvue_type_script_lang_js_ = ({
77
- name: 'cText'
78
- });
79
- ;// CONCATENATED MODULE: ./src/components/test.vue?vue&type=script&lang=js&
80
- /* harmony default export */ var components_testvue_type_script_lang_js_ = (testvue_type_script_lang_js_);
81
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
82
- /* globals __VUE_SSR_CONTEXT__ */
2257
+ ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
2258
+ var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
2259
+ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
2260
+ ;// CONCATENATED MODULE: ./src/components/createStore.js
83
2261
 
84
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
85
- // This module is a runtime utility for cleaner component module output and will
86
- // be included in the final webpack user bundle.
2262
+ function createStore(data) {
2263
+ return new (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
2264
+ data() {
2265
+ return data;
2266
+ },
2267
+ methods: {
2268
+ commit(key, data) {
2269
+ this[key] = data;
2270
+ }
2271
+ }
2272
+ }))();
2273
+ }
2274
+ function mapState(data) {
2275
+ const res = {};
2276
+ data.forEach(key => {
2277
+ res[key] = {
2278
+ get() {
2279
+ return this.store[key];
2280
+ },
2281
+ set() {}
2282
+ };
2283
+ });
2284
+ return res;
2285
+ }
87
2286
 
88
- function normalizeComponent(
89
- scriptExports,
90
- render,
91
- staticRenderFns,
92
- functionalTemplate,
93
- injectStyles,
94
- scopeId,
95
- moduleIdentifier /* server only */,
96
- shadowMode /* vue-cli only */
97
- ) {
98
- // Vue.extend constructor export interop
99
- var options =
100
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
2287
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/radio.vue?vue&type=script&lang=js&
101
2288
 
102
- // render functions
103
- if (render) {
104
- options.render = render
105
- options.staticRenderFns = staticRenderFns
106
- options._compiled = true
2289
+ /* harmony default export */ var radiovue_type_script_lang_js_ = ({
2290
+ name: 'cRadio',
2291
+ props: {
2292
+ value: [Number, String],
2293
+ disabled: Boolean
2294
+ },
2295
+ data() {
2296
+ return {
2297
+ store: this.$parent.store
2298
+ };
2299
+ },
2300
+ computed: {
2301
+ ...mapState(['valueData', 'groupDisabled']),
2302
+ checkState() {
2303
+ return this.valueData == this.value;
2304
+ },
2305
+ disabledState() {
2306
+ return this.groupDisabled || this.disabled;
2307
+ }
2308
+ },
2309
+ methods: {
2310
+ checkHandle() {
2311
+ if (this.disabledState) return;
2312
+ this.store.commit('valueData', this.value);
2313
+ }
107
2314
  }
2315
+ });
2316
+ ;// CONCATENATED MODULE: ./src/components/unit/radio.vue?vue&type=script&lang=js&
2317
+ /* harmony default export */ var unit_radiovue_type_script_lang_js_ = (radiovue_type_script_lang_js_);
2318
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/radio.vue?vue&type=style&index=0&id=07d956d7&prod&lang=stylus&scoped=true&
2319
+ // extracted by mini-css-extract-plugin
108
2320
 
109
- // functional template
110
- if (functionalTemplate) {
111
- options.functional = true
112
- }
2321
+ ;// CONCATENATED MODULE: ./src/components/unit/radio.vue?vue&type=style&index=0&id=07d956d7&prod&lang=stylus&scoped=true&
113
2322
 
114
- // scopedId
115
- if (scopeId) {
116
- options._scopeId = 'data-v-' + scopeId
117
- }
2323
+ ;// CONCATENATED MODULE: ./src/components/unit/radio.vue
118
2324
 
119
- var hook
120
- if (moduleIdentifier) {
121
- // server build
122
- hook = function (context) {
123
- // 2.3 injection
124
- context =
125
- context || // cached call
126
- (this.$vnode && this.$vnode.ssrContext) || // stateful
127
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
128
- // 2.2 with runInNewContext: true
129
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
130
- context = __VUE_SSR_CONTEXT__
131
- }
132
- // inject component styles
133
- if (injectStyles) {
134
- injectStyles.call(this, context)
135
- }
136
- // register component module identifier for async chunk inferrence
137
- if (context && context._registeredComponents) {
138
- context._registeredComponents.add(moduleIdentifier)
139
- }
140
- }
141
- // used by ssr in case component is cached and beforeCreate
142
- // never gets called
143
- options._ssrRegister = hook
144
- } else if (injectStyles) {
145
- hook = shadowMode
146
- ? function () {
147
- injectStyles.call(
148
- this,
149
- (options.functional ? this.parent : this).$root.$options.shadowRoot
150
- )
151
- }
152
- : injectStyles
153
- }
154
2325
 
155
- if (hook) {
156
- if (options.functional) {
157
- // for template-only hot-reload because in that case the render fn doesn't
158
- // go through the normalizer
159
- options._injectStyles = hook
160
- // register for functional component in vue file
161
- var originalRender = options.render
162
- options.render = function renderWithStyleInjection(h, context) {
163
- hook.call(context)
164
- return originalRender(h, context)
2326
+
2327
+ ;
2328
+
2329
+
2330
+ /* normalize component */
2331
+
2332
+ var radio_component = normalizeComponent(
2333
+ unit_radiovue_type_script_lang_js_,
2334
+ radiovue_type_template_id_07d956d7_scoped_true_render,
2335
+ radiovue_type_template_id_07d956d7_scoped_true_staticRenderFns,
2336
+ false,
2337
+ null,
2338
+ "07d956d7",
2339
+ null
2340
+
2341
+ )
2342
+
2343
+ /* harmony default export */ var unit_radio = (radio_component.exports);
2344
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/radio_group.vue?vue&type=template&id=ac0a5b94&scoped=true&
2345
+ var radio_groupvue_type_template_id_ac0a5b94_scoped_true_render = function render() {
2346
+ var _vm = this,
2347
+ _c = _vm._self._c;
2348
+ return _c('div', {
2349
+ staticClass: "c-radio-group"
2350
+ }, [_vm.$slots.default ? _vm._t("default") : _vm._l(_vm.options, function (item, i) {
2351
+ return _c('c-radio', {
2352
+ key: i,
2353
+ attrs: {
2354
+ "value": item.value
165
2355
  }
166
- } else {
167
- // inject component registration as beforeCreate hook
168
- var existing = options.beforeCreate
169
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
2356
+ }, [_vm._v(_vm._s(item.name))]);
2357
+ })], 2);
2358
+ };
2359
+ var radio_groupvue_type_template_id_ac0a5b94_scoped_true_staticRenderFns = [];
2360
+
2361
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/radio_group.vue?vue&type=script&lang=js&
2362
+
2363
+ /* harmony default export */ var radio_groupvue_type_script_lang_js_ = ({
2364
+ name: 'cRadioGroup',
2365
+ props: {
2366
+ value: [String, Number],
2367
+ name: String,
2368
+ disabled: Boolean,
2369
+ options: Array
2370
+ },
2371
+ data() {
2372
+ return {
2373
+ store: createStore({
2374
+ valueData: this.value,
2375
+ groupDisabled: this.disabled
2376
+ })
2377
+ };
2378
+ },
2379
+ computed: {
2380
+ ...mapState(['valueData'])
2381
+ },
2382
+ watch: {
2383
+ value(val) {
2384
+ this.set(val);
2385
+ },
2386
+ valueData() {
2387
+ this.$emit('input', this.get());
2388
+ },
2389
+ disabled(val) {
2390
+ this.store.commit('groupDisabled', val);
2391
+ }
2392
+ },
2393
+ methods: {
2394
+ set(val = '') {
2395
+ this.store.commit('valueData', val);
2396
+ },
2397
+ get() {
2398
+ return this.valueData;
170
2399
  }
171
2400
  }
2401
+ });
2402
+ ;// CONCATENATED MODULE: ./src/components/unit/radio_group.vue?vue&type=script&lang=js&
2403
+ /* harmony default export */ var unit_radio_groupvue_type_script_lang_js_ = (radio_groupvue_type_script_lang_js_);
2404
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/radio_group.vue?vue&type=style&index=0&id=ac0a5b94&prod&lang=stylus&scoped=true&
2405
+ // extracted by mini-css-extract-plugin
172
2406
 
173
- return {
174
- exports: scriptExports,
175
- options: options
176
- }
177
- }
2407
+ ;// CONCATENATED MODULE: ./src/components/unit/radio_group.vue?vue&type=style&index=0&id=ac0a5b94&prod&lang=stylus&scoped=true&
178
2408
 
179
- ;// CONCATENATED MODULE: ./src/components/test.vue
2409
+ ;// CONCATENATED MODULE: ./src/components/unit/radio_group.vue
180
2410
 
181
2411
 
182
2412
 
2413
+ ;
183
2414
 
184
2415
 
185
2416
  /* normalize component */
186
- ;
187
- var component = normalizeComponent(
188
- components_testvue_type_script_lang_js_,
189
- render,
190
- staticRenderFns,
2417
+
2418
+ var radio_group_component = normalizeComponent(
2419
+ unit_radio_groupvue_type_script_lang_js_,
2420
+ radio_groupvue_type_template_id_ac0a5b94_scoped_true_render,
2421
+ radio_groupvue_type_template_id_ac0a5b94_scoped_true_staticRenderFns,
191
2422
  false,
192
2423
  null,
193
- null,
2424
+ "ac0a5b94",
194
2425
  null
195
2426
 
196
2427
  )
197
2428
 
198
- /* harmony default export */ var test = (component.exports);
199
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/button.vue?vue&type=template&id=73616ebe&scoped=true&
200
- var buttonvue_type_template_id_73616ebe_scoped_true_render = function render() {
2429
+ /* harmony default export */ var radio_group = (radio_group_component.exports);
2430
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/checkbox.vue?vue&type=template&id=5c30b59c&scoped=true&
2431
+ var checkboxvue_type_template_id_5c30b59c_scoped_true_render = function render() {
201
2432
  var _vm = this,
202
2433
  _c = _vm._self._c;
203
- return _c('button', {
204
- staticClass: "c-button",
205
- attrs: {
206
- "color": _vm.color,
207
- "size": _vm.size,
208
- "hollow": _vm.hollow,
209
- "disabled": !!_vm.disabled
2434
+ return _c('div', {
2435
+ staticClass: "c-checkbox",
2436
+ class: {
2437
+ 'z-chk': _vm.checkState,
2438
+ 'z-dis': _vm.disabledState
210
2439
  },
211
2440
  on: {
212
- "click": $event => _vm.$emit('click', $event)
2441
+ "click": function ($event) {
2442
+ return _vm.checkHandle(!_vm.checkState);
2443
+ }
213
2444
  }
214
- }, [_c('div', {
2445
+ }, [_vm._m(0), _vm.$slots.default ? _c('span', [_vm._t("default")], 2) : _vm._e()]);
2446
+ };
2447
+ var checkboxvue_type_template_id_5c30b59c_scoped_true_staticRenderFns = [function () {
2448
+ var _vm = this,
2449
+ _c = _vm._self._c;
2450
+ return _c('div', {
215
2451
  staticClass: "flex-center"
216
- }, [_vm.icon ? _c('i', {
217
- staticClass: "tf",
218
- class: _vm.icon
219
- }) : _vm._e(), _c('span', [_vm._t("default")], 2)])]);
2452
+ }, [_c('i', {
2453
+ staticClass: "tf tf-check"
2454
+ })]);
2455
+ }];
2456
+
2457
+ ;// CONCATENATED MODULE: ./src/components/unit/checkbox.vue?vue&type=template&id=5c30b59c&scoped=true&
2458
+
2459
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/checkbox.vue?vue&type=script&lang=js&
2460
+
2461
+ /* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
2462
+ name: 'cCheckbox',
2463
+ props: {
2464
+ value: [Number, String, Boolean],
2465
+ disabled: Boolean
2466
+ },
2467
+ data() {
2468
+ return {
2469
+ inGroup: this.$parent.$options.name == 'cCheckboxGroup',
2470
+ store: this.$parent.store
2471
+ };
2472
+ },
2473
+ computed: {
2474
+ ...mapState(['valueData', 'limit', 'groupDisabled']),
2475
+ parseValueData() {
2476
+ return typeof this.valueData == 'object' ? Array.from(this.valueData, item => item.toString()) : this.valueData.toString() ? this.valueData.toString().split(',') : [];
2477
+ },
2478
+ checkState() {
2479
+ if (this.inGroup) {
2480
+ return this.parseValueData.includes(this.value.toString());
2481
+ } else {
2482
+ return this.value;
2483
+ }
2484
+ },
2485
+ disabledState() {
2486
+ if (this.inGroup) {
2487
+ return this.inGroupDisabled || this.disabled;
2488
+ } else {
2489
+ return this.disabled;
2490
+ }
2491
+ },
2492
+ overflow() {
2493
+ return !this.checkState && this.limit > 0 && this.parseValueData.length >= this.limit;
2494
+ }
2495
+ },
2496
+ methods: {
2497
+ checkHandle(state) {
2498
+ if (this.disabledState) return;
2499
+ if (!this.inGroup) {
2500
+ this.$emit('input', state);
2501
+ return;
2502
+ }
2503
+ if (this.overflow) {
2504
+ this.$message({
2505
+ message: `最多只能选择${this.limit}项`
2506
+ });
2507
+ return;
2508
+ }
2509
+ let data;
2510
+ if (state) {
2511
+ data = this.parseValueData.concat([this.value.toString()]);
2512
+ } else {
2513
+ data = this.parseValueData.join(',').split(',');
2514
+ data.splice(data.indexOf(this.value.toString()), 1);
2515
+ }
2516
+ this.store.commit('valueData', typeof this.valueData == 'object' ? data : data.join(','));
2517
+ }
2518
+ }
2519
+ });
2520
+ ;// CONCATENATED MODULE: ./src/components/unit/checkbox.vue?vue&type=script&lang=js&
2521
+ /* harmony default export */ var unit_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
2522
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/checkbox.vue?vue&type=style&index=0&id=5c30b59c&prod&lang=stylus&scoped=true&
2523
+ // extracted by mini-css-extract-plugin
2524
+
2525
+ ;// CONCATENATED MODULE: ./src/components/unit/checkbox.vue?vue&type=style&index=0&id=5c30b59c&prod&lang=stylus&scoped=true&
2526
+
2527
+ ;// CONCATENATED MODULE: ./src/components/unit/checkbox.vue
2528
+
2529
+
2530
+
2531
+ ;
2532
+
2533
+
2534
+ /* normalize component */
2535
+
2536
+ var checkbox_component = normalizeComponent(
2537
+ unit_checkboxvue_type_script_lang_js_,
2538
+ checkboxvue_type_template_id_5c30b59c_scoped_true_render,
2539
+ checkboxvue_type_template_id_5c30b59c_scoped_true_staticRenderFns,
2540
+ false,
2541
+ null,
2542
+ "5c30b59c",
2543
+ null
2544
+
2545
+ )
2546
+
2547
+ /* harmony default export */ var unit_checkbox = (checkbox_component.exports);
2548
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/checkbox_group.vue?vue&type=template&id=1189f524&scoped=true&
2549
+ var checkbox_groupvue_type_template_id_1189f524_scoped_true_render = function render() {
2550
+ var _vm = this,
2551
+ _c = _vm._self._c;
2552
+ return _c('div', {
2553
+ staticClass: "c-checkbox-group"
2554
+ }, [_vm.$slots.default ? _vm._t("default") : _vm._l(_vm.options, function (item, i) {
2555
+ return _c('c-checkbox', {
2556
+ key: i,
2557
+ attrs: {
2558
+ "value": item.value
2559
+ }
2560
+ }, [_vm._v(_vm._s(item.name))]);
2561
+ })], 2);
220
2562
  };
221
- var buttonvue_type_template_id_73616ebe_scoped_true_staticRenderFns = [];
2563
+ var checkbox_groupvue_type_template_id_1189f524_scoped_true_staticRenderFns = [];
222
2564
 
223
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/button.vue?vue&type=script&lang=js&
224
- /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
225
- name: 'cButton',
2565
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/checkbox_group.vue?vue&type=script&lang=js&
2566
+
2567
+ /* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({
2568
+ name: 'cCheckboxGroup',
226
2569
  props: {
227
- size: {
228
- // 按钮尺寸(s:小号;m:中号;l:大号)
229
- type: String,
230
- default: 's'
231
- },
232
- color: {
233
- // 按钮颜色(default: 系统辅色;sys:系统主色;)
234
- type: String,
235
- default: 'black'
2570
+ value: {
2571
+ type: [String, Number, Array],
2572
+ default: ''
236
2573
  },
237
- hollow: Boolean,
238
- // 是否为空心按钮
239
-
2574
+ name: String,
240
2575
  disabled: Boolean,
241
- // 禁用
242
-
243
- icon: String // 按钮图标
2576
+ limit: [String, Number],
2577
+ options: Array
2578
+ },
2579
+ data() {
2580
+ return {
2581
+ store: createStore({
2582
+ valueData: this.value,
2583
+ limit: parseInt(this.limit),
2584
+ groupDisabled: this.disabled
2585
+ })
2586
+ };
2587
+ },
2588
+ computed: {
2589
+ ...mapState(['valueData'])
2590
+ },
2591
+ watch: {
2592
+ value(val) {
2593
+ this.set(val);
2594
+ },
2595
+ valueData() {
2596
+ this.$emit('input', this.get());
2597
+ },
2598
+ limit(val) {
2599
+ this.store.commit('limit', val);
2600
+ },
2601
+ disabled(val) {
2602
+ this.store.commit('groupDisabled', val);
2603
+ }
2604
+ },
2605
+ methods: {
2606
+ set(val = typeof this.valueData == 'object' ? [] : '') {
2607
+ this.store.commit('valueData', val);
2608
+ },
2609
+ get() {
2610
+ return this.valueData;
2611
+ }
244
2612
  }
245
2613
  });
246
- ;// CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=script&lang=js&
247
- /* harmony default export */ var unit_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
248
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/button.vue?vue&type=style&index=0&id=73616ebe&prod&lang=stylus&scoped=true&
2614
+ ;// CONCATENATED MODULE: ./src/components/unit/checkbox_group.vue?vue&type=script&lang=js&
2615
+ /* harmony default export */ var unit_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_);
2616
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/checkbox_group.vue?vue&type=style&index=0&id=1189f524&prod&lang=stylus&scoped=true&
249
2617
  // extracted by mini-css-extract-plugin
250
2618
 
251
- ;// CONCATENATED MODULE: ./src/components/unit/button.vue?vue&type=style&index=0&id=73616ebe&prod&lang=stylus&scoped=true&
2619
+ ;// CONCATENATED MODULE: ./src/components/unit/checkbox_group.vue?vue&type=style&index=0&id=1189f524&prod&lang=stylus&scoped=true&
252
2620
 
253
- ;// CONCATENATED MODULE: ./src/components/unit/button.vue
2621
+ ;// CONCATENATED MODULE: ./src/components/unit/checkbox_group.vue
254
2622
 
255
2623
 
256
2624
 
@@ -259,304 +2627,502 @@ var buttonvue_type_template_id_73616ebe_scoped_true_staticRenderFns = [];
259
2627
 
260
2628
  /* normalize component */
261
2629
 
262
- var button_component = normalizeComponent(
263
- unit_buttonvue_type_script_lang_js_,
264
- buttonvue_type_template_id_73616ebe_scoped_true_render,
265
- buttonvue_type_template_id_73616ebe_scoped_true_staticRenderFns,
2630
+ var checkbox_group_component = normalizeComponent(
2631
+ unit_checkbox_groupvue_type_script_lang_js_,
2632
+ checkbox_groupvue_type_template_id_1189f524_scoped_true_render,
2633
+ checkbox_groupvue_type_template_id_1189f524_scoped_true_staticRenderFns,
266
2634
  false,
267
2635
  null,
268
- "73616ebe",
2636
+ "1189f524",
269
2637
  null
270
2638
 
271
2639
  )
272
2640
 
273
- /* harmony default export */ var unit_button = (button_component.exports);
274
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/input.vue?vue&type=template&id=3a00d18a&scoped=true&
275
- var inputvue_type_template_id_3a00d18a_scoped_true_render = function render() {
2641
+ /* harmony default export */ var checkbox_group = (checkbox_group_component.exports);
2642
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/select.vue?vue&type=template&id=752f2375&
2643
+ var selectvue_type_template_id_752f2375_render = function render() {
276
2644
  var _vm = this,
277
2645
  _c = _vm._self._c;
278
2646
  return _c('div', {
279
- directives: [{
280
- name: "show",
281
- rawName: "v-show",
282
- value: _vm.type != 'hidden',
283
- expression: "type != 'hidden'"
284
- }],
285
- staticClass: "c-input",
2647
+ staticClass: "c-select",
286
2648
  class: {
287
- 'c-textarea': _vm.type == 'textarea',
2649
+ 'z-develop': _vm.listPosition,
288
2650
  'z-dis': _vm.disabled
289
- }
290
- }, [_vm.type == 'textarea' ? _c('div', [_c('textarea', {
291
- directives: [{
292
- name: "model",
293
- rawName: "v-model",
294
- value: _vm.valueData,
295
- expression: "valueData"
296
- }],
297
- ref: "input",
298
- style: {
299
- 'padding-bottom': _vm.maxlength ? '20px' : '8px'
300
- },
301
- attrs: {
302
- "placeholder": _vm.placeholder,
303
- "maxlength": _vm.maxlength,
304
- "disabled": _vm.disabled,
305
- "readonly": _vm.readonly
306
- },
307
- domProps: {
308
- "value": _vm.valueData
309
2651
  },
310
2652
  on: {
311
- "input": [function ($event) {
312
- if ($event.target.composing) return;
313
- _vm.valueData = $event.target.value;
314
- }, _vm.inputHandle],
315
- "focus": _vm.inputHandle,
316
- "blur": _vm.inputHandle,
317
- "change": function ($event) {
318
- return _vm.$emit('change');
319
- }
2653
+ "click": _vm.developHandle
320
2654
  }
321
- }), _vm.maxlength ? _c('span', {
322
- staticClass: "c-input-length"
323
- }, [_vm._v(_vm._s(_vm.valueData.length) + " / " + _vm._s(_vm.maxlength))]) : _vm._e()]) : _c('div', {
324
- staticClass: "flex"
325
- }, [_vm.type == 'stepper' && _vm.stepControls == 'both' ? _c('button', {
326
- staticClass: "c-input-step flex-center",
2655
+ }, [_c('div', {
2656
+ staticClass: "c-select-main flex-between-center"
2657
+ }, [_c('span', {
2658
+ staticClass: "c-select-current flex-grow ellipsis",
327
2659
  class: {
328
- 'z-dis': _vm.valueData !== '' && _vm.minRange !== false && _vm.minRange == _vm.valueData
329
- },
2660
+ 'z-empty': _vm.emptyState
2661
+ }
2662
+ }, [_vm._v(_vm._s(_vm.emptyState ? _vm.placeholder : _vm.valueName))]), _vm.clear && _vm.valueData.length ? _c('a', {
2663
+ staticClass: "c-select-clear flex-center",
330
2664
  on: {
331
2665
  "click": function ($event) {
332
- return _vm.stepHandle(-1);
2666
+ $event.stopPropagation();
2667
+ return _vm.clearHandle.apply(null, arguments);
333
2668
  }
334
2669
  }
335
2670
  }, [_c('i', {
336
- staticClass: "tf tf-minus"
337
- })]) : _vm._e(), _vm.compType === 'checkbox' ? _c('input', {
2671
+ staticClass: "tf tf-clear"
2672
+ })]) : _vm._e(), _vm._m(0)]), _c('div', {
338
2673
  directives: [{
339
- name: "model",
340
- rawName: "v-model",
341
- value: _vm.valueData,
342
- expression: "valueData"
2674
+ name: "show",
2675
+ rawName: "v-show",
2676
+ value: _vm.listPosition,
2677
+ expression: "listPosition"
343
2678
  }],
344
- ref: "input",
345
- staticClass: "flex-grow",
2679
+ ref: "list",
2680
+ staticClass: "c-select-options",
2681
+ style: _vm.listPosition,
2682
+ on: {
2683
+ "click": function ($event) {
2684
+ $event.stopPropagation();
2685
+ }
2686
+ }
2687
+ }, [_c('select-list', {
346
2688
  attrs: {
347
- "placeholder": _vm.placeholder,
348
- "maxlength": _vm.maxlength,
349
- "disabled": _vm.disabled,
350
- "readonly": _vm.readonly,
351
- "type": "checkbox"
2689
+ "options": _vm.options,
2690
+ "multiple": _vm.multiple
2691
+ }
2692
+ })], 1)]);
2693
+ };
2694
+ var selectvue_type_template_id_752f2375_staticRenderFns = [function () {
2695
+ var _vm = this,
2696
+ _c = _vm._self._c;
2697
+ return _c('span', {
2698
+ staticClass: "c-select-angle flex-center"
2699
+ }, [_c('i', {
2700
+ staticClass: "tf tf-angle-down"
2701
+ })]);
2702
+ }];
2703
+
2704
+ ;// CONCATENATED MODULE: ./src/components/unit/select.vue?vue&type=template&id=752f2375&
2705
+
2706
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2707
+ var es_array_push = __webpack_require__(7658);
2708
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/select.vue?vue&type=script&lang=js&
2709
+
2710
+
2711
+ function selectvue_type_script_lang_js_render(h, list, level = 0) {
2712
+ var arr = [];
2713
+ list && list.map(item => {
2714
+ arr = arr.concat([h("div", {
2715
+ "class": `flex-center-cross c-select-options-item flex-center-cross ${this.currentValue.includes(item.value.toString()) ? 'z-crt' : ''}`,
2716
+ "attrs": {
2717
+ "title": item.name
2718
+ },
2719
+ "on": {
2720
+ "click": () => this.clickHandle(item)
2721
+ }
2722
+ }, [level ? [h("div", {
2723
+ "class": "c-select-options-item-level tf tf-level-line",
2724
+ "style": `margin-left: ${(level - 1) * 20}px;`
2725
+ })] : [], h("p", {
2726
+ "class": "ellipsis flex-grow"
2727
+ }, [item.name]), this.multiple ? [h("i", {
2728
+ "class": "c-select-options-item-check tf tf-check"
2729
+ })] : []])]).concat(selectvue_type_script_lang_js_render.call(this, h, item.children, level + 1));
2730
+ });
2731
+ return arr;
2732
+ }
2733
+ const selectList = {
2734
+ render(h) {
2735
+ return h("div", [selectvue_type_script_lang_js_render.call(this, h, this.options)]);
2736
+ },
2737
+ props: {
2738
+ options: Array,
2739
+ multiple: Boolean
2740
+ },
2741
+ data() {
2742
+ return {
2743
+ store: this.$parent.store
2744
+ };
2745
+ },
2746
+ computed: {
2747
+ ...mapState(['valueData', 'currentData']),
2748
+ currentValue() {
2749
+ return Array.from(this.currentData, item => item.value.toString());
2750
+ }
2751
+ },
2752
+ watch: {
2753
+ valueData() {
2754
+ this.updateCurrentData();
352
2755
  },
353
- domProps: {
354
- "checked": Array.isArray(_vm.valueData) ? _vm._i(_vm.valueData, null) > -1 : _vm.valueData
2756
+ options() {
2757
+ this.updateCurrentData();
2758
+ }
2759
+ },
2760
+ mounted() {
2761
+ this.$el.addEventListener('wheel', e => {
2762
+ e.stopPropagation();
2763
+ });
2764
+ this.updateCurrentData();
2765
+ },
2766
+ methods: {
2767
+ updateCurrentData() {
2768
+ let data = [];
2769
+ let val = typeof this.valueData == 'object' ? Array.from(this.valueData, item => item.toString()) : this.valueData.toString().split(',');
2770
+ if (val.length) {
2771
+ !function loop(list) {
2772
+ list.forEach(item => {
2773
+ if (val.includes(item.value.toString())) {
2774
+ data.push(item);
2775
+ }
2776
+ item.children && loop(item.children);
2777
+ });
2778
+ }(this.options);
2779
+ }
2780
+ this.store.commit('currentData', data);
355
2781
  },
356
- on: {
357
- "input": _vm.inputHandle,
358
- "focus": _vm.inputHandle,
359
- "blur": _vm.inputHandle,
360
- "change": [function ($event) {
361
- var $$a = _vm.valueData,
362
- $$el = $event.target,
363
- $$c = $$el.checked ? true : false;
364
- if (Array.isArray($$a)) {
365
- var $$v = null,
366
- $$i = _vm._i($$a, $$v);
367
- if ($$el.checked) {
368
- $$i < 0 && (_vm.valueData = $$a.concat([$$v]));
369
- } else {
370
- $$i > -1 && (_vm.valueData = $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
371
- }
2782
+ clickHandle(item) {
2783
+ let data;
2784
+ if (this.multiple) {
2785
+ if (this.currentData.includes(item)) {
2786
+ data = Array.from(this.currentData, item => item);
2787
+ data.splice(data.indexOf(item), 1);
372
2788
  } else {
373
- _vm.valueData = $$c;
2789
+ data = this.currentData.concat([item]);
374
2790
  }
375
- }, function ($event) {
376
- return _vm.$emit('change');
377
- }]
2791
+ this.store.commit('currentData', data);
2792
+ data = Array.from(data, item => item.value);
2793
+ this.store.commit('valueData', typeof this.valueData == 'object' ? data : data.join(','));
2794
+ this.$parent.$emit('change', this.$parent.get());
2795
+ } else {
2796
+ if (!this.currentValue.includes(item.value.toString())) {
2797
+ this.store.commit('currentData', [item]);
2798
+ this.store.commit('valueData', item.value);
2799
+ this.$parent.$emit('change', this.$parent.get());
2800
+ }
2801
+ this.$parent.foldHandle();
2802
+ }
378
2803
  }
379
- }) : _vm.compType === 'radio' ? _c('input', {
380
- directives: [{
381
- name: "model",
382
- rawName: "v-model",
383
- value: _vm.valueData,
384
- expression: "valueData"
385
- }],
386
- ref: "input",
387
- staticClass: "flex-grow",
388
- attrs: {
389
- "placeholder": _vm.placeholder,
390
- "maxlength": _vm.maxlength,
391
- "disabled": _vm.disabled,
392
- "readonly": _vm.readonly,
393
- "type": "radio"
2804
+ }
2805
+ };
2806
+ /* harmony default export */ var selectvue_type_script_lang_js_ = ({
2807
+ name: 'cSelect',
2808
+ components: {
2809
+ selectList
2810
+ },
2811
+ props: {
2812
+ name: String,
2813
+ value: {
2814
+ type: [String, Number, Array],
2815
+ default: ''
394
2816
  },
395
- domProps: {
396
- "checked": _vm._q(_vm.valueData, null)
2817
+ placeholder: {
2818
+ type: String,
2819
+ default: '请选择'
397
2820
  },
398
- on: {
399
- "input": _vm.inputHandle,
400
- "focus": _vm.inputHandle,
401
- "blur": _vm.inputHandle,
402
- "change": [function ($event) {
403
- _vm.valueData = null;
404
- }, function ($event) {
405
- return _vm.$emit('change');
406
- }]
2821
+ options: {
2822
+ type: Array,
2823
+ default: () => {
2824
+ return [];
2825
+ }
2826
+ },
2827
+ listWidth: [Number, String],
2828
+ listHeight: {
2829
+ type: [Number, String],
2830
+ default: 300
2831
+ },
2832
+ multiple: Boolean,
2833
+ disabled: Boolean,
2834
+ clear: {
2835
+ type: Boolean,
2836
+ default: true
407
2837
  }
408
- }) : _c('input', {
409
- directives: [{
410
- name: "model",
411
- rawName: "v-model",
412
- value: _vm.valueData,
413
- expression: "valueData"
414
- }],
415
- ref: "input",
416
- staticClass: "flex-grow",
417
- attrs: {
418
- "placeholder": _vm.placeholder,
419
- "maxlength": _vm.maxlength,
420
- "disabled": _vm.disabled,
421
- "readonly": _vm.readonly,
422
- "type": _vm.compType
2838
+ },
2839
+ data() {
2840
+ return {
2841
+ store: createStore({
2842
+ valueData: this.value,
2843
+ currentData: []
2844
+ }),
2845
+ listPosition: false
2846
+ };
2847
+ },
2848
+ computed: {
2849
+ ...mapState(['valueData', 'currentData']),
2850
+ valueName() {
2851
+ return Array.from(this.currentData, item => item.name).join(',');
2852
+ },
2853
+ emptyState() {
2854
+ return !this.valueData || this.multiple && !this.valueData.length;
2855
+ },
2856
+ optionsClone() {
2857
+ return JSON.parse(JSON.stringify(this.options || []));
2858
+ }
2859
+ },
2860
+ watch: {
2861
+ value(val) {
2862
+ this.set(val);
2863
+ },
2864
+ valueData() {
2865
+ this.$emit('input', this.get());
2866
+ },
2867
+ optionsClone(val, old) {
2868
+ // console.log(val, old);
2869
+ if (old && old.length > 0) {
2870
+ this.set();
2871
+ }
2872
+ },
2873
+ currentData(val) {
2874
+ // if (this.multiple) {
2875
+ // let data = Array.from(val, item => item.value);
2876
+ // this.store.commit('valueData', typeof this.valueData == 'object' ? data : data.join(','));
2877
+ // } else {
2878
+ // this.store.commit('valueData', val[0] ? val[0].value : '');
2879
+ // }
2880
+ }
2881
+ },
2882
+ methods: {
2883
+ set(val = this.multiple && typeof this.valueData == 'object' ? [] : '') {
2884
+ this.store.commit('valueData', val);
423
2885
  },
424
- domProps: {
425
- "value": _vm.valueData
2886
+ get() {
2887
+ return this.valueData;
426
2888
  },
427
- on: {
428
- "input": [function ($event) {
429
- if ($event.target.composing) return;
430
- _vm.valueData = $event.target.value;
431
- }, _vm.inputHandle],
432
- "focus": _vm.inputHandle,
433
- "blur": _vm.inputHandle,
434
- "change": function ($event) {
435
- return _vm.$emit('change');
436
- }
2889
+ getCurrentData() {
2890
+ return this.multiple ? this.currentData : this.currentData[0] || {};
2891
+ },
2892
+ developHandle() {
2893
+ if (this.listPosition || this.disabled) return;
2894
+ this.listPosition = true;
2895
+ this.$nextTick(() => {
2896
+ let rect = this.$el.getBoundingClientRect();
2897
+ let listHeight = this.$refs.list.offsetHeight < this.listHeight ? this.$refs.list.offsetHeight : this.listHeight;
2898
+ let up = window.innerHeight - rect.bottom < listHeight;
2899
+ this.listPosition = {
2900
+ left: rect.left + 'px',
2901
+ top: (up ? rect.top - listHeight + 1 : rect.top + this.$el.offsetHeight - 1) + 'px',
2902
+ width: (this.listWidth || this.$el.offsetWidth) + 'px',
2903
+ 'max-height': this.parsePixel(this.listHeight)
2904
+ };
2905
+ });
2906
+ setTimeout(() => {
2907
+ window.addEventListener('click', this.foldHandle);
2908
+ window.addEventListener('wheel', this.foldHandle);
2909
+ });
2910
+ },
2911
+ foldHandle() {
2912
+ this.listPosition = false;
2913
+ window.removeEventListener('click', this.foldHandle);
2914
+ window.removeEventListener('wheel', this.foldHandle);
2915
+ },
2916
+ clearHandle() {
2917
+ this.set(typeof this.valueData == 'object' ? [] : '');
437
2918
  }
438
- }), _vm.clear && _vm.valueData ? _c('a', {
439
- staticClass: "c-input-handle clear flex-center",
440
- on: {
441
- "click": _vm.clearHandle
2919
+ }
2920
+ });
2921
+ ;// CONCATENATED MODULE: ./src/components/unit/select.vue?vue&type=script&lang=js&
2922
+ /* harmony default export */ var unit_selectvue_type_script_lang_js_ = (selectvue_type_script_lang_js_);
2923
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/select.vue?vue&type=style&index=0&id=752f2375&prod&lang=stylus&
2924
+ // extracted by mini-css-extract-plugin
2925
+
2926
+ ;// CONCATENATED MODULE: ./src/components/unit/select.vue?vue&type=style&index=0&id=752f2375&prod&lang=stylus&
2927
+
2928
+ ;// CONCATENATED MODULE: ./src/components/unit/select.vue
2929
+
2930
+
2931
+
2932
+ ;
2933
+
2934
+
2935
+ /* normalize component */
2936
+
2937
+ var select_component = normalizeComponent(
2938
+ unit_selectvue_type_script_lang_js_,
2939
+ selectvue_type_template_id_752f2375_render,
2940
+ selectvue_type_template_id_752f2375_staticRenderFns,
2941
+ false,
2942
+ null,
2943
+ null,
2944
+ null
2945
+
2946
+ )
2947
+
2948
+ /* harmony default export */ var unit_select = (select_component.exports);
2949
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/upload_file.vue?vue&type=template&id=2077e74c&scoped=true&
2950
+ var upload_filevue_type_template_id_2077e74c_scoped_true_render = function render() {
2951
+ var _vm = this,
2952
+ _c = _vm._self._c;
2953
+ return _c('div', {
2954
+ staticClass: "c-file"
2955
+ }, [_c('div', {
2956
+ class: {
2957
+ 'flex-start-end': _vm.media
442
2958
  }
443
- }, [_c('i', {
444
- staticClass: "tf tf-clear"
445
- })]) : _vm._e(), _vm.visible ? _c('a', {
446
- staticClass: "c-input-handle flex-center",
2959
+ }, [_vm.media ? _c('div', {
2960
+ staticClass: "c-file-media flex-wrap"
2961
+ }, [!_vm.parseValueData.length ? _c('div', {
2962
+ staticClass: "c-file-media-item flex-center empty",
447
2963
  on: {
448
- "click": function ($event) {
449
- _vm.visibleState = !_vm.visibleState;
450
- }
2964
+ "click": _vm.uploadHandle
451
2965
  }
452
2966
  }, [_c('i', {
453
- staticClass: "tf tf-eyes",
2967
+ staticClass: "tf tf-media"
2968
+ })]) : _vm._e(), _vm._l(_vm.parseValueData, function (item, i) {
2969
+ return _c('div', {
2970
+ key: item,
2971
+ staticClass: "c-file-media-item flex-center",
2972
+ on: {
2973
+ "click": function ($event) {
2974
+ return _vm.$preview({
2975
+ src: item
2976
+ });
2977
+ }
2978
+ }
2979
+ }, [_vm.isVideo(item) ? _c('video', {
2980
+ attrs: {
2981
+ "src": item
2982
+ }
2983
+ }) : _c('img', {
2984
+ attrs: {
2985
+ "src": item
2986
+ }
2987
+ }), _c('a', {
2988
+ staticClass: "flex-center",
2989
+ on: {
2990
+ "click": function ($event) {
2991
+ $event.stopPropagation();
2992
+ return _vm.removeHandle(i);
2993
+ },
2994
+ "mousedown": function ($event) {
2995
+ $event.stopPropagation();
2996
+ }
2997
+ }
2998
+ }, [_c('i', {
2999
+ staticClass: "tf tf-cross"
3000
+ })])]);
3001
+ })], 2) : _vm._e(), _c('div', {
454
3002
  class: {
455
- 'tf-eyes-close': _vm.visibleState
3003
+ 'flex-column': _vm.media,
3004
+ 'flex-center-cross': !_vm.media
456
3005
  }
457
- })]) : _vm._e(), _c('div', {
458
- staticClass: "flex-column"
459
- }, [_vm.type == 'stepper' ? _c('button', {
460
- staticClass: "c-input-step flex-center flex-grow",
461
- class: {
462
- 'z-dis': _vm.valueData !== '' && _vm.maxRange !== false && _vm.maxRange == _vm.valueData
3006
+ }, [_c('c-button', {
3007
+ attrs: {
3008
+ "color": "gray",
3009
+ "icon": _vm.icon,
3010
+ "hollow": ""
463
3011
  },
464
3012
  on: {
465
- "click": function ($event) {
466
- return _vm.stepHandle(1);
467
- }
3013
+ "click": _vm.uploadHandle
468
3014
  }
469
- }, [_c('i', {
470
- staticClass: "tf tf-plus"
471
- })]) : _vm._e(), _vm.type == 'stepper' && _vm.stepControls == 'side' ? _c('button', {
472
- staticClass: "c-input-step flex-center flex-grow",
3015
+ }, [_vm._v(_vm._s(_vm.button))]), _vm.tip || _vm.$slots.tip || _vm.fileTypeTip ? _c('div', {
3016
+ staticClass: "c-file-tip",
3017
+ style: {
3018
+ 'margin-top': _vm.media ? '4px' : ''
3019
+ }
3020
+ }, [_vm._t("tip", null, {
3021
+ "type": _vm.fileTypeTip
3022
+ }), !_vm.$scopedSlots.tip ? _c('div', {
473
3023
  class: {
474
- 'z-dis': _vm.valueData !== '' && _vm.minRange !== false && _vm.minRange == _vm.valueData
475
- },
476
- on: {
477
- "click": function ($event) {
478
- return _vm.stepHandle(-1);
479
- }
3024
+ 'flex-center': !_vm.media
480
3025
  }
481
- }, [_c('i', {
482
- staticClass: "tf tf-minus"
483
- })]) : _vm._e()]), _vm.unit ? _c('span', {
484
- staticClass: "c-input-unit flex-center"
485
- }, [_vm._v(_vm._s(_vm.unit))]) : _vm._e()])]);
3026
+ }, [_vm.tip ? _c('p', [_vm._v(_vm._s(_vm.tip))]) : _vm._e(), _vm.fileTypeTip ? _c('p', [_vm._v(_vm._s(_vm.tip && !_vm.media ? ',' : '') + _vm._s(_vm.fileTypeTip))]) : _vm._e()]) : _vm._e()], 2) : _vm._e()], 1)]), !_vm.media ? _c('ul', {
3027
+ directives: [{
3028
+ name: "show",
3029
+ rawName: "v-show",
3030
+ value: _vm.parseValueData.length,
3031
+ expression: "parseValueData.length"
3032
+ }],
3033
+ staticClass: "c-file-list"
3034
+ }, _vm._l(_vm.parseValueData, function (item, i) {
3035
+ return _c('li', {
3036
+ key: i
3037
+ }, [_c('span', [_vm._v(_vm._s(_vm.fileName(item)))]), _c('a', {
3038
+ on: {
3039
+ "click": function ($event) {
3040
+ return _vm.removeHandle(i);
3041
+ }
3042
+ }
3043
+ }, [_vm._v("[删除]")])]);
3044
+ }), 0) : _vm._e()]);
486
3045
  };
487
- var inputvue_type_template_id_3a00d18a_scoped_true_staticRenderFns = [];
3046
+ var upload_filevue_type_template_id_2077e74c_scoped_true_staticRenderFns = [];
488
3047
 
489
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/input.vue?vue&type=script&lang=js&
490
- /* harmony default export */ var inputvue_type_script_lang_js_ = ({
491
- name: 'cInput',
3048
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/upload_file.vue?vue&type=script&lang=js&
3049
+ /* harmony default export */ var upload_filevue_type_script_lang_js_ = ({
3050
+ name: 'cUploadFile',
492
3051
  props: {
493
- type: {
494
- // 文本框类型(hidden: 隐藏; password: 密码; number: 数字; stepper: 步进器; textarea: 多行文本)
3052
+ name: String,
3053
+ type: [String, Array],
3054
+ size: [String, Number],
3055
+ media: Boolean,
3056
+ icon: {
495
3057
  type: String,
496
- default: 'text'
3058
+ default: 'upload'
497
3059
  },
498
- value: [Number, String],
499
- name: String,
500
- placeholder: String,
501
- maxlength: [Number, String],
502
- decimal: [Number, String],
503
- // 保留小数位数
504
- range: [Number, String, Array],
505
- // 数字范围
506
- disabled: Boolean,
507
- readonly: Boolean,
508
- unit: String,
509
- // 显示单位
510
- visible: Boolean,
511
- // 可见密码按钮
512
- clear: {
513
- //清空按钮
514
- type: Boolean,
515
- default: true
3060
+ button: {
3061
+ type: String,
3062
+ default: '上传文件'
516
3063
  },
517
- step: {
518
- // 步进器精度
519
- type: [String, Number],
3064
+ tip: String,
3065
+ value: {
3066
+ type: [String, Array],
3067
+ default: ''
3068
+ },
3069
+ multiple: Boolean,
3070
+ limit: {
3071
+ type: [Number, String],
520
3072
  default: 1
521
3073
  },
522
- stepControls: {
523
- // 步进器按钮位置(both: 两侧; side: 一侧)
524
- type: String,
525
- default: 'both'
526
- }
3074
+ custom: Boolean
527
3075
  },
528
3076
  data() {
529
3077
  return {
530
- valueData: this.value || '',
531
- visibleState: false
3078
+ valueData: this.value
532
3079
  };
533
3080
  },
534
3081
  computed: {
535
- compType() {
536
- if (this.type == 'number' || this.visibleState) {
537
- return 'text';
538
- }
539
- return this.type;
3082
+ parseValueData() {
3083
+ return this.valueData ? typeof this.valueData == 'object' ? this.valueData : this.valueData.toString().split(',') : [];
540
3084
  },
541
- compRange() {
542
- return this.range ? typeof this.range == 'string' ? this.range.split(',') : this.range : false;
3085
+ fileType() {
3086
+ if (this.type) {
3087
+ let arr = [];
3088
+ this.type.split(',').forEach(item => {
3089
+ arr = arr.concat({
3090
+ image: ['jpg', 'jpeg', 'png'],
3091
+ video: ['mp4'],
3092
+ word: ['doc', 'docx'],
3093
+ excel: ['xls', 'xlsx'],
3094
+ zip: ['zip', '7z', 'rar']
3095
+ }[item] || [item]);
3096
+ });
3097
+ return arr;
3098
+ }
3099
+ return '';
543
3100
  },
544
- minRange() {
545
- if (typeof this.compRange == 'object' && this.compRange.length == 2) {
546
- return parseFloat(this.compRange[0]);
3101
+ fileTypeTip() {
3102
+ if (this.type) {
3103
+ let arr = [];
3104
+ this.type.split(',').forEach(item => {
3105
+ arr = arr.concat({
3106
+ image: ['图片'],
3107
+ video: ['mp4'],
3108
+ word: ['doc(x)'],
3109
+ excel: ['xls(x)'],
3110
+ zip: ['压缩包']
3111
+ }[item] || [item]);
3112
+ });
3113
+ return '支持格式:' + arr.join(',');
547
3114
  }
548
- return false;
3115
+ return '';
549
3116
  },
550
- maxRange() {
551
- return this.compRange !== false ? parseFloat(this.compRange[1]) : false;
3117
+ fileName() {
3118
+ return path => {
3119
+ return path.substring(path.lastIndexOf('/') + 1);
3120
+ };
552
3121
  },
553
- compDecimal() {
554
- if (this.type == 'number') {
555
- return this.decimal || 0;
556
- } else if (this.type == 'stepper') {
557
- return this.decimal || 99;
558
- }
559
- return false;
3122
+ isVideo() {
3123
+ return path => {
3124
+ return path.substring(path.lastIndexOf('.') + 1) == 'mp4';
3125
+ };
560
3126
  }
561
3127
  },
562
3128
  watch: {
@@ -568,68 +3134,121 @@ var inputvue_type_template_id_3a00d18a_scoped_true_staticRenderFns = [];
568
3134
  }
569
3135
  },
570
3136
  methods: {
571
- set(val = '') {
572
- this.valueData = val.toString();
3137
+ set(val = this.limit > 1 && typeof this.valueData == 'object' ? [] : '') {
3138
+ this.valueData = val;
573
3139
  },
574
3140
  get() {
575
3141
  return this.valueData;
576
3142
  },
577
- inputHandle(e) {
578
- if (this.compDecimal !== false) {
579
- var reg = [[this.compDecimal ? '[^-\\d\\.]+$' : '[^-\\d]+$', ''],
580
- //过滤非数字、负号、点的输入
581
- ['^(-?)0?(\\d+)$', '$1$2'],
582
- //过滤首位为0的输入
583
- ['^(-?)\\.$', '$1'],
584
- //过滤首位为.的输入
585
- ['\\.(\\d*)\\.+', '.$1'],
586
- //过滤第二个.
587
- ['^(\\d+\\.?\\d*)-+', '$1'],
588
- //过滤除第一位之外的-
589
- ['^(-\\d*\\.?\\d*)-+', '$1'],
590
- //过滤除第一位之外的-
591
- ['^(-?\\d+\\.\\d{' + this.compDecimal + '}).+', '$1'] //过滤多余小数位
592
- ];
593
-
594
- reg.forEach(item => {
595
- this.valueData = this.valueData.toString().replace(new RegExp(item[0]), item[1]);
3143
+ removeHandle(i) {
3144
+ let data = this.parseValueData.join(',').split(',');
3145
+ data.splice(i, 1);
3146
+ this.set(this.limit > 1 && typeof this.valueData == 'object' ? data : data.join(','));
3147
+ },
3148
+ uploadHandle() {
3149
+ if (this.parseValueData.length >= parseInt(this.limit)) {
3150
+ this.$message({
3151
+ message: `最多只能上传${this.limit}个文件`
596
3152
  });
597
- if (this.valueData !== '' && e.type == 'blur') {
598
- if (this.minRange !== false && this.valueData < this.minRange) {
599
- this.valueData = this.minRange;
600
- }
601
- if (this.maxRange !== false && this.valueData > this.maxRange) {
602
- this.valueData = this.maxRange;
603
- }
604
- }
3153
+ return;
605
3154
  }
606
- if (e.type != 'input') {
607
- this.$emit(e.type, e);
3155
+ if (this.custom) {
3156
+ this.$emit('click');
3157
+ } else {
3158
+ this.uploadFile({
3159
+ fileType: Array.from(this.fileType, item => '.' + item).join(','),
3160
+ fileSize: this.size,
3161
+ multiple: this.multiple || parseInt(this.limit) > 1,
3162
+ success: data => {
3163
+ if (!this.multiple && this.limit == 1) {
3164
+ this.set(data[0]);
3165
+ } else {
3166
+ data = this.parseValueData.concat(data);
3167
+ this.set(typeof this.valueData == 'object' ? data : data.join(','));
3168
+ }
3169
+ }
3170
+ });
608
3171
  }
3172
+ }
3173
+ }
3174
+ });
3175
+ ;// CONCATENATED MODULE: ./src/components/unit/upload_file.vue?vue&type=script&lang=js&
3176
+ /* harmony default export */ var unit_upload_filevue_type_script_lang_js_ = (upload_filevue_type_script_lang_js_);
3177
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/upload_file.vue?vue&type=style&index=0&id=2077e74c&prod&lang=stylus&scoped=true&
3178
+ // extracted by mini-css-extract-plugin
3179
+
3180
+ ;// CONCATENATED MODULE: ./src/components/unit/upload_file.vue?vue&type=style&index=0&id=2077e74c&prod&lang=stylus&scoped=true&
3181
+
3182
+ ;// CONCATENATED MODULE: ./src/components/unit/upload_file.vue
3183
+
3184
+
3185
+
3186
+ ;
3187
+
3188
+
3189
+ /* normalize component */
3190
+
3191
+ var upload_file_component = normalizeComponent(
3192
+ unit_upload_filevue_type_script_lang_js_,
3193
+ upload_filevue_type_template_id_2077e74c_scoped_true_render,
3194
+ upload_filevue_type_template_id_2077e74c_scoped_true_staticRenderFns,
3195
+ false,
3196
+ null,
3197
+ "2077e74c",
3198
+ null
3199
+
3200
+ )
3201
+
3202
+ /* harmony default export */ var upload_file = (upload_file_component.exports);
3203
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/file.vue?vue&type=template&id=abb21c70&scoped=true&
3204
+ var filevue_type_template_id_abb21c70_scoped_true_render = function render() {
3205
+ var _vm = this,
3206
+ _c = _vm._self._c;
3207
+ return _vm.src ? _c('div', {
3208
+ staticClass: "c-file flex"
3209
+ }, [_c('i', {
3210
+ staticClass: "tf tf-fw tf-file",
3211
+ class: `tf-file-${_vm.suffix}`
3212
+ }), _c('a', {
3213
+ on: {
3214
+ "click": _vm.download
3215
+ }
3216
+ }, [_vm._v(_vm._s(_vm.fileName))])]) : _vm._e();
3217
+ };
3218
+ var filevue_type_template_id_abb21c70_scoped_true_staticRenderFns = [];
3219
+
3220
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/file.vue?vue&type=script&lang=js&
3221
+ /* harmony default export */ var filevue_type_script_lang_js_ = ({
3222
+ name: 'cFile',
3223
+ props: {
3224
+ src: String
3225
+ },
3226
+ computed: {
3227
+ fileName() {
3228
+ if (!this.src) return '';
3229
+ let path = this.src.split('/');
3230
+ return path[path.length - 1];
609
3231
  },
610
- clearHandle() {
611
- this.valueData = '';
612
- this.$refs.input.focus();
613
- },
614
- stepHandle(step) {
615
- let valueStep = this.valueData.toString().split('.')[1] || '';
616
- let stepStep = this.step.toString().split('.')[1] || '';
617
- let n = stepStep.length > valueStep.length ? stepStep.length : valueStep.length;
618
- this.valueData = parseFloat(((parseFloat(this.valueData) || 0) + step * parseFloat(this.step)).toFixed(n));
619
- this.inputHandle({
620
- type: 'blur'
621
- });
3232
+ suffix() {
3233
+ if (!this.src) return '';
3234
+ var arr = this.src.split('.');
3235
+ return arr[arr.length - 1].toLowerCase();
3236
+ }
3237
+ },
3238
+ methods: {
3239
+ download() {
3240
+ window.open(this.src);
622
3241
  }
623
3242
  }
624
3243
  });
625
- ;// CONCATENATED MODULE: ./src/components/unit/input.vue?vue&type=script&lang=js&
626
- /* harmony default export */ var unit_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_);
627
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/input.vue?vue&type=style&index=0&id=3a00d18a&prod&lang=stylus&scoped=true&
3244
+ ;// CONCATENATED MODULE: ./src/components/unit/file.vue?vue&type=script&lang=js&
3245
+ /* harmony default export */ var unit_filevue_type_script_lang_js_ = (filevue_type_script_lang_js_);
3246
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-37.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-37.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-37.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-37.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/unit/file.vue?vue&type=style&index=0&id=abb21c70&prod&lang=stylus&scoped=true&
628
3247
  // extracted by mini-css-extract-plugin
629
3248
 
630
- ;// CONCATENATED MODULE: ./src/components/unit/input.vue?vue&type=style&index=0&id=3a00d18a&prod&lang=stylus&scoped=true&
3249
+ ;// CONCATENATED MODULE: ./src/components/unit/file.vue?vue&type=style&index=0&id=abb21c70&prod&lang=stylus&scoped=true&
631
3250
 
632
- ;// CONCATENATED MODULE: ./src/components/unit/input.vue
3251
+ ;// CONCATENATED MODULE: ./src/components/unit/file.vue
633
3252
 
634
3253
 
635
3254
 
@@ -638,30 +3257,29 @@ var inputvue_type_template_id_3a00d18a_scoped_true_staticRenderFns = [];
638
3257
 
639
3258
  /* normalize component */
640
3259
 
641
- var input_component = normalizeComponent(
642
- unit_inputvue_type_script_lang_js_,
643
- inputvue_type_template_id_3a00d18a_scoped_true_render,
644
- inputvue_type_template_id_3a00d18a_scoped_true_staticRenderFns,
3260
+ var file_component = normalizeComponent(
3261
+ unit_filevue_type_script_lang_js_,
3262
+ filevue_type_template_id_abb21c70_scoped_true_render,
3263
+ filevue_type_template_id_abb21c70_scoped_true_staticRenderFns,
645
3264
  false,
646
3265
  null,
647
- "3a00d18a",
3266
+ "abb21c70",
648
3267
  null
649
3268
 
650
3269
  )
651
3270
 
652
- /* harmony default export */ var input = (input_component.exports);
3271
+ /* harmony default export */ var file = (file_component.exports);
653
3272
  ;// CONCATENATED MODULE: ./src/components/index.js
654
3273
 
655
3274
 
656
3275
 
657
- // import Radio from './unit/radio.vue'
658
- // import RadioGroup from './unit/radio_group.vue'
659
- // import Checkbox from './unit/checkbox.vue'
660
- // import CheckboxGroup from './unit/checkbox_group.vue'
661
- // import Select from './unit/select.vue'
3276
+
3277
+
3278
+
3279
+
662
3280
  // import Region from './unit/region.vue'
663
- // import UploadFile from './unit/upload_file.vue'
664
- // import File from './unit/file.vue'
3281
+
3282
+
665
3283
  // import Editor from './unit/editor.vue'
666
3284
 
667
3285
  // import cDialog from './popup/dialog.vue'
@@ -671,15 +3289,9 @@ var input_component = normalizeComponent(
671
3289
  // import confirm from './popup/confirm.vue';
672
3290
  // import preview from './popup/preview.vue';
673
3291
 
674
- const COMPS = [test, unit_button, input
675
- // Radio,
676
- // RadioGroup,
677
- // Checkbox,
678
- // CheckboxGroup,
679
- // Select,
3292
+ const COMPS = [unit_button, input, unit_radio, radio_group, unit_checkbox, checkbox_group, unit_select,
680
3293
  // Region,
681
- // UploadFile,
682
- // File,
3294
+ upload_file, file
683
3295
  // Editor,
684
3296
  // cDialog
685
3297
  ];
@@ -758,6 +3370,7 @@ const install = function (Vue, config) {
758
3370
  /* harmony default export */ var entry_lib = (components);
759
3371
 
760
3372
 
3373
+ }();
761
3374
  module.exports = __webpack_exports__;
762
3375
  /******/ })()
763
3376
  ;