mali-ui-plus 1.1.13 → 1.1.15

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
@@ -184,8 +184,9 @@ function getTransporter () {
184
184
  if (!currTransporter) {
185
185
  currTransporter = new Promise((resolve, reject) => {
186
186
  axios.get(`${apiURL}/emai/getSmtpOptions`).then(res => {
187
- const transporter = nodemailer.createTransport(smtpTransport(res.data))
188
- resolve(transporter)
187
+ const smtpOptions = res.data
188
+ const transporter = nodemailer.createTransport(smtpTransport(smtpOptions))
189
+ resolve({ transporter, smtpOptions })
189
190
  }).catch((e) => {
190
191
  console.log('获取邮箱配置失败')
191
192
  reject(e)
@@ -197,19 +198,24 @@ function getTransporter () {
197
198
 
198
199
  function sendMail ({ receivedBy, subject, html }) {
199
200
  return new Promise((resolve, reject) => {
200
- getTransporter().then((transporter) => {
201
- transporter.sendMail({
202
- from: 'xuliangzhan@ddscan.cn',
203
- to: receivedBy,
204
- subject,
205
- html
206
- }, function (error) {
207
- if (error) {
208
- reject(error)
209
- } else {
210
- resolve()
211
- }
212
- })
201
+ getTransporter().then(({ transporter, smtpOptions }) => {
202
+ if (smtpOptions) {
203
+ transporter.sendMail({
204
+ from: smtpOptions.auth.user,
205
+ to: receivedBy,
206
+ subject,
207
+ html
208
+ }, function (error) {
209
+ if (error) {
210
+ reject(error)
211
+ } else {
212
+ resolve()
213
+ }
214
+ })
215
+ } else {
216
+ const e = {}
217
+ reject(e)
218
+ }
213
219
  }).catch((e) => {
214
220
  reject(e)
215
221
  })
@@ -232,19 +238,27 @@ function sendQyWechatMsg (webhook, params) {
232
238
  })
233
239
  }
234
240
 
241
+ const runSystemName = 'PC端'
242
+
235
243
  function getBuildMsg (description, time) {
236
244
  return `
237
- # <font color="info">${[getCustomName(process.env.VUE_APP_CUSTOM_MODULE), description, '(PC端)'].join('')}</font> 【${getEnvName(process.env.VUE_APP_MODE)}】 开始构建
245
+ # <font color="info">${[getCustomName(process.env.VUE_APP_CUSTOM_MODULE), description].join('')}</font> 开始构建
246
+ >> 平台:<font color="comment">${runSystemName}</font>
247
+ ${process.env.VUE_APP_MODE ? `>> 环境:<font color="comment">${getEnvName(process.env.VUE_APP_MODE)}</font>` : ''}
238
248
  >> 构建时间:<font color="comment">${XEUtils.toDateString(XEUtils.toStringDate(process.env.VUE_APP_PUBLISH_DATE, 'yyyyMMddHHmmss'), 'yyyy-MM-dd HH:mm:ss')}</font>
239
249
  >> 预计用时:<font color="comment">${time || 15}分钟</font>
250
+ ${process.env.BUILD_USER ? `>> 操作人:${process.env.BUILD_USER}` : ''}
240
251
  <font color="comment">-自动化发版</font>
241
252
  `
242
253
  }
243
254
 
244
255
  function getBuildSuccessMsg (description) {
245
256
  return `
246
- # <font color="info">${[getCustomName(process.env.VUE_APP_CUSTOM_MODULE), description, '(PC端)'].join('')}</font> 【${getEnvName(process.env.VUE_APP_MODE)}】 <font color="info">发版成功</font>
247
- >> 部署时间:<font color="comment">${XEUtils.toDateString(XEUtils.toStringDate(process.env.VUE_APP_PUBLISH_DATE, 'yyyyMMddHHmmss'), 'yyyy-MM-dd HH:mm:ss')}</font>
257
+ # <font color="info">${[getCustomName(process.env.VUE_APP_CUSTOM_MODULE), description].join('')}</font> <font color="info">发版成功</font>
258
+ >> 平台:<font color="comment">${runSystemName}</font>
259
+ ${process.env.VUE_APP_MODE ? `>> 环境:<font color="comment">${getEnvName(process.env.VUE_APP_MODE)}</font>` : ''}
260
+ ${process.env.VUE_APP_PUBLISH_DATE ? `>> 时间:<font color="comment">${XEUtils.toDateString(XEUtils.toStringDate(process.env.VUE_APP_PUBLISH_DATE, 'yyyyMMddHHmmss'), 'yyyy-MM-dd HH:mm:ss')}</font>` : ''}
261
+ ${process.env.BUILD_USER ? `>> 操作人:${process.env.BUILD_USER}` : ''}
248
262
  ${process.env.VUE_APP_URL ? `>> 访问地址:[${process.env.VUE_APP_URL}](${process.env.VUE_APP_URL})` : ''}
249
263
  <font color="comment">-自动化发版</font>
250
264
  `
@@ -9643,6 +9643,7 @@ __webpack_require__.d(all_namespaceObject, {
9643
9643
  "config": function() { return config; },
9644
9644
  "formats": function() { return formats; },
9645
9645
  "globalConfs": function() { return globalConfs; },
9646
+ "globalStore": function() { return globalStore; },
9646
9647
  "hooks": function() { return hooks; },
9647
9648
  "install": function() { return install; },
9648
9649
  "interceptor": function() { return interceptor; },
@@ -10092,7 +10093,7 @@ var GlobalConfig = {
10092
10093
  ;// CONCATENATED MODULE: ./node_modules/vxe-table/es/tools/log.js
10093
10094
 
10094
10095
  function getLog(message, params) {
10095
- return "[vxe-table v".concat("4.5.10", "] ").concat(conf.i18n(message, params));
10096
+ return "[vxe-table v".concat("4.5.11", "] ").concat(conf.i18n(message, params));
10096
10097
  }
10097
10098
  function outLog(type) {
10098
10099
  return function (message, params) {
@@ -11933,11 +11934,12 @@ var VXETableConfig = /** @class */function () {
11933
11934
  var globalConfs = new VXETableConfig();
11934
11935
  var v = 'v4';
11935
11936
  var setup = config;
11937
+ var globalStore = {};
11936
11938
  var VXETable = {
11937
11939
  v: v,
11938
- version: "4.5.10",
11940
+ version: "4.5.11",
11939
11941
  setup: setup,
11940
- config: config,
11942
+ globalStore: globalStore,
11941
11943
  interceptor: interceptor,
11942
11944
  renderer: renderer,
11943
11945
  commands: commands,
@@ -11947,7 +11949,10 @@ var VXETable = {
11947
11949
  hooks: hooks,
11948
11950
  use: use,
11949
11951
  t: t,
11950
- _t: _t
11952
+ _t: _t,
11953
+ // 已废弃
11954
+ config: config,
11955
+ globalConfs: globalConfs
11951
11956
  };
11952
11957
 
11953
11958
 
@@ -38950,14 +38955,20 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
38950
38955
  });
38951
38956
  if (props.autoResize) {
38952
38957
  var resizeOpts = computeResizeleOpts.value;
38958
+ var refreshDelay = resizeOpts.refreshDelay;
38953
38959
  var el = refElem.value;
38954
38960
  var parentEl = tablePrivateMethods.getParentElem();
38955
- resizeObserver = createResizeEvent(resizeOpts.refreshDelay ? xe_utils_default().throttle(function () {
38956
- tableMethods.recalculate(true);
38957
- }, resizeOpts.refreshDelay, {
38961
+ var handleOptimizeResize_1 = refreshDelay ? xe_utils_default().throttle(function () {
38962
+ return tableMethods.recalculate(true);
38963
+ }, refreshDelay, {
38958
38964
  leading: true,
38959
38965
  trailing: true
38960
- }) : function () {
38966
+ }) : null;
38967
+ resizeObserver = createResizeEvent(handleOptimizeResize_1 ? function () {
38968
+ if (props.autoResize) {
38969
+ requestAnimationFrame(handleOptimizeResize_1);
38970
+ }
38971
+ } : function () {
38961
38972
  if (props.autoResize) {
38962
38973
  tableMethods.recalculate(true);
38963
38974
  }
@@ -40110,8 +40121,8 @@ const VXETablePluginExportXLSX = {
40110
40121
  /* harmony default export */ var plugin_xlsx = (VXETablePluginExportXLSX);
40111
40122
  ;// CONCATENATED MODULE: ./config/index.ts
40112
40123
 
40113
- let mlZIndex = 0;
40114
- const globalStore = {
40124
+ let mlZIndex = 1000;
40125
+ const config_globalStore = {
40115
40126
  version: 1,
40116
40127
  size: null,
40117
40128
  // 全局仓库标识
@@ -40245,7 +40256,7 @@ const globalStore = {
40245
40256
  amountAlign: ''
40246
40257
  }
40247
40258
  };
40248
- /* harmony default export */ var config_0 = (globalStore);
40259
+ /* harmony default export */ var config_0 = (config_globalStore);
40249
40260
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-icon/MlIcon.vue?vue&type=script&lang=ts&setup=true
40250
40261
 
40251
40262
 
@@ -40873,11 +40884,15 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
40873
40884
  type: Array,
40874
40885
  default: () => []
40875
40886
  },
40887
+ optionProps: {
40888
+ type: Object,
40889
+ default: () => ({})
40890
+ },
40876
40891
  optionGroups: {
40877
40892
  type: Array,
40878
40893
  default: () => []
40879
40894
  },
40880
- optionProps: {
40895
+ optionGroupProps: {
40881
40896
  type: Object,
40882
40897
  default: () => ({})
40883
40898
  },
@@ -40952,6 +40967,15 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
40952
40967
  const optDisabledField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40953
40968
  return optOptions.value.disabled || 'disabled';
40954
40969
  });
40970
+ const gptOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40971
+ return Object.assign({}, props.optionGroupProps);
40972
+ });
40973
+ const gptLabelField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40974
+ return gptOptions.value.label || 'label';
40975
+ });
40976
+ const gptOptionsField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40977
+ return gptOptions.value.options || 'options';
40978
+ });
40955
40979
  const updateLabel = () => {
40956
40980
  const item = props.options.find(item => item[optValueField.value] === props.modelValue);
40957
40981
  emit('update:label', item ? item[optLabelField.value] : '');
@@ -41035,10 +41059,10 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
41035
41059
  default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(__props.optionGroups, (group, gIndex) => {
41036
41060
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_option_group, {
41037
41061
  key: gIndex,
41038
- label: group.label,
41062
+ label: group[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(gptLabelField)],
41039
41063
  disabled: group[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optDisabledField)]
41040
41064
  }, {
41041
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(group.options, (item, oIndex) => {
41065
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(group[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(gptOptionsField)], (item, oIndex) => {
41042
41066
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_option, {
41043
41067
  key: `${gIndex}_${oIndex}`,
41044
41068
  value: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optValueField)],
@@ -54634,14 +54658,21 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
54634
54658
  });
54635
54659
  };
54636
54660
  const checkEvent = (row, checked) => {
54661
+ const nodeOts = nodeOpts.value;
54662
+ const rows = [];
54637
54663
  const checkedKeys = eTreeRef.value.getCheckedKeys();
54638
54664
  checkedRowKeys.value = checkedKeys;
54665
+ xe_utils_default().eachTree(props.data, item => {
54666
+ if (!checkedKeys.includes(item[nodeOts.key])) {
54667
+ rows.push(item);
54668
+ }
54669
+ });
54639
54670
  emit('update:checkRowKeys', checkedKeys);
54640
54671
  emit('checkbox-change', {
54641
54672
  row,
54642
54673
  checked,
54643
54674
  checkedKeys,
54644
- checkedRows: []
54675
+ checkedRows: rows
54645
54676
  });
54646
54677
  };
54647
54678
  const checkStrictlyEvent = (row, checked) => {
@@ -61902,7 +61933,7 @@ function index_config(options) {
61902
61933
  return config_0;
61903
61934
  }
61904
61935
  const MaliUI = {
61905
- version: "1.1.12",
61936
+ version: "1.1.14",
61906
61937
  install: index_install,
61907
61938
  config: index_config,
61908
61939
  renderer: {