vxe-pc-ui 4.4.9 → 4.4.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.
Files changed (37) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/pager/src/pager.js +32 -20
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/ui/index.js +1 -1
  6. package/es/ui/src/log.js +1 -1
  7. package/es/upload/src/upload.js +82 -70
  8. package/lib/icon/style/style.css +1 -1
  9. package/lib/icon/style/style.min.css +1 -1
  10. package/lib/index.umd.js +76 -19
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/pager/src/pager.js +66 -13
  13. package/lib/pager/src/pager.min.js +1 -1
  14. package/lib/style.css +1 -1
  15. package/lib/style.min.css +1 -1
  16. package/lib/ui/index.js +1 -1
  17. package/lib/ui/index.min.js +1 -1
  18. package/lib/ui/src/log.js +1 -1
  19. package/lib/ui/src/log.min.js +1 -1
  20. package/lib/upload/src/upload.js +8 -4
  21. package/lib/upload/src/upload.min.js +1 -1
  22. package/package.json +1 -1
  23. package/packages/pager/src/pager.ts +32 -20
  24. package/packages/upload/src/upload.ts +91 -79
  25. package/types/components/pager.d.ts +23 -0
  26. /package/es/icon/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
  27. /package/es/icon/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
  28. /package/es/icon/{iconfont.1741664470632.woff2 → iconfont.1741830156438.woff2} +0 -0
  29. /package/es/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
  30. /package/es/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
  31. /package/es/{iconfont.1741664470632.woff2 → iconfont.1741830156438.woff2} +0 -0
  32. /package/lib/icon/style/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
  33. /package/lib/icon/style/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
  34. /package/lib/icon/style/{iconfont.1741664470632.woff2 → iconfont.1741830156438.woff2} +0 -0
  35. /package/lib/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
  36. /package/lib/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
  37. /package/lib/{iconfont.1741664470632.woff2 → iconfont.1741830156438.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.9"}`;
4155
+ const log_version = `ui v${"4.4.11"}`;
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.9";
4162
+ const ui_version = "4.4.11";
4163
4163
  index_esm_VxeUI.uiVersion = ui_version;
4164
4164
  index_esm_VxeUI.dynamicApp = dynamicApp;
4165
4165
  function config(options) {
@@ -35478,6 +35478,7 @@ const saveLocalFile = options => {
35478
35478
  };
35479
35479
  const renderAllMode = () => {
35480
35480
  const {
35481
+ showList,
35481
35482
  moreConfig,
35482
35483
  dragSort
35483
35484
  } = props;
@@ -35501,7 +35502,7 @@ const saveLocalFile = options => {
35501
35502
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
35502
35503
  key: 'all',
35503
35504
  class: 'vxe-upload--file-wrapper'
35504
- }, [showMoreButton && moreConfig && isHorizontal ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : renderFileAction(true), currList.length || showMoreButton && isHorizontal ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
35505
+ }, showList ? [showMoreButton && moreConfig && isHorizontal ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : renderFileAction(true), currList.length || showMoreButton && isHorizontal ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
35505
35506
  class: ['vxe-upload--file-list-wrapper', {
35506
35507
  'is--horizontal': isHorizontal
35507
35508
  }]
@@ -35520,7 +35521,7 @@ const saveLocalFile = options => {
35520
35521
  content: i18n_getI18n('vxe.upload.moreBtnText', [fileList.length]),
35521
35522
  status: 'primary',
35522
35523
  onClick: handleMoreEvent
35523
- })]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), showMoreButton && moreConfig && isHorizontal ? renderFileAction(false) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
35524
+ })]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), showMoreButton && moreConfig && isHorizontal ? renderFileAction(false) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()] : [renderFileAction(false)]);
35524
35525
  };
35525
35526
  const renderImageItemList = (currList, isMoreView) => {
35526
35527
  const {
@@ -35662,6 +35663,7 @@ const saveLocalFile = options => {
35662
35663
  };
35663
35664
  const renderImageMode = () => {
35664
35665
  const {
35666
+ showList,
35665
35667
  dragSort
35666
35668
  } = props;
35667
35669
  const {
@@ -35682,7 +35684,7 @@ const saveLocalFile = options => {
35682
35684
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
35683
35685
  key: 'image',
35684
35686
  class: 'vxe-upload--image-wrapper'
35685
- }, [dragSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
35687
+ }, showList ? [dragSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
35686
35688
  name: `vxe-upload--drag-list${isDragMove ? '' : '-disabled'}`,
35687
35689
  tag: 'div',
35688
35690
  class: 'vxe-upload--image-list'
@@ -35705,7 +35707,9 @@ const saveLocalFile = options => {
35705
35707
  content: i18n_getI18n('vxe.upload.moreBtnText', [fileList.length]),
35706
35708
  status: 'primary',
35707
35709
  onClick: handleMoreEvent
35708
- })]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), renderImageAction(false)]))]);
35710
+ })]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), renderImageAction(false)]))] : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
35711
+ class: 'vxe-upload--image-list'
35712
+ }, [renderImageAction(false)])]);
35709
35713
  };
