@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.
- package/dist/index.css +470 -39
- package/dist/index.min.css +1 -1
- package/es/colorPalette/style/index.css +10 -10
- package/es/colorPalette/style/index.less +29 -25
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +51 -7
- package/es/contentModal/components/ViewAllColumn/index.js +1 -0
- package/es/contentModal/style/MediaFilter.less +4 -0
- package/es/contentModal/style/index.css +3 -0
- package/es/index.css +470 -39
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +2 -0
- package/es/mediaGridList/component.d.ts +0 -0
- package/es/mediaGridList/component.js +222 -0
- package/es/mediaGridList/components/FileTypeThumb/index.d.ts +0 -0
- package/es/mediaGridList/components/FileTypeThumb/index.js +127 -0
- package/es/mediaGridList/index.d.ts +2 -0
- package/es/mediaGridList/index.js +7 -0
- package/es/mediaGridList/style/FileTypeThumb.less +204 -0
- package/es/mediaGridList/style/css.js +1 -0
- package/es/mediaGridList/style/index.css +364 -0
- package/es/mediaGridList/style/index.d.ts +1 -0
- package/es/mediaGridList/style/index.js +1 -0
- package/es/mediaGridList/style/index.less +230 -0
- package/es/mediaView/component.d.ts +0 -0
- package/es/mediaView/component.js +65 -0
- package/es/mediaView/index.d.ts +2 -0
- package/es/mediaView/index.js +7 -0
- package/es/mediaView/style/css.js +1 -0
- package/es/mediaView/style/index.css +64 -0
- package/es/mediaView/style/index.d.ts +1 -0
- package/es/mediaView/style/index.js +1 -0
- package/es/mediaView/style/index.less +71 -0
- package/es/resourceModal/components/MediaPreviewer/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
- package/es/resourceModal/style/FileTypeThumb.less +26 -26
- package/es/resourceModal/style/MainContent.less +3 -3
- package/es/resourceModal/style/SystemResourceSelected.less +1 -1
- package/es/resourceModal/style/index.css +29 -29
- package/es/uploadBefore/script/fileTypeAdapter.d.ts +1 -1
- package/lib/colorPalette/style/index.css +10 -10
- package/lib/colorPalette/style/index.less +29 -25
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +48 -4
- package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
- package/lib/contentModal/style/MediaFilter.less +4 -0
- package/lib/contentModal/style/index.css +3 -0
- package/lib/index.css +470 -39
- package/lib/index.js +4 -0
- package/lib/index.less +2 -0
- package/lib/mediaGridList/component.js +223 -0
- package/lib/mediaGridList/components/FileTypeThumb/index.js +128 -0
- package/lib/mediaGridList/index.js +8 -0
- package/lib/mediaGridList/style/FileTypeThumb.less +204 -0
- package/lib/mediaGridList/style/css.js +2 -0
- package/lib/mediaGridList/style/index.css +364 -0
- package/lib/mediaGridList/style/index.js +2 -0
- package/lib/mediaGridList/style/index.less +230 -0
- package/lib/mediaView/component.js +66 -0
- package/lib/mediaView/index.js +8 -0
- package/lib/mediaView/style/css.js +2 -0
- package/lib/mediaView/style/index.css +64 -0
- package/lib/mediaView/style/index.js +2 -0
- package/lib/mediaView/style/index.less +71 -0
- package/lib/resourceModal/components/MediaPreviewer/index.js +1 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +1 -1
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
- package/lib/resourceModal/style/FileTypeThumb.less +26 -26
- package/lib/resourceModal/style/MainContent.less +3 -3
- package/lib/resourceModal/style/SystemResourceSelected.less +1 -1
- package/lib/resourceModal/style/index.css +29 -29
- package/package.json +1 -1
- /package/es/{resourceModal/assets → assets}/images/sys_load_more.js +0 -0
- /package/es/{resourceModal/assets → assets}/images/unknown.js +0 -0
- /package/es/{resourceModal/assets → assets}/selection/null.js +0 -0
- /package/es/{resourceModal/script → utils}/filter.d.ts +0 -0
- /package/es/{resourceModal/script → utils}/filter.js +0 -0
- /package/lib/{resourceModal/assets → assets}/images/sys_load_more.js +0 -0
- /package/lib/{resourceModal/assets → assets}/images/unknown.js +0 -0
- /package/lib/{resourceModal/assets → assets}/selection/null.js +0 -0
- /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
|
-
|
|
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
|
-
},
|
|
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}`);
|