@opendesign-plus-test/components 0.0.1-rc.279 → 0.0.1-rc.280

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 (28) hide show
  1. package/dist/components/article-anchor/OArticleAnchor.vue.d.ts +176 -0
  2. package/dist/components/article-anchor/index.d.ts +176 -0
  3. package/dist/components/doc-layout/ODocLayout.vue.d.ts +5 -2
  4. package/dist/components/doc-layout/index.d.ts +1 -0
  5. package/dist/components.cjs.js +4 -4
  6. package/dist/components.css +1 -1
  7. package/dist/components.es.js +1665 -1630
  8. package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
  9. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.d.ts +176 -0
  10. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +46 -19
  11. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css +37 -0
  12. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
  13. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +1 -1
  14. package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_7fff2dcb_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css} +10 -13
  15. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
  16. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +1 -1
  17. package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_c895f349_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css} +12 -18
  18. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.mjs +2 -2
  19. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.vue_vue_type_script_setup_true_lang.mjs +4 -4
  20. package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPc.vue_vue_type_style_index_0_scoped_a480e4e7_lang.css → ArticleAnchorPc.vue_vue_type_style_index_0_scoped_2f93d5ed_lang.css} +13 -13
  21. package/dist/treeshaking/components/article-anchor/index.d.ts +176 -0
  22. package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
  23. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +5 -2
  24. package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +33 -7
  25. package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_b4aff4ce_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_5403350d_lang.css} +63 -51
  26. package/dist/treeshaking/components/doc-layout/index.d.ts +1 -0
  27. package/package.json +1 -1
  28. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_dcc5e0d5_lang.css +0 -18
@@ -1,6 +1,6 @@
1
1
  import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import OArticleAnchor_vue_vue_type_script_setup_true_lang_default from "./OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs";
3
- import './OArticleAnchor.vue_vue_type_style_index_0_scoped_dcc5e0d5_lang.css';
3
+ import './OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css';
4
4
  // src/components/article-anchor/OArticleAnchor.vue
5
- var OArticleAnchor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticleAnchor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-dcc5e0d5"]]);
5
+ var OArticleAnchor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticleAnchor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-4f5aa268"]]);
6
6
  export { OArticleAnchor_default as default };
