vxe-pc-ui 4.18.9 → 4.18.11
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/dist/all.esm.js +41 -23
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/date-panel/style.css +0 -5
- package/es/date-panel/style.min.css +1 -1
- package/es/form/src/form.js +37 -21
- package/es/icon/iconfont.1789134960414.ttf +0 -0
- package/es/icon/iconfont.1789134960414.woff +0 -0
- package/es/icon/iconfont.1789134960414.woff2 +0 -0
- package/es/icon/style.css +21 -21
- package/es/icon/style.min.css +1 -1
- package/es/iconfont.1789134960414.ttf +0 -0
- package/es/iconfont.1789134960414.woff +0 -0
- package/es/iconfont.1789134960414.woff2 +0 -0
- package/es/menu/style.css +0 -3
- package/es/menu/style.min.css +1 -1
- package/es/pager/src/pager.js +2 -0
- 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/style.css +0 -1
- package/es/upload/style.min.css +1 -1
- package/es/vxe-date-panel/style.css +0 -5
- package/es/vxe-date-panel/style.min.css +1 -1
- package/es/vxe-icon/style.css +21 -21
- package/es/vxe-icon/style.min.css +1 -1
- package/es/vxe-menu/style.css +0 -3
- package/es/vxe-menu/style.min.css +1 -1
- package/es/vxe-upload/style.css +0 -1
- package/es/vxe-upload/style.min.css +1 -1
- package/lib/date-panel/style/style.css +0 -5
- package/lib/date-panel/style/style.min.css +1 -1
- package/lib/form/src/form.js +48 -26
- package/lib/form/src/form.min.js +1 -1
- package/lib/icon/style/iconfont.1789134960414.ttf +0 -0
- package/lib/icon/style/iconfont.1789134960414.woff +0 -0
- package/lib/icon/style/iconfont.1789134960414.woff2 +0 -0
- package/lib/icon/style/style.css +21 -21
- package/lib/icon/style/style.min.css +21 -21
- package/lib/iconfont.1789134960414.ttf +0 -0
- package/lib/iconfont.1789134960414.woff +0 -0
- package/lib/iconfont.1789134960414.woff2 +0 -0
- package/lib/index.umd.js +52 -28
- package/lib/index.umd.min.js +1 -1
- package/lib/menu/style/style.css +0 -3
- package/lib/menu/style/style.min.css +1 -1
- package/lib/pager/src/pager.js +2 -0
- package/lib/pager/src/pager.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/style/style.css +0 -1
- package/lib/upload/style/style.min.css +1 -1
- package/lib/vxe-date-panel/style/style.css +0 -5
- package/lib/vxe-date-panel/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +21 -21
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-menu/style/style.css +0 -3
- package/lib/vxe-menu/style/style.min.css +1 -1
- package/lib/vxe-upload/style/style.css +0 -1
- package/lib/vxe-upload/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/src/form.ts +41 -23
- package/packages/pager/src/pager.ts +2 -0
- package/styles/components/date-panel.scss +0 -3
- package/styles/components/icon.scss +23 -21
- package/styles/components/menu.scss +0 -3
- package/styles/components/upload.scss +0 -1
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/types/components/form.d.ts +12 -4
- package/types/components/grid.d.ts +18 -1
- package/es/icon/iconfont.1788956895944.ttf +0 -0
- package/es/icon/iconfont.1788956895944.woff +0 -0
- package/es/icon/iconfont.1788956895944.woff2 +0 -0
- package/es/iconfont.1788956895944.ttf +0 -0
- package/es/iconfont.1788956895944.woff +0 -0
- package/es/iconfont.1788956895944.woff2 +0 -0
- package/lib/icon/style/iconfont.1788956895944.ttf +0 -0
- package/lib/icon/style/iconfont.1788956895944.woff +0 -0
- package/lib/icon/style/iconfont.1788956895944.woff2 +0 -0
- package/lib/iconfont.1788956895944.ttf +0 -0
- package/lib/iconfont.1788956895944.woff +0 -0
- package/lib/iconfont.1788956895944.woff2 +0 -0
|
Binary file
|
|
Binary file
|
package/lib/index.umd.js
CHANGED
|
@@ -4685,7 +4685,7 @@ function checkDynamic() {
|
|
|
4685
4685
|
const {
|
|
4686
4686
|
log: log_log
|
|
4687
4687
|
} = VxeUI;
|
|
4688
|
-
const uiVersion = `ui v${"4.18.
|
|
4688
|
+
const uiVersion = `ui v${"4.18.11"}`;
|
|
4689
4689
|
function createComponentLog(name) {
|
|
4690
4690
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4691
4691
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4703,7 +4703,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4703
4703
|
|
|
4704
4704
|
|
|
4705
4705
|
|
|
4706
|
-
const ui_version = "4.18.
|
|
4706
|
+
const ui_version = "4.18.11";
|
|
4707
4707
|
VxeUI.uiVersion = ui_version;
|
|
4708
4708
|
VxeUI.dynamicApp = dynamicApp;
|
|
4709
4709
|
function config(options) {
|
|
@@ -33393,6 +33393,7 @@ function form_createInternalData() {
|
|
|
33393
33393
|
visible: false
|
|
33394
33394
|
},
|
|
33395
33395
|
itemFormatCache: {},
|
|
33396
|
+
fullItemList: [],
|
|
33396
33397
|
fullItemIdData: {},
|
|
33397
33398
|
fullItemFieldData: {}
|
|
33398
33399
|
};
|
|
@@ -33495,7 +33496,6 @@ function form_createInternalData() {
|
|
|
33495
33496
|
const internalData = form_createInternalData();
|
|
33496
33497
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
33497
33498
|
const refTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
33498
|
-
let formMethods = {};
|
|
33499
33499
|
const computeValidOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
33500
33500
|
return Object.assign({}, getConfig().form.validConfig, props.validConfig);
|
|
33501
33501
|
});
|
|
@@ -33553,6 +33553,12 @@ function form_createInternalData() {
|
|
|
33553
33553
|
getRefMaps: () => refMaps,
|
|
33554
33554
|
getComputeMaps: () => computeMaps
|
|
33555
33555
|
};
|
|
33556
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
33557
|
+
emit(type, createEvent(evnt, {
|
|
33558
|
+
$form: $xeForm,
|
|
33559
|
+
$grid: $xeGrid
|
|
33560
|
+
}, params));
|
|
33561
|
+
};
|
|
33556
33562
|
const callSlot = (slotFunc, params) => {
|
|
33557
33563
|
if (slotFunc) {
|
|
33558
33564
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(slotFunc)) {
|
|
@@ -33586,14 +33592,19 @@ function form_createInternalData() {
|
|
|
33586
33592
|
return recalculate();
|
|
33587
33593
|
});
|
|
33588
33594
|
};
|
|
33595
|
+
/**
|
|
33596
|
+
* 已废弃,被 getFormFlatItems 替换
|
|
33597
|
+
* @deprecated
|
|
33598
|
+
*/
|
|
33589
33599
|
const getItems = () => {
|
|
33590
|
-
|
|
33591
|
-
|
|
33592
|
-
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
|
|
33596
|
-
|
|
33600
|
+
// errLog('vxe.error.delFunc', ['getItems', 'getFlatItems'])
|
|
33601
|
+
return getFlatItems();
|
|
33602
|
+
};
|
|
33603
|
+
const getFlatItems = () => {
|
|
33604
|
+
return internalData.fullItemList;
|
|
33605
|
+
};
|
|
33606
|
+
const getNestedItems = () => {
|
|
33607
|
+
return reactData.formItems;
|
|
33597
33608
|
};
|
|
33598
33609
|
const getItemByField = field => {
|
|
33599
33610
|
const {
|
|
@@ -33614,12 +33625,12 @@ function form_createInternalData() {
|
|
|
33614
33625
|
const toggleCollapseEvent = evnt => {
|
|
33615
33626
|
const actionRest = toggleCollapse();
|
|
33616
33627
|
const status = getCollapseStatus();
|
|
33617
|
-
|
|
33628
|
+
dispatchEvent('toggle-collapse', {
|
|
33618
33629
|
status,
|
|
33619
33630
|
collapse: status,
|
|
33620
33631
|
data: props.data
|
|
33621
33632
|
}, evnt);
|
|
33622
|
-
|
|
33633
|
+
dispatchEvent('collapse', {
|
|
33623
33634
|
status,
|
|
33624
33635
|
collapse: status,
|
|
33625
33636
|
data: props.data
|
|
@@ -33636,6 +33647,9 @@ function form_createInternalData() {
|
|
|
33636
33647
|
});
|
|
33637
33648
|
};
|
|
33638
33649
|
const clearValidate = fieldOrItem => {
|
|
33650
|
+
const {
|
|
33651
|
+
fullItemList
|
|
33652
|
+
} = internalData;
|
|
33639
33653
|
if (fieldOrItem) {
|
|
33640
33654
|
let fields = fieldOrItem;
|
|
33641
33655
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(fieldOrItem)) {
|
|
@@ -33651,7 +33665,7 @@ function form_createInternalData() {
|
|
|
33651
33665
|
}
|
|
33652
33666
|
});
|
|
33653
33667
|
} else {
|
|
33654
|
-
|
|
33668
|
+
fullItemList.forEach(item => {
|
|
33655
33669
|
item.showError = false;
|
|
33656
33670
|
item.showIconMsg = false;
|
|
33657
33671
|
});
|
|
@@ -33687,6 +33701,7 @@ function form_createInternalData() {
|
|
|
33687
33701
|
} = reactData;
|
|
33688
33702
|
const itemIdData = {};
|
|
33689
33703
|
const itemFieldData = {};
|
|
33704
|
+
const itemList = [];
|
|
33690
33705
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(formItems, (item, index, items) => {
|
|
33691
33706
|
const {
|
|
33692
33707
|
id,
|
|
@@ -33703,9 +33718,11 @@ function form_createInternalData() {
|
|
|
33703
33718
|
if (field) {
|
|
33704
33719
|
itemFieldData[field] = itemRest;
|
|
33705
33720
|
}
|
|
33721
|
+
itemList.push(item);
|
|
33706
33722
|
}, {
|
|
33707
33723
|
children: 'children'
|
|
33708
33724
|
});
|
|
33725
|
+
internalData.fullItemList = itemList;
|
|
33709
33726
|
internalData.fullItemFieldData = itemFieldData;
|
|
33710
33727
|
internalData.fullItemIdData = itemIdData;
|
|
33711
33728
|
};
|
|
@@ -33713,9 +33730,11 @@ function form_createInternalData() {
|
|
|
33713
33730
|
const {
|
|
33714
33731
|
data
|
|
33715
33732
|
} = props;
|
|
33716
|
-
const
|
|
33733
|
+
const {
|
|
33734
|
+
fullItemList
|
|
33735
|
+
} = internalData;
|
|
33717
33736
|
if (data) {
|
|
33718
|
-
|
|
33737
|
+
fullItemList.forEach(item => {
|
|
33719
33738
|
const {
|
|
33720
33739
|
field,
|
|
33721
33740
|
itemRender
|
|
@@ -33761,7 +33780,7 @@ function form_createInternalData() {
|
|
|
33761
33780
|
const resetEvent = evnt => {
|
|
33762
33781
|
evnt.preventDefault();
|
|
33763
33782
|
reset();
|
|
33764
|
-
|
|
33783
|
+
dispatchEvent('reset', {
|
|
33765
33784
|
data: props.data
|
|
33766
33785
|
}, evnt);
|
|
33767
33786
|
};
|
|
@@ -33984,11 +34003,14 @@ function form_createInternalData() {
|
|
|
33984
34003
|
const {
|
|
33985
34004
|
readonly
|
|
33986
34005
|
} = props;
|
|
34006
|
+
const {
|
|
34007
|
+
fullItemList
|
|
34008
|
+
} = internalData;
|
|
33987
34009
|
clearValidate();
|
|
33988
34010
|
if (readonly) {
|
|
33989
34011
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
33990
34012
|
}
|
|
33991
|
-
return beginValidate(
|
|
34013
|
+
return beginValidate(fullItemList, '', callback).then(params => {
|
|
33992
34014
|
recalculate();
|
|
33993
34015
|
return params;
|
|
33994
34016
|
});
|
|
@@ -34018,22 +34040,25 @@ function form_createInternalData() {
|
|
|
34018
34040
|
const {
|
|
34019
34041
|
readonly
|
|
34020
34042
|
} = props;
|
|
34043
|
+
const {
|
|
34044
|
+
fullItemList
|
|
34045
|
+
} = internalData;
|
|
34021
34046
|
clearValidate();
|
|
34022
34047
|
if (readonly) {
|
|
34023
|
-
|
|
34048
|
+
dispatchEvent('submit', {
|
|
34024
34049
|
data: props.data
|
|
34025
34050
|
}, evnt);
|
|
34026
34051
|
recalculate();
|
|
34027
34052
|
return;
|
|
34028
34053
|
}
|
|
34029
|
-
beginValidate(
|
|
34054
|
+
beginValidate(fullItemList).then(errMap => {
|
|
34030
34055
|
if (errMap) {
|
|
34031
|
-
|
|
34056
|
+
dispatchEvent('submit-invalid', {
|
|
34032
34057
|
data: props.data,
|
|
34033
34058
|
errMap
|
|
34034
34059
|
}, evnt);
|
|
34035
34060
|
} else {
|
|
34036
|
-
|
|
34061
|
+
dispatchEvent('submit', {
|
|
34037
34062
|
data: props.data
|
|
34038
34063
|
}, evnt);
|
|
34039
34064
|
}
|
|
@@ -34161,13 +34186,8 @@ function form_createInternalData() {
|
|
|
34161
34186
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
34162
34187
|
};
|
|
34163
34188
|
};
|
|
34164
|
-
formMethods = {
|
|
34165
|
-
dispatchEvent
|
|
34166
|
-
emit(type, createEvent(evnt, {
|
|
34167
|
-
$form: $xeForm,
|
|
34168
|
-
$grid: $xeGrid
|
|
34169
|
-
}, params));
|
|
34170
|
-
},
|
|
34189
|
+
const formMethods = {
|
|
34190
|
+
dispatchEvent,
|
|
34171
34191
|
loadItems,
|
|
34172
34192
|
showItem: handleItemVisible(true),
|
|
34173
34193
|
hideItem: handleItemVisible(false),
|
|
@@ -34178,6 +34198,8 @@ function form_createInternalData() {
|
|
|
34178
34198
|
updateStatus,
|
|
34179
34199
|
toggleCollapse,
|
|
34180
34200
|
getItems,
|
|
34201
|
+
getFlatItems,
|
|
34202
|
+
getNestedItems,
|
|
34181
34203
|
getItemByField,
|
|
34182
34204
|
closeTooltip,
|
|
34183
34205
|
recalculate
|
|
@@ -42544,6 +42566,7 @@ const {
|
|
|
42544
42566
|
placement: pageSizePlacement,
|
|
42545
42567
|
transfer: transfer,
|
|
42546
42568
|
options: sizeList,
|
|
42569
|
+
clearable: false,
|
|
42547
42570
|
onChange: pageSizeEvent
|
|
42548
42571
|
});
|
|
42549
42572
|
};
|
|
@@ -42580,6 +42603,7 @@ const {
|
|
|
42580
42603
|
max: pageCount,
|
|
42581
42604
|
min: 1,
|
|
42582
42605
|
controls: false,
|
|
42606
|
+
clearable: false,
|
|
42583
42607
|
onKeydown: jumpKeydownEvent,
|
|
42584
42608
|
onBlur: triggerJumpEvent,
|
|
42585
42609
|
'onUpdate:modelValue'(val) {
|