byt-ui 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/byt-ui.umd.js CHANGED
@@ -2909,7 +2909,7 @@ var DESCRIPTORS = __webpack_require__(19781);
2909
2909
  var isArray = __webpack_require__(43157);
2910
2910
 
2911
2911
  var $TypeError = TypeError;
2912
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2912
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
2913
2913
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2914
2914
 
2915
2915
  // Safari < 13 does not throw an error in this case
@@ -2917,7 +2917,7 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
2917
2917
  // makes no sense without proper strict mode support
2918
2918
  if (this !== undefined) return true;
2919
2919
  try {
2920
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2920
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
2921
2921
  Object.defineProperty([], 'length', { writable: false }).length = 1;
2922
2922
  } catch (error) {
2923
2923
  return error instanceof TypeError;
@@ -2938,10 +2938,10 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2938
2938
  /***/ 84326:
2939
2939
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2940
2940
 
2941
- var uncurryThisRaw = __webpack_require__(40084);
2941
+ var uncurryThis = __webpack_require__(1702);
2942
2942
 
2943
- var toString = uncurryThisRaw({}.toString);
2944
- var stringSlice = uncurryThisRaw(''.slice);
2943
+ var toString = uncurryThis({}.toString);
2944
+ var stringSlice = uncurryThis(''.slice);
2945
2945
 
2946
2946
  module.exports = function (it) {
2947
2947
  return stringSlice(toString(it), 8, -1);
@@ -3044,7 +3044,7 @@ module.exports = function (O, key, value, options) {
3044
3044
 
3045
3045
  var global = __webpack_require__(17854);
3046
3046
 
3047
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3047
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
3048
3048
  var defineProperty = Object.defineProperty;
3049
3049
 
3050
3050
  module.exports = function (key, value) {
@@ -3065,27 +3065,11 @@ var fails = __webpack_require__(47293);
3065
3065
 
3066
3066
  // Detect IE8's incomplete defineProperty implementation
3067
3067
  module.exports = !fails(function () {
3068
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
3068
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
3069
3069
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
3070
3070
  });
3071
3071
 
3072
3072
 
3073
- /***/ }),
3074
-
3075
- /***/ 4154:
3076
- /***/ (function(module) {
3077
-
3078
- var documentAll = typeof document == 'object' && document.all;
3079
-
3080
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
3081
- var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
3082
-
3083
- module.exports = {
3084
- all: documentAll,
3085
- IS_HTMLDDA: IS_HTMLDDA
3086
- };
3087
-
3088
-
3089
3073
  /***/ }),
3090
3074
 
3091
3075
  /***/ 80317:
@@ -3261,7 +3245,7 @@ module.exports = function (exec) {
3261
3245
  var fails = __webpack_require__(47293);
3262
3246
 
3263
3247
  module.exports = !fails(function () {
3264
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
3248
+ // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
3265
3249
  var test = (function () { /* empty */ }).bind();
3266
3250
  // eslint-disable-next-line no-prototype-builtins -- safe
3267
3251
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -3291,7 +3275,7 @@ var DESCRIPTORS = __webpack_require__(19781);
3291
3275
  var hasOwn = __webpack_require__(92597);
3292
3276
 
3293
3277
  var FunctionPrototype = Function.prototype;
3294
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3278
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
3295
3279
  var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
3296
3280
 
3297
3281
  var EXISTS = hasOwn(FunctionPrototype, 'name');
@@ -3308,38 +3292,25 @@ module.exports = {
3308
3292
 
3309
3293
  /***/ }),
3310
3294
 
3311
- /***/ 40084:
3295
+ /***/ 1702:
3312
3296
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3313
3297
 
3314
3298
  var NATIVE_BIND = __webpack_require__(34374);
3315
3299
 
3316
3300
  var FunctionPrototype = Function.prototype;
3301
+ var bind = FunctionPrototype.bind;
3317
3302
  var call = FunctionPrototype.call;
3318
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
3303
+ var uncurryThis = NATIVE_BIND && bind.bind(call, call);
3319
3304
 
3320
- module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
3321
- return function () {
3305
+ module.exports = NATIVE_BIND ? function (fn) {
3306
+ return fn && uncurryThis(fn);
3307
+ } : function (fn) {
3308
+ return fn && function () {
3322
3309
  return call.apply(fn, arguments);
3323
3310
  };
3324
3311
  };
3325
3312
 
3326
3313
 
3327
- /***/ }),
3328
-
3329
- /***/ 1702:
3330
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3331
-
3332
- var classofRaw = __webpack_require__(84326);
3333
- var uncurryThisRaw = __webpack_require__(40084);
3334
-
3335
- module.exports = function (fn) {
3336
- // Nashorn bug:
3337
- // https://github.com/zloirock/core-js/issues/1128
3338
- // https://github.com/zloirock/core-js/issues/1130
3339
- if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);
3340
- };
3341
-
3342
-
3343
3314
  /***/ }),
3344
3315
 
3345
3316
  /***/ 35005:
