@cmstops/pro-compo 3.9.1-rc.10 → 3.9.1-rc.12

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 (43) hide show
  1. package/README.md +134 -134
  2. package/es/docHistory/style/index.less +37 -37
  3. package/es/index.js +1 -0
  4. package/es/selectAddTo/component.js +127 -0
  5. package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  6. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +169 -0
  7. package/es/selectAddTo/components/ViewAllColumn/index.js +211 -0
  8. package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  9. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +102 -0
  10. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +195 -0
  11. package/es/selectAddTo/index.js +7 -0
  12. package/es/selectAddTo/script/api.js +30 -0
  13. package/es/selectAddTo/script/useSelectAddToState.js +106 -0
  14. package/es/selectAddTo/style/css.js +1 -0
  15. package/es/selectAddTo/style/index.css +3 -0
  16. package/es/selectAddTo/style/index.js +1 -0
  17. package/es/selectAddTo/style/index.less +3 -0
  18. package/es/selectResourceModal/components/List/ListLocal/index.js +1 -1
  19. package/es/selectResourceModal/style/index.less +55 -55
  20. package/es/selectResourceModal/style/list.less +203 -203
  21. package/es/style.css +57 -0
  22. package/es/typeIcons/component.js +1 -1
  23. package/lib/docHistory/style/index.less +37 -37
  24. package/lib/index.js +2 -0
  25. package/lib/selectAddTo/component.js +128 -0
  26. package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  27. package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +170 -0
  28. package/lib/selectAddTo/components/ViewAllColumn/index.js +212 -0
  29. package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  30. package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +108 -0
  31. package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +197 -0
  32. package/lib/selectAddTo/index.js +8 -0
  33. package/lib/selectAddTo/script/api.js +35 -0
  34. package/lib/selectAddTo/script/useSelectAddToState.js +108 -0
  35. package/lib/selectAddTo/style/css.js +2 -0
  36. package/lib/selectAddTo/style/index.css +3 -0
  37. package/lib/selectAddTo/style/index.js +2 -0
  38. package/lib/selectAddTo/style/index.less +3 -0
  39. package/lib/selectResourceModal/components/List/ListLocal/index.js +1 -1
  40. package/lib/selectResourceModal/style/index.less +55 -55
  41. package/lib/selectResourceModal/style/list.less +203 -203
  42. package/lib/typeIcons/component.js +1 -1
  43. package/package.json +138 -138
