@cmstops/pro-compo 0.3.68 → 0.3.69

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 (80) hide show
  1. package/dist/index.css +125 -79
  2. package/dist/index.min.css +1 -1
  3. package/es/baseFilter/component.js +6 -1
  4. package/es/config.js +1 -1
  5. package/es/hooks/useAttachement.d.ts +14 -6
  6. package/es/hooks/useAttachement.js +15 -1
  7. package/es/hooks/useLocalStorage.d.ts +1 -0
  8. package/es/hooks/useLocalStorage.js +2 -1
  9. package/es/index.css +125 -79
  10. package/es/selectResourceModal/assets/images/sys_load_more.js +2 -0
  11. package/es/selectResourceModal/component.js +71 -170
  12. package/es/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +13 -11
  13. package/es/selectResourceModal/components/List/ListLocal/index.js +92 -0
  14. package/es/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +14 -14
  15. package/es/selectResourceModal/components/List/ListNormal/index.js +77 -0
  16. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  17. package/es/selectResourceModal/components/List/ListSystem/Filter.js +141 -0
  18. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  19. package/es/selectResourceModal/components/List/ListSystem/SubList.js +67 -0
  20. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  21. package/es/selectResourceModal/components/List/ListSystem/index.js +109 -0
  22. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  23. package/es/selectResourceModal/components/List/ListWraper.js +61 -0
  24. package/es/selectResourceModal/components/ListTabs/index.js +9 -18
  25. package/es/selectResourceModal/{components/ListFilter/scripts/api.d.ts → scripts/selectionApis.d.ts} +1 -0
  26. package/es/selectResourceModal/scripts/selectionApis.js +15 -0
  27. package/es/selectResourceModal/scripts/useCompoLf.d.ts +21 -0
  28. package/es/selectResourceModal/scripts/useCompoLf.js +32 -0
  29. package/es/selectResourceModal/scripts/useResourceSelect.js +7 -3
  30. package/es/selectResourceModal/scripts/useTabFilter.d.ts +21 -0
  31. package/es/selectResourceModal/scripts/useTabFilter.js +37 -0
  32. package/es/selectResourceModal/style/index.css +125 -79
  33. package/es/selectResourceModal/style/index.less +3 -32
  34. package/es/selectResourceModal/style/list.less +163 -0
  35. package/es/selectThumb/component.js +25 -13
  36. package/es/utils/filter.js +0 -1
  37. package/lib/baseFilter/component.js +6 -1
  38. package/lib/config.js +1 -1
  39. package/lib/hooks/useAttachement.js +16 -0
  40. package/lib/hooks/useLocalStorage.js +2 -1
  41. package/lib/index.css +125 -79
  42. package/lib/selectResourceModal/assets/images/sys_load_more.js +3 -0
  43. package/lib/selectResourceModal/component.js +71 -170
  44. package/lib/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +12 -10
  45. package/lib/selectResourceModal/components/List/ListLocal/index.js +93 -0
  46. package/lib/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +15 -15
  47. package/lib/selectResourceModal/components/List/ListNormal/index.js +78 -0
  48. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +142 -0
  49. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +68 -0
  50. package/lib/selectResourceModal/components/List/ListSystem/index.js +110 -0
  51. package/lib/selectResourceModal/components/List/ListWraper.js +62 -0
  52. package/lib/selectResourceModal/components/ListTabs/index.js +8 -17
  53. package/lib/selectResourceModal/{components/ListFilter/scripts/api.js → scripts/selectionApis.js} +8 -1
  54. package/lib/selectResourceModal/scripts/useCompoLf.js +33 -0
  55. package/lib/selectResourceModal/scripts/useResourceSelect.js +7 -3
  56. package/lib/selectResourceModal/scripts/useTabFilter.js +38 -0
  57. package/lib/selectResourceModal/style/index.css +125 -79
  58. package/lib/selectResourceModal/style/index.less +3 -32
  59. package/lib/selectResourceModal/style/list.less +163 -0
  60. package/lib/selectThumb/component.js +25 -13
  61. package/lib/utils/filter.js +0 -1
  62. package/package.json +1 -1
  63. package/es/selectResourceModal/components/ListContent/index.js +0 -46
  64. package/es/selectResourceModal/components/ListContentLocal/index.js +0 -93
  65. package/es/selectResourceModal/components/ListFilter/scripts/api.js +0 -9
  66. package/es/selectResourceModal/style/listContent.less +0 -5
  67. package/es/selectResourceModal/style/listContentLocal.less +0 -26
  68. package/es/selectResourceModal/style/listFilter.less +0 -41
  69. package/lib/selectResourceModal/components/ListContent/index.js +0 -47
  70. package/lib/selectResourceModal/components/ListContentLocal/index.js +0 -94
  71. package/lib/selectResourceModal/style/listContent.less +0 -5
  72. package/lib/selectResourceModal/style/listContentLocal.less +0 -26
  73. package/lib/selectResourceModal/style/listFilter.less +0 -41
  74. /package/es/selectResourceModal/components/{ListCardWrapper/index.d.ts → List/ListCardWrapper.d.ts} +0 -0
  75. /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.d.ts +0 -0
  76. /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
  77. /package/es/selectResourceModal/components/{ListContent → List/ListLocal}/index.d.ts +0 -0
  78. /package/es/selectResourceModal/components/{ListContentLocal/index.d.ts → List/ListNormal/Filter.d.ts} +0 -0
  79. /package/es/selectResourceModal/components/{ListFilter → List/ListNormal}/index.d.ts +0 -0
  80. /package/lib/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
