mali-ui-plus 1.1.4 → 1.1.6

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/env/index.js CHANGED
@@ -7,16 +7,6 @@ const nodemailer = require('nodemailer')
7
7
  const smtpTransport = require('nodemailer-smtp-transport')
8
8
  const pack = require('../package.json')
9
9
 
10
- const currTransporter = new Promise((resolve, reject) => {
11
- // axios.get('http://192.168.10.217:3000/emai/getSmtpOptions').then(res => {
12
- // const transporter = nodemailer.createTransport(smtpTransport(res.data))
13
- // resolve(transporter)
14
- // }).catch((e) => {
15
- // console.log('获取邮箱配置失败')
16
- // reject(e)
17
- // })
18
- })
19
-
20
10
  function getEnvCode (mode) {
21
11
  const maps = {
22
12
  dev: 'development',
@@ -118,25 +108,41 @@ function initEnv (dirPath, defaultEnv) {
118
108
  return conf
119
109
  }
120
110
 
111
+ let currTransporter = null
112
+
113
+ function getTransporter () {
114
+ if (!currTransporter) {
115
+ currTransporter = new Promise((resolve, reject) => {
116
+ axios.get('http://192.168.10.217:3000/emai/getSmtpOptions').then(res => {
117
+ const transporter = nodemailer.createTransport(smtpTransport(res.data))
118
+ resolve(transporter)
119
+ }).catch((e) => {
120
+ console.log('获取邮箱配置失败')
121
+ reject(e)
122
+ })
123
+ })
124
+ }
125
+ return currTransporter
126
+ }
127
+
121
128
  function sendMail ({ receivedBy, subject, html }) {
122
129
  return new Promise((resolve, reject) => {
123
- resolve()
124
- // currTransporter.then((transporter) => {
125
- // transporter.sendMail({
126
- // from: 'xuliangzhan@ddscan.cn',
127
- // to: receivedBy,
128
- // subject,
129
- // html
130
- // }, function (error, response) {
131
- // if (error) {
132
- // reject(error)
133
- // } else {
134
- // resolve()
135
- // }
136
- // })
137
- // }).catch((e) => {
138
- // reject(e)
139
- // })
130
+ getTransporter().then((transporter) => {
131
+ transporter.sendMail({
132
+ from: 'xuliangzhan@ddscan.cn',
133
+ to: receivedBy,
134
+ subject,
135
+ html
136
+ }, function (error) {
137
+ if (error) {
138
+ reject(error)
139
+ } else {
140
+ resolve()
141
+ }
142
+ })
143
+ }).catch((e) => {
144
+ reject(e)
145
+ })
140
146
  })
141
147
  }
142
148
 
@@ -10083,7 +10083,7 @@ var GlobalConfig = {
10083
10083
  ;// CONCATENATED MODULE: ./node_modules/vxe-table/es/tools/log.js
10084
10084
 
10085
10085
  function getLog(message, params) {
10086
- return "[vxe-table v".concat("4.5.3", "] ").concat(conf.i18n(message, params));
10086
+ return "[vxe-table v".concat("4.5.8", "] ").concat(conf.i18n(message, params));
10087
10087
  }
10088
10088
  function outLog(type) {
10089
10089
  return function (message, params) {
@@ -10198,6 +10198,7 @@ function getDom() {
10198
10198
  if (!storeEl) {
10199
10199
  storeEl = document.createElement('div');
10200
10200
  storeEl.id = storeId;
10201
+ storeEl.style.display = 'none';
10201
10202
  document.body.appendChild(storeEl);
10202
10203
  setCurrent(storeData.m);
10203
10204
  setSubCurrent(storeData.s);
@@ -11923,7 +11924,7 @@ var config = new VXETableConfig();
11923
11924
  var v = 'v4';
11924
11925
  var VXETable = {
11925
11926
  v: v,
11926
- version: "4.5.3",
11927
+ version: "4.5.8",
11927
11928
  setup: setup,
11928
11929
  interceptor: interceptor,
11929
11930
  renderer: renderer,
@@ -15719,6 +15720,9 @@ var quarterSize = 8;
15719
15720
  }
15720
15721
  },
15721
15722
  multiple: Boolean,
15723
+ // text
15724
+ showWordCount: Boolean,
15725
+ countMethod: Function,
15722
15726
  // number、integer、float
15723
15727
  min: {
15724
15728
  type: [String, Number],
@@ -15874,6 +15878,13 @@ var quarterSize = 8;
15874
15878
  var computeIsNumType = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
15875
15879
  return ['number', 'integer', 'float'].indexOf(props.type) > -1;
15876
15880
  });
15881
+ var computeInputCount = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
15882
+ return xe_utils_default().getSize(reactData.inputValue);
15883
+ });
15884
+ var computeIsCountError = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
15885
+ var inputCount = computeInputCount.value;
15886
+ return props.maxlength && inputCount > xe_utils_default().toNumber(props.maxlength);
15887
+ });
15877
15888
  var computeIsDatePickerType = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(function () {
15878
15889
  var isDateTimeType = computeIsDateTimeType.value;
15879
15890
  return isDateTimeType || ['date', 'week', 'month', 'quarter', 'year'].indexOf(props.type) > -1;
@@ -17985,6 +17996,8 @@ var quarterSize = 8;
17985
17996
  controls = props.controls,
17986
17997
  type = props.type,
17987
17998
  align = props.align,
17999
+ showWordCount = props.showWordCount,
18000
+ countMethod = props.countMethod,
17988
18001
  name = props.name,
17989
18002
  disabled = props.disabled,
17990
18003
  readonly = props.readonly,
@@ -17993,6 +18006,8 @@ var quarterSize = 8;
17993
18006
  visiblePanel = reactData.visiblePanel,
17994
18007
  isActivated = reactData.isActivated;
17995
18008
  var vSize = computeSize.value;
18009
+ var isCountError = computeIsCountError.value;
18010
+ var inputCount = computeInputCount.value;
17996
18011
  var isDatePickerType = computeIsDatePickerType.value;
17997
18012
  var inpReadonly = computeInpReadonly.value;
17998
18013
  var inpMaxlength = computeInpMaxlength.value;
@@ -18036,9 +18051,21 @@ var quarterSize = 8;
18036
18051
  if (isDatePickerType) {
18037
18052
  childs.push(renderPanel());
18038
18053
  }
18054
+ var isWordCount = false;
18055
+ // 统计字数
18056
+ if (showWordCount && ['text', 'search'].includes(type)) {
18057
+ isWordCount = true;
18058
+ childs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
18059
+ class: ['vxe-input--count', {
18060
+ 'is--error': isCountError
18061
+ }]
18062
+ }, countMethod ? "".concat(countMethod({
18063
+ value: inputValue
18064
+ })) : "".concat(inputCount).concat(inpMaxlength ? "/".concat(inpMaxlength) : '')));
18065
+ }
18039
18066
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
18040
18067
  ref: refElem,
