@opendesign-plus-test/components 0.0.1-rc.220 → 0.0.1-rc.222
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 +74 -48
- package/dist/components/config-provider/OPlusConfigProvider.vue.d.ts +1 -0
- package/dist/components/header/OHeader.vue.d.ts +4 -4
- package/dist/components/header/index.d.ts +2 -2
- package/dist/components/logo-swiper/types.d.ts +2 -0
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +2 -1
- package/dist/components/meeting/index.d.ts +3 -0
- package/dist/components/meeting/types.d.ts +2 -0
- package/dist/components/search-result/OSearchResult.vue.d.ts +52 -0
- package/dist/components/search-result/OSearchResultHeader.vue.d.ts +1296 -0
- package/dist/components/search-result/OSearchResultItem.vue.d.ts +34 -0
- package/dist/components/search-result/components/OSearchResultEmpty.vue.d.ts +2 -0
- package/dist/components/search-result/components/OSearchResultFeedback.vue.d.ts +8 -0
- package/dist/components/search-result/components/OSearchResultFeedbackBanner.vue.d.ts +8 -0
- package/dist/components/search-result/components/OSearchResultRelative.vue.d.ts +6 -0
- package/dist/components/search-result/index.d.ts +844 -0
- package/dist/components/search-result/types.d.ts +9 -0
- package/dist/components.cjs.js +45 -45
- package/dist/components.css +1 -1
- package/dist/components.es.js +15834 -15130
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-arrow-left.mjs +20 -0
- package/dist/treeshaking/_virtual/icon-edit.mjs +38 -0
- package/dist/treeshaking/_virtual/icon-like.mjs +20 -0
- package/dist/treeshaking/_virtual/icon-relative-search.mjs +21 -0
- package/dist/treeshaking/_virtual/icon-tips.mjs +13 -2
- package/dist/treeshaking/_virtual/icon-tips2.mjs +2 -13
- package/dist/treeshaking/_virtual/icon-unlike.mjs +20 -0
- package/dist/treeshaking/assets/search/search-empty.png.mjs +4 -0
- package/dist/treeshaking/components/config-provider/OPlusConfigProvider.vue.d.ts +1 -0
- package/dist/treeshaking/components/config-provider/OPlusConfigProvider.vue.mjs +4 -2
- package/dist/treeshaking/components/empty/OEmpty.css +10 -10
- package/dist/treeshaking/components/empty/OEmpty.vue.mjs +1 -1
- package/dist/treeshaking/components/empty/OEmpty.vue2.mjs +6 -2
- package/dist/treeshaking/components/footer/components/FooterList.css +149 -109
- package/dist/treeshaking/components/footer/components/FooterList.vue.mjs +1 -1
- package/dist/treeshaking/components/footer/components/FooterList.vue2.mjs +59 -60
- package/dist/treeshaking/components/header/OHeader.css +17 -17
- package/dist/treeshaking/components/header/OHeader.vue.d.ts +4 -4
- package/dist/treeshaking/components/header/OHeader.vue.mjs +1 -1
- package/dist/treeshaking/components/header/OHeader.vue2.mjs +3 -2
- package/dist/treeshaking/components/header/index.d.ts +2 -2
- 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 +10 -2
- package/dist/treeshaking/components/logo-swiper/types.d.ts +2 -0
- package/dist/treeshaking/components/meeting/OMeetingPlayback.css +2 -0
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +2 -1
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.mjs +12 -4
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +1 -1
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.css +3 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue.mjs +15 -7
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.mjs +13 -15
- package/dist/treeshaking/components/meeting/index.d.ts +3 -0
- package/dist/treeshaking/components/meeting/types.d.ts +2 -0
- package/dist/treeshaking/components/search/OSearchInput.vue.mjs +2 -2
- package/dist/treeshaking/components/search/index.mjs +3 -3
- package/dist/treeshaking/components/search/internal/SearchImageInput.css +46 -48
- package/dist/treeshaking/components/search/internal/SearchImageInput.vue.mjs +1 -1
- package/dist/treeshaking/components/search-result/OSearchResult.css +101 -0
- package/dist/treeshaking/components/search-result/OSearchResult.vue.d.ts +52 -0
- package/dist/treeshaking/components/search-result/OSearchResult.vue.mjs +7 -0
- package/dist/treeshaking/components/search-result/OSearchResult.vue2.mjs +116 -0
- package/dist/treeshaking/components/search-result/OSearchResultHeader.css +125 -0
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +1296 -0
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.mjs +7 -0
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue2.mjs +104 -0
- package/dist/treeshaking/components/search-result/OSearchResultItem.css +213 -0
- package/dist/treeshaking/components/search-result/OSearchResultItem.vue.d.ts +34 -0
- package/dist/treeshaking/components/search-result/OSearchResultItem.vue.mjs +7 -0
- package/dist/treeshaking/components/search-result/OSearchResultItem.vue2.mjs +117 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.css +52 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.vue.d.ts +2 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.vue.mjs +7 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.vue2.mjs +29 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.css +154 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue.d.ts +8 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue.mjs +7 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue2.mjs +171 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.css +188 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue.d.ts +8 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue.mjs +7 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue2.mjs +185 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultRelative.css +97 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultRelative.vue.d.ts +6 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultRelative.vue.mjs +7 -0
- package/dist/treeshaking/components/search-result/components/OSearchResultRelative.vue2.mjs +52 -0
- package/dist/treeshaking/components/search-result/index.d.ts +844 -0
- package/dist/treeshaking/components/search-result/index.mjs +23 -0
- package/dist/treeshaking/components/search-result/types.d.ts +9 -0
- package/dist/treeshaking/components/user-center/OUserInfo.vue2.mjs +1 -1
- package/dist/treeshaking/i18n/en.mjs +13 -0
- package/dist/treeshaking/i18n/zh.mjs +13 -0
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +4 -0
- package/package.json +4 -4
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent, useModel, openBlock, createElementBlock, createElementVNode, renderSlot, unref, createBlock, withCtx, Fragment, renderList, createCommentVNode, createVNode, mergeModels } from "vue";
|
|
2
|
+
import { isArray, OSelect, OOption, OSkeleton, OSkeletonText, ODivider, OPagination } from "@opensig/opendesign";
|
|
3
|
+
import { useScreen } from "@opendesign-plus/composables";
|
|
4
|
+
import OSearchResultEmpty from "./components/OSearchResultEmpty.vue.mjs";
|
|
5
|
+
import OSearchResultFeedback from "./components/OSearchResultFeedback.vue.mjs";
|
|
6
|
+
import OSearchResultFeedbackBanner from "./components/OSearchResultFeedbackBanner.vue.mjs";
|
|
7
|
+
import OSearchResultRelative from "./components/OSearchResultRelative.vue.mjs";
|
|
8
|
+
const _hoisted_1 = { class: "o-search-result" };
|
|
9
|
+
const _hoisted_2 = { class: "o-search-result-content-wrap" };
|
|
10
|
+
const _hoisted_3 = { class: "o-search-result-left-content" };
|
|
11
|
+
const _hoisted_4 = { class: "o-search-result-content-skeleton-loading" };
|
|
12
|
+
const _hoisted_5 = { class: "o-search-result-content" };
|
|
13
|
+
const _hoisted_6 = { class: "o-search-result-right-content" };
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
__name: "OSearchResult",
|
|
16
|
+
props: /* @__PURE__ */ mergeModels({
|
|
17
|
+
versions: {},
|
|
18
|
+
items: {},
|
|
19
|
+
loading: { type: Boolean },
|
|
20
|
+
relativeItems: {},
|
|
21
|
+
total: { default: 0 },
|
|
22
|
+
pageSizes: { default: () => [10, 20, 50] },
|
|
23
|
+
submitFeedback: {}
|
|
24
|
+
}, {
|
|
25
|
+
"version": {},
|
|
26
|
+
"versionModifiers": {},
|
|
27
|
+
"page": { default: 1 },
|
|
28
|
+
"pageModifiers": {},
|
|
29
|
+
"pageSize": { default: 10 },
|
|
30
|
+
"pageSizeModifiers": {}
|
|
31
|
+
}),
|
|
32
|
+
emits: ["update:version", "update:page", "update:pageSize"],
|
|
33
|
+
setup(__props) {
|
|
34
|
+
const versionVal = useModel(__props, "version");
|
|
35
|
+
const page = useModel(__props, "page");
|
|
36
|
+
const pageSize = useModel(__props, "pageSize");
|
|
37
|
+
const { lePad, lePadV } = useScreen();
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
40
|
+
createElementVNode("div", _hoisted_2, [
|
|
41
|
+
createElementVNode("div", _hoisted_3, [
|
|
42
|
+
renderSlot(_ctx.$slots, "content-header", {}, () => [
|
|
43
|
+
unref(isArray)(__props.versions) && __props.versions.length ? (openBlock(), createBlock(unref(OSelect), {
|
|
44
|
+
key: 0,
|
|
45
|
+
modelValue: versionVal.value,
|
|
46
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => versionVal.value = $event),
|
|
47
|
+
size: "large",
|
|
48
|
+
class: "o-search-result-version-select"
|
|
49
|
+
}, {
|
|
50
|
+
default: withCtx(() => [
|
|
51
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.versions, (item) => {
|
|
52
|
+
return openBlock(), createBlock(unref(OOption), {
|
|
53
|
+
key: item.value,
|
|
54
|
+
value: item.value,
|
|
55
|
+
label: item.label
|
|
56
|
+
}, null, 8, ["value", "label"]);
|
|
57
|
+
}), 128))
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
61
|
+
], true),
|
|
62
|
+
createVNode(unref(OSkeleton), {
|
|
63
|
+
animation: "",
|
|
64
|
+
loading: __props.loading
|
|
65
|
+
}, {
|
|
66
|
+
template: withCtx(() => [
|
|
67
|
+
createElementVNode("div", _hoisted_4, [
|
|
68
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(7, (_, i) => {
|
|
69
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
70
|
+
createVNode(unref(OSkeletonText), { rows: 3 }),
|
|
71
|
+
i !== 6 ? (openBlock(), createBlock(unref(ODivider), {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "o-search-result-content-skeleton-divider"
|
|
74
|
+
})) : createCommentVNode("", true)
|
|
75
|
+
], 64);
|
|
76
|
+
}), 64))
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
createElementVNode("div", _hoisted_5, [
|
|
81
|
+
!unref(isArray)(__props.items) || __props.items.length === 0 ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
82
|
+
createVNode(OSearchResultEmpty)
|
|
83
|
+
], true) : renderSlot(_ctx.$slots, "list", {
|
|
84
|
+
key: 1,
|
|
85
|
+
items: __props.items
|
|
86
|
+
}, void 0, true)
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 8, ["loading"]),
|
|
91
|
+
createVNode(OSearchResultFeedbackBanner, { submit: __props.submitFeedback }, null, 8, ["submit"]),
|
|
92
|
+
!__props.loading && __props.total > 0 && !unref(lePadV) ? (openBlock(), createBlock(unref(OPagination), {
|
|
93
|
+
key: 0,
|
|
94
|
+
page: page.value,
|
|
95
|
+
"onUpdate:page": _cache[1] || (_cache[1] = ($event) => page.value = $event),
|
|
96
|
+
"page-size": pageSize.value,
|
|
97
|
+
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => pageSize.value = $event),
|
|
98
|
+
total: __props.total,
|
|
99
|
+
"page-sizes": __props.pageSizes,
|
|
100
|
+
class: "o-search-result-pagination"
|
|
101
|
+
}, null, 8, ["page", "page-size", "total", "page-sizes"])) : createCommentVNode("", true)
|
|
102
|
+
]),
|
|
103
|
+
!unref(lePad) ? renderSlot(_ctx.$slots, "right", { key: 0 }, () => [
|
|
104
|
+
createElementVNode("div", _hoisted_6, [
|
|
105
|
+
createVNode(OSearchResultRelative, { "relative-items": __props.relativeItems }, null, 8, ["relative-items"]),
|
|
106
|
+
createVNode(OSearchResultFeedback, { submit: __props.submitFeedback }, null, 8, ["submit"])
|
|
107
|
+
])
|
|
108
|
+
], true) : createCommentVNode("", true)
|
|
109
|
+
])
|
|
110
|
+
]);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
_sfc_main as default
|
|
116
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-0faab97b] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-0faab97b] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-search-result-header[data-v-0faab97b] {
|
|
10
|
+
background-image: var(--v5b9f5904);
|
|
11
|
+
background-position: 100% 100%;
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
background-size: cover;
|
|
14
|
+
}
|
|
15
|
+
@media (max-width: 840px) {
|
|
16
|
+
.o-search-result-header[data-v-0faab97b] {
|
|
17
|
+
background-image: none;
|
|
18
|
+
background-color: var(--o-color-fill2);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.o-search-result-header .o-search-result-header-content[data-v-0faab97b] {
|
|
22
|
+
position: relative;
|
|
23
|
+
height: 280px;
|
|
24
|
+
padding-top: 80px;
|
|
25
|
+
max-width: var(--grid-20);
|
|
26
|
+
margin: 0 auto;
|
|
27
|
+
}
|
|
28
|
+
@media (max-width: 1680px) {
|
|
29
|
+
.o-search-result-header .o-search-result-header-content[data-v-0faab97b] {
|
|
30
|
+
height: 220px;
|
|
31
|
+
padding-top: 52px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
@media (max-width: 1200px) {
|
|
35
|
+
.o-search-result-header .o-search-result-header-content[data-v-0faab97b] {
|
|
36
|
+
height: 180px;
|
|
37
|
+
padding-top: 34px;
|
|
38
|
+
padding-left: 32px;
|
|
39
|
+
padding-right: 32px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media (max-width: 840px) {
|
|
43
|
+
.o-search-result-header .o-search-result-header-content[data-v-0faab97b] {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
height: auto;
|
|
47
|
+
padding: 0;
|
|
48
|
+
max-width: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.o-search-result-header .o-search-result-header-back[data-v-0faab97b] {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
.o-search-result-header .o-search-result-header-search-btn[data-v-0faab97b] {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
.o-search-result-header .o-search-result-header-input[data-v-0faab97b] {
|
|
58
|
+
max-width: var(--grid-15);
|
|
59
|
+
}
|
|
60
|
+
@media (min-width: ) {
|
|
61
|
+
.o-search-result-header .o-search-result-header-input[data-v-0faab97b] {
|
|
62
|
+
max-width: var(--grid-10);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@media (max-width: 840px) {
|
|
66
|
+
.o-search-result-header .o-search-result-header-input-row[data-v-0faab97b] {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 24px;
|
|
70
|
+
padding: 8px 32px;
|
|
71
|
+
}
|
|
72
|
+
.o-search-result-header .o-search-result-header-back[data-v-0faab97b] {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
border: none;
|
|
78
|
+
background: none;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
.o-search-result-header .o-search-result-header-back .o-icon[data-v-0faab97b] {
|
|
82
|
+
font-size: 24px;
|
|
83
|
+
}
|
|
84
|
+
.o-search-result-header .o-search-result-header-input[data-v-0faab97b] {
|
|
85
|
+
flex: 1;
|
|
86
|
+
max-width: none;
|
|
87
|
+
margin: 0;
|
|
88
|
+
}
|
|
89
|
+
.o-search-result-header .o-search-result-header-search-btn[data-v-0faab97b] {
|
|
90
|
+
display: block;
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
font-size: 16px;
|
|
93
|
+
line-height: 24px;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
@media (max-width: 600px) {
|
|
99
|
+
.o-search-result-header .o-search-result-header-input-row[data-v-0faab97b] {
|
|
100
|
+
padding: 8px 24px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.o-search-result-header .o-search-result-header-tab-wrap[data-v-0faab97b] {
|
|
104
|
+
position: absolute;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
}
|
|
107
|
+
@media (max-width: 840px) {
|
|
108
|
+
.o-search-result-header .o-search-result-header-tab-wrap[data-v-0faab97b] {
|
|
109
|
+
position: static;
|
|
110
|
+
padding: 8px 32px 0;
|
|
111
|
+
overflow-x: auto;
|
|
112
|
+
z-index: 0;
|
|
113
|
+
}
|
|
114
|
+
.o-search-result-header .o-search-result-header-tab-wrap[data-v-0faab97b] .o-tab-navs {
|
|
115
|
+
flex-wrap: nowrap;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@media (max-width: 600px) {
|
|
119
|
+
.o-search-result-header .o-search-result-header-tab-wrap[data-v-0faab97b] {
|
|
120
|
+
padding: 8px 24px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
.o-search-result-header .o-search-result-header-tab-wrap .o-search-result-header-tab[data-v-0faab97b] {
|
|
124
|
+
--tab-nav-justify: start;
|
|
125
|
+
}
|