@opendesign-plus-test/components 0.0.1-rc.243 → 0.0.1-rc.245

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.
Files changed (109) hide show
  1. package/dist/components/activity/index.d.ts +9 -9
  2. package/dist/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
  3. package/dist/components/anchor-bar/index.d.ts +9 -9
  4. package/dist/components/article/OArticle.vue.d.ts +14 -196
  5. package/dist/components/article/index.d.ts +50 -151
  6. package/dist/components/article-anchor/index.d.ts +9 -9
  7. package/dist/components/article-pagination/index.d.ts +17 -17
  8. package/dist/components/banner/index.d.ts +6 -6
  9. package/dist/components/brand/index.d.ts +15 -15
  10. package/dist/components/events/index.d.ts +20 -20
  11. package/dist/components/footer/index.d.ts +3 -3
  12. package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
  13. package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  14. package/dist/components/header/index.d.ts +28 -28
  15. package/dist/components/header-search/index.d.ts +13 -13
  16. package/dist/components/logo-swiper/index.d.ts +11 -11
  17. package/dist/components/markdown/OMarkdown.vue.d.ts +16 -7
  18. package/dist/components/markdown/index.d.ts +45 -13
  19. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  20. package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  21. package/dist/components/meeting/index.d.ts +51 -51
  22. package/dist/components/org/index.d.ts +9 -9
  23. package/dist/components/recursion-menu/index.d.ts +3 -3
  24. package/dist/components/search/index.d.ts +11 -11
  25. package/dist/components/search-doc-result/OSearchDocResult.vue.d.ts +3 -3
  26. package/dist/components/search-doc-result/index.d.ts +8 -8
  27. package/dist/components/search-result/OSearchResult.vue.d.ts +2 -2
  28. package/dist/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
  29. package/dist/components/search-result/index.d.ts +31 -31
  30. package/dist/components/sig/index.d.ts +15 -15
  31. package/dist/components/summit/index.d.ts +12 -12
  32. package/dist/components/user-center/index.d.ts +18 -18
  33. package/dist/components/video/index.d.ts +3 -3
  34. package/dist/components.cjs.js +44 -44
  35. package/dist/components.css +1 -1
  36. package/dist/components.es.js +9808 -10037
  37. package/dist/index.d.ts +0 -1
  38. package/dist/treeshaking/components/activity/index.d.ts +9 -9
  39. package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
  40. package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
  41. package/dist/treeshaking/components/article/OArticle.css +124 -18
  42. package/dist/treeshaking/components/article/OArticle.vue.d.ts +14 -196
  43. package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
  44. package/dist/treeshaking/components/article/OArticle.vue2.mjs +82 -48
  45. package/dist/treeshaking/components/article/index.d.ts +50 -151
  46. package/dist/treeshaking/components/article-anchor/OArticleAnchor.css +4 -4
  47. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.mjs +1 -1
  48. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue2.mjs +5 -4
  49. package/dist/treeshaking/components/article-anchor/index.d.ts +9 -9
  50. package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
  51. package/dist/treeshaking/components/banner/index.d.ts +6 -6
  52. package/dist/treeshaking/components/brand/index.d.ts +15 -15
  53. package/dist/treeshaking/components/events/index.d.ts +20 -20
  54. package/dist/treeshaking/components/footer/index.d.ts +3 -3
  55. package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
  56. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  57. package/dist/treeshaking/components/header/index.d.ts +28 -28
  58. package/dist/treeshaking/components/header-search/index.d.ts +13 -13
  59. package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
  60. package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +16 -7
  61. package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
  62. package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +36 -47
  63. package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
  64. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +261 -0
  65. package/dist/treeshaking/components/{article/components/DocTitle.vue.d.ts → markdown/components/MarkdownPageTitle.vue.d.ts} +5 -6
  66. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +7 -0
  67. package/dist/treeshaking/components/{article/components/DocTitle.vue2.mjs → markdown/components/MarkdownPageTitle.vue2.mjs} +80 -131
  68. package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +22 -22
  69. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +1 -1
  70. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +5 -11
  71. package/dist/treeshaking/components/markdown/index.d.ts +45 -13
  72. package/dist/treeshaking/components/markdown/replacer/h1.d.ts +11 -0
  73. package/dist/treeshaking/components/markdown/replacer/h1.mjs +29 -0
  74. package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  75. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  76. package/dist/treeshaking/components/meeting/index.d.ts +51 -51
  77. package/dist/treeshaking/components/org/index.d.ts +9 -9
  78. package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
  79. package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
  80. package/dist/treeshaking/components/search/index.d.ts +11 -11
  81. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
  82. package/dist/treeshaking/components/search-result/index.d.ts +31 -31
  83. package/dist/treeshaking/components/sig/index.d.ts +15 -15
  84. package/dist/treeshaking/components/summit/index.d.ts +12 -12
  85. package/dist/treeshaking/components/user-center/index.d.ts +18 -18
  86. package/dist/treeshaking/components/user-center/index.mjs +0 -2
  87. package/dist/treeshaking/components/video/index.d.ts +3 -3
  88. package/dist/treeshaking/index.d.ts +0 -1
  89. package/dist/treeshaking/index.mjs +0 -2
  90. package/package.json +4 -4
  91. package/dist/components/article/components/ArticleTitle.vue.d.ts +0 -22
  92. package/dist/components/article/components/DocTitle.vue.d.ts +0 -24
  93. package/dist/components/doc-layout/ODocLayout.vue.d.ts +0 -38
  94. package/dist/components/doc-layout/index.d.ts +0 -59
  95. package/dist/components/doc-layout/types.d.ts +0 -23
  96. package/dist/treeshaking/_virtual/icon-menu-fold.mjs +0 -20
  97. package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +0 -20
  98. package/dist/treeshaking/components/article/components/ArticleTitle.css +0 -123
  99. package/dist/treeshaking/components/article/components/ArticleTitle.vue.d.ts +0 -22
  100. package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +0 -7
  101. package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +0 -97
  102. package/dist/treeshaking/components/article/components/DocTitle.css +0 -246
  103. package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +0 -7
  104. package/dist/treeshaking/components/doc-layout/ODocLayout.css +0 -271
  105. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +0 -38
  106. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +0 -7
  107. package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +0 -165
  108. package/dist/treeshaking/components/doc-layout/index.d.ts +0 -59
  109. package/dist/treeshaking/components/doc-layout/index.mjs +0 -9