@@ -3384,7 +3355,7 @@ var check = function (it) {
3384
3355
 
3385
3356
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
3386
3357
  module.exports =
3387
- // eslint-disable-next-line es/no-global-this -- safe
3358
+ // eslint-disable-next-line es-x/no-global-this -- safe
3388
3359
  check(typeof globalThis == 'object' && globalThis) ||
3389
3360
  check(typeof window == 'object' && window) ||
3390
3361
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -3406,7 +3377,7 @@ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
3406
3377
 
3407
3378
  // `HasOwnProperty` abstract operation
3408
3379
  // https://tc39.es/ecma262/#sec-hasownproperty
3409
- // eslint-disable-next-line es/no-object-hasown -- safe
3380
+ // eslint-disable-next-line es-x/no-object-hasown -- safe
3410
3381
  module.exports = Object.hasOwn || function hasOwn(it, key) {
3411
3382
  return hasOwnProperty(toObject(it), key);
3412
3383
  };
@@ -3431,7 +3402,7 @@ var createElement = __webpack_require__(80317);
3431
3402
 
3432
3403
  // Thanks to IE8 for its funny defineProperty
3433
3404
  module.exports = !DESCRIPTORS && !fails(function () {
3434
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
3405
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
3435
3406
  return Object.defineProperty(createElement('div'), 'a', {
3436
3407
  get: function () { return 7; }
3437
3408
  }).a != 7;
@@ -3488,6 +3459,7 @@ module.exports = store.inspectSource;
3488
3459
 
3489
3460
  var NATIVE_WEAK_MAP = __webpack_require__(94811);
3490
3461
  var global = __webpack_require__(17854);
3462
+ var uncurryThis = __webpack_require__(1702);
3491
3463
  var isObject = __webpack_require__(70111);
3492
3464
  var createNonEnumerableProperty = __webpack_require__(68880);
3493
3465
  var hasOwn = __webpack_require__(92597);
@@ -3515,22 +3487,20 @@ var getterFor = function (TYPE) {
3515
3487
 
3516
3488
  if (NATIVE_WEAK_MAP || shared.state) {
3517
3489
  var store = shared.state || (shared.state = new WeakMap());
3518
- /* eslint-disable no-self-assign -- prototype methods protection */
3519
- store.get = store.get;
3520
- store.has = store.has;
3521
- store.set = store.set;
3522
- /* eslint-enable no-self-assign -- prototype methods protection */
3490
+ var wmget = uncurryThis(store.get);
3491
+ var wmhas = uncurryThis(store.has);
3492
+ var wmset = uncurryThis(store.set);
3523
3493
  set = function (it, metadata) {
3524
- if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
3494
+ if (wmhas(store, it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
3525
3495
  metadata.facade = it;
3526
- store.set(it, metadata);
3496
+ wmset(store, it, metadata);
3527
3497
  return metadata;
3528
3498
  };
3529
3499
  get = function (it) {
3530
- return store.get(it) || {};
3500
+ return wmget(store, it) || {};
3531
3501
  };
3532
3502
  has = function (it) {
3533
- return store.has(it);
3503
+ return wmhas(store, it);
3534
3504
  };
3535
3505
  } else {
3536
3506
  var STATE = sharedKey('state');
@@ -3567,7 +3537,7 @@ var classof = __webpack_require__(84326);
3567
3537
 
3568
3538
  // `IsArray` abstract operation
3569
3539
  // https://tc39.es/ecma262/#sec-isarray
3570
- // eslint-disable-next-line es/no-array-isarray -- safe
3540
+ // eslint-disable-next-line es-x/no-array-isarray -- safe
3571
3541
  module.exports = Array.isArray || function isArray(argument) {
3572
3542
  return classof(argument) == 'Array';
3573
3543
  };
@@ -3576,17 +3546,11 @@ module.exports = Array.isArray || function isArray(argument) {
3576
3546
  /***/ }),
3577
3547
 
3578
3548
  /***/ 60614:
3579
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3580
-
3581
- var $documentAll = __webpack_require__(4154);
3582
-
3583
- var documentAll = $documentAll.all;
3549
+ /***/ (function(module) {
3584
3550
 
3585
3551
  // `IsCallable` abstract operation
3586
3552
  // https://tc39.es/ecma262/#sec-iscallable
3587
- module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
3588
- return typeof argument == 'function' || argument === documentAll;
3589
- } : function (argument) {
3553
+ module.exports = function (argument) {
3590
3554
  return typeof argument == 'function';
3591
3555
  };
3592
3556
 
@@ -3638,11 +3602,13 @@ module.exports = function (it) {
3638
3602
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3639
3603
 
3640
3604
  var isCallable = __webpack_require__(60614);
3641
- var $documentAll = __webpack_require__(4154);
3642
3605
 
3643
- var documentAll = $documentAll.all;
3606
+ var documentAll = typeof document == 'object' && document.all;
3644
3607
 
3645
- module.exports = $documentAll.IS_HTMLDDA ? function (it) {
3608
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
3609
+ var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
3610
+
3611
+ module.exports = SPECIAL_DOCUMENT_ALL ? function (it) {
3646
3612
  return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
3647
3613
  } : function (it) {
3648
3614
  return typeof it == 'object' ? it !== null : isCallable(it);
@@ -3706,7 +3672,7 @@ var InternalStateModule = __webpack_require__(29909);
3706
3672
 
3707
3673
  var enforceInternalState = InternalStateModule.enforce;
3708
3674
  var getInternalState = InternalStateModule.get;
3709
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3675
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
3710
3676
  var defineProperty = Object.defineProperty;
3711
3677
 
3712
3678
  var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
@@ -3757,7 +3723,7 @@ var floor = Math.floor;
3757
3723
 
3758
3724
  // `Math.trunc` method
3759
3725
  // https://tc39.es/ecma262/#sec-math.trunc
3760
- // eslint-disable-next-line es/no-math-trunc -- safe
3726
+ // eslint-disable-next-line es-x/no-math-trunc -- safe
3761
3727
  module.exports = Math.trunc || function trunc(x) {
3762
3728
  var n = +x;
3763
3729
  return (n > 0 ? floor : ceil)(n);
@@ -3776,9 +3742,9 @@ var anObject = __webpack_require__(19670);
3776
3742
  var toPropertyKey = __webpack_require__(34948);
3777
3743
 
3778
3744
  var $TypeError = TypeError;
3779
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3745
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
3780
3746
  var $defineProperty = Object.defineProperty;
3781
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3747
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
3782
3748
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3783
3749
  var ENUMERABLE = 'enumerable';
3784
3750
  var CONFIGURABLE = 'configurable';
@@ -3828,7 +3794,7 @@ var toPropertyKey = __webpack_require__(34948);
3828
3794
  var hasOwn = __webpack_require__(92597);
3829
3795
  var IE8_DOM_DEFINE = __webpack_require__(64664);
3830
3796
 
3831
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3797
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
3832
3798
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3833
3799
 
3834
3800
  // `Object.getOwnPropertyDescriptor` method
@@ -3855,7 +3821,7 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
3855
3821
 
3856
3822
  // `Object.getOwnPropertyNames` method
3857
3823
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
3858
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
3824
+ // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
3859
3825
  exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
3860
3826
  return internalObjectKeys(O, hiddenKeys);
3861
3827
  };
@@ -3866,7 +3832,7 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
3866
3832
  /***/ 25181:
3867
3833
  /***/ (function(__unused_webpack_module, exports) {
3868
3834
 
3869
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
3835
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
3870
3836
  exports.f = Object.getOwnPropertySymbols;
3871
3837
 
3872
3838
 
@@ -3915,7 +3881,7 @@ module.exports = function (object, names) {
3915
3881
  "use strict";
3916
3882
 
3917
3883
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
3918
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3884
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
3919
3885
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3920
3886
 
3921
3887
  // Nashorn ~ JDK8 bug
@@ -4029,10 +3995,10 @@ var store = __webpack_require__(5465);
4029
3995
  (module.exports = function (key, value) {
4030
3996
  return store[key] || (store[key] = value !== undefined ? value : {});
4031
3997
  })('versions', []).push({
4032
- version: '3.26.0',
3998
+ version: '3.25.1',
4033
3999
  mode: IS_PURE ? 'pure' : 'global',
4034
4000
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
4035
- license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE',
4001
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE',
4036
4002
  source: 'https://github.com/zloirock/core-js'
4037
4003
  });
4038
4004
 
@@ -4042,11 +4008,11 @@ var store = __webpack_require__(5465);
4042
4008
  /***/ 36293:
4043
4009
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
4044
4010
 
4045
- /* eslint-disable es/no-symbol -- required for testing */
4011
+ /* eslint-disable es-x/no-symbol -- required for testing */
4046
4012
  var V8_VERSION = __webpack_require__(7392);
4047
4013
  var fails = __webpack_require__(47293);
4048
4014
 
4049
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
4015
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
4050
4016
  module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
4051
4017
  var symbol = Symbol();
4052
4018
  // Chrome 38 Symbol has incorrect toString conversion
@@ -4223,7 +4189,7 @@ module.exports = function (key) {
4223
4189
  /***/ 43307:
4224
4190
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
4225
4191
 
4226
- /* eslint-disable es/no-symbol -- required for testing */
4192
+ /* eslint-disable es-x/no-symbol -- required for testing */
4227
4193
  var NATIVE_SYMBOL = __webpack_require__(36293);
4228
4194
 
4229
4195
  module.exports = NATIVE_SYMBOL
@@ -4242,7 +4208,7 @@ var fails = __webpack_require__(47293);
4242
4208
  // V8 ~ Chrome 36-
4243
4209
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
4244
4210
  module.exports = DESCRIPTORS && fails(function () {
4245
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
4211
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
4246
4212
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
4247
4213
  value: 42,
4248
4214
  writable: false
@@ -4316,7 +4282,7 @@ var INCORRECT_TO_LENGTH = fails(function () {
4316
4282
  // https://bugs.chromium.org/p/v8/issues/detail?id=12681
4317
4283
  var SILENT_ON_NON_WRITABLE_LENGTH = !function () {
4318
4284
  try {
4319
- // eslint-disable-next-line es/no-object-defineproperty -- safe
4285
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
4320
4286
  Object.defineProperty([], 'length', { writable: false }).push();
4321
4287
  } catch (error) {
4322
4288
  return error instanceof TypeError;
@@ -85600,13 +85566,14 @@ var website = __webpack_require__(92502);
85600
85566
  * @Description:
85601
85567
  * @Author: 王国火
85602
85568
  * @Date: 2022-10-18 12:37:03
85603
- * @LastEditTime: 2022-10-18 12:37:56
85569
+ * @LastEditTime: 2022-11-16 20:11:01
85604
85570
  * @LastEditors: 王国火
85605
85571
  */
85606
85572
 
85607
85573
 
85608
85574
  const getCookie = (key, context) => {
85609
- const searchKey = `${website["default"].key}_${key}`;
85575
+ const searchKey = `${website["default"].key}-${key}`;
85576
+
85610
85577
  if (context && context.req) {
85611
85578
  if (context.req.headers.cookie) {
85612
85579
  const arr = context.req.headers.cookie.split(';');
@@ -85622,13 +85589,13 @@ const getCookie = (key, context) => {
85622
85589
  }
85623
85590
  };
85624
85591
  const setCookie = (key, value, expires = 7, path = '/') => {
85625
- return js_cookie.set(`${website["default"].key}_${key}`, value, {
85592
+ return js_cookie.set(`${website["default"].key}-${key}`, value, {
85626
85593
  expires,
85627
85594
  path
85628
85595
  });
85629
85596
  };
85630
85597
  const removeCookie = (key, path = '/') => {
85631
- return js_cookie.remove(key, {
85598
+ return js_cookie.remove(`${website["default"].key}-${key}`, {
85632
85599
  path
85633
85600
  });
85634
85601
  };
@@ -85652,6 +85619,7 @@ __webpack_require__.r(__webpack_exports__);
85652
85619
  /* harmony import */ var _validate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59666);
85653
85620
  /* harmony import */ var _website__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(92502);
85654
85621
 
85622
+
85655
85623
  /*
85656
85624
  * @Description:
85657
85625
  * @Author: 王国火
@@ -85660,12 +85628,13 @@ __webpack_require__.r(__webpack_exports__);
85660
85628
  * @LastEditors: 王国火
85661
85629
  */
85662
85630
 
85631
+ //存储前缀 避免与同域的其它项目冲突
85663
85632
 
85664
- //存储前缀 避免与同域的其它项目冲突
85665
85633
  const keyName = _website__WEBPACK_IMPORTED_MODULE_2__["default"].key;
85666
85634
  /**
85667
85635
  * 存储localStorage
85668
85636
  */
85637
+
85669
85638
  const setStore = (key, value, type = 0) => {
85670
85639
  const name = `${keyName}-${key}`;
85671
85640
  const obj = {
@@ -85674,6 +85643,7 @@ const setStore = (key, value, type = 0) => {
85674
85643
  type: type,
85675
85644
  datetime: new Date().getTime()
85676
85645
  };
85646
+
85677
85647
  if (type) {
85678
85648
  window.sessionStorage.setItem(name, JSON.stringify(obj));
85679
85649
  } else {
@@ -85689,14 +85659,17 @@ const getStore = (key, debug = false) => {
85689
85659
  let obj = window.sessionStorage.getItem(name) || window.localStorage.getItem(name);
85690
85660
  let content;
85691
85661
  if ((0,_validate__WEBPACK_IMPORTED_MODULE_1__.validatenull)(obj)) return null;
85662
+
85692
85663
  try {
85693
85664
  obj = JSON.parse(obj);
85694
85665
  } catch (e) {
85695
85666
  return obj;
85696
85667
  }
85668
+
85697
85669
  if (debug) {
85698
85670
  return obj;
85699
85671
  }
85672
+
85700
85673
  if (obj.dataType === 'string') {
85701
85674
  content = obj.content;
85702
85675
  } else if (obj.dataType === 'number') {
@@ -85706,22 +85679,25 @@ const getStore = (key, debug = false) => {
85706
85679
  } else if (obj.dataType === 'object') {
85707
85680
  content = obj.content;
85708
85681
  }
85682
+
85709
85683
  return content;
85710
85684
  };
85711
85685
  /**
85712
85686
  * 删除localStorage
85713
85687
  */
85688
+
85714
85689
  const removeStore = key => {
85715
85690
  const name = `${keyName}-${key}`;
85716
85691
  window.sessionStorage.removeItem(name);
85717
85692
  window.localStorage.removeItem(name);
85718
85693
  };
85719
-
85720
85694
  /**
85721
85695
  * 获取全部localStorage
85722
85696
  */
85697
+
85723
85698
  const getAllStore = (type = 0) => {
85724
85699
  const list = [];
85700
+
85725
85701
  if (type) {
85726
85702
  for (let i = 0; i <= window.sessionStorage.length; i++) {
85727
85703
  list.push({
@@ -85742,12 +85718,13 @@ const getAllStore = (type = 0) => {
85742
85718
  });
85743
85719
  }
85744
85720
  }
85721
+
85745
85722
  return list;
85746
85723
  };
85747
-
85748
85724
  /**
85749
85725
  * 清空全部localStorage
85750
85726
  */
85727
+
85751
85728
  const clearStore = (type = 0) => {
85752
85729
  if (type) {
85753
85730
  window.sessionStorage.clear();
@@ -85790,35 +85767,35 @@ __webpack_require__.r(__webpack_exports__);
85790
85767
  function isExternal(path) {
85791
85768
  return /^(https?:|mailto:|tel:)/.test(path);
85792
85769
  }
85793
-
85794
85770
  /**
85795
85771
  * 邮箱
85796
85772
  * @param {*} s
85797
85773
  */
85774
+
85798
85775
  function isEmail(s) {
85799
85776
  return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s);
85800
85777
  }
85801
-
85802
85778
  /**
85803
85779
  * 手机号码
85804
85780
  * @param {*} s
85805
85781
  */
85782
+
85806
85783
  function isMobile(s) {
85807
85784
  return /^1[0-9]{10}$/.test(s);
85808
85785
  }
85809
-
85810
85786
  /**
85811
85787
  * 电话号码
85812
85788
  * @param {*} s
85813
85789
  */
85790
+
85814
85791
  function isPhone(s) {
85815
85792
  return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(s);
85816
85793
  }
85817
-
85818
85794
  /**
85819
85795
  * URL地址
85820
85796
  * @param {*} s
85821
85797
  */
85798
+
85822
85799
  function isURL(s) {
85823
85800
  return /^http[s]?:\/\/.*/.test(s);
85824
85801
  }
@@ -85826,58 +85803,60 @@ function isvalidUsername(str) {
85826
85803
  const valid_map = ['admin', 'editor'];
85827
85804
  return valid_map.indexOf(str.trim()) >= 0;
85828
85805
  }
85829
-
85830
85806
  /* 合法uri */
85807
+
85831
85808
  function validateURL(textval) {
85832
85809
  const urlregex = /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;
85833
85810
  return urlregex.test(textval);
85834
85811
  }
85835
-
85836
85812
  /* 小写字母 */
85813
+
85837
85814
  function validateLowerCase(str) {
85838
85815
  const reg = /^[a-z]+$/;
85839
85816
  return reg.test(str);
85840
85817
  }
85841
-
85842
85818
  /* 大写字母 */
85819
+
85843
85820
  function validateUpperCase(str) {
85844
85821
  const reg = /^[A-Z]+$/;
85845
85822
  return reg.test(str);
85846
85823
  }
85847
-
85848
85824
  /* 大小写字母 */
85825
+
85849
85826
  function validatAlphabets(str) {
85850
85827
  const reg = /^[A-Za-z]+$/;
85851
85828
  return reg.test(str);
85852
85829
  }
85853
-
85854
85830
  /* 验证pad还是pc */
85831
+
85855
85832
  const vaildatePc = function () {
85856
85833
  const userAgentInfo = navigator.userAgent;
85857
85834
  const Agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];
85858
85835
  let flag = true;
85836
+
85859
85837
  for (var v = 0; v < Agents.length; v++) {
85860
85838
  if (userAgentInfo.indexOf(Agents[v]) > 0) {
85861
85839
  flag = false;
85862
85840
  break;
85863
85841
  }
85864
85842
  }
85843
+
85865
85844
  return flag;
85866
85845
  };
85867
-
85868
85846
  /**
85869
85847
  * validate email
85870
85848
  * @param email
85871
85849
  * @returns {boolean}
85872
85850
  */
85851
+
85873
85852
  function validateEmail(email) {
85874
85853
  const re = /^(([^<>()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
85875
85854
  return re.test(email);
85876
85855
  }
85877
-
85878
85856
  /**
85879
85857
  * 判断身份证号码
85880
85858
  */
85859
+
85881
85860
  function cardid(code) {
85882
85861
  const list = [];
85883
85862
  let result = true;
@@ -85919,6 +85898,7 @@ function cardid(code) {
85919
85898
  82: '澳门',
85920
85899
  91: '国外 '
85921
85900
  };
85901
+
85922
85902
  if (!validatenull(code)) {
85923
85903
  if (code.length === 18) {
85924
85904
  if (!code || !/(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(code)) {
@@ -85927,20 +85907,22 @@ function cardid(code) {
85927
85907
  msg = '地址编码错误';
85928
85908
  } else {
85929
85909
  // 18位身份证需要验证最后一位校验位
85930
- code = code.split('');
85931
- // ∑(ai×Wi)(mod 11)
85910
+ code = code.split(''); // ∑(ai×Wi)(mod 11)
85932
85911
  // 加权因子
85933
- var factor = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
85934
- // 校验位
85912
+
85913
+ var factor = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2]; // 校验位
85914
+
85935
85915
  var parity = [1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2, 'x'];
85936
85916
  var sum = 0;
85937
85917
  var ai = 0;
85938
85918
  var wi = 0;
85919
+
85939
85920
  for (var i = 0; i < 17; i++) {
85940
85921
  ai = code[i];
85941
85922
  wi = factor[i];
85942
85923
  sum += ai * wi;
85943
85924
  }
85925
+
85944
85926
  if (parity[sum % 11] !== code[17]) {
85945
85927
  msg = '证件号码校验位错误';
85946
85928
  } else {
@@ -85953,20 +85935,21 @@ function cardid(code) {
85953
85935
  } else {
85954
85936
  msg = '证件号码不能为空';
85955
85937
  }
85938
+
85956
85939
  list.push(result);
85957
85940
  list.push(msg);
85958
85941
  return list;
85959
85942
  }
85960
-
85961
85943
  /**
85962
85944
  * 判断手机号码是否正确
85963
85945
  */
85946
+
85964
85947
  function isvalidatemobile(phone) {
85965
85948
  const list = [];
85966
85949
  let result = true;
85967
85950
  let msg = '';
85968
- var isPhone = /^0\d{2,3}-?\d{7,8}$/;
85969
- // 增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678]
85951
+ var isPhone = /^0\d{2,3}-?\d{7,8}$/; // 增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678]
85952
+
85970
85953
  if (!validatenull(phone)) {
85971
85954
  if (phone.length === 11) {
85972
85955
  if (isPhone.test(phone)) {
@@ -85980,20 +85963,21 @@ function isvalidatemobile(phone) {
85980
85963
  } else {
85981
85964
  msg = '手机号码不能为空';
85982
85965
  }
85966
+
85983
85967
  list.push(result);
85984
85968
  list.push(msg);
85985
85969
  return list;
85986
85970
  }
85987
-
85988
85971
  /**
85989
85972
  * 判断手机号码是否正确(可以为空)
85990
85973
  */
85974
+
85991
85975
  function isValidateNoneMobile(phone) {
85992
85976
  const list = [];
85993
85977
  let result = true;
85994
85978
  let msg = '';
85995
- var isPhone = /^0\d{2,3}-?\d{7,8}$/;
85996
- // 增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678]
85979
+ var isPhone = /^0\d{2,3}-?\d{7,8}$/; // 增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678]
85980
+
85997
85981
  if (!validatenull(phone)) {
85998
85982
  if (phone.length === 11) {
85999
85983
  if (isPhone.test(phone)) {
@@ -86007,58 +85991,65 @@ function isValidateNoneMobile(phone) {
86007
85991
  } else {
86008
85992
  result = false;
86009
85993
  }
85994
+
86010
85995
  list.push(result);
86011
85996
  list.push(msg);
86012
85997
  return list;
86013
85998
  }
86014
-
86015
85999
  /**
86016
86000
  * 判断姓名是否正确
86017
86001
  */
86002
+
86018
86003
  function validatename(name) {
86019
86004
  var regName = /^[\u4e00-\u9fa5]{2,4}$/;
86020
86005
  if (!regName.test(name)) return false;
86021
86006
  return true;
86022
86007
  }
86023
-
86024
86008
  /**
86025
86009
  * 判断是否为整数
86026
86010
  */
86011
+
86027
86012
  function validatenum(num, type) {
86028
86013
  let regName = /[^\d.]/g;
86014
+
86029
86015
  if (type === 1) {
86030
86016
  if (!regName.test(num)) return false;
86031
86017
  } else if (type === 2) {
86032
86018
  regName = /[^\d]/g;
86033
86019
  if (!regName.test(num)) return false;
86034
86020
  }
86021
+
86035
86022
  return true;
86036
86023
  }
86037
-
86038
86024
  /**
86039
86025
  * 判断是否为小数
86040
86026
  */
86027
+
86041
86028
  function validatenumord(num, type) {
86042
86029
  let regName = /[^\d.]/g;
86030
+
86043
86031
  if (type === 1) {
86044
86032
  if (!regName.test(num)) return false;
86045
86033
  } else if (type === 2) {
86046
86034
  regName = /[^\d.]/g;
86047
86035
  if (!regName.test(num)) return false;
86048
86036
  }
86037
+
86049
86038
  return true;
86050
86039
  }
86051
-
86052
86040
  /**
86053
86041
  * 判断是否为空
86054
86042
  */
86043
+
86055
86044
  function validatenull(val) {
86056
86045
  if (typeof val === 'boolean') {
86057
86046
  return false;
86058
86047
  }
86048
+
86059
86049
  if (typeof val === 'number') {
86060
86050
  return false;
86061
86051
  }
86052
+
86062
86053
  if (val instanceof Array) {
86063
86054
  if (val.length === 0) return true;
86064
86055
  } else if (val instanceof Object) {
@@ -86067,6 +86058,7 @@ function validatenull(val) {
86067
86058
  if (val === 'null' || val == null || val === 'undefined' || val === undefined || val === '') return true;
86068
86059
  return false;
86069
86060
  }
86061
+
86070
86062
  return false;
86071
86063
  }
86072
86064
 
@@ -86092,6 +86084,7 @@ __webpack_require__.r(__webpack_exports__);
86092
86084
  smsLoginClient: 'app:app',
86093
86085
  // 验证码登录的 client 信息
86094
86086
  socialLoginClient: 'social:social' // 社交登录的 client 信息
86087
+
86095
86088
  });
86096
86089
 
86097
86090
  /***/ }),
@@ -120843,7 +120836,7 @@ function setup (options) {
120843
120836
  return assign(setupDefaults, options)
120844
120837
  }
120845
120838
 
120846
- XEUtils.VERSION = '3.5.7'
120839
+ XEUtils.VERSION = '3.5.6'
120847
120840
  XEUtils.mixin = mixin
120848
120841
  XEUtils.setup = setup
120849
120842
 
@@ -126065,8 +126058,7 @@ function toArrayTree (array, options) {
126065
126058
  var optData = opts.data
126066
126059
  var result = []
126067
126060
  var treeMap = {}
126068
- var idsMap = {}
126069
- var id, treeData, parentId
126061
+ var idList, id, treeData, parentId
126070
126062
 
126071
126063
  if (optSortKey) {
126072
126064
  array = orderBy(clone(array), optSortKey)
@@ -126075,9 +126067,8 @@ function toArrayTree (array, options) {
126075
126067
  }
126076
126068
  }
126077
126069
 
126078
- each(array, function (item) {
126079
- id = item[optKey]
126080
- idsMap[id] = true
126070
+ idList = map(array, function (item) {
126071
+ return item[optKey]
126081
126072
  })
126082
126073
 
126083
126074
  each(array, function (item) {
@@ -126102,7 +126093,7 @@ function toArrayTree (array, options) {
126102
126093
  }
126103
126094
 
126104
126095
  if (!optStrict || (optStrict && !parentId)) {
126105
- if (!idsMap[parentId]) {
126096
+ if (!includes(idList, parentId)) {
126106
126097
  result.push(treeData)
126107
126098
  }
126108
126099
  }
@@ -127165,7 +127156,8 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac
127165
127156
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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!./packages/components/basic-view/index.vue?vue&type=template&id=0edabe78&scoped=true&
127166
127157
  var render = function render() {
127167
127158
  var _vm = this,
127168
- _c = _vm._self._c;
127159
+ _c = _vm._self._c;
127160
+
127169
127161
  return _c('div', {
127170
127162
  staticClass: "basic-view"
127171
127163
  }, [_vm.searchList.length ? _c('div', {
@@ -127299,12 +127291,14 @@ var render = function render() {
127299
127291
  }
127300
127292
  })], 1) : _vm._e()]);
127301
127293
  };
127294
+
127302
127295
  var staticRenderFns = [];
127303
127296
 
127304
127297
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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!./packages/components/form-view/index.vue?vue&type=template&id=d9efa21c&scoped=true&
127305
127298
  var form_viewvue_type_template_id_d9efa21c_scoped_true_render = function render() {
127306
127299
  var _vm = this,
127307
- _c = _vm._self._c;
127300
+ _c = _vm._self._c;
127301
+
127308
127302
  return _c('el-form', {
127309
127303
  ref: "form",
127310
127304
  attrs: {
@@ -127413,6 +127407,7 @@ var form_viewvue_type_template_id_d9efa21c_scoped_true_render = function render(
127413
127407
  }
127414
127408
  }, [_vm._v("重置")])], 1)], 2);
127415
127409
  };
127410
+
127416
127411
  var form_viewvue_type_template_id_d9efa21c_scoped_true_staticRenderFns = [];
127417
127412
 
127418
127413
  // EXTERNAL MODULE: ./node_modules/moment/moment.js
@@ -127424,6 +127419,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
127424
127419
  * 通用表格组件
127425
127420
  * @displayName FormView
127426
127421
  */
127422
+
127427
127423
  /* harmony default export */ var form_viewvue_type_script_lang_js_ = ({
127428
127424
  name: 'BytFormView',
127429
127425
  props: {
@@ -127437,17 +127433,22 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
127437
127433
  },
127438
127434
  searchList: {
127439
127435
  type: Array,
127436
+
127440
127437
  default() {
127441
127438
  return [];
127442
127439
  }
127440
+
127443
127441
  },
127444
127442
  value: {
127445
127443
  type: Object,
127444
+
127446
127445
  default() {
127447
127446
  return {};
127448
127447
  }
127448
+
127449
127449
  }
127450
127450
  },
127451
+
127451
127452
  data() {
127452
127453
  return {
127453
127454
  form: {},
@@ -127455,48 +127456,62 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
127455
127456
  pickerOptions: {
127456
127457
  shortcuts: [{
127457
127458
  text: '最近一周',
127459
+
127458
127460
  onClick(picker) {
127459
127461
  const end = moment_default()().subtract(7, 'day').toDate();
127460
127462
  const start = new Date();
127461
127463
  picker.$emit('pick', [start, end]);
127462
127464
  }
127465
+
127463
127466
  }, {
127464
127467
  text: '最近一个月',
127468
+
127465
127469
  onClick(picker) {
127466
127470
  const end = moment_default()().subtract(1, 'month').toDate();
127467
127471
  const start = new Date();
127468
127472
  picker.$emit('pick', [start, end]);
127469
127473
  }
127474
+
127470
127475
  }, {
127471
127476
  text: '最近三个月',
127477
+
127472
127478
  onClick(picker) {
127473
127479
  const end = moment_default()().subtract(3, 'month').toDate();
127474
127480
  const start = new Date();
127475
127481
  picker.$emit('pick', [start, end]);
127476
127482
  }
127483
+
127477
127484
  }]
127478
127485
  }
127479
127486
  };
127480
127487
  },
127488
+
127481
127489
  components: {},
127482
127490
  computed: {},
127491
+
127483
127492
  mounted() {},
127493
+
127484
127494
  methods: {
127485
127495
  formateDate(type) {
127486
127496
  // date、week 、month、year
127487
127497
  switch (type) {
127488
127498
  case 'date':
127489
127499
  return 'yyyy-MM-dd';
127500
+
127490
127501
  case 'month':
127491
127502
  return 'yyyy-MM';
127503
+
127492
127504
  case 'year':
127493
127505
  return 'yyyy';
127506
+
127494
127507
  case 'datetime':
127495
127508
  return 'yyyy-MM-dd HH:mm:ss';
127509
+
127496
127510
  default:
127497
127511
  return 'yyyy-MM-dd';
127498
127512
  }
127499
127513
  },
127514
+
127500
127515
  onSearch() {
127501
127516
  /** 点击搜索
127502
127517
  * @event search
@@ -127504,14 +127519,17 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
127504
127519
  */
127505
127520
  this.$emit('search');
127506
127521
  },
127522
+
127507
127523
  onReset() {
127508
127524
  this.form = {};
127509
127525
  /** 点击重置
127510
127526
  * @event reset
127511
127527
  * @type {Event}
127512
127528
  */
127529
+
127513
127530
  this.$emit('reset');
127514
127531
  },
127532
+
127515
127533
  validate() {
127516
127534
  return new Promise(resolve => {
127517
127535
  this.$refs.form.validate(v => {
@@ -127519,6 +127537,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
127519
127537
  });
127520
127538
  });
127521
127539
  }
127540
+
127522
127541
  },
127523
127542
  watch: {
127524
127543
  value: {
@@ -127527,6 +127546,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
127527
127546
  this.form = Object.assign({}, this.form, val);
127528
127547
  }
127529
127548
  },
127549
+
127530
127550
  immediate: true,
127531
127551
  deep: true
127532
127552
  },
@@ -127538,6 +127558,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
127538
127558
  */
127539
127559
  this.$emit('input', val);
127540
127560
  },
127561
+
127541
127562
  deep: true
127542
127563
  }
127543
127564
  }
@@ -127671,6 +127692,7 @@ var component = normalizeComponent(
127671
127692
  * @see {@link https://vxetable.cn/v3/#/table/base/basic}
127672
127693
  * @see {@link https://element.eleme.cn/#/zh-CN/component/installation}
127673
127694
  */
127695
+
127674
127696
  /* harmony default export */ var basic_viewvue_type_script_lang_js_ = ({
127675
127697
  name: 'BytBaseView',
127676
127698
  props: {
@@ -127679,44 +127701,57 @@ var component = normalizeComponent(
127679
127701
  type: Number,
127680
127702
  default: 80
127681
127703
  },
127704
+
127682
127705
  /** 搜索行内表单配置*/
127683
127706
  searchList: {
127684
127707
  type: Array,
127708
+
127685
127709
  default() {
127686
127710
  return [];
127687
127711
  }
127712
+
127688
127713
  },
127714
+
127689
127715
  /** 调用表格数据请求的方法*/
127690
127716
  fetch: {
127691
127717
  type: Function,
127692
127718
  default: () => {}
127693
127719
  },
127720
+
127694
127721
  /** 是否自动调用fetch请求,部分场景下不需要自动调用*/
127695
127722
  autoLoad: {
127696
127723
  type: Boolean,
127697
127724
  default: true
127698
127725
  },
127726
+
127699
127727
  /** 表格数据*/
127700
127728
  tableData: {
127701
127729
  type: Array,
127702
127730
  required: true,
127731
+
127703
127732
  default() {
127704
127733
  return [];
127705
127734
  }
127735
+
127706
127736
  },
127737
+
127707
127738
  /** 表格列配置*/
127708
127739
  columns: {
127709
127740
  type: Array,
127710
127741
  required: true,
127742
+
127711
127743
  default() {
127712
127744
  return [];
127713
127745
  }
127746
+
127714
127747
  },
127748
+
127715
127749
  /** 分页配置,默认没有分页*/
127716
127750
  pagination: {
127717
127751
  type: [Boolean, Object],
127718
127752
  default: false
127719
127753
  },
127754
+
127720
127755
  /**
127721
127756
  * 整体配置是否单元格溢出显示省略号
127722
127757
  * @values ellipsis, title, tooltip
@@ -127729,6 +127764,7 @@ var component = normalizeComponent(
127729
127764
  components: {
127730
127765
  FormView: form_view
127731
127766
  },
127767
+
127732
127768
  data() {
127733
127769
  return {
127734
127770
  searchForm: {},
@@ -127740,10 +127776,12 @@ var component = normalizeComponent(
127740
127776
  }
127741
127777
  };
127742
127778
  },
127779
+
127743
127780
  mounted() {
127744
127781
  // 有些特殊情况需要手动请求列表数据
127745
127782
  if (this.autoLoad) this.fetchData();
127746
127783
  },
127784
+
127747
127785
  methods: {
127748
127786
  onSelectAllEvent(list) {
127749
127787
  /** 多选框全选触发
@@ -127753,6 +127791,7 @@ var component = normalizeComponent(
127753
127791
  */
127754
127792
  this.$emit('checkbox-all', list);
127755
127793
  },
127794
+
127756
127795
  onSelectChangeEvent(list) {
127757
127796
  /** 多选框选择项变化触发
127758
127797
  * @event checkbox-change
@@ -127761,6 +127800,7 @@ var component = normalizeComponent(
127761
127800
  */
127762
127801
  this.$emit('checkbox-change', list);
127763
127802
  },
127803
+
127764
127804
  /**
127765
127805
  * 初始化请求列表数据
127766
127806
  * @param {params,pagination}
@@ -127780,6 +127820,7 @@ var component = normalizeComponent(
127780
127820
  };
127781
127821
  this.fetch(params);
127782
127822
  },
127823
+
127783
127824
  /**
127784
127825
  * 搜索
127785
127826
  * @param {params}
@@ -127788,6 +127829,7 @@ var component = normalizeComponent(
127788
127829
  onSearch() {
127789
127830
  this.fetchData();
127790
127831
  },
127832
+
127791
127833
  /**
127792
127834
  * 刷新列表
127793
127835
  * @param {params}
@@ -127797,6 +127839,7 @@ var component = normalizeComponent(
127797
127839
  this.pageOpt.page = 1;
127798
127840
  this.fetchData();
127799
127841
  },
127842
+
127800
127843
  /**
127801
127844
  * 重置搜索条件
127802
127845
  * @param {params}
@@ -127807,6 +127850,7 @@ var component = normalizeComponent(
127807
127850
  this.searchForm = {};
127808
127851
  this.fetchData();
127809
127852
  },
127853
+
127810
127854
  onSizeChange(size) {
127811
127855
  this.pageOpt.pageSize = size;
127812
127856
  this.pageOpt.page = 1;
@@ -127814,12 +127858,14 @@ var component = normalizeComponent(
127814
127858
  this.fetchData();
127815
127859
  });
127816
127860
  },
127861
+
127817
127862
  onPageChange(page) {
127818
127863
  this.pageOpt.page = page;
127819
127864
  this.$nextTick(() => {
127820
127865
  this.fetchData();
127821
127866
  });
127822
127867
  },
127868
+
127823
127869
  initForm(list) {
127824
127870
  list.map(v => {
127825
127871
  if (v.value || v.value == 0) {
@@ -127827,6 +127873,7 @@ var component = normalizeComponent(
127827
127873
  }
127828
127874
  });
127829
127875
  }
127876
+
127830
127877
  },
127831
127878
  watch: {
127832
127879
  pagination: {
@@ -127835,6 +127882,7 @@ var component = normalizeComponent(
127835
127882
  this.pageOpt = Object.assign(this.pageOpt, val);
127836
127883
  }
127837
127884
  },
127885
+
127838
127886
  immediate: true,
127839
127887
  deep: true
127840
127888
  },
@@ -127842,6 +127890,7 @@ var component = normalizeComponent(
127842
127890
  handler(val) {
127843
127891
  this.initForm(val);
127844
127892
  },
127893
+
127845
127894
  immediate: true,
127846
127895
  deep: true
127847
127896
  }
@@ -127897,10 +127946,13 @@ const components = [basic_view, form_view];
127897
127946
  */
127898
127947
  // 动态引入
127899
127948
  let conmmon = {};
127949
+
127900
127950
  const requireContext = __webpack_require__(26745);
127951
+
127901
127952
  requireContext.keys().map(key => {
127902
127953
  const reg = /\w+/;
127903
127954
  const k = key.match(reg)[0];
127955
+
127904
127956
  if (requireContext(key).default) {
127905
127957
  conmmon[k] = requireContext(key).default;
127906
127958
  } else {
@@ -127924,13 +127976,12 @@ var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_co
127924
127976
  * @LastEditTime: 2022-10-25 09:47:57
127925
127977
  * @LastEditors: 王国火
127926
127978
  */
127979
+ //通用组件
127927
127980
 
127928
- //通用组件
127929
-
127930
- //公用方法
127981
+ //公用方法
127931
127982
 
127983
+ // 第三方依赖
127932
127984
 
127933
- // 第三方依赖
127934
127985
 
127935
127986
 
127936
127987
 
@@ -127944,15 +127995,15 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().use((element_ui_common_de
127944
127995
  const Cmps = {};
127945
127996
  packages_components.map(component => {
127946
127997
  Cmps[component.name] = component;
127947
- });
127998
+ }); // install组件api
127948
127999
 
127949
- // install组件api
127950
128000
  const install = function (Vue) {
127951
128001
  packages_components.map(component => {
127952
128002
  Vue.component(component.name, component);
127953
128003
  });
127954
128004
  Vue.prototype.$byt = common;
127955
128005
  };
128006
+
127956
128007
  /* harmony default export */ var packages_0 = ({
127957
128008
  install,
127958
128009
  ...Cmps,