@cmstops/pro-compo 0.3.18 → 0.3.20

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 (87) hide show
  1. package/dist/index.css +470 -39
  2. package/dist/index.min.css +1 -1
  3. package/es/colorPalette/style/index.css +10 -10
  4. package/es/colorPalette/style/index.less +29 -25
  5. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +51 -7
  6. package/es/contentModal/components/ViewAllColumn/index.js +1 -0
  7. package/es/contentModal/style/MediaFilter.less +4 -0
  8. package/es/contentModal/style/index.css +3 -0
  9. package/es/index.css +470 -39
  10. package/es/index.d.ts +2 -0
  11. package/es/index.js +2 -0
  12. package/es/index.less +2 -0
  13. package/es/mediaGridList/component.d.ts +0 -0
  14. package/es/mediaGridList/component.js +222 -0
  15. package/es/mediaGridList/components/FileTypeThumb/index.d.ts +0 -0
  16. package/es/mediaGridList/components/FileTypeThumb/index.js +127 -0
  17. package/es/mediaGridList/index.d.ts +2 -0
  18. package/es/mediaGridList/index.js +7 -0
  19. package/es/mediaGridList/style/FileTypeThumb.less +204 -0
  20. package/es/mediaGridList/style/css.js +1 -0
  21. package/es/mediaGridList/style/index.css +364 -0
  22. package/es/mediaGridList/style/index.d.ts +1 -0
  23. package/es/mediaGridList/style/index.js +1 -0
  24. package/es/mediaGridList/style/index.less +230 -0
  25. package/es/mediaView/component.d.ts +0 -0
  26. package/es/mediaView/component.js +65 -0
  27. package/es/mediaView/index.d.ts +2 -0
  28. package/es/mediaView/index.js +7 -0
  29. package/es/mediaView/style/css.js +1 -0
  30. package/es/mediaView/style/index.css +64 -0
  31. package/es/mediaView/style/index.d.ts +1 -0
  32. package/es/mediaView/style/index.js +1 -0
  33. package/es/mediaView/style/index.less +71 -0
  34. package/es/resourceModal/components/MediaPreviewer/index.js +1 -1
  35. package/es/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
  36. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  37. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  38. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +1 -1
  39. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  40. package/es/resourceModal/style/FileTypeThumb.less +26 -26
  41. package/es/resourceModal/style/MainContent.less +3 -3
  42. package/es/resourceModal/style/SystemResourceSelected.less +1 -1
  43. package/es/resourceModal/style/index.css +29 -29
  44. package/es/uploadBefore/script/fileTypeAdapter.d.ts +1 -1
  45. package/lib/colorPalette/style/index.css +10 -10
  46. package/lib/colorPalette/style/index.less +29 -25
  47. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +48 -4
  48. package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
  49. package/lib/contentModal/style/MediaFilter.less +4 -0
  50. package/lib/contentModal/style/index.css +3 -0
  51. package/lib/index.css +470 -39
  52. package/lib/index.js +4 -0
  53. package/lib/index.less +2 -0
  54. package/lib/mediaGridList/component.js +223 -0
  55. package/lib/mediaGridList/components/FileTypeThumb/index.js +128 -0
  56. package/lib/mediaGridList/index.js +8 -0
  57. package/lib/mediaGridList/style/FileTypeThumb.less +204 -0
  58. package/lib/mediaGridList/style/css.js +2 -0
  59. package/lib/mediaGridList/style/index.css +364 -0
  60. package/lib/mediaGridList/style/index.js +2 -0
  61. package/lib/mediaGridList/style/index.less +230 -0
  62. package/lib/mediaView/component.js +66 -0
  63. package/lib/mediaView/index.js +8 -0
  64. package/lib/mediaView/style/css.js +2 -0
  65. package/lib/mediaView/style/index.css +64 -0
  66. package/lib/mediaView/style/index.js +2 -0
  67. package/lib/mediaView/style/index.less +71 -0
  68. package/lib/resourceModal/components/MediaPreviewer/index.js +1 -1
  69. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
  70. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  71. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  72. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +1 -1
  73. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  74. package/lib/resourceModal/style/FileTypeThumb.less +26 -26
  75. package/lib/resourceModal/style/MainContent.less +3 -3
  76. package/lib/resourceModal/style/SystemResourceSelected.less +1 -1
  77. package/lib/resourceModal/style/index.css +29 -29
  78. package/package.json +1 -1
  79. /package/es/{resourceModal/assets → assets}/images/sys_load_more.js +0 -0
  80. /package/es/{resourceModal/assets → assets}/images/unknown.js +0 -0
  81. /package/es/{resourceModal/assets → assets}/selection/null.js +0 -0
  82. /package/es/{resourceModal/script → utils}/filter.d.ts +0 -0
  83. /package/es/{resourceModal/script → utils}/filter.js +0 -0
  84. /package/lib/{resourceModal/assets → assets}/images/sys_load_more.js +0 -0
  85. /package/lib/{resourceModal/assets → assets}/images/unknown.js +0 -0
  86. /package/lib/{resourceModal/assets → assets}/selection/null.js +0 -0
  87. /package/lib/{resourceModal/script → utils}/filter.js +0 -0
@@ -28,7 +28,8 @@ const _sfc_main = vue.defineComponent({
28
28
  cover_type: "",
29
29
  banner: "",
30
30
  sort: -1,
31
- order: "create_time"
31
+ order: "create_time",
32
+ wordState: "precision"
32
33
  });
