mali-ui-plus 1.1.13 → 1.1.14

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)],
@@ -61902,7 +61926,7 @@ function index_config(options) {
61902
61926
  return config_0;
61903
61927
  }
61904
61928
  const MaliUI = {
61905
- version: "1.1.12",
61929
+ version: "1.1.13",
61906
61930
  install: index_install,
61907
61931
  config: index_config,
61908
61932
  renderer: {
@@ -9653,6 +9653,7 @@ __webpack_require__.d(all_namespaceObject, {
9653
9653
  "config": function() { return config; },
9654
9654
  "formats": function() { return formats; },
9655
9655
  "globalConfs": function() { return globalConfs; },
9656
+ "globalStore": function() { return globalStore; },
9656
9657
  "hooks": function() { return hooks; },
9657
9658
  "install": function() { return install; },
9658
9659
  "interceptor": function() { return interceptor; },
@@ -10102,7 +10103,7 @@ var GlobalConfig = {
10102
10103
  ;// CONCATENATED MODULE: ./node_modules/vxe-table/es/tools/log.js
10103
10104
 
10104
10105
  function getLog(message, params) {
10105
- return "[vxe-table v".concat("4.5.10", "] ").concat(conf.i18n(message, params));
10106
+ return "[vxe-table v".concat("4.5.11", "] ").concat(conf.i18n(message, params));
10106
10107
  }
10107
10108
  function outLog(type) {
10108
10109
  return function (message, params) {
@@ -11943,11 +11944,12 @@ var VXETableConfig = /** @class */function () {
11943
11944
  var globalConfs = new VXETableConfig();
11944
11945
  var v = 'v4';
11945
11946
  var setup = config;
11947
+ var globalStore = {};
11946
11948
  var VXETable = {
11947
11949
  v: v,
11948
- version: "4.5.10",
11950
+ version: "4.5.11",
11949
11951
  setup: setup,
11950
- config: config,
11952
+ globalStore: globalStore,
11951
11953
  interceptor: interceptor,
11952
11954
  renderer: renderer,
11953
11955
  commands: commands,
@@ -11957,7 +11959,10 @@ var VXETable = {
11957
11959
  hooks: hooks,
11958
11960
  use: use,
11959
11961
  t: t,
11960
- _t: _t
11962
+ _t: _t,
11963
+ // 已废弃
11964
+ config: config,
11965
+ globalConfs: globalConfs
11961
11966
  };
11962
11967
 
11963
11968
 
@@ -38960,14 +38965,20 @@ var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
38960
38965
  });
38961
38966
  if (props.autoResize) {
38962
38967
  var resizeOpts = computeResizeleOpts.value;
38968
+ var refreshDelay = resizeOpts.refreshDelay;
38963
38969
  var el = refElem.value;
38964
38970
  var parentEl = tablePrivateMethods.getParentElem();
38965
- resizeObserver = createResizeEvent(resizeOpts.refreshDelay ? xe_utils_default().throttle(function () {
38966
- tableMethods.recalculate(true);
38967
- }, resizeOpts.refreshDelay, {
38971
+ var handleOptimizeResize_1 = refreshDelay ? xe_utils_default().throttle(function () {
38972
+ return tableMethods.recalculate(true);
38973
+ }, refreshDelay, {
38968
38974
  leading: true,
38969
38975
  trailing: true
38970
- }) : function () {
38976
+ }) : null;
38977
+ resizeObserver = createResizeEvent(handleOptimizeResize_1 ? function () {
38978
+ if (props.autoResize) {
38979
+ requestAnimationFrame(handleOptimizeResize_1);
38980
+ }
38981
+ } : function () {
38971
38982
  if (props.autoResize) {
38972
38983
  tableMethods.recalculate(true);
38973
38984
  }
@@ -40120,8 +40131,8 @@ const VXETablePluginExportXLSX = {
40120
40131
  /* harmony default export */ var plugin_xlsx = (VXETablePluginExportXLSX);
40121
40132
  ;// CONCATENATED MODULE: ./config/index.ts
40122
40133
 
40123
- let mlZIndex = 0;
40124
- const globalStore = {
40134
+ let mlZIndex = 1000;
40135
+ const config_globalStore = {
40125
40136
  version: 1,
40126
40137
  size: null,
40127
40138
  // 全局仓库标识
@@ -40255,7 +40266,7 @@ const globalStore = {
40255
40266
  amountAlign: ''
40256
40267
  }
40257
40268
  };
40258
- /* harmony default export */ var config_0 = (globalStore);
40269
+ /* harmony default export */ var config_0 = (config_globalStore);
40259
40270
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.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
40260
40271
 
40261
40272
 
@@ -40883,11 +40894,15 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
40883
40894
  type: Array,
40884
40895
  default: () => []
40885
40896
  },
40897
+ optionProps: {
40898
+ type: Object,
40899
+ default: () => ({})
40900
+ },
40886
40901
  optionGroups: {
40887
40902
  type: Array,
40888
40903
  default: () => []
40889
40904
  },
40890
- optionProps: {
40905
+ optionGroupProps: {
40891
40906
  type: Object,
40892
40907
  default: () => ({})
40893
40908
  },
@@ -40962,6 +40977,15 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
40962
40977
  const optDisabledField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40963
40978
  return optOptions.value.disabled || 'disabled';
40964
40979
  });
40980
+ const gptOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40981
+ return Object.assign({}, props.optionGroupProps);
40982
+ });
40983
+ const gptLabelField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40984
+ return gptOptions.value.label || 'label';
40985
+ });
40986
+ const gptOptionsField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
40987
+ return gptOptions.value.options || 'options';
40988
+ });
40965
40989
  const updateLabel = () => {
40966
40990
  const item = props.options.find(item => item[optValueField.value] === props.modelValue);
40967
40991
  emit('update:label', item ? item[optLabelField.value] : '');
@@ -41045,10 +41069,10 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
41045
41069
  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) => {
41046
41070
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_option_group, {
41047
41071
  key: gIndex,
41048
- label: group.label,
41072
+ label: group[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(gptLabelField)],
41049
41073
  disabled: group[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optDisabledField)]
41050
41074
  }, {
41051
- 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) => {
41075
+ 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) => {
41052
41076
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_option, {
41053
41077
  key: `${gIndex}_${oIndex}`,
41054
41078
  value: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optValueField)],
@@ -61912,7 +61936,7 @@ function index_config(options) {
61912
61936
  return config_0;
61913
61937
  }
61914
61938
  const MaliUI = {
61915
- version: "1.1.12",
61939
+ version: "1.1.13",
61916
61940
  install: index_install,
61917
61941
  config: index_config,
61918
61942
  renderer: {