@@ -24,6 +24,182 @@ declare const _default: import('vue').DefineComponent<ArticleAnchorPropsT, {
24
24
  pcSlotRef: HTMLDivElement;
25
25
  padSlotRef: HTMLDivElement;
26
26
  hiddenSlotRef: HTMLDivElement;
27
+ scrollerRef: ({
28
+ $: import('vue').ComponentInternalInstance;
29
+ $data: {};
30
+ $props: Partial<{
31
+ size: "medium" | "small";
32
+ duration: number;
33
+ disabledX: boolean;
34
+ disabledY: boolean;
35
+ showType: "auto" | "always" | "never" | "hover";
36
+ autoUpdateOnScrollSize: boolean;
37
+ }> & Omit<{
38
+ readonly size: "small" | "medium";
39
+ readonly duration: number;
40
+ readonly disabledX: boolean;
41
+ readonly disabledY: boolean;
42
+ readonly showType: "auto" | "hover" | "always" | "never";
43
+ readonly autoUpdateOnScrollSize: boolean;
44
+ readonly wrapClass?: string | {
45
+ [k: string]: boolean;
46
+ } | (string | {
47
+ [k: string]: boolean;
48
+ })[] | undefined;
49
+ readonly barClass?: string | {
50
+ [k: string]: boolean;
51
+ } | (string | {
52
+ [k: string]: boolean;
53
+ })[] | undefined;
54
+ readonly onScroll?: ((event: Event) => any) | undefined | undefined;
55
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
56
+ $attrs: import('vue').Attrs;
57
+ $refs: {
58
+ [x: string]: unknown;
59
+ } & {
60
+ targetRef: HTMLDivElement;
61
+ };
62
+ $slots: Readonly<{
63
+ [name: string]: import('vue').Slot<any> | undefined;
64
+ }>;
65
+ $root: import('vue').ComponentPublicInstance | null;
66
+ $parent: import('vue').ComponentPublicInstance | null;
67
+ $host: Element | null;
68
+ $emit: (event: "scroll", event: Event) => void;
69
+ $el: HTMLDivElement;
70
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
71
+ wrapClass: {
72
+ type: import('vue').PropType<string | {
73
+ [k: string]: boolean;
74
+ } | Array<{
75
+ [k: string]: boolean;
76
+ } | string>>;
77
+ };
78
+ disabledX: {
79
+ type: BooleanConstructor;
80
+ required: false;
81
+ };
82
+ disabledY: {
83
+ type: BooleanConstructor;
84
+ };
85
+ duration: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ showType: {
90
+ type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
91
+ default: string;
92
+ };
93
+ size: {
94
+ type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
95
+ default: string;
96
+ };
97
+ autoUpdateOnScrollSize: {
98
+ type: BooleanConstructor;
99
+ };
100
+ barClass: {
101
+ type: import('vue').PropType<string | {
102
+ [k: string]: boolean;
103
+ } | Array<{
104
+ [k: string]: boolean;
105
+ } | string>>;
106
+ };
107
+ }>> & Readonly<{
108
+ onScroll?: ((event: Event) => any) | undefined;
109
+ }>, {
110
+ scrollTo: (options?: ScrollToOptions | undefined) => void;
111
+ scrollBy: (options?: ScrollToOptions | undefined) => void;
112
+ getContainerEl(): HTMLElement | null;
113
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
114
+ scroll: (event: Event) => any;
115
+ }, string, {
116
+ size: "medium" | "small";
117
+ duration: number;
118
+ disabledX: boolean;
119
+ disabledY: boolean;
120
+ showType: "auto" | "always" | "never" | "hover";
121
+ autoUpdateOnScrollSize: boolean;
122
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
123
+ beforeCreate?: (() => void) | (() => void)[];
124
+ created?: (() => void) | (() => void)[];
125
+ beforeMount?: (() => void) | (() => void)[];
126
+ mounted?: (() => void) | (() => void)[];
127
+ beforeUpdate?: (() => void) | (() => void)[];
128
+ updated?: (() => void) | (() => void)[];
129
+ activated?: (() => void) | (() => void)[];
130
+ deactivated?: (() => void) | (() => void)[];
131
+ beforeDestroy?: (() => void) | (() => void)[];
132
+ beforeUnmount?: (() => void) | (() => void)[];
133
+ destroyed?: (() => void) | (() => void)[];
134
+ unmounted?: (() => void) | (() => void)[];
135
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
136
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
137
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
138
+ };
139
+ $forceUpdate: () => void;
140
+ $nextTick: typeof import('vue').nextTick;
141
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
142
+ } & Readonly<{
143
+ size: "medium" | "small";
144
+ duration: number;
145
+ disabledX: boolean;
146
+ disabledY: boolean;
147
+ showType: "auto" | "always" | "never" | "hover";
148
+ autoUpdateOnScrollSize: boolean;
149
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
150
+ wrapClass: {
151
+ type: import('vue').PropType<string | {
152
+ [k: string]: boolean;
153
+ } | Array<{
154
+ [k: string]: boolean;
155
+ } | string>>;
156
+ };
157
+ disabledX: {
158
+ type: BooleanConstructor;
159
+ required: false;
160
+ };
161
+ disabledY: {
162
+ type: BooleanConstructor;
163
+ };
164
+ duration: {
165
+ type: NumberConstructor;
166
+ default: number;
167
+ };
168
+ showType: {
169
+ type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
170
+ default: string;
171
+ };
172
+ size: {
173
+ type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
174
+ default: string;
175
+ };
176
+ autoUpdateOnScrollSize: {
177
+ type: BooleanConstructor;
178
+ };
179
+ barClass: {
180
+ type: import('vue').PropType<string | {
181
+ [k: string]: boolean;
182
+ } | Array<{
183
+ [k: string]: boolean;
184
+ } | string>>;
185
+ };
186
+ }>> & Readonly<{
187
+ onScroll?: ((event: Event) => any) | undefined;
188
+ }>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
189
+ scrollTo: (options?: ScrollToOptions | undefined) => void;
190
+ scrollBy: (options?: ScrollToOptions | undefined) => void;
191
+ getContainerEl: () => HTMLElement | null;
192
+ } & {} & import('vue').ComponentCustomProperties & {} & {
193
+ $slots: Readonly<{
194
+ default?(): any;
195
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
196
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
197
+ }> & {
198
+ default?(): any;
199
+ thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
200
+ track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
201
+ };
202
+ }) | null;
27
203
  anchorRef: ({
28
204
  $: import('vue').ComponentInternalInstance;
29
205
  $data: {};
@@ -4,11 +4,11 @@ import ArticleAnchorPc_default from "./components/ArticleAnchorPc.mjs";
4
4
  import ArticleAnchorPad_default from "./components/ArticleAnchorPad.mjs";
5
5
  import ArticleAnchorMobile_default from "./components/ArticleAnchorMobile.mjs";
6
6
  import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, onBeforeUnmount, onMounted, openBlock, ref, unref, watch, withCtx } from "vue";
7
- import { OAnchor } from "@opensig/opendesign";
7
+ import { OAnchor, OScroller } from "@opensig/opendesign";
8
8
  // src/components/article-anchor/OArticleAnchor.vue?vue&type=script&setup=true&lang.ts
9
9
  var _hoisted_1 = {
10
10
  key: 0,
11
- class: "o-article-anchor-root"
11
+ class: "o-article-anchor"
12
12
  };
13
13
  var _hoisted_2 = { class: "o-article-anchor__body" };
14
14
  var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
@@ -62,6 +62,23 @@ var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
62
62
  };