@@ -1,55 +1,55 @@
1
- @import './listSelected.less';
2
- @import './listCardWrapper.less';
3
- @import './list.less';
4
-
5
- .resource-select-wrap {
6
- width: 100%;
7
- height: 100%;
8
- }
9
-
10
- .resource-select-modal-body {
11
- height: 80vh;
12
- padding: 0;
13
- }
14
-
15
- .resource-select-main {
16
- height: 100%;
17
- }
18
-
19
- .resource-select-drawer {
20
- .arco-drawer-body {
21
- box-sizing: border-box;
22
- padding: 0;
23
- overflow: hidden;
24
- }
25
- }
26
-
27
- .resource-select-container {
28
- display: flex;
29
- flex-direction: column;
30
- gap: 10px;
31
- box-sizing: border-box;
32
- height: 100%;
33
-
34
- // 头部 tab 样式
35
- .resource-select-header {
36
- padding: 10px 24px 0 24px;
37
-
38
- .arco-tabs-nav::before {
39
- display: none;
40
- }
41
-
42
- .arco-tabs-content {
43
- display: none !important;
44
- }
45
- }
46
-
47
- // 内容区域样式
48
- .resource-list-content {
49
- .resource-list-content-empty {
50
- box-sizing: border-box;
51
- width: 100%;
52
- height: 100%;
53
- }
54
- }
55
- }
1
+ @import './listSelected.less';
2
+ @import './listCardWrapper.less';
3
+ @import './list.less';
4
+
5
+ .resource-select-wrap {
6
+ width: 100%;
7
+ height: 100%;
8
+ }
9
+
10
+ .resource-select-modal-body {
11
+ height: 80vh;
12
+ padding: 0;
13
+ }
14
+
15
+ .resource-select-main {
16
+ height: 100%;
17
+ }
18
+
19
+ .resource-select-drawer {
20
+ .arco-drawer-body {
21
+ box-sizing: border-box;
22
+ padding: 0;
23
+ overflow: hidden;
24
+ }
25
+ }
26
+
27
+ .resource-select-container {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 10px;
31
+ box-sizing: border-box;
32
+ height: 100%;
33
+
34
+ // 头部 tab 样式
35
+ .resource-select-header {
36
+ padding: 10px 24px 0 24px;
37
+
38
+ .arco-tabs-nav::before {
39
+ display: none;
40
+ }
41
+
42
+ .arco-tabs-content {
43
+ display: none !important;
44
+ }
45
+ }
46
+
47
+ // 内容区域样式
48
+ .resource-list-content {
49
+ .resource-list-content-empty {
50
+ box-sizing: border-box;
51
+ width: 100%;
52
+ height: 100%;
53
+ }
54
+ }
55
+ }
@@ -1,203 +1,203 @@
1
- // 基础列表 layout 样式
2
- .resource-list {
3
- display: flex;
4
- flex: 1;
5
- flex-direction: column;
6
- gap: 10px;
7
- overflow: hidden;
8
-
9
- // 整体布局结构
10
- &-content {
11
- flex: 1;
12
- overflow: hidden;
13
- }
14
-
15
- &-footer,
16
- &-header,
17
- &-content .resource-list-content-empty,
18
- &-content .arco-scrollbar-container {
19
- padding: 0 40px;
20
- }
21
-
22
- &-footer {
23
- display: flex;
24
- flex-wrap: wrap;
25
- justify-content: space-between;
26
- padding-bottom: 20px;
27
-
28
- .footer-right {
29
- display: flex;
30
- flex: 1;
31
- gap: 10px;
32
- align-items: center;
33
- justify-content: flex-end;
34
- margin-top: 10px;
35
-
36
- .list-selected-wrapper {
37
- font-size: 12px;
38
- }
39
- }
40
- }
41
-
42
- // 处理空数据 & 加载中样式
43
- &-content {
44
- &-loading {
45
- display: flex;
46
- align-items: center;
47
- justify-content: center;
48
- width: 100%;
49
- height: 100%;
50
- }
51
- }
52
-
53
- // 所有的卡片 grid 布局
54
- .list-item-grid {
55
- display: grid;
56
- grid-gap: 20px;
57
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
58
- }
59
- }
60
-
61
- // 衍生列表一:本地上传页面样式
62
- .resource-list {
63
- .list-content {
64
- margin-top: 30px;
65
-
66
- .list-tips {
67
- margin-bottom: 16px;
68
- color: #3d3d3d;
69
- }
70
- }
71
-
72
- .upload-wrapper {
73
- display: flex;
74
- flex-direction: column;
75
-
76
- .upload-buttons {
77
- display: flex;
78
- gap: 20px;
79
- justify-content: center;
80
- margin: 20px 0;
81
- }
82
-
83
- .upload-dragger {
84
- width: calc(100% - 2px);
85
- }
86
- }
87
- }
88
-
89
- // 衍生列表二:内置素材
90
- .resource-list {
91
- .scen-module {
92
- margin-bottom: 20px;
93
- }
94
-
95
- .item-load-more {
96
- display: flex;
97
- flex-direction: column;
98
- gap: 10px;
99
- align-items: center;
100
- justify-content: center;
101
- width: 100%;
102
- overflow: hidden;
103
- color: #9a9a9a;
104
- font-size: 12px;
105
- cursor: pointer;
106
- aspect-ratio: 4 / 3;
107
-
108
- img {
109
- height: calc(100% - 40px);
110
- }
111
- }
112
- }
113
-
114
- // 列表筛选样式
115
- .resource-list .list-filter-wrapper {
116
- .list-filter-tags {
117
- display: flex;
118
- flex-wrap: wrap;
119
- gap: 10px;
120
- margin-top: 10px;
121
-
122
- .list-filter-tag {
123
- padding: 5px 16px;
124
- border-radius: 15px;
125
- cursor: pointer;
126
-
127
- &:hover {
128
- background-color: var(--color-fill-3);
129
- }
130
-
131
- &.active {
132
- color: rgb(var(--primary-6));
133
- font-weight: bold;
134
- background: var(--color-fill-2);
135
- }
136
- }
137
- }
138
-
139
- .list-filter {
140
- display: flex;
141
- justify-content: space-between;
142
-
143
- .filter-list {
144
- position: relative; /** 给 popup 一个参考 */
145
- display: flex;
146
-
147
- .filter-item {
148
- width: 100px;
149
- margin-right: 10px;
150
- }
151
-
152
- .arco-trigger-popup {
153
- z-index: 100000 !important;
154
- }
155
- }
156
-
157
- .arco-input-prepend {
158
- padding: 0;
159
- }
160
-
161
- .more-btn {
162
- position: relative; /** 给 poperjs 一个参考 */
163
-
164
- .filter-pannel {
165
- inset: 40px auto auto auto !important;
166
- }
167
- }
168
- }
169
-
170
- .filter-extra {
171
- display: flex;
172
- gap: 10px;
173
- }
174
-
175
- .filter-pannel {
176
- z-index: 100000;
177
- display: flex;
178
- flex-direction: column;
179
- gap: 10px;
180
- padding: 10px;
181
- background-color: #fff;
182
- border-radius: 4px;
183
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
184
- }
185
- }
186
-
187
- // 二级列表的标题样式
188
- .resource-list {
189
- .title {
190
- display: flex;
191
- gap: 8px;
192
- align-items: center;
193
- margin-bottom: 20px;
194
- font-weight: bold;
195
- font-size: 16px;
196
-
197
- .line {
198
- width: 3px;
199
- height: 16px;
200
- background-color: #4886ff;
201
- }
202
- }
203
- }
1
+ // 基础列表 layout 样式
2
+ .resource-list {
3
+ display: flex;
4
+ flex: 1;
5
+ flex-direction: column;
6
+ gap: 10px;
7
+ overflow: hidden;
8
+
9
+ // 整体布局结构
10
+ &-content {
11
+ flex: 1;
12
+ overflow: hidden;
13
+ }
14
+
15
+ &-footer,
16
+ &-header,
17
+ &-content .resource-list-content-empty,
18
+ &-content .arco-scrollbar-container {
19
+ padding: 0 40px;
20
+ }
21
+
22
+ &-footer {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ justify-content: space-between;
26
+ padding-bottom: 20px;
27
+
28
+ .footer-right {
29
+ display: flex;
30
+ flex: 1;
31
+ gap: 10px;
32
+ align-items: center;
33
+ justify-content: flex-end;
34
+ margin-top: 10px;
35
+
36
+ .list-selected-wrapper {
37
+ font-size: 12px;
38
+ }
39
+ }
40
+ }
41
+
42
+ // 处理空数据 & 加载中样式
43
+ &-content {
44
+ &-loading {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ width: 100%;
49
+ height: 100%;
50
+ }
51
+ }
52
+
53
+ // 所有的卡片 grid 布局
54
+ .list-item-grid {
55
+ display: grid;
56
+ grid-gap: 20px;
57
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
58
+ }
59
+ }
60
+
61
+ // 衍生列表一:本地上传页面样式
62
+ .resource-list {
63
+ .list-content {
64
+ margin-top: 30px;
65
+
66
+ .list-tips {
67
+ margin-bottom: 16px;
68
+ color: #3d3d3d;
69
+ }
70
+ }
71
+
72
+ .upload-wrapper {
73
+ display: flex;
74
+ flex-direction: column;
75
+
76
+ .upload-buttons {
77
+ display: flex;
78
+ gap: 20px;
79
+ justify-content: center;
80
+ margin: 20px 0;
81
+ }
82
+
83
+ .upload-dragger {
84
+ width: calc(100% - 2px);
85
+ }
86
+ }
87
+ }
88
+
89
+ // 衍生列表二:内置素材
90
+ .resource-list {
91
+ .scen-module {
92
+ margin-bottom: 20px;
93
+ }
94
+
95
+ .item-load-more {
96
+ display: flex;
97
+ flex-direction: column;
98
+ gap: 10px;
99
+ align-items: center;
100
+ justify-content: center;
101
+ width: 100%;
102
+ overflow: hidden;
103
+ color: #9a9a9a;
104
+ font-size: 12px;
105
+ cursor: pointer;
106
+ aspect-ratio: 4 / 3;
107
+
108
+ img {
109
+ height: calc(100% - 40px);
110
+ }
111
+ }
112
+ }
113
+
114
+ // 列表筛选样式
115
+ .resource-list .list-filter-wrapper {
116
+ .list-filter-tags {
117
+ display: flex;
118
+ flex-wrap: wrap;
119
+ gap: 10px;
120
+ margin-top: 10px;
121
+
122
+ .list-filter-tag {
123
+ padding: 5px 16px;
124
+ border-radius: 15px;
125
+ cursor: pointer;
126
+
127
+ &:hover {
128
+ background-color: var(--color-fill-3);
129
+ }
130
+
131
+ &.active {
132
+ color: rgb(var(--primary-6));
133
+ font-weight: bold;
134
+ background: var(--color-fill-2);
135
+ }
136
+ }
137
+ }
138
+
139
+ .list-filter {
140
+ display: flex;
141
+ justify-content: space-between;
142
+
143
+ .filter-list {
144
+ position: relative; /** 给 popup 一个参考 */
145
+ display: flex;
146
+
147
+ .filter-item {
148
+ width: 100px;
149
+ margin-right: 10px;
150
+ }
151
+
152
+ .arco-trigger-popup {
153
+ z-index: 100000 !important;
154
+ }
155
+ }
156
+
157
+ .arco-input-prepend {
158
+ padding: 0;
159
+ }
160
+
161
+ .more-btn {
162
+ position: relative; /** 给 poperjs 一个参考 */
163
+
164
+ .filter-pannel {
165
+ inset: 40px auto auto auto !important;
166
+ }
167
+ }
168
+ }
169
+
170
+ .filter-extra {
171
+ display: flex;
172
+ gap: 10px;
173
+ }
174
+
175
+ .filter-pannel {
176
+ z-index: 100000;
177
+ display: flex;
178
+ flex-direction: column;
179
+ gap: 10px;
180
+ padding: 10px;
181
+ background-color: #fff;
182
+ border-radius: 4px;
183
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
184
+ }
185
+ }
186
+
187
+ // 二级列表的标题样式
188
+ .resource-list {
189
+ .title {
190
+ display: flex;
191
+ gap: 8px;
192
+ align-items: center;
193
+ margin-bottom: 20px;
194
+ font-weight: bold;
195
+ font-size: 16px;
196
+
197
+ .line {
198
+ width: 3px;
199
+ height: 16px;
200
+ background-color: #4886ff;
201
+ }
202
+ }
203
+ }
package/es/style.css CHANGED
@@ -1,6 +1,63 @@
1
+ .content-tabs[data-v-67e0583b] .arco-tabs-content {
2
+ padding: 0;
3
+ }
4
+ .add-content-modal-body[data-v-67e0583b] {
5
+ padding: 0;
6
+ }
1
7
  .type-icons-container {
2
8
  display: inline-block;
3
9
  vertical-align: middle;
4
10
  line-height: 12px;
5
11
  font-size: 18px;
6
12
  }
