vxe-pc-ui 4.12.13 → 4.12.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/es/form/src/form.js +7 -6
- 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 +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +41 -43
- package/lib/form/src/form.js +8 -6
- package/lib/form/src/form.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +30 -17
- 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 +1 -1
- 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 +20 -9
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/form/src/form.ts +7 -6
- package/packages/upload/src/upload.ts +44 -46
- package/types/components/form.d.ts +4 -0
- package/types/components/table.d.ts +4 -0
- package/types/components/upload.d.ts +4 -0
- /package/es/icon/{iconfont.1769487608775.ttf → iconfont.1769503226418.ttf} +0 -0
- /package/es/icon/{iconfont.1769487608775.woff → iconfont.1769503226418.woff} +0 -0
- /package/es/icon/{iconfont.1769487608775.woff2 → iconfont.1769503226418.woff2} +0 -0
- /package/es/{iconfont.1769487608775.ttf → iconfont.1769503226418.ttf} +0 -0
- /package/es/{iconfont.1769487608775.woff → iconfont.1769503226418.woff} +0 -0
- /package/es/{iconfont.1769487608775.woff2 → iconfont.1769503226418.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1769487608775.ttf → iconfont.1769503226418.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1769487608775.woff → iconfont.1769503226418.woff} +0 -0
- /package/lib/icon/style/{iconfont.1769487608775.woff2 → iconfont.1769503226418.woff2} +0 -0
- /package/lib/{iconfont.1769487608775.ttf → iconfont.1769503226418.ttf} +0 -0
- /package/lib/{iconfont.1769487608775.woff → iconfont.1769503226418.woff} +0 -0
- /package/lib/{iconfont.1769487608775.woff2 → iconfont.1769503226418.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3661,14 +3661,14 @@ function checkDynamic() {
|
|
|
3661
3661
|
}
|
|
3662
3662
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3663
3663
|
|
|
3664
|
-
const log_version = `ui v${"4.12.
|
|
3664
|
+
const log_version = `ui v${"4.12.15"}`;
|
|
3665
3665
|
const warnLog = log.create('warn', log_version);
|
|
3666
3666
|
const errLog = log.create('error', log_version);
|
|
3667
3667
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3668
3668
|
|
|
3669
3669
|
|
|
3670
3670
|
|
|
3671
|
-
const ui_version = "4.12.
|
|
3671
|
+
const ui_version = "4.12.15";
|
|
3672
3672
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3673
3673
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3674
3674
|
function config(options) {
|
|
@@ -25375,21 +25375,23 @@ function validRuleValue(rule, val, required) {
|
|
|
25375
25375
|
}
|
|
25376
25376
|
return true;
|
|
25377
25377
|
}
|
|
25378
|
-
function checkRuleStatus(rule, val) {
|
|
25378
|
+
function checkRuleStatus(rule, data, val) {
|
|
25379
25379
|
const {
|
|
25380
|
-
required
|
|
25380
|
+
required,
|
|
25381
|
+
to
|
|
25381
25382
|
} = rule;
|
|
25382
|
-
const
|
|
25383
|
+
const currVal = to ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(data, to) : val;
|
|
25384
|
+
const isEmptyVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(currVal) ? !currVal.length : eqEmptyValue(currVal);
|
|
25383
25385
|
if (required) {
|
|
25384
25386
|
if (isEmptyVal) {
|
|
25385
25387
|
return false;
|
|
25386
25388
|
}
|
|
25387
|
-
if (!validRuleValue(rule,
|
|
25389
|
+
if (!validRuleValue(rule, currVal, required)) {
|
|
25388
25390
|
return false;
|
|
25389
25391
|
}
|
|
25390
25392
|
} else {
|
|
25391
25393
|
if (!isEmptyVal) {
|
|
25392
|
-
if (!validRuleValue(rule,
|
|
25394
|
+
if (!validRuleValue(rule, currVal, required)) {
|
|
25393
25395
|
return false;
|
|
25394
25396
|
}
|
|
25395
25397
|
}
|
|
@@ -25868,7 +25870,7 @@ function form_createInternalData() {
|
|
|
25868
25870
|
}
|
|
25869
25871
|
}
|
|
25870
25872
|
} else {
|
|
25871
|
-
if (!checkRuleStatus(rule, itemValue)) {
|
|
25873
|
+
if (!checkRuleStatus(rule, data, itemValue)) {
|
|
25872
25874
|
errorRules.push(new Rule(rule));
|
|
25873
25875
|
}
|
|
25874
25876
|
}
|
|
@@ -47838,7 +47840,7 @@ function upload_createInternalData() {
|
|
|
47838
47840
|
$upload: $xeUpload
|
|
47839
47841
|
})) : `${defTipText}`) : renderEmptyElement($xeUpload)]);
|
|
47840
47842
|
};
|
|
47841
|
-
const
|
|
47843
|
+
const rendeFileMode = () => {
|
|
47842
47844
|
const {
|
|
47843
47845
|
showList,
|
|
47844
47846
|
moreConfig,
|
|
@@ -47852,7 +47854,8 @@ function upload_createInternalData() {
|
|
|
47852
47854
|
const {
|
|
47853
47855
|
maxCount,
|
|
47854
47856
|
showMoreButton,
|
|
47855
|
-
layout
|
|
47857
|
+
layout,
|
|
47858
|
+
moreButtonText
|
|
47856
47859
|
} = moreOpts;
|
|
47857
47860
|
const isHorizontal = layout === 'horizontal';
|
|
47858
47861
|
const moreBtnSlot = slots.moreButton || slots['more-button'];
|
|
@@ -47869,7 +47872,7 @@ function upload_createInternalData() {
|
|
|
47869
47872
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
47870
47873
|
key: 'all',
|
|
47871
47874
|
class: 'vxe-upload--file-wrapper'
|
|
47872
|
-
}, showList ? [showMoreButton && moreConfig && isHorizontal ? renderEmptyElement($xeUpload) : renderFileAction(true),
|
|
47875
|
+
}, showList ? [showMoreButton && moreConfig && isHorizontal ? renderEmptyElement($xeUpload) : renderFileAction(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
47873
47876
|
class: ['vxe-upload--file-list-wrapper', {
|
|
47874
47877
|
'is--horizontal': isHorizontal
|
|
47875
47878
|
}]
|
|
@@ -47887,10 +47890,13 @@ function upload_createInternalData() {
|
|
|
47887
47890
|
options: fileList
|
|
47888
47891
|
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_button, {
|
|
47889
47892
|
mode: 'text',
|
|
47890
|
-
content:
|
|
47893
|
+
content: moreButtonText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(moreButtonText) ? moreButtonText({
|
|
47894
|
+
$upload: $xeUpload,
|
|
47895
|
+
options: fileList
|
|
47896
|
+
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(moreButtonText, [fileList.length]) : getI18n(isMoreMax && isMiniMore ? 'vxe.upload.moreFileBtnText' : 'vxe.upload.moreBtnText', [fileList.length]),
|
|
47891
47897
|
status: 'primary',
|
|
47892
47898
|
onClick: handleMoreEvent
|
|
47893
|
-
})]) : renderEmptyElement($xeUpload), showMoreButton && moreConfig && isHorizontal ? renderFileAction(false) : renderEmptyElement($xeUpload)])
|
|
47899
|
+
})]) : renderEmptyElement($xeUpload), showMoreButton && moreConfig && isHorizontal ? renderFileAction(false) : renderEmptyElement($xeUpload)])] : [renderFileAction(false)]);
|
|
47894
47900
|
};
|
|
47895
47901
|
const renderImageItemList = (currList, isMoreView) => {
|
|
47896
47902
|
const {
|
|
@@ -48073,7 +48079,8 @@ function upload_createInternalData() {
|
|
|
48073
48079
|
const moreBtnSlot = slots.moreButton || slots['more-button'];
|
|
48074
48080
|
const {
|
|
48075
48081
|
maxCount,
|
|
48076
|
-
showMoreButton
|
|
48082
|
+
showMoreButton,
|
|
48083
|
+
moreButtonText
|
|
48077
48084
|
} = moreOpts;
|
|
48078
48085
|
let currList = fileList;
|
|
48079
48086
|
let overMaxNum = 0;
|
|
@@ -48100,7 +48107,10 @@ function upload_createInternalData() {
|
|
|
48100
48107
|
options: fileList
|
|
48101
48108
|
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_button, {
|
|
48102
48109
|
mode: 'text',
|
|
48103
|
-
content:
|
|
48110
|
+
content: moreButtonText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(moreButtonText) ? moreButtonText({
|
|
48111
|
+
$upload: $xeUpload,
|
|
48112
|
+
options: fileList
|
|
48113
|
+
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(moreButtonText, [fileList.length]) : getI18n(isMoreMax && isMiniMore ? 'vxe.upload.moreImgBtnText' : 'vxe.upload.moreBtnText', [fileList.length]),
|
|
48104
48114
|
status: 'primary',
|
|
48105
48115
|
onClick: handleMoreEvent
|
|
48106
48116
|
})]) : renderEmptyElement($xeUpload), renderImageAction(false)])
|
|
@@ -48112,7 +48122,10 @@ function upload_createInternalData() {
|
|
|
48112
48122
|
options: fileList
|
|
48113
48123
|
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_button, {
|
|
48114
48124
|
mode: 'text',
|
|
48115
|
-
content:
|
|
48125
|
+
content: moreButtonText ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(moreButtonText) ? moreButtonText({
|
|
48126
|
+
$upload: $xeUpload,
|
|
48127
|
+
options: fileList
|
|
48128
|
+
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(moreButtonText, [fileList.length]) : getI18n(isMoreMax && isMiniMore ? 'vxe.upload.moreImgBtnText' : 'vxe.upload.moreBtnText', [fileList.length]),
|
|
48116
48129
|
status: 'primary',
|
|
48117
48130
|
onClick: handleMoreEvent
|
|
48118
48131
|
})]) : renderEmptyElement($xeUpload), renderImageAction(false)]))] : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -48157,7 +48170,7 @@ function upload_createInternalData() {
|
|
|
48157
48170
|
'is--drag': isDragUploadStatus
|
|
48158
48171
|
}],
|
|
48159
48172
|
...ons
|
|
48160
|
-
}, [isImage ? renderImageMode() :
|
|
48173
|
+
}, [isImage ? renderImageMode() : rendeFileMode(), dragSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
48161
48174
|
ref: refDragLineElem,
|
|
48162
48175
|
class: 'vxe-upload--drag-line'
|
|
48163
48176
|
}) : renderEmptyElement($xeUpload), isDragUploadStatus && !showMorePopup ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|