@cmstops/pro-compo 0.1.13 → 0.1.15

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 (150) hide show
  1. package/dist/gif.worker.js +3 -0
  2. package/dist/index.css +486 -6
  3. package/dist/index.min.css +1 -1
  4. package/es/contentDetailList/component.js +1 -2
  5. package/es/contentDetailList/components/Content/CompoItem/index.js +1 -2
  6. package/es/contentDetailList/components/Content/ContentListItem/index.js +1 -2
  7. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +1 -2
  8. package/es/contentDetailList/components/Content/DocItem/index.js +1 -2
  9. package/es/contentDetailList/components/Content/KongoNavItem/index.js +1 -2
  10. package/es/contentDetailList/components/Content/LiveItem/index.js +1 -2
  11. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -2
  12. package/es/contentDetailList/components/Content/index.js +1 -2
  13. package/es/contentDetailList/components/Doc/index.js +1 -2
  14. package/es/contentModal/component.js +1 -2
  15. package/es/contentModal/components/CompoList/CompoFilter/index.js +2 -3
  16. package/es/contentModal/components/CompoList/index.js +2 -3
  17. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -2
  18. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +1 -2
  19. package/es/contentModal/components/ViewAllColumn/index.js +1 -2
  20. package/es/contentModal/components/storeBox/index.js +1 -2
  21. package/es/gif.worker.js +3 -0
  22. package/es/hooks/assets.d.ts +1 -0
  23. package/es/hooks/assets.js +9 -0
  24. package/es/hooks/user.d.ts +1 -3
  25. package/es/imageCrop/component.d.ts +0 -0
  26. package/es/imageCrop/component.js +472 -0
  27. package/es/imageCrop/index.d.ts +2 -0
  28. package/es/imageCrop/index.js +7 -0
  29. package/es/imageCrop/script/api.d.ts +1 -0
  30. package/es/imageCrop/script/api.js +11 -0
  31. package/es/imageCrop/style/cropper.less +291 -0
  32. package/es/imageCrop/style/css.js +1 -0
  33. package/es/imageCrop/style/imageCropper.less +133 -0
  34. package/es/imageCrop/style/index.css +366 -0
  35. package/es/imageCrop/style/index.d.ts +1 -0
  36. package/es/imageCrop/style/index.js +1 -0
  37. package/es/imageCrop/style/index.less +2 -0
  38. package/es/index.css +486 -6
  39. package/es/index.d.ts +2 -0
  40. package/es/index.js +2 -0
  41. package/es/index.less +2 -0
  42. package/es/mediaFilter/component.js +1 -2
  43. package/es/mediaFilter/components/DocFilter.js +1 -2
  44. package/es/messageBox/list.js +1 -2
  45. package/es/previousVersion/component.js +1 -2
  46. package/es/resourceModal/component.js +4 -7
  47. package/es/resourceModal/components/MediaPreviewer/index.js +1 -2
  48. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +10 -19
  49. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +4 -9
  50. package/es/resourceModal/components/MediaSelection/MainContent/index.js +7 -15
  51. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -2
  52. package/es/resourceModal/components/MediaSelection/index.js +8 -12
  53. package/es/selectAvatarList/component.js +67 -48
  54. package/es/selectGategory/component.js +1 -2
  55. package/es/selectGategory/components/ColumnSelection/index.js +1 -2
  56. package/es/selectThumb/component.d.ts +0 -0
  57. package/es/selectThumb/component.js +410 -0
  58. package/es/selectThumb/components/card.d.ts +0 -0
  59. package/es/selectThumb/components/card.js +86 -0
  60. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  61. package/es/selectThumb/components/colorPalette.js +75 -0
  62. package/es/selectThumb/index.d.ts +2 -0
  63. package/es/selectThumb/index.js +7 -0
  64. package/es/selectThumb/style/card.less +79 -0
  65. package/es/selectThumb/style/colorPalette.less +0 -0
  66. package/es/selectThumb/style/css.js +1 -0
  67. package/es/selectThumb/style/index.css +101 -0
  68. package/es/selectThumb/style/index.d.ts +1 -0
  69. package/es/selectThumb/style/index.js +1 -0
  70. package/es/selectThumb/style/index.less +27 -0
  71. package/es/uploadBefore/component.js +2 -3
  72. package/es/uploadBefore/components/UploadBefore.js +1 -2
  73. package/es/uploadBefore/components/UploadForClick.js +1 -2
  74. package/es/uploadStep/component.js +2 -3
  75. package/es/userDirector/component.js +15 -14
  76. package/es/userDirector/components/userTree.js +2 -2
  77. package/es/userDirector/style/index.css +19 -6
  78. package/es/userDirector/style/index.less +25 -12
  79. package/es/utils/doc.js +30 -7
  80. package/es/utils/index.d.ts +1 -0
  81. package/es/utils/index.js +6 -1
  82. package/es/utils/tusUpload.d.ts +1 -1
  83. package/es/utils/tusUpload.js +1 -1
  84. package/es/utils/uploadCatalog.d.ts +1 -0
  85. package/lib/contentDetailList/component.js +1 -2
  86. package/lib/contentDetailList/components/Content/CompoItem/index.js +1 -2
  87. package/lib/contentDetailList/components/Content/ContentListItem/index.js +1 -2
  88. package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +1 -2
  89. package/lib/contentDetailList/components/Content/DocItem/index.js +1 -2
  90. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +1 -2
  91. package/lib/contentDetailList/components/Content/LiveItem/index.js +1 -2
  92. package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -2
  93. package/lib/contentDetailList/components/Content/index.js +1 -2
  94. package/lib/contentDetailList/components/Doc/index.js +1 -2
  95. package/lib/contentModal/component.js +1 -2
  96. package/lib/contentModal/components/CompoList/CompoFilter/index.js +2 -3
  97. package/lib/contentModal/components/CompoList/index.js +2 -3
  98. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -2
  99. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +1 -2
  100. package/lib/contentModal/components/ViewAllColumn/index.js +1 -2
  101. package/lib/contentModal/components/storeBox/index.js +1 -2
  102. package/lib/hooks/assets.js +11 -0
  103. package/lib/imageCrop/component.js +479 -0
  104. package/lib/imageCrop/index.js +8 -0
  105. package/lib/imageCrop/script/api.js +13 -0
  106. package/lib/imageCrop/style/cropper.less +291 -0
  107. package/lib/imageCrop/style/css.js +2 -0
  108. package/lib/imageCrop/style/imageCropper.less +133 -0
  109. package/lib/imageCrop/style/index.css +366 -0
  110. package/lib/imageCrop/style/index.js +2 -0
  111. package/lib/imageCrop/style/index.less +2 -0
  112. package/lib/index.css +486 -6
  113. package/lib/index.js +16 -12
  114. package/lib/index.less +2 -0
  115. package/lib/mediaFilter/component.js +1 -2
  116. package/lib/mediaFilter/components/DocFilter.js +1 -2
  117. package/lib/messageBox/list.js +1 -2
  118. package/lib/previousVersion/component.js +1 -2
  119. package/lib/resourceModal/component.js +4 -7
  120. package/lib/resourceModal/components/MediaPreviewer/index.js +1 -2
  121. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +10 -19
  122. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +4 -9
  123. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +7 -15
  124. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -2
  125. package/lib/resourceModal/components/MediaSelection/index.js +8 -12
  126. package/lib/selectAvatarList/component.js +67 -48
  127. package/lib/selectGategory/component.js +1 -2
  128. package/lib/selectGategory/components/ColumnSelection/index.js +1 -2
  129. package/lib/selectThumb/component.js +411 -0
  130. package/lib/selectThumb/components/card.js +87 -0
  131. package/lib/selectThumb/components/colorPalette.js +76 -0
  132. package/lib/selectThumb/index.js +8 -0
  133. package/lib/selectThumb/style/card.less +79 -0
  134. package/lib/selectThumb/style/colorPalette.less +0 -0
  135. package/lib/selectThumb/style/css.js +2 -0
  136. package/lib/selectThumb/style/index.css +101 -0
  137. package/lib/selectThumb/style/index.js +2 -0
  138. package/lib/selectThumb/style/index.less +27 -0
  139. package/lib/uploadBefore/component.js +2 -3
  140. package/lib/uploadBefore/components/UploadBefore.js +1 -2
  141. package/lib/uploadBefore/components/UploadForClick.js +1 -2
  142. package/lib/uploadStep/component.js +2 -3
  143. package/lib/userDirector/component.js +15 -14
  144. package/lib/userDirector/components/userTree.js +2 -2
  145. package/lib/userDirector/style/index.css +19 -6
  146. package/lib/userDirector/style/index.less +25 -12
  147. package/lib/utils/doc.js +31 -6
  148. package/lib/utils/index.js +6 -0
  149. package/lib/utils/tusUpload.js +1 -1
  150. package/package.json +16 -2
