@opendesign-plus-test/components 0.0.1-rc.241 → 0.0.1-rc.243
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 +10 -0
- package/dist/components/activity/index.d.ts +9 -9
- package/dist/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/components/anchor-bar/index.d.ts +9 -9
- package/dist/components/article/OArticle.vue.d.ts +196 -14
- package/dist/components/article/components/ArticleTitle.vue.d.ts +22 -0
- package/dist/components/article/components/DocTitle.vue.d.ts +24 -0
- package/dist/components/article/index.d.ts +151 -50
- package/dist/components/article-anchor/index.d.ts +9 -9
- package/dist/components/article-pagination/index.d.ts +17 -17
- package/dist/components/banner/index.d.ts +6 -6
- package/dist/components/brand/index.d.ts +15 -15
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +38 -0
- package/dist/components/doc-layout/index.d.ts +59 -0
- package/dist/components/doc-layout/types.d.ts +23 -0
- package/dist/components/events/index.d.ts +20 -20
- package/dist/components/footer/components/FooterSimple.vue.d.ts +4 -0
- package/dist/components/footer/index.d.ts +3 -3
- package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/components/header/index.d.ts +28 -28
- package/dist/components/header-search/index.d.ts +13 -13
- package/dist/components/logo-swiper/index.d.ts +11 -11
- package/dist/components/logo-swiper/types.d.ts +1 -0
- package/dist/components/markdown/OMarkdown.vue.d.ts +7 -16
- package/dist/components/markdown/index.d.ts +13 -45
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/components/meeting/index.d.ts +51 -51
- package/dist/components/org/index.d.ts +9 -9
- package/dist/components/recursion-menu/index.d.ts +3 -3
- package/dist/components/search/index.d.ts +11 -11
- package/dist/components/search/internal/SearchImageInput.vue.d.ts +2 -2
- package/dist/components/search-doc-result/OSearchDocResult.vue.d.ts +56 -0
- package/dist/components/search-doc-result/index.d.ts +113 -0
- package/dist/components/search-result/OSearchResult.vue.d.ts +2 -0
- package/dist/components/search-result/OSearchResultHeader.vue.d.ts +29 -24
- package/dist/components/search-result/index.d.ts +51 -31
- package/dist/components/sig/index.d.ts +15 -15
- package/dist/components/summit/index.d.ts +12 -12
- package/dist/components/summit/types.d.ts +18 -9
- package/dist/components/summit/utils.d.ts +11 -0
- package/dist/components/user-center/index.d.ts +18 -18
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components.cjs.js +44 -44
- package/dist/components.css +1 -1
- package/dist/components.es.js +12989 -12524
- package/dist/index.d.ts +2 -0
- package/dist/treeshaking/_virtual/icon-menu-fold.mjs +20 -0
- package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +20 -0
- package/dist/treeshaking/components/activity/index.d.ts +9 -9
- package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
- package/dist/treeshaking/components/article/OArticle.css +18 -124
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +196 -14
- package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
- package/dist/treeshaking/components/article/OArticle.vue2.mjs +48 -82
- package/dist/treeshaking/components/article/components/ArticleTitle.css +123 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.d.ts +22 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +97 -0
- package/dist/treeshaking/components/article/components/DocTitle.css +246 -0
- package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue.d.ts → article/components/DocTitle.vue.d.ts} +6 -5
- package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +7 -0
- package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue2.mjs → article/components/DocTitle.vue2.mjs} +131 -80
- package/dist/treeshaking/components/article/index.d.ts +151 -50
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.css +4 -4
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue2.mjs +4 -5
- package/dist/treeshaking/components/article-anchor/index.d.ts +9 -9
- package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/brand/index.d.ts +15 -15
- package/dist/treeshaking/components/doc-layout/ODocLayout.css +271 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +38 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +7 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +165 -0
- package/dist/treeshaking/components/doc-layout/index.d.ts +59 -0
- package/dist/treeshaking/components/doc-layout/index.mjs +9 -0
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- package/dist/treeshaking/components/footer/OFooter.css +20 -15
- package/dist/treeshaking/components/footer/OFooter.vue.mjs +1 -1
- package/dist/treeshaking/components/footer/components/FooterSimple.css +37 -36
- package/dist/treeshaking/components/footer/components/FooterSimple.vue.d.ts +4 -0
- package/dist/treeshaking/components/footer/components/FooterSimple.vue.mjs +1 -1
- package/dist/treeshaking/components/footer/components/FooterSimple.vue2.mjs +54 -37
- package/dist/treeshaking/components/footer/index.d.ts +3 -3
- package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
- 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 +2 -1
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/treeshaking/components/header/index.d.ts +28 -28
- package/dist/treeshaking/components/header-search/index.d.ts +13 -13
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.css +19 -19
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +1 -1
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue2.mjs +4 -2
- package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/logo-swiper/types.d.ts +1 -0
- package/dist/treeshaking/components/markdown/OMarkdown.css +7 -0
- package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +7 -16
- package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +47 -36
- package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +22 -22
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +11 -5
- package/dist/treeshaking/components/markdown/index.d.ts +13 -45
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/treeshaking/components/meeting/index.d.ts +51 -51
- package/dist/treeshaking/components/org/index.d.ts +9 -9
- package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
- package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/search/internal/SearchImageInput.css +48 -47
- package/dist/treeshaking/components/search/internal/SearchImageInput.vue.d.ts +2 -2
- package/dist/treeshaking/components/search/internal/SearchImageInput.vue.mjs +1 -1
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.css +156 -0
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue.d.ts +56 -0
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue.mjs +7 -0
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue2.mjs +214 -0
- package/dist/treeshaking/components/search-doc-result/index.d.ts +113 -0
- package/dist/treeshaking/components/search-doc-result/index.mjs +9 -0
- package/dist/treeshaking/components/search-result/OSearchResult.css +34 -29
- package/dist/treeshaking/components/search-result/OSearchResult.vue.d.ts +4 -2
- package/dist/treeshaking/components/search-result/OSearchResult.vue.mjs +1 -1
- package/dist/treeshaking/components/search-result/OSearchResult.vue2.mjs +18 -15
- package/dist/treeshaking/components/search-result/OSearchResultHeader.css +57 -38
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +29 -24
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.mjs +1 -1
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue2.mjs +13 -7
- package/dist/treeshaking/components/search-result/index.d.ts +51 -31
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/summit/OSummitLive.css +20 -20
- package/dist/treeshaking/components/summit/OSummitLive.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/OSummitLive.vue2.mjs +12 -3
- package/dist/treeshaking/components/summit/OSummitSchedule.css +33 -33
- package/dist/treeshaking/components/summit/OSummitSchedule.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/OSummitSchedule.vue2.mjs +13 -3
- package/dist/treeshaking/components/summit/components/OSummitTabs.css +30 -29
- package/dist/treeshaking/components/summit/components/OSummitTabs.vue.mjs +1 -1
- package/dist/treeshaking/components/summit/components/OSummitTabs.vue2.mjs +2 -0
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/summit/types.d.ts +18 -9
- package/dist/treeshaking/components/summit/utils.d.ts +11 -0
- package/dist/treeshaking/components/summit/utils.mjs +56 -0
- package/dist/treeshaking/components/user-center/OAccountSecurity.css +51 -51
- package/dist/treeshaking/components/user-center/OAccountSecurity.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OAccountSecurity.vue2.mjs +24 -9
- package/dist/treeshaking/components/user-center/OAccountSetting.css +63 -61
- package/dist/treeshaking/components/user-center/OAccountSetting.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/index.d.ts +18 -18
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/dist/treeshaking/i18n/en.mjs +5 -0
- package/dist/treeshaking/i18n/zh.mjs +5 -0
- package/dist/treeshaking/index.d.ts +2 -0
- package/dist/treeshaking/index.mjs +4 -0
- package/package.json +3 -3
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +0 -261
- package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +0 -7
- package/dist/treeshaking/components/markdown/replacer/h1.d.ts +0 -11
- package/dist/treeshaking/components/markdown/replacer/h1.mjs +0 -29
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { defineComponent, useModel, watch, onMounted, onUnmounted, computed, openBlock, createElementBlock, createElementVNode, unref, createVNode, toDisplayString, createCommentVNode, renderSlot, createTextVNode, withDirectives, withCtx, Fragment, renderList, createBlock, vShow, normalizeClass, mergeModels } from "vue";
|
|
2
|
+
import { useThrottleFn } from "@vueuse/core";
|
|
3
|
+
import { OIconArrowLeft, ODropdown, OButton, OIconChevronDown, ODropdownItem, OSkeleton, isArray, OSkeletonText, ODivider, OPagination } from "@opensig/opendesign";
|
|
4
|
+
import { useScreen } from "@opendesign-plus/composables";
|
|
5
|
+
import { useI18n } from "../../i18n/index.mjs";
|
|
6
|
+
import OSearchResultEmpty from "../search-result/components/OSearchResultEmpty.vue.mjs";
|
|
7
|
+
const _hoisted_1 = { class: "o-search-doc-result" };
|
|
8
|
+
const _hoisted_2 = { class: "o-search-doc-result-header" };
|
|
9
|
+
const _hoisted_3 = { class: "o-search-doc-result-header-title" };
|
|
10
|
+
const _hoisted_4 = { class: "o-search-doc-result-header-content" };
|
|
11
|
+
const _hoisted_5 = { class: "o-search-doc-result-header-content-desc" };
|
|
12
|
+
const _hoisted_6 = { class: "o-search-doc-result-content-skeleton-loading" };
|
|
13
|
+
const _hoisted_7 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "o-search-doc-result-mb-bottom-text"
|
|
16
|
+
};
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "OSearchDocResult",
|
|
19
|
+
props: /* @__PURE__ */ mergeModels({
|
|
20
|
+
items: {},
|
|
21
|
+
loading: { type: Boolean },
|
|
22
|
+
total: { default: 0 },
|
|
23
|
+
pageSizes: { default: () => [10, 20, 50] },
|
|
24
|
+
noMore: { type: Boolean },
|
|
25
|
+
scrollContainer: {},
|
|
26
|
+
bottomOffset: { default: 30 },
|
|
27
|
+
hideSort: { type: Boolean, default: false }
|
|
28
|
+
}, {
|
|
29
|
+
"page": { default: 1 },
|
|
30
|
+
"pageModifiers": {},
|
|
31
|
+
"pageSize": { default: 10 },
|
|
32
|
+
"pageSizeModifiers": {},
|
|
33
|
+
"sortValue": { default: "sortByRelevance" },
|
|
34
|
+
"sortValueModifiers": {}
|
|
35
|
+
}),
|
|
36
|
+
emits: /* @__PURE__ */ mergeModels(["reach-bottom", "back"], ["update:page", "update:pageSize", "update:sortValue"]),
|
|
37
|
+
setup(__props, { emit: __emit }) {
|
|
38
|
+
const props = __props;
|
|
39
|
+
const page = useModel(__props, "page");
|
|
40
|
+
const pageSize = useModel(__props, "pageSize");
|
|
41
|
+
const sortValue = useModel(__props, "sortValue");
|
|
42
|
+
const emit = __emit;
|
|
43
|
+
const { lePadV } = useScreen();
|
|
44
|
+
const { t } = useI18n();
|
|
45
|
+
let scrollEl = null;
|
|
46
|
+
const getScrollEl = () => {
|
|
47
|
+
if (!props.scrollContainer) {
|
|
48
|
+
return window;
|
|
49
|
+
}
|
|
50
|
+
if (typeof props.scrollContainer === "string") {
|
|
51
|
+
return document.querySelector(props.scrollContainer) ?? window;
|
|
52
|
+
}
|
|
53
|
+
return props.scrollContainer;
|
|
54
|
+
};
|
|
55
|
+
const onScroll = useThrottleFn(() => {
|
|
56
|
+
if (!lePadV.value || props.loading || props.noMore) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const el = scrollEl;
|
|
60
|
+
if (!el) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const isWin = el === window;
|
|
64
|
+
const scrollTop = isWin ? window.scrollY : el.scrollTop;
|
|
65
|
+
const clientHeight = isWin ? window.innerHeight : el.clientHeight;
|
|
66
|
+
const scrollHeight = isWin ? document.documentElement.scrollHeight : el.scrollHeight;
|
|
67
|
+
if (scrollTop + clientHeight >= scrollHeight - props.bottomOffset) {
|
|
68
|
+
emit("reach-bottom");
|
|
69
|
+
}
|
|
70
|
+
}, 200);
|
|
71
|
+
const bindScroll = () => {
|
|
72
|
+
unbindScroll();
|
|
73
|
+
if (!props.scrollContainer) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
scrollEl = getScrollEl();
|
|
77
|
+
scrollEl.addEventListener("scroll", onScroll, { passive: true });
|
|
78
|
+
};
|
|
79
|
+
const unbindScroll = () => {
|
|
80
|
+
scrollEl == null ? void 0 : scrollEl.removeEventListener("scroll", onScroll);
|
|
81
|
+
scrollEl = null;
|
|
82
|
+
};
|
|
83
|
+
watch(() => props.scrollContainer, bindScroll);
|
|
84
|
+
onMounted(bindScroll);
|
|
85
|
+
onUnmounted(unbindScroll);
|
|
86
|
+
const options = computed(() => [
|
|
87
|
+
{
|
|
88
|
+
label: t("search.sortByRelevance"),
|
|
89
|
+
value: "sortByRelevance"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: t("search.sortByLatest"),
|
|
93
|
+
value: "sortByLatest"
|
|
94
|
+
}
|
|
95
|
+
]);
|
|
96
|
+
return (_ctx, _cache) => {
|
|
97
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
98
|
+
createElementVNode("div", _hoisted_2, [
|
|
99
|
+
!unref(lePadV) ? (openBlock(), createElementBlock("div", {
|
|
100
|
+
key: 0,
|
|
101
|
+
class: "o-search-doc-result-back",
|
|
102
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("back"))
|
|
103
|
+
}, [
|
|
104
|
+
createVNode(unref(OIconArrowLeft)),
|
|
105
|
+
createElementVNode("span", null, toDisplayString(unref(t)("search.backToPreviousPage")), 1)
|
|
106
|
+
])) : createCommentVNode("", true),
|
|
107
|
+
createElementVNode("div", _hoisted_3, [
|
|
108
|
+
renderSlot(_ctx.$slots, "header-title", {}, () => [
|
|
109
|
+
createTextVNode(toDisplayString(unref(t)("search.result")), 1)
|
|
110
|
+
], true)
|
|
111
|
+
]),
|
|
112
|
+
withDirectives(createElementVNode("div", _hoisted_4, [
|
|
113
|
+
renderSlot(_ctx.$slots, "header-desc", {}, () => [
|
|
114
|
+
createElementVNode("div", _hoisted_5, toDisplayString(unref(t)("search.findCount", [__props.total])), 1)
|
|
115
|
+
], true),
|
|
116
|
+
!__props.hideSort ? renderSlot(_ctx.$slots, "header-sort-options", { key: 0 }, () => [
|
|
117
|
+
createVNode(unref(ODropdown), { trigger: "hover" }, {
|
|
118
|
+
dropdown: withCtx(() => [
|
|
119
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item) => {
|
|
120
|
+
return openBlock(), createBlock(unref(ODropdownItem), {
|
|
121
|
+
key: item.value,
|
|
122
|
+
label: item.label,
|
|
123
|
+
value: item.value,
|
|
124
|
+
onClick: ($event) => sortValue.value = item.value
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(() => [
|
|
127
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, 1032, ["label", "value", "onClick"]);
|
|
131
|
+
}), 128))
|
|
132
|
+
]),
|
|
133
|
+
default: withCtx(() => [
|
|
134
|
+
createVNode(unref(OButton), {
|
|
135
|
+
variant: "text",
|
|
136
|
+
color: "primary"
|
|
137
|
+
}, {
|
|
138
|
+
suffix: withCtx(() => [
|
|
139
|
+
createVNode(unref(OIconChevronDown), { class: "icon" })
|
|
140
|
+
]),
|
|
141
|
+
default: withCtx(() => {
|
|
142
|
+
var _a;
|
|
143
|
+
return [
|
|
144
|
+
createTextVNode(toDisplayString(((_a = options.value.find((item) => item.value === sortValue.value)) == null ? void 0 : _a.label) || "") + " ", 1)
|
|
145
|
+
];
|
|
146
|
+
}),
|
|
147
|
+
_: 1
|
|
148
|
+
})
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
})
|
|
152
|
+
], true) : createCommentVNode("", true)
|
|
153
|
+
], 512), [
|
|
154
|
+
[vShow, !__props.loading]
|
|
155
|
+
])
|
|
156
|
+
]),
|
|
157
|
+
createVNode(unref(OSkeleton), {
|
|
158
|
+
animation: "",
|
|
159
|
+
loading: __props.loading && (!unref(lePadV) || page.value === 1)
|
|
160
|
+
}, {
|
|
161
|
+
template: withCtx(() => [
|
|
162
|
+
createElementVNode("div", _hoisted_6, [
|
|
163
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(7, (_, i) => {
|
|
164
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
165
|
+
createVNode(unref(OSkeletonText), { rows: 3 }),
|
|
166
|
+
i !== 6 ? (openBlock(), createBlock(unref(ODivider), {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: "o-search-doc-result-content-skeleton-divider"
|
|
169
|
+
})) : createCommentVNode("", true)
|
|
170
|
+
], 64);
|
|
171
|
+
}), 64))
|
|
172
|
+
])
|
|
173
|
+
]),
|
|
174
|
+
default: withCtx(() => [
|
|
175
|
+
createElementVNode("div", {
|
|
176
|
+
class: normalizeClass(["o-search-doc-result-content", { "is-empty": !unref(isArray)(__props.items) || __props.items.length === 0 }])
|
|
177
|
+
}, [
|
|
178
|
+
!unref(isArray)(__props.items) || __props.items.length === 0 ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
179
|
+
createVNode(OSearchResultEmpty)
|
|
180
|
+
], true) : renderSlot(_ctx.$slots, "list", {
|
|
181
|
+
key: 1,
|
|
182
|
+
items: __props.items
|
|
183
|
+
}, void 0, true)
|
|
184
|
+
], 2)
|
|
185
|
+
]),
|
|
186
|
+
_: 3
|
|
187
|
+
}, 8, ["loading"]),
|
|
188
|
+
!__props.loading && __props.total > 0 && !unref(lePadV) ? (openBlock(), createBlock(unref(OPagination), {
|
|
189
|
+
key: 0,
|
|
190
|
+
page: page.value,
|
|
191
|
+
"onUpdate:page": _cache[1] || (_cache[1] = ($event) => page.value = $event),
|
|
192
|
+
"page-size": pageSize.value,
|
|
193
|
+
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => pageSize.value = $event),
|
|
194
|
+
total: __props.total,
|
|
195
|
+
"page-sizes": __props.pageSizes,
|
|
196
|
+
layout: ["total", "pagesize", "pager", "jumper"],
|
|
197
|
+
class: "o-search-doc-result-pagination"
|
|
198
|
+
}, null, 8, ["page", "page-size", "total", "page-sizes"])) : createCommentVNode("", true),
|
|
199
|
+
unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
200
|
+
__props.noMore ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
201
|
+
createTextVNode(toDisplayString(unref(t)("search.reachBottom")), 1)
|
|
202
|
+
], 64)) : !__props.loading && page.value >= 1 && __props.items.length ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
203
|
+
createTextVNode(toDisplayString(unref(t)("search.loadMore")), 1)
|
|
204
|
+
], 64)) : __props.loading && page.value > 1 && __props.items.length ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
205
|
+
createTextVNode(toDisplayString(unref(t)("search.loading")), 1)
|
|
206
|
+
], 64)) : createCommentVNode("", true)
|
|
207
|
+
])) : createCommentVNode("", true)
|
|
208
|
+
]);
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
export {
|
|
213
|
+
_sfc_main as default
|
|
214
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const OSearchDocResult: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
page?: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
sortValue?: string;
|
|
7
|
+
} & {
|
|
8
|
+
items: any[];
|
|
9
|
+
loading: boolean;
|
|
10
|
+
total?: number;
|
|
11
|
+
pageSizes?: number[];
|
|
12
|
+
noMore: boolean;
|
|
13
|
+
scrollContainer?: string | HTMLElement;
|
|
14
|
+
bottomOffset?: number;
|
|
15
|
+
hideSort?: boolean;
|
|
16
|
+
}> & Readonly<{
|
|
17
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
18
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
19
|
+
"onReach-bottom"?: (() => any) | undefined;
|
|
20
|
+
onBack?: (() => any) | undefined;
|
|
21
|
+
"onUpdate:sortValue"?: ((value: string) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
"update:pageSize": (value: number) => any;
|
|
24
|
+
"update:page": (value: number) => any;
|
|
25
|
+
"update:sortValue": (value: string) => any;
|
|
26
|
+
} & {
|
|
27
|
+
"reach-bottom": () => any;
|
|
28
|
+
back: () => any;
|
|
29
|
+
}, import('vue').PublicProps, {
|
|
30
|
+
total: number;
|
|
31
|
+
pageSizes: number[];
|
|
32
|
+
bottomOffset: number;
|
|
33
|
+
hideSort: boolean;
|
|
34
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<{
|
|
42
|
+
page?: number;
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
sortValue?: string;
|
|
45
|
+
} & {
|
|
46
|
+
items: any[];
|
|
47
|
+
loading: boolean;
|
|
48
|
+
total?: number;
|
|
49
|
+
pageSizes?: number[];
|
|
50
|
+
noMore: boolean;
|
|
51
|
+
scrollContainer?: string | HTMLElement;
|
|
52
|
+
bottomOffset?: number;
|
|
53
|
+
hideSort?: boolean;
|
|
54
|
+
}> & Readonly<{
|
|
55
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
56
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
57
|
+
"onReach-bottom"?: (() => any) | undefined;
|
|
58
|
+
onBack?: (() => any) | undefined;
|
|
59
|
+
"onUpdate:sortValue"?: ((value: string) => any) | undefined;
|
|
60
|
+
}>, {}, {}, {}, {}, {
|
|
61
|
+
total: number;
|
|
62
|
+
pageSizes: number[];
|
|
63
|
+
bottomOffset: number;
|
|
64
|
+
hideSort: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
__isFragment?: never;
|
|
67
|
+
__isTeleport?: never;
|
|
68
|
+
__isSuspense?: never;
|
|
69
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
70
|
+
page?: number;
|
|
71
|
+
pageSize?: number;
|
|
72
|
+
sortValue?: string;
|
|
73
|
+
} & {
|
|
74
|
+
items: any[];
|
|
75
|
+
loading: boolean;
|
|
76
|
+
total?: number;
|
|
77
|
+
pageSizes?: number[];
|
|
78
|
+
noMore: boolean;
|
|
79
|
+
scrollContainer?: string | HTMLElement;
|
|
80
|
+
bottomOffset?: number;
|
|
81
|
+
hideSort?: boolean;
|
|
82
|
+
}> & Readonly<{
|
|
83
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
84
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
85
|
+
"onReach-bottom"?: (() => any) | undefined;
|
|
86
|
+
onBack?: (() => any) | undefined;
|
|
87
|
+
"onUpdate:sortValue"?: ((value: string) => any) | undefined;
|
|
88
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
89
|
+
"update:pageSize": (value: number) => any;
|
|
90
|
+
"update:page": (value: number) => any;
|
|
91
|
+
"update:sortValue": (value: string) => any;
|
|
92
|
+
} & {
|
|
93
|
+
"reach-bottom": () => any;
|
|
94
|
+
back: () => any;
|
|
95
|
+
}, string, {
|
|
96
|
+
total: number;
|
|
97
|
+
pageSizes: number[];
|
|
98
|
+
bottomOffset: number;
|
|
99
|
+
hideSort: boolean;
|
|
100
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
101
|
+
$slots: {
|
|
102
|
+
'header-title'?(_: {}): any;
|
|
103
|
+
'header-desc'?(_: {}): any;
|
|
104
|
+
'header-sort-options'?(_: {}): any;
|
|
105
|
+
empty?(_: {}): any;
|
|
106
|
+
list?(_: {
|
|
107
|
+
items: any[];
|
|
108
|
+
}): any;
|
|
109
|
+
};
|
|
110
|
+
}) & {
|
|
111
|
+
install(app: App): void;
|
|
112
|
+
};
|
|
113
|
+
export { OSearchDocResult };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-9d8dd556] {
|
|
2
2
|
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
3
|
}
|
|
4
4
|
@media (hover: hover) {
|
|
5
|
-
.hover-icon-rotate:hover .o-icon[data-v-
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-9d8dd556] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-search-result[data-v-
|
|
9
|
+
.o-search-result[data-v-9d8dd556] {
|
|
10
10
|
--o-search-result-page-header-hight: 0px;
|
|
11
11
|
--o-search-result-page-footer-hight: 0px;
|
|
12
12
|
--o-search-result-radius: var(--o-radius-xs);
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
background-color: var(--o-color-fill2);
|
|
24
24
|
}
|
|
25
25
|
@media (max-width: 1680px) {
|
|
26
|
-
.o-search-result[data-v-
|
|
26
|
+
.o-search-result[data-v-9d8dd556] {
|
|
27
27
|
--o-search-result-header-height: 220px;
|
|
28
28
|
--o-search-content-padding-top: 24px;
|
|
29
29
|
--o-search-content-padding-bottom: 56px;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
@media (max-width: 1200px) {
|
|
33
|
-
.o-search-result[data-v-
|
|
33
|
+
.o-search-result[data-v-9d8dd556] {
|
|
34
34
|
--o-search-result-header-height: 180px;
|
|
35
35
|
--o-search-content-padding-top: 16px;
|
|
36
36
|
--o-search-content-padding-bottom: 40px;
|
|
@@ -39,28 +39,33 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
@media (max-width: 840px) {
|
|
42
|
-
.o-search-result[data-v-
|
|
42
|
+
.o-search-result[data-v-9d8dd556] {
|
|
43
43
|
--o-search-result-header-height: 90px;
|
|
44
44
|
--o-search-content-padding-top: 24px;
|
|
45
45
|
--o-search-content-padding-bottom: 40px;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
@media (max-width: 600px) {
|
|
49
|
-
.o-search-result[data-v-
|
|
49
|
+
.o-search-result[data-v-9d8dd556] {
|
|
50
50
|
--o-search-content-padding-top: 24px;
|
|
51
51
|
--o-search-content-padding-bottom: 32px;
|
|
52
52
|
--o-search-content-padding-left: 24px;
|
|
53
53
|
--o-search-content-padding-right: 24px;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
@media (max-width: 840px) {
|
|
57
|
+
.o-search-result.is-hide-tab-mobile[data-v-9d8dd556] {
|
|
58
|
+
--o-search-result-header-height: 56px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.o-search-result .o-search-result-content-wrap[data-v-9d8dd556] {
|
|
57
62
|
display: flex;
|
|
58
63
|
max-width: var(--grid-20);
|
|
59
64
|
min-height: var(--o-search-content-min-height);
|
|
60
65
|
padding: var(--o-search-content-padding-top) var(--o-search-content-padding-right) var(--o-search-content-padding-bottom) var(--o-search-content-padding-left);
|
|
61
66
|
margin: 0 auto;
|
|
62
67
|
}
|
|
63
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-
|
|
68
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-9d8dd556] {
|
|
64
69
|
flex: 1;
|
|
65
70
|
display: flex;
|
|
66
71
|
flex-direction: column;
|
|
@@ -70,88 +75,88 @@
|
|
|
70
75
|
border-right: 1px solid var(--o-color-control4);
|
|
71
76
|
}
|
|
72
77
|
@media (max-width: 1200px) {
|
|
73
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-
|
|
78
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-9d8dd556] {
|
|
74
79
|
border-right: none;
|
|
75
80
|
padding-right: 0;
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-
|
|
83
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-9d8dd556] {
|
|
79
84
|
width: var(--grid-5);
|
|
80
85
|
padding-left: var(--grid-column-gutter);
|
|
81
86
|
}
|
|
82
87
|
@media (max-width: 1680px) {
|
|
83
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-
|
|
88
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-9d8dd556] {
|
|
84
89
|
width: var(--grid-6);
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-
|
|
92
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-9d8dd556] {
|
|
88
93
|
margin-top: 24px;
|
|
89
94
|
margin-bottom: 32px;
|
|
90
95
|
}
|
|
91
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-
|
|
96
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-9d8dd556] .o-skeleton-item .o-skeleton-line:nth-child(1) {
|
|
92
97
|
width: 52%;
|
|
93
98
|
height: 28px;
|
|
94
99
|
}
|
|
95
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-
|
|
100
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-9d8dd556] .o-skeleton-item .o-skeleton-line:nth-child(2) {
|
|
96
101
|
height: 48px;
|
|
97
102
|
}
|
|
98
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-
|
|
103
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-9d8dd556] .o-skeleton-item .o-skeleton-line:nth-child(3) {
|
|
99
104
|
width: 38%;
|
|
100
105
|
height: 18px;
|
|
101
106
|
}
|
|
102
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-divider[data-v-
|
|
107
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-divider[data-v-9d8dd556] {
|
|
103
108
|
margin: 16px 0;
|
|
104
109
|
}
|
|
105
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-version-select[data-v-
|
|
110
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-version-select[data-v-9d8dd556] {
|
|
106
111
|
width: 320px;
|
|
107
112
|
}
|
|
108
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
113
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-9d8dd556] {
|
|
109
114
|
flex: 1;
|
|
110
115
|
padding: 24px 0;
|
|
111
116
|
}
|
|
112
117
|
@media (max-width: 1680px) {
|
|
113
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
118
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-9d8dd556] {
|
|
114
119
|
padding: 16px 0;
|
|
115
120
|
}
|
|
116
121
|
}
|
|
117
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
122
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-9d8dd556] > *:not(:first-child) {
|
|
118
123
|
padding-top: 16px;
|
|
119
124
|
border-top: 1px solid var(--o-color-control4);
|
|
120
125
|
}
|
|
121
126
|
@media (max-width: 1680px) {
|
|
122
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
127
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-9d8dd556] > *:not(:first-child) {
|
|
123
128
|
padding-top: 12px;
|
|
124
129
|
}
|
|
125
130
|
}
|
|
126
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
131
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-9d8dd556] > *:not(:last-child) {
|
|
127
132
|
padding-bottom: 16px;
|
|
128
133
|
}
|
|
129
134
|
@media (max-width: 1680px) {
|
|
130
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
135
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-9d8dd556] > *:not(:last-child) {
|
|
131
136
|
padding-bottom: 12px;
|
|
132
137
|
}
|
|
133
138
|
}
|
|
134
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content.is-empty[data-v-
|
|
139
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content.is-empty[data-v-9d8dd556] {
|
|
135
140
|
display: flex;
|
|
136
141
|
justify-content: center;
|
|
137
142
|
align-items: center;
|
|
138
143
|
}
|
|
139
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-
|
|
144
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-9d8dd556] {
|
|
140
145
|
display: flex;
|
|
141
146
|
justify-content: flex-end;
|
|
142
147
|
margin-top: 32px;
|
|
143
148
|
}
|
|
144
149
|
@media (max-width: 1680px) {
|
|
145
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-
|
|
150
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-9d8dd556] {
|
|
146
151
|
margin-top: 24px;
|
|
147
152
|
}
|
|
148
153
|
}
|
|
149
154
|
@media (max-width: 1200px) {
|
|
150
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-
|
|
155
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-9d8dd556] {
|
|
151
156
|
margin-top: 16px;
|
|
152
157
|
}
|
|
153
158
|
}
|
|
154
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-mb-bottom-text[data-v-
|
|
159
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-mb-bottom-text[data-v-9d8dd556] {
|
|
155
160
|
margin-top: 16px;
|
|
156
161
|
color: var(--o-color-info3);
|
|
157
162
|
text-align: center;
|
|
@@ -14,6 +14,7 @@ type __VLS_Props = {
|
|
|
14
14
|
noMore: boolean;
|
|
15
15
|
scrollContainer?: string | HTMLElement;
|
|
16
16
|
bottomOffset?: number;
|
|
17
|
+
hideTabOnMobile?: boolean;
|
|
17
18
|
};
|
|
18
19
|
type __VLS_PublicProps = {
|
|
19
20
|
'version'?: SelectValueT;
|
|
@@ -39,18 +40,19 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
39
40
|
"update:page": (value: number) => any;
|
|
40
41
|
"update:version": (value: SelectValueT) => any;
|
|
41
42
|
} & {
|
|
42
|
-
"click-relative-search-item": (item: OSearchRelativeItemT) => any;
|
|
43
43
|
"reach-bottom": () => any;
|
|
44
|
+
"click-relative-search-item": (item: OSearchRelativeItemT) => any;
|
|
44
45
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
45
46
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
46
47
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
47
|
-
"onClick-relative-search-item"?: ((item: OSearchRelativeItemT) => any) | undefined;
|
|
48
48
|
"onReach-bottom"?: (() => any) | undefined;
|
|
49
|
+
"onClick-relative-search-item"?: ((item: OSearchRelativeItemT) => any) | undefined;
|
|
49
50
|
"onUpdate:version"?: ((value: SelectValueT) => any) | undefined;
|
|
50
51
|
}>, {
|
|
51
52
|
total: number;
|
|
52
53
|
pageSizes: number[];
|
|
53
54
|
bottomOffset: number;
|
|
55
|
+
hideTabOnMobile: boolean;
|
|
54
56
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
55
57
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
56
58
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./OSearchResult.vue2.mjs";
|
|
2
2
|
import './OSearchResult.css';
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const _OSearchResult = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _OSearchResult = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9d8dd556"]]);
|
|
5
5
|
export {
|
|
6
6
|
_OSearchResult as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useModel, watch, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, renderSlot, unref, createBlock, withCtx, Fragment, renderList, createCommentVNode, createVNode,
|
|
1
|
+
import { defineComponent, useModel, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, unref, createBlock, withCtx, Fragment, renderList, createCommentVNode, createVNode, createTextVNode, toDisplayString, mergeModels } from "vue";
|
|
2
2
|
import { useThrottleFn } from "@vueuse/core";
|
|
3
3
|
import { isArray, OSelect, OOption, OSkeleton, OSkeletonText, ODivider, OPagination } from "@opensig/opendesign";
|
|
4
4
|
import { useScreen } from "@opendesign-plus/composables";
|
|
@@ -7,15 +7,14 @@ import OSearchResultEmpty from "./components/OSearchResultEmpty.vue.mjs";
|
|
|
7
7
|
import OSearchResultFeedback from "./components/OSearchResultFeedback.vue.mjs";
|
|
8
8
|
import OSearchResultFeedbackBanner from "./components/OSearchResultFeedbackBanner.vue.mjs";
|
|
9
9
|
import OSearchResultRelative from "./components/OSearchResultRelative.vue.mjs";
|
|
10
|
-
const _hoisted_1 = { class: "o-search-result" };
|
|
11
|
-
const _hoisted_2 = { class: "o-search-result-content
|
|
12
|
-
const _hoisted_3 = { class: "o-search-result-
|
|
13
|
-
const _hoisted_4 = {
|
|
14
|
-
const _hoisted_5 = {
|
|
10
|
+
const _hoisted_1 = { class: "o-search-result-content-wrap" };
|
|
11
|
+
const _hoisted_2 = { class: "o-search-result-left-content" };
|
|
12
|
+
const _hoisted_3 = { class: "o-search-result-content-skeleton-loading" };
|
|
13
|
+
const _hoisted_4 = {
|
|
15
14
|
key: 1,
|
|
16
15
|
class: "o-search-result-mb-bottom-text"
|
|
17
16
|
};
|
|
18
|
-
const
|
|
17
|
+
const _hoisted_5 = { class: "o-search-result-right-content" };
|
|
19
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
19
|
__name: "OSearchResult",
|
|
21
20
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -28,7 +27,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
27
|
submitFeedback: {},
|
|
29
28
|
noMore: { type: Boolean },
|
|
30
29
|
scrollContainer: {},
|
|
31
|
-
bottomOffset: { default: 30 }
|
|
30
|
+
bottomOffset: { default: 30 },
|
|
31
|
+
hideTabOnMobile: { type: Boolean, default: false }
|
|
32
32
|
}, {
|
|
33
33
|
"version": {},
|
|
34
34
|
"versionModifiers": {},
|
|
@@ -88,9 +88,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
onMounted(bindScroll);
|
|
89
89
|
onUnmounted(unbindScroll);
|
|
90
90
|
return (_ctx, _cache) => {
|
|
91
|
-
return openBlock(), createElementBlock("div",
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
return openBlock(), createElementBlock("div", {
|
|
92
|
+
class: normalizeClass(["o-search-result", { "is-hide-tab-mobile": __props.hideTabOnMobile }])
|
|
93
|
+
}, [
|
|
94
|
+
createElementVNode("div", _hoisted_1, [
|
|
95
|
+
createElementVNode("div", _hoisted_2, [
|
|
94
96
|
renderSlot(_ctx.$slots, "content-header", {}, () => [
|
|
95
97
|
unref(isArray)(__props.versions) && __props.versions.length ? (openBlock(), createBlock(unref(OSelect), {
|
|
96
98
|
key: 0,
|
|
@@ -116,7 +118,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
118
|
loading: __props.loading && (!unref(lePadV) || page.value === 1)
|
|
117
119
|
}, {
|
|
118
120
|
template: withCtx(() => [
|
|
119
|
-
createElementVNode("div",
|
|
121
|
+
createElementVNode("div", _hoisted_3, [
|
|
120
122
|
(openBlock(), createElementBlock(Fragment, null, renderList(7, (_, i) => {
|
|
121
123
|
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
122
124
|
createVNode(unref(OSkeletonText), { rows: 3 }),
|
|
@@ -151,9 +153,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
153
|
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => pageSize.value = $event),
|
|
152
154
|
total: __props.total,
|
|
153
155
|
"page-sizes": __props.pageSizes,
|
|
156
|
+
layout: ["total", "pagesize", "pager", "jumper"],
|
|
154
157
|
class: "o-search-result-pagination"
|
|
155
158
|
}, null, 8, ["page", "page-size", "total", "page-sizes"])) : createCommentVNode("", true),
|
|
156
|
-
unref(lePadV) ? (openBlock(), createElementBlock("div",
|
|
159
|
+
unref(lePadV) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
157
160
|
__props.noMore ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
158
161
|
createTextVNode(toDisplayString(unref(t)("search.reachBottom")), 1)
|
|
159
162
|
], 64)) : !__props.loading && page.value >= 1 && __props.items.length ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -164,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
167
|
])) : createCommentVNode("", true)
|
|
165
168
|
]),
|
|
166
169
|
!unref(lePad) ? renderSlot(_ctx.$slots, "right", { key: 0 }, () => [
|
|
167
|
-
createElementVNode("div",
|
|
170
|
+
createElementVNode("div", _hoisted_5, [
|
|
168
171
|
createVNode(OSearchResultRelative, {
|
|
169
172
|
"relative-items": __props.relativeItems,
|
|
170
173
|
onClickRelativeSearchItem: _cache[3] || (_cache[3] = ($event) => emit("click-relative-search-item", $event))
|
|
@@ -173,7 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
176
|
])
|
|
174
177
|
], true) : createCommentVNode("", true)
|
|
175
178
|
])
|
|
176
|
-
]);
|
|
179
|
+
], 2);
|
|
177
180
|
};
|
|
178
181
|
}
|
|
179
182
|
});
|