13
+ .view-all-column-container[data-v-510948a5] {
14
+ display: flex;
15
+ flex-direction: column;
16
+ height: 100%;
17
+ }
18
+ .content-table-view[data-v-510948a5] {
19
+ flex: 1;
20
+ overflow: auto;
21
+ margin: 16px 0;
22
+ }
23
+ .bottom-view[data-v-510948a5] {
24
+ display: flex;
25
+ justify-content: space-between;
26
+ align-items: center;
27
+ padding: 16px 0;
28
+ }
29
+ .bottom-view .left[data-v-510948a5] {
30
+ display: flex;
31
+ align-items: center;
32
+ gap: 16px;
33
+ }
34
+ .title-span[data-v-510948a5] {
35
+ display: flex;
36
+ align-items: center;
37
+ gap: 8px;
38
+ }
39
+ .title-span .icon[data-v-510948a5] {
40
+ font-size: 16px;
41
+ }
42
+ .title-span .title[data-v-510948a5] {
43
+ flex: 1;
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ white-space: nowrap;
47
+ }
48
+ .pic-thumb-img[data-v-510948a5] {
49
+ width: 80px;
50
+ height: 80px;
51
+ object-fit: cover;
52
+ border-radius: 4px;
53
+ }
54
+ .pic-thumb-img.placeholder[data-v-510948a5] {
55
+ background-color: #f5f5f5;
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ }
60
+ .pic-thumb-img.placeholder .placeholder-text[data-v-510948a5] {
61
+ color: #999;
62
+ font-size: 12px;
63
+ }
@@ -35,7 +35,7 @@ const _sfc_main = defineComponent({
35
35
  createVNode(unref(IconYinpinji), { style: { "color": "#1fb7c2" } })
36
36
  ], 2112)) : props.doc && props.type === "video_album" ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