63
63
  const onAnchorChange = (link) => {
64
64
  emit("change", link);
65
+ scrollActiveIntoView(link);
66
+ };
67
+ /** 限高滚动时,激活项若未完整显示在滚动容器内,最小滚动量补全 */
68
+ const scrollActiveIntoView = (link) => {
69
+ const containerEl = (scrollerRef.value?.$el)?.querySelector(".o-scroller-container");
70
+ if (!containerEl || containerEl.scrollHeight <= containerEl.clientHeight) return;
71
+ const displayHref = [...hrefAliasMap.value.entries()].find(([, v]) => v === link)?.[0] ?? link;
72
+ const item = containerEl.querySelector(`a[href="${CSS.escape(displayHref)}"]`);
73
+ if (!item) return;
74
+ const cRect = containerEl.getBoundingClientRect();
75
+ const eRect = item.getBoundingClientRect();
76
+ if (eRect.top >= cRect.top && eRect.bottom <= cRect.bottom) return;
77
+ const delta = eRect.top < cRect.top ? eRect.top - cRect.top : eRect.bottom - cRect.bottom;
78
+ containerEl.scrollTo({
79
+ top: containerEl.scrollTop + delta,
80
+ behavior: "smooth"
81
+ });
65
82
  };
66
83
  /** hash 别名映射:href 为展示地址(如 #a),observeHref 为实际目标(如 #user-content-a) */
