mali-ui-plus 1.0.94 → 1.0.96

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.
@@ -10258,13 +10258,6 @@ __webpack_require__.d(utils_number_namespaceObject, {
10258
10258
  "toWanAmountString": function() { return toWanAmountString; }
10259
10259
  });
10260
10260
 
10261
- // NAMESPACE OBJECT: ./utils/string.ts
10262
- var utils_string_namespaceObject = {};
10263
- __webpack_require__.r(utils_string_namespaceObject);
10264
- __webpack_require__.d(utils_string_namespaceObject, {
10265
- "uniq": function() { return uniq; }
10266
- });
10267
-
10268
10261
  // NAMESPACE OBJECT: ./utils/file.ts
10269
10262
  var file_namespaceObject = {};
10270
10263
  __webpack_require__.r(file_namespaceObject);
@@ -40181,29 +40174,6 @@ function divide(num1, num2) {
40181
40174
  return xe_utils_default().divide(num1, num2);
40182
40175
  }
40183
40176
  const divideNum = divide;
40184
- ;// CONCATENATED MODULE: ./utils/string.ts
40185
-
40186
-
40187
- function uniq(list, field) {
40188
- const result = [];
40189
- if (field) {
40190
- const keyMap = new Map();
40191
- xe_utils_default().each(list, item => {
40192
- const keyVal = xe_utils_default().get(item, field);
40193
- if (!keyMap.get(keyVal)) {
40194
- keyMap.set(keyVal, item);
40195
- result.push(item);
40196
- }
40197
- });
40198
- } else {
40199
- xe_utils_default().each(list, value => {
40200
- if (!result.includes(value)) {
40201
- result.push(value);
40202
- }
40203
- });
40204
- }
40205
- return result;
40206
- }
40207
40177
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
40208
40178
  var web_dom_exception_stack = __webpack_require__(2801);
40209
40179
  ;// CONCATENATED MODULE: ./utils/file.ts