package/es/index.css CHANGED
@@ -4350,43 +4350,6 @@
4350
4350
  opacity: 1;
4351
4351
  transition: all 0.3s ease-in-out;
4352
4352
  }
4353
- .card-list-wrapper {
4354
- display: grid;
4355
- grid-gap: 20px;
4356
- grid-template-columns: repeat(5, 1fr);
4357
- }
4358
- .list-filter-wrapper .list-filter-tags {
4359
- display: flex;
4360
- justify-content: space-between;
4361
- margin-top: 10px;
4362
- }
4363
- .list-filter-wrapper .list-filter-tags .list-filter-tag {
4364
- padding: 5px 16px;
4365
- border-radius: 15px;
4366
- cursor: pointer;
4367
- }
4368
- .list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
4369
- background-color: var(--color-fill-3);
4370
- }
4371
- .list-filter-wrapper .list-filter-tags .list-filter-tag.active {
4372
- color: rgb(var(--primary-6));
4373
- font-weight: bold;
4374
- background: var(--color-fill-2);
4375
- }
4376
- .list-filter-wrapper .list-filter {
4377
- display: flex;
4378
- justify-content: space-between;
4379
- }
4380
- .list-filter-wrapper .list-filter .filter-list {
4381
- display: flex;
4382
- gap: 10px;
4383
- }
4384
- .list-filter-wrapper .list-filter .filter-list .filter-item {
4385
- width: 100px;
4386
- }
4387
- .list-filter-wrapper .list-filter .arco-input-prepend {
4388
- padding: 0;
4389
- }
4390
4353
  .list-panel-wrapper {
4391
4354
  width: 420px;
4392
4355
  padding: 0 !important;
@@ -4467,26 +4430,6 @@
4467
4430
  white-space: nowrap;
4468
4431
  text-overflow: ellipsis;
4469
4432
  }
4470
- .upload-list-wrapper .list-content {
4471
- margin-top: 30px;
4472
- }
4473
- .upload-list-wrapper .list-content .list-tips {
4474
- margin-bottom: 16px;
4475
- color: #3d3d3d;
4476
- }
4477
- .upload-list-wrapper .upload-wrapper {
4478
- display: flex;
4479
- flex-direction: column;
4480
- }
4481
- .upload-list-wrapper .upload-wrapper .upload-buttons {
4482
- display: flex;
4483
- gap: 20px;
4484
- justify-content: center;
4485
- margin: 20px 0;
4486
- }
4487
- .upload-list-wrapper .upload-wrapper .upload-dragger {
4488
- width: calc(100% - 2px);
4489
- }
4490
4433
  .card-wrapper-image {
4491
4434
  position: relative;
4492
4435
  overflow: hidden;
@@ -4568,8 +4511,132 @@
4568
4511
  background-color: #165dff;
4569
4512
  border-color: #165dff;
4570
4513
  }
