@opendesign-plus-test/components 0.0.1-rc.135 → 0.0.1-rc.136
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +12 -10
- package/dist/components/feedback-doc/OFeedbackDoc.vue.d.ts +6 -1
- package/dist/components/feedback-doc/OFeedbackDocContent.vue.d.ts +2 -0
- package/dist/components/feedback-doc/OFeedbackDocDialog.vue.d.ts +6 -1
- package/dist/components/feedback-doc/OFeedbackDocPopup.vue.d.ts +4 -0
- package/dist/components/feedback-doc/index.d.ts +54 -6
- package/dist/components/footer/OFooter.vue.d.ts +4 -25
- package/dist/components/footer/components/FooterList.vue.d.ts +21 -0
- package/dist/components/footer/components/FooterSimple.vue.d.ts +23 -0
- package/dist/components/footer/index.d.ts +8 -64
- package/dist/components/footer/types.d.ts +48 -0
- package/dist/components/logo-swiper/OLogoSwiper.vue.d.ts +17 -0
- package/dist/components/logo-swiper/OLogoSwiperItems.vue.d.ts +17 -0
- package/dist/components/logo-swiper/index.d.ts +73 -0
- package/dist/components/logo-swiper/types.d.ts +18 -0
- package/dist/components/sig/OSigDetail.vue.d.ts +0 -2
- package/dist/components/sig/OSigList.vue.d.ts +2 -2
- package/dist/components/sig/components/OSigItem.vue.d.ts +1 -4
- package/dist/components/sig/components/OSigRepo.vue.d.ts +0 -2
- package/dist/components/sig/components/config-sig.d.ts +1 -0
- package/dist/components/sig/types.d.ts +1 -2
- package/dist/components/video/OVideoDetail.vue.d.ts +7 -0
- package/dist/components/video/index.d.ts +27 -0
- package/dist/components/video/types.d.ts +24 -0
- package/dist/components.cjs.js +40 -40
- package/dist/components.css +1 -1
- package/dist/components.es.js +12868 -12809
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-filter.mjs +6 -5
- package/dist/treeshaking/components/activity/OActivityApproval.css +3 -6
- package/dist/treeshaking/components/activity/OActivityApproval2.css +3 -6
- package/dist/treeshaking/components/activity/OActivityForm.css +3 -6
- package/dist/treeshaking/components/activity/OActivityForm2.css +3 -6
- package/dist/treeshaking/components/activity/OActivityMyCalendar.css +3 -6
- package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +3 -6
- package/dist/treeshaking/components/common/ThFilter.vue.mjs +1 -1
- package/dist/treeshaking/components/common/TooltipText.vue.mjs +3 -2
- package/dist/treeshaking/components/element-plus/OElCookieNotice.css +3 -6
- package/dist/treeshaking/components/element-plus/OElCookieNotice2.css +3 -6
- package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.css +5 -5
- package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue.d.ts +6 -1
- package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue.mjs +1 -1
- package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue2.mjs +10 -4
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.css +27 -27
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.vue.d.ts +2 -0
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.vue.mjs +1 -1
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.vue2.mjs +8 -3
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocDialog.vue.d.ts +6 -1
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocDialog.vue.mjs +12 -5
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.css +3 -3
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.vue.d.ts +4 -0
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.vue.mjs +1 -1
- package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.vue2.mjs +7 -3
- package/dist/treeshaking/components/feedback-doc/index.d.ts +54 -6
- package/dist/treeshaking/components/footer/OFooter.css +33 -590
- package/dist/treeshaking/components/footer/OFooter.vue.d.ts +4 -25
- package/dist/treeshaking/components/footer/OFooter.vue.mjs +1 -1
- package/dist/treeshaking/components/footer/OFooter.vue2.mjs +76 -332
- package/dist/treeshaking/components/footer/components/FooterList.css +462 -0
- package/dist/treeshaking/components/footer/components/FooterList.vue.d.ts +21 -0
- package/dist/treeshaking/components/footer/components/FooterList.vue.mjs +7 -0
- package/dist/treeshaking/components/footer/components/FooterList.vue2.mjs +215 -0
- package/dist/treeshaking/components/footer/components/FooterSimple.css +123 -0
- package/dist/treeshaking/components/footer/components/FooterSimple.vue.d.ts +23 -0
- package/dist/treeshaking/components/footer/components/FooterSimple.vue.mjs +7 -0
- package/dist/treeshaking/components/footer/components/FooterSimple.vue2.mjs +109 -0
- package/dist/treeshaking/components/footer/index.d.ts +8 -64
- package/dist/treeshaking/components/footer/types.d.ts +48 -0
- package/dist/treeshaking/components/header/components/HeaderContent.css +184 -184
- package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderContent.vue2.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderFlatten.css +57 -57
- package/dist/treeshaking/components/header/components/HeaderFlatten.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderFlatten.vue2.mjs +5 -5
- package/dist/treeshaking/components/header/components/HeaderNavMobile.css +80 -80
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.mjs +1 -1
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue2.mjs +7 -1
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.css +31 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.d.ts +17 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.mjs +14 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.css +88 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.d.ts +17 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +7 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue2.mjs +158 -0
- package/dist/treeshaking/components/logo-swiper/index.d.ts +73 -0
- package/dist/treeshaking/components/logo-swiper/index.mjs +16 -0
- package/dist/treeshaking/components/logo-swiper/types.d.ts +18 -0
- package/dist/treeshaking/components/meeting/OMeetingCalendar.css +3 -6
- package/dist/treeshaking/components/meeting/OMeetingForm.css +3 -6
- package/dist/treeshaking/components/meeting/OMeetingForm2.css +3 -6
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.css +3 -6
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar2.css +3 -6
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.css +3 -6
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector2.css +3 -6
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.css +3 -6
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles2.css +3 -6
- package/dist/treeshaking/components/sig/OSigDetail.vue.d.ts +0 -2
- package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +10 -13
- package/dist/treeshaking/components/sig/OSigList.css +316 -88
- package/dist/treeshaking/components/sig/OSigList.vue.d.ts +2 -2
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +204 -300
- package/dist/treeshaking/components/sig/components/OSigItem.css +68 -63
- package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +1 -4
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +6 -6
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.d.ts +0 -2
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +2 -3
- package/dist/treeshaking/components/sig/components/config-sig.d.ts +1 -0
- package/dist/treeshaking/components/sig/components/config-sig.mjs +4 -0
- package/dist/treeshaking/components/sig/types.d.ts +1 -2
- package/dist/treeshaking/i18n/en.mjs +1 -0
- package/dist/treeshaking/i18n/zh.mjs +1 -0
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +3 -0
- package/package.json +3 -3
- package/dist/treeshaking/_virtual/icon-filter2.mjs +0 -21
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock,
|
|
1
|
+
import { defineComponent, computed, ref, watch, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, toDisplayString, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
|
|
2
|
+
import { ElSelect, ElOption } from "element-plus";
|
|
3
|
+
import "element-plus/es/components/select/style/css";
|
|
4
|
+
import "element-plus/es/components/option/style/css";
|
|
2
5
|
import { useDebounceFn, onClickOutside, useThrottleFn } from "@vueuse/core";
|
|
3
6
|
import { useScreen } from "@opendesign-plus/composables";
|
|
4
7
|
import { useI18n } from "../../i18n/index.mjs";
|
|
5
|
-
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon,
|
|
8
|
+
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, ORow, OCol, OPagination } from "@opensig/opendesign";
|
|
6
9
|
import OEmpty from "../empty/OEmpty.vue.mjs";
|
|
7
10
|
import _sfc_main$1 from "./components/OSigItem.vue.mjs";
|
|
8
11
|
import './components/OSigItem.css';
|
|
9
12
|
import IconSearch from "../../_virtual/icon-search.mjs";
|
|
10
|
-
import IconFilter from "../../_virtual/icon-filter.mjs";
|
|
11
13
|
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
12
14
|
const _hoisted_1 = { class: "o-sig-list" };
|
|
13
15
|
const _hoisted_2 = {
|
|
@@ -15,50 +17,45 @@ const _hoisted_2 = {
|
|
|
15
17
|
class: "o-sig-filter-type"
|
|
16
18
|
};
|
|
17
19
|
const _hoisted_3 = { class: "o-sig-filter-title" };
|
|
18
|
-
const _hoisted_4 = {
|
|
19
|
-
|
|
20
|
+
const _hoisted_4 = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "o-sig-filter-input"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_5 = { class: "o-sig-filter-select-box" };
|
|
25
|
+
const _hoisted_6 = {
|
|
20
26
|
key: 0,
|
|
21
27
|
class: "o-sig-search-data"
|
|
22
28
|
};
|
|
23
|
-
const
|
|
29
|
+
const _hoisted_7 = {
|
|
24
30
|
key: 0,
|
|
25
31
|
class: "o-sig-search-label"
|
|
26
32
|
};
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
33
|
+
const _hoisted_8 = ["onClick"];
|
|
34
|
+
const _hoisted_9 = ["title"];
|
|
35
|
+
const _hoisted_10 = {
|
|
30
36
|
key: 2,
|
|
31
37
|
class: "o-sig-no-result"
|
|
32
38
|
};
|
|
33
|
-
const
|
|
34
|
-
key: 1,
|
|
35
|
-
class: "o-sig-filter-btn"
|
|
36
|
-
};
|
|
37
|
-
const _hoisted_11 = { class: "o-sig-filter-text" };
|
|
38
|
-
const _hoisted_12 = {
|
|
39
|
+
const _hoisted_11 = {
|
|
39
40
|
key: 0,
|
|
40
41
|
class: "o-sig-filter-result-tip"
|
|
41
42
|
};
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
43
|
+
const _hoisted_12 = { key: 0 };
|
|
44
|
+
const _hoisted_13 = { class: "o-sig-num" };
|
|
45
|
+
const _hoisted_14 = {
|
|
45
46
|
key: 0,
|
|
46
47
|
class: "o-sig-num"
|
|
47
48
|
};
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
49
|
+
const _hoisted_15 = { key: 1 };
|
|
50
|
+
const _hoisted_16 = { class: "o-sig-num" };
|
|
51
|
+
const _hoisted_17 = {
|
|
51
52
|
key: 3,
|
|
52
53
|
class: "o-sig-loading"
|
|
53
54
|
};
|
|
54
|
-
const
|
|
55
|
+
const _hoisted_18 = {
|
|
55
56
|
key: 4,
|
|
56
57
|
class: "o-sig-pagination"
|
|
57
58
|
};
|
|
58
|
-
const _hoisted_20 = { class: "o-sig-dialog-title" };
|
|
59
|
-
const _hoisted_21 = { class: "o-sig-dialog-body" };
|
|
60
|
-
const _hoisted_22 = { class: "o-sig-filter-title" };
|
|
61
|
-
const _hoisted_23 = { class: "o-sig-dialog-btn" };
|
|
62
59
|
const PAGE_SIZE_DEFAULT = 10;
|
|
63
60
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
64
61
|
__name: "OSigList",
|
|
@@ -66,14 +63,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
63
|
sigLandscape: { default: () => [] },
|
|
67
64
|
sigList: { default: () => [] },
|
|
68
65
|
searchFn: {},
|
|
69
|
-
|
|
66
|
+
footerSelector: { default: "#app > .footer" }
|
|
70
67
|
},
|
|
71
68
|
emits: ["to-sig-detail"],
|
|
72
69
|
setup(__props, { emit: __emit }) {
|
|
73
70
|
const vDompurifyHtml = buildVueDompurifyHTMLDirective();
|
|
74
71
|
const { locale: localeRef, t } = useI18n();
|
|
75
72
|
const locale = computed(() => localeRef.value);
|
|
76
|
-
const { isLaptop, isPadH, lePadV } = useScreen();
|
|
73
|
+
const { isLaptop, isPadH, lePadV, isPhone } = useScreen();
|
|
77
74
|
const COUNT_PER_PAGE = [10, 20, 30];
|
|
78
75
|
const props = __props;
|
|
79
76
|
const emit = __emit;
|
|
@@ -88,10 +85,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
85
|
const featureArr = ref([]);
|
|
89
86
|
const mergedSigList = ref([]);
|
|
90
87
|
const constructLandscapeMap = () => {
|
|
91
|
-
if (!props.sigLandscape.length) {
|
|
92
|
-
featureArr.value = [];
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
88
|
landscapeList.value = props.sigLandscape.map(({ created_at: _created, ...rest }) => rest);
|
|
96
89
|
const seen = /* @__PURE__ */ new Set();
|
|
97
90
|
const features = [];
|
|
@@ -120,6 +113,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
113
|
constructLandscapeMap();
|
|
121
114
|
mergeSigList();
|
|
122
115
|
};
|
|
116
|
+
watch(
|
|
117
|
+
() => [props.sigList, props.sigLandscape],
|
|
118
|
+
() => {
|
|
119
|
+
initData();
|
|
120
|
+
},
|
|
121
|
+
{ immediate: true }
|
|
122
|
+
);
|
|
123
123
|
const searchType = ref("all");
|
|
124
124
|
const placeholderType = ref(t("sig.searchSig"));
|
|
125
125
|
const sigOptions = [
|
|
@@ -221,9 +221,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
221
221
|
const filterSigData = ref([]);
|
|
222
222
|
const filterSearchData = ref([]);
|
|
223
223
|
const filterDataMb = ref([]);
|
|
224
|
-
const filterVisible = ref(false);
|
|
225
224
|
const featureType = ref("all");
|
|
226
|
-
const featureTypeMb = ref("all");
|
|
227
225
|
const matchKw = (text, kw) => !!text && text.toLowerCase().includes(kw);
|
|
228
226
|
watch(
|
|
229
227
|
() => [
|
|
@@ -276,7 +274,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
276
274
|
});
|
|
277
275
|
const clearChecked = (val) => {
|
|
278
276
|
resetSigQuery();
|
|
279
|
-
filterVisible.value = false;
|
|
280
277
|
if (val) {
|
|
281
278
|
nextTick(() => {
|
|
282
279
|
featureType.value = "all";
|
|
@@ -290,15 +287,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
290
287
|
);
|
|
291
288
|
sigQuery.value.page++;
|
|
292
289
|
};
|
|
293
|
-
const resetVersion = () => {
|
|
294
|
-
featureType.value = "all";
|
|
295
|
-
filterVisible.value = false;
|
|
296
|
-
};
|
|
297
|
-
const confirmVersion = () => {
|
|
298
|
-
resetSigQuery();
|
|
299
|
-
filterVisible.value = false;
|
|
300
|
-
featureType.value = featureTypeMb.value;
|
|
301
|
-
};
|
|
302
290
|
const footer = ref(null);
|
|
303
291
|
const listenScroll = () => {
|
|
304
292
|
if (!lePadV.value) return;
|
|
@@ -315,286 +303,202 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
315
303
|
};
|
|
316
304
|
const throttleEvent = useThrottleFn(listenScroll, 300);
|
|
317
305
|
onMounted(() => {
|
|
318
|
-
|
|
319
|
-
footer.value = document.querySelector("#app > .footer");
|
|
306
|
+
footer.value = document.querySelector(props.footerSelector);
|
|
320
307
|
window.addEventListener("scroll", throttleEvent);
|
|
321
308
|
});
|
|
322
309
|
onUnmounted(() => {
|
|
323
310
|
window.removeEventListener("scroll", throttleEvent);
|
|
324
311
|
});
|
|
325
312
|
return (_ctx, _cache) => {
|
|
326
|
-
return openBlock(), createElementBlock(
|
|
327
|
-
createElementVNode("div",
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
313
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
314
|
+
createElementVNode("div", {
|
|
315
|
+
class: normalizeClass(["o-sig-filter-box", `o-sig-filter-box-${locale.value}`])
|
|
316
|
+
}, [
|
|
317
|
+
!unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
318
|
+
createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("sig.type")), 1),
|
|
319
|
+
createVNode(unref(ORadioGroup), {
|
|
320
|
+
modelValue: featureType.value,
|
|
321
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
|
|
322
|
+
}, {
|
|
323
|
+
default: withCtx(() => [
|
|
324
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
325
|
+
return openBlock(), createBlock(unref(ORadio), {
|
|
326
|
+
key: option.value,
|
|
327
|
+
value: option.value
|
|
328
|
+
}, {
|
|
329
|
+
radio: withCtx(({ checked }) => [
|
|
330
|
+
createVNode(unref(OToggle), {
|
|
331
|
+
class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
|
|
332
|
+
checked,
|
|
333
|
+
onClick: ($event) => clearChecked(checked)
|
|
343
334
|
}, {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
class: normalizeClass(["o-sig-tag-normal", { active: checked }]),
|
|
347
|
-
checked,
|
|
348
|
-
onClick: ($event) => clearChecked(checked)
|
|
349
|
-
}, {
|
|
350
|
-
default: withCtx(() => [
|
|
351
|
-
createTextVNode(toDisplayString(option.label[locale.value]), 1)
|
|
352
|
-
]),
|
|
353
|
-
_: 2
|
|
354
|
-
}, 1032, ["class", "checked", "onClick"])
|
|
335
|
+
default: withCtx(() => [
|
|
336
|
+
createTextVNode(toDisplayString(option.label[locale.value]), 1)
|
|
355
337
|
]),
|
|
356
338
|
_: 2
|
|
357
|
-
}, 1032, ["
|
|
358
|
-
}), 128))
|
|
359
|
-
]),
|
|
360
|
-
_: 1
|
|
361
|
-
}, 8, ["modelValue"])
|
|
362
|
-
])) : createCommentVNode("", true),
|
|
363
|
-
!unref(lePadV) ? (openBlock(), createBlock(unref(ODivider), {
|
|
364
|
-
key: 1,
|
|
365
|
-
direction: "h"
|
|
366
|
-
})) : createCommentVNode("", true)
|
|
367
|
-
], 64)) : createCommentVNode("", true),
|
|
368
|
-
createElementVNode("div", _hoisted_4, [
|
|
369
|
-
createElementVNode("div", {
|
|
370
|
-
ref_key: "panelRef",
|
|
371
|
-
ref: panelRef,
|
|
372
|
-
class: normalizeClass(["o-sig-filter-select", { "o-sig-filter-select-focus": showPanel.value }])
|
|
373
|
-
}, [
|
|
374
|
-
createVNode(unref(OSelect), {
|
|
375
|
-
modelValue: searchType.value,
|
|
376
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchType.value = $event),
|
|
377
|
-
size: "large",
|
|
378
|
-
trigger: "click",
|
|
379
|
-
variant: "outline",
|
|
380
|
-
onChange: getSearchType
|
|
381
|
-
}, {
|
|
382
|
-
default: withCtx(() => [
|
|
383
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(sigOptions, (item) => {
|
|
384
|
-
return createVNode(unref(OOption), {
|
|
385
|
-
key: item.value,
|
|
386
|
-
label: item.label,
|
|
387
|
-
value: item.value
|
|
388
|
-
}, null, 8, ["label", "value"]);
|
|
389
|
-
}), 64))
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
}, 8, ["modelValue"]),
|
|
393
|
-
createVNode(unref(OInput), {
|
|
394
|
-
modelValue: debounceSig.value,
|
|
395
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => debounceSig.value = $event),
|
|
396
|
-
size: "large",
|
|
397
|
-
clearable: "",
|
|
398
|
-
placeholder: placeholderType.value,
|
|
399
|
-
onFocusCapture: _cache[3] || (_cache[3] = ($event) => showPanel.value = true),
|
|
400
|
-
onPressEnter: changeSearchInput,
|
|
401
|
-
onClear: clearInput
|
|
402
|
-
}, {
|
|
403
|
-
prefix: withCtx(() => [
|
|
404
|
-
createVNode(unref(OIcon), null, {
|
|
405
|
-
default: withCtx(() => [
|
|
406
|
-
createVNode(unref(IconSearch))
|
|
407
|
-
]),
|
|
408
|
-
_: 1
|
|
409
|
-
})
|
|
410
|
-
]),
|
|
411
|
-
_: 1
|
|
412
|
-
}, 8, ["modelValue", "placeholder"]),
|
|
413
|
-
showPanel.value && sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
414
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
|
|
415
|
-
return openBlock(), createElementBlock("div", {
|
|
416
|
-
key: item.id,
|
|
417
|
-
class: "o-sig-search-group"
|
|
418
|
-
}, [
|
|
419
|
-
searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(item.label), 1)) : createCommentVNode("", true),
|
|
420
|
-
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
421
|
-
return openBlock(), createElementBlock("div", {
|
|
422
|
-
key: it.name,
|
|
423
|
-
class: "o-sig-search-item",
|
|
424
|
-
onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
|
|
425
|
-
}, [
|
|
426
|
-
withDirectives(createElementVNode("span", {
|
|
427
|
-
title: stripHtml(it == null ? void 0 : it.name),
|
|
428
|
-
class: "o-sig-search-title"
|
|
429
|
-
}, null, 8, _hoisted_8), [
|
|
430
|
-
[unref(vDompurifyHtml), it == null ? void 0 : it.name]
|
|
431
|
-
])
|
|
432
|
-
], 8, _hoisted_7);
|
|
433
|
-
}), 128)) : (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(unref(t)("sig.noResult")), 1))
|
|
434
|
-
]);
|
|
435
|
-
}), 128))
|
|
436
|
-
])) : createCommentVNode("", true)
|
|
437
|
-
], 2)
|
|
438
|
-
]),
|
|
439
|
-
unref(lePadV) && featureArr.value.length ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
440
|
-
createVNode(unref(OButton), {
|
|
441
|
-
variant: "text",
|
|
442
|
-
color: "normal",
|
|
443
|
-
class: "o-sig-select-btn",
|
|
444
|
-
onClick: _cache[4] || (_cache[4] = ($event) => filterVisible.value = true)
|
|
445
|
-
}, {
|
|
446
|
-
default: withCtx(() => [
|
|
447
|
-
createVNode(unref(OIcon), null, {
|
|
448
|
-
default: withCtx(() => [
|
|
449
|
-
createVNode(unref(IconFilter))
|
|
339
|
+
}, 1032, ["class", "checked", "onClick"])
|
|
450
340
|
]),
|
|
451
|
-
_:
|
|
452
|
-
})
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
])) : createCommentVNode("", true)
|
|
458
|
-
], 2),
|
|
459
|
-
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
460
|
-
sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
461
|
-
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
|
|
462
|
-
createElementVNode("span", _hoisted_14, toDisplayString(filterSearchData.value.length), 1),
|
|
463
|
-
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
|
|
464
|
-
locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
|
|
465
|
-
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
|
|
466
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
467
|
-
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
|
|
468
|
-
createElementVNode("span", _hoisted_17, toDisplayString(filterSearchData.value.length), 1),
|
|
469
|
-
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
|
|
470
|
-
]))
|
|
341
|
+
_: 2
|
|
342
|
+
}, 1032, ["value"]);
|
|
343
|
+
}), 128))
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
}, 8, ["modelValue"])
|
|
471
347
|
])) : createCommentVNode("", true),
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
})),
|
|
507
|
-
unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", _hoisted_18, toDisplayString(unref(t)("sig.loading")), 1)) : createCommentVNode("", true),
|
|
508
|
-
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
509
|
-
createVNode(unref(OPagination), {
|
|
510
|
-
page: sigQuery.value.page,
|
|
511
|
-
"onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
|
|
512
|
-
"page-size": sigQuery.value.pageSize,
|
|
513
|
-
"onUpdate:pageSize": _cache[6] || (_cache[6] = ($event) => sigQuery.value.pageSize = $event),
|
|
514
|
-
layout: ["total", "pagesize", "pager", "jumper"],
|
|
515
|
-
total: filterSearchData.value.length,
|
|
516
|
-
"page-sizes": COUNT_PER_PAGE,
|
|
517
|
-
"show-more": true
|
|
518
|
-
}, null, 8, ["page", "page-size", "total"])
|
|
519
|
-
])) : createCommentVNode("", true)
|
|
520
|
-
]),
|
|
521
|
-
createVNode(unref(ODialog), {
|
|
522
|
-
visible: filterVisible.value,
|
|
523
|
-
"onUpdate:visible": _cache[8] || (_cache[8] = ($event) => filterVisible.value = $event),
|
|
524
|
-
"phone-half-full": unref(lePadV),
|
|
525
|
-
scrollbar: { showType: "always", size: "small" },
|
|
526
|
-
size: "medium",
|
|
527
|
-
style: { "--dlg-radius": "4px 4px 0 0" },
|
|
528
|
-
class: "o-sig-filter-dialog"
|
|
529
|
-
}, {
|
|
530
|
-
header: withCtx(() => [
|
|
531
|
-
createElementVNode("span", _hoisted_20, toDisplayString(unref(t)("sig.type")), 1)
|
|
532
|
-
]),
|
|
533
|
-
default: withCtx(() => [
|
|
534
|
-
createElementVNode("div", _hoisted_21, [
|
|
535
|
-
createElementVNode("p", _hoisted_22, toDisplayString(unref(t)("sig.type")), 1),
|
|
536
|
-
createVNode(unref(ORadioGroup), {
|
|
537
|
-
modelValue: featureTypeMb.value,
|
|
538
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => featureTypeMb.value = $event),
|
|
539
|
-
style: { gap: "8px 8px" }
|
|
348
|
+
unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
349
|
+
createVNode(unref(ElSelect), {
|
|
350
|
+
modelValue: featureType.value,
|
|
351
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => featureType.value = $event),
|
|
352
|
+
filterable: "",
|
|
353
|
+
size: "large",
|
|
354
|
+
placeholder: unref(t)("sig.selectOrSearchCate")
|
|
355
|
+
}, {
|
|
356
|
+
default: withCtx(() => [
|
|
357
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(featureArr.value, (option) => {
|
|
358
|
+
return openBlock(), createBlock(unref(ElOption), {
|
|
359
|
+
key: option.value,
|
|
360
|
+
label: option.label[locale.value] ?? option.value,
|
|
361
|
+
value: option.value
|
|
362
|
+
}, null, 8, ["label", "value"]);
|
|
363
|
+
}), 128))
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
}, 8, ["modelValue", "placeholder"])
|
|
367
|
+
])) : createCommentVNode("", true),
|
|
368
|
+
createVNode(unref(ODivider), { direction: "h" }),
|
|
369
|
+
createElementVNode("div", _hoisted_5, [
|
|
370
|
+
createElementVNode("div", {
|
|
371
|
+
ref_key: "panelRef",
|
|
372
|
+
ref: panelRef,
|
|
373
|
+
class: normalizeClass(["o-sig-filter-select", { "o-sig-filter-select-focus": showPanel.value }])
|
|
374
|
+
}, [
|
|
375
|
+
createVNode(unref(OSelect), {
|
|
376
|
+
modelValue: searchType.value,
|
|
377
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchType.value = $event),
|
|
378
|
+
size: "large",
|
|
379
|
+
trigger: "click",
|
|
380
|
+
variant: "outline",
|
|
381
|
+
onChange: getSearchType
|
|
540
382
|
}, {
|
|
541
383
|
default: withCtx(() => [
|
|
542
|
-
(openBlock(
|
|
543
|
-
return
|
|
544
|
-
key:
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
class: normalizeClass({ active: checked }),
|
|
550
|
-
checked,
|
|
551
|
-
style: { "--toggle-size": "28px", "--toggle-padding": "6px 16px", "--toggle-radius": "4px" }
|
|
552
|
-
}, {
|
|
553
|
-
default: withCtx(() => [
|
|
554
|
-
createTextVNode(toDisplayString(option.label[locale.value]), 1)
|
|
555
|
-
]),
|
|
556
|
-
_: 2
|
|
557
|
-
}, 1032, ["class", "checked"])
|
|
558
|
-
]),
|
|
559
|
-
_: 2
|
|
560
|
-
}, 1032, ["value"]);
|
|
561
|
-
}), 128))
|
|
384
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(sigOptions, (item) => {
|
|
385
|
+
return createVNode(unref(OOption), {
|
|
386
|
+
key: item.value,
|
|
387
|
+
label: item.label,
|
|
388
|
+
value: item.value
|
|
389
|
+
}, null, 8, ["label", "value"]);
|
|
390
|
+
}), 64))
|
|
562
391
|
]),
|
|
563
392
|
_: 1
|
|
564
|
-
}, 8, ["modelValue"])
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
color: "normal",
|
|
569
|
-
variant: "text",
|
|
393
|
+
}, 8, ["modelValue"]),
|
|
394
|
+
createVNode(unref(OInput), {
|
|
395
|
+
modelValue: debounceSig.value,
|
|
396
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => debounceSig.value = $event),
|
|
570
397
|
size: "large",
|
|
571
|
-
|
|
398
|
+
clearable: "",
|
|
399
|
+
placeholder: placeholderType.value,
|
|
400
|
+
onFocusCapture: _cache[4] || (_cache[4] = ($event) => showPanel.value = true),
|
|
401
|
+
onPressEnter: changeSearchInput,
|
|
402
|
+
onClear: clearInput
|
|
572
403
|
}, {
|
|
573
|
-
|
|
574
|
-
|
|
404
|
+
prefix: withCtx(() => [
|
|
405
|
+
createVNode(unref(OIcon), null, {
|
|
406
|
+
default: withCtx(() => [
|
|
407
|
+
createVNode(unref(IconSearch))
|
|
408
|
+
]),
|
|
409
|
+
_: 1
|
|
410
|
+
})
|
|
575
411
|
]),
|
|
576
412
|
_: 1
|
|
577
|
-
}),
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
413
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
414
|
+
showPanel.value && sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
415
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
|
|
416
|
+
return openBlock(), createElementBlock("div", {
|
|
417
|
+
key: item.id,
|
|
418
|
+
class: "o-sig-search-group"
|
|
419
|
+
}, [
|
|
420
|
+
searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(item.label), 1)) : createCommentVNode("", true),
|
|
421
|
+
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
422
|
+
return openBlock(), createElementBlock("div", {
|
|
423
|
+
key: it.name,
|
|
424
|
+
class: "o-sig-search-item",
|
|
425
|
+
onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
|
|
426
|
+
}, [
|
|
427
|
+
withDirectives(createElementVNode("span", {
|
|
428
|
+
title: stripHtml(it == null ? void 0 : it.name),
|
|
429
|
+
class: "o-sig-search-title"
|
|
430
|
+
}, null, 8, _hoisted_9), [
|
|
431
|
+
[unref(vDompurifyHtml), it == null ? void 0 : it.name]
|
|
432
|
+
])
|
|
433
|
+
], 8, _hoisted_8);
|
|
434
|
+
}), 128)) : (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(unref(t)("sig.noResult")), 1))
|
|
435
|
+
]);
|
|
436
|
+
}), 128))
|
|
437
|
+
])) : createCommentVNode("", true)
|
|
438
|
+
], 2)
|
|
439
|
+
])
|
|
440
|
+
], 2),
|
|
441
|
+
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
442
|
+
sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
443
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
|
|
444
|
+
createElementVNode("span", _hoisted_13, toDisplayString(filterSearchData.value.length), 1),
|
|
445
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
|
|
446
|
+
locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
|
|
447
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
|
|
448
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
449
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
|
|
450
|
+
createElementVNode("span", _hoisted_16, toDisplayString(filterSearchData.value.length), 1),
|
|
451
|
+
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
|
|
452
|
+
]))
|
|
453
|
+
])) : createCommentVNode("", true),
|
|
454
|
+
filterSigData.value.length ? (openBlock(), createBlock(unref(ORow), {
|
|
455
|
+
key: 1,
|
|
456
|
+
gap: gap.value,
|
|
457
|
+
wrap: "wrap",
|
|
458
|
+
class: normalizeClass(["o-sig-card-list", { "o-sig-card-list-tip": featureType.value !== "all" || enterSearchInput.value }])
|
|
459
|
+
}, {
|
|
460
|
+
default: withCtx(() => [
|
|
461
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(filterSigData.value, (sig) => {
|
|
462
|
+
return openBlock(), createBlock(unref(OCol), {
|
|
463
|
+
key: sig.name,
|
|
464
|
+
flex: unref(lePadV) ? "0 0 100%" : "0 0 50%"
|
|
587
465
|
}, {
|
|
588
466
|
default: withCtx(() => [
|
|
589
|
-
|
|
467
|
+
createVNode(_sfc_main$1, {
|
|
468
|
+
sig,
|
|
469
|
+
locale: locale.value,
|
|
470
|
+
mobile: unref(lePadV),
|
|
471
|
+
"active-repo": activeRepo.value,
|
|
472
|
+
onToSigDetail: toSigDetail
|
|
473
|
+
}, null, 8, ["sig", "locale", "mobile", "active-repo"])
|
|
590
474
|
]),
|
|
591
|
-
_:
|
|
592
|
-
})
|
|
593
|
-
|
|
475
|
+
_: 2
|
|
476
|
+
}, 1032, ["flex"]);
|
|
477
|
+
}), 128))
|
|
594
478
|
]),
|
|
595
479
|
_: 1
|
|
596
|
-
}, 8, ["
|
|
597
|
-
|
|
480
|
+
}, 8, ["gap", "class"])) : (openBlock(), createBlock(OEmpty, {
|
|
481
|
+
key: 2,
|
|
482
|
+
style: {
|
|
483
|
+
"margin-top": "40px",
|
|
484
|
+
"--result-image-width": "140px",
|
|
485
|
+
"--result-image-height": "170px"
|
|
486
|
+
}
|
|
487
|
+
})),
|
|
488
|
+
unref(lePadV) && filterDataMb.value.length && filterDataMb.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", _hoisted_17, toDisplayString(unref(t)("sig.loading")), 1)) : createCommentVNode("", true),
|
|
489
|
+
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
490
|
+
createVNode(unref(OPagination), {
|
|
491
|
+
page: sigQuery.value.page,
|
|
492
|
+
"onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
|
|
493
|
+
"page-size": sigQuery.value.pageSize,
|
|
494
|
+
"onUpdate:pageSize": _cache[6] || (_cache[6] = ($event) => sigQuery.value.pageSize = $event),
|
|
495
|
+
layout: ["total", "pagesize", "pager", "jumper"],
|
|
496
|
+
total: filterSearchData.value.length,
|
|
497
|
+
"page-sizes": COUNT_PER_PAGE,
|
|
498
|
+
"show-more": true
|
|
499
|
+
}, null, 8, ["page", "page-size", "total"])
|
|
500
|
+
])) : createCommentVNode("", true)
|
|
501
|
+
]);
|
|
598
502
|
};
|
|
599
503
|
}
|
|
600
504
|
});
|