18041
- class: ['vxe-input', "type--".concat(type), className, (_a = {}, _a["size--".concat(vSize)] = vSize, _a["is--".concat(align)] = align, _a['is--controls'] = controls, _a['is--prefix'] = !!prefix, _a['is--suffix'] = !!suffix, _a['is--readonly'] = readonly, _a['is--visivle'] = visiblePanel, _a['is--disabled'] = disabled, _a['is--active'] = isActivated, _a)]
18068
+ class: ['vxe-input', "type--".concat(type), className, (_a = {}, _a["size--".concat(vSize)] = vSize, _a["is--".concat(align)] = align, _a['is--controls'] = controls, _a['is--prefix'] = !!prefix, _a['is--suffix'] = !!suffix, _a['is--readonly'] = readonly, _a['is--visivle'] = visiblePanel, _a['is--count'] = isWordCount, _a['is--disabled'] = disabled, _a['is--active'] = isActivated, _a)]
18042
18069
  }, childs);
18043
18070
  };
18044
18071
  $xeinput.renderVN = renderVN;
@@ -20442,6 +20469,7 @@ var tableExportHook = {
20442
20469
  htmlCellElem = document.createElement('div');
20443
20470
  }
20444
20471
  if (treeConfig) {
20472
+ var childrenField = treeOpts.children || treeOpts.childrenField;
20445
20473
  // 如果是树表格只允许导出数据源
20446
20474
  var rest_1 = [];
20447
20475
  var expandMaps_1 = new Map();
@@ -20519,7 +20547,9 @@ var tableExportHook = {
20519
20547
  expandMaps_1.set(row, 1);
20520
20548
  rest_1.push(Object.assign(item_3, row));
20521
20549
  }
20522
- }, treeOpts);
20550
+ }, {
20551
+ children: childrenField
20552
+ });
20523
20553
  return rest_1;
