mali-ui-plus 1.1.76 → 1.1.78
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 +7 -2
- package/lib/mali-ui-plus.common.js +19 -3
- package/lib/mali-ui-plus.umd.js +19 -3
- package/lib/mali-ui-plus.umd.min.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +5 -1
package/env/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const nodemailer = require('nodemailer')
|
|
|
7
7
|
const smtpTransport = require('nodemailer-smtp-transport')
|
|
8
8
|
const pack = require('../package.json')
|
|
9
9
|
|
|
10
|
-
const apiURL = 'http://192.168.
|
|
10
|
+
const apiURL = 'http://192.168.1.105:3000'
|
|
11
11
|
|
|
12
12
|
const envDir = 'env'
|
|
13
13
|
|
|
@@ -247,7 +247,12 @@ function getTransporter () {
|
|
|
247
247
|
if (!currTransporter) {
|
|
248
248
|
currTransporter = new Promise((resolve, reject) => {
|
|
249
249
|
axios.get(`${apiURL}/emai/getSmtpOptions`).then(res => {
|
|
250
|
-
const smtpOptions =
|
|
250
|
+
const smtpOptions = {
|
|
251
|
+
...res.data,
|
|
252
|
+
tls: {
|
|
253
|
+
rejectUnauthorized: false
|
|
254
|
+
}
|
|
255
|
+
}
|
|
251
256
|
const transporter = nodemailer.createTransport(smtpTransport(smtpOptions))
|
|
252
257
|
resolve({ transporter, smtpOptions })
|
|
253
258
|
}).catch((e) => {
|
|
@@ -64519,7 +64519,17 @@ const _hoisted_25 = ["src"];
|
|
|
64519
64519
|
});
|
|
64520
64520
|
});
|
|
64521
64521
|
}
|
|
64522
|
+
if (config_0.upload?.getViewUrl) {
|
|
64523
|
+
(fileList.value || []).forEach(async (item, index) => {
|
|
64524
|
+
const viewUrl = await config_0.upload?.getViewUrl?.(item[urlField.value]);
|
|
64525
|
+
fileList.value[index].viewUrl = viewUrl;
|
|
64526
|
+
if (index === fileList.value.length - 1) {
|
|
64527
|
+
fileList.value = [...fileList.value]; // 触发视图更新
|
|
64528
|
+
}
|
|
64529
|
+
});
|
|
64530
|
+
}
|
|
64522
64531
|
};
|
|
64532
|
+
|
|
64523
64533
|
const updateModel = () => {
|
|
64524
64534
|
const urlList = fileList.value.map(item => item[urlField.value]);
|
|
64525
64535
|
const rest = props.simpleValue ? urlList : fileList.value;
|
|
@@ -64647,7 +64657,13 @@ const _hoisted_25 = ["src"];
|
|
|
64647
64657
|
return officeTypes.value.includes(node_modules_xe_utils_default().toValueString(item[typeField.value]).toLowerCase());
|
|
64648
64658
|
};
|
|
64649
64659
|
const hasPreviewType = item => {
|
|
64650
|
-
return hasImageType(item) || hasVideoType(item) || hasFrameType(item) || hasOfficeType(item);
|
|
64660
|
+
return hasImageType(item) || hasVideoType(item) || hasFrameType(item) || (showOfficePreview() ? hasOfficeType(item) : false);
|
|
64661
|
+
};
|
|
64662
|
+
const showOfficePreview = () => {
|
|
64663
|
+
if (config_0.upload?.showOfficePreview && !config_0.upload.showOfficePreview()) {
|
|
64664
|
+
return config_0.upload.showOfficePreview();
|
|
64665
|
+
}
|
|
64666
|
+
return true;
|
|
64651
64667
|
};
|
|
64652
64668
|
const resizeImgStatus = () => {
|
|
64653
64669
|
previewImgStatus.scale = 1;
|
|
@@ -64991,7 +65007,7 @@ const _hoisted_25 = ["src"];
|
|
|
64991
65007
|
key: 2,
|
|
64992
65008
|
class: "frame-warpper",
|
|
64993
65009
|
src: previewFileUrl.value
|
|
64994
|
-
}, null, 8, _hoisted_25)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)
|
|
65010
|
+
}, null, 8, _hoisted_25)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 32)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
64995
65011
|
_: 1
|
|
64996
65012
|
}, 8, ["modelValue"])], 2);
|
|
64997
65013
|
};
|
|
@@ -69665,7 +69681,7 @@ function index_config(options) {
|
|
|
69665
69681
|
return config_0;
|
|
69666
69682
|
}
|
|
69667
69683
|
const MaliUI = {
|
|
69668
|
-
version: "1.1.
|
|
69684
|
+
version: "1.1.77",
|
|
69669
69685
|
install: index_install,
|
|
69670
69686
|
config: index_config,
|
|
69671
69687
|
renderer: {
|
package/lib/mali-ui-plus.umd.js
CHANGED
|
@@ -64529,7 +64529,17 @@ const _hoisted_25 = ["src"];
|
|
|
64529
64529
|
});
|
|
64530
64530
|
});
|
|
64531
64531
|
}
|
|
64532
|
+
if (config_0.upload?.getViewUrl) {
|
|
64533
|
+
(fileList.value || []).forEach(async (item, index) => {
|
|
64534
|
+
const viewUrl = await config_0.upload?.getViewUrl?.(item[urlField.value]);
|
|
64535
|
+
fileList.value[index].viewUrl = viewUrl;
|
|
64536
|
+
if (index === fileList.value.length - 1) {
|
|
64537
|
+
fileList.value = [...fileList.value]; // 触发视图更新
|
|
64538
|
+
}
|
|
64539
|
+
});
|
|
64540
|
+
}
|
|
64532
64541
|
};
|
|
64542
|
+
|
|
64533
64543
|
const updateModel = () => {
|
|
64534
64544
|
const urlList = fileList.value.map(item => item[urlField.value]);
|
|
64535
64545
|
const rest = props.simpleValue ? urlList : fileList.value;
|
|
@@ -64657,7 +64667,13 @@ const _hoisted_25 = ["src"];
|
|
|
64657
64667
|
return officeTypes.value.includes(node_modules_xe_utils_default().toValueString(item[typeField.value]).toLowerCase());
|
|
64658
64668
|
};
|
|
64659
64669
|
const hasPreviewType = item => {
|
|
64660
|
-
return hasImageType(item) || hasVideoType(item) || hasFrameType(item) || hasOfficeType(item);
|
|
64670
|
+
return hasImageType(item) || hasVideoType(item) || hasFrameType(item) || (showOfficePreview() ? hasOfficeType(item) : false);
|
|
64671
|
+
};
|
|
64672
|
+
const showOfficePreview = () => {
|
|
64673
|
+
if (config_0.upload?.showOfficePreview && !config_0.upload.showOfficePreview()) {
|
|
64674
|
+
return config_0.upload.showOfficePreview();
|
|
64675
|
+
}
|
|
64676
|
+
return true;
|
|
64661
64677
|
};
|
|
64662
64678
|
const resizeImgStatus = () => {
|
|
64663
64679
|
previewImgStatus.scale = 1;
|
|
@@ -65001,7 +65017,7 @@ const _hoisted_25 = ["src"];
|
|
|
65001
65017
|
key: 2,
|
|
65002
65018
|
class: "frame-warpper",
|
|
65003
65019
|
src: previewFileUrl.value
|
|
65004
|
-
}, null, 8, _hoisted_25)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)
|
|
65020
|
+
}, null, 8, _hoisted_25)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 32)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
65005
65021
|
_: 1
|
|
65006
65022
|
}, 8, ["modelValue"])], 2);
|
|
65007
65023
|
};
|
|
@@ -69675,7 +69691,7 @@ function index_config(options) {
|
|
|
69675
69691
|
return config_0;
|
|
69676
69692
|
}
|
|
69677
69693
|
const MaliUI = {
|
|
69678
|
-
version: "1.1.
|
|
69694
|
+
version: "1.1.77",
|
|
69679
69695
|
install: index_install,
|
|
69680
69696
|
config: index_config,
|
|
69681
69697
|
renderer: {
|