33
34
  const bannerOptions = vue.computed(() => {
34
35
  const options = [
@@ -104,8 +105,17 @@ const _sfc_main = vue.defineComponent({
104
105
  filter.value.type = "";
105
106
  }
106
107
  };
108
+ const checkout = (type) => {
109
+ filter.value.wordState = type;
110
+ };
107
111
  const handleSearch = () => {
108
- emit("search", filter.value);
112
+ const params = JSON.parse(JSON.stringify(filter.value));
113
+ if (filter.value.wordState === "precision") {
114
+ params.precise_kw = params.keywords;
115
+ delete params.keywords;
116
+ }
117
+ delete params.wordState;
118
+ emit("search", params);
109
119
  };
110
120
  vue.watch(
111
121
  () => filter.value,
@@ -141,10 +151,44 @@ const _sfc_main = vue.defineComponent({
141
151
  modelValue: filter.value.keywords,
142
152
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.keywords = $event),
143
153
  "allow-clear": "",
144
- class: "filter-item",
154
+ class: "filter-item keyword",
145
155
  placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
146
156
  onPressEnter: handleSearch
147
- }, null, 8, ["modelValue"]),
157
+ }, {
158
+ prefix: vue.withCtx(() => [
159
+ vue.createVNode(vue.unref(webVue.DropdownButton), { onSelect: checkout }, {
160
+ icon: vue.withCtx(() => [
161
+ vue.createVNode(vue.unref(icon.IconDown))
162
+ ]),
163
+ content: vue.withCtx(() => [
164
+ vue.createVNode(vue.unref(webVue.Doption), { value: "precision" }, {
165
+ default: vue.withCtx(() => [
166
+ vue.createTextVNode("\u7CBE\u51C6\u641C")
167
+ ]),
168
+ _: 1
169
+ }),
170
+ vue.createVNode(vue.unref(webVue.Doption), { value: "blur" }, {
171
+ default: vue.withCtx(() => [
172
+ vue.createTextVNode("\u6A21\u7CCA\u641C")
173
+ ]),
174
+ _: 1
175
+ })
176
+ ]),
177
+ default: vue.withCtx(() => [
178
+ vue.createVNode(vue.unref(webVue.Tooltip), {
179
+ content: `${filter.value.wordState === "precision" ? "\u4F1A\u4EE5\u8F93\u5165\u7684\u5B8C\u6574\u5173\u952E\u8BCD\u201C\u6210\u957F\u201D\u8FDB\u884C\u641C\u7D22\uFF0C\u641C\u7D22\u7ED3\u679C\u5173\u8054\u6027\u66F4\u9AD8\uFF0C\u4F46\u641C\u7D22\u7ED3\u679C\u66F4\u5C11" : "\u4F1A\u5C06\u8F93\u5165\u5185\u5BB9\u5206\u8BCD\uFF0C\u4F8B\u5982\u201C\u6210\u957F\u201D\u4F1A\u5206\u4E3A\u201C\u6210\u201D\u3001\u201C\u957F\u201D\u3001\u201C\u6210\u957F\u201D\uFF0C\u5185\u5BB9\u5305\u542B\u4E09\u4E2A\u8BCD\u4E2D\u4EFB\u610F\u4E00\u4E2A\u5747\u4F1A\u663E\u793A\u51FA\u6765\uFF0C\u641C\u7D22\u5185\u5BB9\u66F4\u52A0\u4E30\u5BCC"}`
180
+ }, {
181
+ default: vue.withCtx(() => [
182
+ vue.createElementVNode("span", null, vue.toDisplayString(filter.value.wordState === "precision" ? "\u7CBE\u51C6\u641C" : "\u6A21\u7CCA\u641C"), 1)
183
+ ]),
184
+ _: 1
185
+ }, 8, ["content"])
186
+ ]),
187
+ _: 1
188
+ })
189
+ ]),
190
+ _: 1
191
+ }, 8, ["modelValue"]),
148
192
  vue.createVNode(index, {
149
193
  column_id: column_id.value,
150
194
  "onUpdate:column_id": _cache[1] || (_cache[1] = ($event) => column_id.value = $event),
@@ -128,6 +128,7 @@ const _sfc_main = vue.defineComponent({
128
128
  });
129
129
  _filter = { ..._filter };
130
130
  const where = [];
131
+ _filter.precise_kw && where.push(`precise_kw:${_filter.precise_kw}`);
131
132
  _filter.keywords && where.push(`kw:${_filter.keywords}`);
132
133
  _filter.type && where.push(`series:${_filter.type}`);
133
134
  _filter.state && where.push(`state:${_filter.state}`);
@@ -8,6 +8,10 @@
8
8
  width: auto;
9
9
  }
10
10
 
11
+ .keyword {
12
+ padding-left: 0;
13
+ }
14
+
11
15
  :deep(.arco-popover-content) {
12
16
  display: flex;
13
17
  flex-direction: column;
@@ -34,6 +34,9 @@
34
34
  .media-filter-container .filter-item {
35
35
  width: auto;
36
36
  }
37
+ .media-filter-container .keyword {
38
+ padding-left: 0;
39
+ }
37
40
  .media-filter-container :deep(.arco-popover-content) {
38
41
  display: flex;
39
42
  flex-direction: column;