vxe-pc-ui 4.9.35 → 4.9.37
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/icon/style.css +1 -1
- package/es/select/src/select.js +18 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +27 -12
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.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 +66 -19
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +25 -1
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +39 -16
- package/lib/table-select/src/table-select.min.js +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/package.json +1 -1
- package/packages/select/src/select.ts +19 -1
- package/packages/table-select/src/table-select.ts +27 -12
- package/types/components/table-select.d.ts +7 -7
- package/types/components/table.d.ts +4 -0
- /package/es/icon/{iconfont.1758609420077.ttf → iconfont.1758878505769.ttf} +0 -0
- /package/es/icon/{iconfont.1758609420077.woff → iconfont.1758878505769.woff} +0 -0
- /package/es/icon/{iconfont.1758609420077.woff2 → iconfont.1758878505769.woff2} +0 -0
- /package/es/{iconfont.1758609420077.ttf → iconfont.1758878505769.ttf} +0 -0
- /package/es/{iconfont.1758609420077.woff → iconfont.1758878505769.woff} +0 -0
- /package/es/{iconfont.1758609420077.woff2 → iconfont.1758878505769.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1758609420077.ttf → iconfont.1758878505769.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1758609420077.woff → iconfont.1758878505769.woff} +0 -0
- /package/lib/icon/style/{iconfont.1758609420077.woff2 → iconfont.1758878505769.woff2} +0 -0
- /package/lib/{iconfont.1758609420077.ttf → iconfont.1758878505769.ttf} +0 -0
- /package/lib/{iconfont.1758609420077.woff → iconfont.1758878505769.woff} +0 -0
- /package/lib/{iconfont.1758609420077.woff2 → iconfont.1758878505769.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3588,14 +3588,14 @@ function checkDynamic() {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3590
3590
|
|
|
3591
|
-
const log_version = `ui v${"4.9.
|
|
3591
|
+
const log_version = `ui v${"4.9.37"}`;
|
|
3592
3592
|
const warnLog = log.create('warn', log_version);
|
|
3593
3593
|
const errLog = log.create('error', log_version);
|
|
3594
3594
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3595
3595
|
|
|
3596
3596
|
|
|
3597
3597
|
|
|
3598
|
-
const ui_version = "4.9.
|
|
3598
|
+
const ui_version = "4.9.37";
|
|
3599
3599
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3600
3600
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3601
3601
|
function config(options) {
|
|
@@ -29905,6 +29905,27 @@ function select_createInternalData() {
|
|
|
29905
29905
|
handleStyle();
|
|
29906
29906
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(handleStyle);
|
|
29907
29907
|
};
|
|
29908
|
+
const handleScrollSelect = () => {
|
|
29909
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
29910
|
+
const {
|
|
29911
|
+
modelValue
|
|
29912
|
+
} = props;
|
|
29913
|
+
const {
|
|
29914
|
+
isAniVisible,
|
|
29915
|
+
visiblePanel
|
|
29916
|
+
} = reactData;
|
|
29917
|
+
const {
|
|
29918
|
+
optFullValMaps
|
|
29919
|
+
} = internalData;
|
|
29920
|
+
const selectVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue[0] : modelValue;
|
|
29921
|
+
if (selectVal && isAniVisible && visiblePanel) {
|
|
29922
|
+
const cacheItem = reactData.reactFlag ? optFullValMaps[`${selectVal}`] : null;
|
|
29923
|
+
if (cacheItem) {
|
|
29924
|
+
handleScrollToOption(cacheItem.item);
|
|
29925
|
+
}
|
|
29926
|
+
}
|
|
29927
|
+
});
|
|
29928
|
+
};
|
|
29908
29929
|
const showOptionPanel = () => {
|
|
29909
29930
|
const {
|
|
29910
29931
|
loading,
|
|
@@ -29938,7 +29959,10 @@ function select_createInternalData() {
|
|
|
29938
29959
|
setTimeout(() => {
|
|
29939
29960
|
reactData.visiblePanel = true;
|
|
29940
29961
|
handleFocusSearch();
|
|
29941
|
-
recalculate().then(() =>
|
|
29962
|
+
recalculate().then(() => {
|
|
29963
|
+
handleScrollSelect();
|
|
29964
|
+
refreshScroll();
|
|
29965
|
+
});
|
|
29942
29966
|
}, 10);
|
|
29943
29967
|
setTimeout(() => {
|
|
29944
29968
|
recalculate().then(() => refreshScroll());
|
|
@@ -35970,6 +35994,13 @@ const TabPane = VxeTabPane;
|
|
|
35970
35994
|
function getRowUniqueId() {
|
|
35971
35995
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('row_');
|
|
35972
35996
|
}
|
|
35997
|
+
function table_select_createInternalData() {
|
|
35998
|
+
return {
|
|
35999
|
+
// hpTimeout: undefined,
|
|
36000
|
+
// vpTimeout: undefined,
|
|
36001
|
+
fullRowMaps: {}
|
|
36002
|
+
};
|
|
36003
|
+
}
|
|
35973
36004
|
/* harmony default export */ var table_select = (defineVxeComponent({
|
|
35974
36005
|
name: 'VxeTableSelect',
|
|
35975
36006
|
props: {
|
|
@@ -36033,7 +36064,6 @@ function getRowUniqueId() {
|
|
|
36033
36064
|
initialized: false,
|
|
36034
36065
|
tableColumns: [],
|
|
36035
36066
|
fullOptionList: [],
|
|
36036
|
-
fullRowMaps: {},
|
|
36037
36067
|
panelIndex: 0,
|
|
36038
36068
|
panelStyle: {},
|
|
36039
36069
|
panelPlacement: null,
|
|
@@ -36042,10 +36072,7 @@ function getRowUniqueId() {
|
|
|
36042
36072
|
isAniVisible: false,
|
|
36043
36073
|
isActivated: false
|
|
36044
36074
|
});
|
|
36045
|
-
const internalData =
|
|
36046
|
-
// hpTimeout: undefined,
|
|
36047
|
-
// vpTimeout: undefined
|
|
36048
|
-
};
|
|
36075
|
+
const internalData = table_select_createInternalData();
|
|
36049
36076
|
const refMaps = {
|
|
36050
36077
|
refElem
|
|
36051
36078
|
};
|
|
@@ -36120,6 +36147,7 @@ function getRowUniqueId() {
|
|
|
36120
36147
|
const computeSelectGridOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36121
36148
|
const gridOpts = computeGridOpts.value;
|
|
36122
36149
|
const {
|
|
36150
|
+
pagerConfig,
|
|
36123
36151
|
proxyConfig
|
|
36124
36152
|
} = gridOpts;
|
|
36125
36153
|
if (proxyConfig) {
|
|
@@ -36132,13 +36160,24 @@ function getRowUniqueId() {
|
|
|
36132
36160
|
Object.assign(newProxyConfig.ajax, {
|
|
36133
36161
|
query(params, ...args) {
|
|
36134
36162
|
return Promise.resolve(ajaxMethods(params, ...args)).then(rest => {
|
|
36135
|
-
|
|
36136
|
-
|
|
36137
|
-
|
|
36138
|
-
|
|
36139
|
-
|
|
36140
|
-
|
|
36141
|
-
|
|
36163
|
+
let tableData = [];
|
|
36164
|
+
if (pagerConfig) {
|
|
36165
|
+
const resultProp = resConfigs.result;
|
|
36166
|
+
tableData = (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(resultProp) ? resultProp({
|
|
36167
|
+
data: rest,
|
|
36168
|
+
$table: null,
|
|
36169
|
+
$grid: null,
|
|
36170
|
+
$gantt: null
|
|
36171
|
+
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, resultProp || 'result')) || [];
|
|
36172
|
+
} else {
|
|
36173
|
+
const listProp = resConfigs.list;
|
|
36174
|
+
tableData = (listProp ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(listProp) ? listProp({
|
|
36175
|
+
data: rest,
|
|
36176
|
+
$table: null,
|
|
36177
|
+
$grid: null,
|
|
36178
|
+
$gantt: null
|
|
36179
|
+
}) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, listProp) : rest) || [];
|
|
36180
|
+
}
|
|
36142
36181
|
cacheDataMap(tableData || []);
|
|
36143
36182
|
return rest;
|
|
36144
36183
|
});
|
|
@@ -36158,10 +36197,16 @@ function getRowUniqueId() {
|
|
|
36158
36197
|
lazyOptions
|
|
36159
36198
|
} = props;
|
|
36160
36199
|
const {
|
|
36161
|
-
|
|
36200
|
+
fullOptionList
|
|
36162
36201
|
} = reactData;
|
|
36202
|
+
const {
|
|
36203
|
+
fullRowMaps
|
|
36204
|
+
} = internalData;
|
|
36163
36205
|
const valueField = computeValueField.value;
|
|
36164
36206
|
const labelField = computeLabelField.value;
|
|
36207
|
+
if (!fullOptionList) {
|
|
36208
|
+
return '';
|
|
36209
|
+
}
|
|
36165
36210
|
return (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue]).map(val => {
|
|
36166
36211
|
const cacheItem = fullRowMaps[val];
|
|
36167
36212
|
if (cacheItem) {
|
|
@@ -36227,7 +36272,7 @@ function getRowUniqueId() {
|
|
|
36227
36272
|
const getRowsByValue = modelValue => {
|
|
36228
36273
|
const {
|
|
36229
36274
|
fullRowMaps
|
|
36230
|
-
} =
|
|
36275
|
+
} = internalData;
|
|
36231
36276
|
const rows = [];
|
|
36232
36277
|
const vals = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(modelValue) ? [] : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue];
|
|
36233
36278
|
vals.forEach(val => {
|
|
@@ -36299,7 +36344,8 @@ function getRowUniqueId() {
|
|
|
36299
36344
|
const valueField = computeValueField.value;
|
|
36300
36345
|
const gridOpts = computeGridOpts.value;
|
|
36301
36346
|
const {
|
|
36302
|
-
treeConfig
|
|
36347
|
+
treeConfig,
|
|
36348
|
+
pagerConfig
|
|
36303
36349
|
} = gridOpts;
|
|
36304
36350
|
const rowMaps = {};
|
|
36305
36351
|
const keyMaps = {};
|
|
@@ -36329,7 +36375,7 @@ function getRowUniqueId() {
|
|
|
36329
36375
|
});
|
|
36330
36376
|
}
|
|
36331
36377
|
reactData.fullOptionList = dataList || options || [];
|
|
36332
|
-
|
|
36378
|
+
internalData.fullRowMaps = pagerConfig ? Object.assign({}, internalData.fullRowMaps, rowMaps) : rowMaps;
|
|
36333
36379
|
updateModel(props.modelValue);
|
|
36334
36380
|
};
|
|
36335
36381
|
const updateZindex = () => {
|
|
@@ -36690,6 +36736,7 @@ function getRowUniqueId() {
|
|
|
36690
36736
|
globalEvents.off($xeTableSelect, 'mousedown');
|
|
36691
36737
|
globalEvents.off($xeTableSelect, 'blur');
|
|
36692
36738
|
globalEvents.off($xeTableSelect, 'resize');
|
|
36739
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, table_select_createInternalData());
|
|
36693
36740
|
});
|
|
36694
36741
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
36695
36742
|
if (!VxeTableGridComponent) {
|