@opendesign-plus-test/components 0.0.1-rc.151 → 0.0.1-rc.153
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/components/sig/OSigList.vue.d.ts +2 -0
- package/dist/components.cjs.js +12 -12
- package/dist/components.css +1 -1
- package/dist/components.es.js +2437 -2422
- package/dist/treeshaking/components/sig/OSigList.css +122 -130
- package/dist/treeshaking/components/sig/OSigList.vue.d.ts +2 -0
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +95 -90
- package/dist/treeshaking/components/sig/components/OSigItem.css +29 -365
- package/package.json +1 -1
|
@@ -552,133 +552,6 @@
|
|
|
552
552
|
--box-height: 38px;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-data {
|
|
556
|
-
position: absolute;
|
|
557
|
-
top: 44px;
|
|
558
|
-
right: 0;
|
|
559
|
-
width: 320px;
|
|
560
|
-
background-color: var(--o-color-fill2);
|
|
561
|
-
padding: 4px;
|
|
562
|
-
border-radius: var(--sig-card-radius);
|
|
563
|
-
box-shadow: var(--o-shadow-2);
|
|
564
|
-
z-index: 10;
|
|
565
|
-
}
|
|
566
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-group + .o-sig-search-group {
|
|
567
|
-
margin-top: 4px;
|
|
568
|
-
}
|
|
569
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-label {
|
|
570
|
-
color: var(--o-color-info3);
|
|
571
|
-
padding: 4px 8px;
|
|
572
|
-
font-size: 12px;
|
|
573
|
-
line-height: 18px;
|
|
574
|
-
}
|
|
575
|
-
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
576
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-label {
|
|
577
|
-
font-size: 12px;
|
|
578
|
-
line-height: 18px;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
@media (min-width: 841px) and (max-width: 1200px) {
|
|
582
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-label {
|
|
583
|
-
font-size: 12px;
|
|
584
|
-
line-height: 18px;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
@media (min-width: 601px) and (max-width: 840px) {
|
|
588
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-label {
|
|
589
|
-
font-size: 12px;
|
|
590
|
-
line-height: 18px;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
@media (max-width: 600px) {
|
|
594
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-label {
|
|
595
|
-
font-size: 12px;
|
|
596
|
-
line-height: 18px;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-item {
|
|
600
|
-
padding: 8px 12px;
|
|
601
|
-
display: flex;
|
|
602
|
-
align-items: center;
|
|
603
|
-
justify-content: space-between;
|
|
604
|
-
cursor: pointer;
|
|
605
|
-
border-radius: var(--sig-input-radius);
|
|
606
|
-
}
|
|
607
|
-
@media (hover: hover) {
|
|
608
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-item:hover {
|
|
609
|
-
background-color: var(--o-color-control2-light);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-item .highlight-text {
|
|
613
|
-
color: var(--o-color-link1);
|
|
614
|
-
}
|
|
615
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-title {
|
|
616
|
-
color: var(--o-color-info1);
|
|
617
|
-
font-size: 16px;
|
|
618
|
-
line-height: 24px;
|
|
619
|
-
}
|
|
620
|
-
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
621
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-title {
|
|
622
|
-
font-size: 14px;
|
|
623
|
-
line-height: 22px;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
@media (min-width: 841px) and (max-width: 1200px) {
|
|
627
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-title {
|
|
628
|
-
font-size: 14px;
|
|
629
|
-
line-height: 22px;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
@media (min-width: 601px) and (max-width: 840px) {
|
|
633
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-title {
|
|
634
|
-
font-size: 14px;
|
|
635
|
-
line-height: 22px;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
@media (max-width: 600px) {
|
|
639
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-title {
|
|
640
|
-
font-size: 12px;
|
|
641
|
-
line-height: 18px;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-search-title {
|
|
645
|
-
overflow: hidden;
|
|
646
|
-
text-overflow: ellipsis;
|
|
647
|
-
word-break: break-all;
|
|
648
|
-
display: -webkit-box;
|
|
649
|
-
-webkit-box-orient: vertical;
|
|
650
|
-
-webkit-line-clamp: 1;
|
|
651
|
-
}
|
|
652
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-no-result {
|
|
653
|
-
padding: 8px 12px;
|
|
654
|
-
color: var(--o-color-info3);
|
|
655
|
-
font-size: 14px;
|
|
656
|
-
line-height: 22px;
|
|
657
|
-
}
|
|
658
|
-
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
659
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-no-result {
|
|
660
|
-
font-size: 14px;
|
|
661
|
-
line-height: 18px;
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
@media (min-width: 841px) and (max-width: 1200px) {
|
|
665
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-no-result {
|
|
666
|
-
font-size: 12px;
|
|
667
|
-
line-height: 18px;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
@media (min-width: 601px) and (max-width: 840px) {
|
|
671
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-no-result {
|
|
672
|
-
font-size: 12px;
|
|
673
|
-
line-height: 18px;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
@media (max-width: 600px) {
|
|
677
|
-
.o-sig-list .o-sig-filter-box .o-sig-filter-select-box .o-sig-no-result {
|
|
678
|
-
font-size: 12px;
|
|
679
|
-
line-height: 18px;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
555
|
@media (max-width: 840px) {
|
|
683
556
|
.o-sig-list .o-sig-filter-box .o-sig-filter-btn {
|
|
684
557
|
display: flex;
|
|
@@ -700,9 +573,6 @@
|
|
|
700
573
|
.o-sig-list .o-sig-filter-box-en .o-input .o_box {
|
|
701
574
|
width: 380px;
|
|
702
575
|
}
|
|
703
|
-
.o-sig-list .o-sig-filter-box-en .o-sig-search-data {
|
|
704
|
-
width: 380px;
|
|
705
|
-
}
|
|
706
576
|
.o-sig-list .o-sig-filter-result-tip {
|
|
707
577
|
margin-top: var(--grid-column-gutter);
|
|
708
578
|
color: var(--o-color-info3);
|
|
@@ -819,4 +689,126 @@
|
|
|
819
689
|
font-size: 12px;
|
|
820
690
|
line-height: 18px;
|
|
821
691
|
}
|
|
692
|
+
}
|
|
693
|
+
.o-sig-list .o-sig-search-data {
|
|
694
|
+
width: 320px;
|
|
695
|
+
}
|
|
696
|
+
.o-sig-list .o-sig-search-data.o-sig-search-data-en {
|
|
697
|
+
width: 380px;
|
|
698
|
+
}
|
|
699
|
+
.o-sig-list .o-sig-search-data .o-sig-search-group + .o-sig-search-group {
|
|
700
|
+
margin-top: 4px;
|
|
701
|
+
}
|
|
702
|
+
.o-sig-list .o-sig-search-data .o-sig-search-label {
|
|
703
|
+
color: var(--o-color-info3);
|
|
704
|
+
padding: 4px 8px;
|
|
705
|
+
font-size: 12px;
|
|
706
|
+
line-height: 18px;
|
|
707
|
+
}
|
|
708
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
709
|
+
.o-sig-list .o-sig-search-data .o-sig-search-label {
|
|
710
|
+
font-size: 12px;
|
|
711
|
+
line-height: 18px;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
715
|
+
.o-sig-list .o-sig-search-data .o-sig-search-label {
|
|
716
|
+
font-size: 12px;
|
|
717
|
+
line-height: 18px;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
721
|
+
.o-sig-list .o-sig-search-data .o-sig-search-label {
|
|
722
|
+
font-size: 12px;
|
|
723
|
+
line-height: 18px;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
@media (max-width: 600px) {
|
|
727
|
+
.o-sig-list .o-sig-search-data .o-sig-search-label {
|
|
728
|
+
font-size: 12px;
|
|
729
|
+
line-height: 18px;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
.o-sig-list .o-sig-search-data .o-sig-search-item {
|
|
733
|
+
padding: 8px 12px;
|
|
734
|
+
display: flex;
|
|
735
|
+
align-items: center;
|
|
736
|
+
justify-content: space-between;
|
|
737
|
+
cursor: pointer;
|
|
738
|
+
border-radius: var(--sig-input-radius);
|
|
739
|
+
}
|
|
740
|
+
@media (hover: hover) {
|
|
741
|
+
.o-sig-list .o-sig-search-data .o-sig-search-item:hover {
|
|
742
|
+
background-color: var(--o-color-control2-light);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
.o-sig-list .o-sig-search-data .o-sig-search-item .highlight-text {
|
|
746
|
+
color: var(--o-color-link1);
|
|
747
|
+
}
|
|
748
|
+
.o-sig-list .o-sig-search-data .o-sig-search-title {
|
|
749
|
+
color: var(--o-color-info1);
|
|
750
|
+
font-size: 16px;
|
|
751
|
+
line-height: 24px;
|
|
752
|
+
}
|
|
753
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
754
|
+
.o-sig-list .o-sig-search-data .o-sig-search-title {
|
|
755
|
+
font-size: 14px;
|
|
756
|
+
line-height: 22px;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
760
|
+
.o-sig-list .o-sig-search-data .o-sig-search-title {
|
|
761
|
+
font-size: 14px;
|
|
762
|
+
line-height: 22px;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
766
|
+
.o-sig-list .o-sig-search-data .o-sig-search-title {
|
|
767
|
+
font-size: 14px;
|
|
768
|
+
line-height: 22px;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
@media (max-width: 600px) {
|
|
772
|
+
.o-sig-list .o-sig-search-data .o-sig-search-title {
|
|
773
|
+
font-size: 12px;
|
|
774
|
+
line-height: 18px;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
.o-sig-list .o-sig-search-data .o-sig-search-title {
|
|
778
|
+
overflow: hidden;
|
|
779
|
+
text-overflow: ellipsis;
|
|
780
|
+
word-break: break-all;
|
|
781
|
+
display: -webkit-box;
|
|
782
|
+
-webkit-box-orient: vertical;
|
|
783
|
+
-webkit-line-clamp: 1;
|
|
784
|
+
}
|
|
785
|
+
.o-sig-list .o-sig-search-data .o-sig-no-result {
|
|
786
|
+
padding: 8px 12px;
|
|
787
|
+
color: var(--o-color-info3);
|
|
788
|
+
font-size: 14px;
|
|
789
|
+
line-height: 22px;
|
|
790
|
+
}
|
|
791
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
792
|
+
.o-sig-list .o-sig-search-data .o-sig-no-result {
|
|
793
|
+
font-size: 14px;
|
|
794
|
+
line-height: 18px;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
798
|
+
.o-sig-list .o-sig-search-data .o-sig-no-result {
|
|
799
|
+
font-size: 12px;
|
|
800
|
+
line-height: 18px;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
804
|
+
.o-sig-list .o-sig-search-data .o-sig-no-result {
|
|
805
|
+
font-size: 12px;
|
|
806
|
+
line-height: 18px;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
@media (max-width: 600px) {
|
|
810
|
+
.o-sig-list .o-sig-search-data .o-sig-no-result {
|
|
811
|
+
font-size: 12px;
|
|
812
|
+
line-height: 18px;
|
|
813
|
+
}
|
|
822
814
|
}
|
|
@@ -8,6 +8,8 @@ declare const _default: import('vue').DefineComponent<SigListPropsT, {}, {}, {},
|
|
|
8
8
|
sigList: SigListItemT[];
|
|
9
9
|
footerSelector: string;
|
|
10
10
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
rootRef: HTMLDivElement;
|
|
11
12
|
panelRef: HTMLDivElement;
|
|
13
|
+
loadingRef: HTMLParagraphElement;
|
|
12
14
|
}, HTMLDivElement>;
|
|
13
15
|
export default _default;
|
|
@@ -1,58 +1,49 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch,
|
|
1
|
+
import { defineComponent, computed, ref, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, Fragment, unref, toDisplayString, createVNode, withCtx, renderList, createBlock, createTextVNode, createCommentVNode, withModifiers, withDirectives, nextTick } from "vue";
|
|
2
2
|
import { ElSelect, ElOption } from "element-plus";
|
|
3
3
|
import "element-plus/es/components/select/style/css";
|
|
4
4
|
import "element-plus/es/components/option/style/css";
|
|
5
|
-
import { useDebounceFn,
|
|
5
|
+
import { useDebounceFn, useIntersectionObserver } from "@vueuse/core";
|
|
6
6
|
import { useScreen } from "@opendesign-plus/composables";
|
|
7
7
|
import { useI18n } from "../../i18n/index.mjs";
|
|
8
|
-
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, ORow, OCol, OPagination } from "@opensig/opendesign";
|
|
8
|
+
import { ORadioGroup, ORadio, OToggle, ODivider, OSelect, OOption, OInput, OIcon, OPopover, ORow, OCol, OPagination } from "@opensig/opendesign";
|
|
9
9
|
import OEmpty from "../empty/OEmpty.vue.mjs";
|
|
10
10
|
import _sfc_main$1 from "./components/OSigItem.vue.mjs";
|
|
11
11
|
import './components/OSigItem.css';
|
|
12
12
|
import IconSearch from "../../_virtual/icon-search.mjs";
|
|
13
13
|
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
14
|
-
const _hoisted_1 = {
|
|
15
|
-
const _hoisted_2 = {
|
|
14
|
+
const _hoisted_1 = {
|
|
16
15
|
key: 0,
|
|
17
16
|
class: "o-sig-filter-type"
|
|
18
17
|
};
|
|
19
|
-
const
|
|
20
|
-
const
|
|
18
|
+
const _hoisted_2 = { class: "o-sig-filter-title" };
|
|
19
|
+
const _hoisted_3 = {
|
|
21
20
|
key: 1,
|
|
22
21
|
class: "o-sig-filter-input"
|
|
23
22
|
};
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "o-sig-search-data"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_7 = {
|
|
23
|
+
const _hoisted_4 = { class: "o-sig-filter-select-box" };
|
|
24
|
+
const _hoisted_5 = {
|
|
30
25
|
key: 0,
|
|
31
26
|
class: "o-sig-search-label"
|
|
32
27
|
};
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
28
|
+
const _hoisted_6 = ["onClick"];
|
|
29
|
+
const _hoisted_7 = ["title"];
|
|
30
|
+
const _hoisted_8 = {
|
|
36
31
|
key: 2,
|
|
37
32
|
class: "o-sig-no-result"
|
|
38
33
|
};
|
|
39
|
-
const
|
|
34
|
+
const _hoisted_9 = {
|
|
40
35
|
key: 0,
|
|
41
36
|
class: "o-sig-filter-result-tip"
|
|
42
37
|
};
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
38
|
+
const _hoisted_10 = { key: 0 };
|
|
39
|
+
const _hoisted_11 = { class: "o-sig-num" };
|
|
40
|
+
const _hoisted_12 = {
|
|
46
41
|
key: 0,
|
|
47
42
|
class: "o-sig-num"
|
|
48
43
|
};
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
key: 3,
|
|
53
|
-
class: "o-sig-loading"
|
|
54
|
-
};
|
|
55
|
-
const _hoisted_18 = {
|
|
44
|
+
const _hoisted_13 = { key: 1 };
|
|
45
|
+
const _hoisted_14 = { class: "o-sig-num" };
|
|
46
|
+
const _hoisted_15 = {
|
|
56
47
|
key: 4,
|
|
57
48
|
class: "o-sig-pagination"
|
|
58
49
|
};
|
|
@@ -211,10 +202,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
202
|
sigInput.value = "";
|
|
212
203
|
enterSearchInput.value = "";
|
|
213
204
|
};
|
|
205
|
+
const rootRef = ref();
|
|
214
206
|
const panelRef = ref();
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
207
|
+
const popoverVisible = computed(() => showPanel.value && !!sigInput.value);
|
|
208
|
+
const onPopoverVisibleChange = (val) => {
|
|
209
|
+
showPanel.value = val;
|
|
210
|
+
};
|
|
218
211
|
const toSigDetail = (sigName) => emit("to-sig-detail", sigName);
|
|
219
212
|
watch(
|
|
220
213
|
() => sigInput.value,
|
|
@@ -225,7 +218,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
218
|
);
|
|
226
219
|
const filterSigData = ref([]);
|
|
227
220
|
const filterSearchData = ref([]);
|
|
228
|
-
const filterDataMb = ref([]);
|
|
229
221
|
const featureType = ref("all");
|
|
230
222
|
const matchKw = (text, kw) => !!text && text.toLowerCase().includes(kw);
|
|
231
223
|
watch(
|
|
@@ -277,6 +269,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
277
269
|
if (lePadV.value) return "0 12px";
|
|
278
270
|
return "32px 32px";
|
|
279
271
|
});
|
|
272
|
+
watch(lePadV, () => {
|
|
273
|
+
sigQuery.value.page = 1;
|
|
274
|
+
});
|
|
280
275
|
const clearChecked = (val) => {
|
|
281
276
|
resetSigQuery();
|
|
282
277
|
if (val) {
|
|
@@ -285,37 +280,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
285
280
|
});
|
|
286
281
|
}
|
|
287
282
|
};
|
|
283
|
+
const loadingRef = ref(null);
|
|
288
284
|
const getMoreDataMo = () => {
|
|
289
|
-
filterDataMb.value = filterSearchData.value.slice(
|
|
290
|
-
0,
|
|
291
|
-
sigQuery.value.page * sigQuery.value.pageSize
|
|
292
|
-
);
|
|
293
285
|
sigQuery.value.page++;
|
|
294
286
|
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
var _a;
|
|
300
|
-
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
301
|
-
const scrollHeight = document.body.scrollHeight;
|
|
302
|
-
const clientHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
303
|
-
const footerHeight = ((_a = footer.value) == null ? void 0 : _a.clientHeight) ?? 0;
|
|
304
|
-
if (scrollTop + clientHeight + footerHeight >= scrollHeight && filterDataMb.value.length < filterSearchData.value.length) {
|
|
287
|
+
useIntersectionObserver(
|
|
288
|
+
loadingRef,
|
|
289
|
+
([entry]) => {
|
|
290
|
+
if ((entry == null ? void 0 : entry.isIntersecting) && filterSigData.value.length < filterSearchData.value.length) {
|
|
305
291
|
getMoreDataMo();
|
|
306
292
|
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
onMounted(() => {
|
|
311
|
-
footer.value = document.querySelector(props.footerSelector);
|
|
312
|
-
window.addEventListener("scroll", throttleEvent);
|
|
313
|
-
});
|
|
314
|
-
onUnmounted(() => {
|
|
315
|
-
window.removeEventListener("scroll", throttleEvent);
|
|
316
|
-
});
|
|
293
|
+
},
|
|
294
|
+
{ rootMargin: "200px" }
|
|
295
|
+
);
|
|
317
296
|
return (_ctx, _cache) => {
|
|
318
|
-
return openBlock(), createElementBlock("div",
|
|
297
|
+
return openBlock(), createElementBlock("div", {
|
|
298
|
+
ref_key: "rootRef",
|
|
299
|
+
ref: rootRef,
|
|
300
|
+
class: "o-sig-list"
|
|
301
|
+
}, [
|
|
319
302
|
createElementVNode("div", {
|
|
320
303
|
class: normalizeClass({
|
|
321
304
|
"o-sig-filter-box": true,
|
|
@@ -324,8 +307,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
324
307
|
})
|
|
325
308
|
}, [
|
|
326
309
|
featureArr.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
327
|
-
!unref(isPhone) ? (openBlock(), createElementBlock("div",
|
|
328
|
-
createElementVNode("p",
|
|
310
|
+
!unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
311
|
+
createElementVNode("p", _hoisted_2, toDisplayString(unref(t)("sig.type")), 1),
|
|
329
312
|
createVNode(unref(ORadioGroup), {
|
|
330
313
|
modelValue: featureType.value,
|
|
331
314
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => featureType.value = $event)
|
|
@@ -355,7 +338,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
355
338
|
_: 1
|
|
356
339
|
}, 8, ["modelValue"])
|
|
357
340
|
])) : createCommentVNode("", true),
|
|
358
|
-
unref(isPhone) ? (openBlock(), createElementBlock("div",
|
|
341
|
+
unref(isPhone) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
359
342
|
createVNode(unref(ElSelect), {
|
|
360
343
|
modelValue: featureType.value,
|
|
361
344
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => featureType.value = $event),
|
|
@@ -377,7 +360,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
377
360
|
])) : createCommentVNode("", true),
|
|
378
361
|
createVNode(unref(ODivider), { direction: "h" })
|
|
379
362
|
], 64)) : createCommentVNode("", true),
|
|
380
|
-
createElementVNode("div",
|
|
363
|
+
createElementVNode("div", _hoisted_4, [
|
|
381
364
|
createElementVNode("div", {
|
|
382
365
|
ref_key: "panelRef",
|
|
383
366
|
ref: panelRef,
|
|
@@ -422,43 +405,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
422
405
|
]),
|
|
423
406
|
_: 1
|
|
424
407
|
}, 8, ["modelValue", "placeholder"]),
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
408
|
+
createVNode(unref(OPopover), {
|
|
409
|
+
target: panelRef.value,
|
|
410
|
+
wrapper: rootRef.value,
|
|
411
|
+
visible: popoverVisible.value,
|
|
412
|
+
disabled: !sigInput.value,
|
|
413
|
+
position: "br",
|
|
414
|
+
trigger: "click-outclick",
|
|
415
|
+
"adjust-min-width": false,
|
|
416
|
+
"adjust-width": false,
|
|
417
|
+
"onUpdate:visible": onPopoverVisibleChange
|
|
418
|
+
}, {
|
|
419
|
+
default: withCtx(() => [
|
|
420
|
+
createElementVNode("div", {
|
|
421
|
+
class: normalizeClass(["o-sig-search-data", `o-sig-search-data-${locale.value}`])
|
|
430
422
|
}, [
|
|
431
|
-
|
|
432
|
-
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
423
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(hasSearchData.value, (item) => {
|
|
433
424
|
return openBlock(), createElementBlock("div", {
|
|
434
|
-
key:
|
|
435
|
-
class: "o-sig-search-
|
|
436
|
-
onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
|
|
425
|
+
key: item.id,
|
|
426
|
+
class: "o-sig-search-group"
|
|
437
427
|
}, [
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
428
|
+
searchType.value === "all" ? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString(item.label), 1)) : createCommentVNode("", true),
|
|
429
|
+
item.list.length ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(item.list, (it) => {
|
|
430
|
+
return openBlock(), createElementBlock("div", {
|
|
431
|
+
key: it.name,
|
|
432
|
+
class: "o-sig-search-item",
|
|
433
|
+
onClick: withModifiers(($event) => clickItem(it == null ? void 0 : it.name), ["stop"])
|
|
434
|
+
}, [
|
|
435
|
+
withDirectives(createElementVNode("span", {
|
|
436
|
+
title: stripHtml(it == null ? void 0 : it.name),
|
|
437
|
+
class: "o-sig-search-title"
|
|
438
|
+
}, null, 8, _hoisted_7), [
|
|
439
|
+
[unref(vDompurifyHtml), it == null ? void 0 : it.name]
|
|
440
|
+
])
|
|
441
|
+
], 8, _hoisted_6);
|
|
442
|
+
}), 128)) : (openBlock(), createElementBlock("p", _hoisted_8, toDisplayString(unref(t)("sig.noResult")), 1))
|
|
443
|
+
]);
|
|
444
|
+
}), 128))
|
|
445
|
+
], 2)
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}, 8, ["target", "wrapper", "visible", "disabled"])
|
|
449
449
|
], 2)
|
|
450
450
|
])
|
|
451
451
|
], 2),
|
|
452
|
-
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div",
|
|
453
|
-
sigInput.value ? (openBlock(), createElementBlock("div",
|
|
452
|
+
featureType.value !== "all" || enterSearchInput.value ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
453
|
+
sigInput.value ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
454
454
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip1")), 1),
|
|
455
|
-
createElementVNode("span",
|
|
455
|
+
createElementVNode("span", _hoisted_11, toDisplayString(filterSearchData.value.length), 1),
|
|
456
456
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip2")), 1),
|
|
457
|
-
locale.value === "zh" ? (openBlock(), createElementBlock("span",
|
|
457
|
+
locale.value === "zh" ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(sigInput.value), 1)) : createCommentVNode("", true),
|
|
458
458
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip3")), 1)
|
|
459
|
-
])) : (openBlock(), createElementBlock("div",
|
|
459
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
460
460
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip4")), 1),
|
|
461
|
-
createElementVNode("span",
|
|
461
|
+
createElementVNode("span", _hoisted_14, toDisplayString(filterSearchData.value.length), 1),
|
|
462
462
|
createElementVNode("span", null, toDisplayString(unref(t)("sig.filterResultTip5")), 1)
|
|
463
463
|
]))
|
|
464
464
|
])) : createCommentVNode("", true),
|
|
@@ -494,8 +494,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
494
494
|
"--result-image-height": "170px"
|
|
495
495
|
}
|
|
496
496
|
})),
|
|
497
|
-
unref(lePadV) &&
|
|
498
|
-
|
|
497
|
+
unref(lePadV) && filterSigData.value.length < filterSearchData.value.length ? (openBlock(), createElementBlock("p", {
|
|
498
|
+
key: 3,
|
|
499
|
+
ref_key: "loadingRef",
|
|
500
|
+
ref: loadingRef,
|
|
501
|
+
class: "o-sig-loading"
|
|
502
|
+
}, toDisplayString(unref(t)("sig.loading")), 513)) : createCommentVNode("", true),
|
|
503
|
+
filterSearchData.value.length > COUNT_PER_PAGE[0] ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
499
504
|
createVNode(unref(OPagination), {
|
|
500
505
|
page: sigQuery.value.page,
|
|
501
506
|
"onUpdate:page": _cache[5] || (_cache[5] = ($event) => sigQuery.value.page = $event),
|
|
@@ -507,7 +512,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
507
512
|
"show-more": true
|
|
508
513
|
}, null, 8, ["page", "page-size", "total"])
|
|
509
514
|
])) : createCommentVNode("", true)
|
|
510
|
-
]);
|
|
515
|
+
], 512);
|
|
511
516
|
};
|
|
512
517
|
}
|
|
513
518
|
});
|