@cmstops/pro-compo 0.1.20 → 0.1.22

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 (103) hide show
  1. package/dist/index.css +182 -3
  2. package/dist/index.min.css +1 -1
  3. package/es/baseFilter/component.js +187 -0
  4. package/es/baseFilter/index.d.ts +2 -0
  5. package/es/baseFilter/index.js +7 -0
  6. package/es/baseFilter/style/css.js +1 -0
  7. package/es/baseFilter/style/index.css +9 -0
  8. package/es/baseFilter/style/index.d.ts +1 -0
  9. package/es/baseFilter/style/index.js +1 -0
  10. package/es/baseFilter/style/index.less +10 -0
  11. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  12. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  13. package/es/contentDetailList/components/Content/DocMpItem/index.js +117 -0
  14. package/es/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  15. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  16. package/es/contentDetailList/components/Content/index.js +43 -0
  17. package/es/contentDetailList/components/DocTags/index.d.ts +0 -0
  18. package/es/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
  19. package/es/contentDetailList/style/ComoItem.less +1 -1
  20. package/es/contentDetailList/style/DocItem.less +1 -1
  21. package/es/contentDetailList/style/DocMpItem.less +136 -0
  22. package/es/contentDetailList/style/LiveItem.less +1 -1
  23. package/es/contentDetailList/style/index.css +118 -3
  24. package/es/contentDetailList/style/index.less +1 -0
  25. package/es/contentModal/component.js +0 -1
  26. package/es/contentModal/components/ViewAllColumn/index.js +1 -0
  27. package/es/editMetaInfo/component.d.ts +0 -0
  28. package/es/editMetaInfo/component.js +87 -0
  29. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  30. package/es/editMetaInfo/components/metaInfoForm.js +621 -0
  31. package/es/editMetaInfo/index.d.ts +2 -0
  32. package/es/editMetaInfo/index.js +7 -0
  33. package/es/editMetaInfo/script/api.d.ts +6 -0
  34. package/es/editMetaInfo/script/api.js +17 -0
  35. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  36. package/es/editMetaInfo/script/restaurants.js +127 -0
  37. package/es/editMetaInfo/style/css.js +1 -0
  38. package/es/editMetaInfo/style/index.css +20 -0
  39. package/es/editMetaInfo/style/index.d.ts +1 -0
  40. package/es/editMetaInfo/style/index.js +1 -0
  41. package/es/editMetaInfo/style/index.less +30 -0
  42. package/es/hooks/dialogVisible.d.ts +8 -0
  43. package/es/hooks/dialogVisible.js +19 -0
  44. package/es/index.css +182 -3
  45. package/es/index.d.ts +2 -0
  46. package/es/index.js +2 -0
  47. package/es/index.less +2 -0
  48. package/es/selectThumb/component.js +3 -1
  49. package/es/selectThumb/components/colorPalette.js +32 -26
  50. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  51. package/es/selectThumb/components/colorPicker.js +54 -0
  52. package/es/selectThumb/style/colorPalette.less +31 -0
  53. package/es/selectThumb/style/index.css +35 -0
  54. package/es/selectThumb/style/index.less +7 -0
  55. package/es/typeIcons/component.js +5 -2
  56. package/es/utils/index.d.ts +1 -0
  57. package/es/utils/index.js +16 -1
  58. package/es/utils/typeMap.d.ts +17 -13
  59. package/es/utils/typeMap.js +18 -2
  60. package/lib/baseFilter/component.js +188 -0
  61. package/lib/baseFilter/index.js +8 -0
  62. package/lib/baseFilter/style/css.js +2 -0
  63. package/lib/baseFilter/style/index.css +9 -0
  64. package/lib/baseFilter/style/index.js +2 -0
  65. package/lib/baseFilter/style/index.less +10 -0
  66. package/lib/contentDetailList/components/Content/DocItem/index.js +1 -1
  67. package/lib/contentDetailList/components/Content/DocMpItem/index.js +118 -0
  68. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  69. package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  70. package/lib/contentDetailList/components/Content/index.js +43 -0
  71. package/lib/contentDetailList/components/{Content/KongoNavItem/DocTags → DocTags}/index.js +9 -4
  72. package/lib/contentDetailList/style/ComoItem.less +1 -1
  73. package/lib/contentDetailList/style/DocItem.less +1 -1
  74. package/lib/contentDetailList/style/DocMpItem.less +136 -0
  75. package/lib/contentDetailList/style/LiveItem.less +1 -1
  76. package/lib/contentDetailList/style/index.css +118 -3
  77. package/lib/contentDetailList/style/index.less +1 -0
  78. package/lib/contentModal/component.js +0 -1
  79. package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
  80. package/lib/editMetaInfo/component.js +88 -0
  81. package/lib/editMetaInfo/components/metaInfoForm.js +622 -0
  82. package/lib/editMetaInfo/index.js +8 -0
  83. package/lib/editMetaInfo/script/api.js +20 -0
  84. package/lib/editMetaInfo/script/restaurants.js +128 -0
  85. package/lib/editMetaInfo/style/css.js +2 -0
  86. package/lib/editMetaInfo/style/index.css +20 -0
  87. package/lib/editMetaInfo/style/index.js +2 -0
  88. package/lib/editMetaInfo/style/index.less +30 -0
  89. package/lib/hooks/dialogVisible.js +20 -0
  90. package/lib/index.css +182 -3
  91. package/lib/index.js +4 -0
  92. package/lib/index.less +2 -0
  93. package/lib/selectThumb/component.js +3 -1
  94. package/lib/selectThumb/components/colorPalette.js +32 -26
  95. package/lib/selectThumb/components/colorPicker.js +55 -0
  96. package/lib/selectThumb/style/colorPalette.less +31 -0
  97. package/lib/selectThumb/style/index.css +35 -0
  98. package/lib/selectThumb/style/index.less +7 -0
  99. package/lib/typeIcons/component.js +4 -1
  100. package/lib/utils/index.js +16 -0
  101. package/lib/utils/typeMap.js +19 -1
  102. package/package.json +9 -9
  103. /package/es/{contentDetailList/components/Content/KongoNavItem/DocTags/index.d.ts → baseFilter/component.d.ts} +0 -0
