@cmstops/pro-compo 0.1.32 → 0.1.34

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 (37) hide show
  1. package/dist/index.css +14 -5
  2. package/dist/index.min.css +1 -1
  3. package/es/config.d.ts +2 -2
  4. package/es/config.js +5 -4
  5. package/es/editMetaInfo/components/metaInfoForm.js +83 -81
  6. package/es/index.css +14 -5
  7. package/es/resourceModal/component.js +5 -5
  8. package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  9. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
  10. package/es/resourceModal/components/MediaSelection/index.js +8 -8
  11. package/es/resourceModal/script/api.d.ts +2 -2
  12. package/es/resourceModal/style/DocAiMediaSelected.less +2 -3
  13. package/es/resourceModal/style/MainContent.less +5 -3
  14. package/es/resourceModal/style/ToolbarSearch.less +13 -0
  15. package/es/resourceModal/style/index.css +14 -5
  16. package/es/selectGategory/component.js +6 -6
  17. package/es/selectGategory/components/ColumnSelection/index.js +3 -3
  18. package/es/selectThumb/component.js +2 -2
  19. package/es/uploadBefore/component.js +2 -2
  20. package/es/utils/tusUpload.js +1 -1
  21. package/lib/config.js +5 -4
  22. package/lib/editMetaInfo/components/metaInfoForm.js +82 -80
  23. package/lib/index.css +14 -5
  24. package/lib/resourceModal/component.js +5 -5
  25. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
  26. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
  27. package/lib/resourceModal/components/MediaSelection/index.js +8 -8
  28. package/lib/resourceModal/style/DocAiMediaSelected.less +2 -3
  29. package/lib/resourceModal/style/MainContent.less +5 -3
  30. package/lib/resourceModal/style/ToolbarSearch.less +13 -0
  31. package/lib/resourceModal/style/index.css +14 -5
  32. package/lib/selectGategory/component.js +6 -6
  33. package/lib/selectGategory/components/ColumnSelection/index.js +3 -3
  34. package/lib/selectThumb/component.js +2 -2
  35. package/lib/uploadBefore/component.js +2 -2
  36. package/lib/utils/tusUpload.js +1 -1
  37. package/package.json +1 -1
@@ -43,7 +43,7 @@
43
43
  background: url('../assets/selection/folder.png') no-repeat 13px
44
44
  center;
45
45
  background-size: 17px auto;
46
- border: solid 2px transparent;
46
+ border: solid 1px transparent;
47
47
  border-radius: 4px;
48
48
  }
49
49
 
@@ -74,13 +74,15 @@
74
74
  padding: 14px 16px;
75
75
  line-height: 24px;
76
76
  background: #f7f8fa;
77
- border: 1px solid #ebeef5;
77
+ //border: 1px solid #ebeef5;
78
+ border: 1px solid transparent;
78
79
  border-radius: 4px;
79
80
 
80
81
  &:hover {
81
82
  color: #165dff;
82
83
  background: #f2f3f5;
83
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
84
+ border: 1px solid #4886ff;
85
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
84
86
  cursor: pointer;
85
87
  }
86
88
  }
@@ -14,6 +14,19 @@
14
14
  width: auto;
15
15
  margin-right: 10px;
16
16
  }
17
+
18
+ .filter-right {
19
+ .arco-btn-size-medium.arco-btn-only-icon {
20
+ width: 48px;
21
+ color: #2f6ffb;
22
+ background-color: #e8f3ff;
23
+
24
+ &:hover {
25
+ background-color: #d3e6ff;
26
+ //background-color: red;
27
+ }
28
+ }
29
+ }
17
30
  }
18
31
  }
19
32
  }
@@ -77,11 +77,11 @@
77
77
  width: 100%;
78
78
  height: 100%;
79
79
  overflow: hidden;
80
- border: solid 3px transparent;
80
+ border: solid 1px transparent;
81
81
  border-radius: 4px;
82
82
  }
83
83
  .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic.active {
84
- border: solid 3px #4886ff;
84
+ border: solid 1px #4886ff;
85
85
  border-radius: 4px;
86
86
  }
87
87
  .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic img {
@@ -106,6 +106,14 @@
106
106
  width: auto;
107
107
  margin-right: 10px;
108
108
  }
109
+ .toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon {
110
+ width: 48px;
111
+ color: #2f6ffb;
112
+ background-color: #e8f3ff;
113
+ }
114
+ .toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon:hover {
115
+ background-color: #d3e6ff;
116
+ }
109
117
  .keywordsSelection {
110
118
  display: flex;
111
119
  justify-content: space-between;
@@ -164,7 +172,7 @@
164
172
  font-size: 0;
165
173
  background: url('../assets/selection/folder.png') no-repeat 13px center;
166
174
  background-size: 17px auto;
167
- border: solid 2px transparent;
175
+ border: solid 1px transparent;
168
176
  border-radius: 4px;
169
177
  }
170
178
  .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap h4 {
@@ -191,13 +199,14 @@
191
199
  padding: 14px 16px;
192
200
  line-height: 24px;
193
201
  background: #f7f8fa;
194
- border: 1px solid #ebeef5;
202
+ border: 1px solid transparent;
195
203
  border-radius: 4px;
196
204
  }
197
205
  .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-more-button .folder-more-wrap:hover {
198
206
  color: #165dff;
199
207
  background: #f2f3f5;
200
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
208
+ border: 1px solid #4886ff;
209
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
201
210
  cursor: pointer;
202
211
  }