4514
+ .resource-list {
4515
+ display: flex;
4516
+ flex: 1;
4517
+ flex-direction: column;
4518
+ gap: 10px;
4519
+ overflow: hidden;
4520
+ }
4521
+ .resource-list-content {
4522
+ flex: 1;
4523
+ overflow: hidden;
4524
+ }
4525
+ .resource-list-footer,
4526
+ .resource-list-header,
4527
+ .resource-list-content .arco-scrollbar-container {
4528
+ padding: 0 40px;
4529
+ }
4530
+ .resource-list-footer {
4531
+ display: flex;
4532
+ justify-content: space-between;
4533
+ padding-bottom: 10px;
4534
+ }
4535
+ .resource-list-footer .footer-right {
4536
+ display: flex;
4537
+ flex: 1;
4538
+ gap: 10px;
4539
+ align-items: center;
4540
+ justify-content: flex-end;
4541
+ }
4542
+ .resource-list-content-loading {
4543
+ display: flex;
4544
+ align-items: center;
4545
+ justify-content: center;
4546
+ width: 100%;
4547
+ height: 100%;
4548
+ }
4549
+ .resource-list .list-item-grid {
4550
+ display: grid;
4551
+ grid-gap: 20px;
4552
+ grid-template-columns: repeat(5, 1fr);
4553
+ }
4554
+ .resource-list .list-content {
4555
+ margin-top: 30px;
4556
+ }
4557
+ .resource-list .list-content .list-tips {
4558
+ margin-bottom: 16px;
4559
+ color: #3d3d3d;
4560
+ }
4561
+ .resource-list .upload-wrapper {
4562
+ display: flex;
4563
+ flex-direction: column;
4564
+ }
4565
+ .resource-list .upload-wrapper .upload-buttons {
4566
+ display: flex;
4567
+ gap: 20px;
4568
+ justify-content: center;
4569
+ margin: 20px 0;
4570
+ }
4571
+ .resource-list .upload-wrapper .upload-dragger {
4572
+ width: calc(100% - 2px);
4573
+ }
4574
+ .resource-list .scen-module {
4575
+ margin-bottom: 20px;
4576
+ }
4577
+ .resource-list .scen-module .title {
4578
+ display: flex;
4579
+ gap: 8px;
4580
+ align-items: center;
4581
+ margin-bottom: 20px;
4582
+ font-weight: bold;
4583
+ font-size: 16px;
4584
+ }
4585
+ .resource-list .scen-module .title .line {
4586
+ width: 3px;
4587
+ height: 16px;
4588
+ background-color: #4886ff;
4589
+ }
4590
+ .resource-list .item-load-more {
4591
+ display: flex;
4592
+ flex-direction: column;
4593
+ gap: 10px;
4594
+ align-items: center;
4595
+ justify-content: center;
4596
+ width: 100%;
4597
+ overflow: hidden;
4598
+ color: #9a9a9a;
4599
+ font-size: 12px;
4600
+ cursor: pointer;
4601
+ aspect-ratio: 4 / 3;
4602
+ }
4603
+ .resource-list .item-load-more img {
4604
+ height: calc(100% - 40px);
4605
+ }
4606
+ .resource-list .list-filter-wrapper .list-filter-tags {
4607
+ display: flex;
4608
+ justify-content: space-between;
4609
+ margin-top: 10px;
4610
+ }
4611
+ .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
4612
+ padding: 5px 16px;
4613
+ border-radius: 15px;
4614
+ cursor: pointer;
4615
+ }
4616
+ .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
4617
+ background-color: var(--color-fill-3);
4618
+ }
4619
+ .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag.active {
4620
+ color: rgb(var(--primary-6));
4621
+ font-weight: bold;
4622
+ background: var(--color-fill-2);
4623
+ }
4624
+ .resource-list .list-filter-wrapper .list-filter {
4625
+ display: flex;
4626
+ justify-content: space-between;
4627
+ }
4628
+ .resource-list .list-filter-wrapper .list-filter .filter-list {
4629
+ display: flex;
4630
+ gap: 10px;
4631
+ }
4632
+ .resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
4633
+ width: 100px;
4634
+ }
4635
+ .resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
4636
+ padding: 0;
4637
+ }
4571
4638
  .resource-select-modal-body {
4572
- height: 70vh;
4639
+ height: 80vh;
4573
4640
  padding: 0;
4574
4641
  }
4575
4642
  .resource-select-main {
@@ -4587,13 +4654,6 @@
4587
4654
  box-sizing: border-box;
4588
4655
  height: 100%;
4589
4656
  }
