vxe-pc-ui 4.4.10 → 4.4.12
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/list/src/list.js +2 -1
- package/es/number-input/src/number-input.js +31 -17
- package/es/pager/src/pager.js +32 -20
- package/es/select/src/select.js +24 -10
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +9 -6
- 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 +140 -48
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +2 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/number-input/src/number-input.js +33 -19
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/pager/src/pager.js +66 -13
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/select/src/select.js +29 -8
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +9 -6
- 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/list/src/list.ts +2 -1
- package/packages/number-input/src/number-input.ts +31 -17
- package/packages/pager/src/pager.ts +32 -20
- package/packages/select/src/select.ts +24 -10
- package/packages/ui/index.ts +8 -5
- package/types/components/list.d.ts +30 -0
- package/types/components/number-input.d.ts +3 -0
- package/types/components/pager.d.ts +23 -0
- package/types/components/select.d.ts +68 -3
- package/types/components/table.d.ts +8 -0
- /package/es/icon/{iconfont.1741767880820.ttf → iconfont.1741852097093.ttf} +0 -0
- /package/es/icon/{iconfont.1741767880820.woff → iconfont.1741852097093.woff} +0 -0
- /package/es/icon/{iconfont.1741767880820.woff2 → iconfont.1741852097093.woff2} +0 -0
- /package/es/{iconfont.1741767880820.ttf → iconfont.1741852097093.ttf} +0 -0
- /package/es/{iconfont.1741767880820.woff → iconfont.1741852097093.woff} +0 -0
- /package/es/{iconfont.1741767880820.woff2 → iconfont.1741852097093.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1741767880820.ttf → iconfont.1741852097093.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1741767880820.woff → iconfont.1741852097093.woff} +0 -0
- /package/lib/icon/style/{iconfont.1741767880820.woff2 → iconfont.1741852097093.woff2} +0 -0
- /package/lib/{iconfont.1741767880820.ttf → iconfont.1741852097093.ttf} +0 -0
- /package/lib/{iconfont.1741767880820.woff → iconfont.1741852097093.woff} +0 -0
- /package/lib/{iconfont.1741767880820.woff2 → iconfont.1741852097093.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4152,14 +4152,14 @@ function checkDynamic() {
|
|
|
4152
4152
|
}
|
|
4153
4153
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4154
4154
|
|
|
4155
|
-
const log_version = `ui v${"4.4.
|
|
4155
|
+
const log_version = `ui v${"4.4.12"}`;
|
|
4156
4156
|
const warnLog = log.create('warn', log_version);
|
|
4157
4157
|
const errLog = log.create('error', log_version);
|
|
4158
4158
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4159
4159
|
|
|
4160
4160
|
|
|
4161
4161
|
|
|
4162
|
-
const ui_version = "4.4.
|
|
4162
|
+
const ui_version = "4.4.12";
|
|
4163
4163
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4164
4164
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4165
4165
|
function config(options) {
|
|
@@ -4330,7 +4330,7 @@ setConfig({
|
|
|
4330
4330
|
listView: {},
|
|
4331
4331
|
list: {
|
|
4332
4332
|
// size: null,
|
|
4333
|
-
|
|
4333
|
+
virtualYConfig: {
|
|
4334
4334
|
enabled: true,
|
|
4335
4335
|
gt: 100
|
|
4336
4336
|
// oSize: 0
|
|
@@ -4416,7 +4416,11 @@ setConfig({
|
|
|
4416
4416
|
row: {},
|
|
4417
4417
|
select: {
|
|
4418
4418
|
multiCharOverflow: 8,
|
|
4419
|
-
|
|
4419
|
+
remoteConfig: {
|
|
4420
|
+
enabled: true,
|
|
4421
|
+
autoLoad: true
|
|
4422
|
+
},
|
|
4423
|
+
virtualYConfig: {
|
|
4420
4424
|
enabled: true,
|
|
4421
4425
|
gt: 100,
|
|
4422
4426
|
oSize: 2
|
|
@@ -4437,12 +4441,11 @@ setConfig({
|
|
|
4437
4441
|
rowConfig: {
|
|
4438
4442
|
isHover: true
|
|
4439
4443
|
},
|
|
4440
|
-
|
|
4444
|
+
virtualXConfig: {
|
|
4441
4445
|
enabled: true,
|
|
4442
4446
|
gt: 0
|
|
4443
4447
|
},
|
|
4444
|
-
|
|
4445
|
-
mode: 'wheel',
|
|
4448
|
+
virtualYConfig: {
|
|
4446
4449
|
enabled: true,
|
|
4447
4450
|
gt: 0
|
|
4448
4451
|
}
|
|
@@ -24172,12 +24175,15 @@ function getOptUniqueId() {
|
|
|
24172
24175
|
filterable: Boolean,
|
|
24173
24176
|
filterMethod: Function,
|
|
24174
24177
|
remote: Boolean,
|
|
24178
|
+
// 已废弃,被 remote-config.queryMethod 替换
|
|
24175
24179
|
remoteMethod: Function,
|
|
24180
|
+
remoteConfig: Object,
|
|
24176
24181
|
emptyText: String,
|
|
24177
24182
|
transfer: {
|
|
24178
24183
|
type: Boolean,
|
|
24179
24184
|
default: null
|
|
24180
24185
|
},
|
|
24186
|
+
virtualYConfig: Object,
|
|
24181
24187
|
scrollY: Object,
|
|
24182
24188
|
// 已废弃,被 option-config.keyField 替换
|
|
24183
24189
|
optionId: {
|
|
@@ -24347,7 +24353,10 @@ function getOptUniqueId() {
|
|
|
24347
24353
|
return false;
|
|
24348
24354
|
});
|
|
24349
24355
|
const computeSYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
24350
|
-
return Object.assign({}, getConfig().select.scrollY, props.scrollY);
|
|
24356
|
+
return Object.assign({}, getConfig().select.virtualYConfig || getConfig().select.scrollY, props.virtualYConfig || props.scrollY);
|
|
24357
|
+
});
|
|
24358
|
+
const computeRemoteOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
24359
|
+
return Object.assign({}, getConfig().select.remoteConfig, props.remoteConfig);
|
|
24351
24360
|
});
|
|
24352
24361
|
const computeOptionOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
24353
24362
|
return Object.assign({}, getConfig().select.optionConfig, props.optionConfig);
|
|
@@ -24459,6 +24468,7 @@ function getOptUniqueId() {
|
|
|
24459
24468
|
*/
|
|
24460
24469
|
const handleOption = () => {
|
|
24461
24470
|
const {
|
|
24471
|
+
modelValue,
|
|
24462
24472
|
filterable,
|
|
24463
24473
|
filterMethod
|
|
24464
24474
|
} = props;
|
|
@@ -24475,9 +24485,11 @@ function getOptUniqueId() {
|
|
|
24475
24485
|
let avList = [];
|
|
24476
24486
|
if (filterable && filterMethod) {
|
|
24477
24487
|
avList = fullData.filter(option => isOptionVisible(option) && filterMethod({
|
|
24488
|
+
$select: $xeSelect,
|
|
24478
24489
|
group: null,
|
|
24479
24490
|
option,
|
|
24480
|
-
searchValue: searchStr
|
|
24491
|
+
searchValue: searchStr,
|
|
24492
|
+
value: modelValue
|
|
24481
24493
|
}));
|
|
24482
24494
|
} else if (filterable) {
|
|
24483
24495
|
avList = fullData.filter(option => isOptionVisible(option) && (!searchStr || `${option[labelField]}`.toLowerCase().indexOf(searchStr) > -1));
|
|
@@ -24585,12 +24597,15 @@ function getOptUniqueId() {
|
|
|
24585
24597
|
const showOptionPanel = () => {
|
|
24586
24598
|
const {
|
|
24587
24599
|
loading,
|
|
24588
|
-
filterable
|
|
24600
|
+
filterable,
|
|
24601
|
+
remote
|
|
24589
24602
|
} = props;
|
|
24590
24603
|
const {
|
|
24604
|
+
fullData,
|
|
24591
24605
|
hpTimeout
|
|
24592
24606
|
} = internalData;
|
|
24593
24607
|
const isDisabled = computeIsDisabled.value;
|
|
24608
|
+
const remoteOpts = computeRemoteOpts.value;
|
|
24594
24609
|
if (!loading && !isDisabled) {
|
|
24595
24610
|
if (hpTimeout) {
|
|
24596
24611
|
clearTimeout(hpTimeout);
|
|
@@ -24602,8 +24617,12 @@ function getOptUniqueId() {
|
|
|
24602
24617
|
reactData.isActivated = true;
|
|
24603
24618
|
reactData.isAniVisible = true;
|
|
24604
24619
|
if (filterable) {
|
|
24605
|
-
|
|
24606
|
-
|
|
24620
|
+
if (remote && remoteOpts.enabled && remoteOpts.autoLoad && !fullData.length) {
|
|
24621
|
+
handleSearchEvent();
|
|
24622
|
+
} else {
|
|
24623
|
+
handleOption();
|
|
24624
|
+
updateYData();
|
|
24625
|
+
}
|
|
24607
24626
|
}
|
|
24608
24627
|
setTimeout(() => {
|
|
24609
24628
|
reactData.visiblePanel = true;
|
|
@@ -24898,16 +24917,21 @@ function getOptUniqueId() {
|
|
|
24898
24917
|
};
|
|
24899
24918
|
const handleSearchEvent = () => {
|
|
24900
24919
|
const {
|
|
24920
|
+
modelValue,
|
|
24901
24921
|
remote,
|
|
24902
24922
|
remoteMethod
|
|
24903
24923
|
} = props;
|
|
24904
24924
|
const {
|
|
24905
24925
|
searchValue
|
|
24906
24926
|
} = reactData;
|
|
24907
|
-
|
|
24927
|
+
const remoteOpts = computeRemoteOpts.value;
|
|
24928
|
+
const queryMethod = remoteOpts.queryMethod || remoteMethod;
|
|
24929
|
+
if (remote && queryMethod && remoteOpts.enabled) {
|
|
24908
24930
|
reactData.searchLoading = true;
|
|
24909
|
-
Promise.resolve(
|
|
24910
|
-
|
|
24931
|
+
Promise.resolve(queryMethod({
|
|
24932
|
+
$select: $xeSelect,
|
|
24933
|
+
searchValue,
|
|
24934
|
+
value: modelValue
|
|
24911
24935
|
})).then(() => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)()).catch(() => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)()).finally(() => {
|
|
24912
24936
|
reactData.searchLoading = false;
|
|
24913
24937
|
handleOption();
|
|
@@ -29817,7 +29841,6 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
29817
29841
|
type: String,
|
|
29818
29842
|
default: () => getConfig().numberInput.size || getConfig().size
|
|
29819
29843
|
},
|
|
29820
|
-
multiple: Boolean,
|
|
29821
29844
|
// number、integer、float
|
|
29822
29845
|
min: {
|
|
29823
29846
|
type: [String, Number],
|
|
@@ -29854,6 +29877,10 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
29854
29877
|
type: Boolean,
|
|
29855
29878
|
default: () => getConfig().numberInput.autoFill
|
|
29856
29879
|
},
|
|
29880
|
+
editable: {
|
|
29881
|
+
type: Boolean,
|
|
29882
|
+
default: true
|
|
29883
|
+
},
|
|
29857
29884
|
prefixIcon: String,
|
|
29858
29885
|
suffixIcon: String,
|
|
29859
29886
|
// 已废弃
|
|
@@ -29963,10 +29990,10 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
29963
29990
|
});
|
|
29964
29991
|
const computeInputReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
29965
29992
|
const {
|
|
29966
|
-
|
|
29993
|
+
editable
|
|
29967
29994
|
} = props;
|
|
29968
29995
|
const formReadonly = computeFormReadonly.value;
|
|
29969
|
-
return formReadonly ||
|
|
29996
|
+
return formReadonly || !editable;
|
|
29970
29997
|
});
|
|
29971
29998
|
const computeInpPlaceholder = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
29972
29999
|
const {
|
|
@@ -30147,13 +30174,16 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30147
30174
|
}
|
|
30148
30175
|
};
|
|
30149
30176
|
const focusEvent = evnt => {
|
|
30150
|
-
const
|
|
30151
|
-
|
|
30152
|
-
|
|
30153
|
-
|
|
30154
|
-
|
|
30155
|
-
|
|
30156
|
-
|
|
30177
|
+
const inputReadonly = computeInputReadonly.value;
|
|
30178
|
+
if (!inputReadonly) {
|
|
30179
|
+
const {
|
|
30180
|
+
inputValue
|
|
30181
|
+
} = reactData;
|
|
30182
|
+
reactData.inputValue = eqEmptyValue(inputValue) ? '' : `${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inputValue)}`;
|
|
30183
|
+
reactData.isFocus = true;
|
|
30184
|
+
reactData.isActivated = true;
|
|
30185
|
+
triggerEvent(evnt);
|
|
30186
|
+
}
|
|
30157
30187
|
};
|
|
30158
30188
|
const clickPrefixEvent = evnt => {
|
|
30159
30189
|
const isDisabled = computeIsDisabled.value;
|
|
@@ -30383,6 +30413,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30383
30413
|
exponential,
|
|
30384
30414
|
controls
|
|
30385
30415
|
} = props;
|
|
30416
|
+
const inputReadonly = computeInputReadonly.value;
|
|
30386
30417
|
const isCtrlKey = evnt.ctrlKey;
|
|
30387
30418
|
const isShiftKey = evnt.shiftKey;
|
|
30388
30419
|
const isAltKey = evnt.altKey;
|
|
@@ -30396,7 +30427,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30396
30427
|
if (isEsc) {
|
|
30397
30428
|
afterCheckValue();
|
|
30398
30429
|
} else if (isUpArrow || isDwArrow) {
|
|
30399
|
-
if (controls) {
|
|
30430
|
+
if (controls && !inputReadonly) {
|
|
30400
30431
|
numberKeydownEvent(evnt);
|
|
30401
30432
|
}
|
|
30402
30433
|
}
|
|
@@ -30440,7 +30471,8 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30440
30471
|
}
|
|
30441
30472
|
};
|
|
30442
30473
|
const wheelEvent = evnt => {
|
|
30443
|
-
|
|
30474
|
+
const inputReadonly = computeInputReadonly.value;
|
|
30475
|
+
if (props.controls && !inputReadonly) {
|
|
30444
30476
|
if (reactData.isActivated) {
|
|
30445
30477
|
evnt.stopPropagation();
|
|
30446
30478
|
evnt.preventDefault();
|
|
@@ -30465,8 +30497,9 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30465
30497
|
const el = refElem.value;
|
|
30466
30498
|
const panelElem = refInputPanel.value;
|
|
30467
30499
|
const isDisabled = computeIsDisabled.value;
|
|
30500
|
+
const inputReadonly = computeInputReadonly.value;
|
|
30468
30501
|
const inpImmediate = computeInpImmediate.value;
|
|
30469
|
-
if (!isDisabled && isActivated) {
|
|
30502
|
+
if (!isDisabled && !inputReadonly && isActivated) {
|
|
30470
30503
|
reactData.isActivated = getEventTargetNode(evnt, el).flag || getEventTargetNode(evnt, panelElem).flag;
|
|
30471
30504
|
if (!reactData.isActivated) {
|
|
30472
30505
|
if (!inpImmediate) {
|
|
@@ -30485,7 +30518,8 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30485
30518
|
clearable
|
|
30486
30519
|
} = props;
|
|
30487
30520
|
const isDisabled = computeIsDisabled.value;
|
|
30488
|
-
|
|
30521
|
+
const inputReadonly = computeInputReadonly.value;
|
|
30522
|
+
if (!isDisabled && !inputReadonly) {
|
|
30489
30523
|
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
30490
30524
|
const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
30491
30525
|
let isActivated = reactData.isActivated;
|
|
@@ -30582,7 +30616,8 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30582
30616
|
const {
|
|
30583
30617
|
controls
|
|
30584
30618
|
} = props;
|
|
30585
|
-
|
|
30619
|
+
const inputReadonly = computeInputReadonly.value;
|
|
30620
|
+
if (controls && !inputReadonly) {
|
|
30586
30621
|
return renderNumberIcon();
|
|
30587
30622
|
}
|
|
30588
30623
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
@@ -30595,9 +30630,12 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30595
30630
|
numberInputMethods = {
|
|
30596
30631
|
dispatchEvent,
|
|
30597
30632
|
focus() {
|
|
30598
|
-
const
|
|
30599
|
-
|
|
30600
|
-
|
|
30633
|
+
const inputReadonly = computeInputReadonly.value;
|
|
30634
|
+
if (!inputReadonly) {
|
|
30635
|
+
const inputElem = refInputTarget.value;
|
|
30636
|
+
reactData.isActivated = true;
|
|
30637
|
+
inputElem.focus();
|
|
30638
|
+
}
|
|
30601
30639
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
30602
30640
|
},
|
|
30603
30641
|
blur() {
|
|
@@ -30650,7 +30688,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30650
30688
|
class: ['vxe-number-input', `type--${type}`, className, {
|
|
30651
30689
|
[`size--${vSize}`]: vSize,
|
|
30652
30690
|
[`is--${align}`]: align,
|
|
30653
|
-
'is--controls': controls,
|
|
30691
|
+
'is--controls': controls && !inputReadonly,
|
|
30654
30692
|
'is--prefix': !!prefix,
|
|
30655
30693
|
'is--suffix': !!suffix,
|
|
30656
30694
|
'is--disabled': isDisabled,
|
|
@@ -41337,6 +41375,7 @@ const ListView = VxeListView;
|
|
|
41337
41375
|
default: () => getConfig().list.autoResize
|
|
41338
41376
|
},
|
|
41339
41377
|
syncResize: [Boolean, String, Number],
|
|
41378
|
+
virtualYConfig: Object,
|
|
41340
41379
|
scrollY: Object
|
|
41341
41380
|
},
|
|
41342
41381
|
emits: ['scroll'],
|
|
@@ -41386,7 +41425,7 @@ const ListView = VxeListView;
|
|
|
41386
41425
|
getRefMaps: () => refMaps
|
|
41387
41426
|
};
|
|
41388
41427
|
const computeSYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
41389
|
-
return Object.assign({}, getConfig().list.scrollY, props.scrollY);
|
|
41428
|
+
return Object.assign({}, getConfig().list.virtualYConfig || getConfig().list.scrollY, props.virtualYConfig || props.scrollY);
|
|
41390
41429
|
});
|
|
41391
41430
|
const computeStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
41392
41431
|
const {
|
|
@@ -42976,14 +43015,19 @@ const Option = VxeOption;
|
|
|
42976
43015
|
// 第一页
|
|
42977
43016
|
const renderHomePage = () => {
|
|
42978
43017
|
const {
|
|
42979
|
-
currentPage
|
|
43018
|
+
currentPage,
|
|
43019
|
+
total
|
|
42980
43020
|
} = props;
|
|
42981
43021
|
const homeSlot = slots.home;
|
|
43022
|
+
const pageCount = computePageCount.value;
|
|
42982
43023
|
if (homeSlot) {
|
|
42983
43024
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
42984
43025
|
class: 'vxe-pager--custom-home-btn'
|
|
42985
43026
|
}, homeSlot({
|
|
42986
|
-
|
|
43027
|
+
$pager: $xePager,
|
|
43028
|
+
total,
|
|
43029
|
+
currentPage,
|
|
43030
|
+
pageCount
|
|
42987
43031
|
}));
|
|
42988
43032
|
}
|
|
42989
43033
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
@@ -43000,14 +43044,19 @@ const Option = VxeOption;
|
|
|
43000
43044
|
// 上一页
|
|
43001
43045
|
const renderPrevPage = () => {
|
|
43002
43046
|
const {
|
|
43003
|
-
currentPage
|
|
43047
|
+
currentPage,
|
|
43048
|
+
total
|
|
43004
43049
|
} = props;
|
|
43005
43050
|
const prevPageSlot = slots.prevPage || slots['prev-page'];
|
|
43051
|
+
const pageCount = computePageCount.value;
|
|
43006
43052
|
if (prevPageSlot) {
|
|
43007
43053
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43008
43054
|
class: 'vxe-pager--custom-prev-btn'
|
|
43009
43055
|
}, prevPageSlot({
|
|
43010
|
-
|
|
43056
|
+
$pager: $xePager,
|
|
43057
|
+
total,
|
|
43058
|
+
currentPage,
|
|
43059
|
+
pageCount
|
|
43011
43060
|
}));
|
|
43012
43061
|
}
|
|
43013
43062
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
@@ -43024,14 +43073,19 @@ const Option = VxeOption;
|
|
|
43024
43073
|
// 向上翻页
|
|
43025
43074
|
const renderPrevJump = tagName => {
|
|
43026
43075
|
const {
|
|
43027
|
-
currentPage
|
|
43076
|
+
currentPage,
|
|
43077
|
+
total
|
|
43028
43078
|
} = props;
|
|
43029
43079
|
const prevJumpSlot = slots.prevJump || slots['prev-jump'];
|
|
43080
|
+
const pageCount = computePageCount.value;
|
|
43030
43081
|
if (prevJumpSlot) {
|
|
43031
43082
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43032
43083
|
class: 'vxe-pager--custom-jump-prev'
|
|
43033
43084
|
}, prevJumpSlot({
|
|
43034
|
-
|
|
43085
|
+
$pager: $xePager,
|
|
43086
|
+
total,
|
|
43087
|
+
currentPage,
|
|
43088
|
+
pageCount
|
|
43035
43089
|
}));
|
|
43036
43090
|
}
|
|
43037
43091
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tagName || 'button', {
|
|
@@ -43051,7 +43105,8 @@ const Option = VxeOption;
|
|
|
43051
43105
|
// 向下翻页
|
|
43052
43106
|
const renderNextJump = tagName => {
|
|
43053
43107
|
const {
|
|
43054
|
-
currentPage
|
|
43108
|
+
currentPage,
|
|
43109
|
+
total
|
|
43055
43110
|
} = props;
|
|
43056
43111
|
const nextJumpSlot = slots.nextJump || slots['next-jump'];
|
|
43057
43112
|
const pageCount = computePageCount.value;
|
|
@@ -43059,7 +43114,10 @@ const Option = VxeOption;
|
|
|
43059
43114
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43060
43115
|
class: 'vxe-pager--custom-jump-next'
|
|
43061
43116
|
}, nextJumpSlot({
|
|
43062
|
-
|
|
43117
|
+
$pager: $xePager,
|
|
43118
|
+
total,
|
|
43119
|
+
currentPage,
|
|
43120
|
+
pageCount
|
|
43063
43121
|
}));
|
|
43064
43122
|
}
|
|
43065
43123
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tagName || 'button', {
|
|
@@ -43079,7 +43137,8 @@ const Option = VxeOption;
|
|
|
43079
43137
|
// 下一页
|
|
43080
43138
|
const renderNextPage = () => {
|
|
43081
43139
|
const {
|
|
43082
|
-
currentPage
|
|
43140
|
+
currentPage,
|
|
43141
|
+
total
|
|
43083
43142
|
} = props;
|
|
43084
43143
|
const nextPageSlot = slots.nextPage || slots['next-page'];
|
|
43085
43144
|
const pageCount = computePageCount.value;
|
|
@@ -43087,7 +43146,10 @@ const Option = VxeOption;
|
|
|
43087
43146
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43088
43147
|
class: 'vxe-pager--custom-next-btn'
|
|
43089
43148
|
}, nextPageSlot({
|
|
43090
|
-
|
|
43149
|
+
$pager: $xePager,
|
|
43150
|
+
total,
|
|
43151
|
+
currentPage,
|
|
43152
|
+
pageCount
|
|
43091
43153
|
}));
|
|
43092
43154
|
}
|
|
43093
43155
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
|
|
@@ -43104,7 +43166,8 @@ const Option = VxeOption;
|
|
|
43104
43166
|
// 最后一页
|
|
43105
43167
|
const renderEndPage = () => {
|
|
43106
43168
|
const {
|
|
43107
|
-
currentPage
|
|
43169
|
+
currentPage,
|
|
43170
|
+
total
|
|
43108
43171
|
} = props;
|
|
43109
43172
|
const endSlot = slots.end;
|
|
43110
43173
|
const pageCount = computePageCount.value;
|
|
@@ -43112,6 +43175,8 @@ const Option = VxeOption;
|
|
|
43112
43175
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43113
43176
|
class: 'vxe-pager--custom-end-btn'
|
|
43114
43177
|
}, endSlot({
|
|
43178
|
+
$pager: $xePager,
|
|
43179
|
+
total,
|
|
43115
43180
|
currentPage,
|
|
43116
43181
|
pageCount
|
|
43117
43182
|
}));
|
|
@@ -43131,6 +43196,7 @@ const Option = VxeOption;
|
|
|
43131
43196
|
const renderNumber = showJump => {
|
|
43132
43197
|
const {
|
|
43133
43198
|
currentPage,
|
|
43199
|
+
total,
|
|
43134
43200
|
pagerCount
|
|
43135
43201
|
} = props;
|
|
43136
43202
|
const numberSlot = showJump ? slots.numberJump || slots['number-jump'] : slots.number;
|
|
@@ -43184,6 +43250,8 @@ const Option = VxeOption;
|
|
|
43184
43250
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43185
43251
|
class: 'vxe-pager--custom-btn-wrapper'
|
|
43186
43252
|
}, numberSlot({
|
|
43253
|
+
$pager: $xePager,
|
|
43254
|
+
total,
|
|
43187
43255
|
numList: restList,
|
|
43188
43256
|
currentPage,
|
|
43189
43257
|
pageCount
|
|
@@ -43200,16 +43268,23 @@ const Option = VxeOption;
|
|
|
43200
43268
|
// sizes
|
|
43201
43269
|
const renderSizes = () => {
|
|
43202
43270
|
const {
|
|
43271
|
+
total,
|
|
43272
|
+
currentPage,
|
|
43203
43273
|
pageSize,
|
|
43204
43274
|
pageSizePlacement,
|
|
43205
43275
|
transfer
|
|
43206
43276
|
} = props;
|
|
43207
43277
|
const sizesSlot = slots.sizes;
|
|
43208
43278
|
const sizeList = computeSizeList.value;
|
|
43279
|
+
const pageCount = computePageCount.value;
|
|
43209
43280
|
if (sizesSlot) {
|
|
43210
43281
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43211
43282
|
class: 'vxe-pager--custom-sizes'
|
|
43212
43283
|
}, sizesSlot({
|
|
43284
|
+
$pager: $xePager,
|
|
43285
|
+
total,
|
|
43286
|
+
currentPage,
|
|
43287
|
+
pageCount,
|
|
43213
43288
|
pageSize,
|
|
43214
43289
|
options: sizeList
|
|
43215
43290
|
}));
|
|
@@ -43225,6 +43300,9 @@ const Option = VxeOption;
|
|
|
43225
43300
|
};
|
|
43226
43301
|
// Jump
|
|
43227
43302
|
const renderJump = isFull => {
|
|
43303
|
+
const {
|
|
43304
|
+
total
|
|
43305
|
+
} = props;
|
|
43228
43306
|
const {
|
|
43229
43307
|
inpCurrPage
|
|
43230
43308
|
} = reactData;
|
|
@@ -43234,6 +43312,8 @@ const Option = VxeOption;
|
|
|
43234
43312
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43235
43313
|
class: 'vxe-pager--custom-jump'
|
|
43236
43314
|
}, jumpSlot({
|
|
43315
|
+
$pager: $xePager,
|
|
43316
|
+
total,
|
|
43237
43317
|
currentPage: inpCurrPage,
|
|
43238
43318
|
pageCount
|
|
43239
43319
|
}));
|
|
@@ -43267,7 +43347,8 @@ const Option = VxeOption;
|
|
|
43267
43347
|
// PageCount
|
|
43268
43348
|
const renderPageCount = () => {
|
|
43269
43349
|
const {
|
|
43270
|
-
currentPage
|
|
43350
|
+
currentPage,
|
|
43351
|
+
total
|
|
43271
43352
|
} = props;
|
|
43272
43353
|
const pageCountSlot = slots.pageCount || slots['page-count'];
|
|
43273
43354
|
const pageCount = computePageCount.value;
|
|
@@ -43275,6 +43356,8 @@ const Option = VxeOption;
|
|
|
43275
43356
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43276
43357
|
class: 'vxe-pager--custom-count'
|
|
43277
43358
|
}, pageCountSlot({
|
|
43359
|
+
$pager: $xePager,
|
|
43360
|
+
total,
|
|
43278
43361
|
currentPage,
|
|
43279
43362
|
pageCount
|
|
43280
43363
|
}));
|
|
@@ -43292,12 +43375,15 @@ const Option = VxeOption;
|
|
|
43292
43375
|
total
|
|
43293
43376
|
} = props;
|
|
43294
43377
|
const totalSlot = slots.total;
|
|
43378
|
+
const pageCount = computePageCount.value;
|
|
43295
43379
|
if (totalSlot) {
|
|
43296
43380
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
43297
43381
|
class: 'vxe-pager--custom-total'
|
|
43298
43382
|
}, totalSlot({
|
|
43383
|
+
$pager: $xePager,
|
|
43299
43384
|
total,
|
|
43300
|
-
currentPage
|
|
43385
|
+
currentPage,
|
|
43386
|
+
pageCount
|
|
43301
43387
|
}));
|
|
43302
43388
|
}
|
|
43303
43389
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
@@ -43334,6 +43420,12 @@ const Option = VxeOption;
|
|
|
43334
43420
|
nextJump() {
|
|
43335
43421
|
handleNextJump();
|
|
43336
43422
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
43423
|
+
},
|
|
43424
|
+
jumpPage(currentPage) {
|
|
43425
|
+
const current = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(currentPage) || 1;
|
|
43426
|
+
reactData.inpCurrPage = current;
|
|
43427
|
+
changeCurrentPage(current);
|
|
43428
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
43337
43429
|
}
|
|
43338
43430
|
};
|
|
43339
43431
|
pagerPrivateMethods = {
|