@@ -40275,7 +40245,7 @@ function getFileSuffix(filename) {
40275
40245
 
40276
40246
 
40277
40247
 
40278
-
40248
+ // import * as stringFns from './string'
40279
40249
 
40280
40250
  const MaliUtils = {
40281
40251
  // Object
@@ -40298,7 +40268,7 @@ const MaliUtils = {
40298
40268
  ...(web_default()),
40299
40269
  ...utils_date_namespaceObject,
40300
40270
  ...utils_number_namespaceObject,
40301
- ...utils_string_namespaceObject,
40271
+ // ...stringFns,
40302
40272
  ...file_namespaceObject
40303
40273
  };
40304
40274
  /* harmony default export */ var utils = (MaliUtils);
@@ -62706,6 +62676,23 @@ const MaliToast = {
62706
62676
 
62707
62677
  const modal_modal_modal = index_esm.modal;
62708
62678
  const MaliModal = {
62679
+ open(option) {
62680
+ const opts = xe_utils_default().isString(option) ? {
62681
+ content: option
62682
+ } : {
62683
+ ...option
62684
+ };
62685
+ return modal_modal_modal.alert({
62686
+ id: opts.id,
62687
+ title: opts.title || '提示',
62688
+ content: opts.content || '',
62689
+ status: opts.status,
62690
+ showClose: opts.showClose || false,
62691
+ confirmButtonText: opts.confirmButtonText || '确认',
62692
+ cancelButtonText: opts.cancelButtonText || '取消',
62693
+ slots: opts.slots
62694
+ });
62695
+ },
62709
62696
  alert(option) {
62710
62697
  const opts = xe_utils_default().isString(option) ? {
62711
62698
  content: option
@@ -62745,7 +62732,6 @@ const MaliModal = {
62745
62732
  ;// CONCATENATED MODULE: ./modal/notify.ts
62746
62733
 
62747
62734
 
62748
- const notify_modal = index_esm.modal;
62749
62735
  const MaliNotify = {
62750
62736
  success(option) {
62751
62737
  const opts = xe_utils_default().isString(option) ? {
@@ -62753,9 +62739,9 @@ const MaliNotify = {
62753
62739
  } : {
62754
62740
  ...option
62755
62741
  };
62756
- return notify_modal.message({
62757
- status: 'success',
62758
- content: opts.content || '操作成功'
62742
+ return ElNotification.success({
62743
+ title: opts.title,
62744
+ message: opts.content || '操作成功'
62759
62745
  });
62760
62746
  },
62761
62747
  error(option) {
@@ -62764,9 +62750,9 @@ const MaliNotify = {
62764
62750
  } : {
62765
62751
  ...option
62766
62752
  };
62767
- return notify_modal.message({
62768
- status: 'error',
62769
- content: opts.content || '操作失败'
62753
+ return ElNotification.error({
62754
+ title: opts.title,
62755
+ message: opts.content || '操作失败'
62770
62756
  });
62771
62757
  },
62772
62758
  hide() {
@@ -64709,7 +64695,7 @@ function index_config(options) {
64709
64695
  return config_0;
64710
64696
  }
64711
64697
  const MaliUI = {
64712
- version: "1.0.93",
64698
+ version: "1.0.95",
64713
64699
  install: index_install,
64714
64700
  config: index_config,
64715
64701
  renderer: index_esm.renderer,
@@ -10268,13 +10268,6 @@ __webpack_require__.d(utils_number_namespaceObject, {
10268
10268
  "toWanAmountString": function() { return toWanAmountString; }
10269
10269
  });
10270
10270
 
10271
- // NAMESPACE OBJECT: ./utils/string.ts
10272
- var utils_string_namespaceObject = {};
10273
- __webpack_require__.r(utils_string_namespaceObject);
10274
- __webpack_require__.d(utils_string_namespaceObject, {
10275
- "uniq": function() { return uniq; }
10276
- });
10277
-
10278
10271
  // NAMESPACE OBJECT: ./utils/file.ts
10279
10272
  var file_namespaceObject = {};
10280
10273
  __webpack_require__.r(file_namespaceObject);
@@ -40191,29 +40184,6 @@ function divide(num1, num2) {
40191
40184
  return xe_utils_default().divide(num1, num2);
40192
40185
  }
40193
40186
  const divideNum = divide;
40194
- ;// CONCATENATED MODULE: ./utils/string.ts
40195
-
40196
-
40197
- function uniq(list, field) {
40198
- const result = [];
40199
- if (field) {
40200
- const keyMap = new Map();
40201
- xe_utils_default().each(list, item => {
40202
- const keyVal = xe_utils_default().get(item, field);
40203
- if (!keyMap.get(keyVal)) {
40204
- keyMap.set(keyVal, item);
40205
- result.push(item);
40206
- }
40207
- });
40208
- } else {
40209
- xe_utils_default().each(list, value => {
40210
- if (!result.includes(value)) {
40211
- result.push(value);
40212
- }
40213
- });
40214
- }
40215
- return result;
40216
- }
40217
40187
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
40218
40188
  var web_dom_exception_stack = __webpack_require__(2801);
40219
40189
  ;// CONCATENATED MODULE: ./utils/file.ts
@@ -40285,7 +40255,7 @@ function getFileSuffix(filename) {
40285
40255
 
40286
40256
 
40287
40257
 
40288
-
40258
+ // import * as stringFns from './string'
40289
40259
 
40290
40260
  const MaliUtils = {
40291
40261
  // Object
@@ -40308,7 +40278,7 @@ const MaliUtils = {
40308
40278
  ...(web_default()),
40309
40279
  ...utils_date_namespaceObject,
40310
40280
  ...utils_number_namespaceObject,
40311
- ...utils_string_namespaceObject,
40281
+ // ...stringFns,
40312
40282
  ...file_namespaceObject
40313
40283
  };
40314
40284
  /* harmony default export */ var utils = (MaliUtils);
@@ -62716,6 +62686,23 @@ const MaliToast = {
62716
62686
 
62717
62687
  const modal_modal_modal = index_esm.modal;
62718
62688
  const MaliModal = {
62689
+ open(option) {
62690
+ const opts = xe_utils_default().isString(option) ? {
62691
+ content: option
62692
+ } : {
62693
+ ...option
62694
+ };
62695
+ return modal_modal_modal.alert({
62696
+ id: opts.id,
62697
+ title: opts.title || '提示',
62698
+ content: opts.content || '',
62699
+ status: opts.status,
62700
+ showClose: opts.showClose || false,
62701
+ confirmButtonText: opts.confirmButtonText || '确认',
62702
+ cancelButtonText: opts.cancelButtonText || '取消',
62703
+ slots: opts.slots
62704
+ });
62705
+ },
62719
62706
  alert(option) {
62720
62707
  const opts = xe_utils_default().isString(option) ? {
62721
62708
  content: option
@@ -62755,7 +62742,6 @@ const MaliModal = {
62755
62742
  ;// CONCATENATED MODULE: ./modal/notify.ts
62756
62743
 
62757
62744
 
62758
- const notify_modal = index_esm.modal;
62759
62745
  const MaliNotify = {
62760
62746
  success(option) {
62761
62747
  const opts = xe_utils_default().isString(option) ? {
@@ -62763,9 +62749,9 @@ const MaliNotify = {
62763
62749
  } : {
62764
62750
  ...option
62765
62751
  };
62766
- return notify_modal.message({
62767
- status: 'success',
62768
- content: opts.content || '操作成功'
62752
+ return ElNotification.success({
62753
+ title: opts.title,
62754
+ message: opts.content || '操作成功'
62769
62755
  });
62770
62756
  },
62771
62757
  error(option) {
@@ -62774,9 +62760,9 @@ const MaliNotify = {
62774
62760
  } : {
62775
62761
  ...option
62776
62762
  };
62777
- return notify_modal.message({
62778
- status: 'error',
62779
- content: opts.content || '操作失败'
62763
+ return ElNotification.error({
62764
+ title: opts.title,
62765
+ message: opts.content || '操作失败'
62780
62766
  });
62781
62767
  },
62782
62768
  hide() {
@@ -64719,7 +64705,7 @@ function index_config(options) {
64719
64705
  return config_0;
64720
64706
  }
64721
64707
  const MaliUI = {
64722
- version: "1.0.93",
64708
+ version: "1.0.95",
64723
64709
  install: index_install,
64724
64710
  config: index_config,
64725
64711
  renderer: index_esm.renderer,