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