20524
20554
  }
20525
20555
  return datas.map(function (row, $rowIndex) {
@@ -21935,13 +21965,16 @@ var tableKeyboardHook = {
21935
21965
  var currentRow = reactData.currentRow;
21936
21966
  var afterFullData = internalData.afterFullData;
21937
21967
  var treeOpts = computeTreeOpts.value;
21968
+ var childrenField = treeOpts.children || treeOpts.childrenField;
21938
21969
  var targetRow;
21939
21970
  evnt.preventDefault();
21940
21971
  if (currentRow) {
21941
21972
  if (treeConfig) {
21942
21973
  var _a = xe_utils_default().findTree(afterFullData, function (item) {
21943
21974
  return item === currentRow;
21944
- }, treeOpts),
21975
+ }, {
21976
+ children: childrenField
21977
+ }),
21945
21978
  index = _a.index,
21946
21979
  items = _a.items;
21947
21980
  if (isUpArrow && index > 0) {
@@ -22169,6 +22202,7 @@ var validatorHook = {
22169
22202
  treeConfig = props.treeConfig;
22170
22203
  var afterFullData = internalData.afterFullData;
22171
22204
  var treeOpts = computeTreeOpts.value;
22205
+ var childrenField = treeOpts.children || treeOpts.childrenField;
22172
22206
  var validOpts = computeValidOpts.value;
22173
22207
  var vaildDatas;
22174
22208
  if (rows === true) {
@@ -22233,7 +22267,9 @@ var validatorHook = {
22233
22267
  }
22234
22268
  };
22235
22269
  if (treeConfig) {
22236
- xe_utils_default().eachTree(vaildDatas, handleVaild, treeOpts);
22270
+ xe_utils_default().eachTree(vaildDatas, handleVaild, {
22271
+ children: childrenField
22272
+ });
22237
22273
  } else {
22238
22274
  vaildDatas.forEach(handleVaild);
22239
22275
  }
@@ -27105,7 +27141,7 @@ var autoTxtElem;
27105
27141
  var inputCount = computeInputCount.value;
27106
27142
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
27107
27143
  ref: refElem,
27108
- class: ['vxe-textarea', className, (_a = {}, _a["size--".concat(vSize)] = vSize, _a['is--autosize'] = autosize, _a['is--disabled'] = disabled, _a['def--rows'] = !xe_utils_default().eqNull(rows), _a['def--cols'] = !xe_utils_default().eqNull(cols), _a)]
27144
+ class: ['vxe-textarea', className, (_a = {}, _a["size--".concat(vSize)] = vSize, _a['is--autosize'] = autosize, _a['is--count'] = showWordCount, _a['is--disabled'] = disabled, _a['def--rows'] = !xe_utils_default().eqNull(rows), _a['def--cols'] = !xe_utils_default().eqNull(cols), _a)]
27109
27145
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('textarea', {
27110
27146
  ref: refTextarea,
27111
27147
  class: 'vxe-textarea--inner',
@@ -31104,8 +31140,10 @@ var lineOffsetSizes = {
31104
31140
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(function () {
31105
31141
  var el = refElem.value;
31106
31142
  clearTimeout(wheelTime);
31107
- el._onscroll = null;
31108
- el.onscroll = null;
31143
+ if (el) {
31144
+ el._onscroll = null;
31145
+ el.onscroll = null;
31146
+ }
31109
31147
  });
31110
31148
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(function () {
31111
31149
  var fixedType = props.fixedType;
@@ -33974,6 +34012,7 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
33974
34012
  afterFullRowMaps = internalData.afterFullRowMaps,
33975
34013
  checkboxReserveRowMap = internalData.checkboxReserveRowMap;
33976
34014
  var treeOpts = computeTreeOpts.value;
34015
+ var childrenField = treeOpts.children || treeOpts.childrenField;
33977
34016
  var checkboxOpts = computeCheckboxOpts.value;
33978
34017
  var checkField = checkboxOpts.checkField,
33979
34018
  reserve = checkboxOpts.reserve,
@@ -34014,7 +34053,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34014
34053
  // 如果存在选中方法
34015
34054
  // 如果方法成立,则更新值,否则忽略该数据
34016
34055
  if (treeConfig) {
34017
- xe_utils_default().eachTree(afterFullData, checkValFn, treeOpts);
34056
+ xe_utils_default().eachTree(afterFullData, checkValFn, {
34057
+ children: childrenField
34058
+ });
34018
34059
  } else {
34019
34060
  afterFullData.forEach(checkValFn);
34020
34061
  }
@@ -34035,7 +34076,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34035
34076
  })) {
34036
34077
  selectRowMaps[getRowid($xetable, row)] = row;
34037
34078
  }
34038
- }, treeOpts);
34079
+ }, {
34080
+ children: childrenField
34081
+ });
34039
34082
  } else {
34040
34083
  /**
34041
34084
  * 如果是树取消
@@ -34049,7 +34092,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34049
34092
  }) ? 0 : selectCheckboxMaps[rowid]) {
34050
34093
  selectRowMaps[rowid] = row;
34051
34094
  }
34052
- }, treeOpts);
34095
+ }, {
34096
+ children: childrenField
34097
+ });
34053
34098
  }
34054
34099
  }
34055
34100
  } else {
@@ -34165,9 +34210,10 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34165
34210
  var treeConfig = props.treeConfig;
34166
34211
  if (treeConfig) {
34167
34212
  var tableFullData_1 = internalData.tableFullData;
34168
- var treeOpts_1 = computeTreeOpts.value;
34169
- var expandAll = treeOpts_1.expandAll,
34170
- expandRowKeys = treeOpts_1.expandRowKeys;
34213
+ var treeOpts = computeTreeOpts.value;
34214
+ var expandAll = treeOpts.expandAll,
34215
+ expandRowKeys = treeOpts.expandRowKeys;
34216
+ var childrenField_1 = treeOpts.children || treeOpts.childrenField;
34171
34217
  if (expandAll) {
34172
34218
  tableMethods.setAllTreeExpand(true);
34173
34219
  } else if (expandRowKeys) {
@@ -34176,7 +34222,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34176
34222
  expandRowKeys.forEach(function (rowid) {
34177
34223
  var matchObj = xe_utils_default().findTree(tableFullData_1, function (item) {
34178
34224
  return rowid === xe_utils_default().get(item, rowkey_1);
34179
- }, treeOpts_1);
34225
+ }, {
34226
+ children: childrenField_1
34227
+ });
34180
34228
  if (matchObj) {
34181
34229
  defExpandeds_2.push(matchObj.item);
34182
34230
  }
@@ -34707,7 +34755,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34707
34755
  // 同一级只能展开一个
34708
34756
  var matchObj = xe_utils_default().findTree(tableFullData, function (item) {
34709
34757
  return item === validRows[0];
34710
- }, treeOpts);
34758
+ }, {
34759
+ children: childrenField
34760
+ });
34711
34761
  if (matchObj) {
34712
34762
  matchObj.items.forEach(function (item) {
34713
34763
  var rowid = getRowid($xetable, item);
@@ -34965,7 +35015,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34965
35015
  var rowid_2 = getRowid($xetable, row);
34966
35016
  var matchObj = xe_utils_default().findTree(tableSourceData, function (item) {
34967
35017
  return rowid_2 === getRowid($xetable, item);
34968
- }, treeOpts);
35018
+ }, {
35019
+ children: childrenField
35020
+ });
34969
35021
  if (matchObj) {
34970
35022
  matchObj.item[childrenField] = xe_utils_default().clone(rows, true);
34971
35023
  }
@@ -34985,7 +35037,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
34985
35037
  };
34986
35038
  fullDataRowIdData[rowid] = rest;
34987
35039
  fullAllDataRowIdData[rowid] = rest;
34988
- }, treeOpts);
35040
+ }, {
35041
+ children: childrenField
35042
+ });
34989
35043
  row[childrenField] = rows;
34990
35044
  if (transform) {
34991
35045
  row[mapChildrenField] = rows;
@@ -35675,6 +35729,7 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
35675
35729
  afterFullData = internalData.afterFullData;
35676
35730
  var radioOpts = computeRadioOpts.value;
35677
35731
  var treeOpts = computeTreeOpts.value;
35732
+ var childrenField = treeOpts.children || treeOpts.childrenField;
35678
35733
  if (radioOpts.reserve && radioReserveRow) {
35679
35734
  var rowid_3 = getRowid($xetable, radioReserveRow);
35680
35735
  if (isFull) {
@@ -35686,7 +35741,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
35686
35741
  if (treeConfig) {
35687
35742
  var matchObj = xe_utils_default().findTree(afterFullData, function (row) {
35688
35743
  return rowid_3 === xe_utils_default().get(row, rowkey_2);
35689
- }, treeOpts);
35744
+ }, {
35745
+ children: childrenField
35746
+ });
35690
35747
  if (matchObj) {
35691
35748
  return radioReserveRow;
35692
35749
  }
@@ -35715,13 +35772,16 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
35715
35772
  checkboxReserveRowMap = internalData.checkboxReserveRowMap;
35716
35773
  var checkboxOpts = computeCheckboxOpts.value;
35717
35774
  var treeOpts = computeTreeOpts.value;
35775
+ var childrenField = treeOpts.children || treeOpts.childrenField;
35718
35776
  var reserveSelection = [];
35719
35777
  if (checkboxOpts.reserve) {
35720
35778
  var afterFullIdMaps_1 = {};
35721
35779
  if (treeConfig) {
35722
35780
  xe_utils_default().eachTree(afterFullData, function (row) {
35723
35781
  afterFullIdMaps_1[getRowid($xetable, row)] = 1;
35724
- }, treeOpts);
35782
+ }, {
35783
+ children: childrenField
35784
+ });
35725
35785
  } else {
35726
35786
  afterFullData.forEach(function (row) {
35727
35787
  afterFullIdMaps_1[getRowid($xetable, row)] = 1;
@@ -35762,6 +35822,7 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
35762
35822
  var treeConfig = props.treeConfig;
35763
35823
  var tableFullData = internalData.tableFullData;
35764
35824
  var treeOpts = computeTreeOpts.value;
35825
+ var childrenField = treeOpts.children || treeOpts.childrenField;
35765
35826
  var checkboxOpts = computeCheckboxOpts.value;
35766
35827
  var checkField = checkboxOpts.checkField,
35767
35828
  reserve = checkboxOpts.reserve;
@@ -35774,7 +35835,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
35774
35835
  xe_utils_default().set(item, checkField, false);
35775
35836
  };
35776
35837
  if (treeConfig) {
35777
- xe_utils_default().eachTree(tableFullData, handleClearChecked, treeOpts);
35838
+ xe_utils_default().eachTree(tableFullData, handleClearChecked, {
35839
+ children: childrenField
35840
+ });
35778
35841
  } else {
35779
35842
  tableFullData.forEach(handleClearChecked);
35780
35843
  }
@@ -36088,11 +36151,14 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
36088
36151
  var treeOpts = computeTreeOpts.value;
36089
36152
  var tableFullData = internalData.tableFullData,
36090
36153
  tableFullTreeData = internalData.tableFullTreeData;
36154
+ var childrenField = treeOpts.children || treeOpts.childrenField;
36091
36155
  var expandedRows = [];
36092
36156
  if (props.treeConfig) {
36093
36157
  xe_utils_default().eachTree(tableFullTreeData, function (row) {
36094
36158
  expandedRows.push(row);
36095
- }, treeOpts);
36159
+ }, {
36160
+ children: childrenField
36161
+ });
36096
36162
  } else {
36097
36163
  expandedRows = tableFullData;
36098
36164
  }
@@ -36303,7 +36369,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
36303
36369
  if (lazy || rowChildren && rowChildren.length) {
36304
36370
  expandeds.push(row);
36305
36371
  }
36306
- }, treeOpts);
36372
+ }, {
36373
+ children: childrenField
36374
+ });
36307
36375
  return tableMethods.setTreeExpand(expandeds, expanded).then(function () {
36308
36376
  if (transform) {
36309
36377
  handleVirtualTreeToList();
@@ -36350,6 +36418,7 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
36350
36418
  clearTreeExpand: function () {
36351
36419
  var tableFullTreeData = internalData.tableFullTreeData;
36352
36420
  var treeOpts = computeTreeOpts.value;
36421
+ var childrenField = treeOpts.children || treeOpts.childrenField;
36353
36422
  var transform = treeOpts.transform,
36354
36423
  reserve = treeOpts.reserve;
36355
36424
  var expList = tableMethods.getTreeExpandRecords();
@@ -36357,7 +36426,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
36357
36426
  if (reserve) {
36358
36427
  xe_utils_default().eachTree(tableFullTreeData, function (row) {
36359
36428
  return handleTreeExpandReserve(row, false);
36360
- }, treeOpts);
36429
+ }, {
36430
+ children: childrenField
36431
+ });
36361
36432
  }
36362
36433
  return tablePrivateMethods.handleTableData().then(function () {
36363
36434
  if (transform) {
@@ -37011,7 +37082,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
37011
37082
  // 如果树形表格回退键关闭当前行返回父节点
37012
37083
  var parentRow_1 = xe_utils_default().findTree(internalData.afterFullData, function (item) {
37013
37084
  return item === currentRow;
37014
- }, treeOpts).parent;
37085
+ }, {
37086
+ children: childrenField
37087
+ }).parent;
37015
37088
  if (parentRow_1) {
37016
37089
  evnt.preventDefault();
37017
37090
  params = {
@@ -37337,7 +37410,9 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
37337
37410
  }
37338
37411
  fullAllDataRowIdData = internalData.fullAllDataRowIdData = {};
37339
37412
  if (treeConfig) {
37340
- xe_utils_default().eachTree(tableFullTreeData, handleRow, treeOpts);
37413
+ xe_utils_default().eachTree(tableFullTreeData, handleRow, {
37414
+ children: childrenField
37415
+ });
37341
37416
  } else {
37342
37417
  tableFullData.forEach(handleRow);
37343
37418
  }
@@ -37358,8 +37433,11 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
37358
37433
  sourceDataRowIdData[rowid] = row;
37359
37434
  };
37360
37435
  // 源数据缓存
37361
- if (treeConfig && !treeOpts.transform) {
37362
- xe_utils_default().eachTree(sourceData, handleSourceRow, treeOpts);
37436
+ if (treeConfig) {
37437
+ var childrenField = treeOpts.children || treeOpts.childrenField;
37438
+ xe_utils_default().eachTree(sourceData, handleSourceRow, {
37439
+ children: treeOpts.transform ? treeOpts.mapChildrenField : childrenField
37440
+ });
37363
37441
  } else {
37364
37442
  sourceData.forEach(handleSourceRow);
37365
37443
  }
@@ -37631,6 +37709,7 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
37631
37709
  var selectRowMaps = table_assign({}, selectCheckboxMaps);
37632
37710
  var afterFullData = internalData.afterFullData;
37633
37711
  var treeOpts = computeTreeOpts.value;
37712
+ var childrenField = treeOpts.children || treeOpts.childrenField;
37634
37713
  var checkboxOpts = computeCheckboxOpts.value;
37635
37714
  var checkField = checkboxOpts.checkField,
37636
37715
  checkStrictly = checkboxOpts.checkStrictly,
@@ -37660,12 +37739,16 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
37660
37739
  delete treeIndeterminateMaps[getRowid($xetable, item)];
37661
37740
  handleCheckboxReserveRow(row, value);
37662
37741
  }
37663
- }, treeOpts);
37742
+ }, {
37743
+ children: childrenField
37744
+ });
37664
37745
  }
37665
37746
  // 如果存在父节点,更新父节点状态
37666
37747
  var matchObj = xe_utils_default().findTree(afterFullData, function (item) {
37667
37748
  return $xetable.eqRow(item, row);
37668
- }, treeOpts);
37749
+ }, {
37750
+ children: childrenField
37751
+ });
37669
37752
  if (matchObj && matchObj.parent) {
37670
37753
  var parentStatus = void 0;
37671
37754
  var vItems_1 = [];
@@ -37748,12 +37831,16 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
37748
37831
  delete treeIndeterminateMaps[getRowid($xetable, item)];
37749
37832
  handleCheckboxReserveRow(row, value);
37750
37833
  }
37751
- }, treeOpts);
37834
+ }, {
37835
+ children: childrenField
37836
+ });
37752
37837
  }
37753
37838
  // 如果存在父节点,更新父节点状态
37754
37839
  var matchObj = xe_utils_default().findTree(afterFullData, function (item) {
37755
37840
  return $xetable.eqRow(item, row);
37756
- }, treeOpts);
37841
+ }, {
37842
+ children: childrenField
37843
+ });
37757
37844
  if (matchObj && matchObj.parent) {
37758
37845
  var parentStatus = void 0;
37759
37846
  var vItems_2 = [];
@@ -38278,9 +38365,12 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
38278
38365
  var rests = [];
38279
38366
  if (treeConfig) {
38280
38367
  var treeOpts = computeTreeOpts.value;
38368
+ var childrenField = treeOpts.children || treeOpts.childrenField;
38281
38369
  var matchObj = xe_utils_default().findTree(tableFullData, function (item) {
38282
38370
  return $xetable.eqRow(item, row);
38283
- }, treeOpts);
38371
+ }, {
38372
+ children: childrenField
38373
+ });
38284
38374
  if (matchObj) {
38285
38375
  var nodes_1 = matchObj.nodes;
38286
38376
  nodes_1.forEach(function (row, index) {
@@ -56421,11 +56511,24 @@ const MlPager_exports_ = MlPagervue_type_script_lang_ts_setup_true;
56421
56511
 
56422
56512
 
56423
56513
  const MlDrawervue_type_script_lang_ts_setup_true_hoisted_1 = {
56424
- class: "drawer-content"
56514
+ key: 0,
56515
+ class: "ml-drawer-header"
56425
56516
  };
56426
56517
  const MlDrawervue_type_script_lang_ts_setup_true_hoisted_2 = {
56427
- key: 0,
56428
- class: "drawer-footer"
56518
+ class: "ml-drawer-content"
56519
+ };
56520
+ const MlDrawervue_type_script_lang_ts_setup_true_hoisted_3 = {
56521
+ key: 1,
56522
+ class: "ml-drawer-footer"
56523
+ };
56524
+ const MlDrawervue_type_script_lang_ts_setup_true_hoisted_4 = {
56525
+ class: "ml-drawer-footer-warpper"
56526
+ };
56527
+ const MlDrawervue_type_script_lang_ts_setup_true_hoisted_5 = {
56528
+ class: "ml-drawer-footer-left"
56529
+ };
56530
+ const MlDrawervue_type_script_lang_ts_setup_true_hoisted_6 = {
56531
+ class: "ml-drawer-footer-right"
56429
56532
  };
56430
56533
 
56431
56534
 
@@ -56470,7 +56573,8 @@ const MlDrawervue_type_script_lang_ts_setup_true_hoisted_2 = {
56470
56573
  cancelButtonText: {
56471
56574
  type: String,
56472
56575
  default: '取消'
56473
- }
56576
+ },
56577
+ destroyOnClose: Boolean
56474
56578
  },
56475
56579
  emits: ["update:modelValue", "show", "hide", "close", "confirm", "cancel"],
56476
56580
  setup(__props, {
@@ -56547,8 +56651,7 @@ const MlDrawervue_type_script_lang_ts_setup_true_hoisted_2 = {
56547
56651
  onOpen: openEvent,
56548
56652
  onClose: closeEvent
56549
56653
  }, {
56550
- header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "header", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({})), () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.title), 1)])]),
56551
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.guardReactiveProps)({})))]), (__props.showFooter === null ? __props.showCancelButton || __props.showConfirmButton || !!_ctx.$slots.footer : __props.showFooter) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "footer", {}, () => [__props.showCancelButton ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MlButton, {
56654
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [!!_ctx.$slots.top ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "top")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")]), (__props.showFooter === null ? __props.showCancelButton || __props.showConfirmButton || !!_ctx.$slots.footer : __props.showFooter) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "footer", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "footer_left")]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlDrawervue_type_script_lang_ts_setup_true_hoisted_6, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "footer_right", {}, () => [__props.showCancelButton ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_MlButton, {
56552
56655
  key: 0,
56553
56656
  onClick: cancelEvent
56554
56657
  }, {
@@ -56562,7 +56665,7 @@ const MlDrawervue_type_script_lang_ts_setup_true_hoisted_2 = {
56562
56665
  }, {
56563
56666
  default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.confirmButtonText), 1)]),
56564
56667
  _: 1
56565
- }, 8, ["loading"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
56668
+ }, 8, ["loading"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])])])])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
56566
56669
  _: 3
56567
56670
  }, 8, ["modelValue", "title", "showClose", "close-on-click-modal", "appendToBody", "modal", "size", "width", "zIndex"]);
56568
56671
  };
@@ -56910,6 +57013,7 @@ const _hoisted_21 = ["src"];
56910
57013
  const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
56911
57014
  const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
56912
57015
  const loading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
57016
+ const downloadLoading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
56913
57017
  const previewVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
56914
57018
  const previewItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
56915
57019
  const previewImgStatus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
@@ -57216,11 +57320,20 @@ const _hoisted_21 = ["src"];
57216
57320
  const downloadEvent = item => {
57217
57321
  const downloadMethod = props.downloadFile ? props.downloadFile : config_0.upload ? config_0.upload.downloadFile : null;
57218
57322
  if (downloadMethod) {
57219
- downloadMethod({
57323
+ if (downloadLoading.value) {
57324
+ return;
57325
+ }
57326
+ downloadLoading.value = true;
57327
+ Promise.resolve(downloadMethod({
57220
57328
  item,
57221
57329
  params: props.params
57330
+ })).then(() => {
57331
+ downloadLoading.value = false;
57332
+ }).catch(() => {
57333
+ downloadLoading.value = false;
57222
57334
  });
57223
57335
  } else {
57336
+ downloadLoading.value = false;
57224
57337
  console.error('[MlUpload] 代码检查:未设置下载方法,请通过 MaliUI.config({ ... }) 全局设置 upload.downloadFile');
57225
57338
  }
57226
57339
  emit('download', {
@@ -61668,7 +61781,7 @@ function index_config(options) {
61668
61781
  return config_0;
61669
61782
  }
61670
61783
  const MaliUI = {
61671
- version: "1.1.2",
61784
+ version: "1.1.5",
61672
61785
  install: index_install,
61673
61786
  config: index_config,
61674
61787
  renderer: {