@opendesign-plus-test/components 0.0.1-rc.215 → 0.0.1-rc.216
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/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 +2 -2
- package/dist/components.es.js +15989 -15287
- 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-email.mjs +9 -8
- package/dist/treeshaking/_virtual/icon-email2.mjs +8 -9
- package/dist/treeshaking/_virtual/icon-like.mjs +20 -0
- package/dist/treeshaking/_virtual/icon-relative-search.mjs +21 -0
- 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/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/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/org/OOrgMembers.vue2.mjs +1 -1
- 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/OAccountSecurity.css +50 -76
- package/dist/treeshaking/components/user-center/OAccountSecurity.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OAccountSecurity.vue2.mjs +7 -7
- package/dist/treeshaking/components/user-center/OAccountSetting.css +60 -112
- package/dist/treeshaking/components/user-center/OAccountSetting.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OAccountSetting.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/OAsideBar.css +14 -14
- package/dist/treeshaking/components/user-center/OAsideBar.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OLayout.css +13 -47
- package/dist/treeshaking/components/user-center/OLayout.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OLayout.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/OTheAccountManage.css +11 -28
- package/dist/treeshaking/components/user-center/OTheAccountManage.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OTheCreateMeeting.css +10 -10
- package/dist/treeshaking/components/user-center/OTheCreateMeeting.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OTheMeeting.css +35 -35
- package/dist/treeshaking/components/user-center/OTheMeeting.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OThirdPartyBindings.css +27 -80
- package/dist/treeshaking/components/user-center/OThirdPartyBindings.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OUserInfo.css +85 -262
- package/dist/treeshaking/components/user-center/OUserInfo.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/OUserInfo3.css +4 -4
- package/dist/treeshaking/components/user-center/index.mjs +2 -1
- package/dist/treeshaking/components/user-center/internal/OAppDialog.css +16 -42
- package/dist/treeshaking/components/user-center/internal/OAppDialog.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OAppDialog.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OCommonHeader.css +9 -9
- package/dist/treeshaking/components/user-center/internal/OCommonHeader.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OCommonHeader.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/ODeleteAccountModal.css +32 -32
- package/dist/treeshaking/components/user-center/internal/ODeleteAccountModal.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/ODeleteAccountModal.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog.css +15 -65
- package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog2.css +1 -1
- package/dist/treeshaking/components/user-center/internal/OEditOrgDialog.css +15 -65
- package/dist/treeshaking/components/user-center/internal/OEditOrgDialog.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OEditOrgDialog.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OEditOrgDialog2.css +1 -1
- package/dist/treeshaking/components/user-center/internal/OModifyPwd.css +20 -46
- package/dist/treeshaking/components/user-center/internal/OModifyPwd.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OModifyPwd.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OPasswordPopInput.css +4 -4
- package/dist/treeshaking/components/user-center/internal/OPasswordPopInput.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OPasswordPopInput.vue2.mjs +2 -2
- package/dist/treeshaking/components/user-center/internal/OToBindingTipModal.css +13 -39
- package/dist/treeshaking/components/user-center/internal/OToBindingTipModal.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OToBindingTipModal.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OUnbindingThirdpartyAccountModal.css +15 -41
- package/dist/treeshaking/components/user-center/internal/OUnbindingThirdpartyAccountModal.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OUnbindingThirdpartyAccountModal.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.css +106 -106
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue2.mjs +1 -1
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar2.css +2 -2
- package/dist/treeshaking/components/user-center/styles/global.css +349 -0
- package/dist/treeshaking/components/user-center/styles/variables.css +361 -0
- 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,7 @@
|
|
|
1
|
+
import _sfc_main from "./OSearchResultHeader.vue2.mjs";
|
|
2
|
+
import './OSearchResultHeader.css';
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _OSearchResultHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0faab97b"]]);
|
|
5
|
+
export {
|
|
6
|
+
_OSearchResultHeader as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent, useCssVars, useModel, ref, computed, openBlock, createElementBlock, createElementVNode, unref, createVNode, withCtx, renderSlot, mergeProps, toDisplayString, Fragment, renderList, createBlock, createCommentVNode, mergeModels } from "vue";
|
|
2
|
+
import { OIcon, isArray, OTab, OTabPane } from "@opensig/opendesign";
|
|
3
|
+
import IconArrowLeft from "../../_virtual/icon-arrow-left.mjs";
|
|
4
|
+
import OSearchInput from "../search/OSearchInput.vue.mjs";
|
|
5
|
+
import { useI18n } from "../../i18n/index.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "o-search-result-header" };
|
|
7
|
+
const _hoisted_2 = { class: "o-search-result-header-content" };
|
|
8
|
+
const _hoisted_3 = { class: "o-search-result-header-input-row" };
|
|
9
|
+
const _hoisted_4 = ["aria-label"];
|
|
10
|
+
const _hoisted_5 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "o-search-result-header-tab-wrap"
|
|
13
|
+
};
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
__name: "OSearchResultHeader",
|
|
16
|
+
props: /* @__PURE__ */ mergeModels({
|
|
17
|
+
bg: {},
|
|
18
|
+
tabs: {},
|
|
19
|
+
inputProps: {}
|
|
20
|
+
}, {
|
|
21
|
+
"searchInput": {},
|
|
22
|
+
"searchInputModifiers": {},
|
|
23
|
+
"tab": {},
|
|
24
|
+
"tabModifiers": {}
|
|
25
|
+
}),
|
|
26
|
+
emits: /* @__PURE__ */ mergeModels(["back", "search"], ["update:searchInput", "update:tab"]),
|
|
27
|
+
setup(__props, { emit: __emit }) {
|
|
28
|
+
useCssVars((_ctx) => ({
|
|
29
|
+
"v5b9f5904": bgStyle.value
|
|
30
|
+
}));
|
|
31
|
+
const props = __props;
|
|
32
|
+
const emit = __emit;
|
|
33
|
+
const searchInput = useModel(__props, "searchInput");
|
|
34
|
+
const tabVal = useModel(__props, "tab");
|
|
35
|
+
const { t } = useI18n();
|
|
36
|
+
const searchInputRef = ref(null);
|
|
37
|
+
const handleSearch = () => {
|
|
38
|
+
var _a;
|
|
39
|
+
(_a = searchInputRef.value) == null ? void 0 : _a.search();
|
|
40
|
+
};
|
|
41
|
+
const bgStyle = computed(() => props.bg ? `url(${props.bg})` : "none");
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
44
|
+
createElementVNode("div", _hoisted_2, [
|
|
45
|
+
createElementVNode("div", _hoisted_3, [
|
|
46
|
+
createElementVNode("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
class: "o-search-result-header-back",
|
|
49
|
+
"aria-label": unref(t)("search.back"),
|
|
50
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("back"))
|
|
51
|
+
}, [
|
|
52
|
+
createVNode(unref(OIcon), null, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
createVNode(unref(IconArrowLeft))
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
})
|
|
58
|
+
], 8, _hoisted_4),
|
|
59
|
+
renderSlot(_ctx.$slots, "input", {}, () => [
|
|
60
|
+
createVNode(OSearchInput, mergeProps({
|
|
61
|
+
ref_key: "searchInputRef",
|
|
62
|
+
ref: searchInputRef
|
|
63
|
+
}, __props.inputProps, {
|
|
64
|
+
modelValue: searchInput.value,
|
|
65
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
|
|
66
|
+
class: "o-search-result-header-input",
|
|
67
|
+
onSearch: _cache[2] || (_cache[2] = (payload) => emit("search", payload))
|
|
68
|
+
}), null, 16, ["modelValue"])
|
|
69
|
+
], true),
|
|
70
|
+
createElementVNode("div", {
|
|
71
|
+
class: "o-search-result-header-search-btn",
|
|
72
|
+
onClick: handleSearch
|
|
73
|
+
}, toDisplayString(unref(t)("search")), 1)
|
|
74
|
+
]),
|
|
75
|
+
renderSlot(_ctx.$slots, "tab", {}, () => [
|
|
76
|
+
unref(isArray)(__props.tabs) && __props.tabs.length ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
77
|
+
createVNode(unref(OTab), {
|
|
78
|
+
modelValue: tabVal.value,
|
|
79
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => tabVal.value = $event),
|
|
80
|
+
class: "o-search-result-header-tab",
|
|
81
|
+
line: false,
|
|
82
|
+
size: "large"
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (item) => {
|
|
86
|
+
return openBlock(), createBlock(unref(OTabPane), {
|
|
87
|
+
key: item.value,
|
|
88
|
+
value: item.value,
|
|
89
|
+
label: item.label
|
|
90
|
+
}, null, 8, ["value", "label"]);
|
|
91
|
+
}), 128))
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["modelValue"])
|
|
95
|
+
])) : createCommentVNode("", true)
|
|
96
|
+
], true)
|
|
97
|
+
])
|
|
98
|
+
]);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
_sfc_main as default
|
|
104
|
+
};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-468b74b0] {
|
|
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-468b74b0] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-search-result-item[data-v-468b74b0]:not(:first-child) {
|
|
10
|
+
padding-top: 16px;
|
|
11
|
+
border-top: 1px solid var(--o-color-control4);
|
|
12
|
+
}
|
|
13
|
+
@media (max-width: 1680px) {
|
|
14
|
+
.o-search-result-item[data-v-468b74b0]:not(:first-child) {
|
|
15
|
+
padding-top: 12px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.o-search-result-item[data-v-468b74b0]:not(:last-child) {
|
|
19
|
+
padding-bottom: 16px;
|
|
20
|
+
}
|
|
21
|
+
@media (max-width: 1680px) {
|
|
22
|
+
.o-search-result-item[data-v-468b74b0]:not(:last-child) {
|
|
23
|
+
padding-bottom: 12px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.o-search-result-item[data-v-468b74b0] {
|
|
27
|
+
--o-search-result-item-radius: var(--o-search-result-radius, var(--o-radius-xs));
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 24px;
|
|
31
|
+
}
|
|
32
|
+
@media (max-width: 1680px) {
|
|
33
|
+
.o-search-result-item[data-v-468b74b0] {
|
|
34
|
+
gap: 16px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@media (max-width: 1200px) {
|
|
38
|
+
.o-search-result-item[data-v-468b74b0] {
|
|
39
|
+
gap: 12px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media (max-width: 840px) {
|
|
43
|
+
.o-search-result-item[data-v-468b74b0] {
|
|
44
|
+
padding: 12px 16px;
|
|
45
|
+
background-color: var(--o-color-fill2);
|
|
46
|
+
border-radius: var(--o-radius-xs);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@media (max-width: 600px) {
|
|
50
|
+
.o-search-result-item[data-v-468b74b0] {
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
align-items: stretch;
|
|
53
|
+
gap: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.o-search-result-item .o-search-result-item-body[data-v-468b74b0] {
|
|
57
|
+
flex: 1;
|
|
58
|
+
min-width: 0;
|
|
59
|
+
}
|
|
60
|
+
.o-search-result-item .o-search-result-item-img[data-v-468b74b0] {
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
width: 108px;
|
|
63
|
+
height: 108px;
|
|
64
|
+
border-radius: var(--o-search-result-item-radius);
|
|
65
|
+
}
|
|
66
|
+
@media (max-width: 1680px) {
|
|
67
|
+
.o-search-result-item .o-search-result-item-img[data-v-468b74b0] {
|
|
68
|
+
width: 96px;
|
|
69
|
+
height: 96px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@media (max-width: 1200px) {
|
|
73
|
+
.o-search-result-item .o-search-result-item-img[data-v-468b74b0] {
|
|
74
|
+
width: 72px;
|
|
75
|
+
height: 72px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
@media (max-width: 600px) {
|
|
79
|
+
.o-search-result-item .o-search-result-item-img[data-v-468b74b0] {
|
|
80
|
+
margin-top: 8px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.o-search-result-item .o-search-result-item-title[data-v-468b74b0] {
|
|
84
|
+
font-weight: 600;
|
|
85
|
+
color: var(--o-color-info1);
|
|
86
|
+
font-size: 20px;
|
|
87
|
+
line-height: 28px;
|
|
88
|
+
}
|
|
89
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
90
|
+
.o-search-result-item .o-search-result-item-title[data-v-468b74b0] {
|
|
91
|
+
font-size: 18px;
|
|
92
|
+
line-height: 26px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
96
|
+
.o-search-result-item .o-search-result-item-title[data-v-468b74b0] {
|
|
97
|
+
font-size: 16px;
|
|
98
|
+
line-height: 24px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
102
|
+
.o-search-result-item .o-search-result-item-title[data-v-468b74b0] {
|
|
103
|
+
font-size: 16px;
|
|
104
|
+
line-height: 24px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
@media (max-width: 600px) {
|
|
108
|
+
.o-search-result-item .o-search-result-item-title[data-v-468b74b0] {
|
|
109
|
+
font-size: 14px;
|
|
110
|
+
line-height: 22px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@media (hover: hover) {
|
|
114
|
+
.o-search-result-item .o-search-result-item-title[data-v-468b74b0]:hover {
|
|
115
|
+
color: var(--o-color-primary1);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.o-search-result-item .o-search-result-item-title .o-search-result-item-title-link[data-v-468b74b0] {
|
|
119
|
+
color: inherit;
|
|
120
|
+
text-decoration: none;
|
|
121
|
+
}
|
|
122
|
+
.o-search-result-item .o-search-result-item-title .o-search-result-item-title-link[data-v-468b74b0] span,
|
|
123
|
+
.o-search-result-item .o-search-result-item-title .o-search-result-item-title-content[data-v-468b74b0] span {
|
|
124
|
+
color: var(--o-color-primary1);
|
|
125
|
+
}
|
|
126
|
+
.o-search-result-item .o-search-result-item-detail[data-v-468b74b0] {
|
|
127
|
+
display: -webkit-box;
|
|
128
|
+
margin-top: 8px;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
color: var(--o-color-info1);
|
|
131
|
+
text-overflow: ellipsis;
|
|
132
|
+
overflow-wrap: break-word;
|
|
133
|
+
-webkit-box-orient: vertical;
|
|
134
|
+
-webkit-line-clamp: 2;
|
|
135
|
+
font-size: 16px;
|
|
136
|
+
line-height: 24px;
|
|
137
|
+
}
|
|
138
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
139
|
+
.o-search-result-item .o-search-result-item-detail[data-v-468b74b0] {
|
|
140
|
+
font-size: 14px;
|
|
141
|
+
line-height: 22px;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
145
|
+
.o-search-result-item .o-search-result-item-detail[data-v-468b74b0] {
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
line-height: 22px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
151
|
+
.o-search-result-item .o-search-result-item-detail[data-v-468b74b0] {
|
|
152
|
+
font-size: 14px;
|
|
153
|
+
line-height: 22px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
@media (max-width: 600px) {
|
|
157
|
+
.o-search-result-item .o-search-result-item-detail[data-v-468b74b0] {
|
|
158
|
+
font-size: 12px;
|
|
159
|
+
line-height: 18px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
.o-search-result-item .o-search-result-item-detail[data-v-468b74b0] span {
|
|
163
|
+
color: var(--o-color-primary1);
|
|
164
|
+
}
|
|
165
|
+
.o-search-result-item .o-search-result-item-footer[data-v-468b74b0] {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-wrap: wrap;
|
|
168
|
+
align-items: center;
|
|
169
|
+
row-gap: 4px;
|
|
170
|
+
margin-top: 8px;
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
line-height: 18px;
|
|
173
|
+
color: var(--o-color-info3);
|
|
174
|
+
}
|
|
175
|
+
@media (max-width: 600px) {
|
|
176
|
+
.o-search-result-item .o-search-result-item-footer[data-v-468b74b0] {
|
|
177
|
+
font-size: 10px;
|
|
178
|
+
line-height: 16px;
|
|
179
|
+
}
|
|
180
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-version[data-v-468b74b0] {
|
|
181
|
+
width: 100%;
|
|
182
|
+
}
|
|
183
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-version-divider[data-v-468b74b0] {
|
|
184
|
+
display: none;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-breadcrumb[data-v-468b74b0] {
|
|
188
|
+
display: flex;
|
|
189
|
+
flex-wrap: wrap;
|
|
190
|
+
align-items: center;
|
|
191
|
+
row-gap: 4px;
|
|
192
|
+
}
|
|
193
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-breadcrumb-icon[data-v-468b74b0] {
|
|
194
|
+
margin: 0 4px;
|
|
195
|
+
font-size: 12px;
|
|
196
|
+
}
|
|
197
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-version[data-v-468b74b0] {
|
|
198
|
+
display: inline-flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
}
|
|
201
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-version-divider[data-v-468b74b0] {
|
|
202
|
+
margin: 0 16px;
|
|
203
|
+
}
|
|
204
|
+
@media (max-width: 1680px) {
|
|
205
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-version-divider[data-v-468b74b0] {
|
|
206
|
+
margin: 0 12px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
@media (max-width: 1200px) {
|
|
210
|
+
.o-search-result-item .o-search-result-item-footer .o-search-result-item-version-divider[data-v-468b74b0] {
|
|
211
|
+
margin: 0 8px;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
detail: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
img?: string;
|
|
6
|
+
from?: string[];
|
|
7
|
+
version?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
title?(_: {
|
|
13
|
+
title: string;
|
|
14
|
+
}): any;
|
|
15
|
+
detail?(_: {
|
|
16
|
+
detail: string;
|
|
17
|
+
}): any;
|
|
18
|
+
footer?(_: {
|
|
19
|
+
from: string[] | undefined;
|
|
20
|
+
version: string | undefined;
|
|
21
|
+
}): any;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./OSearchResultItem.vue2.mjs";
|
|
2
|
+
import './OSearchResultItem.css';
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _OSearchResultItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-468b74b0"]]);
|
|
5
|
+
export {
|
|
6
|
+
_OSearchResultItem as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, renderSlot, withDirectives, unref, createCommentVNode, toDisplayString, Fragment, renderList, createBlock, withCtx, createVNode } from "vue";
|
|
2
|
+
import { isArray, OIcon, ODivider } from "@opensig/opendesign";
|
|
3
|
+
import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
|
|
4
|
+
import IconRight from "../../_virtual/icon-chevron-right.mjs";
|
|
5
|
+
import { useI18n } from "../../i18n/index.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "o-search-result-item" };
|
|
7
|
+
const _hoisted_2 = { class: "o-search-result-item-body" };
|
|
8
|
+
const _hoisted_3 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "o-search-result-item-title"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_4 = ["href"];
|
|
13
|
+
const _hoisted_5 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "o-search-result-item-title-content"
|
|
16
|
+
};
|
|
17
|
+
const _hoisted_6 = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "o-search-result-item-detail"
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_7 = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "o-search-result-item-footer"
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_8 = { key: 0 };
|
|
26
|
+
const _hoisted_9 = {
|
|
27
|
+
key: 1,
|
|
28
|
+
class: "o-search-result-item-breadcrumb"
|
|
29
|
+
};
|
|
30
|
+
const _hoisted_10 = { class: "o-search-result-item-breadcrumb-item" };
|
|
31
|
+
const _hoisted_11 = {
|
|
32
|
+
key: 2,
|
|
33
|
+
class: "o-search-result-item-version"
|
|
34
|
+
};
|
|
35
|
+
const _hoisted_12 = ["src", "alt"];
|
|
36
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
|
+
__name: "OSearchResultItem",
|
|
38
|
+
props: {
|
|
39
|
+
title: {},
|
|
40
|
+
detail: {},
|
|
41
|
+
href: {},
|
|
42
|
+
img: {},
|
|
43
|
+
from: {},
|
|
44
|
+
version: {}
|
|
45
|
+
},
|
|
46
|
+
setup(__props) {
|
|
47
|
+
const { t } = useI18n();
|
|
48
|
+
const vDompurifyHtml = buildVueDompurifyHTMLDirective();
|
|
49
|
+
return (_ctx, _cache) => {
|
|
50
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
51
|
+
createElementVNode("div", _hoisted_2, [
|
|
52
|
+
renderSlot(_ctx.$slots, "title", { title: __props.title }, () => [
|
|
53
|
+
__props.title ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
54
|
+
__props.href ? withDirectives((openBlock(), createElementBlock("a", {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "o-search-result-item-title-link",
|
|
57
|
+
href: __props.href,
|
|
58
|
+
target: "_self"
|
|
59
|
+
}, null, 8, _hoisted_4)), [
|
|
60
|
+
[unref(vDompurifyHtml), __props.title]
|
|
61
|
+
]) : withDirectives((openBlock(), createElementBlock("span", _hoisted_5, null, 512)), [
|
|
62
|
+
[unref(vDompurifyHtml), __props.title]
|
|
63
|
+
])
|
|
64
|
+
])) : createCommentVNode("", true)
|
|
65
|
+
], true),
|
|
66
|
+
renderSlot(_ctx.$slots, "detail", { detail: __props.detail }, () => [
|
|
67
|
+
__props.detail ? withDirectives((openBlock(), createElementBlock("div", _hoisted_6, null, 512)), [
|
|
68
|
+
[unref(vDompurifyHtml), __props.detail]
|
|
69
|
+
]) : createCommentVNode("", true)
|
|
70
|
+
], true),
|
|
71
|
+
renderSlot(_ctx.$slots, "footer", {
|
|
72
|
+
from: __props.from,
|
|
73
|
+
version: __props.version
|
|
74
|
+
}, () => [
|
|
75
|
+
unref(isArray)(__props.from) && __props.from.length || __props.version ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
76
|
+
unref(isArray)(__props.from) && __props.from.length ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(t)("search.from")), 1)) : createCommentVNode("", true),
|
|
77
|
+
unref(isArray)(__props.from) && __props.from.length ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
78
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.from ?? [], (item, i) => {
|
|
79
|
+
var _a;
|
|
80
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
81
|
+
createElementVNode("span", _hoisted_10, toDisplayString(item), 1),
|
|
82
|
+
i !== (((_a = __props.from) == null ? void 0 : _a.length) ?? 0) - 1 ? (openBlock(), createBlock(unref(OIcon), {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: "o-search-result-item-breadcrumb-icon"
|
|
85
|
+
}, {
|
|
86
|
+
default: withCtx(() => [
|
|
87
|
+
createVNode(unref(IconRight))
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})) : createCommentVNode("", true)
|
|
91
|
+
], 64);
|
|
92
|
+
}), 128))
|
|
93
|
+
])) : createCommentVNode("", true),
|
|
94
|
+
__props.version ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
95
|
+
unref(isArray)(__props.from) && __props.from.length ? (openBlock(), createBlock(unref(ODivider), {
|
|
96
|
+
key: 0,
|
|
97
|
+
direction: "v",
|
|
98
|
+
class: "o-search-result-item-version-divider"
|
|
99
|
+
})) : createCommentVNode("", true),
|
|
100
|
+
createElementVNode("span", null, toDisplayString(unref(t)("search.version")) + toDisplayString(__props.version), 1)
|
|
101
|
+
])) : createCommentVNode("", true)
|
|
102
|
+
])) : createCommentVNode("", true)
|
|
103
|
+
], true)
|
|
104
|
+
]),
|
|
105
|
+
__props.img ? (openBlock(), createElementBlock("img", {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: "o-search-result-item-img",
|
|
108
|
+
src: __props.img,
|
|
109
|
+
alt: __props.title
|
|
110
|
+
}, null, 8, _hoisted_12)) : createCommentVNode("", true)
|
|
111
|
+
]);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
export {
|
|
116
|
+
_sfc_main as default
|
|
117
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-da22a823] {
|
|
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-da22a823] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-search-result-empty[data-v-da22a823] {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
padding: 54px 0;
|
|
15
|
+
}
|
|
16
|
+
.o-search-result-empty .o-search-result-empty-img[data-v-da22a823] {
|
|
17
|
+
height: 300px;
|
|
18
|
+
}
|
|
19
|
+
@media (max-width: 600px) {
|
|
20
|
+
.o-search-result-empty .o-search-result-empty-img[data-v-da22a823] {
|
|
21
|
+
height: 232px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.o-search-result-empty .o-search-result-empty-tip[data-v-da22a823] {
|
|
25
|
+
margin-top: 16px;
|
|
26
|
+
font-size: 18px;
|
|
27
|
+
line-height: 26px;
|
|
28
|
+
}
|
|
29
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
30
|
+
.o-search-result-empty .o-search-result-empty-tip[data-v-da22a823] {
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
line-height: 24px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
36
|
+
.o-search-result-empty .o-search-result-empty-tip[data-v-da22a823] {
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
line-height: 22px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
42
|
+
.o-search-result-empty .o-search-result-empty-tip[data-v-da22a823] {
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
line-height: 22px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
@media (max-width: 600px) {
|
|
48
|
+
.o-search-result-empty .o-search-result-empty-tip[data-v-da22a823] {
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
line-height: 22px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./OSearchResultEmpty.vue2.mjs";
|
|
2
|
+
import './OSearchResultEmpty.css';
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const OSearchResultEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-da22a823"]]);
|
|
5
|
+
export {
|
|
6
|
+
OSearchResultEmpty as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent, inject, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, unref } from "vue";
|
|
2
|
+
import { useI18n } from "../../../i18n/index.mjs";
|
|
3
|
+
import { configProviderInjectKey } from "../../../shared/provide.mjs";
|
|
4
|
+
import searchEmptyImg from "../../../assets/search/search-empty.png.mjs";
|
|
5
|
+
const _hoisted_1 = { class: "o-search-result-empty" };
|
|
6
|
+
const _hoisted_2 = ["src"];
|
|
7
|
+
const _hoisted_3 = { class: "o-search-result-empty-tip" };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "OSearchResultEmpty",
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const { t } = useI18n();
|
|
12
|
+
const configProvider = inject(configProviderInjectKey);
|
|
13
|
+
const emptyImage = computed(() => {
|
|
14
|
+
return (configProvider == null ? void 0 : configProvider.emptyImg.value) || searchEmptyImg;
|
|
15
|
+
});
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
18
|
+
createElementVNode("img", {
|
|
19
|
+
class: "o-search-result-empty-img",
|
|
20
|
+
src: emptyImage.value
|
|
21
|
+
}, null, 8, _hoisted_2),
|
|
22
|
+
createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("search.notFoundTip")), 1)
|
|
23
|
+
]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_sfc_main as default
|
|
29
|
+
};
|