@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.
- package/dist/components/article-anchor/OArticleAnchor.vue.d.ts +176 -0
- package/dist/components/article-anchor/index.d.ts +176 -0
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +5 -2
- package/dist/components/doc-layout/index.d.ts +1 -0
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +1665 -1630
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.d.ts +176 -0
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +46 -19
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_4f5aa268_lang.css +37 -0
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +1 -1
- 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
- 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_c895f349_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_06601233_lang.css} +12 -18
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.vue_vue_type_script_setup_true_lang.mjs +4 -4
- 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
- package/dist/treeshaking/components/article-anchor/index.d.ts +176 -0
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +5 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +33 -7
- 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
- package/dist/treeshaking/components/doc-layout/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_style_index_0_scoped_dcc5e0d5_lang.css +0 -18
|
@@ -25,6 +25,182 @@ declare const OArticleAnchor: {
|
|
|
25
25
|
pcSlotRef: HTMLDivElement;
|
|
26
26
|
padSlotRef: HTMLDivElement;
|
|
27
27
|
hiddenSlotRef: HTMLDivElement;
|
|
28
|
+
scrollerRef: ({
|
|
29
|
+
$: import('vue').ComponentInternalInstance;
|
|
30
|
+
$data: {};
|
|
31
|
+
$props: Partial<{
|
|
32
|
+
size: "medium" | "small";
|
|
33
|
+
duration: number;
|
|
34
|
+
disabledX: boolean;
|
|
35
|
+
disabledY: boolean;
|
|
36
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
37
|
+
autoUpdateOnScrollSize: boolean;
|
|
38
|
+
}> & Omit<{
|
|
39
|
+
readonly size: "small" | "medium";
|
|
40
|
+
readonly duration: number;
|
|
41
|
+
readonly disabledX: boolean;
|
|
42
|
+
readonly disabledY: boolean;
|
|
43
|
+
readonly showType: "auto" | "hover" | "always" | "never";
|
|
44
|
+
readonly autoUpdateOnScrollSize: boolean;
|
|
45
|
+
readonly wrapClass?: string | {
|
|
46
|
+
[k: string]: boolean;
|
|
47
|
+
} | (string | {
|
|
48
|
+
[k: string]: boolean;
|
|
49
|
+
})[] | undefined;
|
|
50
|
+
readonly barClass?: string | {
|
|
51
|
+
[k: string]: boolean;
|
|
52
|
+
} | (string | {
|
|
53
|
+
[k: string]: boolean;
|
|
54
|
+
})[] | undefined;
|
|
55
|
+
readonly onScroll?: ((event: Event) => any) | undefined | undefined;
|
|
56
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
|
|
57
|
+
$attrs: import('vue').Attrs;
|
|
58
|
+
$refs: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
} & {
|
|
61
|
+
targetRef: HTMLDivElement;
|
|
62
|
+
};
|
|
63
|
+
$slots: Readonly<{
|
|
64
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
67
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
68
|
+
$host: Element | null;
|
|
69
|
+
$emit: (event: "scroll", event: Event) => void;
|
|
70
|
+
$el: HTMLDivElement;
|
|
71
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
72
|
+
wrapClass: {
|
|
73
|
+
type: import('vue').PropType<string | {
|
|
74
|
+
[k: string]: boolean;
|
|
75
|
+
} | Array<{
|
|
76
|
+
[k: string]: boolean;
|
|
77
|
+
} | string>>;
|
|
78
|
+
};
|
|
79
|
+
disabledX: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
disabledY: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
};
|
|
86
|
+
duration: {
|
|
87
|
+
type: NumberConstructor;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
showType: {
|
|
91
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
size: {
|
|
95
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
autoUpdateOnScrollSize: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
};
|
|
101
|
+
barClass: {
|
|
102
|
+
type: import('vue').PropType<string | {
|
|
103
|
+
[k: string]: boolean;
|
|
104
|
+
} | Array<{
|
|
105
|
+
[k: string]: boolean;
|
|
106
|
+
} | string>>;
|
|
107
|
+
};
|
|
108
|
+
}>> & Readonly<{
|
|
109
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
110
|
+
}>, {
|
|
111
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
112
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
113
|
+
getContainerEl(): HTMLElement | null;
|
|
114
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
115
|
+
scroll: (event: Event) => any;
|
|
116
|
+
}, string, {
|
|
117
|
+
size: "medium" | "small";
|
|
118
|
+
duration: number;
|
|
119
|
+
disabledX: boolean;
|
|
120
|
+
disabledY: boolean;
|
|
121
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
122
|
+
autoUpdateOnScrollSize: boolean;
|
|
123
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
124
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
125
|
+
created?: (() => void) | (() => void)[];
|
|
126
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
127
|
+
mounted?: (() => void) | (() => void)[];
|
|
128
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
129
|
+
updated?: (() => void) | (() => void)[];
|
|
130
|
+
activated?: (() => void) | (() => void)[];
|
|
131
|
+
deactivated?: (() => void) | (() => void)[];
|
|
132
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
133
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
134
|
+
destroyed?: (() => void) | (() => void)[];
|
|
135
|
+
unmounted?: (() => void) | (() => void)[];
|
|
136
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
137
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
138
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
139
|
+
};
|
|
140
|
+
$forceUpdate: () => void;
|
|
141
|
+
$nextTick: typeof import('vue').nextTick;
|
|
142
|
+
$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;
|
|
143
|
+
} & Readonly<{
|
|
144
|
+
size: "medium" | "small";
|
|
145
|
+
duration: number;
|
|
146
|
+
disabledX: boolean;
|
|
147
|
+
disabledY: boolean;
|
|
148
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
149
|
+
autoUpdateOnScrollSize: boolean;
|
|
150
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
151
|
+
wrapClass: {
|
|
152
|
+
type: import('vue').PropType<string | {
|
|
153
|
+
[k: string]: boolean;
|
|
154
|
+
} | Array<{
|
|
155
|
+
[k: string]: boolean;
|
|
156
|
+
} | string>>;
|
|
157
|
+
};
|
|
158
|
+
disabledX: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
required: false;
|
|
161
|
+
};
|
|
162
|
+
disabledY: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
};
|
|
165
|
+
duration: {
|
|
166
|
+
type: NumberConstructor;
|
|
167
|
+
default: number;
|
|
168
|
+
};
|
|
169
|
+
showType: {
|
|
170
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
size: {
|
|
174
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
autoUpdateOnScrollSize: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
};
|
|
180
|
+
barClass: {
|
|
181
|
+
type: import('vue').PropType<string | {
|
|
182
|
+
[k: string]: boolean;
|
|
183
|
+
} | Array<{
|
|
184
|
+
[k: string]: boolean;
|
|
185
|
+
} | string>>;
|
|
186
|
+
};
|
|
187
|
+
}>> & Readonly<{
|
|
188
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
189
|
+
}>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
|
|
190
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
191
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
192
|
+
getContainerEl: () => HTMLElement | null;
|
|
193
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
194
|
+
$slots: Readonly<{
|
|
195
|
+
default?(): any;
|
|
196
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
197
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
198
|
+
}> & {
|
|
199
|
+
default?(): any;
|
|
200
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
201
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
202
|
+
};
|
|
203
|
+
}) | null;
|
|
28
204
|
anchorRef: ({
|
|
29
205
|
$: import('vue').ComponentInternalInstance;
|
|
30
206
|
$data: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import ODocLayout_vue_vue_type_script_setup_true_lang_default from "./ODocLayout.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './ODocLayout.
|
|
3
|
+
import './ODocLayout.vue_vue_type_style_index_0_scoped_5403350d_lang.css';
|
|
4
4
|
// src/components/doc-layout/ODocLayout.vue
|
|
5
|
-
var ODocLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ODocLayout_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var ODocLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(ODocLayout_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-5403350d"]]);
|
|
6
6
|
export { ODocLayout_default as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
1
2
|
import { ScrollerSizeT } from '@opensig/opendesign';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
collapsed?: boolean;
|
|
@@ -139,7 +140,7 @@ declare function __VLS_template(): {
|
|
|
139
140
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
140
141
|
};
|
|
141
142
|
$forceUpdate: () => void;
|
|
142
|
-
$nextTick: typeof
|
|
143
|
+
$nextTick: typeof nextTick;
|
|
143
144
|
$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;
|
|
144
145
|
} & Readonly<{
|
|
145
146
|
size: "medium" | "small";
|
|
@@ -203,6 +204,7 @@ declare function __VLS_template(): {
|
|
|
203
204
|
};
|
|
204
205
|
}) | null;
|
|
205
206
|
containerRef: HTMLDivElement;
|
|
207
|
+
floatRef: HTMLDivElement;
|
|
206
208
|
};
|
|
207
209
|
rootEl: HTMLDivElement;
|
|
208
210
|
};
|
|
@@ -330,7 +332,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
330
332
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
331
333
|
};
|
|
332
334
|
$forceUpdate: () => void;
|
|
333
|
-
$nextTick: typeof
|
|
335
|
+
$nextTick: typeof nextTick;
|
|
334
336
|
$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;
|
|
335
337
|
} & Readonly<{
|
|
336
338
|
size: "medium" | "small";
|
|
@@ -394,6 +396,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
394
396
|
};
|
|
395
397
|
}) | null;
|
|
396
398
|
containerRef: HTMLDivElement;
|
|
399
|
+
floatRef: HTMLDivElement;
|
|
397
400
|
}, HTMLDivElement>;
|
|
398
401
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
399
402
|
export default _default;
|
package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import icon_menu_fold_default from "../../_virtual/~icons/components/icon-menu-fold.mjs";
|
|
2
2
|
import icon_menu_unfold_default from "../../_virtual/~icons/components/icon-menu-unfold.mjs";
|
|
3
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, onMounted, onUnmounted, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, onMounted, onUnmounted, openBlock, ref, renderSlot, unref, watch, withCtx } from "vue";
|
|
4
4
|
import { OIcon, OScroller } from "@opensig/opendesign";
|
|
5
5
|
import { useScreen } from "@opendesign-plus/composables";
|
|
6
6
|
// src/components/doc-layout/ODocLayout.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -20,10 +20,6 @@ var _hoisted_7 = {
|
|
|
20
20
|
key: 2,
|
|
21
21
|
class: "o-doc-layout-anchor"
|
|
22
22
|
};
|
|
23
|
-
var _hoisted_8 = {
|
|
24
|
-
key: 3,
|
|
25
|
-
class: "o-doc-layout-float"
|
|
26
|
-
};
|
|
27
23
|
var DRAG_THRESHOLD = 4;
|
|
28
24
|
var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
29
25
|
__name: "ODocLayout",
|
|
@@ -56,9 +52,31 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
56
52
|
const containerRef = ref();
|
|
57
53
|
const scrollerRef = ref();
|
|
58
54
|
const scrollerEl = ref();
|
|
55
|
+
const floatRef = ref();
|
|
59
56
|
const isResizing = ref(false);
|
|
60
57
|
let resizeTimer;
|
|
58
|
+
let floatObserver;
|
|
61
59
|
const getRoot = () => containerRef.value?.closest(".o-doc-layout");
|
|
60
|
+
const updateFloatHeight = () => {
|
|
61
|
+
const root = getRoot();
|
|
62
|
+
if (!root || !floatRef.value) return;
|
|
63
|
+
root.style.setProperty("--o-doc-layout-float-height-auto", `${floatRef.value.offsetHeight}px`);
|
|
64
|
+
};
|
|
65
|
+
const teardownFloatObserver = () => {
|
|
66
|
+
floatObserver?.disconnect();
|
|
67
|
+
floatObserver = void 0;
|
|
68
|
+
getRoot()?.style.removeProperty("--o-doc-layout-float-height-auto");
|
|
69
|
+
};
|
|
70
|
+
const ensureFloatObserver = () => {
|
|
71
|
+
teardownFloatObserver();
|
|
72
|
+
if (!props.hasFloat || !floatRef.value) return;
|
|
73
|
+
floatObserver = new ResizeObserver(updateFloatHeight);
|
|
74
|
+
floatObserver.observe(floatRef.value);
|
|
75
|
+
updateFloatHeight();
|
|
76
|
+
};
|
|
77
|
+
watch(() => props.hasFloat, () => {
|
|
78
|
+
nextTick(ensureFloatObserver);
|
|
79
|
+
});
|
|
62
80
|
const onWindowResize = () => {
|
|
63
81
|
const root = getRoot();
|
|
64
82
|
if (!root) return;
|
|
@@ -69,10 +87,12 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
69
87
|
onMounted(() => {
|
|
70
88
|
scrollerEl.value = scrollerRef.value?.getContainerEl() || void 0;
|
|
71
89
|
window.addEventListener("resize", onWindowResize);
|
|
90
|
+
ensureFloatObserver();
|
|
72
91
|
});
|
|
73
92
|
onUnmounted(() => {
|
|
74
93
|
window.removeEventListener("resize", onWindowResize);
|
|
75
94
|
window.clearTimeout(resizeTimer);
|
|
95
|
+
teardownFloatObserver();
|
|
76
96
|
});
|
|
77
97
|
const onResizePointerDown = (event) => {
|
|
78
98
|
if (event.button !== 0) return;
|
|
@@ -120,7 +140,8 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
120
140
|
"is-collapsed": collapsed.value,
|
|
121
141
|
"is-resizing": isResizing.value,
|
|
122
142
|
"has-sider": __props.hasSider,
|
|
123
|
-
"has-anchor": __props.hasAnchor
|
|
143
|
+
"has-anchor": __props.hasAnchor,
|
|
144
|
+
"has-float": __props.hasFloat
|
|
124
145
|
}])
|
|
125
146
|
}, {
|
|
126
147
|
default: withCtx(() => [createElementVNode("div", {
|
|
@@ -139,7 +160,12 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
139
160
|
__props.hasSider ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "sider", { scroller: scrollerEl.value }, void 0, true)])) : createCommentVNode("", true),
|
|
140
161
|
createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "content", { scroller: scrollerEl.value }, void 0, true)]),
|
|
141
162
|
__props.hasAnchor ? (openBlock(), createElementBlock("div", _hoisted_7, [renderSlot(_ctx.$slots, "anchor", { scroller: scrollerEl.value }, void 0, true)])) : createCommentVNode("", true),
|
|
142
|
-
__props.hasFloat ? (openBlock(), createElementBlock("div",
|
|
163
|
+
__props.hasFloat ? (openBlock(), createElementBlock("div", {
|
|
164
|
+
key: 3,
|
|
165
|
+
ref_key: "floatRef",
|
|
166
|
+
ref: floatRef,
|
|
167
|
+
class: "o-doc-layout-float"
|
|
168
|
+
}, [renderSlot(_ctx.$slots, "float", { scroller: scrollerEl.value }, void 0, true)], 512)) : createCommentVNode("", true),
|
|
143
169
|
__props.hasSider && unref(lePad) ? (openBlock(), createElementBlock("div", {
|
|
144
170
|
key: 4,
|
|
145
171
|
class: "o-doc-layout-mask",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-5403350d] {
|
|
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-5403350d] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-doc-layout[data-v-
|
|
9
|
+
.o-doc-layout[data-v-5403350d] {
|
|
10
10
|
--o-doc-layout-screen-width: 100vw;
|
|
11
11
|
--o-doc-layout-page-header-width: 1488px;
|
|
12
12
|
--o-doc-layout-page-header-height: var(--layout-header-height);
|
|
@@ -23,17 +23,24 @@
|
|
|
23
23
|
--o-doc-layout-sider-padding-top: 16px;
|
|
24
24
|
--o-doc-layout-sider-padding-bottom: 16px;
|
|
25
25
|
--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));
|
|
26
|
-
--o-doc-layout-anchor-content-width: 272px;
|
|
27
|
-
--o-doc-layout-anchor-padding-top: 52px;
|
|
28
|
-
--o-doc-layout-anchor-top: calc(var(--o-doc-layout-page-header-height) + var(--o-doc-layout-anchor-padding-top));
|
|
29
|
-
--o-doc-layout-anchor-right: var(--o-doc-layout-padding);
|
|
30
26
|
--o-doc-layout-float-z-index: 36;
|
|
31
27
|
--o-doc-layout-float-bottom: 40px;
|
|
32
28
|
--o-doc-layout-float-content-width: 48px;
|
|
29
|
+
--o-doc-layout-float-height-auto: 0px;
|
|
33
30
|
--o-doc-layout-float-right: calc(
|
|
34
31
|
var(--o-doc-layout-padding) +
|
|
35
32
|
max(var(--o-doc-layout-anchor-content-width), var(--o-doc-layout-float-content-width)) - var(--o-doc-layout-float-content-width)
|
|
36
33
|
);
|
|
34
|
+
--o-doc-layout-anchor-content-width: 272px;
|
|
35
|
+
--o-doc-layout-anchor-padding-top: 52px;
|
|
36
|
+
--o-doc-layout-anchor-top: calc(var(--o-doc-layout-page-header-height) + var(--o-doc-layout-anchor-padding-top));
|
|
37
|
+
--o-doc-layout-anchor-right: var(--o-doc-layout-padding);
|
|
38
|
+
--o-doc-layout-anchor-safe-gap: 32px;
|
|
39
|
+
--o-doc-layout-anchor-max-height: max(280px, calc(
|
|
40
|
+
100vh - var(--o-doc-layout-anchor-top) - var(--o-doc-layout-float-bottom)
|
|
41
|
+
- var(--o-doc-layout-float-height, var(--o-doc-layout-float-height-auto))
|
|
42
|
+
- var(--o-doc-layout-anchor-safe-gap)
|
|
43
|
+
));
|
|
37
44
|
--o-doc-layout-content-min-height: 100%;
|
|
38
45
|
--o-doc-layout-content-padding-top: var(--o-doc-layout-header-height);
|
|
39
46
|
--o-doc-layout-content-padding-left: calc(var(--o-doc-layout-sider-width) + var(--o-doc-layout-gap));
|
|
@@ -46,18 +53,19 @@
|
|
|
46
53
|
--o-doc-layout-opener-left: var(--o-doc-layout-sider-width);
|
|
47
54
|
}
|
|
48
55
|
@media (max-width: 1680px) {
|
|
49
|
-
.o-doc-layout[data-v-
|
|
56
|
+
.o-doc-layout[data-v-5403350d] {
|
|
50
57
|
--o-doc-layout-min-padding: 40px;
|
|
51
58
|
--o-doc-layout-gap: 24px;
|
|
52
59
|
--o-doc-layout-sider-content-width-default: 196px;
|
|
53
60
|
--o-doc-layout-sider-padding-right: 12px;
|
|
61
|
+
--o-doc-layout-float-bottom: 32px;
|
|
54
62
|
--o-doc-layout-anchor-content-width: 208px;
|
|
55
63
|
--o-doc-layout-anchor-padding-top: 48px;
|
|
56
|
-
--o-doc-layout-
|
|
64
|
+
--o-doc-layout-anchor-safe-gap: 24px;
|
|
57
65
|
}
|
|
58
66
|
}
|
|
59
67
|
@media (max-width: 1200px) {
|
|
60
|
-
.o-doc-layout[data-v-
|
|
68
|
+
.o-doc-layout[data-v-5403350d] {
|
|
61
69
|
--o-doc-layout-min-padding: 32px;
|
|
62
70
|
--o-doc-layout-gap: 16px;
|
|
63
71
|
--o-doc-layout-sider-content-width-default: 222px;
|
|
@@ -65,10 +73,11 @@
|
|
|
65
73
|
--o-doc-layout-anchor-padding-top: 42px;
|
|
66
74
|
--o-doc-layout-content-padding-left: var(--o-doc-layout-padding);
|
|
67
75
|
--o-doc-layout-float-right: 32px;
|
|
76
|
+
--o-doc-layout-anchor-safe-gap: 16px;
|
|
68
77
|
}
|
|
69
78
|
}
|
|
70
79
|
@media (max-width: 840px) {
|
|
71
|
-
.o-doc-layout[data-v-
|
|
80
|
+
.o-doc-layout[data-v-5403350d] {
|
|
72
81
|
--o-doc-layout-gap: 16px;
|
|
73
82
|
--o-doc-layout-header-height: 48px;
|
|
74
83
|
--o-doc-layout-sider-content-width-default: 222px;
|
|
@@ -77,28 +86,31 @@
|
|
|
77
86
|
}
|
|
78
87
|
}
|
|
79
88
|
@media (max-width: 600px) {
|
|
80
|
-
.o-doc-layout[data-v-
|
|
89
|
+
.o-doc-layout[data-v-5403350d] {
|
|
81
90
|
--o-doc-layout-min-padding: 24px;
|
|
82
91
|
--o-doc-layout-sider-padding-top: 12px;
|
|
83
92
|
--o-doc-layout-sider-padding-right: 8px;
|
|
84
93
|
--o-doc-layout-float-right: 24px;
|
|
85
94
|
}
|
|
86
95
|
}
|
|
87
|
-
.o-doc-layout[data-v-
|
|
96
|
+
.o-doc-layout[data-v-5403350d]:not(.has-anchor) {
|
|
88
97
|
--o-doc-layout-anchor-content-width: 0px;
|
|
89
98
|
}
|
|
90
|
-
.o-doc-layout[data-v-
|
|
99
|
+
.o-doc-layout[data-v-5403350d]:not(.has-float) {
|
|
100
|
+
--o-doc-layout-anchor-max-height: calc(100vh - var(--o-doc-layout-anchor-top) - var(--o-doc-layout-anchor-safe-gap));
|
|
101
|
+
}
|
|
102
|
+
.o-doc-layout[data-v-5403350d]:not(.has-sider) {
|
|
91
103
|
--o-doc-layout-content-padding-left: calc((var(--o-doc-layout-screen-width) - var(--o-doc-layout-page-header-width)) / 2);
|
|
92
104
|
}
|
|
93
105
|
@media (max-width: 1680px) {
|
|
94
|
-
.o-doc-layout[data-v-
|
|
106
|
+
.o-doc-layout[data-v-5403350d]:not(.has-sider) {
|
|
95
107
|
--o-doc-layout-content-padding-left: var(--o-doc-layout-padding);
|
|
96
108
|
}
|
|
97
109
|
}
|
|
98
|
-
.o-doc-layout .o-doc-layout-container[data-v-
|
|
110
|
+
.o-doc-layout .o-doc-layout-container[data-v-5403350d] {
|
|
99
111
|
height: var(--o-doc-layout-height);
|
|
100
112
|
}
|
|
101
|
-
.o-doc-layout .o-doc-layout-header[data-v-
|
|
113
|
+
.o-doc-layout .o-doc-layout-header[data-v-5403350d] {
|
|
102
114
|
position: fixed;
|
|
103
115
|
top: var(--o-doc-layout-header-top);
|
|
104
116
|
left: 0;
|
|
@@ -112,7 +124,7 @@
|
|
|
112
124
|
background-color: var(--o-color-fill2);
|
|
113
125
|
box-shadow: var(--o-shadow-1);
|
|
114
126
|
}
|
|
115
|
-
.o-doc-layout .o-doc-layout-header-toggle[data-v-
|
|
127
|
+
.o-doc-layout .o-doc-layout-header-toggle[data-v-5403350d] {
|
|
116
128
|
flex-shrink: 0;
|
|
117
129
|
display: inline-flex;
|
|
118
130
|
align-items: center;
|
|
@@ -127,32 +139,32 @@
|
|
|
127
139
|
color: var(--o-color-info1);
|
|
128
140
|
cursor: pointer;
|
|
129
141
|
}
|
|
130
|
-
.o-doc-layout .o-doc-layout-header-toggle svg[data-v-
|
|
142
|
+
.o-doc-layout .o-doc-layout-header-toggle svg[data-v-5403350d] {
|
|
131
143
|
width: 24px;
|
|
132
144
|
height: 24px;
|
|
133
145
|
}
|
|
134
|
-
.o-doc-layout .o-doc-layout-header-left[data-v-
|
|
146
|
+
.o-doc-layout .o-doc-layout-header-left[data-v-5403350d] {
|
|
135
147
|
display: flex;
|
|
136
148
|
align-items: center;
|
|
137
149
|
min-width: 0;
|
|
138
150
|
}
|
|
139
|
-
.o-doc-layout .o-doc-layout-header-title[data-v-
|
|
151
|
+
.o-doc-layout .o-doc-layout-header-title[data-v-5403350d] {
|
|
140
152
|
min-width: 0;
|
|
141
153
|
overflow: hidden;
|
|
142
154
|
text-overflow: ellipsis;
|
|
143
155
|
white-space: nowrap;
|
|
144
156
|
}
|
|
145
|
-
.o-doc-layout .o-doc-layout-header-right[data-v-
|
|
157
|
+
.o-doc-layout .o-doc-layout-header-right[data-v-5403350d] {
|
|
146
158
|
flex-shrink: 0;
|
|
147
159
|
}
|
|
148
|
-
.o-doc-layout .o-doc-layout-content[data-v-
|
|
160
|
+
.o-doc-layout .o-doc-layout-content[data-v-5403350d] {
|
|
149
161
|
min-height: var(--o-doc-layout-content-min-height);
|
|
150
162
|
padding-top: var(--o-doc-layout-content-padding-top);
|
|
151
163
|
padding-left: var(--o-doc-layout-content-padding-left);
|
|
152
164
|
padding-right: var(--o-doc-layout-content-padding-right);
|
|
153
165
|
transition: padding-left 0.3s;
|
|
154
166
|
}
|
|
155
|
-
.o-doc-layout .o-doc-layout-sider[data-v-
|
|
167
|
+
.o-doc-layout .o-doc-layout-sider[data-v-5403350d] {
|
|
156
168
|
box-sizing: content-box;
|
|
157
169
|
position: fixed;
|
|
158
170
|
top: var(--o-doc-layout-page-header-height);
|
|
@@ -167,20 +179,20 @@
|
|
|
167
179
|
z-index: 35;
|
|
168
180
|
transition: transform 0.3s;
|
|
169
181
|
}
|
|
170
|
-
.o-doc-layout .o-doc-layout-anchor[data-v-
|
|
182
|
+
.o-doc-layout .o-doc-layout-anchor[data-v-5403350d] {
|
|
171
183
|
position: fixed;
|
|
172
184
|
top: var(--o-doc-layout-anchor-top);
|
|
173
185
|
right: var(--o-doc-layout-anchor-right);
|
|
174
186
|
width: var(--o-doc-layout-anchor-content-width);
|
|
175
187
|
z-index: 33;
|
|
176
188
|
}
|
|
177
|
-
.o-doc-layout .o-doc-layout-float[data-v-
|
|
189
|
+
.o-doc-layout .o-doc-layout-float[data-v-5403350d] {
|
|
178
190
|
position: fixed;
|
|
179
191
|
right: var(--o-doc-layout-float-right);
|
|
180
192
|
bottom: var(--o-doc-layout-float-bottom);
|
|
181
193
|
z-index: var(--o-doc-layout-float-z-index);
|
|
182
194
|
}
|
|
183
|
-
.o-doc-layout .o-doc-layout-mask[data-v-
|
|
195
|
+
.o-doc-layout .o-doc-layout-mask[data-v-5403350d] {
|
|
184
196
|
position: fixed;
|
|
185
197
|
inset: 0;
|
|
186
198
|
z-index: 34;
|
|
@@ -189,7 +201,7 @@
|
|
|
189
201
|
pointer-events: none;
|
|
190
202
|
transition: opacity 0.3s;
|
|
191
203
|
}
|
|
192
|
-
.o-doc-layout .o-doc-layout-opener[data-v-
|
|
204
|
+
.o-doc-layout .o-doc-layout-opener[data-v-5403350d] {
|
|
193
205
|
position: fixed;
|
|
194
206
|
top: 50%;
|
|
195
207
|
left: var(--o-doc-layout-opener-left);
|
|
@@ -210,7 +222,7 @@
|
|
|
210
222
|
cursor: pointer;
|
|
211
223
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
212
224
|
}
|
|
213
|
-
.o-doc-layout .o-doc-layout-opener[data-v-
|
|
225
|
+
.o-doc-layout .o-doc-layout-opener[data-v-5403350d]::before, .o-doc-layout .o-doc-layout-opener[data-v-5403350d]::after {
|
|
214
226
|
content: "";
|
|
215
227
|
position: absolute;
|
|
216
228
|
left: 0;
|
|
@@ -219,25 +231,25 @@
|
|
|
219
231
|
pointer-events: none;
|
|
220
232
|
transition: opacity 0.3s;
|
|
221
233
|
}
|
|
222
|
-
.o-doc-layout .o-doc-layout-opener[data-v-
|
|
234
|
+
.o-doc-layout .o-doc-layout-opener[data-v-5403350d]::before {
|
|
223
235
|
bottom: 100%;
|
|
224
236
|
height: 100vh;
|
|
225
237
|
}
|
|
226
|
-
.o-doc-layout .o-doc-layout-opener[data-v-
|
|
238
|
+
.o-doc-layout .o-doc-layout-opener[data-v-5403350d]::after {
|
|
227
239
|
top: 100%;
|
|
228
240
|
height: 100vh;
|
|
229
241
|
}
|
|
230
|
-
.o-doc-layout .o-doc-layout-opener .o-doc-layout-opener-thumb[data-v-
|
|
242
|
+
.o-doc-layout .o-doc-layout-opener .o-doc-layout-opener-thumb[data-v-5403350d] {
|
|
231
243
|
width: 2px;
|
|
232
244
|
height: 24px;
|
|
233
245
|
border-radius: 2px;
|
|
234
246
|
background-color: var(--o-color-info4);
|
|
235
247
|
transition: background-color 0.3s;
|
|
236
248
|
}
|
|
237
|
-
.o-doc-layout .o-doc-layout-opener:hover .o-doc-layout-opener-thumb[data-v-
|
|
249
|
+
.o-doc-layout .o-doc-layout-opener:hover .o-doc-layout-opener-thumb[data-v-5403350d] {
|
|
238
250
|
background-color: var(--o-color-primary1);
|
|
239
251
|
}
|
|
240
|
-
.o-doc-layout .o-doc-layout-resizer[data-v-
|
|
252
|
+
.o-doc-layout .o-doc-layout-resizer[data-v-5403350d] {
|
|
241
253
|
position: fixed;
|
|
242
254
|
top: var(--o-doc-layout-page-header-height);
|
|
243
255
|
bottom: 0;
|
|
@@ -250,57 +262,57 @@
|
|
|
250
262
|
-webkit-user-select: none;
|
|
251
263
|
transition: transform 0.3s;
|
|
252
264
|
}
|
|
253
|
-
.o-doc-layout.is-collapsed[data-v-
|
|
265
|
+
.o-doc-layout.is-collapsed[data-v-5403350d] {
|
|
254
266
|
--o-doc-layout-content-padding-left: calc((var(--o-doc-layout-screen-width) - var(--o-doc-layout-page-header-width)) / 2);
|
|
255
267
|
}
|
|
256
268
|
@media (max-width: 1680px) {
|
|
257
|
-
.o-doc-layout.is-collapsed[data-v-
|
|
269
|
+
.o-doc-layout.is-collapsed[data-v-5403350d] {
|
|
258
270
|
--o-doc-layout-content-padding-left: var(--o-doc-layout-padding);
|
|
259
271
|
}
|
|
260
272
|
}
|
|
261
|
-
.o-doc-layout.is-collapsed .o-doc-layout-sider[data-v-
|
|
273
|
+
.o-doc-layout.is-collapsed .o-doc-layout-sider[data-v-5403350d] {
|
|
262
274
|
transform: translateX(-100%);
|
|
263
275
|
}
|
|
264
|
-
.o-doc-layout.is-collapsed .o-doc-layout-mask[data-v-
|
|
276
|
+
.o-doc-layout.is-collapsed .o-doc-layout-mask[data-v-5403350d] {
|
|
265
277
|
opacity: 0;
|
|
266
278
|
pointer-events: none;
|
|
267
279
|
}
|
|
268
|
-
.o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-
|
|
280
|
+
.o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-5403350d] {
|
|
269
281
|
transform: translateY(-50%) translateX(calc(-1 * var(--o-doc-layout-opener-left)));
|
|
270
282
|
box-shadow: var(--o-shadow-2);
|
|
271
283
|
}
|
|
272
|
-
.o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-
|
|
284
|
+
.o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-5403350d]::before, .o-doc-layout.is-collapsed .o-doc-layout-opener[data-v-5403350d]::after {
|
|
273
285
|
opacity: 0;
|
|
274
286
|
}
|
|
275
|
-
.o-doc-layout.is-collapsed .o-doc-layout-resizer[data-v-
|
|
287
|
+
.o-doc-layout.is-collapsed .o-doc-layout-resizer[data-v-5403350d] {
|
|
276
288
|
transform: translateX(calc(4px - var(--o-doc-layout-opener-left)));
|
|
277
289
|
}
|
|
278
|
-
.o-doc-layout.is-resizing .o-doc-layout-sider[data-v-
|
|
279
|
-
.o-doc-layout.is-resizing .o-doc-layout-content[data-v-
|
|
280
|
-
.o-doc-layout.is-resizing .o-doc-layout-opener[data-v-
|
|
281
|
-
.o-doc-layout.is-resizing .o-doc-layout-resizer[data-v-
|
|
290
|
+
.o-doc-layout.is-resizing .o-doc-layout-sider[data-v-5403350d],
|
|
291
|
+
.o-doc-layout.is-resizing .o-doc-layout-content[data-v-5403350d],
|
|
292
|
+
.o-doc-layout.is-resizing .o-doc-layout-opener[data-v-5403350d],
|
|
293
|
+
.o-doc-layout.is-resizing .o-doc-layout-resizer[data-v-5403350d] {
|
|
282
294
|
transition: none;
|
|
283
295
|
}
|
|
284
296
|
@media (max-width: 1200px) {
|
|
285
|
-
.o-doc-layout .o-doc-layout-sider[data-v-
|
|
297
|
+
.o-doc-layout .o-doc-layout-sider[data-v-5403350d] {
|
|
286
298
|
background-color: var(--o-color-fill2);
|
|
287
299
|
background-image: linear-gradient(rgba(var(--o-brand-6), 0.03), rgba(var(--o-brand-6), 0.03));
|
|
288
300
|
}
|
|
289
|
-
.o-doc-layout .o-doc-layout-mask[data-v-
|
|
301
|
+
.o-doc-layout .o-doc-layout-mask[data-v-5403350d] {
|
|
290
302
|
opacity: 1;
|
|
291
303
|
pointer-events: auto;
|
|
292
304
|
}
|
|
293
|
-
.o-doc-layout .o-doc-layout-opener[data-v-
|
|
305
|
+
.o-doc-layout .o-doc-layout-opener[data-v-5403350d] {
|
|
294
306
|
background-color: var(--o-color-fill2);
|
|
295
307
|
background-image: linear-gradient(rgba(var(--o-brand-6), 0.03), rgba(var(--o-brand-6), 0.03));
|
|
296
308
|
}
|
|
297
309
|
}
|
|
298
310
|
@media (max-width: 840px) {
|
|
299
|
-
.o-doc-layout .o-doc-layout-sider[data-v-
|
|
311
|
+
.o-doc-layout .o-doc-layout-sider[data-v-5403350d] {
|
|
300
312
|
top: calc(var(--o-doc-layout-page-header-height) + var(--o-doc-layout-header-height));
|
|
301
313
|
}
|
|
302
|
-
.o-doc-layout .o-doc-layout-opener[data-v-
|
|
303
|
-
.o-doc-layout .o-doc-layout-resizer[data-v-
|
|
314
|
+
.o-doc-layout .o-doc-layout-opener[data-v-5403350d],
|
|
315
|
+
.o-doc-layout .o-doc-layout-resizer[data-v-5403350d] {
|
|
304
316
|
display: none;
|
|
305
317
|
}
|
|
306
318
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-dcc5e0d5] {
|
|
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-dcc5e0d5] {
|
|
6
|
-
transform: rotate(-180deg);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.o-article-anchor__body[data-v-dcc5e0d5] .o-anchor {
|
|
10
|
-
--anchor-item-link-color: var(--o-color-info2);
|
|
11
|
-
--anchor-item-link-color-active: var(--o-color-primary1);
|
|
12
|
-
--anchor-item-link-color-hover: var(--o-color-primary2);
|
|
13
|
-
--anchor-item-link-color-press: var(--o-color-primary3);
|
|
14
|
-
--anchor-line-bg-color: var(--o-color-control4);
|
|
15
|
-
}
|
|
16
|
-
.o-article-anchor--hidden[data-v-dcc5e0d5] {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|