@@ -1,97 +0,0 @@
1
- import { defineComponent, useCssVars, computed, openBlock, createElementBlock, toDisplayString, withDirectives, unref, createBlock, withCtx, createTextVNode, createCommentVNode, Fragment, renderList } from "vue";
2
- import { OTag, ODivider } from "@opensig/opendesign";
3
- import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
4
- import { useI18n } from "../../../i18n/index.mjs";
5
- const _hoisted_1 = { class: "o-article__header" };
6
- const _hoisted_2 = {
7
- key: 0,
8
- class: "o-article__title"
9
- };
10
- const _hoisted_3 = {
11
- key: 1,
12
- class: "o-article__title __mounted"
13
- };
14
- const _hoisted_4 = {
15
- key: 2,
16
- class: "o-article__meta"
17
- };
18
- const _hoisted_5 = {
19
- key: 0,
20
- class: "o-article__tags"
21
- };
22
- const _hoisted_6 = {
23
- key: 1,
24
- class: "o-article__update-time"
25
- };
26
- const _sfc_main = /* @__PURE__ */ defineComponent({
27
- __name: "ArticleTitle",
28
- props: {
29
- title: {},
30
- el: {},
31
- headerBg: {},
32
- tags: { default: () => [] },
33
- community: {},
34
- updateTime: {},
35
- radius: { default: "var(--o-radius-xs)" }
36
- },
37
- setup(__props) {
38
- useCssVars((_ctx) => ({
39
- "v5804c76a": headerBgStyle.value
40
- }));
41
- const props = __props;
42
- const { t } = useI18n();
43
- const vDompurifyHtml = buildVueDompurifyHTMLDirective({
44
- default: {
45
- FORBID_ATTR: ["style"]
46
- }
47
- });
48
- const headerBgStyle = computed(() => props.headerBg ? `url(${props.headerBg})` : "none");
49
- return (_ctx, _cache) => {
50
- var _a;
51
- return openBlock(), createElementBlock("header", _hoisted_1, [
52
- __props.title ? (openBlock(), createElementBlock("h1", _hoisted_2, toDisplayString(__props.title), 1)) : withDirectives((openBlock(), createElementBlock("h1", _hoisted_3, null, 512)), [
53
- [unref(vDompurifyHtml), (_a = __props.el) == null ? void 0 : _a.outerHTML]
54
- ]),
55
- __props.tags.length || __props.updateTime || __props.community ? (openBlock(), createElementBlock("div", _hoisted_4, [
56
- __props.tags.length || __props.community ? (openBlock(), createElementBlock("div", _hoisted_5, [
57
- __props.community ? (openBlock(), createBlock(unref(OTag), {
58
- key: 0,
59
- class: "o-article__tag",
60
- size: "large",
61
- variant: "outline",
62
- round: __props.community === "MindSpore" ? "pill" : __props.radius
63
- }, {
64
- default: withCtx(() => [
65
- createTextVNode(toDisplayString(__props.community), 1)
66
- ]),
67
- _: 1
68
- }, 8, ["round"])) : createCommentVNode("", true),
69
- __props.community && __props.tags.length ? (openBlock(), createBlock(unref(ODivider), {
70
- key: 1,
71
- direction: "v",
72
- class: "o-article__tags-divider"
73
- })) : createCommentVNode("", true),
74
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tags, (tag) => {
75
- return openBlock(), createBlock(unref(OTag), {
76
- key: tag,
77
- class: "o-article__tag",
78
- size: "large",
79
- variant: "outline",
80
- round: __props.community === "MindSpore" ? "pill" : __props.radius
81
- }, {
82
- default: withCtx(() => [
83
- createTextVNode(toDisplayString(tag), 1)
84
- ]),
85
- _: 2
86
- }, 1032, ["round"]);
87
- }), 128))
88
- ])) : createCommentVNode("", true),
89
- __props.updateTime ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(unref(t)("md.updateTime")) + toDisplayString(__props.updateTime), 1)) : createCommentVNode("", true)
90
- ])) : createCommentVNode("", true)
91
- ]);
92
- };
93
- }
94
- });
95
- export {
96
- _sfc_main as default
97
- };
@@ -1,246 +0,0 @@
1
- .hover-icon-rotate .o-icon[data-v-ea84d56c] {
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-ea84d56c] {
6
- transform: rotate(-180deg);
7
- }
8
- }
9
- .o-doc-title[data-v-ea84d56c] {
10
- align-items: center;
11
- justify-content: space-between;
12
- gap: 12px;
13
- padding: 16px;
14
- border-radius: var(--o-radius-xs);
15
- background-image: var(--bc7b9dec);
16
- background-position: 100% 100%;
17
- background-repeat: no-repeat;
18
- background-size: cover;
19
- }
20
- @media (max-width: 1680px) {
21
- .o-doc-title[data-v-ea84d56c] {
22
- gap: 8px;
23
- padding: 12px;
24
- }
25
- }
26
- @media (max-width: 1200px) {
27
- .o-doc-title[data-v-ea84d56c] {
28
- gap: 8px;
29
- padding: 8px;
30
- }
31
- }
32
- @media (max-width: 840px) {
33
- .o-doc-title[data-v-ea84d56c] {
34
- gap: 12px;
35
- padding: 16px;
36
- }
37
- }
38
- .o-doc-title .o-doc-title-content[data-v-ea84d56c] {
39
- display: flex;
40
- flex-direction: column;
41
- gap: 8px;
42
- min-width: 0;
43
- }
44
- .o-doc-title .o-doc-title-text[data-v-ea84d56c] h1 {
45
- margin-top: 0;
46
- margin-bottom: 0;
47
- font-size: 32px;
48
- line-height: 44px;
49
- }
50
- @media (min-width: 1201px) and (max-width: 1680px) {
51
- .o-doc-title .o-doc-title-text[data-v-ea84d56c] h1 {
52
- font-size: 20px;
53
- line-height: 28px;
54
- }
55
- }
56
- @media (min-width: 841px) and (max-width: 1200px) {
57
- .o-doc-title .o-doc-title-text[data-v-ea84d56c] h1 {
58
- font-size: 20px;
59
- line-height: 28px;
60
- }
61
- }
62
- @media (min-width: 601px) and (max-width: 840px) {
63
- .o-doc-title .o-doc-title-text[data-v-ea84d56c] h1 {
64
- font-size: 18px;
65
- line-height: 26px;
66
- }
67
- }
68
- @media (max-width: 600px) {
69
- .o-doc-title .o-doc-title-text[data-v-ea84d56c] h1 {
70
- font-size: 16px;
71
- line-height: 24px;
72
- }
73
- }
74
- .o-doc-title .o-doc-title-actions[data-v-ea84d56c] {
75
- display: flex;
76
- align-items: center;
77
- justify-content: space-between;
78
- margin-top: 12px;
79
- }
80
- @media (max-width: 1680px) {
81
- .o-doc-title .o-doc-title-actions[data-v-ea84d56c] {
82
- margin-top: 8px;
83
- }
84
- }
85
- @media (max-width: 840px) {
86
- .o-doc-title .o-doc-title-actions[data-v-ea84d56c] {
87
- margin-top: 0;
88
- }
89
- }
90
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-more[data-v-ea84d56c] {
91
- font-size: 24px;
92
- color: var(--o-color-info2);
93
- }
94
- .o-doc-title .o-doc-title-actions .o-doc-title-source-code[data-v-ea84d56c] {
95
- font-size: 16px;
96
- line-height: 24px;
97
- }
98
- @media (min-width: 1201px) and (max-width: 1680px) {
99
- .o-doc-title .o-doc-title-actions .o-doc-title-source-code[data-v-ea84d56c] {
100
- font-size: 14px;
101
- line-height: 22px;
102
- }
103
- }
104
- @media (min-width: 841px) and (max-width: 1200px) {
105
- .o-doc-title .o-doc-title-actions .o-doc-title-source-code[data-v-ea84d56c] {
106
- font-size: 14px;
107
- line-height: 22px;
108
- }
109
- }
110
- @media (min-width: 601px) and (max-width: 840px) {
111
- .o-doc-title .o-doc-title-actions .o-doc-title-source-code[data-v-ea84d56c] {
112
- font-size: 14px;
113
- line-height: 22px;
114
- }
115
- }
116
- @media (max-width: 600px) {
117
- .o-doc-title .o-doc-title-actions .o-doc-title-source-code[data-v-ea84d56c] {
118
- font-size: 12px;
119
- line-height: 18px;
120
- }
121
- }
122
- .o-doc-title .o-doc-title-actions .o-doc-title-source-code[data-v-ea84d56c] .o-link-label {
123
- display: flex;
124
- align-items: center;
125
- }
126
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-outlink[data-v-ea84d56c] {
127
- font-size: 22px;
128
- line-height: 30px;
129
- }
130
- @media (min-width: 1201px) and (max-width: 1680px) {
131
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-outlink[data-v-ea84d56c] {
132
- font-size: 18px;
133
- line-height: 26px;
134
- }
135
- }
136
- @media (min-width: 841px) and (max-width: 1200px) {
137
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-outlink[data-v-ea84d56c] {
138
- font-size: 16px;
139
- line-height: 24px;
140
- }
141
- }
142
- @media (min-width: 601px) and (max-width: 840px) {
143
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-outlink[data-v-ea84d56c] {
144
- font-size: 16px;
145
- line-height: 24px;
146
- }
147
- }
148
- @media (max-width: 600px) {
149
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-outlink[data-v-ea84d56c] {
150
- font-size: 16px;
151
- line-height: 24px;
152
- }
153
- }
154
- .o-doc-title .o-doc-title-actions .o-doc-title-update-time[data-v-ea84d56c] {
155
- color: var(--o-color-info3);
156
- font-size: 14px;
157
- line-height: 22px;
158
- }
159
- @media (min-width: 1201px) and (max-width: 1680px) {
160
- .o-doc-title .o-doc-title-actions .o-doc-title-update-time[data-v-ea84d56c] {
161
- font-size: 14px;
162
- line-height: 18px;
163
- }
164
- }
165
- @media (min-width: 841px) and (max-width: 1200px) {
166
- .o-doc-title .o-doc-title-actions .o-doc-title-update-time[data-v-ea84d56c] {
167
- font-size: 12px;
168
- line-height: 18px;
169
- }
170
- }
171
- @media (min-width: 601px) and (max-width: 840px) {
172
- .o-doc-title .o-doc-title-actions .o-doc-title-update-time[data-v-ea84d56c] {
173
- font-size: 12px;
174
- line-height: 18px;
175
- }
176
- }
177
- @media (max-width: 600px) {
178
- .o-doc-title .o-doc-title-actions .o-doc-title-update-time[data-v-ea84d56c] {
179
- font-size: 12px;
180
- line-height: 18px;
181
- }
182
- }
183
- .o-doc-title .o-doc-title-actions .o-doc-title-actions-left[data-v-ea84d56c] {
184
- display: flex;
185
- align-items: center;
186
- gap: 12px;
187
- }
188
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-download[data-v-ea84d56c],
189
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-star[data-v-ea84d56c],
190
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-copy[data-v-ea84d56c] {
191
- font-size: 24px;
192
- cursor: pointer;
193
- }
194
- @media (hover: hover) {
195
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-download[data-v-ea84d56c]:hover,
196
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-star[data-v-ea84d56c]:hover,
197
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-copy[data-v-ea84d56c]:hover {
198
- color: var(--o-color-info1);
199
- }
200
- }
201
- @media (max-width: 1680px) {
202
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-download[data-v-ea84d56c],
203
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-star[data-v-ea84d56c],
204
- .o-doc-title .o-doc-title-actions .o-doc-title-icon-copy[data-v-ea84d56c] {
205
- font-size: 20px;
206
- }
207
- }
208
- .o-doc-title.is-simple[data-v-ea84d56c] {
209
- padding: 0;
210
- background-image: none;
211
- background-color: var(--o-color-fill2);
212
- }
213
- @media (max-width: 840px) {
214
- .o-doc-title.first-h1[data-v-ea84d56c] {
215
- display: flex;
216
- justify-content: space-between;
217
- align-items: center;
218
- }
219
- }
220
- .o-doc-title-dlg-action-box-container[data-v-ea84d56c] {
221
- display: flex;
222
- flex-wrap: wrap;
223
- justify-content: flex-start;
224
- column-gap: 8px;
225
- row-gap: 24px;
226
- }
227
- .o-doc-title-dlg-action-box-container .o-doc-title-dlg-action-box[data-v-ea84d56c] {
228
- flex: 0 0 calc(33.333% - 8px);
229
- align-items: center;
230
- display: flex;
231
- flex-direction: column;
232
- }
233
- .o-doc-title-dlg-action-box-container .o-doc-title-dlg-action-box-icon[data-v-ea84d56c] {
234
- display: flex;
235
- justify-content: center;
236
- align-items: center;
237
- width: 40px;
238
- height: 40px;
239
- background-color: var(--o-color-fill1);
240
- border-radius: 50%;
241
- font-size: 24px;
242
- }
243
- .o-doc-title-dlg-action-box-container .o-doc-title-dlg-action-box-label[data-v-ea84d56c] {
244
- margin-top: 8px;
245
- color: var(--o-color-info1);
246
- }
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./DocTitle.vue2.mjs";
2
- import './DocTitle.css';
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const DocTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ea84d56c"]]);
5
- export {
6
- DocTitle as default
7
- };
@@ -1,271 +0,0 @@
1
- .hover-icon-rotate .o-icon[data-v-6510bed3] {
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-6510bed3] {
6
- transform: rotate(-180deg);
7
- }
8
- }
9
- .o-doc-layout[data-v-6510bed3] {
10
- --o-doc-layout-screen-width: 100vw;
11
- --o-doc-layout-page-header-height: var(--layout-header-height);
12
- --o-doc-layout-height: calc(100vh - var(--o-doc-layout-page-header-height));
13
- --o-doc-layout-min-padding: 64px;
14
- --o-doc-layout-padding: max(calc(var(--o-doc-layout-min-padding) + (var(--o-doc-layout-screen-width) - 1920px) / 2), var(--o-doc-layout-min-padding));
15
- --o-doc-layout-gap: 40px;
16
- --o-doc-layout-header-height: 0px;
17
- --o-doc-layout-header-top: var(--o-doc-layout-page-header-height);
18
- --o-doc-layout-sider-content-width-default: 256px;
19
- --o-doc-layout-sider-content-width: var(--o-doc-layout-sider-content-width-default);
20
- --o-doc-layout-sider-padding-left: var(--o-doc-layout-padding);
21
- --o-doc-layout-sider-padding-right: 16px;
22
- --o-doc-layout-sider-padding-top: 16px;
23
- --o-doc-layout-sider-padding-bottom: 16px;
24
- --o-doc-layout-sider-width: calc(var(--o-doc-layout-padding) + var(--o-doc-layout-sider-content-width) + var(--o-doc-layout-sider-padding-right));
25
- --o-doc-layout-anchor-content-width: 272px;
26
- --o-doc-layout-anchor-padding-top: 52px;
27
- --o-doc-layout-anchor-top: calc(var(--o-doc-layout-page-header-height) + var(--o-doc-layout-anchor-padding-top));
28
- --o-doc-layout-anchor-right: var(--o-doc-layout-padding);
29
- --o-doc-layout-float-z-index: 36;
30
- --o-doc-layout-float-bottom: 220px;
31
- --o-doc-layout-float-content-width: 48px;
32
- --o-doc-layout-float-right: calc(
33
- var(--o-doc-layout-padding) +
34
- max(var(--o-doc-layout-anchor-content-width), var(--o-doc-layout-float-content-width)) - var(--o-doc-layout-float-content-width)
35
- );
36
- --o-doc-layout-content-padding-top: var(--o-doc-layout-header-height);
37
- --o-doc-layout-content-padding-left: calc(var(--o-doc-layout-sider-width) + var(--o-doc-layout-gap));
38
- --o-doc-layout-content-padding-right: calc(
39
- max(var(--o-doc-layout-anchor-content-width), var(--o-doc-layout-float-content-width)) + var(--o-doc-layout-gap) + var(--o-doc-layout-padding)
40
- );
41
- --o-doc-layout-opener-width: 9px;
42
- --o-doc-layout-opener-height: 60px;
43
- --o-doc-layout-opener-radius: 0 8px 8px 0;
44
- --o-doc-layout-opener-left: var(--o-doc-layout-sider-width);
45
- }
46
- @media (max-width: 1680px) {
47
- .o-doc-layout[data-v-6510bed3] {
48
- --o-doc-layout-min-padding: 40px;
49
- --o-doc-layout-gap: 24px;
50
- --o-doc-layout-sider-content-width-default: 196px;
51
- --o-doc-layout-sider-padding-right: 12px;
52
- --o-doc-layout-anchor-content-width: 208px;
53
- --o-doc-layout-anchor-padding-top: 48px;
54
- }
55
- }
56
- @media (max-width: 1200px) {
57
- .o-doc-layout[data-v-6510bed3] {
58
- --o-doc-layout-min-padding: 32px;
59
- --o-doc-layout-gap: 16px;
60
- --o-doc-layout-sider-content-width-default: 222px;
61
- --o-doc-layout-anchor-content-width: 40px;
62
- --o-doc-layout-anchor-padding-top: 42px;
63
- --o-doc-layout-content-padding-left: var(--o-doc-layout-padding);
64
- --o-doc-layout-float-right: 32px;
65
- }
66
- }
67
- @media (max-width: 840px) {
68
- .o-doc-layout[data-v-6510bed3] {
69
- --o-doc-layout-gap: 16px;
70
- --o-doc-layout-header-height: 48px;
71
- --o-doc-layout-sider-content-width-default: 222px;
72
- --o-doc-layout-anchor-content-width: 0px;
73
- --o-doc-layout-content-padding-right: var(--o-doc-layout-padding);
74
- }
75
- }
76
- @media (max-width: 600px) {
77
- .o-doc-layout[data-v-6510bed3] {
78
- --o-doc-layout-min-padding: 24px;
79
- --o-doc-layout-sider-padding-top: 12px;
80
- --o-doc-layout-sider-padding-right: 8px;
81
- --o-doc-layout-float-right: 24px;
82
- }
83
- }
84
- .o-doc-layout[data-v-6510bed3]:not(.has-right) {
85
- --o-doc-layout-anchor-content-width: 0px;
86
- }
87
- .o-doc-layout .o-doc-layout-container[data-v-6510bed3] {
88
- height: var(--o-doc-layout-height);
89
- }
90
- .o-doc-layout .o-doc-layout-header[data-v-6510bed3] {
91
- position: fixed;
92
- top: var(--o-doc-layout-header-top);
93
- left: 0;
94
- right: 0;
95
- height: var(--o-doc-layout-header-height);
96
- z-index: 36;
97
- display: flex;
98
- align-items: center;
99
- justify-content: space-between;
100
- padding: 0 var(--o-doc-layout-padding);
101
- background-color: var(--o-color-fill2);
102
- box-shadow: var(--o-shadow-1);
103
- }
104
- .o-doc-layout .o-doc-layout-header-toggle[data-v-6510bed3] {
105
- display: inline-flex;
106
- align-items: center;
107
- justify-content: center;
108
- width: 32px;
109
- height: 32px;
110
- padding: 0;
111
- border: none;
112
- background: none;
113
- color: var(--o-color-info1);
114
- cursor: pointer;
115
- }
116
- .o-doc-layout .o-doc-layout-header-toggle svg[data-v-6510bed3] {
117
- width: 24px;
118
- height: 24px;
119
- }
120
- .o-doc-layout .o-doc-layout-content[data-v-6510bed3] {
121
- padding-top: var(--o-doc-layout-content-padding-top);
122
- padding-left: var(--o-doc-layout-content-padding-left);
123
- padding-right: var(--o-doc-layout-content-padding-right);
124
- transition: padding-left 0.3s;
125
- }
126
- .o-doc-layout .o-doc-layout-left[data-v-6510bed3] {
127
- box-sizing: content-box;
128
- position: fixed;
129
- top: var(--o-doc-layout-page-header-height);
130
- left: 0;
131
- bottom: 0;
132
- width: var(--o-doc-layout-sider-content-width);
133
- padding-left: var(--o-doc-layout-sider-padding-left);
134
- padding-right: var(--o-doc-layout-sider-padding-right);
135
- padding-top: var(--o-doc-layout-sider-padding-top);
136
- padding-bottom: var(--o-doc-layout-sider-padding-bottom);
137
- background-color: rgba(var(--o-brand-6), 0.03);
138
- z-index: 35;
139
- transition: transform 0.3s;
140
- }
141
- .o-doc-layout .o-doc-layout-right[data-v-6510bed3] {
142
- position: fixed;
143
- top: var(--o-doc-layout-anchor-top);
144
- right: var(--o-doc-layout-anchor-right);
145
- width: var(--o-doc-layout-anchor-content-width);
146
- }
147
- .o-doc-layout .o-doc-layout-float[data-v-6510bed3] {
148
- position: fixed;
149
- right: var(--o-doc-layout-float-right);
150
- bottom: var(--o-doc-layout-float-bottom);
151
- z-index: var(--o-doc-layout-float-z-index);
152
- }
153
- .o-doc-layout .o-doc-layout-mask[data-v-6510bed3] {
154
- position: fixed;
155
- inset: 0;
156
- z-index: 34;
157
- background-color: var(--o-color-mask1);
158
- opacity: 0;
159
- pointer-events: none;
160
- transition: opacity 0.3s;
161
- }
162
- .o-doc-layout .o-doc-layout-opener[data-v-6510bed3] {
163
- position: fixed;
164
- top: 50%;
165
- left: var(--o-doc-layout-opener-left);
166
- transform: translateY(-50%);
167
- z-index: 36;
168
- display: flex;
169
- align-items: center;
170
- justify-content: center;
171
- box-sizing: border-box;
172
- width: var(--o-doc-layout-opener-width);
173
- height: var(--o-doc-layout-opener-height);
174
- background-color: rgba(var(--o-brand-6), 0.03);
175
- border-top: 1px solid var(--o-color-control4);
176
- border-right: 1px solid var(--o-color-control4);
177
- border-bottom: 1px solid var(--o-color-control4);
178
- border-left: none;
179
- border-radius: var(--o-doc-layout-opener-radius);
180
- cursor: pointer;
181
- transition: transform 0.3s, box-shadow 0.3s;
182
- }
183
- .o-doc-layout .o-doc-layout-opener[data-v-6510bed3]::before, .o-doc-layout .o-doc-layout-opener[data-v-6510bed3]::after {
184
- content: "";
185
- position: absolute;
186
- left: 0;
187
- width: 1px;
188
- background-color: var(--o-color-control4);
189
- pointer-events: none;
190
- transition: opacity 0.3s;
191
- }
192
- .o-doc-layout .o-doc-layout-opener[data-v-6510bed3]::before {
193
- bottom: 100%;
194
- height: 100vh;
195
- }
196
- .o-doc-layout .o-doc-layout-opener[data-v-6510bed3]::after {
197
- top: 100%;
198
- height: 100vh;
199
- }
200
- .o-doc-layout .o-doc-layout-opener .o-doc-layout-opener-thumb[data-v-6510bed3] {
201
- width: 2px;
202
- height: 24px;
203
- border-radius: 2px;
204
- background-color: var(--o-color-info4);
205
- transition: background-color 0.3s;
206
- }
207
- .o-doc-layout .o-doc-layout-opener:hover .o-doc-layout-opener-thumb[data-v-6510bed3] {
208
- background-color: var(--o-color-primary1);
209
- }
210
- .o-doc-layout .o-doc-layout-resizer[data-v-6510bed3] {
211
- position: fixed;
212
- top: var(--o-doc-layout-page-header-height);
213
- bottom: 0;
214
- left: calc(var(--o-doc-layout-opener-left) - 4px);
215
- width: 8px;
216
- z-index: 35;
217
- cursor: ew-resize;
218
- touch-action: none;
219
- user-select: none;
220
- -webkit-user-select: none;
221
- transition: transform 0.3s;
222
- }
223
- .o-doc-layout.is-collapsed .o-doc-layout-left[data-v-6510bed3] {
224
- transform: translateX(-100%);
225
- }
226
- .o-doc-layout.is-collapsed .o-doc-layout-content[data-v-6510bed3] {
227
- padding-left: var(--o-doc-layout-padding);
228
- }
229
- .o-doc-layout.is-collapsed .o-doc-layout-mask[data-v-6510bed3] {
230
- opacity: 0;
231
- pointer-events: none;
232
- }
233
- .o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-6510bed3] {
234
- transform: translateY(-50%) translateX(calc(-1 * var(--o-doc-layout-opener-left)));
235
- box-shadow: var(--o-shadow-2);
236
- }
237
- .o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-6510bed3]::before, .o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-6510bed3]::after {
238
- opacity: 0;
239
- }
240
- .o-doc-layout.is-collapsed .o-doc-layout-resizer[data-v-6510bed3] {
241
- transform: translateX(calc(4px - var(--o-doc-layout-opener-left)));
242
- }
243
- .o-doc-layout.is-resizing .o-doc-layout-left[data-v-6510bed3],
244
- .o-doc-layout.is-resizing .o-doc-layout-content[data-v-6510bed3],
245
- .o-doc-layout.is-resizing .o-doc-layout-opener[data-v-6510bed3],
246
- .o-doc-layout.is-resizing .o-doc-layout-resizer[data-v-6510bed3] {
247
- transition: none;
248
- }
249
- @media (max-width: 1200px) {
250
- .o-doc-layout .o-doc-layout-left[data-v-6510bed3] {
251
- background-color: var(--o-color-fill2);
252
- background-image: linear-gradient(rgba(var(--o-brand-6), 0.03), rgba(var(--o-brand-6), 0.03));
253
- }
254
- .o-doc-layout .o-doc-layout-mask[data-v-6510bed3] {
255
- opacity: 1;
256
- pointer-events: auto;
257
- }
258
- .o-doc-layout .o-doc-layout-opener[data-v-6510bed3] {
259
- background-color: var(--o-color-fill2);
260
- background-image: linear-gradient(rgba(var(--o-brand-6), 0.03), rgba(var(--o-brand-6), 0.03));
261
- }
262
- }
263
- @media (max-width: 840px) {
264
- .o-doc-layout .o-doc-layout-left[data-v-6510bed3] {
265
- top: calc(var(--o-doc-layout-page-header-height) + var(--o-doc-layout-header-height));
266
- }
267
- .o-doc-layout .o-doc-layout-opener[data-v-6510bed3],
268
- .o-doc-layout .o-doc-layout-resizer[data-v-6510bed3] {
269
- display: none;
270
- }
271
- }
@@ -1,38 +0,0 @@
1
- type __VLS_Props = {
2
- collapsed?: boolean;
3
- hasRight?: boolean;
4
- hasFloat?: boolean;
5
- };
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- 'header-title'?(_: {}): any;
10
- 'header-right'?(_: {}): any;
11
- left?(_: {}): any;
12
- content?(_: {}): any;
13
- right?(_: {}): any;
14
- float?(_: {}): any;
15
- };
16
- refs: {
17
- containerRef: HTMLDivElement;
18
- };
19
- rootEl: HTMLDivElement;
20
- };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
- "update:collapsed": (value: boolean) => any;
24
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
26
- }>, {
27
- hasRight: boolean;
28
- hasFloat: boolean;
29
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
- containerRef: HTMLDivElement;
31
- }, HTMLDivElement>;
32
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
- export default _default;
34
- type __VLS_WithTemplateSlots<T, S> = T & {
35
- new (): {
36
- $slots: S;
37
- };
38
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./ODocLayout.vue2.mjs";
2
- import './ODocLayout.css';
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _ODocLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6510bed3"]]);
5
- export {
6
- _ODocLayout as default
7
- };