@@ -0,0 +1,127 @@
1
+ var restaurants = [
2
+ { value: "\u4EBA\u6C11\u89C6\u9891\u5BA2\u6237\u7AEF" },
3
+ { value: "\u4E2D\u56FD\u9752\u5E74\u62A5\u5BA2\u6237\u7AEF" },
4
+ { value: "\u592E\u89C6\u65B0\u95FB\u5BA2\u6237\u7AEF" },
5
+ { value: "\u592E\u89C6\u7F51" },
6
+ { value: "\u65B0\u534E\u793E" },
7
+ { value: "\u65B0\u534E\u7F51" },
8
+ { value: "\u4EBA\u6C11\u7F51" },
9
+ { value: "\u68A8\u89C6\u9891" },
10
+ { value: "\u5317\u9752\u7F51" },
11
+ { value: "21\u4E16\u7EAA\u7ECF\u6D4E\u62A5\u9053" },
12
+ { value: "\u4E0A\u89C2\u65B0\u95FB" },
13
+ { value: "\u4E1C\u5317\u65B0\u95FB\u7F51" },
14
+ { value: "\u4E1C\u5317\u7F51" },
15
+ { value: "\u4E1C\u5357\u7F51" },
16
+ { value: "\u4E1C\u65B9\u7F51" },
17
+ { value: "\u4E2D\u534E\u5973\u6027\u7F51" },
18
+ { value: "\u4E2D\u56FD\u53F0\u6E7E\u7F51" },
19
+ { value: "\u4E2D\u56FD\u5409\u6797\u7F51" },
20
+ { value: "\u4E2D\u56FD\u5546\u52A1\u65B0\u95FB\u7F51" },
21
+ { value: "\u4E2D\u56FD\u5C71\u4E1C\u7F51" },
22
+ { value: "\u4E2D\u56FD\u6444\u5F71\u62A5" },
23
+ { value: "\u4E2D\u56FD\u6559\u80B2\u5728\u7EBF" },
24
+ { value: "\u4E2D\u56FD\u6559\u80B2\u65B0\u95FB\u7F51" },
25
+ { value: "\u4E2D\u56FD\u65E5\u62A5\u7F51" },
26
+ { value: "\u4E2D\u56FD\u6C5F\u82CF\u7F51" },
27
+ { value: "\u4E2D\u56FD\u6C5F\u897F\u7F51" },
28
+ { value: "\u4E2D\u56FD\u7518\u8083\u7F51" },
29
+ { value: "\u4E2D\u56FD\u7ECF\u8425\u7F51" },
30
+ { value: "\u4E2D\u56FD\u7F51" },
31
+ { value: "\u4E2D\u56FD\u822A\u5929\u79D1\u6280\u96C6\u56E2\u6709\u9650\u516C\u53F8\u7F51\u7AD9" },
32
+ { value: "\u4E2D\u56FD\u897F\u85CF\u7F51" },
33
+ { value: "\u4E2D\u56FD\u8B66\u5BDF\u7F51" },
34
+ { value: "\u4E2D\u56FD\u8D28\u91CF\u65B0\u95FB\u7F51" },
35
+ { value: "\u4E2D\u592E\u53A8\u623F" },
36
+ { value: "\u4E2D\u5DE5\u7F51" },
37
+ { value: "\u4E2D\u65B0\u7ECF\u7EAC" },
38
+ { value: "\u4E2D\u65B0\u7F51" },
39
+ { value: "\u4E2D\u7ECF\u7F51" },
40
+ { value: "\u4E91\u5357\u7F51" },
41
+ { value: "\u4EA4\u6C47\u70B9" },
42
+ { value: "\u5149\u660E\u7F51" },
43
+ { value: "\u5317\u4EAC\u5546\u62A5" },
44
+ { value: "\u5317\u4EAC\u65F6\u95F4" },
45
+ { value: "\u5317\u4EAC\u6668\u62A5\u7F51" },
46
+ { value: "\u5317\u56FD\u7F51" },
47
+ { value: "\u5317\u65B9\u7F51" },
48
+ { value: "\u5343\u9F99\u65B0\u95FB\u7F51" },
49
+ { value: "\u534E\u58F0\u5728\u7EBF" },
50
+ { value: "\u534E\u9F99\u7F51" },
51
+ { value: "\u5357\u4EAC\u6668\u62A5\u7F51" },
52
+ { value: "\u5357\u65B9\u65E5\u62A5" },
53
+ { value: "\u5357\u6D77\u7F51" },
54
+ { value: "\u53F0\u6D77\u7F51" },
55
+ { value: "\u56DB\u5DDD\u65B0\u95FB\u7F51" },
56
+ { value: "\u56FD\u9645\u5728\u7EBF" },
57
+ { value: "\u591A\u5F69\u8D35\u5DDE\u7F51" },
58
+ { value: "\u5927\u4F17\u7F51" },
59
+ { value: "\u5927\u516C\u7F51" },
60
+ { value: "\u5927\u6CB3\u7F51" },
61
+ { value: "\u5B81\u590F\u65B0\u95FB\u7F51" },
62
+ { value: "\u5BA2\u5BB6\u65B0\u95FB\u7F51" },
63
+ { value: "\u5C01\u9762\u65B0\u95FB\u7F51" },
64
+ { value: "\u5E02\u573A\u77AD\u671B" },
65
+ { value: "\u5E02\u573A\u89C2\u5BDF\u7F51" },
66
+ { value: "\u5E7F\u897F\u65B0\u95FB\u7F51" },
67
+ { value: "\u626C\u5B50\u665A\u62A5\u7F51" },
68
+ { value: "\u6536\u85CF\u5FEB\u62A5" },
69
+ { value: "\u6587\u6C47\u62A5" },
70
+ { value: "\u65B0\u534E\u62A5\u4E1A\u7F51" },
71
+ { value: "\u65B0\u534E\u65E5\u62A5\u8D22\u7ECF\u7F51" },
72
+ { value: "\u65B0\u6C11\u665A\u62A5/\u65B0\u6C11\u7F51" },
73
+ { value: "\u65B0\u6D6A\u4E50\u5C45" },
74
+ { value: "\u65B0\u7586\u5929\u5C71\u7F51" },
75
+ { value: "\u664B\u6C5F\u7ECF\u6D4E\u62A5" },
76
+ { value: "\u6B63\u4E49\u7F51" },
77
+ { value: "\u6BCF\u5468\u6587\u6458" },
78
+ { value: "\u6C5F\u5357\u65F6\u62A5\u7F51" },
79
+ { value: "\u6C5F\u82CF\u7ECF\u6D4E\u7F51" },
80
+ { value: "\u6C5F\u82CF\u8206\u60C5\u89C2\u5BDF" },
81
+ { value: "\u6CB3\u5317\u5171\u4EA7\u515A\u5458\u7F51" },
82
+ { value: "\u6CB3\u5317\u65B0\u95FB\u7F51" },
83
+ { value: "\u6CB3\u5317\u7ECF\u6D4E\u7F51" },
84
+ { value: "\u6CB3\u9752\u7F51" },
85
+ { value: "\u6CD5\u5236\u7F51" },
86
+ { value: "\u6D59\u6C5F\u5728\u7EBF" },
87
+ { value: "\u6D77\u4E1D\u5546\u62A5" },
88
+ { value: "\u6D77\u5916\u7F51" },
89
+ { value: "\u6D77\u5CE1\u5BFC\u62A5" },
90
+ { value: "\u6D77\u5CE1\u6559\u80B2\u62A5" },
91
+ { value: "\u6D77\u5CE1\u6CD5\u6CBB\u5728\u7EBF" },
92
+ { value: "\u6D77\u5CE1\u6D88\u8D39\u62A5" },
93
+ { value: "\u6D77\u5CE1\u7F51" },
94
+ { value: "\u6D77\u5CE1\u90FD\u5E02\u62A5" },
95
+ { value: "\u6DF1\u5733\u65B0\u95FB\u7F51" },
96
+ { value: "\u6DF1\u5733\u65E5\u62A5" },
97
+ { value: "\u6F8E\u6E43\u65B0\u95FB" },
98
+ { value: "\u73AF\u7403\u7F51" },
99
+ { value: "\u7709\u5C71\u7F51" },
100
+ { value: "\u77F3\u5BB6\u5E84\u65B0\u95FB\u7F51" },
101
+ { value: "\u77F3\u72EE\u65E5\u62A5" },
102
+ { value: "\u798F\u5EFA\u65E5\u62A5" },
103
+ { value: "\u798F\u5EFA\u6CD5\u6CBB\u62A5" },
104
+ { value: "\u79D1\u6280\u65E5\u62A5" },
105
+ { value: "\u79D1\u666E\u4E2D\u56FD" },
106
+ { value: "\u79E6\u7687\u5C9B\u65B0\u95FB\u7F51" },
107
+ { value: "\u7B2C\u4E00\u751F\u6D3B\u7F51\uFF08\u77E5\u97F3\uFF09" },
108
+ { value: "\u7EA2\u7F51" },
109
+ { value: "\u7ECF\u6D4E\u89C2\u5BDF\u62A5" },
110
+ { value: "\u897F\u90E8\u7F51" },
111
+ { value: "\u89C2\u5BDF\u8005\u7F51" },
112
+ { value: "\u8D22\u7ECF\u7F51" },
113
+ { value: "\u90D1\u5DDE\u665A\u62A5" },
114
+ { value: "\u91CD\u5E86\u534E\u9F99\u7F51" },
115
+ { value: "\u91D1\u7F8A\u7F51" },
116
+ { value: "\u91D1\u878D\u754C" },
117
+ { value: "\u957F\u57CE\u7F51" },
118
+ { value: "\u957F\u6C5F\u4E91" },
119
+ { value: "\u957F\u6C5F\u7F51" },
120
+ { value: "\u95FD\u5357\u7F51" },
121
+ { value: "\u9655\u897F\u5934\u6761" },
122
+ { value: "\u9C81\u7F51" },
123
+ { value: "\u9EC4\u6CB3\u65B0\u95FB\u7F51" },
124
+ { value: "\u9F50\u9C81\u665A\u62A5" },
125
+ { value: "\u9F50\u9C81\u7F51" }
126
+ ];
127
+ export { restaurants as default };
@@ -0,0 +1 @@
1
+ import "./index.css";
@@ -0,0 +1,20 @@
1
+ .edit-meta-info-dialog-body {
2
+ padding: 0;
3
+ }
4
+ .edit-meta-info-dialog-body .style-form-item {
5
+ position: relative;
6
+ top: -10px;
7
+ }
8
+ .edit-meta-info-dialog-body .style-form-item .title {
9
+ max-width: 100%;
10
+ color: var(--color-text-2);
11
+ font-size: 14px;
12
+ font-weight: 400;
13
+ white-space: normal;
14
+ }
15
+ .edit-meta-info-dialog-body .select-thumb-wrap {
16
+ margin-left: 20.8%;
17
+ }
18
+ .edit-meta-info-dialog-body .input-w {
19
+ width: 450px;
20
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import "./index.less";
@@ -0,0 +1,30 @@
1
+ .edit-meta-info-dialog-body {
2
+ padding: 0;
3
+ .style-form-item {
4
+ position: relative;
5
+ top: -10px;
6
+ .title {
7
+ max-width: 100%;
8
+ color: var(--color-text-2);
9
+ font-size: 14px;
10
+ font-weight: 400;
11
+ white-space: normal;
12
+ }
13
+ }
14
+ .select-thumb-wrap {
15
+ margin-left: 20.8%;
16
+ }
17
+ .horizontal {
18
+ // display: flex;
19
+ // align-items: center;
20
+ // flex-direction: row !important;
21
+ // .arco-form-item-label-col {
22
+ // margin-bottom: 0;
23
+ // padding-right: 16px;
24
+ // text-align: right;
25
+ // }
26
+ }
27
+ .input-w {
28
+ width: 450px;
29
+ }
30
+ }
@@ -0,0 +1,8 @@
1
+ declare type ComponentProps = {
2
+ visible: boolean;
3
+ };
4
+ export default function useDialogVisible(props: ComponentProps, emit: any): {
5
+ visible: import("vue").WritableComputedRef<unknown>;
6
+ setVisible: (bool: boolean) => void;
7
+ };
8
+ export {};
@@ -0,0 +1,19 @@
1
+ import { computed } from "vue";
2
+ function useDialogVisible(props, emit) {
3
+ const setVisible = (bool) => {
4
+ emit("update:visible", bool);
5
+ };
6
+ const visible = computed({
7
+ get() {
8
+ return props.visible;
9
+ },
10
+ set(value) {
11
+ setVisible(value);
12
+ }
13
+ });
14
+ return {
15
+ visible,
16
+ setVisible
17
+ };
18
+ }
19
+ export { useDialogVisible as default };
package/es/index.css CHANGED
@@ -1887,7 +1887,7 @@
1887
1887
  .medialist-component-item-view .info-view .abttrite-v .left .abttr.tags {
1888
1888
  display: flex;
1889
1889
  align-items: center;
1890
- width: 175px;
1890
+ width: 190px;
1891
1891
  }
1892
1892
  .medialist-component-item-view .info-view .abttrite-v .right {
1893
1893
  margin-right: 20px;
@@ -2208,7 +2208,7 @@
2208
2208
  .medialist-ilive-item-view .info-view .abttrite-v .left .abttr.tags {
2209
2209
  display: flex;
2210
2210
  align-items: center;
2211
- width: 160px;
2211
+ width: 190px;
2212
2212
  }
2213
2213
  .medialist-ilive-item-view .info-view .abttrite-v .left .abttr.type {
2214
2214
  display: inline-block;
@@ -2397,7 +2397,7 @@
2397
2397
  }
2398
2398
  .medialist-doc-item-view .info-view .abttrite-v .left .tags {
2399
2399
  display: inline-block;
2400
- width: 160px;
2400
+ width: 190px;
2401
2401
  }
2402
2402
  .medialist-doc-item-view .info-view .abttrite-v .left .abttr {
2403
2403
  display: inline-block;
@@ -2429,6 +2429,121 @@
2429
2429
  .popper-categories {
2430
2430
  max-width: 600px;
2431
2431
  }
2432
+ .medialist-mpdoc-item-view {
2433
+ display: flex;
2434
+ padding: 10px;
2435
+ border-bottom: 1px solid #f0f0f0;
2436
+ }
2437
+ .medialist-mpdoc-item-view:hover {
2438
+ background: #fafafa;
2439
+ }
2440
+ .medialist-mpdoc-item-view .cover-view {
2441
+ position: relative;
2442
+ flex-shrink: 0;
2443
+ width: 110px;
2444
+ height: 70px;
2445
+ margin-right: 20px;
2446
+ background: #edf3ff;
2447
+ }
2448
+ .medialist-mpdoc-item-view .cover-view .image {
2449
+ width: 100%;
2450
+ height: 100%;
2451
+ border-radius: 4px;
2452
+ }
2453
+ .medialist-mpdoc-item-view .cover-view .batch-select {
2454
+ position: absolute;
2455
+ top: 3px;
2456
+ left: 5px;
2457
+ }
2458
+ .medialist-mpdoc-item-view .cover-view .arco-image-img {
2459
+ width: 100%;
2460
+ height: 100%;
2461
+ border-radius: 4px;
2462
+ }
2463
+ .medialist-mpdoc-item-view .cover-view .no-img {
2464
+ display: flex;
2465
+ align-items: center;
2466
+ justify-content: center;
2467
+ width: 100%;
2468
+ height: 100%;
2469
+ color: white;
2470
+ font-size: 30px;
2471
+ }
2472
+ .medialist-mpdoc-item-view .info-view {
2473
+ display: flex;
2474
+ flex: 1;
2475
+ flex-direction: column;
2476
+ justify-content: space-between;
2477
+ padding: 2px 0;
2478
+ }
2479
+ .medialist-mpdoc-item-view .info-view .title {
2480
+ width: calc(100% - 50px);
2481
+ display: flex;
2482
+ align-items: center;
2483
+ margin-bottom: 10px;
2484
+ overflow: hidden;
2485
+ color: #1d2129;
2486
+ font-size: 14px;
2487
+ font-style: normal;
2488
+ font-weight: 400;
2489
+ line-height: 22px;
2490
+ cursor: pointer;
2491
+ -webkit-line-clamp: 2;
2492
+ -webkit-box-orient: vertical;
2493
+ }
2494
+ .medialist-mpdoc-item-view .info-view .title:hover {
2495
+ color: #4886ff;
2496
+ text-decoration: underline;
2497
+ }
2498
+ .medialist-mpdoc-item-view .info-view .title:hover .index {
2499
+ text-decoration: unset;
2500
+ }
2501
+ .medialist-mpdoc-item-view .info-view .abttrite-v {
2502
+ display: flex;
2503
+ align-items: center;
2504
+ justify-content: space-between;
2505
+ }
2506
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left {
2507
+ display: flex;
2508
+ flex: 1;
2509
+ align-items: center;
2510
+ color: #4e5969;
2511
+ font-size: 12px;
2512
+ }
2513
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .icon {
2514
+ margin-right: 8px;
2515
+ }
2516
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .tags {
2517
+ display: inline-block;
2518
+ width: 190px;
2519
+ }
2520
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr {
2521
+ display: inline-block;
2522
+ width: 20%;
2523
+ margin-right: 10px;
2524
+ overflow: hidden;
2525
+ white-space: nowrap;
2526
+ text-overflow: ellipsis;
2527
+ cursor: pointer;
2528
+ }
2529
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.btn {
2530
+ padding: 0;
2531
+ text-align: left;
2532
+ }
2533
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.btn:hover,
2534
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.btn:active {
2535
+ background: transparent;
2536
+ }
2537
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr .btn {
2538
+ padding: 0;
2539
+ text-align: left;
2540
+ }
2541
+ .medialist-mpdoc-item-view .info-view .abttrite-v .left .abttr.time {
2542
+ width: 30%;
2543
+ }
2544
+ .medialist-mpdoc-item-view .info-view .abttrite-v .right {
2545
+ margin-right: 20px;
2546
+ }
2432
2547
  .gray-for-state-hide {
2433
2548
  -webkit-filter: grayscale(100%);
2434
2549
  -moz-filter: grayscale(100%);
@@ -2712,6 +2827,35 @@
2712
2827
  .select-thumb-container .thumb-card-container .img-v:hover .mask {
2713
2828
  display: flex;
2714
2829
  }
2830
+ .select-thumb-container .color-radio-group {
2831
+ overflow: hidden;
2832
+ }
2833
+ .select-thumb-container .color-radio-group .arco-radio-button {
2834
+ width: 32px;
2835
+ height: 32px;
2836
+ padding: 0;
2837
+ font-size: 0 !important;
2838
+ overflow: hidden !important;
2839
+ background: transparent !important;
2840
+ border-width: 0 !important;
2841
+ box-shadow: none !important;
2842
+ position: relative;
2843
+ }
2844
+ .select-thumb-container .color-radio-group .arco-radio-button.arco-radio-checked::after {
2845
+ box-sizing: content-box;
2846
+ content: '';
2847
+ border: 2px solid #fff;
2848
+ border-left: 0;
2849
+ border-top: 0;
2850
+ height: 11px;
2851
+ left: 12px;
2852
+ position: absolute;
2853
+ top: 7px;
2854
+ transform: rotate(45deg) scaleY(1);
2855
+ width: 5px;
2856
+ transition: transform 0.15s ease-in 0.05s;
2857
+ transform-origin: center;
2858
+ }
2715
2859
  .select-thumb-container .title {
2716
2860
  font-size: 14px;
2717
2861
  color: #4e5969;
@@ -2735,3 +2879,38 @@
2735
2879
  color: red;
2736
2880
  margin-right: 2px !important;
2737
2881
  }
2882
+ .select-thumb-container .color-picker-input {
2883
+ width: 32px;
2884
+ height: 32px;
2885
+ border: none;
2886
+ padding: 0px 2px;
2887
+ }
2888
+ .edit-meta-info-dialog-body {
2889
+ padding: 0;
2890
+ }
2891
+ .edit-meta-info-dialog-body .style-form-item {
2892
+ position: relative;
2893
+ top: -10px;
2894
+ }
2895
+ .edit-meta-info-dialog-body .style-form-item .title {
2896
+ max-width: 100%;
2897
+ color: var(--color-text-2);
2898
+ font-size: 14px;
2899
+ font-weight: 400;
2900
+ white-space: normal;
2901
+ }
2902
+ .edit-meta-info-dialog-body .select-thumb-wrap {
2903
+ margin-left: 20.8%;
2904
+ }
2905
+ .edit-meta-info-dialog-body .input-w {
2906
+ width: 450px;
2907
+ }
2908
+ .base-filter-container {
2909
+ display: flex;
2910
+ align-items: center;
2911
+ justify-content: space-between;
2912
+ }
2913
+ .base-filter-container .left {
2914
+ display: flex;
2915
+ align-items: center;
2916
+ }
package/es/index.d.ts CHANGED
@@ -16,3 +16,5 @@ export { default as mediaFilter } from './mediaFilter';
16
16
  export { default as selectAvatarList } from './selectAvatarList';
17
17
  export { default as userDirector } from './userDirector';
18
18
  export { default as selectThumb } from './selectThumb';
19
+ export { default as editMetaInfo } from './editMetaInfo';
20
+ export { default as baseFilter } from './baseFilter';
package/es/index.js CHANGED
@@ -16,3 +16,5 @@ export { default as mediaFilter } from "./mediaFilter/index.js";
16
16
  export { default as selectAvatarList } from "./selectAvatarList/index.js";
17
17
  export { default as userDirector } from "./userDirector/index.js";
18
18
  export { default as selectThumb } from "./selectThumb/index.js";
19
+ export { default as editMetaInfo } from "./editMetaInfo/index.js";
20
+ export { default as baseFilter } from "./baseFilter/index.js";
package/es/index.less CHANGED
@@ -16,3 +16,5 @@
16
16
  @import './selectAvatarList/style/index.less';
17
17
  @import './userDirector/style/index.less';
18
18
  @import './selectThumb/style/index.less';
19
+ @import './editMetaInfo/style/index.less';
20
+ @import './baseFilter/style/index.less';
@@ -35,7 +35,7 @@ const _hoisted_15 = /* @__PURE__ */ createElementVNode("span", { class: "star" }
35
35
  const _hoisted_16 = { key: 2 };
36
36
  const _hoisted_17 = /* @__PURE__ */ createElementVNode("span", { class: "tip" }, "(\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px)", -1);
37
37
  const _hoisted_18 = { class: "title" };
38
- const _hoisted_19 = /* @__PURE__ */ createElementVNode("span", null, "\u4E13\u9898\u5934\u56FE\u80CC\u666F\u989C\u8272", -1);
38
+ const _hoisted_19 = /* @__PURE__ */ createElementVNode("span", null, "\u5934\u56FE\u80CC\u666F\u989C\u8272", -1);
39
39
  const _hoisted_20 = [
40
40
  _hoisted_19
41
41
  ];
@@ -229,6 +229,8 @@ const _sfc_main = defineComponent({
229
229
  };
230
230
  const cropConfirm = (data) => {
231
231
  dialogMediaSelectionShow.value = false;
232
+ if (!styleData.value)
233
+ return;
232
234
  if (thumbBannerModel.value === "banner") {
233
235
  styleData.value.banner_url = data[0].url;
234
236
  styleData.value.banner_colorList = JSON.parse(
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, ref, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock, normalizeStyle, createCommentVNode } from "vue";
2
2
  import { RadioGroup, Radio } from "@arco-design/web-vue";
3
+ import _sfc_main$1 from "./colorPicker.js";
3
4
  const _hoisted_1 = {
4
5
  key: 0,
5
6
  class: "color-palette-container"
@@ -15,44 +16,44 @@ const _sfc_main = defineComponent({
15
16
  const props = __props;
16
17
  const color = ref("rgb(101,121,109)");
17
18
  const colorList = ref([]);
19
+ const colorChange = (_color) => {
20
+ if (_color) {
21
+ color.value = _color.replace(/\s+/g, "");
22
+ const styleData = JSON.parse(JSON.stringify(props.styleData));
23
+ styleData[`${props.model}_theme_color`] = color.value;
24
+ emit("change", styleData);
25
+ }
26
+ };
27
+ const colorRgb = (_color) => {
28
+ if (_color.includes("rgb")) {
29
+ return _color;
30
+ }
31
+ const red = parseInt(_color.slice(1, 3), 16);
32
+ const green = parseInt(_color.slice(3, 5), 16);
33
+ const blue = parseInt(_color.slice(5, 7), 16);
34
+ return `rgb(${red},${green},${blue})`;
35
+ };
18
36
  watch(
19
37
  () => props.styleData,
20
38
  () => {
21
39
  if (props.styleData) {
22
40
  const _color = props.styleData[`${props.model}_theme_color`] || "";
23
41
  color.value = colorRgb(_color);
24
- const colorList2 = props.styleData.value[`${props.model}_colorList`];
25
- if (colorList2 == null ? void 0 : colorList2.length) {
26
- colorList2.value = colorList2.map((color2) => `rgb(${color2})`);
42
+ const _colorList = props.styleData[`${props.model}_colorList`];
43
+ if (_colorList == null ? void 0 : _colorList.length) {
44
+ colorList.value = _colorList.map((color2) => `rgb(${color2})`);
27
45
  } else if (color.value) {
28
- colorList2.value = [color.value];
46
+ colorList.value = [color.value];
29
47
  }
30
48
  }
31
- }
49
+ },
50
+ { immediate: true }
32
51
  );
33
- const colorChange = (color2) => {
34
- if (color2) {
35
- color2.value = color2.replace(/\s+/g, "");
36
- const styleData = JSON.parse(JSON.stringify(props.styleData));
37
- styleData[`${props.model}_theme_color`] = color2.value;
38
- emit("change", styleData);
39
- }
40
- };
41
- const colorRgb = (_color) => {
42
- if (_color.includes("rgb")) {
43
- return _color;
44
- }
45
- const colorChange2 = [];
46
- for (let i = 1; i < 7; i += 2) {
47
- colorChange2.push(parseInt(`0x${_color.slice(i, i + 2)}`, 10) || 0);
48
- }
49
- return `rgb(${colorChange2.join(",")})`;
50
- };
51
52
  return (_ctx, _cache) => {
52
53
  return colorList.value && colorList.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
53
54
  createVNode(unref(RadioGroup), {
54
55
  modelValue: color.value,
55
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => color.value = $event),
56
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => color.value = $event),
56
57
  class: "color-radio-group",
57
58
  type: "button",
58
59
  onChange: colorChange
@@ -61,10 +62,15 @@ const _sfc_main = defineComponent({
61
62
  (openBlock(true), createElementBlock(Fragment, null, renderList(colorList.value, (colr, index) => {
62
63
  return openBlock(), createBlock(unref(Radio), {
63
64
  key: index,
64
- style: normalizeStyle({ background: `${colr}` }),
65
+ style: normalizeStyle({ background: `${colr} !important` }),
65
66
  value: colr
66
67
  }, null, 8, ["style", "value"]);
67
- }), 128))
68
+ }), 128)),
69
+ createVNode(_sfc_main$1, {
70
+ modelValue: color.value,
71
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => color.value = $event),
72
+ onChange: colorChange
73
+ }, null, 8, ["modelValue"])
68
74
  ]),
69
75
  _: 1
70
76
  }, 8, ["modelValue"])
File without changes
@@ -0,0 +1,54 @@
1
+ import { defineComponent, ref, watch, openBlock, createElementBlock } from "vue";
2
+ const _hoisted_1 = ["value"];
3
+ const _sfc_main = defineComponent({
4
+ __name: "colorPicker",
5
+ props: {
6
+ modelValue: String
7
+ },
8
+ emits: ["update:modelValue", "change"],
9
+ setup(__props, { emit }) {
10
+ const props = __props;
11
+ const color = ref(props.modelValue || "#ffffff");
12
+ watch(
13
+ () => props.modelValue,
14
+ () => {
15
+ if (props.modelValue) {
16
+ color.value = rgbToHex(props.modelValue);
17
+ }
18
+ },
19
+ { immediate: true }
20
+ );
21
+ watch(color, (newColor) => {
22
+ emit("update:modelValue", newColor);
23
+ emit("change", newColor);
24
+ });
25
+ const updateColor = (event) => {
26
+ const hexColor = event.target.value;
27
+ const rgbColor = hexToRgb(hexColor);
28
+ color.value = rgbColor;
29
+ };
30
+ function hexToRgb(hex) {
31
+ const red = parseInt(hex.slice(1, 3), 16);
32
+ const green = parseInt(hex.slice(3, 5), 16);
33
+ const blue = parseInt(hex.slice(5, 7), 16);
34
+ return `rgb(${red}, ${green}, ${blue})`;
35
+ }
36
+ function rgbToHex(rgb) {
37
+ if (rgb.includes("NaN"))
38
+ return "";
39
+ if (rgb.includes("#"))
40
+ return rgb;
41
+ const [red, green, blue] = rgb.match(/\d+/g).map(Number);
42
+ return `#${((1 << 24) + (red << 16) + (green << 8) + blue).toString(16).slice(1).toUpperCase()}`;
43
+ }
44
+ return (_ctx, _cache) => {
45
+ return openBlock(), createElementBlock("input", {
46
+ class: "color-picker-input",
47
+ type: "color",
48
+ value: color.value,
49
+ onInput: updateColor
50
+ }, null, 40, _hoisted_1);
51
+ };
52
+ }
53
+ });
54
+ export { _sfc_main as default };
@@ -0,0 +1,31 @@
1
+ .color-radio-group {
2
+ overflow: hidden;
3
+ .arco-radio-button {
4
+ width: @radio-button-size;
5
+ height: @radio-button-size;
6
+ padding: 0;
7
+ font-size: 0 !important;
8
+ overflow: hidden !important;
9
+ background: transparent !important;
10
+ border-width: 0 !important;
11
+ box-shadow: none !important;
12
+ position: relative;
13
+ &.arco-radio-checked {
14
+ &::after {
15
+ box-sizing: content-box;
16
+ content: '';
17
+ border: 2px solid #fff;
18
+ border-left: 0;
19
+ border-top: 0;
20
+ height: 11px;
21
+ left: 12px;
22
+ position: absolute;
23
+ top: 7px;
24
+ transform: rotate(45deg) scaleY(1);
25
+ width: 5px;
26
+ transition: transform 0.15s ease-in 0.05s;
27
+ transform-origin: center;
28
+ }
29
+ }
30
+ }
31
+ }