package/es/index.css CHANGED
@@ -1293,6 +1293,372 @@
1293
1293
  .add-category-modal-wrapper .arco-modal-footer {
1294
1294
  border-top: 0;
1295
1295
  }
1296
+ .cropper-container {
1297
+ position: relative;
1298
+ font-size: 0;
1299
+ line-height: 0;
1300
+ direction: ltr;
1301
+ -webkit-user-select: none;
1302
+ -moz-user-select: none;
1303
+ -ms-user-select: none;
1304
+ user-select: none;
1305
+ -ms-touch-action: none;
1306
+ touch-action: none;
1307
+ }
1308
+ .cropper-container img {
1309
+ display: block;
1310
+ width: 100%;
1311
+ min-width: 0 !important;
1312
+ max-width: none !important;
1313
+ height: 100%;
1314
+ min-height: 0 !important;
1315
+ max-height: none !important;
1316
+ image-orientation: 0deg;
1317
+ }
1318
+ .cropper-canvas,
1319
+ .cropper-crop-box,
1320
+ .cropper-drag-box,
1321
+ .cropper-modal,
1322
+ .cropper-wrap-box {
1323
+ position: absolute;
1324
+ top: 0;
1325
+ right: 0;
1326
+ bottom: 0;
1327
+ left: 0;
1328
+ }
1329
+ .cropper-canvas,
1330
+ .cropper-wrap-box {
1331
+ overflow: hidden;
1332
+ }
1333
+ .cropper-drag-box {
1334
+ background-color: #fff;
1335
+ opacity: 0;
1336
+ }
1337
+ .cropper-modal {
1338
+ background-color: #000;
1339
+ opacity: 0.5;
1340
+ }
1341
+ .cropper-view-box {
1342
+ display: block;
1343
+ width: 100%;
1344
+ height: 100%;
1345
+ overflow: hidden;
1346
+ outline: 1px solid #39f;
1347
+ outline-color: rgba(51, 153, 255, 0.75);
1348
+ }
1349
+ .cropper-dashed {
1350
+ position: absolute;
1351
+ display: block;
1352
+ border: 0 dashed #eee;
1353
+ opacity: 0.5;
1354
+ }
1355
+ .cropper-dashed.dashed-h {
1356
+ top: 33.33333%;
1357
+ left: 0;
1358
+ width: 100%;
1359
+ height: 33.33333%;
1360
+ border-top-width: 1px;
1361
+ border-bottom-width: 1px;
1362
+ }
1363
+ .cropper-dashed.dashed-v {
1364
+ top: 0;
1365
+ left: 33.33333%;
1366
+ width: 33.33333%;
1367
+ height: 100%;
1368
+ border-right-width: 1px;
1369
+ border-left-width: 1px;
1370
+ }
1371
+ .cropper-center {
1372
+ position: absolute;
1373
+ top: 50%;
1374
+ left: 50%;
1375
+ display: block;
1376
+ width: 0;
1377
+ height: 0;
1378
+ opacity: 0.75;
1379
+ }
1380
+ .cropper-center::after,
1381
+ .cropper-center::before {
1382
+ position: absolute;
1383
+ display: block;
1384
+ background-color: #eee;
1385
+ content: ' ';
1386
+ }
1387
+ .cropper-center::before {
1388
+ top: 0;
1389
+ left: -3px;
1390
+ width: 7px;
1391
+ height: 1px;
1392
+ }
1393
+ .cropper-center::after {
1394
+ top: -3px;
1395
+ left: 0;
1396
+ width: 1px;
1397
+ height: 7px;
1398
+ }
1399
+ .cropper-face,
1400
+ .cropper-line,
1401
+ .cropper-point {
1402
+ position: absolute;
1403
+ display: block;
1404
+ width: 100%;
1405
+ height: 100%;
1406
+ opacity: 0.1;
1407
+ }
1408
+ .cropper-face {
1409
+ top: 0;
1410
+ left: 0;
1411
+ background-color: #fff;
1412
+ }
1413
+ .cropper-line {
1414
+ background-color: #39f;
1415
+ }
1416
+ .cropper-line.line-e {
1417
+ top: 0;
1418
+ right: -3px;
1419
+ width: 5px;
1420
+ cursor: e-resize;
1421
+ }
1422
+ .cropper-line.line-n {
1423
+ top: -3px;
1424
+ left: 0;
1425
+ height: 5px;
1426
+ cursor: n-resize;
1427
+ }
1428
+ .cropper-line.line-w {
1429
+ top: 0;
1430
+ left: -3px;
1431
+ width: 5px;
1432
+ cursor: w-resize;
1433
+ }
1434
+ .cropper-line.line-s {
1435
+ bottom: -3px;
1436
+ left: 0;
1437
+ height: 5px;
1438
+ cursor: s-resize;
1439
+ }
1440
+ .cropper-point {
1441
+ width: 5px;
1442
+ height: 5px;
1443
+ background-color: #39f;
1444
+ opacity: 0.75;
1445
+ }
1446
+ .cropper-point.point-e {
1447
+ top: 50%;
1448
+ right: -3px;
1449
+ margin-top: -3px;
1450
+ cursor: e-resize;
1451
+ }
1452
+ .cropper-point.point-n {
1453
+ top: -3px;
1454
+ left: 50%;
1455
+ margin-left: -3px;
1456
+ cursor: n-resize;
1457
+ }
1458
+ .cropper-point.point-w {
1459
+ top: 50%;
1460
+ left: -3px;
1461
+ margin-top: -3px;
1462
+ cursor: w-resize;
1463
+ }
1464
+ .cropper-point.point-s {
1465
+ bottom: -3px;
1466
+ left: 50%;
1467
+ margin-left: -3px;
1468
+ cursor: s-resize;
1469
+ }
1470
+ .cropper-point.point-ne {
1471
+ top: -3px;
1472
+ right: -3px;
1473
+ cursor: ne-resize;
1474
+ }
1475
+ .cropper-point.point-nw {
1476
+ top: -3px;
1477
+ left: -3px;
1478
+ cursor: nw-resize;
1479
+ }
1480
+ .cropper-point.point-sw {
1481
+ bottom: -3px;
1482
+ left: -3px;
1483
+ cursor: sw-resize;
1484
+ }
1485
+ .cropper-point.point-se {
1486
+ right: -3px;
1487
+ bottom: -3px;
1488
+ width: 20px;
1489
+ height: 20px;
1490
+ cursor: se-resize;
1491
+ opacity: 1;
1492
+ }
1493
+ @media (min-width: 768px) {
1494
+ .cropper-point.point-se {
1495
+ width: 15px;
1496
+ height: 15px;
1497
+ }
1498
+ }
1499
+ @media (min-width: 992px) {
1500
+ .cropper-point.point-se {
1501
+ width: 10px;
1502
+ height: 10px;
1503
+ }
1504
+ }
1505
+ @media (min-width: 1200px) {
1506
+ .cropper-point.point-se {
1507
+ width: 5px;
1508
+ height: 5px;
1509
+ opacity: 0.75;
1510
+ }
1511
+ }
1512
+ .cropper-point.point-se::before {
1513
+ position: absolute;
1514
+ right: -50%;
1515
+ bottom: -50%;
1516
+ display: block;
1517
+ width: 200%;
1518
+ height: 200%;
1519
+ background-color: #39f;
1520
+ opacity: 0;
1521
+ content: ' ';
1522
+ }
1523
+ .cropper-invisible {
1524
+ opacity: 0;
1525
+ }
1526
+ .cropper-bg {
1527
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
1528
+ }
1529
+ .cropper-hide {
1530
+ position: absolute;
1531
+ display: block;
1532
+ width: 0;
1533
+ height: 0;
1534
+ }
1535
+ .cropper-hidden {
1536
+ display: none !important;
1537
+ }
1538
+ .cropper-move {
1539
+ cursor: move;
1540
+ }
1541
+ .cropper-crop {
1542
+ cursor: crosshair;
1543
+ }
1544
+ .cropper-disabled .cropper-drag-box,
1545
+ .cropper-disabled .cropper-face,
1546
+ .cropper-disabled .cropper-line,
1547
+ .cropper-disabled .cropper-point {
1548
+ cursor: not-allowed;
1549
+ }
1550
+ .image-crop-modal-wrapper .arco-modal-footer {
1551
+ padding: 0;
1552
+ }
1553
+ .image-crop-modal-body {
1554
+ height: calc(100vh - 16vh - 114px);
1555
+ padding: 0;
1556
+ overflow: hidden;
1557
+ background: var(--color-fill-3);
1558
+ }
1559
+ .image-crop-modal-body .image-cropper {
1560
+ height: 100%;
1561
+ }
1562
+ .image-crop-modal-body .image-cropper .edit {
1563
+ height: calc(100% - 86px);
1564
+ padding: 24px;
1565
+ text-align: center;
1566
+ }
1567
+ .image-crop-modal-body .image-cropper .edit.fullHeight {
1568
+ height: 100%;
1569
+ }
1570
+ .image-crop-modal-body .image-cropper .edit .edit-cropper {
1571
+ position: relative;
1572
+ top: 50%;
1573
+ left: 50%;
1574
+ width: 100%;
1575
+ height: 100%;
1576
+ transform: translate(-50%, -50%);
1577
+ }
1578
+ .image-crop-modal-body .image-cropper .edit .edit-cropper #cropper_img {
1579
+ display: block;
1580
+ max-width: 100%;
1581
+ max-height: 100%;
1582
+ }
1583
+ .image-crop-modal-body .image-cropper .edit .edit-cropper #cropper_img.position {
1584
+ position: absolute;
1585
+ top: 50%;
1586
+ left: 50%;
1587
+ transform: translate(-50%, -50%);
1588
+ }
1589
+ .image-crop-modal-body .image-cropper .edit .edit-cropper .cropper-bg {
1590
+ background: none !important;
1591
+ }
1592
+ .image-crop-modal-body .image-cropper .tool {
1593
+ width: 100%;
1594
+ height: 86px;
1595
+ line-height: 86px;
1596
+ text-align: center;
1597
+ background: #fff;
1598
+ }
1599
+ .image-crop-modal-body .image-cropper .tool .btn {
1600
+ display: inline-block;
1601
+ margin: 0 30px;
1602
+ color: #474747;
1603
+ font-size: 14px;
1604
+ font-family: PingFangSC-Regular;
1605
+ letter-spacing: 0;
1606
+ vertical-align: middle;
1607
+ border: 1px solid #333;
1608
+ cursor: pointer;
1609
+ opacity: 0.8;
1610
+ }
1611
+ .image-crop-modal-body .image-cropper .tool .btn.btn1 {
1612
+ width: 41px;
1613
+ height: 33px;
1614
+ line-height: 33px;
1615
+ border: 1px dashed #333;
1616
+ }
1617
+ .image-crop-modal-body .image-cropper .tool .btn.btn2 {
1618
+ width: 35px;
1619
+ height: 35px;
1620
+ line-height: 35px;
1621
+ }
1622
+ .image-crop-modal-body .image-cropper .tool .btn.btn3 {
1623
+ width: 46px;
1624
+ height: 33px;
1625
+ line-height: 33px;
1626
+ }
1627
+ .image-crop-modal-body .image-cropper .tool .btn.btn4 {
1628
+ width: 34px;
1629
+ height: 47px;
1630
+ line-height: 47px;
1631
+ }
1632
+ .image-crop-modal-body .image-cropper .tool .btn.btn5 {
1633
+ width: 59px;
1634
+ height: 33px;
1635
+ line-height: 33px;
1636
+ }
1637
+ .image-crop-modal-body .image-cropper .tool .btn.btn6 {
1638
+ width: 33px;
1639
+ height: 59px;
1640
+ line-height: 59px;
1641
+ }
1642
+ .image-crop-modal-body .image-cropper .tool .btn:hover,
1643
+ .image-crop-modal-body .image-cropper .tool .btn.active {
1644
+ color: #4886ff;
1645
+ border-color: #4886ff;
1646
+ }
1647
+ .image-crop-modal-footer {
1648
+ display: flex;
1649
+ align-items: center;
1650
+ justify-content: space-between;
1651
+ padding: 10px 30px;
1652
+ overflow: hidden;
1653
+ border-top: solid 1px var(--color-border-1);
1654
+ }
1655
+ .image-crop-modal-footer .cropper-btn {
1656
+ padding: 6px !important;
1657
+ font-size: 18px;
1658
+ }
1659
+ .image-crop-modal-footer .cropper-btn + .cropper-btn {
1660
+ margin-left: 10px;
1661
+ }
1296
1662
  .tooltip-button {
1297
1663
  height: auto;
1298
1664
  padding: 20px;
@@ -2208,6 +2574,7 @@
2208
2574
  height: 40px !important;
2209
2575
  }
