vxe-pc-ui 3.12.35 → 3.13.0
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/es/context-menu/style.css +1 -1
- package/es/context-menu/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +6 -5
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +16 -15
- package/es/vxe-context-menu/style.css +1 -1
- package/es/vxe-context-menu/style.min.css +1 -1
- package/lib/context-menu/style/style.css +1 -1
- package/lib/context-menu/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +23 -15
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +6 -5
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +16 -9
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/vxe-context-menu/style/style.css +1 -1
- package/lib/vxe-context-menu/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/ui/index.ts +5 -4
- package/packages/upload/src/upload.ts +15 -4
- package/styles/components/context-menu.scss +1 -1
- package/styles/theme/dark.scss +2 -2
- package/styles/variable.scss +1 -1
- package/types/components/gantt.d.ts +11 -0
- package/types/components/table.d.ts +58 -0
- package/types/components/upload.d.ts +3 -0
- /package/es/icon/{iconfont.1770438633166.ttf → iconfont.1772181724544.ttf} +0 -0
- /package/es/icon/{iconfont.1770438633166.woff → iconfont.1772181724544.woff} +0 -0
- /package/es/icon/{iconfont.1770438633166.woff2 → iconfont.1772181724544.woff2} +0 -0
- /package/es/{iconfont.1770438633166.ttf → iconfont.1772181724544.ttf} +0 -0
- /package/es/{iconfont.1770438633166.woff → iconfont.1772181724544.woff} +0 -0
- /package/es/{iconfont.1770438633166.woff2 → iconfont.1772181724544.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1770438633166.ttf → iconfont.1772181724544.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1770438633166.woff → iconfont.1772181724544.woff} +0 -0
- /package/lib/icon/style/{iconfont.1770438633166.woff2 → iconfont.1772181724544.woff2} +0 -0
- /package/lib/{iconfont.1770438633166.ttf → iconfont.1772181724544.ttf} +0 -0
- /package/lib/{iconfont.1770438633166.woff → iconfont.1772181724544.woff} +0 -0
- /package/lib/{iconfont.1770438633166.woff2 → iconfont.1772181724544.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -12383,14 +12383,14 @@ function checkDynamic() {
|
|
|
12383
12383
|
}
|
|
12384
12384
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
12385
12385
|
|
|
12386
|
-
var log_version = "ui v".concat("3.
|
|
12386
|
+
var log_version = "ui v".concat("3.13.0");
|
|
12387
12387
|
var warnLog = log.create('warn', log_version);
|
|
12388
12388
|
var errLog = log.create('error', log_version);
|
|
12389
12389
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
12390
12390
|
|
|
12391
12391
|
|
|
12392
12392
|
|
|
12393
|
-
var ui_version = "3.
|
|
12393
|
+
var ui_version = "3.13.0";
|
|
12394
12394
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
12395
12395
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
12396
12396
|
function config(options) {
|
|
@@ -12561,15 +12561,15 @@ setConfig({
|
|
|
12561
12561
|
image: {
|
|
12562
12562
|
draggable: null,
|
|
12563
12563
|
showPreview: true,
|
|
12564
|
-
showPrintButton: true
|
|
12565
|
-
maskClosable: true
|
|
12564
|
+
showPrintButton: true
|
|
12566
12565
|
},
|
|
12567
12566
|
imageGroup: {
|
|
12568
12567
|
showPreview: true,
|
|
12569
12568
|
showPrintButton: true
|
|
12570
12569
|
},
|
|
12571
12570
|
imagePreview: {
|
|
12572
|
-
showPrintButton: true
|
|
12571
|
+
showPrintButton: true,
|
|
12572
|
+
maskClosable: true
|
|
12573
12573
|
},
|
|
12574
12574
|
input: {
|
|
12575
12575
|
// size: null,
|
|
@@ -12822,7 +12822,8 @@ setConfig({
|
|
|
12822
12822
|
showLimitCount: true,
|
|
12823
12823
|
autoSubmit: true,
|
|
12824
12824
|
// urlArgs: false,
|
|
12825
|
-
maxSimultaneousUploads: 5
|
|
12825
|
+
maxSimultaneousUploads: 5,
|
|
12826
|
+
previewImageConfig: {}
|
|
12826
12827
|
},
|
|
12827
12828
|
watermark: {
|
|
12828
12829
|
rotate: -30,
|
|
@@ -59516,6 +59517,7 @@ function upload_createInternalData() {
|
|
|
59516
59517
|
return getConfig().upload.progressText;
|
|
59517
59518
|
}
|
|
59518
59519
|
},
|
|
59520
|
+
previewImageConfig: Object,
|
|
59519
59521
|
showSubmitButton: Boolean,
|
|
59520
59522
|
autoHiddenButton: {
|
|
59521
59523
|
type: Boolean,
|
|
@@ -59690,6 +59692,14 @@ function upload_createInternalData() {
|
|
|
59690
59692
|
var props = $xeUpload;
|
|
59691
59693
|
return props.multiple ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.limitCount) : 1;
|
|
59692
59694
|
},
|
|
59695
|
+
computePreviewImageOpts: function computePreviewImageOpts() {
|
|
59696
|
+
var $xeUpload = this;
|
|
59697
|
+
var props = $xeUpload;
|
|
59698
|
+
var showDownloadButton = props.showDownloadButton;
|
|
59699
|
+
return Object.assign({
|
|
59700
|
+
showDownloadButton: showDownloadButton
|
|
59701
|
+
}, getConfig().upload.previewImageConfig, props.previewImageConfig);
|
|
59702
|
+
},
|
|
59693
59703
|
computeOverCount: function computeOverCount() {
|
|
59694
59704
|
var $xeUpload = this;
|
|
59695
59705
|
var props = $xeUpload;
|
|
@@ -59990,9 +60000,9 @@ function upload_createInternalData() {
|
|
|
59990
60000
|
var $xeUpload = this;
|
|
59991
60001
|
var props = $xeUpload;
|
|
59992
60002
|
var internalData = $xeUpload.internalData;
|
|
59993
|
-
var imageTypes = props.imageTypes
|
|
59994
|
-
showDownloadButton = props.showDownloadButton;
|
|
60003
|
+
var imageTypes = props.imageTypes;
|
|
59995
60004
|
var typeProp = $xeUpload.computeTypeProp;
|
|
60005
|
+
var previewImageOpts = $xeUpload.computePreviewImageOpts;
|
|
59996
60006
|
var beforeDownloadFn = props.beforeDownloadMethod || getConfig().upload.beforeDownloadMethod;
|
|
59997
60007
|
var imagePreviewTypes = internalData.imagePreviewTypes;
|
|
59998
60008
|
// 如果是预览图片
|
|
@@ -60000,16 +60010,15 @@ function upload_createInternalData() {
|
|
|
60000
60010
|
return "".concat(type).toLowerCase() === "".concat(item[typeProp]).toLowerCase();
|
|
60001
60011
|
})) {
|
|
60002
60012
|
if (index_esm_VxeUI.previewImage) {
|
|
60003
|
-
index_esm_VxeUI.previewImage({
|
|
60013
|
+
index_esm_VxeUI.previewImage(_objectSpread2(_objectSpread2({}, previewImageOpts), {}, {
|
|
60004
60014
|
urlList: [$xeUpload.getFileUrl(item)],
|
|
60005
|
-
showDownloadButton: showDownloadButton,
|
|
60006
60015
|
beforeDownloadMethod: beforeDownloadFn ? function () {
|
|
60007
60016
|
return beforeDownloadFn({
|
|
60008
60017
|
$upload: $xeUpload,
|
|
60009
60018
|
option: item
|
|
60010
60019
|
});
|
|
60011
60020
|
} : undefined
|
|
60012
|
-
});
|
|
60021
|
+
}));
|
|
60013
60022
|
}
|
|
60014
60023
|
}
|
|
60015
60024
|
},
|
|
@@ -60032,8 +60041,8 @@ function upload_createInternalData() {
|
|
|
60032
60041
|
var $xeUpload = this;
|
|
60033
60042
|
var props = $xeUpload;
|
|
60034
60043
|
var reactData = $xeUpload.reactData;
|
|
60035
|
-
var showDownloadButton = props.showDownloadButton;
|
|
60036
60044
|
var fileList = reactData.fileList;
|
|
60045
|
+
var previewImageOpts = $xeUpload.computePreviewImageOpts;
|
|
60037
60046
|
var previewFn = props.previewMethod || getConfig().upload.previewMethod;
|
|
60038
60047
|
var beforeDownloadFn = props.beforeDownloadMethod || getConfig().upload.beforeDownloadMethod;
|
|
60039
60048
|
if (props.showPreview) {
|
|
@@ -60043,12 +60052,11 @@ function upload_createInternalData() {
|
|
|
60043
60052
|
option: item
|
|
60044
60053
|
});
|
|
60045
60054
|
} else if (index_esm_VxeUI.previewImage) {
|
|
60046
|
-
index_esm_VxeUI.previewImage({
|
|
60055
|
+
index_esm_VxeUI.previewImage(_objectSpread2(_objectSpread2({}, previewImageOpts), {}, {
|
|
60047
60056
|
urlList: fileList.map(function (item) {
|
|
60048
60057
|
return $xeUpload.getFileUrl(item);
|
|
60049
60058
|
}),
|
|
60050
60059
|
activeIndex: index,
|
|
60051
|
-
showDownloadButton: showDownloadButton,
|
|
60052
60060
|
beforeDownloadMethod: beforeDownloadFn ? function (_ref2) {
|
|
60053
60061
|
var index = _ref2.index;
|
|
60054
60062
|
return beforeDownloadFn({
|
|
@@ -60056,7 +60064,7 @@ function upload_createInternalData() {
|
|
|
60056
60064
|
option: fileList[index]
|
|
60057
60065
|
});
|
|
60058
60066
|
} : undefined
|
|
60059
|
-
});
|
|
60067
|
+
}));
|
|
60060
60068
|
}
|
|
60061
60069
|
}
|
|
60062
60070
|
},
|