37
37
  createCommentVNode(" \u89C6\u9891\u96C6 "),
38
- createVNode(unref(IconShipinji))
38
+ createVNode(unref(IconShipinji), { style: { "color": "#f05050" } })
39
39
  ], 2112)) : props.doc && props.type === "mini_program" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
40
40
  createCommentVNode(" \u89C6\u9891\u96C6 "),
41
41
  createVNode(unref(IconMiniprogram))
@@ -1,37 +1,37 @@
1
- @import './docDiffPanel.less';
2
- @import './docHistoryList.less';
3
-
4
- .doc-history-wrap {
5
- display: flex;
6
- width: 100%;
7
- height: 100%;
8
- overflow: hidden;
9
-
10
- .doc-diff-panel {
11
- flex: 1;
12
- height: 100%;
13
-
14
- .doc-diff-panel-wrap {
15
- padding: 24px;
16
- }
17
- }
18
-
19
- .doc-history-list {
20
- height: 100%;
21
- }
22
- }
23
-
24
- .doc-history-drawer {
25
- .arco-drawer-body {
26
- padding: 0;
27
- }
28
-
29
- .arco-drawer-footer {
30
- text-align: left;
31
- }
32
- }
33
-
34
- .doc-history-modal-wrap {
35
- height: 70vh;
36
- padding: 0;
37
- }
1
+ @import './docDiffPanel.less';
2
+ @import './docHistoryList.less';
3
+
4
+ .doc-history-wrap {
5
+ display: flex;
6
+ width: 100%;
7
+ height: 100%;
8
+ overflow: hidden;
9
+
10
+ .doc-diff-panel {
11
+ flex: 1;
12
+ height: 100%;
13
+
14
+ .doc-diff-panel-wrap {
15
+ padding: 24px;
16
+ }
17
+ }
18
+
19
+ .doc-history-list {
20
+ height: 100%;
21
+ }
22
+ }
23
+
24
+ .doc-history-drawer {
25
+ .arco-drawer-body {
26
+ padding: 0;
27
+ }
28
+
29
+ .arco-drawer-footer {
30
+ text-align: left;
31
+ }
32
+ }
33
+
34
+ .doc-history-modal-wrap {
35
+ height: 70vh;
36
+ padding: 0;
37
+ }
package/lib/index.js CHANGED
@@ -30,6 +30,7 @@ var index$p = require("./docPreview/index.js");
30
30
  var index$q = require("./docHistory/index.js");
31
31
  var index$r = require("./videoThumb/index.js");
32
32
  var index$s = require("./importData/index.js");
33
+ var index$t = require("./selectAddTo/index.js");
33
34
  exports["default"] = components;
34
35
  exports.appCenter = index;
35
36
  exports.messageBox = index$1;
@@ -60,3 +61,4 @@ exports.docPreview = index$p;
60
61
  exports.docHistory = index$q;
61
62
  exports.videoThumb = index$r;
62
63
  exports.importData = index$s;
64
+ exports.selectAddTo = index$t;