@airpower/web 1.11.4 → 2.0.0

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,5 +1,5 @@
1
1
  import { IJson } from '@airpower/transformer';
2
- import { Component } from 'vue';
2
+ import { Component, Plugin } from 'vue';
3
3
  import { IFile } from '../interface/IFile';
4
4
  import { IUploadProps } from '../interface/IUploadProps';
5
5
  import { ExportModel } from '../model/export/ExportModel';
@@ -9,37 +9,44 @@ import { RootEntity } from '../model/RootEntity';
9
9
  * @author Hamm.cn
10
10
  */
11
11
  export declare class DialogUtil {
12
+ /**
13
+ * ### vue plugins
14
+ * 构建弹窗实例时,会默认注入 `ElementPlus` 相关插件
15
+ * @description 此配置用于弹窗实例构建时额外需要注册的 vue 插件
16
+ */
17
+ static plugins: Plugin[];
12
18
  /**
13
19
  * ### 弹出对话框的内部方法
14
20
  * @param view 使用的视图组件 传入一个 `import` 的 `vue`
15
21
  * @param param 弹窗参数 将传入到合并到 `props` 上
22
+ * @param plugins Vue Plugins
16
23
  */
17
- static build<T>(view: Component, param: IJson): Promise<T>;
24
+ static build<T>(view: Component, param: IJson, plugins?: Plugin[]): Promise<T>;
18
25
  /**
19
26
  * ### 弹出一个弹窗
20
27
  * @param view 使用的视图组件 传入一个 `import` 的 `vue`
21
28
  * @param param `可选` 参数 将传入到目标对象的 `props.param` 参数上
22
29
  */
23
- static show<T>(view: Component, param?: unknown): Promise<T>;
30
+ static show<T>(view: Component, param?: unknown, plugins?: Plugin[]): Promise<T>;
24
31
  /**
25
32
  * ### 弹出上传文件对话框
26
33
  * @param config `可选` 上传自定义配置
27
34
  * @param customConfirm `可选` 自定义确认按钮回调方法
28
35
  */
29
- static showUpload<F extends IFile & RootEntity>(config?: IUploadProps<F>, customConfirm?: () => void): Promise<F>;
36
+ static showUpload<F extends IFile & RootEntity>(config?: IUploadProps<F>, customConfirm?: () => void, plugins?: Plugin[]): Promise<F>;
30
37
  /**
31
38
  * ### 弹出一个单选选择器
32
39
  * @param view 使用的视图组件 传入一个 `import` 的 `vue`
33
40
  * @param param `可选` 普通参数 将传入到目标对象的 `props.param` 参数上
34
41
  */
35
- static select<E extends RootEntity>(view: Component, param?: E | undefined): Promise<E>;
42
+ static select<E extends RootEntity>(view: Component, param?: E | undefined, plugins?: Plugin[]): Promise<E>;
36
43
  /**
37
44
  * ### 弹出一个多选选择器
38
45
  * @param view 使用的视图组件 传入一个 `import` 的 `vue`
39
46
  * @param selectList `可选` 已选列表 将传入到目标对象的 `props.selectList` 参数上
40
47
  * @param param `可选` 普通参数 将传入到目标对象的 `props.param` 参数上
41
48
  */
42
- static selectList<E extends RootEntity>(view: Component, selectList?: E[], param?: E | undefined): Promise<E[]>;
49
+ static selectList<E extends RootEntity>(view: Component, selectList?: E[], param?: E | undefined, plugins?: Plugin[]): Promise<E[]>;
43
50
  /**
44
51
  * ### 创建一个导出任务
45
52
  * @param exportModel `可选` 导出参数对象
package/dist/main.js CHANGED
@@ -780,7 +780,7 @@ class Transformer {
780
780
  static newInstance(Class, recoverBy) {
781
781
  const instance = new Class();
782
782
  if (recoverBy) {
783
- return instance.recoverBy(recoverBy);
783
+ instance.recoverBy(recoverBy);
784
784
  }
785
785
  return instance;
786
786
  }
@@ -889,7 +889,6 @@ class Transformer {
889
889
  copy[field] = void 0;
890
890
  }
891
891
  }
892
- return copy;
893
892
  }
894
893
  /**
895
894
  * ### 排除部分类的属性
@@ -903,7 +902,6 @@ class Transformer {
903
902
  copy[field] = void 0;
904
903
  }
905
904
  }
906
- return copy;
907
905
  }
908
906
  /**
909
907
  * ### 用指定的数据对当前实例进行覆盖
@@ -911,7 +909,7 @@ class Transformer {
911
909
  * @param obj 覆盖对象
912
910
  */
913
911
  recoverBy(obj) {
914
- return Object.assign(this, obj);
912
+ Object.assign(this, obj);
915
913
  }
916
914
  /**
917
915
  * ### 转换到 `JSON`
@@ -1379,7 +1377,7 @@ var hasRequiredClipboard;
1379
1377
  function requireClipboard() {
1380
1378
  if (hasRequiredClipboard) return clipboard$1.exports;
1381
1379
  hasRequiredClipboard = 1;
1382
- (function(module, exports) {
1380
+ (function(module, exports$1) {
1383
1381
  (function webpackUniversalModuleDefinition(root, factory) {
1384
1382
  module.exports = factory();
1385
1383
  })(clipboard, function() {
@@ -1801,18 +1799,18 @@ function requireClipboard() {
1801
1799
  /***/
1802
1800
  879: (
1803
1801
  /***/
1804
- (function(__unused_webpack_module, exports2) {
1805
- exports2.node = function(value) {
1802
+ (function(__unused_webpack_module, exports$12) {
1803
+ exports$12.node = function(value) {
1806
1804
  return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
1807
1805
  };
1808
- exports2.nodeList = function(value) {
1806
+ exports$12.nodeList = function(value) {
1809
1807
  var type = Object.prototype.toString.call(value);
1810
- return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports2.node(value[0]));
1808
+ return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports$12.node(value[0]));
1811
1809
  };
1812
- exports2.string = function(value) {
1810
+ exports$12.string = function(value) {
1813
1811
  return typeof value === "string" || value instanceof String;
1814
1812
  };
1815
- exports2.fn = function(value) {
1813
+ exports$12.fn = function(value) {
1816
1814
  var type = Object.prototype.toString.call(value);
1817
1815
  return type === "[object Function]";
1818
1816
  };
@@ -1995,10 +1993,10 @@ function requireClipboard() {
1995
1993
  };
1996
1994
  })();
1997
1995
  !(function() {
1998
- __webpack_require__.d = function(exports2, definition) {
1996
+ __webpack_require__.d = function(exports$12, definition) {
1999
1997
  for (var key in definition) {
2000
- if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key)) {
2001
- Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
1998
+ if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports$12, key)) {
1999
+ Object.defineProperty(exports$12, key, { enumerable: true, get: definition[key] });
2002
2000
  }
2003
2001
  }
2004
2002
  };
@@ -2440,7 +2438,7 @@ var hasRequiredCore;
2440
2438
  function requireCore() {
2441
2439
  if (hasRequiredCore) return core$1.exports;
2442
2440
  hasRequiredCore = 1;
2443
- (function(module, exports) {
2441
+ (function(module, exports$1) {
2444
2442
  (function(root, factory) {
2445
2443
  {
2446
2444
  module.exports = factory();
@@ -3048,7 +3046,7 @@ var hasRequiredX64Core;
3048
3046
  function requireX64Core() {
3049
3047
  if (hasRequiredX64Core) return x64Core$1.exports;
3050
3048
  hasRequiredX64Core = 1;
3051
- (function(module, exports) {
3049
+ (function(module, exports$1) {
3052
3050
  (function(root, factory) {
3053
3051
  {
3054
3052
  module.exports = factory(requireCore());
@@ -3305,7 +3303,7 @@ var hasRequiredLibTypedarrays;
3305
3303
  function requireLibTypedarrays() {
3306
3304
  if (hasRequiredLibTypedarrays) return libTypedarrays$1.exports;
3307
3305
  hasRequiredLibTypedarrays = 1;
3308
- (function(module, exports) {
3306
+ (function(module, exports$1) {
3309
3307
  (function(root, factory) {
3310
3308
  {
3311
3309
  module.exports = factory(requireCore());
@@ -3350,7 +3348,7 @@ var hasRequiredEncUtf16;
3350
3348
  function requireEncUtf16() {
3351
3349
  if (hasRequiredEncUtf16) return encUtf16$1.exports;
3352
3350
  hasRequiredEncUtf16 = 1;
3353
- (function(module, exports) {
3351
+ (function(module, exports$1) {
3354
3352
  (function(root, factory) {
3355
3353
  {
3356
3354
  module.exports = factory(requireCore());
@@ -3468,7 +3466,7 @@ var hasRequiredEncBase64;
3468
3466
  function requireEncBase64() {
3469
3467
  if (hasRequiredEncBase64) return encBase64$1.exports;
3470
3468
  hasRequiredEncBase64 = 1;
3471
- (function(module, exports) {
3469
+ (function(module, exports$1) {
3472
3470
  (function(root, factory) {
3473
3471
  {
3474
3472
  module.exports = factory(requireCore());
@@ -3576,7 +3574,7 @@ var hasRequiredEncBase64url;
3576
3574
  function requireEncBase64url() {
3577
3575
  if (hasRequiredEncBase64url) return encBase64url$1.exports;
3578
3576
  hasRequiredEncBase64url = 1;
3579
- (function(module, exports) {
3577
+ (function(module, exports$1) {
3580
3578
  (function(root, factory) {
3581
3579
  {
3582
3580
  module.exports = factory(requireCore());
@@ -3695,7 +3693,7 @@ var hasRequiredMd5;
3695
3693
  function requireMd5() {
3696
3694
  if (hasRequiredMd5) return md5$1.exports;
3697
3695
  hasRequiredMd5 = 1;
3698
- (function(module, exports) {
3696
+ (function(module, exports$1) {
3699
3697
  (function(root, factory) {
3700
3698
  {
3701
3699
  module.exports = factory(requireCore());
@@ -3874,7 +3872,7 @@ var hasRequiredSha1;
3874
3872
  function requireSha1() {
3875
3873
  if (hasRequiredSha1) return sha1$1.exports;
3876
3874
  hasRequiredSha1 = 1;
3877
- (function(module, exports) {
3875
+ (function(module, exports$1) {
3878
3876
  (function(root, factory) {
3879
3877
  {
3880
3878
  module.exports = factory(requireCore());
@@ -3965,7 +3963,7 @@ var hasRequiredSha256;
3965
3963
  function requireSha256() {
3966
3964
  if (hasRequiredSha256) return sha256$1.exports;
3967
3965
  hasRequiredSha256 = 1;
3968
- (function(module, exports) {
3966
+ (function(module, exports$1) {
3969
3967
  (function(root, factory) {
3970
3968
  {
3971
3969
  module.exports = factory(requireCore());
@@ -4086,7 +4084,7 @@ var hasRequiredSha224;
4086
4084
  function requireSha224() {
4087
4085
  if (hasRequiredSha224) return sha224$1.exports;
4088
4086
  hasRequiredSha224 = 1;
4089
- (function(module, exports) {
4087
+ (function(module, exports$1) {
4090
4088
  (function(root, factory, undef) {
4091
4089
  {
4092
4090
  module.exports = factory(requireCore(), requireSha256());
@@ -4131,7 +4129,7 @@ var hasRequiredSha512;
4131
4129
  function requireSha512() {
4132
4130
  if (hasRequiredSha512) return sha512$1.exports;
4133
4131
  hasRequiredSha512 = 1;
4134
- (function(module, exports) {
4132
+ (function(module, exports$1) {
4135
4133
  (function(root, factory, undef) {
4136
4134
  {
4137
4135
  module.exports = factory(requireCore(), requireX64Core());
@@ -4413,7 +4411,7 @@ var hasRequiredSha384;
4413
4411
  function requireSha384() {
4414
4412
  if (hasRequiredSha384) return sha384$1.exports;
4415
4413
  hasRequiredSha384 = 1;
4416
- (function(module, exports) {
4414
+ (function(module, exports$1) {
4417
4415
  (function(root, factory, undef) {
4418
4416
  {
4419
4417
  module.exports = factory(requireCore(), requireX64Core(), requireSha512());
@@ -4459,7 +4457,7 @@ var hasRequiredSha3;
4459
4457
  function requireSha3() {
4460
4458
  if (hasRequiredSha3) return sha3$1.exports;
4461
4459
  hasRequiredSha3 = 1;
4462
- (function(module, exports) {
4460
+ (function(module, exports$1) {
4463
4461
  (function(root, factory, undef) {
4464
4462
  {
4465
4463
  module.exports = factory(requireCore(), requireX64Core());
@@ -4661,7 +4659,7 @@ var hasRequiredRipemd160;
4661
4659
  function requireRipemd160() {
4662
4660
  if (hasRequiredRipemd160) return ripemd160$1.exports;
4663
4661
  hasRequiredRipemd160 = 1;
4664
- (function(module, exports) {
4662
+ (function(module, exports$1) {
4665
4663
  (function(root, factory) {
4666
4664
  {
4667
4665
  module.exports = factory(requireCore());
@@ -5132,7 +5130,7 @@ var hasRequiredHmac;
5132
5130
  function requireHmac() {
5133
5131
  if (hasRequiredHmac) return hmac$1.exports;
5134
5132
  hasRequiredHmac = 1;
5135
- (function(module, exports) {
5133
+ (function(module, exports$1) {
5136
5134
  (function(root, factory) {
5137
5135
  {
5138
5136
  module.exports = factory(requireCore());
@@ -5239,7 +5237,7 @@ var hasRequiredPbkdf2;
5239
5237
  function requirePbkdf2() {
5240
5238
  if (hasRequiredPbkdf2) return pbkdf2$1.exports;
5241
5239
  hasRequiredPbkdf2 = 1;
5242
- (function(module, exports) {
5240
+ (function(module, exports$1) {
5243
5241
  (function(root, factory, undef) {
5244
5242
  {
5245
5243
  module.exports = factory(requireCore(), requireSha256(), requireHmac());
@@ -5337,7 +5335,7 @@ var hasRequiredEvpkdf;
5337
5335
  function requireEvpkdf() {
5338
5336
  if (hasRequiredEvpkdf) return evpkdf$1.exports;
5339
5337
  hasRequiredEvpkdf = 1;
5340
- (function(module, exports) {
5338
+ (function(module, exports$1) {
5341
5339
  (function(root, factory, undef) {
5342
5340
  {
5343
5341
  module.exports = factory(requireCore(), requireSha1(), requireHmac());
@@ -5428,7 +5426,7 @@ var hasRequiredCipherCore;
5428
5426
  function requireCipherCore() {
5429
5427
  if (hasRequiredCipherCore) return cipherCore$1.exports;
5430
5428
  hasRequiredCipherCore = 1;
5431
- (function(module, exports) {
5429
+ (function(module, exports$1) {
5432
5430
  (function(root, factory, undef) {
5433
5431
  {
5434
5432
  module.exports = factory(requireCore(), requireEvpkdf());
@@ -6072,7 +6070,7 @@ var hasRequiredModeCfb;
6072
6070
  function requireModeCfb() {
6073
6071
  if (hasRequiredModeCfb) return modeCfb$1.exports;
6074
6072
  hasRequiredModeCfb = 1;
6075
- (function(module, exports) {
6073
+ (function(module, exports$1) {
6076
6074
  (function(root, factory, undef) {
6077
6075
  {
6078
6076
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6124,7 +6122,7 @@ var hasRequiredModeCtr;
6124
6122
  function requireModeCtr() {
6125
6123
  if (hasRequiredModeCtr) return modeCtr$1.exports;
6126
6124
  hasRequiredModeCtr = 1;
6127
- (function(module, exports) {
6125
+ (function(module, exports$1) {
6128
6126
  (function(root, factory, undef) {
6129
6127
  {
6130
6128
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6164,7 +6162,7 @@ var hasRequiredModeCtrGladman;
6164
6162
  function requireModeCtrGladman() {
6165
6163
  if (hasRequiredModeCtrGladman) return modeCtrGladman$1.exports;
6166
6164
  hasRequiredModeCtrGladman = 1;
6167
- (function(module, exports) {
6165
+ (function(module, exports$1) {
6168
6166
  (function(root, factory, undef) {
6169
6167
  {
6170
6168
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6239,7 +6237,7 @@ var hasRequiredModeOfb;
6239
6237
  function requireModeOfb() {
6240
6238
  if (hasRequiredModeOfb) return modeOfb$1.exports;
6241
6239
  hasRequiredModeOfb = 1;
6242
- (function(module, exports) {
6240
+ (function(module, exports$1) {
6243
6241
  (function(root, factory, undef) {
6244
6242
  {
6245
6243
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6277,7 +6275,7 @@ var hasRequiredModeEcb;
6277
6275
  function requireModeEcb() {
6278
6276
  if (hasRequiredModeEcb) return modeEcb$1.exports;
6279
6277
  hasRequiredModeEcb = 1;
6280
- (function(module, exports) {
6278
+ (function(module, exports$1) {
6281
6279
  (function(root, factory, undef) {
6282
6280
  {
6283
6281
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6308,7 +6306,7 @@ var hasRequiredPadAnsix923;
6308
6306
  function requirePadAnsix923() {
6309
6307
  if (hasRequiredPadAnsix923) return padAnsix923$1.exports;
6310
6308
  hasRequiredPadAnsix923 = 1;
6311
- (function(module, exports) {
6309
+ (function(module, exports$1) {
6312
6310
  (function(root, factory, undef) {
6313
6311
  {
6314
6312
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6340,7 +6338,7 @@ var hasRequiredPadIso10126;
6340
6338
  function requirePadIso10126() {
6341
6339
  if (hasRequiredPadIso10126) return padIso10126$1.exports;
6342
6340
  hasRequiredPadIso10126 = 1;
6343
- (function(module, exports) {
6341
+ (function(module, exports$1) {
6344
6342
  (function(root, factory, undef) {
6345
6343
  {
6346
6344
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6368,7 +6366,7 @@ var hasRequiredPadIso97971;
6368
6366
  function requirePadIso97971() {
6369
6367
  if (hasRequiredPadIso97971) return padIso97971$1.exports;
6370
6368
  hasRequiredPadIso97971 = 1;
6371
- (function(module, exports) {
6369
+ (function(module, exports$1) {
6372
6370
  (function(root, factory, undef) {
6373
6371
  {
6374
6372
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6395,7 +6393,7 @@ var hasRequiredPadZeropadding;
6395
6393
  function requirePadZeropadding() {
6396
6394
  if (hasRequiredPadZeropadding) return padZeropadding$1.exports;
6397
6395
  hasRequiredPadZeropadding = 1;
6398
- (function(module, exports) {
6396
+ (function(module, exports$1) {
6399
6397
  (function(root, factory, undef) {
6400
6398
  {
6401
6399
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6429,7 +6427,7 @@ var hasRequiredPadNopadding;
6429
6427
  function requirePadNopadding() {
6430
6428
  if (hasRequiredPadNopadding) return padNopadding$1.exports;
6431
6429
  hasRequiredPadNopadding = 1;
6432
- (function(module, exports) {
6430
+ (function(module, exports$1) {
6433
6431
  (function(root, factory, undef) {
6434
6432
  {
6435
6433
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6452,7 +6450,7 @@ var hasRequiredFormatHex;
6452
6450
  function requireFormatHex() {
6453
6451
  if (hasRequiredFormatHex) return formatHex$1.exports;
6454
6452
  hasRequiredFormatHex = 1;
6455
- (function(module, exports) {
6453
+ (function(module, exports$1) {
6456
6454
  (function(root, factory, undef) {
6457
6455
  {
6458
6456
  module.exports = factory(requireCore(), requireCipherCore());
@@ -6512,7 +6510,7 @@ var hasRequiredAes;
6512
6510
  function requireAes() {
6513
6511
  if (hasRequiredAes) return aes$1.exports;
6514
6512
  hasRequiredAes = 1;
6515
- (function(module, exports) {
6513
+ (function(module, exports$1) {
6516
6514
  (function(root, factory, undef) {
6517
6515
  {
6518
6516
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -6666,7 +6664,7 @@ var hasRequiredTripledes;
6666
6664
  function requireTripledes() {
6667
6665
  if (hasRequiredTripledes) return tripledes$1.exports;
6668
6666
  hasRequiredTripledes = 1;
6669
- (function(module, exports) {
6667
+ (function(module, exports$1) {
6670
6668
  (function(root, factory, undef) {
6671
6669
  {
6672
6670
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7447,7 +7445,7 @@ var hasRequiredRc4;
7447
7445
  function requireRc4() {
7448
7446
  if (hasRequiredRc4) return rc4$1.exports;
7449
7447
  hasRequiredRc4 = 1;
7450
- (function(module, exports) {
7448
+ (function(module, exports$1) {
7451
7449
  (function(root, factory, undef) {
7452
7450
  {
7453
7451
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7530,7 +7528,7 @@ var hasRequiredRabbit;
7530
7528
  function requireRabbit() {
7531
7529
  if (hasRequiredRabbit) return rabbit$1.exports;
7532
7530
  hasRequiredRabbit = 1;
7533
- (function(module, exports) {
7531
+ (function(module, exports$1) {
7534
7532
  (function(root, factory, undef) {
7535
7533
  {
7536
7534
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7659,7 +7657,7 @@ var hasRequiredRabbitLegacy;
7659
7657
  function requireRabbitLegacy() {
7660
7658
  if (hasRequiredRabbitLegacy) return rabbitLegacy$1.exports;
7661
7659
  hasRequiredRabbitLegacy = 1;
7662
- (function(module, exports) {
7660
+ (function(module, exports$1) {
7663
7661
  (function(root, factory, undef) {
7664
7662
  {
7665
7663
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -7785,7 +7783,7 @@ var hasRequiredBlowfish;
7785
7783
  function requireBlowfish() {
7786
7784
  if (hasRequiredBlowfish) return blowfish$1.exports;
7787
7785
  hasRequiredBlowfish = 1;
7788
- (function(module, exports) {
7786
+ (function(module, exports$1) {
7789
7787
  (function(root, factory, undef) {
7790
7788
  {
7791
7789
  module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
@@ -8973,7 +8971,7 @@ var hasRequiredCryptoJs;
8973
8971
  function requireCryptoJs() {
8974
8972
  if (hasRequiredCryptoJs) return cryptoJs$1.exports;
8975
8973
  hasRequiredCryptoJs = 1;
8976
- (function(module, exports) {
8974
+ (function(module, exports$1) {
8977
8975
  (function(root, factory, undef) {
8978
8976
  {
8979
8977
  module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), requireEncBase64(), requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy(), requireBlowfish());
@@ -14984,12 +14982,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
14984
14982
  }
14985
14983
  });
14986
14984
  class DialogUtil {
14985
+ /**
14986
+ * ### vue plugins
14987
+ * 构建弹窗实例时,会默认注入 `ElementPlus` 相关插件
14988
+ * @description 此配置用于弹窗实例构建时额外需要注册的 vue 插件
14989
+ */
14990
+ static plugins = [];
14987
14991
  /**
14988
14992
  * ### 弹出对话框的内部方法
14989
14993
  * @param view 使用的视图组件 传入一个 `import` 的 `vue`
14990
14994
  * @param param 弹窗参数 将传入到合并到 `props` 上
14995
+ * @param plugins Vue Plugins
14991
14996
  */
14992
- static async build(view, param) {
14997
+ static async build(view, param, plugins = this.plugins) {
14993
14998
  const parentNode = document.createElement("div");
14994
14999
  const domId = `dialog_${Math.random()}`;
14995
15000
  parentNode.setAttribute("id", domId);
@@ -15021,6 +15026,9 @@ class DialogUtil {
15021
15026
  };
15022
15027
  app = createApp(view, dialogParam);
15023
15028
  app.use(ElementPlus, { locale: WebConfig.elementPlusLocale });
15029
+ plugins.forEach((plugin) => {
15030
+ app?.use(plugin);
15031
+ });
15024
15032
  document.body.appendChild(parentNode);
15025
15033
  app.mount(parentNode);
15026
15034
  });
@@ -15030,17 +15038,17 @@ class DialogUtil {
15030
15038
  * @param view 使用的视图组件 传入一个 `import` 的 `vue`
15031
15039
  * @param param `可选` 参数 将传入到目标对象的 `props.param` 参数上
15032
15040
  */
15033
- static async show(view, param) {
15041
+ static async show(view, param, plugins) {
15034
15042
  return this.build(view, {
15035
15043
  param
15036
- });
15044
+ }, plugins);
15037
15045
  }
15038
15046
  /**
15039
15047
  * ### 弹出上传文件对话框
15040
15048
  * @param config `可选` 上传自定义配置
15041
15049
  * @param customConfirm `可选` 自定义确认按钮回调方法
15042
15050
  */
15043
- static async showUpload(config, customConfirm) {
15051
+ static async showUpload(config, customConfirm, plugins) {
15044
15052
  return this.build(_sfc_main$e, {
15045
15053
  onCustomConfirm: () => {
15046
15054
  if (customConfirm) {
@@ -15048,17 +15056,17 @@ class DialogUtil {
15048
15056
  }
15049
15057
  },
15050
15058
  ...config
15051
- });
15059
+ }, plugins);
15052
15060
  }
15053
15061
  /**
15054
15062
  * ### 弹出一个单选选择器
15055
15063
  * @param view 使用的视图组件 传入一个 `import` 的 `vue`
15056
15064
  * @param param `可选` 普通参数 将传入到目标对象的 `props.param` 参数上
15057
15065
  */
15058
- static async select(view, param = void 0) {
15066
+ static async select(view, param = void 0, plugins) {
15059
15067
  return this.build(view, {
15060
15068
  param
15061
- });
15069
+ }, plugins);
15062
15070
  }
15063
15071
  /**
15064
15072
  * ### 弹出一个多选选择器
@@ -15066,12 +15074,12 @@ class DialogUtil {
15066
15074
  * @param selectList `可选` 已选列表 将传入到目标对象的 `props.selectList` 参数上
15067
15075
  * @param param `可选` 普通参数 将传入到目标对象的 `props.param` 参数上
15068
15076
  */
15069
- static async selectList(view, selectList = [], param = void 0) {
15077
+ static async selectList(view, selectList = [], param = void 0, plugins) {
15070
15078
  return this.build(view, {
15071
15079
  selectList,
15072
15080
  isMultiple: true,
15073
15081
  param
15074
- });
15082
+ }, plugins);
15075
15083
  }
15076
15084
  /**
15077
15085
  * ### 创建一个导出任务
@@ -15158,7 +15166,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15158
15166
  }, {
15159
15167
  default: withCtx(() => [
15160
15168
  createElementVNode("div", _hoisted_1$6, [
15161
- createVNode(unref(AQrcode), {
15169
+ createVNode(unref(Qrcode), {
15162
15170
  content,
15163
15171
  size: 160
15164
15172
  }),
@@ -16287,7 +16295,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16287
16295
  };
16288
16296
  }
16289
16297
  });
16290
- const AQrcode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-024409f5"]]);
16298
+ const Qrcode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-024409f5"]]);
16291
16299
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
16292
16300
  __name: "Select",
16293
16301
  props: /* @__PURE__ */ mergeModels({
@@ -19211,13 +19219,15 @@ class RootEntity extends RootModel {
19211
19219
  * ### 只暴露ID
19212
19220
  */
19213
19221
  exposeOnlyId() {
19214
- return this.expose("id");
19222
+ this.expose("id");
19215
19223
  }
19216
19224
  /**
19217
19225
  * ### 只复制ID
19218
19226
  */
19219
19227
  copyOnlyId() {
19220
- return this.copy().exposeOnlyId();
19228
+ const copy = this.copy();
19229
+ copy.exposeOnlyId();
19230
+ return copy;
19221
19231
  }
19222
19232
  }
19223
19233
  __decorateClass([
@@ -19601,7 +19611,7 @@ export {
19601
19611
  APanel,
19602
19612
  APayload,
19603
19613
  APhone,
19604
- AQrcode,
19614
+ Qrcode as AQrcode,
19605
19615
  _sfc_main$9 as ASelect,
19606
19616
  _sfc_main$8 as ASelector,
19607
19617
  _sfc_main$7 as ATab,
@@ -20,7 +20,7 @@ export declare class RootEntity extends RootModel {
20
20
  /**
21
21
  * ### 只暴露ID
22
22
  */
23
- exposeOnlyId(): this;
23
+ exposeOnlyId(): void;
24
24
  /**
25
25
  * ### 只复制ID
26
26
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "1.11.4",
4
+ "version": "2.0.0",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@airpower/enum": "^1.6.0",
43
43
  "@airpower/i18n": "^1.6.0",
44
- "@airpower/transformer": "^1.6.0",
44
+ "@airpower/transformer": "^2.0.0",
45
45
  "@airpower/util": "^1.6.0",
46
46
  "@element-plus/icons-vue": "^2.3.2",
47
47
  "axios": "1.13.2",