67
84
  const hrefAliasMap = computed(() => {
@@ -98,6 +115,7 @@ var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
98
115
  const padSlotRef = ref();
99
116
  const hiddenSlotRef = ref();
100
117
  const anchorRef = ref();
118
+ const scrollerRef = ref();
101
119
  const teleportTarget = computed(() => {
102
120
  if (props.size === "pc") return pcSlotRef.value;
103
121
  if (props.size === "pad" && expanded.value) return padSlotRef.value;
@@ -279,26 +297,35 @@ var OArticleAnchor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
279
297
  (openBlock(), createBlock(Teleport, {
280
298
  to: teleportTarget.value,
281
299
  disabled: !teleportTarget.value
282
- }, [createElementVNode("div", _hoisted_2, [createVNode(unref(OAnchor), {
283
- ref_key: "anchorRef",
284
- ref: anchorRef,
285
- layout: "v",
300
+ }, [createElementVNode("div", _hoisted_2, [createVNode(unref(OScroller), {
301
+ ref_key: "scrollerRef",
302
+ ref: scrollerRef,
286
303
  size: "small",
287
- container: __props.container,
288
- "target-offset": __props.targetOffset,
289
- bounds: __props.bounds,
290
- "change-hash": __props.changeHash,
291
- onChange: onAnchorChange,
292
- onClick: onAnchorClick
304
+ "show-type": "auto",
305
+ "disabled-x": ""
293
306
  }, {
294
- default: withCtx(() => [createVNode(ArticleAnchorItems_default, { items: items.value }, null, 8, ["items"])]),
307
+ default: withCtx(() => [createVNode(unref(OAnchor), {
308
+ ref_key: "anchorRef",
309
+ ref: anchorRef,
310
+ layout: "v",
311
+ size: "small",
312
+ container: __props.container,
313
+ "target-offset": __props.targetOffset,
314
+ bounds: __props.bounds,
315
+ "change-hash": __props.changeHash,
316
+ onChange: onAnchorChange,
317
+ onClick: onAnchorClick
318
+ }, {
319
+ default: withCtx(() => [createVNode(ArticleAnchorItems_default, { items: items.value }, null, 8, ["items"])]),
320
+ _: 1
321
+ }, 8, [
322
+ "container",
323
+ "target-offset",
324
+ "bounds",
325
+ "change-hash"
326
+ ])]),
295
327
  _: 1
296
- }, 8, [
297
- "container",
298
- "target-offset",
299
- "bounds",
300
- "change-hash"
301
- ])])], 8, ["to", "disabled"]))
328
+ }, 512)])], 8, ["to", "disabled"]))
302
329
  ])) : createCommentVNode("", true);
303
330
  };
304
331
  }
@@ -0,0 +1,37 @@
1
+ .hover-icon-rotate .o-icon[data-v-4f5aa268] {
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-4f5aa268] {
6
+ transform: rotate(-180deg);
7
+ }
8
+ }
9
+ .o-article-anchor[data-v-4f5aa268] {
10
+ --o-article-height: var(--o-doc-layout-anchor-max-height, 70vh);
11
+ }
12
+ .o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller {
13
+ max-height: calc(var(--o-article-height) - 86px);
14
+ }
15
+ @media (max-width: 1680px) {
16
+ .o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller {
17
+ max-height: calc(var(--o-article-height) - 62px);
18
+ }
19
+ }
20
+ @media (max-width: 1200px) {
21
+ .o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller {
22
+ max-height: calc(var(--o-article-height) - 66px);
23
+ }
24
+ }
25
+ .o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-scroller .o-scrollbar {
26
+ --scrollbar-y-right: -6px;
27
+ }
28
+ .o-article-anchor .o-article-anchor__body[data-v-4f5aa268] .o-anchor {
29
+ --anchor-item-link-color: var(--o-color-info2);
30
+ --anchor-item-link-color-active: var(--o-color-primary1);
31
+ --anchor-item-link-color-hover: var(--o-color-primary2);
32
+ --anchor-item-link-color-press: var(--o-color-primary3);
33
+ --anchor-line-bg-color: var(--o-color-control4);
34
+ }
35
+ .o-article-anchor .o-article-anchor--hidden[data-v-4f5aa268] {
36
+ display: none;
37
+ }
@@ -1,6 +1,6 @@
1
1
  import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default from "./ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs";
3
- import './ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_7fff2dcb_lang.css';
3
+ import './ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_3d9befab_lang.css';
4
4
  // src/components/article-anchor/components/ArticleAnchorMobile.vue
5
- var ArticleAnchorMobile_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7fff2dcb"]]);
5
+ var ArticleAnchorMobile_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3d9befab"]]);
6
6
  export { ArticleAnchorMobile_default as default };
@@ -22,7 +22,7 @@ var ArticleAnchorMobile_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
22
22
  "update:visible"
23
23
  ],