35710
35714
  const renderVN = () => {
35711
35715
  const {
@@ -42972,14 +42976,19 @@ const Option = VxeOption;
42972
42976
  // 第一页
42973
42977
  const renderHomePage = () => {
42974
42978
  const {
42975
- currentPage
42979
+ currentPage,
42980
+ total
42976
42981
  } = props;
42977
42982
  const homeSlot = slots.home;
42983
+ const pageCount = computePageCount.value;
42978
42984
  if (homeSlot) {
42979
42985
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
42980
42986
  class: 'vxe-pager--custom-home-btn'
42981
42987
  }, homeSlot({
42982
- currentPage
42988
+ $pager: $xePager,
42989
+ total,
42990
+ currentPage,
42991
+ pageCount
42983
42992
  }));
42984
42993
  }
42985
42994
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
@@ -42996,14 +43005,19 @@ const Option = VxeOption;
42996
43005
  // 上一页
42997
43006
  const renderPrevPage = () => {
42998
43007
  const {
42999
- currentPage
43008
+ currentPage,
43009
+ total
43000
43010
  } = props;
43001
43011
  const prevPageSlot = slots.prevPage || slots['prev-page'];
43012
+ const pageCount = computePageCount.value;
43002
43013
  if (prevPageSlot) {
43003
43014
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43004
43015
  class: 'vxe-pager--custom-prev-btn'
43005
43016
  }, prevPageSlot({
43006
- currentPage
43017
+ $pager: $xePager,
43018
+ total,
43019
+ currentPage,
43020
+ pageCount
43007
43021
  }));
43008
43022
  }
43009
43023
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
@@ -43020,14 +43034,19 @@ const Option = VxeOption;
43020
43034
  // 向上翻页
43021
43035
  const renderPrevJump = tagName => {
43022
43036
  const {
43023
- currentPage
43037
+ currentPage,
43038
+ total
43024
43039
  } = props;
43025
43040
  const prevJumpSlot = slots.prevJump || slots['prev-jump'];
43041
+ const pageCount = computePageCount.value;
43026
43042
  if (prevJumpSlot) {
43027
43043
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43028
43044
  class: 'vxe-pager--custom-jump-prev'
43029
43045
  }, prevJumpSlot({
43030
- currentPage
43046
+ $pager: $xePager,
43047
+ total,
43048
+ currentPage,
43049
+ pageCount
43031
43050
  }));
43032
43051
  }
43033
43052
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tagName || 'button', {
@@ -43047,7 +43066,8 @@ const Option = VxeOption;
43047
43066
  // 向下翻页
43048
43067
  const renderNextJump = tagName => {
43049
43068
  const {
43050
- currentPage
43069
+ currentPage,
43070
+ total
43051
43071
  } = props;
43052
43072
  const nextJumpSlot = slots.nextJump || slots['next-jump'];
43053
43073
  const pageCount = computePageCount.value;
@@ -43055,7 +43075,10 @@ const Option = VxeOption;
43055
43075
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43056
43076
  class: 'vxe-pager--custom-jump-next'
43057
43077
  }, nextJumpSlot({
43058
- currentPage
43078
+ $pager: $xePager,
43079
+ total,
43080
+ currentPage,
43081
+ pageCount
43059
43082
  }));
43060
43083
  }
43061
43084
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tagName || 'button', {
@@ -43075,7 +43098,8 @@ const Option = VxeOption;
43075
43098
  // 下一页
43076
43099
  const renderNextPage = () => {
43077
43100
  const {
43078
- currentPage
43101
+ currentPage,
43102
+ total
43079
43103
  } = props;
43080
43104
  const nextPageSlot = slots.nextPage || slots['next-page'];
43081
43105
  const pageCount = computePageCount.value;
@@ -43083,7 +43107,10 @@ const Option = VxeOption;
43083
43107
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43084
43108
  class: 'vxe-pager--custom-next-btn'
43085
43109
  }, nextPageSlot({
43086
- currentPage
43110
+ $pager: $xePager,
43111
+ total,
43112
+ currentPage,
43113
+ pageCount
43087
43114
  }));
43088
43115
  }