4590
- .resource-select-container .resource-select-filter,
4591
- .resource-select-container .resource-select-footer {
4592
- padding: 0 40px;
4593
- }
4594
- .resource-select-container .resource-select-content .arco-scrollbar-container {
4595
- padding: 0 40px;
4596
- }
4597
4657
  .resource-select-container .resource-select-header {
4598
4658
  padding: 10px 24px 0 24px;
4599
4659
  }
@@ -4603,20 +4663,6 @@
4603
4663
  .resource-select-container .resource-select-header .arco-tabs-content {
4604
4664
  display: none !important;
4605
4665
  }
4606
- .resource-select-container .resource-select-content {
4607
- flex: 1;
4608
- overflow: hidden;
4609
- }
4610
- .resource-select-container .resource-select-footer {
4611
- display: flex;
4612
- justify-content: space-between;
4613
- padding-bottom: 10px;
4614
- }
4615
- .resource-select-container .resource-select-footer .footer-right {
4616
- display: flex;
4617
- gap: 10px;
4618
- align-items: center;
4619
- }
4620
4666
  .iframe-container {
4621
4667
  position: relative;
4622
4668
  height: 95vh;
@@ -0,0 +1,2 @@
1
+ var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABReSURBVHgB7V1rctvGlj4ARIp62BKj2LFdd8pU1dya8f0xUVZw5RVMsoLYK7CzgtgrSLyCK68gyQqsHViZqqnM3D+ia1JxLD9IPSiSIIme8zXYEggCIECCBEj2V0WbIkECRH845zuPbhi0ZDg+rm0XClSxirRHPaqYlnlfCLHNb1X4sd3frBLy8ar813D/N8ioOj3nDVn8N7/WuqCj3d1ynZYIBi0wQJbSBn0tHNozTeNL/rF7QlyRZCowDKoLoiPHEb8Kgw5Nh47u3i1XaUGxUAQCYYrrtG8I2jcN4z8p3JLMGkeGYRx1hfOLfUmHi2Sl5p5AIM3aGj0ikwnDxKF5AFsm0RMv+dnhvFunuSSQsjSWYTyZG9KEoU8mJtIBzSHmikBv39Yq5or5LQnxdNpaJgNU2c0dsih/Pk9WaS4IxMTZNyzj+7m3NjHBRDpwDOfl3VvlQ8o5ck2gZSPOEODeDPE8z0TKJYGWnjh+uDrpcR5dW64I5Goc4wfO23xNGkOQri1nGik3BHr3/vT7BRXHqcMwjWdf3Np6TjlA5gSS7so0/kH5SfrNC6rCEQ+ztkYmZQTkcv48Of2ByfOKNHnGQYXP3bG03BkiEwsErcN1op+53PAlaaSBzKzRzC3QycnpE9MyXmvypIoKl3Je//Fn7SnNGDO1QHBZEMqkMTWYpvHj7Vtb39GMMBMCaZc1cxyxS/tmFi5t6gQCebRQzgQz0UVT1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hSQKqj9fq/fnvElPiH/3VYnLiTA1UTGiIJq3/PLo30IBzxOGh6zrhI/XL3kgjWBL0ok7gst4q8IkPQ4oRLuS070iYPkPqMva/+48EBV3Mfq+VGJtU77koePbkYgybP+JgGeYCpjchvvx0/EqbxgxGiieJAtseuro6caakRjr5g/m4a5JHfT1PEf//zeM8QxqskJHLdnsWFwZKeEz8h0hbMgfugKYMtUYVDLkRnlbBt1Bo40DiWjsTSQpXd1sM0QvUozGSkQCLDMn5iObN3Fa6DNP3Zk5ow6QIZZiQJp00eYKYj98cfH380LesJaUwNTJ4XXJ4Yu7aVFDNdN+XevZ2nEHRGyH1aNcaHFMtCfDdL8sj9UgZ4+7ZWMUboIo34mKXL8iOTlZvwQ+98sb3LIi/W1BGNcMBltZu0nwV5gMzVq7ZGY6PaTw4eUobITfjDRHrGRPqeNCLRTwy+YOI8oxwgV/EzrBE71WdcS/uWNIaAKeaOI7PKVcoJcpmAkW7N4oKsuL6L4lJD0CHXBJ9n7a6CkOsMHhNpn4n0/dISKcfEUZiLFDCIxK7t0dK4tjkgjsJc1RA8GunvtGBRmxLH/PQgTxpnFOa2CMVkesTu7du5d29sbXqGeGFf4i445bnL0M99FVNaJaL9uSKTwLKB4pdmkw7mkTReLFQZ/Pi4tl1cp31Or39tkvGlIJpozlOKqOKWorgr5LxamjAsdB8FrJNj0h7XifZN0/iSf+yeEON3SMYBtIxw6Mghrk+ZdNRq0M+LRBg/lq4RB1aqVGLLZLEI71HFNM37whAV+aa4EuaVkI9X8Y/hLvfHz4264zhv+LuqFtFRo0HVRSZLEP4fk2v7Crb/X/wAAAAASUVORK5CYII=";
2
+ export { _imports_0 as default };
@@ -1,14 +1,12 @@
1
- import { defineComponent, computed, ref, provide, watch, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, createCommentVNode, createVNode, withDirectives, vShow, isRef, createTextVNode } from "vue";
2
- import { Drawer, Modal, Scrollbar, Pagination, Button } from "@arco-design/web-vue";
1
+ import { defineComponent, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, createCommentVNode, createVNode, isRef, createTextVNode } from "vue";
2
+ import { Drawer, Modal, Button } from "@arco-design/web-vue";
3
3
  import emptyData from "../emptyData/index.js";
4
4
  import _sfc_main$1 from "./components/ListTabs/index.js";
5
- import _sfc_main$2 from "./components/ListFilter/index.js";
6
- import _sfc_main$3 from "./components/ListContent/index.js";
7
- import _sfc_main$5 from "./components/ListSelected/index.js";
8
- import _sfc_main$4 from "./components/ListContentLocal/index.js";
9
- import useAttachement from "../hooks/useAttachement.js";
10
- import { DEFAULT_BASE_API } from "../config.js";
5
+ import _sfc_main$3 from "./components/ListSelected/index.js";
6
+ import _sfc_main$2 from "./components/List/ListCardWrapper.js";
11
7
  import { useResourceSelect } from "./scripts/useResourceSelect.js";
8
+ import useTabFilter from "./scripts/useTabFilter.js";
9
+ import useCompoentLifycycle from "./scripts/useCompoLf.js";
12
10
  const _hoisted_1 = { class: "resource-select-wrap" };
13
11
  const _hoisted_2 = { class: "resource-select-main" };
14
12
  const _hoisted_3 = {
@@ -16,13 +14,6 @@ const _hoisted_3 = {
16
14
  class: "resource-select-container"
17
15
  };
18
16
  const _hoisted_4 = {
19
- key: 0,
20
- class: "resource-select-filter"
21
- };
22
- const _hoisted_5 = { class: "resource-select-content" };
23
- const _hoisted_6 = { class: "resource-select-footer" };
24
- const _hoisted_7 = { class: "footer-left" };
25
- const _hoisted_8 = {
26
17
  key: 0,
27
18
  class: "footer-right"
28
19
  };
@@ -35,179 +26,89 @@ const _sfc_main = defineComponent({
35
26
  userInfo: {},
36
27
  maxcount: {},
37
28
  wrap: {},
38
- filterOptions: {}
29
+ filterOptions: {},
30
+ tabKeys: {},
31
+ mediaUseType: {}
39
32
  },
40
33
  emits: ["update:visible", "submit"],
41
34
  setup(__props, { emit: __emit }) {
42
35
  const props = __props;
43
36
  const emits = __emit;
44
- const BASE_API = props.BASE_API || DEFAULT_BASE_API;
45
- const wrapProps = computed(() => {
46
- if (props.wrap === "drawer") {
47
- return {
48
- class: "resource-select-drawer",
49
- header: false,
50
- width: "1024px",
51
- footer: false
52
- };
37
+ const { selected, selectedKeys, disableSelect, handleSelect, handleClear } = useResourceSelect(props);
38
+ const { activeKey, activeComponent, tabKeyList } = useTabFilter(props);
39
+ const { wrapProps, close, submit } = useCompoentLifycycle(props, emits);
40
+ const handleOptions = (options, handleOptions2) => {
41
+ const { key, meta } = options;
42
+ if (key === "select-one") {
43
+ if (Array.isArray(meta))
44
+ submit(meta);
45
+ else
46
+ submit([meta]);
47
+ close();
48
+ return;
53
49
  }
54
- return {
55
- bodyClass: "resource-select-modal-body",
56
- width: "986px",
57
- closable: false,
58
- hideTitle: false,
59
- footer: false
60
- };
61
- });
62
- const activeKey = ref("all");
63
- provide("filterOptions", computed(() => props.filterOptions));
64
- provide("userInfo", computed(() => props.userInfo));
65
- provide("baseAPI", BASE_API);
66
- const {
67
- list,
68
- total,
69
- limit,
70
- pageIdx,
71
- loading,
72
- changeKey,
73
- changeFilter,
74
- changePage,
75
- changeSize
76
- } = useAttachement({ key: "all", BASE_API });
77
- const {
78
- selected,
79
- selectedKeys,
80
- disableSelect,
81
- handleSelect,
82
- handleClear
83
- } = useResourceSelect(props);
84
- function handleClose() {
85
- handleClear();
86
- emits("update:visible", false);
87
- }
88
- const handleSubmit = (data) => {
89
- emits("submit", JSON.parse(JSON.stringify(data)));
90
- };
91
- const handleSelectOne = (params) => {
92
- if (Array.isArray(params))
93
- handleSubmit(params);
94
- else
95
- handleSubmit([params]);
96
- handleClose();
50
+ handleOptions2 && handleOptions2(options);
97
51
  };
98
52
  function handleConfirm() {
99
- handleSelectOne(selected.value);
53
+ submit(selected.value);
100
54
  }
101
- function handleToUpload() {
102
- changeKey("local");
103
- activeKey.value = "local";
55
+ function handelChangeTab(tabKey) {
56
+ activeKey.value = tabKey;
104
57
  }
105
- const FilterRef = ref();
106
- watch(
107
- () => props.visible,
108
- () => {
109
- if (props.visible) {
110
- activeKey.value = "all";
111
- changeKey("all");
112
- if (FilterRef.value)
113
- FilterRef.value.resetFilter();
114
- }
115
- }
116
- );
117
58
  return (_ctx, _cache) => {
118
59
  return openBlock(), createElementBlock("div", _hoisted_1, [
119
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.wrap === "drawer" ? unref(Drawer) : unref(Modal)), mergeProps({ visible: _ctx.visible }, wrapProps.value), {
60
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.wrap === "drawer" ? unref(Drawer) : unref(Modal)), mergeProps({ visible: _ctx.visible }, unref(wrapProps)), {
120
61
  default: withCtx(() => [
121
62
  createElementVNode("div", _hoisted_2, [
122
63
  _ctx.userInfo ? (openBlock(), createElementBlock("div", _hoisted_3, [
123
64
  createCommentVNode(" \u5934\u90E8 "),
124
65
  createVNode(_sfc_main$1, {
125
- "model-value": activeKey.value,
126
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeKey.value = $event),
127
- onChange: unref(changeKey),
128
- onClose: handleClose
129
- }, null, 8, ["model-value", "onChange"]),
130
- createCommentVNode(" \u7B5B\u9009 "),
131
- activeKey.value !== "local" ? (openBlock(), createElementBlock("div", _hoisted_4, [
132
- createVNode(_sfc_main$2, {
133
- ref_key: "FilterRef",
134
- ref: FilterRef,
135
- "disable-upload-by": !["all", "remind"].includes(activeKey.value),
136
- filterOptions: _ctx.filterOptions,
137
- onChange: unref(changeFilter),
138
- onUpload: handleToUpload
139
- }, null, 8, ["disable-upload-by", "filterOptions", "onChange"])
140
- ])) : createCommentVNode("v-if", true),
141
- createCommentVNode(" \u5217\u8868\u90E8\u5206 "),
142
- createElementVNode("div", _hoisted_5, [
143
- createVNode(unref(Scrollbar), {
144
- "outer-style": { height: "100%" },
145
- style: { "height": "100%", "overflow": "auto" }
146
- }, {
147
- default: withCtx(() => [
148
- withDirectives(createVNode(_sfc_main$3, {
149
- loading: unref(loading),
150
- list: unref(list),
151
- disable: unref(disableSelect),
152
- "select-keys": unref(selectedKeys),
153
- onSelect: unref(handleSelect),
154
- onSelectOne: handleSelectOne
155
- }, null, 8, ["loading", "list", "disable", "select-keys", "onSelect"]), [
156
- [vShow, activeKey.value !== "local"]
157
- ]),
158
- withDirectives(createVNode(_sfc_main$4, {
159
- disable: unref(disableSelect),
160
- "select-keys": unref(selectedKeys),
161
- onSelect: unref(handleSelect),
162
- onSelectOne: handleSelectOne
163
- }, null, 8, ["disable", "select-keys", "onSelect"]), [
164
- [vShow, activeKey.value === "local"]
165
- ])
166
- ]),
167
- _: 1
168
- })
169
- ]),
170
- createCommentVNode(" \u5E95\u90E8 "),
171
- createElementVNode("div", _hoisted_6, [
172
- createElementVNode("div", _hoisted_7, [
173
- activeKey.value !== "local" ? (openBlock(), createBlock(unref(Pagination), {
174
- key: 0,
175
- current: unref(pageIdx),
176
- "onUpdate:current": _cache[1] || (_cache[1] = ($event) => isRef(pageIdx) ? pageIdx.value = $event : null),
177
- total: unref(total),
178
- "page-size": unref(limit),
179
- "show-total": "",
180
- "show-page-size": "",
181
- "base-size": 3,
182
- "buffer-size": 1,
183
- onChange: _cache[2] || (_cache[2] = (e) => unref(changePage)((e - 1) * unref(limit))),
184
- onPageSizeChange: unref(changeSize)
185
- }, null, 8, ["current", "total", "page-size", "onPageSizeChange"])) : createCommentVNode("v-if", true)
66
+ "model-value": unref(activeKey),
67
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeKey) ? activeKey.value = $event : null),
68
+ tabList: unref(tabKeyList),
69
+ onClose: unref(close)
70
+ }, null, 8, ["model-value", "tabList", "onClose"]),
71
+ createCommentVNode(" \u5217\u8868\u5206\u53D1\u5668 "),
72
+ (openBlock(), createBlock(resolveDynamicComponent(unref(activeComponent)), {
73
+ "active-key": unref(activeKey),
74
+ onChangeTab: handelChangeTab
75
+ }, {
76
+ item: withCtx(({ item, onOptions }) => [
77
+ createVNode(_sfc_main$2, {
78
+ item,
79
+ "select-keys": unref(selectedKeys),
80
+ disable: unref(disableSelect),
81
+ onSelect: unref(handleSelect),
82
+ onOptions: (e) => handleOptions(e, onOptions)
83
+ }, null, 8, ["item", "select-keys", "disable", "onSelect", "onOptions"])
84
+ ]),
85
+ "footer-extra": withCtx(() => [
86
+ unref(selected).length ? (openBlock(), createElementBlock("div", _hoisted_4, [
87
+ createVNode(_sfc_main$3, {
88
+ maxcount: _ctx.maxcount,
89
+ selected: unref(selected),
90
+ onRemove: unref(handleSelect),
91
+ onClear: unref(handleClear)
92
+ }, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
93
+ createVNode(unref(Button), { onClick: unref(close) }, {
94
+ default: withCtx(() => [
95
+ createTextVNode("\u53D6\u6D88")
96
+ ]),
97
+ _: 1
98
+ }, 8, ["onClick"]),
99
+ createVNode(unref(Button), {
100
+ type: "primary",
101
+ onClick: handleConfirm
102
+ }, {
103
+ default: withCtx(() => [
104
+ createTextVNode(" \u786E\u5B9A ")
105
+ ]),
106
+ _: 1
107
+ })
108
+ ])) : createCommentVNode("v-if", true)
186
109
  ]),
187
- unref(selected).length ? (openBlock(), createElementBlock("div", _hoisted_8, [
188
- createVNode(_sfc_main$5, {
189
- maxcount: _ctx.maxcount,
190
- selected: unref(selected),
191
- onRemove: unref(handleSelect),
192
- onClear: unref(handleClear)
193
- }, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
194
- createVNode(unref(Button), { onClick: handleClose }, {
195
- default: withCtx(() => [
196
- createTextVNode("\u53D6\u6D88")
197
- ]),
198
- _: 1
199
- }),
200
- createVNode(unref(Button), {
201
- type: "primary",
202
- onClick: handleConfirm
203
- }, {
204
- default: withCtx(() => [
205
- createTextVNode("\u786E\u5B9A")
206
- ]),
207
- _: 1
208
- })
209
- ])) : createCommentVNode("v-if", true)
210
- ])
110
+ _: 1
111
+ }, 40, ["active-key"]))
211
112
  ])) : (openBlock(), createBlock(unref(emptyData), {
212
113
  key: 1,
213
114
  type: "empty",
@@ -1,4 +1,4 @@
1
- import { defineComponent, inject, computed, openBlock, createElementBlock, withModifiers, createElementVNode, normalizeClass, createVNode, unref, toDisplayString, createCommentVNode } from "vue";
1
+ import { defineComponent, inject, computed, openBlock, createElementBlock, withModifiers, createElementVNode, normalizeClass, createVNode, unref, toDisplayString, createCommentVNode, Fragment } from "vue";
2
2
  import thumbCard from "../../../thumbCard/index.js";
3
3
  const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "mask" }, null, -1);
4
4
  const _hoisted_2 = { class: "card-alias" };
@@ -6,12 +6,9 @@ const _hoisted_3 = {
6
6
  key: 0,
7
7
  class: "check-box active"
8
8
  };
9
- const _hoisted_4 = {
10
- key: 1,
11
- class: "check-box"
12
- };
9
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "check-box" }, null, -1);
13
10
  const _sfc_main = defineComponent({
14
- __name: "index",
11
+ __name: "ListCardWrapper",
15
12
  props: {
16
13
  item: {},
17
14
  extraKeys: {},
@@ -23,6 +20,7 @@ const _sfc_main = defineComponent({
23
20
  const props = __props;
24
21
  const emits = __emit;
25
22
  const filterOptions = inject("filterOptions");
23
+ const resourceKey = computed(() => props.item.id || props.item.url);
26
24
  const selectedOrder = computed(() => {
27
25
  var _a;
28
26
  const result = {};
@@ -44,7 +42,7 @@ const _sfc_main = defineComponent({
44
42
  return true;
45
43
  });
46
44
  const handlersKey = computed(() => {
47
- var _a;
45
+ var _a, _b;
48
46
  if (props.item.status === 2) {
49
47
  return [
50
48
  { label: "\u91CD\u65B0\u4E0A\u4F20", key: "reupload" },
@@ -54,13 +52,13 @@ const _sfc_main = defineComponent({
54
52
  if (props.item.status === 3) {
55
53
  return [{ label: "\u91CD\u65B0\u8F6C\u7801", key: "retranscode" }];
56
54
  }
57
- if (((_a = props.selectKeys) == null ? void 0 : _a.length) > 0 || props.disable || !canIUse.value) {
55
+ if (((_a = props.selectKeys) == null ? void 0 : _a.length) && ((_b = props.selectKeys) == null ? void 0 : _b.length) > 0 || props.disable || !canIUse.value) {
58
56
  return [];
59
57
  }
60
58
  return [{ label: "\u9009\u7528", key: "select-one" }].concat(props.extraKeys || []);
61
59
  });
62
60
  function handleCheck() {
63
- if (!canIUse.value && !selectedOrder.value[props.item.id])
61
+ if (!canIUse.value && !selectedOrder.value[resourceKey.value])
64
62
  return;
65
63
  emits("select", props.item);
66
64
  }
@@ -70,7 +68,7 @@ const _sfc_main = defineComponent({
70
68
  onClick: withModifiers(handleCheck, ["stop"])
71
69
  }, [
72
70
  createElementVNode("div", {
73
- class: normalizeClass(["card-wrapper", { disable: !canIUse.value, active: selectedOrder.value[_ctx.item.id] }])
71
+ class: normalizeClass(["card-wrapper", { disable: !canIUse.value, active: selectedOrder.value[resourceKey.value] }])
74
72
  }, [
75
73
  createVNode(unref(thumbCard), {
76
74
  url: _ctx.item.url,
@@ -91,7 +89,11 @@ const _sfc_main = defineComponent({
91
89
  class: "check-box-wrapper",
92
90
  onClick: withModifiers(handleCheck, ["stop"])
93
91
  }, [
94
- selectedOrder.value[_ctx.item.id] ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(selectedOrder.value[_ctx.item.id]), 1)) : canIUse.value ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("v-if", true)
92
+ createCommentVNode(" \u5DF2\u9009 "),
93
+ selectedOrder.value[resourceKey.value] ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(selectedOrder.value[resourceKey.value]), 1)) : canIUse.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
94
+ createCommentVNode(" \u662F\u5426\u53EF\u4EE5\u9009\u62E9 "),
95
+ _hoisted_4
96
+ ], 64)) : createCommentVNode("v-if", true)
95
97
  ])
96
98
  ]);
97
99
  };