24
24
  setup(__props, { emit: __emit }) {
25
- useCssVars((_ctx) => ({ "b66b5630": _ctx.radius }));
25
+ useCssVars((_ctx) => ({ "d42f5bb8": _ctx.radius }));
26
26
  const props = __props;
27
27
  const emit = __emit;
28
28
  const visible = computed({
@@ -1,15 +1,15 @@
1
- .hover-icon-rotate .o-icon[data-v-7fff2dcb] {
1
+ .hover-icon-rotate .o-icon[data-v-3d9befab] {
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-7fff2dcb] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-3d9befab] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-article-anchor--mobile[data-v-7fff2dcb] {
10
- --o-article-anchor-radius: var(--b66b5630);
9
+ .o-article-anchor--mobile[data-v-3d9befab] {
10
+ --o-article-anchor-radius: var(--d42f5bb8);
11
11
  }
12
- .o-article-anchor--mobile__fab[data-v-7fff2dcb] {
12
+ .o-article-anchor--mobile__fab[data-v-3d9befab] {
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: center;
@@ -21,27 +21,24 @@
21
21
  border-radius: var(--o-article-anchor-radius);
22
22
  box-shadow: var(--o-shadow-2);
23
23
  }
24
- .o-article-anchor--mobile__fab-icon[data-v-7fff2dcb] {
24
+ .o-article-anchor--mobile__fab-icon[data-v-3d9befab] {
25
25
  font-size: 24px;
26
26
  color: var(--o-color-info2);
27
27
  line-height: 1;
28
28
  }
29
- .o-article-anchor--mobile__sheet-title[data-v-7fff2dcb] {
29
+ .o-article-anchor--mobile__sheet-title[data-v-3d9befab] {
30
30
  color: var(--o-color-info1);
31
31
  font-weight: 600;
32
32
  font-size: 18px;
33
33
  line-height: 26px;
34
34
  }
35
- .o-article-anchor--mobile__menu[data-v-7fff2dcb] {
35
+ .o-article-anchor--mobile__menu[data-v-3d9befab] {
36
36
  --menu-width: 100%;
37
37
  }
38
- .o-article-anchor--mobile__menu-sub[data-v-7fff2dcb] {
39
- padding-left: 16px;
40
- }
41
- .o-article-anchor--mobile__menu-item[data-v-7fff2dcb] {
38
+ .o-article-anchor--mobile__menu-item[data-v-3d9befab] {
42
39
  padding: 12px 16px;
43
40
  }
44
- .o-article-anchor--mobile__menu-subitem[data-v-7fff2dcb] {
41
+ .o-article-anchor--mobile__menu-subitem[data-v-3d9befab] {
45
42
  padding: 12px 16px;
46
43
  padding-left: 28px;
47
44
  }
@@ -1,6 +1,6 @@
1
1
  import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default from "./ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs";
3
- import './ArticleAnchorPad.vue_vue_type_style_index_0_scoped_c895f349_lang.css';
3
+ import './ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css';
4
4
  // src/components/article-anchor/components/ArticleAnchorPad.vue
5
- var ArticleAnchorPad_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c895f349"]]);
5
+ var ArticleAnchorPad_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-06601233"]]);
6
6
  export { ArticleAnchorPad_default as default };
@@ -22,7 +22,7 @@ var ArticleAnchorPad_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
22
22
  },
23
23
  emits: ["toggle", "close"],
24
24
  setup(__props, { emit: __emit }) {
25
- useCssVars((_ctx) => ({ "v73f8892b": _ctx.radius }));
25
+ useCssVars((_ctx) => ({ "v69110e6e": _ctx.radius }));
26
26
  const { t } = useI18n();
27
27
  const navTitle = computed(() => t("articleAnchor.navTitle"));
28
28
  const emit = __emit;
@@ -1,17 +1,17 @@
1
- .hover-icon-rotate .o-icon[data-v-c895f349] {
1
+ .hover-icon-rotate .o-icon[data-v-06601233] {
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-c895f349] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-06601233] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-article-anchor--pad[data-v-c895f349] {
9
+ .o-article-anchor--pad[data-v-06601233] {
10
10
  position: relative;
11
11
  display: inline-block;
12
- --o-article-anchor-radius: var(--v73f8892b);
12
+ --o-article-anchor-radius: var(--v69110e6e);
13
13
  }
14
- .o-article-anchor--pad__toggle[data-v-c895f349] {
14
+ .o-article-anchor--pad__toggle[data-v-06601233] {
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
  align-items: center;
@@ -25,21 +25,21 @@
25
25
  border-radius: var(--o-article-anchor-radius);
26
26
  box-shadow: var(--o-shadow-2);
27
27
  }
28
- .o-article-anchor--pad__toggle.hidden[data-v-c895f349] {
28
+ .o-article-anchor--pad__toggle.hidden[data-v-06601233] {
29
29
  opacity: 0;
30
30
  }
31
- .o-article-anchor--pad__toggle-icon[data-v-c895f349] {
31
+ .o-article-anchor--pad__toggle-icon[data-v-06601233] {
32
32
  font-size: 20px;
33
33
  color: var(--o-color-info1);
34
34
  }
35
- .o-article-anchor--pad__toggle-label[data-v-c895f349] {
35
+ .o-article-anchor--pad__toggle-label[data-v-06601233] {
36
36
  white-space: nowrap;
37
37
  overflow: hidden;
38
38
  text-overflow: ellipsis;
39
39
  font-size: 10px;
40
40
  line-height: 16px;
41
41
  }
42
- .o-article-anchor--pad__pop[data-v-c895f349] {
42
+ .o-article-anchor--pad__pop[data-v-06601233] {
43
43
  position: absolute;
44
44
  top: 0;
45
45
  right: 0;
@@ -50,7 +50,7 @@
50
50
  border-radius: var(--o-article-anchor-radius);
51
51
  box-shadow: var(--o-shadow-2);
52
52
  }
53
- .o-article-anchor--pad__pop-title[data-v-c895f349] {
53
+ .o-article-anchor--pad__pop-title[data-v-06601233] {
54
54
  display: flex;
55
55
  align-items: center;
56
56
  gap: 4px;
@@ -60,19 +60,13 @@
60
60
  font-size: 14px;
61
61
  line-height: 22px;
62
62
  }
63
- .o-article-anchor--pad__pop-title .o-article-anchor__icon[data-v-c895f349] {
64
- font-size: 22px;
65
- color: var(--o-color-info1);
66
- line-height: 1;
67
- flex-shrink: 0;
68
- }
69
- .o-article-anchor--pad__pop-title-text[data-v-c895f349] {
63
+ .o-article-anchor--pad__pop-title-text[data-v-06601233] {
70
64
  min-width: 0;
71
65
  overflow: hidden;
72
66
  text-overflow: ellipsis;
73
67
  white-space: nowrap;
74
68
  }
75
- .o-article-anchor--pad__pop-close[data-v-c895f349] {
69
+ .o-article-anchor--pad__pop-close[data-v-06601233] {
76
70
  margin-left: auto;
77
71
  font-size: 20px;
78
72
  color: var(--o-color-info2);
@@ -1,6 +1,6 @@
1
1
  import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import ArticleAnchorPc_vue_vue_type_script_setup_true_lang_default from "./ArticleAnchorPc.vue_vue_type_script_setup_true_lang.mjs";
3
- import './ArticleAnchorPc.vue_vue_type_style_index_0_scoped_a480e4e7_lang.css';
3
+ import './ArticleAnchorPc.vue_vue_type_style_index_0_scoped_2f93d5ed_lang.css';
4
4
  // src/components/article-anchor/components/ArticleAnchorPc.vue
5
- var ArticleAnchorPc_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorPc_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a480e4e7"]]);
5
+ var ArticleAnchorPc_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ArticleAnchorPc_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-2f93d5ed"]]);
6
6
  export { ArticleAnchorPc_default as default };
@@ -2,10 +2,10 @@ import icon_anchor_default from "../../../_virtual/~icons/components/icon-anchor
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, unref, useCssVars, withCtx } from "vue";
3
3
  import { OIcon } from "@opensig/opendesign";
4
4
  // src/components/article-anchor/components/ArticleAnchorPc.vue?vue&type=script&setup=true&lang.ts
5
- var _hoisted_1 = { class: "o-article-anchor" };
5
+ var _hoisted_1 = { class: "o-article-anchor--pc" };
6
6
  var _hoisted_2 = {
7
7
  key: 0,
8
- class: "o-article-anchor__title"
8
+ class: "o-article-anchor--pc__title"
9
9
  };
10
10
  var ArticleAnchorPc_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
11
11
  __name: "ArticleAnchorPc",
@@ -15,9 +15,9 @@ var ArticleAnchorPc_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
15
15
  radius: {}
16
16
  },
17
17
  setup(__props) {
18
- useCssVars((_ctx) => ({ "v1e4fd6d4": _ctx.radius }));
18
+ useCssVars((_ctx) => ({ "v21fb8474": _ctx.radius }));
19
19
  return (_ctx, _cache) => {
20
- return openBlock(), createElementBlock("div", _hoisted_1, [__props.showTitle ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(unref(OIcon), { class: "o-article-anchor__icon" }, {
20
+ return openBlock(), createElementBlock("div", _hoisted_1, [__props.showTitle ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(unref(OIcon), { class: "o-article-anchor--pc__icon" }, {
21
21
  default: withCtx(() => [createVNode(unref(icon_anchor_default))]),
22
22
  _: 1
23
23
  }), createElementVNode("span", null, toDisplayString(__props.title), 1)])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default", {}, void 0, true)]);
@@ -1,29 +1,29 @@
1
- .hover-icon-rotate .o-icon[data-v-a480e4e7] {
1
+ .hover-icon-rotate .o-icon[data-v-2f93d5ed] {
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-a480e4e7] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-2f93d5ed] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-article-anchor[data-v-a480e4e7] {
10
- --o-article-anchor-radius: var(--v1e4fd6d4);
9
+ .o-article-anchor--pc[data-v-2f93d5ed] {
10
+ --o-article-anchor-radius: var(--v21fb8474);
11
11
  background-color: rgba(var(--o-brand-6), 0.03);
12
12
  border-radius: var(--o-article-anchor-radius);
13
13
  padding: 24px 16px;
14
14
  height: fit-content;
15
15
  }
16
16
  @media (max-width: 1680px) {
17
- .o-article-anchor[data-v-a480e4e7] {
17
+ .o-article-anchor--pc[data-v-2f93d5ed] {
18
18
  padding: 16px 12px;
19
19
  }
20
20
  }
21
21
  @media (max-width: 840px) {
22
- .o-article-anchor[data-v-a480e4e7] {
22
+ .o-article-anchor--pc[data-v-2f93d5ed] {
23
23
  padding: 12px;
24
24
  }
25
25
  }
26
- .o-article-anchor__title[data-v-a480e4e7] {
26
+ .o-article-anchor--pc__title[data-v-2f93d5ed] {
27
27
  display: flex;
28
28
  align-items: center;
29
29
  gap: 4px;
@@ -34,35 +34,35 @@
34
34
  line-height: 22px;
35
35
  }
36
36
  @media (min-width: 1201px) and (max-width: 1680px) {
37
- .o-article-anchor__title[data-v-a480e4e7] {
37
+ .o-article-anchor--pc__title[data-v-2f93d5ed] {
38
38
  font-size: 14px;
39
39
  line-height: 18px;
40
40
  }
41
41
  }
42
42
  @media (min-width: 841px) and (max-width: 1200px) {
43
- .o-article-anchor__title[data-v-a480e4e7] {
43
+ .o-article-anchor--pc__title[data-v-2f93d5ed] {
44
44
  font-size: 12px;
45
45
  line-height: 18px;
46
46
  }
47
47
  }
48
48
  @media (min-width: 601px) and (max-width: 840px) {
49
- .o-article-anchor__title[data-v-a480e4e7] {
49
+ .o-article-anchor--pc__title[data-v-2f93d5ed] {
50
50
  font-size: 12px;
51
51
  line-height: 18px;
52
52
  }
53
53
  }
54
54
  @media (max-width: 600px) {
55
- .o-article-anchor__title[data-v-a480e4e7] {
55
+ .o-article-anchor--pc__title[data-v-2f93d5ed] {
56
56
  font-size: 12px;
57
57
  line-height: 18px;
58
58
  }
59
59
  }
60
60
  @media (max-width: 1680px) {
61
- .o-article-anchor__title[data-v-a480e4e7] {
61
+ .o-article-anchor--pc__title[data-v-2f93d5ed] {
62
62
  margin-bottom: 8px;
63
63
  }
64
64
  }
65
- .o-article-anchor__icon[data-v-a480e4e7] {
65
+ .o-article-anchor--pc__icon[data-v-2f93d5ed] {
66
66
  font-size: 22px;
67
67
  color: var(--o-color-info1);
68
68
  }