2210
2576
  .user-director-modal-body {
2577
+ background: var(--color-bg-1);
2211
2578
  padding: 0;
2212
2579
  }
2213
2580
  .user-director-modal-body .arco-collapse {
@@ -2216,10 +2583,10 @@
2216
2583
  .user-director-modal-body .arco-collapse-item-content {
2217
2584
  padding-left: 10px;
2218
2585
  padding-right: 0;
2219
- background: white;
2586
+ background: var(--color-bg-1);
2220
2587
  }
2221
2588
  .user-select-content {
2222
- height: 60vh;
2589
+ height: 50vh;
2223
2590
  display: flex;
2224
2591
  }
2225
2592
  .user-select-content .user-select-left,
@@ -2230,6 +2597,9 @@
2230
2597
  .user-select-content .user-select-left {
2231
2598
  border-right: 1px solid var(--color-neutral-3);
2232
2599
  }
2600
+ .user-select-content .user-select-right .scroll {
2601
+ height: calc(100% - 40px);
2602
+ }
2233
2603
  .user-select-content .user-select-right .user-select-right-title {
2234
2604
  display: flex;
2235
2605
  justify-content: space-between;
@@ -2238,19 +2608,28 @@
2238
2608
  padding: 6px 16px;
2239
2609
  border-bottom: 1px solid var(--color-neutral-3);
2240
2610
  }
2241
- .user-select-content .user-select-right .user-item {
2611
+ .user-select-content .user-item {
2242
2612
  display: flex;
2243
2613
  align-items: center;
2244
2614
  justify-content: space-between;
2615
+ }
2616
+ .user-select-content .user-item.padding {
2245
2617
  padding: 5px 16px;
2246
2618
  }
2247
- .user-select-content .user-select-right .user-item .action {
2619
+ .user-select-content .user-item .left {
2620
+ display: flex;
2621
+ align-items: center;
2622
+ }
2623
+ .user-select-content .user-item .left .avatar {
2624
+ margin-right: 10px;
2625
+ }
2626
+ .user-select-content .user-item .action {
2248
2627
  display: none;
2249
2628
  }
2250
- .user-select-content .user-select-right .user-item:hover {
2629
+ .user-select-content .user-item:hover {
2251
2630
  background-color: var(--color-fill-1);
2252
2631
  }
2253
- .user-select-content .user-select-right .user-item:hover .action {
2632
+ .user-select-content .user-item:hover .action {
2254
2633
  display: flex;
2255
2634
  }
2256
2635
  .user-select-content .tree-action {
@@ -2262,3 +2641,104 @@
2262
2641
  .user-select-content .arco-tree-node:hover .tree-action {
2263
2642
  display: inline-block;
2264
2643
  }
2644
+ .select-thumb-container .thumb-card-container {
2645
+ width: 100px;
2646
+ height: 58px;
2647
+ margin-right: 10px;
2648
+ border-radius: 4px;
2649
+ overflow: hidden;
2650
+ position: relative;
2651
+ }
2652
+ .select-thumb-container .thumb-card-container.model-5 {
2653
+ width: 75px;
2654
+ height: 100px;
2655
+ }
2656
+ .select-thumb-container .thumb-card-container.model-7 {
2657
+ width: 232px;
2658
+ height: 58px;
2659
+ }
2660
+ .select-thumb-container .thumb-card-container .img-v {
2661
+ width: 100%;
2662
+ height: 100%;
2663
+ position: relative;
2664
+ }
2665
+ .select-thumb-container .thumb-card-container .img-v .change-icon {
2666
+ width: 25px;
2667
+ height: 25px;
2668
+ font-size: 25px;
2669
+ position: absolute;
2670
+ left: 0;
2671
+ right: 0;
2672
+ top: 0;
2673
+ bottom: 0;
2674
+ margin: auto;
2675
+ z-index: 1;
2676
+ color: #ffffff;
2677
+ cursor: pointer;
2678
+ }
2679
+ .select-thumb-container .thumb-card-container .item {
2680
+ width: 100%;
2681
+ height: 100%;
2682
+ cursor: pointer;
2683
+ }
2684
+ .select-thumb-container .thumb-card-container .item.add-thumb {
2685
+ display: flex;
2686
+ align-items: center;
2687
+ justify-content: center;
2688
+ background-color: #f9f9f9;
2689
+ }
2690
+ .select-thumb-container .thumb-card-container .mask {
2691
+ display: none;
2692
+ width: 100%;
2693
+ height: 100%;
2694
+ background: rgba(0, 0, 0, 0.3);
2695
+ position: absolute;
2696
+ top: 0;
2697
+ align-items: center;
2698
+ justify-content: center;
2699
+ color: #eaeaea;
2700
+ font-size: 18px;
2701
+ }
2702
+ .select-thumb-container .thumb-card-container .mask i {
2703
+ display: inline-block;
2704
+ cursor: pointer;
2705
+ }
2706
+ .select-thumb-container .thumb-card-container .mask i:active {
2707
+ opacity: 0.4;
2708
+ }
2709
+ .select-thumb-container .thumb-card-container .mask .half {
2710
+ height: 100%;
2711
+ width: 48%;
2712
+ display: flex;
2713
+ align-items: center;
2714
+ justify-content: center;
2715
+ }
2716
+ .select-thumb-container .thumb-card-container .mask .half:hover {
2717
+ opacity: 0.7;
2718
+ }
2719
+ .select-thumb-container .thumb-card-container .img-v:hover .mask {
2720
+ display: flex;
2721
+ }
2722
+ .select-thumb-container .title {
2723
+ font-size: 14px;
2724
+ color: #4e5969;
2725
+ font-weight: 700;
2726
+ line-height: 40px;
2727
+ margin: 5px 0px;
2728
+ }
2729
+ .select-thumb-container .title span {
2730
+ margin-right: 10px;
2731
+ }
2732
+ .select-thumb-container .title .tip {
2733
+ font-size: 12px;
2734
+ color: rgba(78, 89, 105, 0.4);
2735
+ }
2736
+ .select-thumb-container .thumb-list-view {
2737
+ display: flex;
2738
+ align-items: center;
2739
+ margin-bottom: 10px;
2740
+ }
2741
+ .select-thumb-container .star {
2742
+ color: red;
2743
+ margin-right: 2px !important;
2744
+ }
package/es/index.d.ts CHANGED
@@ -8,9 +8,11 @@ export { default as contentModal } from './contentModal';
8
8
  export { default as resourceModal } from './resourceModal';
9
9
  export { default as previousVersion } from './previousVersion';
10
10
  export { default as selectGategory } from './selectGategory';
11
+ export { default as imageCrop } from './imageCrop';
11
12
  export { default as uploadBefore } from './uploadBefore';
12
13
  export { default as contentDetailList } from './contentDetailList';
13
14
  export { default as emptyData } from './emptyData';
14
15
  export { default as mediaFilter } from './mediaFilter';
15
16
  export { default as selectAvatarList } from './selectAvatarList';
16
17
  export { default as userDirector } from './userDirector';
18
+ export { default as selectThumb } from './selectThumb';
package/es/index.js CHANGED
@@ -8,9 +8,11 @@ export { default as contentModal } from "./contentModal/index.js";
8
8
  export { default as resourceModal } from "./resourceModal/index.js";
9
9
  export { default as previousVersion } from "./previousVersion/index.js";
10
10
  export { default as selectGategory } from "./selectGategory/index.js";
11
+ export { default as imageCrop } from "./imageCrop/index.js";
11
12
  export { default as uploadBefore } from "./uploadBefore/index.js";
12
13
  export { default as contentDetailList } from "./contentDetailList/index.js";
13
14
  export { default as emptyData } from "./emptyData/index.js";
14
15
  export { default as mediaFilter } from "./mediaFilter/index.js";
15
16
  export { default as selectAvatarList } from "./selectAvatarList/index.js";
16
17
  export { default as userDirector } from "./userDirector/index.js";
18
+ export { default as selectThumb } from "./selectThumb/index.js";
package/es/index.less CHANGED
@@ -8,9 +8,11 @@
8
8
  @import './resourceModal/style/index.less';
9
9
  @import './previousVersion/style/index.less';
10
10
  @import './selectGategory/style/index.less';
11
+ @import './imageCrop/style/index.less';
11
12
  @import './uploadBefore/style/index.less';
12
13
  @import './contentDetailList/style/index.less';
13
14
  @import './emptyData/style/index.less';
14
15
  @import './mediaFilter/style/index.less';
15
16
  @import './selectAvatarList/style/index.less';
16
17
  @import './userDirector/style/index.less';
18
+ @import './selectThumb/style/index.less';
@@ -15,9 +15,8 @@ const _sfc_main = defineComponent({
15
15
  BASE_API: {}
16
16
  },
17
17
  emits: ["search", "change"],
18
- setup(__props, { emit: __emit }) {
18
+ setup(__props, { emit: emits }) {
19
19
  const props = __props;
20
- const emits = __emit;
21
20
  props.BASE_API || DEFAULT_BASE_API;
22
21
  function handleFilterChange(params) {
23
22
  emits("change", params);
@@ -14,9 +14,8 @@ const _sfc_main = defineComponent({
14
14
  filterType: { default: "APV" }
15
15
  },
16
16
  emits: ["search", "change"],
17
- setup(__props, { emit: __emit }) {
17
+ setup(__props, { emit: emits }) {
18
18
  const props = __props;
19
- const emits = __emit;
20
19
  const { highLevelSearchOptions, showHighLevelSearch, sortOptions } = useHighLevelSearch(props.filterType);
21
20
  const filter = ref({
22
21
  keywords: "",
@@ -31,8 +31,7 @@ const _sfc_main = defineComponent({
31
31
  isNorMore: { type: Boolean }
32
32
  },
33
33
  emits: ["loadMoreMsg"],
34
- setup(__props, { emit: __emit }) {
35
- const emits = __emit;
34
+ setup(__props, { emit: emits }) {
36
35
  const props = __props;
37
36
  const isEmptyList = computed(() => {
38
37
  if (props.list.length === 0) {
@@ -36,9 +36,8 @@ const _sfc_main = defineComponent({
36
36
  targetArr: {}
37
37
  },
38
38
  emits: ["update:visible", "cancel"],
39
- setup(__props, { emit: __emit }) {
39
+ setup(__props, { emit }) {
40
40
  const props = __props;
41
- const emit = __emit;
42
41
  const BASE_API = props.BASE_API || DEFAULT_BASE_API;
43
42
  const title = props.title || "\u4E0A\u7248";
44
43
  const targetArr = computed(() => {
@@ -11,16 +11,14 @@ const _sfc_main = defineComponent({
11
11
  ai_static_covers: {},
12
12
  ai_gif_covers: {},
13
13
  preview: { type: Boolean },
14
- addType: {},
15
14
  base_api: {}
16
15
  },
17
16
  emits: ["update:dialogVisible", "submit"],
18
- setup(__props, { emit: __emit }) {
17
+ setup(__props, { emit }) {
19
18
  const props = __props;
20
19
  const BASE_API = props.base_api || DEFAULT_BASE_API;
21
20
  const selectedMax = ref(1);
22
- const emit = __emit;
23
- const add = (itemData) => {
21
+ const submit = (itemData) => {
24
22
  emit("submit", itemData);
25
23
  };
26
24
  const setVisible = (bool) => {
@@ -64,9 +62,8 @@ const _sfc_main = defineComponent({
64
62
  ai_static_covers: _ctx.ai_static_covers,
65
63
  ai_gif_covers: _ctx.ai_gif_covers,
66
64
  preview: _ctx.preview,
67
- "add-type": _ctx.addType,
68
- onAdd: add
69
- }, null, 8, ["selected-max", "catalog-props", "base_api", "ai_static_covers", "ai_gif_covers", "preview", "add-type"])
65
+ onConfirm: submit
66
+ }, null, 8, ["selected-max", "catalog-props", "base_api", "ai_static_covers", "ai_gif_covers", "preview"])
70
67
  ]),
71
68
  _: 1
72
69
  }, 8, ["visible"]);
@@ -26,10 +26,9 @@ const _sfc_main = defineComponent({
26
26
  url: {}
27
27
  },
28
28
  emits: ["close"],
29
- setup(__props, { emit: __emit }) {
29
+ setup(__props, { emit }) {
30
30
  const props = __props;
31
31
  const imageVisible = computed(() => props.type === "image");
32
- const emit = __emit;
33
32
  const closePreviewer = () => {
34
33
  emit("close", false);
35
34
  };