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.
- package/es/icon/style.css +1 -1
- package/es/pager/src/pager.js +32 -20
- 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/src/upload.js +82 -70
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +76 -19
- package/lib/index.umd.min.js +1 -1
- package/lib/pager/src/pager.js +66 -13
- 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/src/upload.js +8 -4
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/pager/src/pager.ts +32 -20
- package/packages/upload/src/upload.ts +91 -79
- package/types/components/pager.d.ts +23 -0
- /package/es/icon/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
- /package/es/icon/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
- /package/es/icon/{iconfont.1741664470632.woff2 → iconfont.1741830156438.woff2} +0 -0
- /package/es/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
- /package/es/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
- /package/es/{iconfont.1741664470632.woff2 → iconfont.1741830156438.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
- /package/lib/icon/style/{iconfont.1741664470632.woff2 → iconfont.1741830156438.woff2} +0 -0
- /package/lib/{iconfont.1741664470632.ttf → iconfont.1741830156438.ttf} +0 -0
- /package/lib/{iconfont.1741664470632.woff → iconfont.1741830156438.woff} +0 -0
- /package/lib/{iconfont.1741664470632.woff2 → iconfont.1741830156438.woff2} +0 -0
|
@@ -1279,7 +1279,7 @@ export default defineComponent({
|
|
|
1279
1279
|
}
|
|
1280
1280
|
|
|
1281
1281
|
const renderAllMode = () => {
|
|
1282
|
-
const { moreConfig, dragSort } = props
|
|
1282
|
+
const { showList, moreConfig, dragSort } = props
|
|
1283
1283
|
const { fileList, isDragMove } = reactData
|
|
1284
1284
|
const moreOpts = computeMoreOpts.value
|
|
1285
1285
|
|
|
@@ -1296,49 +1296,53 @@ export default defineComponent({
|
|
|
1296
1296
|
return h('div', {
|
|
1297
1297
|
key: 'all',
|
|
1298
1298
|
class: 'vxe-upload--file-wrapper'
|
|
1299
|
-
},
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
class: ['vxe-upload--file-list-wrapper', {
|
|
1306
|
-
'is--horizontal': isHorizontal
|
|
1307
|
-
}]
|
|
1308
|
-
}, [
|
|
1309
|
-
currList.length
|
|
1310
|
-
? (
|
|
1311
|
-
dragSort
|
|
1312
|
-
? h(TransitionGroup, {
|
|
1313
|
-
name: `vxe-upload--drag-list${isDragMove ? '' : '-disabled'}`,
|
|
1314
|
-
tag: 'div',
|
|
1315
|
-
class: 'vxe-upload--file-list'
|
|
1316
|
-
}, {
|
|
1317
|
-
default: () => renderFileItemList(currList, false)
|
|
1318
|
-
})
|
|
1319
|
-
: h('div', {
|
|
1320
|
-
class: 'vxe-upload--file-list'
|
|
1321
|
-
}, renderFileItemList(currList, false))
|
|
1322
|
-
)
|
|
1323
|
-
: createCommentVNode(),
|
|
1324
|
-
showMoreButton && overMaxNum
|
|
1299
|
+
}, showList
|
|
1300
|
+
? [
|
|
1301
|
+
showMoreButton && moreConfig && isHorizontal
|
|
1302
|
+
? createCommentVNode()
|
|
1303
|
+
: renderFileAction(true),
|
|
1304
|
+
(currList.length || (showMoreButton && isHorizontal))
|
|
1325
1305
|
? h('div', {
|
|
1326
|
-
class: 'vxe-upload--file-
|
|
1306
|
+
class: ['vxe-upload--file-list-wrapper', {
|
|
1307
|
+
'is--horizontal': isHorizontal
|
|
1308
|
+
}]
|
|
1327
1309
|
}, [
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1310
|
+
currList.length
|
|
1311
|
+
? (
|
|
1312
|
+
dragSort
|
|
1313
|
+
? h(TransitionGroup, {
|
|
1314
|
+
name: `vxe-upload--drag-list${isDragMove ? '' : '-disabled'}`,
|
|
1315
|
+
tag: 'div',
|
|
1316
|
+
class: 'vxe-upload--file-list'
|
|
1317
|
+
}, {
|
|
1318
|
+
default: () => renderFileItemList(currList, false)
|
|
1319
|
+
})
|
|
1320
|
+
: h('div', {
|
|
1321
|
+
class: 'vxe-upload--file-list'
|
|
1322
|
+
}, renderFileItemList(currList, false))
|
|
1323
|
+
)
|
|
1324
|
+
: createCommentVNode(),
|
|
1325
|
+
showMoreButton && overMaxNum
|
|
1326
|
+
? h('div', {
|
|
1327
|
+
class: 'vxe-upload--file-over-more'
|
|
1328
|
+
}, [
|
|
1329
|
+
h(VxeButtonComponent, {
|
|
1330
|
+
mode: 'text',
|
|
1331
|
+
content: getI18n('vxe.upload.moreBtnText', [fileList.length]),
|
|
1332
|
+
status: 'primary',
|
|
1333
|
+
onClick: handleMoreEvent
|
|
1334
|
+
})
|
|
1335
|
+
])
|
|
1336
|
+
: createCommentVNode(),
|
|
1337
|
+
showMoreButton && moreConfig && isHorizontal
|
|
1338
|
+
? renderFileAction(false)
|
|
1339
|
+
: createCommentVNode()
|
|
1334
1340
|
])
|
|
1335
|
-
: createCommentVNode(),
|
|
1336
|
-
showMoreButton && moreConfig && isHorizontal
|
|
1337
|
-
? renderFileAction(false)
|
|
1338
1341
|
: createCommentVNode()
|
|
1342
|
+
]
|
|
1343
|
+
: [
|
|
1344
|
+
renderFileAction(false)
|
|
1339
1345
|
])
|
|
1340
|
-
: createCommentVNode()
|
|
1341
|
-
])
|
|
1342
1346
|
}
|
|
1343
1347
|
|
|
1344
1348
|
const renderImageItemList = (currList: VxeUploadDefines.FileObjItem[], isMoreView: boolean) => {
|
|
@@ -1511,7 +1515,7 @@ export default defineComponent({
|
|
|
1511
1515
|
}
|
|
1512
1516
|
|
|
1513
1517
|
const renderImageMode = () => {
|
|
1514
|
-
const { dragSort } = props
|
|
1518
|
+
const { showList, dragSort } = props
|
|
1515
1519
|
const { fileList, isDragMove } = reactData
|
|
1516
1520
|
const moreOpts = computeMoreOpts.value
|
|
1517
1521
|
|
|
@@ -1526,48 +1530,56 @@ export default defineComponent({
|
|
|
1526
1530
|
return h('div', {
|
|
1527
1531
|
key: 'image',
|
|
1528
1532
|
class: 'vxe-upload--image-wrapper'
|
|
1529
|
-
},
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1533
|
+
}, showList
|
|
1534
|
+
? [
|
|
1535
|
+
dragSort
|
|
1536
|
+
? h(TransitionGroup, {
|
|
1537
|
+
name: `vxe-upload--drag-list${isDragMove ? '' : '-disabled'}`,
|
|
1538
|
+
tag: 'div',
|
|
1539
|
+
class: 'vxe-upload--image-list'
|
|
1540
|
+
}, {
|
|
1541
|
+
default: () => renderImageItemList(currList, false).concat([
|
|
1542
|
+
showMoreButton && overMaxNum
|
|
1543
|
+
? h('div', {
|
|
1544
|
+
key: 'om',
|
|
1545
|
+
class: 'vxe-upload--image-over-more'
|
|
1546
|
+
}, [
|
|
1547
|
+
h(VxeButtonComponent, {
|
|
1548
|
+
mode: 'text',
|
|
1549
|
+
content: getI18n('vxe.upload.moreBtnText', [fileList.length]),
|
|
1550
|
+
status: 'primary',
|
|
1551
|
+
onClick: handleMoreEvent
|
|
1552
|
+
})
|
|
1553
|
+
])
|
|
1554
|
+
: createCommentVNode(),
|
|
1555
|
+
renderImageAction(false)
|
|
1548
1556
|
])
|
|
1549
|
-
|
|
1557
|
+
})
|
|
1558
|
+
: h('div', {
|
|
1559
|
+
class: 'vxe-upload--image-list'
|
|
1560
|
+
}, renderImageItemList(currList, false).concat([
|
|
1561
|
+
showMoreButton && overMaxNum
|
|
1562
|
+
? h('div', {
|
|
1563
|
+
class: 'vxe-upload--image-over-more'
|
|
1564
|
+
}, [
|
|
1565
|
+
h(VxeButtonComponent, {
|
|
1566
|
+
mode: 'text',
|
|
1567
|
+
content: getI18n('vxe.upload.moreBtnText', [fileList.length]),
|
|
1568
|
+
status: 'primary',
|
|
1569
|
+
onClick: handleMoreEvent
|
|
1570
|
+
})
|
|
1571
|
+
])
|
|
1572
|
+
: createCommentVNode(),
|
|
1573
|
+
renderImageAction(false)
|
|
1574
|
+
]))
|
|
1575
|
+
]
|
|
1576
|
+
: [
|
|
1577
|
+
h('div', {
|
|
1578
|
+
class: 'vxe-upload--image-list'
|
|
1579
|
+
}, [
|
|
1550
1580
|
renderImageAction(false)
|
|
1551
1581
|
])
|
|
1552
|
-
|
|
1553
|
-
: h('div', {
|
|
1554
|
-
class: 'vxe-upload--image-list'
|
|
1555
|
-
}, renderImageItemList(currList, false).concat([
|
|
1556
|
-
showMoreButton && overMaxNum
|
|
1557
|
-
? h('div', {
|
|
1558
|
-
class: 'vxe-upload--image-over-more'
|
|
1559
|
-
}, [
|
|
1560
|
-
h(VxeButtonComponent, {
|
|
1561
|
-
mode: 'text',
|
|
1562
|
-
content: getI18n('vxe.upload.moreBtnText', [fileList.length]),
|
|
1563
|
-
status: 'primary',
|
|
1564
|
-
onClick: handleMoreEvent
|
|
1565
|
-
})
|
|
1566
|
-
])
|
|
1567
|
-
: createCommentVNode(),
|
|
1568
|
-
renderImageAction(false)
|
|
1569
|
-
]))
|
|
1570
|
-
])
|
|
1582
|
+
])
|
|
1571
1583
|
}
|
|
1572
1584
|
|
|
1573
1585
|
const renderVN = () => {
|
|
@@ -155,6 +155,10 @@ export interface PagerMethods {
|
|
|
155
155
|
* 向下翻页
|
|
156
156
|
*/
|
|
157
157
|
nextJump(): Promise<any>
|
|
158
|
+
/**
|
|
159
|
+
* 跳转到指定页面
|
|
160
|
+
*/
|
|
161
|
+
jumpPage(currentPage: number | string | null | undefined): Promise<any>
|
|
158
162
|
}
|
|
159
163
|
export interface VxePagerMethods extends PagerMethods { }
|
|
160
164
|
|
|
@@ -205,29 +209,45 @@ export namespace VxePagerSlotTypes {
|
|
|
205
209
|
export interface RightSlotParams {}
|
|
206
210
|
export interface HomeSlotParams {
|
|
207
211
|
currentPage: number
|
|
212
|
+
total: number
|
|
213
|
+
pageCount: number
|
|
208
214
|
}
|
|
209
215
|
export interface PrevPageSlotParams {
|
|
210
216
|
currentPage: number
|
|
217
|
+
total: number
|
|
218
|
+
pageCount: number
|
|
211
219
|
}
|
|
212
220
|
export interface PrevJumpSlotParams {
|
|
213
221
|
currentPage: number
|
|
222
|
+
total: number
|
|
223
|
+
pageCount: number
|
|
214
224
|
}
|
|
215
225
|
export interface NextJumpSlotParams {
|
|
216
226
|
currentPage: number
|
|
227
|
+
total: number
|
|
228
|
+
pageCount: number
|
|
217
229
|
}
|
|
218
230
|
export interface NextPageSlotParams {
|
|
219
231
|
currentPage: number
|
|
232
|
+
total: number
|
|
233
|
+
pageCount: number
|
|
220
234
|
}
|
|
221
235
|
export interface EndSlotParams {
|
|
222
236
|
currentPage: number
|
|
237
|
+
total: number
|
|
238
|
+
pageCount: number
|
|
223
239
|
}
|
|
224
240
|
export interface NumberJumpSlotParams {
|
|
225
241
|
numList: number[]
|
|
226
242
|
currentPage: number
|
|
243
|
+
total: number
|
|
227
244
|
pageCount: number
|
|
228
245
|
}
|
|
229
246
|
export interface SizesSlotParams {
|
|
230
247
|
currentPage: number
|
|
248
|
+
total: number
|
|
249
|
+
pageCount: number
|
|
250
|
+
pageSize: number
|
|
231
251
|
options: {
|
|
232
252
|
label: number | string
|
|
233
253
|
value: number | string
|
|
@@ -235,15 +255,18 @@ export namespace VxePagerSlotTypes {
|
|
|
235
255
|
}
|
|
236
256
|
export interface FullJumpSlotParams {
|
|
237
257
|
currentPage: number
|
|
258
|
+
total: number
|
|
238
259
|
pageCount: number
|
|
239
260
|
}
|
|
240
261
|
export interface PageCountSlotParams {
|
|
241
262
|
currentPage: number
|
|
263
|
+
total: number
|
|
242
264
|
pageCount: number
|
|
243
265
|
}
|
|
244
266
|
export interface TotalSlotParams {
|
|
245
267
|
currentPage: number
|
|
246
268
|
total: number
|
|
269
|
+
pageCount: number
|
|
247
270
|
}
|
|
248
271
|
}
|
|
249
272
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|