203
212
  .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list {
@@ -11,7 +11,7 @@ const _sfc_main = vue.defineComponent({
11
11
  props: {
12
12
  repository_id: {},
13
13
  visible: { type: Boolean },
14
- base_api: {},
14
+ BASE_API: {},
15
15
  columnData: {},
16
16
  columnWithData: {}
17
17
  },
@@ -19,7 +19,7 @@ const _sfc_main = vue.defineComponent({
19
19
  setup(__props, { emit: __emit }) {
20
20
  const props = __props;
21
21
  const emit = __emit;
22
- const BASE_API = props.base_api || config.DEFAULT_BASE_API;
22
+ const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
23
23
  const selectColumnData = vue.ref(props.columnData || []);
24
24
  const selectColumnWithData = vue.ref(props.columnWithData || []);
25
25
  const visible = vue.computed({
@@ -68,8 +68,8 @@ const _sfc_main = vue.defineComponent({
68
68
  "onUpdate:selectColumnData": _cache[0] || (_cache[0] = ($event) => selectColumnData.value = $event),
69
69
  "add-text": "\u8BBE\u7F6E\u53D1\u5E03\u81F3\u680F\u76EE",
70
70
  repository_id: _ctx.repository_id,
71
- base_api: vue.unref(BASE_API)
72
- }, null, 8, ["selectColumnData", "repository_id", "base_api"]),
71
+ BASE_API: vue.unref(BASE_API)
72
+ }, null, 8, ["selectColumnData", "repository_id", "BASE_API"]),
73
73
  _hoisted_2,
74
74
  vue.createVNode(index, {
75
75
  selectColumnWithData: selectColumnWithData.value,
@@ -77,8 +77,8 @@ const _sfc_main = vue.defineComponent({
77
77
  "add-text": "\u8BBE\u7F6E\u540C\u6B65\u53D1\u5E03\u81F3\u680F\u76EE",
78
78
  multiple: true,
79
79
  repository_id: _ctx.repository_id,
80
- base_api: vue.unref(BASE_API)
81
- }, null, 8, ["selectColumnWithData", "repository_id", "base_api"])
80
+ BASE_API: vue.unref(BASE_API)
81
+ }, null, 8, ["selectColumnWithData", "repository_id", "BASE_API"])
82
82
  ])
83
83
  ]),
84
84
  _: 1
@@ -20,7 +20,7 @@ const _sfc_main = vue.defineComponent({
20
20
  ...{ name: "selectGategory" },
21
21
  __name: "index",
22
22
  props: {
23
- base_api: {},
23
+ BASE_API: {},
24
24
  repository_id: {},
25
25
  selectColumnData: {},
26
26
  selectColumnWithData: {},
@@ -107,7 +107,7 @@ const _sfc_main = vue.defineComponent({
107
107
  return;
108
108
  }
109
109
  }
110
- api.getCategoryPath(props.base_api, {
110
+ api.getCategoryPath(props.BASE_API, {
111
111
  repo: props.repository_id,
112
112
  category: data == null ? void 0 : data.id
113
113
  }).then((res) => {
@@ -153,7 +153,7 @@ const _sfc_main = vue.defineComponent({
153
153
  }
154
154
  };
155
155
  const getCategoryCategoriesData = async () => {
156
- const { code, message } = await api.getCategoryCategoriesTree(props.base_api, {
156
+ const { code, message } = await api.getCategoryCategoriesTree(props.BASE_API, {
157
157
  repo_id: props.repository_id
158
158
  });
159
159
  if (code === 0) {
@@ -411,9 +411,9 @@ const _sfc_main = vue.defineComponent({
411
411
  preview: false,
412
412
  "catalog-props": "image",
413
413
  ai_static_covers: _ctx.aiImages,
414
- base_api: vue.unref(BASE_API),
414
+ BASE_API: vue.unref(BASE_API),
415
415
  onSubmit: submitCallback
416
- }, null, 8, ["dialogVisible", "ai_static_covers", "base_api"]),
416
+ }, null, 8, ["dialogVisible", "ai_static_covers", "BASE_API"]),
417
417
  vue.createVNode(component$1, {
418
418
  visible: dialogCropperShow.value,
419
419
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => dialogCropperShow.value = $event),
@@ -71,9 +71,9 @@ const _sfc_main = vue.defineComponent({
71
71
  "onUpdate:visable": _cache[0] || (_cache[0] = ($event) => vue.isRef(visBeforeUpload) ? visBeforeUpload.value = $event : null),
72
72
  "file-list": vue.unref(preOptionsList),
73
73
  "onUpdate:fileList": _cache[1] || (_cache[1] = ($event) => vue.isRef(preOptionsList) ? preOptionsList.value = $event : null),
74
- "b-a-s-e-a-p-i": baseApi.value,
74
+ BASE_API: baseApi.value,
75
75
  onConfirm: afterPayload
76
- }, null, 8, ["visable", "file-list", "b-a-s-e-a-p-i"])
76
+ }, null, 8, ["visable", "file-list", "BASE_API"])
77
77
  ], 64);
78
78
  };
79
79
  }
@@ -47,7 +47,7 @@ function uploadByTUS(file, progressCallback) {
47
47
  function uploadConfig(file) {
48
48
  const fType = getFileType(file);
49
49
  return {
50
- endpoint: config.DEFAULT_UPLOAD_URL,
50
+ endpoint: `${config.DEFAULT_UPLOAD_URL}/upload`,
51
51
  chunkSize: config.DEFAULT_UPLOAD_CHUNK_SIZE,
52
52
  retryDelays: [0, 1e3, 3e3, 5e3],
53
53
  overridePatchMethod: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",