@deanwu/vue-component-library 1.0.10 → 1.0.11

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