@opendesign-plus-test/components 0.0.1-rc.307 → 0.0.1-rc.309
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/article/OArticle.vue.d.ts +3 -0
- package/dist/components/article/components/DocTitle.vue.d.ts +2 -0
- package/dist/components/article/index.d.ts +6 -0
- package/dist/components/article/types.d.ts +1 -0
- package/dist/components/article-anchor/components/ArticleAnchorMobile.vue.d.ts +156 -1
- package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
- package/dist/components/community-updates/index.d.ts +178 -1
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +5 -1
- package/dist/components/doc-layout/index.d.ts +15 -3
- package/dist/components/footer/OFooter.vue.d.ts +5 -1
- package/dist/components/footer/components/FooterList.vue.d.ts +5 -1
- package/dist/components/footer/components/FooterSimple.vue.d.ts +5 -1
- package/dist/components/footer/index.d.ts +13 -3
- package/dist/components/footer/types.d.ts +3 -1
- package/dist/components/html-viewer/utils.d.ts +1 -8
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +2049 -1915
- package/dist/components.umd.min.js +8 -0
- package/dist/treeshaking/assets/styles/element-plus.css +1 -0
- package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/article/OArticle.mjs +2 -2
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +3 -0
- package/dist/treeshaking/components/article/OArticle.vue_vue_type_script_setup_true_lang.mjs +4 -1
- package/dist/treeshaking/components/article/{OArticle.vue_vue_type_style_index_0_scoped_f94c0e57_lang.css → OArticle.vue_vue_type_style_index_0_scoped_5f5f164f_lang.css} +11 -11
- package/dist/treeshaking/components/article/OArticleList.vue_vue_type_script_setup_true_lang.mjs +12 -4
- package/dist/treeshaking/components/article/OArticleList.vue_vue_type_style_index_0_lang.css +7 -7
- package/dist/treeshaking/components/article/components/DocTitle.mjs +2 -2
- package/dist/treeshaking/components/article/components/DocTitle.vue.d.ts +2 -0
- package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +48 -28
- package/dist/treeshaking/components/article/components/{DocTitle.vue_vue_type_style_index_0_scoped_d7f11be9_lang.css → DocTitle.vue_vue_type_style_index_0_scoped_f78bcf2d_lang.css} +94 -62
- package/dist/treeshaking/components/article/index.d.ts +6 -0
- package/dist/treeshaking/components/article/types.d.ts +1 -0
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +4 -2
- package/dist/treeshaking/components/article-anchor/{OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css → OArticleAnchor.vue_vue_type_style_index_0_scoped_4f781be4_lang.css} +9 -9
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue.d.ts +156 -1
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +73 -13
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_48812513_lang.css} +13 -10
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_3618aaf9_lang.css} +16 -12
- package/dist/treeshaking/components/brand/OBrandFile.mjs +2 -2
- package/dist/treeshaking/components/brand/{OBrandFile.vue_vue_type_style_index_0_scoped_9919f662_lang.css → OBrandFile.vue_vue_type_style_index_0_scoped_8c067acb_lang.css} +30 -15
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +2 -2
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +357 -2
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +9 -2
- package/dist/treeshaking/components/community-updates/{OCommunityUpdates.vue_vue_type_style_index_0_scoped_cab17fde_lang.css → OCommunityUpdates.vue_vue_type_style_index_0_scoped_cdd7bf86_lang.css} +43 -29
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +6 -6
- package/dist/treeshaking/components/community-updates/index.d.ts +178 -1
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +5 -1
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +14 -2
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_5403350d_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_a143db47_lang.css} +69 -50
- package/dist/treeshaking/components/doc-layout/index.d.ts +15 -3
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_1_scoped_5fa9f6f1_lang.css +1 -0
- package/dist/treeshaking/components/footer/OFooter.mjs +2 -2
- package/dist/treeshaking/components/footer/OFooter.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/OFooter.vue_vue_type_script_setup_true_lang.mjs +9 -3
- package/dist/treeshaking/components/footer/{OFooter.vue_vue_type_style_index_0_scoped_41010b1f_lang.css → OFooter.vue_vue_type_style_index_0_scoped_f0f4e884_lang.css} +13 -13
- package/dist/treeshaking/components/footer/components/FooterList.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterList.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/components/FooterList.vue_vue_type_script_setup_true_lang.mjs +45 -25
- package/dist/treeshaking/components/footer/components/{FooterList.vue_vue_type_style_index_0_scoped_0ed4bc5f_lang.css → FooterList.vue_vue_type_style_index_0_scoped_6946816d_lang.css} +110 -106
- package/dist/treeshaking/components/footer/components/FooterSimple.mjs +2 -2
- package/dist/treeshaking/components/footer/components/FooterSimple.vue.d.ts +5 -1
- package/dist/treeshaking/components/footer/components/FooterSimple.vue_vue_type_script_setup_true_lang.mjs +28 -8
- package/dist/treeshaking/components/footer/components/{FooterSimple.vue_vue_type_style_index_0_scoped_42242446_lang.css → FooterSimple.vue_vue_type_style_index_0_scoped_1dd6e901_lang.css} +29 -25
- package/dist/treeshaking/components/footer/index.d.ts +13 -3
- package/dist/treeshaking/components/footer/types.d.ts +3 -1
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.mjs +2 -2
- package/dist/treeshaking/components/html-viewer/{OHtmlViewer.vue_vue_type_style_index_0_scoped_d580315c_lang.css → OHtmlViewer.vue_vue_type_style_index_0_scoped_36fc9311_lang.css} +68 -79
- package/dist/treeshaking/components/html-viewer/utils.d.ts +1 -8
- package/dist/treeshaking/components/html-viewer/utils.mjs +8 -15
- package/dist/treeshaking/components/meeting/OMeetingCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_1_lang.css +1 -0
- package/dist/treeshaking/components/search-result/OSearchResult.mjs +2 -2
- package/dist/treeshaking/components/search-result/{OSearchResult.vue_vue_type_style_index_0_scoped_f993da8c_lang.css → OSearchResult.vue_vue_type_style_index_0_scoped_da5b23ad_lang.css} +33 -30
- package/dist/treeshaking/components/section/OSection.mjs +2 -2
- package/dist/treeshaking/components/section/OSection.vue_vue_type_script_setup_true_lang.mjs +9 -9
- package/dist/treeshaking/components/section/OSection.vue_vue_type_style_index_0_scoped_885285f2_lang.css +133 -0
- package/dist/treeshaking/components/sig/OSigList.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_0_scoped_7067a565_lang.css +1 -0
- package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_1_lang.css +1 -0
- package/package.json +4 -2
- package/dist/treeshaking/components/section/OSection.vue_vue_type_style_index_0_scoped_dae37748_lang.css +0 -173
|
@@ -60,39 +60,32 @@ function neutralizeStyleClose(css) {
|
|
|
60
60
|
return css.replace(/<\/style/gi, "\\3c/style");
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* 移除 CSS 文本中的 font-size
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* 移除 CSS 文本中的 font-size 声明。
|
|
64
|
+
* 文档自带字号为固定 px(如正文 16px),无法随断点/主题适配多分辨率;
|
|
65
|
+
* 移除后正文等元素的字号统一继承容器(容器取设计字号 token --o-font_size-*,响应式),
|
|
66
66
|
* 标题则落到组件排版规则(同样基于设计字号 token)。
|
|
67
67
|
*/
|
|
68
|
-
function
|
|
69
|
-
return css.replace(/(?<![-\w])
|
|
68
|
+
function stripFontSize(css) {
|
|
69
|
+
return css.replace(/(?<![-\w])font-size\s*:\s*[^;}]+;?/gi, "");
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* 解析完整 HTML 文档:
|
|
73
73
|
* 1. 提取所有 `<style>` 块,将选择器限定在 scope 内后合并为 CSS 文本;
|
|
74
74
|
* 2. 提取 `<body>` 内容(无 body 标签时使用原文),并移除其中的 style 块;
|
|
75
|
-
* 3. 清理内联样式中的 color/background/font-size
|
|
76
|
-
* 其中 font-size/line-height 为从网页/Word 复制的固定 px(如正文 `line-height: 26px`),优先级高于继承,
|
|
77
|
-
* 无法随断点/主题适配,移除后统一继承容器行高(--o-line_height-* token);
|
|
78
|
-
* text-decoration 常以内联 `!important` 出现(如从网页复制的链接 `text-decoration: underline !important`),
|
|
79
|
-
* 优先级高于任何样式表规则(含 `!important`),无法被组件 CSS 覆盖,必须在此移除;
|
|
80
|
-
* 链接下划线统一由组件控制(默认无、hover 显示)。
|
|
81
|
-
* list-style/list-style-type 仅移除空心圆(circle)声明——项目符号唯一需要强制为实心的场景;
|
|
82
|
-
* 其余类型(disc/decimal/none 等)原样保留,不做多余修改。
|
|
75
|
+
* 3. 清理内联样式中的 color/background/font-size 声明,使文档跟随宿主主题与组件排版字号。
|
|
83
76
|
*
|
|
84
77
|
* 注意:`<style>` 是 head-only 元素,交给 DOMPurify 片段净化时会因被解析进 head 而丢失,
|
|
85
78
|
* 因此调用方需将返回的 CSS 单独渲染,不要与 body 一起传入净化指令。
|
|
86
79
|
*/
|
|
87
80
|
function parseHtml(text, scope) {
|
|
88
81
|
const styleParts = [];
|
|
89
|
-
for (const m of text.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)) styleParts.push(scopeCss(neutralizeStyleClose(
|
|
82
|
+
for (const m of text.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)) styleParts.push(scopeCss(neutralizeStyleClose(stripFontSize(m[1])), scope));
|
|
90
83
|
const bodyMatch = text.match(/<body[^>]*>([\s\S]*?)<\/body>/i);
|
|
91
84
|
let rawBody = bodyMatch ? bodyMatch[1] : text;
|
|
92
85
|
rawBody = rawBody.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, "");
|
|
93
86
|
return {
|
|
94
87
|
body: rawBody.replace(/style\s*=\s*"([^"]*)"/gi, (_m, val) => {
|
|
95
|
-
const cleaned = val.replace(/(?<![-\w])(?:color|background(?:-color)?|font-size
|
|
88
|
+
const cleaned = val.replace(/(?<![-\w])(?:color|background(?:-color)?|font-size)\s*:\s*[^;]+;?/gi, "").replace(/\s{2,}/g, " ").trim();
|
|
96
89
|
return cleaned ? `style="${cleaned}"` : "";
|
|
97
90
|
}),
|
|
98
91
|
styleCss: styleParts.join("\n")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import OSearchResult_vue_vue_type_script_setup_true_lang_default from "./OSearchResult.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './OSearchResult.
|
|
3
|
+
import './OSearchResult.vue_vue_type_style_index_0_scoped_da5b23ad_lang.css';
|
|
4
4
|
// src/components/search-result/OSearchResult.vue
|
|
5
|
-
var OSearchResult_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OSearchResult_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var OSearchResult_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OSearchResult_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-da5b23ad"]]);
|
|
6
6
|
export { OSearchResult_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-da5b23ad] {
|
|
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-da5b23ad] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-search-result[data-v-
|
|
9
|
+
.o-search-result[data-v-da5b23ad] {
|
|
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-da5b23ad] {
|
|
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-da5b23ad] {
|
|
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,14 +39,14 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
@media (max-width: 840px) {
|
|
42
|
-
.o-search-result[data-v-
|
|
42
|
+
.o-search-result[data-v-da5b23ad] {
|
|
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-da5b23ad] {
|
|
50
50
|
--o-search-content-padding-top: 24px;
|
|
51
51
|
--o-search-content-padding-bottom: 32px;
|
|
52
52
|
--o-search-content-padding-left: 24px;
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
@media (max-width: 840px) {
|
|
57
|
-
.o-search-result.is-hide-tab-mobile[data-v-
|
|
57
|
+
.o-search-result.is-hide-tab-mobile[data-v-da5b23ad] {
|
|
58
58
|
--o-search-result-header-height: 56px;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
.o-search-result .o-search-result-content-wrap[data-v-
|
|
61
|
+
.o-search-result .o-search-result-content-wrap[data-v-da5b23ad] {
|
|
62
62
|
display: flex;
|
|
63
63
|
max-width: var(--grid-20);
|
|
64
64
|
min-height: var(--o-search-content-min-height);
|
|
65
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);
|
|
66
66
|
margin: 0 auto;
|
|
67
67
|
}
|
|
68
|
-
.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-da5b23ad] {
|
|
69
69
|
flex: 1;
|
|
70
70
|
display: flex;
|
|
71
71
|
flex-direction: column;
|
|
@@ -75,88 +75,91 @@
|
|
|
75
75
|
border-right: 1px solid var(--o-color-control4);
|
|
76
76
|
}
|
|
77
77
|
@media (max-width: 1200px) {
|
|
78
|
-
.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-da5b23ad] {
|
|
79
79
|
border-right: none;
|
|
80
80
|
padding-right: 0;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-
|
|
83
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-left-content[data-v-da5b23ad] > :first-child {
|
|
84
|
+
padding-top: 0;
|
|
85
|
+
}
|
|
86
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-da5b23ad] {
|
|
84
87
|
width: var(--grid-5);
|
|
85
88
|
padding-left: var(--grid-column-gutter);
|
|
86
89
|
}
|
|
87
90
|
@media (max-width: 1680px) {
|
|
88
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-
|
|
91
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-right-content[data-v-da5b23ad] {
|
|
89
92
|
width: var(--grid-6);
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-
|
|
95
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-da5b23ad] {
|
|
93
96
|
margin-top: 24px;
|
|
94
97
|
margin-bottom: 32px;
|
|
95
98
|
}
|
|
96
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-
|
|
99
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-da5b23ad] .o-skeleton-item .o-skeleton-line:nth-child(1) {
|
|
97
100
|
width: 52%;
|
|
98
101
|
height: 28px;
|
|
99
102
|
}
|
|
100
|
-
.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-da5b23ad] .o-skeleton-item .o-skeleton-line:nth-child(2) {
|
|
101
104
|
height: 48px;
|
|
102
105
|
}
|
|
103
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-
|
|
106
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-loading[data-v-da5b23ad] .o-skeleton-item .o-skeleton-line:nth-child(3) {
|
|
104
107
|
width: 38%;
|
|
105
108
|
height: 18px;
|
|
106
109
|
}
|
|
107
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-divider[data-v-
|
|
110
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content-skeleton-divider[data-v-da5b23ad] {
|
|
108
111
|
margin: 16px 0;
|
|
109
112
|
}
|
|
110
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-version-select[data-v-
|
|
113
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-version-select[data-v-da5b23ad] {
|
|
111
114
|
width: 320px;
|
|
112
115
|
}
|
|
113
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
116
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-da5b23ad] {
|
|
114
117
|
flex: 1;
|
|
115
118
|
padding: 24px 0;
|
|
116
119
|
}
|
|
117
120
|
@media (max-width: 1680px) {
|
|
118
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
121
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-da5b23ad] {
|
|
119
122
|
padding: 16px 0;
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
125
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-da5b23ad] > *:not(:first-child) {
|
|
123
126
|
padding-top: 16px;
|
|
124
127
|
border-top: 1px solid var(--o-color-control4);
|
|
125
128
|
}
|
|
126
129
|
@media (max-width: 1680px) {
|
|
127
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
130
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-da5b23ad] > *:not(:first-child) {
|
|
128
131
|
padding-top: 12px;
|
|
129
132
|
}
|
|
130
133
|
}
|
|
131
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
134
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-da5b23ad] > *:not(:last-child) {
|
|
132
135
|
padding-bottom: 16px;
|
|
133
136
|
}
|
|
134
137
|
@media (max-width: 1680px) {
|
|
135
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-
|
|
138
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content[data-v-da5b23ad] > *:not(:last-child) {
|
|
136
139
|
padding-bottom: 12px;
|
|
137
140
|
}
|
|
138
141
|
}
|
|
139
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-content.is-empty[data-v-
|
|
142
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-content.is-empty[data-v-da5b23ad] {
|
|
140
143
|
display: flex;
|
|
141
144
|
justify-content: center;
|
|
142
145
|
align-items: center;
|
|
143
146
|
}
|
|
144
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-
|
|
147
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-da5b23ad] {
|
|
145
148
|
display: flex;
|
|
146
149
|
justify-content: flex-end;
|
|
147
150
|
margin-top: 32px;
|
|
148
151
|
}
|
|
149
152
|
@media (max-width: 1680px) {
|
|
150
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-
|
|
153
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-da5b23ad] {
|
|
151
154
|
margin-top: 24px;
|
|
152
155
|
}
|
|
153
156
|
}
|
|
154
157
|
@media (max-width: 1200px) {
|
|
155
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-
|
|
158
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-pagination[data-v-da5b23ad] {
|
|
156
159
|
margin-top: 16px;
|
|
157
160
|
}
|
|
158
161
|
}
|
|
159
|
-
.o-search-result .o-search-result-content-wrap .o-search-result-mb-bottom-text[data-v-
|
|
162
|
+
.o-search-result .o-search-result-content-wrap .o-search-result-mb-bottom-text[data-v-da5b23ad] {
|
|
160
163
|
margin-top: 16px;
|
|
161
164
|
color: var(--o-color-info3);
|
|
162
165
|
text-align: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import OSection_vue_vue_type_script_setup_true_lang_default from "./OSection.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './OSection.
|
|
3
|
+
import './OSection.vue_vue_type_style_index_0_scoped_885285f2_lang.css';
|
|
4
4
|
// src/components/section/OSection.vue
|
|
5
|
-
var OSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OSection_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var OSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OSection_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-885285f2"]]);
|
|
6
6
|
export { OSection_default as default };
|
package/dist/treeshaking/components/section/OSection.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -2,22 +2,22 @@ import icon_chevron_right_default from "../../_virtual/~icons/components/icon-ch
|
|
|
2
2
|
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
3
3
|
import { OIcon, OLink, isArray } from "@opensig/opendesign";
|
|
4
4
|
// src/components/section/OSection.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var _hoisted_1 = { class: "section-wrapper" };
|
|
5
|
+
var _hoisted_1 = { class: "o-section-wrapper" };
|
|
6
6
|
var _hoisted_2 = {
|
|
7
7
|
key: 1,
|
|
8
|
-
class: "section-title"
|
|
8
|
+
class: "o-section-title"
|
|
9
9
|
};
|
|
10
10
|
var _hoisted_3 = {
|
|
11
11
|
key: 2,
|
|
12
|
-
class: "section-subtitle"
|
|
12
|
+
class: "o-section-subtitle"
|
|
13
13
|
};
|
|
14
14
|
var _hoisted_4 = {
|
|
15
15
|
key: 1,
|
|
16
|
-
class: "section-body"
|
|
16
|
+
class: "o-section-body"
|
|
17
17
|
};
|
|
18
18
|
var _hoisted_5 = {
|
|
19
19
|
key: 2,
|
|
20
|
-
class: "section-footer"
|
|
20
|
+
class: "o-section-footer"
|
|
21
21
|
};
|
|
22
22
|
var OSection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
23
23
|
__name: "OSection",
|
|
@@ -38,14 +38,14 @@ var OSection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
38
38
|
setup(__props) {
|
|
39
39
|
const props = __props;
|
|
40
40
|
return (_ctx, _cache) => {
|
|
41
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(["
|
|
41
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["o-section", { "is-full": props.full }]) }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "main", {}, () => [
|
|
42
42
|
_ctx.$slots.header || props.title || props.subtitle ? (openBlock(), createElementBlock("div", {
|
|
43
43
|
key: 0,
|
|
44
|
-
class: normalizeClass(["section-header", { "is-left": !props.headerJustifyCenter }])
|
|
44
|
+
class: normalizeClass(["o-section-header", { "is-left": !props.headerJustifyCenter }])
|
|
45
45
|
}, [renderSlot(_ctx.$slots, "header", {}, () => [unref(isArray)(props.title) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.title, (item) => {
|
|
46
46
|
return openBlock(), createElementBlock("h2", {
|
|
47
47
|
key: item,
|
|
48
|
-
class: "section-title"
|
|
48
|
+
class: "o-section-title"
|
|
49
49
|
}, toDisplayString(item), 1);
|
|
50
50
|
}), 128)) : _ctx.$slots.title || props.title ? (openBlock(), createElementBlock("h2", _hoisted_2, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(props.title), 1)], true)])) : createCommentVNode("", true), _ctx.$slots.subtitle || props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_3, [renderSlot(_ctx.$slots, "subtitle", {}, () => [createTextVNode(toDisplayString(props.subtitle), 1)], true)])) : createCommentVNode("", true)], true)], 2)) : createCommentVNode("", true),
|
|
51
51
|
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])) : createCommentVNode("", true),
|
|
@@ -53,7 +53,7 @@ var OSection_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
53
53
|
href: props.footerHref,
|
|
54
54
|
target: "_blank"
|
|
55
55
|
}, {
|
|
56
|
-
suffix: withCtx(() => [createVNode(unref(OIcon), { class: "footer-icon" }, {
|
|
56
|
+
suffix: withCtx(() => [createVNode(unref(OIcon), { class: "o-section-footer-icon" }, {
|
|
57
57
|
default: withCtx(() => [createVNode(unref(icon_chevron_right_default))]),
|
|
58
58
|
_: 1
|
|
59
59
|
})]),
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-885285f2] {
|
|
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-885285f2] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-section[data-v-885285f2] {
|
|
10
|
+
padding: var(--o-r-gap-10) 0;
|
|
11
|
+
}
|
|
12
|
+
.o-section[data-v-885285f2]:last-child {
|
|
13
|
+
padding-bottom: var(--o-r-gap-10);
|
|
14
|
+
}
|
|
15
|
+
.o-section.is-full[data-v-885285f2] {
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
.o-section + .o-section[data-v-885285f2] {
|
|
20
|
+
padding-top: 0;
|
|
21
|
+
}
|
|
22
|
+
.o-section .o-section-wrapper[data-v-885285f2] {
|
|
23
|
+
width: var(--grid-content-width);
|
|
24
|
+
margin: 0 auto;
|
|
25
|
+
}
|
|
26
|
+
.o-section .o-section-header.is-left .o-section-title[data-v-885285f2],
|
|
27
|
+
.o-section .o-section-header.is-left .o-section-subtitle[data-v-885285f2] {
|
|
28
|
+
text-align: left;
|
|
29
|
+
}
|
|
30
|
+
.o-section .o-section-header .o-section-title[data-v-885285f2] {
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
text-align: center;
|
|
33
|
+
font-size: 40px;
|
|
34
|
+
line-height: 56px;
|
|
35
|
+
}
|
|
36
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
37
|
+
.o-section .o-section-header .o-section-title[data-v-885285f2] {
|
|
38
|
+
font-size: 32px;
|
|
39
|
+
line-height: 44px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
43
|
+
.o-section .o-section-header .o-section-title[data-v-885285f2] {
|
|
44
|
+
font-size: 24px;
|
|
45
|
+
line-height: 32px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
49
|
+
.o-section .o-section-header .o-section-title[data-v-885285f2] {
|
|
50
|
+
font-size: 22px;
|
|
51
|
+
line-height: 30px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@media (max-width: 600px) {
|
|
55
|
+
.o-section .o-section-header .o-section-title[data-v-885285f2] {
|
|
56
|
+
font-size: 18px;
|
|
57
|
+
line-height: 26px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.o-section .o-section-header .o-section-subtitle[data-v-885285f2] {
|
|
61
|
+
color: var(--o-color-info2);
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
margin-top: var(--o-r-gap-4);
|
|
64
|
+
text-align: center;
|
|
65
|
+
font-size: 16px;
|
|
66
|
+
line-height: 24px;
|
|
67
|
+
}
|
|
68
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
69
|
+
.o-section .o-section-header .o-section-subtitle[data-v-885285f2] {
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
line-height: 22px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
75
|
+
.o-section .o-section-header .o-section-subtitle[data-v-885285f2] {
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
line-height: 22px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
81
|
+
.o-section .o-section-header .o-section-subtitle[data-v-885285f2] {
|
|
82
|
+
font-size: 14px;
|
|
83
|
+
line-height: 22px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@media (max-width: 600px) {
|
|
87
|
+
.o-section .o-section-header .o-section-subtitle[data-v-885285f2] {
|
|
88
|
+
font-size: 12px;
|
|
89
|
+
line-height: 18px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
@media (max-width: 840px) {
|
|
93
|
+
.o-section .o-section-header .o-section-subtitle[data-v-885285f2] {
|
|
94
|
+
margin-top: var(--o-gap-4);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.o-section .o-section-body[data-v-885285f2] {
|
|
98
|
+
margin-top: var(--o-r-gap-7);
|
|
99
|
+
}
|
|
100
|
+
.o-section .o-section-footer[data-v-885285f2] {
|
|
101
|
+
margin-top: var(--o-r-gap-5);
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
font-size: 16px;
|
|
105
|
+
line-height: 24px;
|
|
106
|
+
}
|
|
107
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
108
|
+
.o-section .o-section-footer[data-v-885285f2] {
|
|
109
|
+
font-size: 14px;
|
|
110
|
+
line-height: 22px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
114
|
+
.o-section .o-section-footer[data-v-885285f2] {
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
line-height: 22px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
120
|
+
.o-section .o-section-footer[data-v-885285f2] {
|
|
121
|
+
font-size: 14px;
|
|
122
|
+
line-height: 22px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
@media (max-width: 600px) {
|
|
126
|
+
.o-section .o-section-footer[data-v-885285f2] {
|
|
127
|
+
font-size: 12px;
|
|
128
|
+
line-height: 18px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.o-section .o-section-footer .o-section-footer-icon[data-v-885285f2] {
|
|
132
|
+
font-size: 16px;
|
|
133
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendesign-plus-test/components",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.309",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/components.cjs.js",
|
|
10
10
|
"module": "./dist/components.es.js",
|
|
11
|
+
"unpkg": "dist/components.umd.min.js",
|
|
11
12
|
"types": "./dist/index.d.ts",
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"vue": "^3.5.13",
|
|
48
49
|
"element-plus": "2.13.1",
|
|
49
50
|
"@opendesign-plus/composables": "0.0.1-rc.10",
|
|
50
|
-
"@opendesign-plus/styles": "0.0.1-rc.
|
|
51
|
+
"@opendesign-plus/styles": "0.0.1-rc.6"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"dev": "vite",
|
|
70
71
|
"generate-components": "node scripts/generate-components-index.js",
|
|
71
72
|
"build": "node scripts/build.js",
|
|
73
|
+
"build:umd": "vite build --mode umd",
|
|
72
74
|
"build:watch": "vite build --mode library --watch"
|
|
73
75
|
}
|
|
74
76
|
}
|