43089
43116
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('button', {
@@ -43100,7 +43127,8 @@ const Option = VxeOption;
43100
43127
  // 最后一页
43101
43128
  const renderEndPage = () => {
43102
43129
  const {
43103
- currentPage
43130
+ currentPage,
43131
+ total
43104
43132
  } = props;
43105
43133
  const endSlot = slots.end;
43106
43134
  const pageCount = computePageCount.value;
@@ -43108,6 +43136,8 @@ const Option = VxeOption;
43108
43136
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43109
43137
  class: 'vxe-pager--custom-end-btn'
43110
43138
  }, endSlot({
43139
+ $pager: $xePager,
43140
+ total,
43111
43141
  currentPage,
43112
43142
  pageCount
43113
43143
  }));
@@ -43127,6 +43157,7 @@ const Option = VxeOption;
43127
43157
  const renderNumber = showJump => {
43128
43158
  const {
43129
43159
  currentPage,
43160
+ total,
43130
43161
  pagerCount
43131
43162
  } = props;
43132
43163
  const numberSlot = showJump ? slots.numberJump || slots['number-jump'] : slots.number;
@@ -43180,6 +43211,8 @@ const Option = VxeOption;
43180
43211
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43181
43212
  class: 'vxe-pager--custom-btn-wrapper'
43182
43213
  }, numberSlot({
43214
+ $pager: $xePager,
43215
+ total,
43183
43216
  numList: restList,
43184
43217
  currentPage,
43185
43218
  pageCount
@@ -43196,16 +43229,23 @@ const Option = VxeOption;
43196
43229
  // sizes
43197
43230
  const renderSizes = () => {
43198
43231
  const {
43232
+ total,
43233
+ currentPage,
43199
43234
  pageSize,
43200
43235
  pageSizePlacement,
43201
43236
  transfer
43202
43237
  } = props;
43203
43238
  const sizesSlot = slots.sizes;
43204
43239
  const sizeList = computeSizeList.value;
43240
+ const pageCount = computePageCount.value;
43205
43241
  if (sizesSlot) {
43206
43242
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43207
43243
  class: 'vxe-pager--custom-sizes'
43208
43244
  }, sizesSlot({
43245
+ $pager: $xePager,
43246
+ total,
43247
+ currentPage,
43248
+ pageCount,
43209
43249
  pageSize,
43210
43250
  options: sizeList
43211
43251
  }));
@@ -43221,6 +43261,9 @@ const Option = VxeOption;
43221
43261
  };
43222
43262
  // Jump
43223
43263
  const renderJump = isFull => {
43264
+ const {
43265
+ total
43266
+ } = props;
43224
43267
  const {
43225
43268
  inpCurrPage
43226
43269
  } = reactData;
@@ -43230,6 +43273,8 @@ const Option = VxeOption;
43230
43273
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43231
43274
  class: 'vxe-pager--custom-jump'
43232
43275
  }, jumpSlot({
43276
+ $pager: $xePager,
43277
+ total,
43233
43278
  currentPage: inpCurrPage,
43234
43279
  pageCount
43235
43280
  }));
@@ -43263,7 +43308,8 @@ const Option = VxeOption;
43263
43308
  // PageCount
43264
43309
  const renderPageCount = () => {
43265
43310
  const {
43266
- currentPage
43311
+ currentPage,
43312
+ total
43267
43313
  } = props;
43268
43314
  const pageCountSlot = slots.pageCount || slots['page-count'];
43269
43315
  const pageCount = computePageCount.value;
@@ -43271,6 +43317,8 @@ const Option = VxeOption;
43271
43317
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43272
43318
  class: 'vxe-pager--custom-count'
43273
43319
  }, pageCountSlot({
43320
+ $pager: $xePager,
43321
+ total,
43274
43322
  currentPage,
43275
43323
  pageCount
43276
43324
  }));
@@ -43288,12 +43336,15 @@ const Option = VxeOption;
43288
43336
  total
43289
43337
  } = props;
43290
43338
  const totalSlot = slots.total;
43339
+ const pageCount = computePageCount.value;
43291
43340
  if (totalSlot) {
43292
43341
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
43293
43342
  class: 'vxe-pager--custom-total'
43294
43343
  }, totalSlot({
43344
+ $pager: $xePager,
43295
43345
  total,
43296
- currentPage
43346
+ currentPage,
43347
+ pageCount
43297
43348
  }));
43298
43349
  }
43299
43350
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
@@ -43330,6 +43381,12 @@ const Option = VxeOption;
43330
43381
  nextJump() {
43331
43382
  handleNextJump();
43332
43383
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
43384
+ },
43385
+ jumpPage(currentPage) {
43386
+ const current = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(currentPage) || 1;
43387
+ reactData.inpCurrPage = current;
43388
+ changeCurrentPage(current);
43389
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
43333
43390
  }
43334
43391
  };
43335
43392
  pagerPrivateMethods = {