vxe-pc-ui 4.11.26 → 4.11.28
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/date-range-picker/src/date-range-picker.js +2 -1
- package/es/form/render/index.js +7 -1
- package/es/form/src/form.js +23 -18
- package/es/form/src/render.js +4 -2
- package/es/form/style.css +5 -2
- package/es/form/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/radio/src/button.js +7 -5
- package/es/radio/src/group.js +3 -2
- package/es/radio/src/radio.js +3 -2
- 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/vxe-form/style.css +5 -2
- package/es/vxe-form/style.min.css +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +5 -1
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/form/render/index.js +10 -1
- package/lib/form/render/index.min.js +1 -1
- package/lib/form/src/form.js +28 -23
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +4 -1
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/style/style.css +5 -2
- package/lib/form/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 +80 -42
- package/lib/index.umd.min.js +1 -1
- package/lib/radio/src/button.js +15 -8
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/group.js +7 -2
- package/lib/radio/src/group.min.js +1 -1
- package/lib/radio/src/radio.js +7 -2
- package/lib/radio/src/radio.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/vxe-form/style/style.css +5 -2
- package/lib/vxe-form/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/date-range-picker/src/date-range-picker.ts +2 -1
- package/packages/form/render/index.ts +27 -21
- package/packages/form/src/form.ts +23 -17
- package/packages/form/src/render.ts +4 -2
- package/packages/radio/src/button.ts +9 -6
- package/packages/radio/src/group.ts +3 -2
- package/packages/radio/src/radio.ts +3 -2
- package/styles/components/form.scss +7 -2
- package/styles/theme/base.scss +2 -0
- package/types/components/date-range-picker.d.ts +3 -1
- package/types/components/form-item.d.ts +4 -0
- package/types/components/form.d.ts +23 -0
- package/types/components/radio-group.d.ts +2 -1
- package/types/components/table.d.ts +11 -2
- /package/es/icon/{iconfont.1767145265666.ttf → iconfont.1767178201934.ttf} +0 -0
- /package/es/icon/{iconfont.1767145265666.woff → iconfont.1767178201934.woff} +0 -0
- /package/es/icon/{iconfont.1767145265666.woff2 → iconfont.1767178201934.woff2} +0 -0
- /package/es/{iconfont.1767145265666.ttf → iconfont.1767178201934.ttf} +0 -0
- /package/es/{iconfont.1767145265666.woff → iconfont.1767178201934.woff} +0 -0
- /package/es/{iconfont.1767145265666.woff2 → iconfont.1767178201934.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1767145265666.ttf → iconfont.1767178201934.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1767145265666.woff → iconfont.1767178201934.woff} +0 -0
- /package/lib/icon/style/{iconfont.1767145265666.woff2 → iconfont.1767178201934.woff2} +0 -0
- /package/lib/{iconfont.1767145265666.ttf → iconfont.1767178201934.ttf} +0 -0
- /package/lib/{iconfont.1767145265666.woff → iconfont.1767178201934.woff} +0 -0
- /package/lib/{iconfont.1767145265666.woff2 → iconfont.1767178201934.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2360,7 +2360,7 @@ if (typeof window !== 'undefined') {
|
|
|
2360
2360
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2361
2361
|
var es_array_push = __webpack_require__(4114);
|
|
2362
2362
|
;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/core.js
|
|
2363
|
-
const coreVersion = "4.2.
|
|
2363
|
+
const coreVersion = "4.2.19";
|
|
2364
2364
|
const VxeCore = {
|
|
2365
2365
|
coreVersion,
|
|
2366
2366
|
uiVersion: '',
|
|
@@ -2960,7 +2960,7 @@ function createLog(type, name) {
|
|
|
2960
2960
|
return msg;
|
|
2961
2961
|
};
|
|
2962
2962
|
}
|
|
2963
|
-
const version = "4.2.
|
|
2963
|
+
const version = "4.2.19";
|
|
2964
2964
|
const log = {
|
|
2965
2965
|
create: createLog,
|
|
2966
2966
|
warn: createLog('warn', `v${version}`),
|
|
@@ -3599,14 +3599,14 @@ function checkDynamic() {
|
|
|
3599
3599
|
}
|
|
3600
3600
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3601
3601
|
|
|
3602
|
-
const log_version = `ui v${"4.11.
|
|
3602
|
+
const log_version = `ui v${"4.11.28"}`;
|
|
3603
3603
|
const warnLog = log.create('warn', log_version);
|
|
3604
3604
|
const errLog = log.create('error', log_version);
|
|
3605
3605
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3606
3606
|
|
|
3607
3607
|
|
|
3608
3608
|
|
|
3609
|
-
const ui_version = "4.11.
|
|
3609
|
+
const ui_version = "4.11.28";
|
|
3610
3610
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3611
3611
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3612
3612
|
function config(options) {
|
|
@@ -20017,12 +20017,16 @@ const DatePicker = VxeDatePicker;
|
|
|
20017
20017
|
reactData.startValue = sValue;
|
|
20018
20018
|
reactData.endValue = eValue;
|
|
20019
20019
|
const value = getRangeValue(sValue, eValue);
|
|
20020
|
+
const isFinish = sValue && eValue || !sValue && !eValue;
|
|
20020
20021
|
emit('update:modelValue', value);
|
|
20021
20022
|
emit('update:startValue', sValue || '');
|
|
20022
20023
|
emit('update:endValue', eValue || '');
|
|
20023
20024
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue) !== value) {
|
|
20024
20025
|
dispatchEvent('change', {
|
|
20025
|
-
value
|
|
20026
|
+
value,
|
|
20027
|
+
startValue: sValue,
|
|
20028
|
+
endValue: eValue,
|
|
20029
|
+
isFinish
|
|
20026
20030
|
}, evnt);
|
|
20027
20031
|
// 自动更新校验状态
|
|
20028
20032
|
if ($xeForm && formItemInfo) {
|
|
@@ -21973,6 +21977,7 @@ function getItemClass($xeForm, item, isGroup) {
|
|
|
21973
21977
|
const {
|
|
21974
21978
|
showErrorMessage,
|
|
21975
21979
|
showMessage,
|
|
21980
|
+
showErrorBackground,
|
|
21976
21981
|
showErrorIcon
|
|
21977
21982
|
} = validOpts;
|
|
21978
21983
|
const compConf = isEnableConf(itemRender) ? renderer.get(itemRender.name) : null;
|
|
@@ -22004,7 +22009,8 @@ function getItemClass($xeForm, item, isGroup) {
|
|
|
22004
22009
|
isRequired = itemRules.some(rule => rule.required);
|
|
22005
22010
|
}
|
|
22006
22011
|
}
|
|
22007
|
-
|
|
22012
|
+
const showErrMsg = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showErrorMessage) ? showErrorMessage : showMessage;
|
|
22013
|
+
return [isGroup || hasGroup ? 'vxe-form--group' : '', 'vxe-form--item', item.id, span ? `vxe-form--item-col_${span} is--span` : '', `${showErrMsg ? 'show' : 'hide'}--err-msg`, className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemClassName) ? itemClassName(params) : itemClassName : '', {
|
|
22008
22014
|
[`size--${vSize}`]: vSize,
|
|
22009
22015
|
'is--colon': titleColon,
|
|
22010
22016
|
'is--tbg': titleBackground,
|
|
@@ -22018,6 +22024,7 @@ function getItemClass($xeForm, item, isGroup) {
|
|
|
22018
22024
|
'is--hidden': folding && collapseAll,
|
|
22019
22025
|
'is--active': isActiveItem($xeForm, item),
|
|
22020
22026
|
'err--icon': showErrorIcon,
|
|
22027
|
+
'err--bg': showErrorBackground,
|
|
22021
22028
|
'is--error': showError
|
|
22022
22029
|
}];
|
|
22023
22030
|
}
|
|
@@ -22556,6 +22563,9 @@ function getItemOns(renderOpts, params) {
|
|
|
22556
22563
|
change() {
|
|
22557
22564
|
// 处理 change 事件相关逻辑
|
|
22558
22565
|
$form.updateStatus(params);
|
|
22566
|
+
if (renderOpts.changeToSubmit) {
|
|
22567
|
+
$form.handleSubmitEvent(new Event('change'));
|
|
22568
|
+
}
|
|
22559
22569
|
}
|
|
22560
22570
|
});
|
|
22561
22571
|
}
|
|
@@ -22837,9 +22847,15 @@ renderer.mixin({
|
|
|
22837
22847
|
// 处理 model 值双向绑定
|
|
22838
22848
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(data, field, value);
|
|
22839
22849
|
},
|
|
22840
|
-
change(
|
|
22850
|
+
change({
|
|
22851
|
+
$event,
|
|
22852
|
+
isFinish
|
|
22853
|
+
}) {
|
|
22841
22854
|
// 处理 change 事件相关逻辑
|
|
22842
22855
|
$form.updateStatus(params);
|
|
22856
|
+
if (renderOpts.changeToSubmit && isFinish) {
|
|
22857
|
+
$form.handleSubmitEvent($event);
|
|
22858
|
+
}
|
|
22843
22859
|
}
|
|
22844
22860
|
}, seOs)
|
|
22845
22861
|
})];
|
|
@@ -23806,38 +23822,42 @@ function form_createInternalData() {
|
|
|
23806
23822
|
fields = [fieldOrItem];
|
|
23807
23823
|
}
|
|
23808
23824
|
}
|
|
23809
|
-
|
|
23825
|
+
const itemList = fields.map(field => handleFieldOrItem($xeForm, field));
|
|
23826
|
+
return beginValidate(itemList, '', callback).then(params => {
|
|
23810
23827
|
recalculate();
|
|
23811
23828
|
return params;
|
|
23812
23829
|
});
|
|
23813
23830
|
};
|
|
23814
|
-
const
|
|
23831
|
+
const handleSubmitEvent = evnt => {
|
|
23815
23832
|
const {
|
|
23816
23833
|
readonly
|
|
23817
23834
|
} = props;
|
|
23818
|
-
|
|
23819
|
-
if (
|
|
23820
|
-
|
|
23821
|
-
|
|
23822
|
-
|
|
23835
|
+
clearValidate();
|
|
23836
|
+
if (readonly) {
|
|
23837
|
+
$xeForm.dispatchEvent('submit', {
|
|
23838
|
+
data: props.data
|
|
23839
|
+
}, evnt);
|
|
23840
|
+
recalculate();
|
|
23841
|
+
return;
|
|
23842
|
+
}
|
|
23843
|
+
beginValidate(getItems()).then(errMap => {
|
|
23844
|
+
if (errMap) {
|
|
23845
|
+
$xeForm.dispatchEvent('submit-invalid', {
|
|
23846
|
+
data: props.data,
|
|
23847
|
+
errMap
|
|
23848
|
+
}, evnt);
|
|
23849
|
+
} else {
|
|
23850
|
+
$xeForm.dispatchEvent('submit', {
|
|
23823
23851
|
data: props.data
|
|
23824
23852
|
}, evnt);
|
|
23825
|
-
recalculate();
|
|
23826
|
-
return;
|
|
23827
23853
|
}
|
|
23828
|
-
|
|
23829
|
-
|
|
23830
|
-
|
|
23831
|
-
|
|
23832
|
-
|
|
23833
|
-
|
|
23834
|
-
|
|
23835
|
-
formMethods.dispatchEvent('submit', {
|
|
23836
|
-
data: props.data
|
|
23837
|
-
}, evnt);
|
|
23838
|
-
}
|
|
23839
|
-
recalculate();
|
|
23840
|
-
});
|
|
23854
|
+
recalculate();
|
|
23855
|
+
});
|
|
23856
|
+
};
|
|
23857
|
+
const submitEvent = evnt => {
|
|
23858
|
+
evnt.preventDefault();
|
|
23859
|
+
if (!props.preventSubmit) {
|
|
23860
|
+
handleSubmitEvent(evnt);
|
|
23841
23861
|
}
|
|
23842
23862
|
};
|
|
23843
23863
|
const closeTooltip = () => {
|
|
@@ -23972,7 +23992,8 @@ function form_createInternalData() {
|
|
|
23972
23992
|
item
|
|
23973
23993
|
} = params;
|
|
23974
23994
|
item.showIconMsg = !item.showIconMsg;
|
|
23975
|
-
}
|
|
23995
|
+
},
|
|
23996
|
+
handleSubmitEvent
|
|
23976
23997
|
};
|
|
23977
23998
|
Object.assign($xeForm, formMethods, formPrivateMethods);
|
|
23978
23999
|
const renderVN = () => {
|
|
@@ -33708,17 +33729,22 @@ const Pulldown = VxePulldown;
|
|
|
33708
33729
|
return $xeRadioGroup ? $xeRadioGroup.props.modelValue === radioValue : props.modelValue === radioValue;
|
|
33709
33730
|
});
|
|
33710
33731
|
const handleValue = (checkedValue, evnt) => {
|
|
33732
|
+
const {
|
|
33733
|
+
content
|
|
33734
|
+
} = props;
|
|
33711
33735
|
if ($xeRadioGroup) {
|
|
33712
33736
|
$xeRadioGroup.handleChecked({
|
|
33713
33737
|
label: checkedValue,
|
|
33714
|
-
checkedValue
|
|
33738
|
+
checkedValue,
|
|
33739
|
+
checkedLabel: content
|
|
33715
33740
|
}, evnt);
|
|
33716
33741
|
} else {
|
|
33717
33742
|
emit('update:modelValue', checkedValue);
|
|
33718
33743
|
dispatchEvent('change', {
|
|
33719
33744
|
value: checkedValue,
|
|
33720
33745
|
label: checkedValue,
|
|
33721
|
-
checkedValue
|
|
33746
|
+
checkedValue,
|
|
33747
|
+
checkedLabel: content
|
|
33722
33748
|
}, evnt);
|
|
33723
33749
|
// 自动更新校验状态
|
|
33724
33750
|
if ($xeForm && formItemInfo) {
|
|
@@ -33897,26 +33923,33 @@ const Radio = VxeRadio;
|
|
|
33897
33923
|
const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
|
|
33898
33924
|
return $xeRadioGroup ? $xeRadioGroup.props.modelValue === radioValue : props.modelValue === radioValue;
|
|
33899
33925
|
});
|
|
33926
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
33927
|
+
emit(type, createEvent(evnt, {
|
|
33928
|
+
$radioGroup: $xeRadioGroup
|
|
33929
|
+
}, params));
|
|
33930
|
+
};
|
|
33900
33931
|
const radioButtonMethods = {
|
|
33901
|
-
dispatchEvent
|
|
33902
|
-
emit(type, createEvent(evnt, {
|
|
33903
|
-
$radioButton: $xeRadioButton
|
|
33904
|
-
}, params));
|
|
33905
|
-
}
|
|
33932
|
+
dispatchEvent
|
|
33906
33933
|
};
|
|
33907
33934
|
const radioButtonPrivateMethods = {};
|
|
33908
33935
|
Object.assign($xeRadioButton, radioButtonMethods, radioButtonPrivateMethods);
|
|
33909
33936
|
const handleValue = (checkedValue, evnt) => {
|
|
33937
|
+
const {
|
|
33938
|
+
content
|
|
33939
|
+
} = props;
|
|
33910
33940
|
if ($xeRadioGroup) {
|
|
33911
33941
|
$xeRadioGroup.handleChecked({
|
|
33912
33942
|
label: checkedValue,
|
|
33913
|
-
checkedValue
|
|
33943
|
+
checkedValue,
|
|
33944
|
+
checkedLabel: content
|
|
33914
33945
|
}, evnt);
|
|
33915
33946
|
} else {
|
|
33916
33947
|
emit('update:modelValue', checkedValue);
|
|
33917
|
-
|
|
33948
|
+
dispatchEvent('change', {
|
|
33918
33949
|
value: checkedValue,
|
|
33919
|
-
label: checkedValue
|
|
33950
|
+
label: checkedValue,
|
|
33951
|
+
checkedValue,
|
|
33952
|
+
checkedLabel: content
|
|
33920
33953
|
}, evnt);
|
|
33921
33954
|
// 自动更新校验状态
|
|
33922
33955
|
if ($xeForm && formItemInfo) {
|
|
@@ -34102,12 +34135,17 @@ function group_createInternalData() {
|
|
|
34102
34135
|
};
|
|
34103
34136
|
const radioGroupPrivateMethods = {
|
|
34104
34137
|
handleChecked(params, evnt) {
|
|
34105
|
-
const
|
|
34138
|
+
const {
|
|
34139
|
+
checkedValue,
|
|
34140
|
+
checkedLabel
|
|
34141
|
+
} = params;
|
|
34142
|
+
const value = checkedValue;
|
|
34106
34143
|
emitModel(value);
|
|
34107
34144
|
dispatchEvent('change', {
|
|
34108
34145
|
value,
|
|
34109
34146
|
label: value,
|
|
34110
|
-
checkedValue
|
|
34147
|
+
checkedValue,
|
|
34148
|
+
checkedLabel
|
|
34111
34149
|
}, evnt);
|
|
34112
34150
|
// 自动更新校验状态
|
|
34113
34151
|
if ($xeForm && formItemInfo) {
|