@opendesign-plus/components 0.0.1-rc.101 → 0.0.1-rc.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-element-plus.cjs.js +1 -1
- package/dist/chunk-element-plus.es.js +2 -0
- package/dist/components/article-anchor/OArticleAnchor.vue.d.ts +138 -1
- package/dist/components/article-anchor/index.d.ts +157 -5
- package/dist/components/article-anchor/types.d.ts +10 -2
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +364 -4
- package/dist/components/doc-layout/index.d.ts +188 -4
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +1920 -1863
- package/dist/treeshaking/components/article/components/DocTitle.mjs +2 -2
- package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +25 -20
- package/dist/treeshaking/components/article/components/{DocTitle.vue_vue_type_style_index_0_scoped_ea84d56c_lang.css → DocTitle.vue_vue_type_style_index_0_scoped_12467c9f_lang.css} +52 -49
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.d.ts +138 -1
- package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +70 -5
- package/dist/treeshaking/components/article-anchor/{OArticleAnchor.vue_vue_type_style_index_0_scoped_6e032ecb_lang.css → OArticleAnchor.vue_vue_type_style_index_0_scoped_dcc5e0d5_lang.css} +4 -4
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorItems.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorItems.vue_vue_type_script_setup_true_lang.mjs +8 -3
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorItems.vue_vue_type_style_index_0_scoped_c0fc5e57_lang.css → ArticleAnchorItems.vue_vue_type_style_index_0_scoped_126e1824_lang.css} +3 -3
- 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 +14 -12
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_648619c2_lang.css → ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_ccc0d33c_lang.css} +11 -11
- package/dist/treeshaking/components/article-anchor/index.d.ts +157 -5
- package/dist/treeshaking/components/article-anchor/types.d.ts +10 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +364 -4
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +18 -11
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_3d4751c0_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_966cd0b4_lang.css} +54 -42
- package/dist/treeshaking/components/doc-layout/index.d.ts +188 -4
- package/dist/treeshaking/components/markdown/OMarkdown.mjs +2 -2
- package/dist/treeshaking/components/markdown/OMarkdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/markdown/{OMarkdown.vue_vue_type_style_index_1_scoped_4be4e234_lang.css → OMarkdown.vue_vue_type_style_index_1_scoped_c19788db_lang.css} +3 -3
- package/dist/treeshaking/i18n/en.mjs +1 -0
- package/dist/treeshaking/i18n/zh.mjs +1 -0
- package/package.json +1 -1
|
@@ -9,12 +9,196 @@ declare function __VLS_template(): {
|
|
|
9
9
|
slots: {
|
|
10
10
|
'header-title'?(_: {}): any;
|
|
11
11
|
'header-right'?(_: {}): any;
|
|
12
|
-
sider?(_: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
sider?(_: {
|
|
13
|
+
scroller: HTMLElement | undefined;
|
|
14
|
+
}): any;
|
|
15
|
+
content?(_: {
|
|
16
|
+
scroller: HTMLElement | undefined;
|
|
17
|
+
}): any;
|
|
18
|
+
anchor?(_: {
|
|
19
|
+
scroller: HTMLElement | undefined;
|
|
20
|
+
}): any;
|
|
21
|
+
float?(_: {
|
|
22
|
+
scroller: HTMLElement | undefined;
|
|
23
|
+
}): any;
|
|
16
24
|
};
|
|
17
25
|
refs: {
|
|
26
|
+
scrollerRef: ({
|
|
27
|
+
$: import('vue').ComponentInternalInstance;
|
|
28
|
+
$data: {};
|
|
29
|
+
$props: Partial<{
|
|
30
|
+
size: "medium" | "small";
|
|
31
|
+
duration: number;
|
|
32
|
+
disabledX: boolean;
|
|
33
|
+
disabledY: boolean;
|
|
34
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
35
|
+
autoUpdateOnScrollSize: boolean;
|
|
36
|
+
}> & Omit<{
|
|
37
|
+
readonly size: "small" | "medium";
|
|
38
|
+
readonly duration: number;
|
|
39
|
+
readonly disabledX: boolean;
|
|
40
|
+
readonly disabledY: boolean;
|
|
41
|
+
readonly showType: "auto" | "hover" | "always" | "never";
|
|
42
|
+
readonly autoUpdateOnScrollSize: boolean;
|
|
43
|
+
readonly wrapClass?: string | {
|
|
44
|
+
[k: string]: boolean;
|
|
45
|
+
} | (string | {
|
|
46
|
+
[k: string]: boolean;
|
|
47
|
+
})[] | undefined;
|
|
48
|
+
readonly barClass?: string | {
|
|
49
|
+
[k: string]: boolean;
|
|
50
|
+
} | (string | {
|
|
51
|
+
[k: string]: boolean;
|
|
52
|
+
})[] | undefined;
|
|
53
|
+
readonly onScroll?: ((event: Event) => any) | undefined | undefined;
|
|
54
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
|
|
55
|
+
$attrs: import('vue').Attrs;
|
|
56
|
+
$refs: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
} & {
|
|
59
|
+
targetRef: HTMLDivElement;
|
|
60
|
+
};
|
|
61
|
+
$slots: Readonly<{
|
|
62
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
65
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
66
|
+
$host: Element | null;
|
|
67
|
+
$emit: (event: "scroll", event: Event) => void;
|
|
68
|
+
$el: HTMLDivElement;
|
|
69
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
70
|
+
wrapClass: {
|
|
71
|
+
type: import('vue').PropType<string | {
|
|
72
|
+
[k: string]: boolean;
|
|
73
|
+
} | Array<{
|
|
74
|
+
[k: string]: boolean;
|
|
75
|
+
} | string>>;
|
|
76
|
+
};
|
|
77
|
+
disabledX: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
required: false;
|
|
80
|
+
};
|
|
81
|
+
disabledY: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
};
|
|
84
|
+
duration: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: number;
|
|
87
|
+
};
|
|
88
|
+
showType: {
|
|
89
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
autoUpdateOnScrollSize: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
};
|
|
99
|
+
barClass: {
|
|
100
|
+
type: import('vue').PropType<string | {
|
|
101
|
+
[k: string]: boolean;
|
|
102
|
+
} | Array<{
|
|
103
|
+
[k: string]: boolean;
|
|
104
|
+
} | string>>;
|
|
105
|
+
};
|
|
106
|
+
}>> & Readonly<{
|
|
107
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
108
|
+
}>, {
|
|
109
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
110
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
111
|
+
getContainerEl(): HTMLElement | null;
|
|
112
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
113
|
+
scroll: (event: Event) => any;
|
|
114
|
+
}, string, {
|
|
115
|
+
size: "medium" | "small";
|
|
116
|
+
duration: number;
|
|
117
|
+
disabledX: boolean;
|
|
118
|
+
disabledY: boolean;
|
|
119
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
120
|
+
autoUpdateOnScrollSize: boolean;
|
|
121
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
122
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
123
|
+
created?: (() => void) | (() => void)[];
|
|
124
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
125
|
+
mounted?: (() => void) | (() => void)[];
|
|
126
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
127
|
+
updated?: (() => void) | (() => void)[];
|
|
128
|
+
activated?: (() => void) | (() => void)[];
|
|
129
|
+
deactivated?: (() => void) | (() => void)[];
|
|
130
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
131
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
132
|
+
destroyed?: (() => void) | (() => void)[];
|
|
133
|
+
unmounted?: (() => void) | (() => void)[];
|
|
134
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
135
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
136
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
137
|
+
};
|
|
138
|
+
$forceUpdate: () => void;
|
|
139
|
+
$nextTick: typeof import('vue').nextTick;
|
|
140
|
+
$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;
|
|
141
|
+
} & Readonly<{
|
|
142
|
+
size: "medium" | "small";
|
|
143
|
+
duration: number;
|
|
144
|
+
disabledX: boolean;
|
|
145
|
+
disabledY: boolean;
|
|
146
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
147
|
+
autoUpdateOnScrollSize: boolean;
|
|
148
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
149
|
+
wrapClass: {
|
|
150
|
+
type: import('vue').PropType<string | {
|
|
151
|
+
[k: string]: boolean;
|
|
152
|
+
} | Array<{
|
|
153
|
+
[k: string]: boolean;
|
|
154
|
+
} | string>>;
|
|
155
|
+
};
|
|
156
|
+
disabledX: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
required: false;
|
|
159
|
+
};
|
|
160
|
+
disabledY: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
};
|
|
163
|
+
duration: {
|
|
164
|
+
type: NumberConstructor;
|
|
165
|
+
default: number;
|
|
166
|
+
};
|
|
167
|
+
showType: {
|
|
168
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
size: {
|
|
172
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
autoUpdateOnScrollSize: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
};
|
|
178
|
+
barClass: {
|
|
179
|
+
type: import('vue').PropType<string | {
|
|
180
|
+
[k: string]: boolean;
|
|
181
|
+
} | Array<{
|
|
182
|
+
[k: string]: boolean;
|
|
183
|
+
} | string>>;
|
|
184
|
+
};
|
|
185
|
+
}>> & Readonly<{
|
|
186
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
187
|
+
}>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
|
|
188
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
189
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
190
|
+
getContainerEl: () => HTMLElement | null;
|
|
191
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
192
|
+
$slots: Readonly<{
|
|
193
|
+
default?(): any;
|
|
194
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
195
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
196
|
+
}> & {
|
|
197
|
+
default?(): any;
|
|
198
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
199
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
200
|
+
};
|
|
201
|
+
}) | null;
|
|
18
202
|
containerRef: HTMLDivElement;
|
|
19
203
|
};
|
|
20
204
|
rootEl: HTMLDivElement;
|
|
@@ -29,6 +213,182 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
29
213
|
hasAnchor: boolean;
|
|
30
214
|
hasFloat: boolean;
|
|
31
215
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
216
|
+
scrollerRef: ({
|
|
217
|
+
$: import('vue').ComponentInternalInstance;
|
|
218
|
+
$data: {};
|
|
219
|
+
$props: Partial<{
|
|
220
|
+
size: "medium" | "small";
|
|
221
|
+
duration: number;
|
|
222
|
+
disabledX: boolean;
|
|
223
|
+
disabledY: boolean;
|
|
224
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
225
|
+
autoUpdateOnScrollSize: boolean;
|
|
226
|
+
}> & Omit<{
|
|
227
|
+
readonly size: "small" | "medium";
|
|
228
|
+
readonly duration: number;
|
|
229
|
+
readonly disabledX: boolean;
|
|
230
|
+
readonly disabledY: boolean;
|
|
231
|
+
readonly showType: "auto" | "hover" | "always" | "never";
|
|
232
|
+
readonly autoUpdateOnScrollSize: boolean;
|
|
233
|
+
readonly wrapClass?: string | {
|
|
234
|
+
[k: string]: boolean;
|
|
235
|
+
} | (string | {
|
|
236
|
+
[k: string]: boolean;
|
|
237
|
+
})[] | undefined;
|
|
238
|
+
readonly barClass?: string | {
|
|
239
|
+
[k: string]: boolean;
|
|
240
|
+
} | (string | {
|
|
241
|
+
[k: string]: boolean;
|
|
242
|
+
})[] | undefined;
|
|
243
|
+
readonly onScroll?: ((event: Event) => any) | undefined | undefined;
|
|
244
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
|
|
245
|
+
$attrs: import('vue').Attrs;
|
|
246
|
+
$refs: {
|
|
247
|
+
[x: string]: unknown;
|
|
248
|
+
} & {
|
|
249
|
+
targetRef: HTMLDivElement;
|
|
250
|
+
};
|
|
251
|
+
$slots: Readonly<{
|
|
252
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
255
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
256
|
+
$host: Element | null;
|
|
257
|
+
$emit: (event: "scroll", event: Event) => void;
|
|
258
|
+
$el: HTMLDivElement;
|
|
259
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
260
|
+
wrapClass: {
|
|
261
|
+
type: import('vue').PropType<string | {
|
|
262
|
+
[k: string]: boolean;
|
|
263
|
+
} | Array<{
|
|
264
|
+
[k: string]: boolean;
|
|
265
|
+
} | string>>;
|
|
266
|
+
};
|
|
267
|
+
disabledX: {
|
|
268
|
+
type: BooleanConstructor;
|
|
269
|
+
required: false;
|
|
270
|
+
};
|
|
271
|
+
disabledY: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
};
|
|
274
|
+
duration: {
|
|
275
|
+
type: NumberConstructor;
|
|
276
|
+
default: number;
|
|
277
|
+
};
|
|
278
|
+
showType: {
|
|
279
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
280
|
+
default: string;
|
|
281
|
+
};
|
|
282
|
+
size: {
|
|
283
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
284
|
+
default: string;
|
|
285
|
+
};
|
|
286
|
+
autoUpdateOnScrollSize: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
};
|
|
289
|
+
barClass: {
|
|
290
|
+
type: import('vue').PropType<string | {
|
|
291
|
+
[k: string]: boolean;
|
|
292
|
+
} | Array<{
|
|
293
|
+
[k: string]: boolean;
|
|
294
|
+
} | string>>;
|
|
295
|
+
};
|
|
296
|
+
}>> & Readonly<{
|
|
297
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
298
|
+
}>, {
|
|
299
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
300
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
301
|
+
getContainerEl(): HTMLElement | null;
|
|
302
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
303
|
+
scroll: (event: Event) => any;
|
|
304
|
+
}, string, {
|
|
305
|
+
size: "medium" | "small";
|
|
306
|
+
duration: number;
|
|
307
|
+
disabledX: boolean;
|
|
308
|
+
disabledY: boolean;
|
|
309
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
310
|
+
autoUpdateOnScrollSize: boolean;
|
|
311
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
312
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
313
|
+
created?: (() => void) | (() => void)[];
|
|
314
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
315
|
+
mounted?: (() => void) | (() => void)[];
|
|
316
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
317
|
+
updated?: (() => void) | (() => void)[];
|
|
318
|
+
activated?: (() => void) | (() => void)[];
|
|
319
|
+
deactivated?: (() => void) | (() => void)[];
|
|
320
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
321
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
322
|
+
destroyed?: (() => void) | (() => void)[];
|
|
323
|
+
unmounted?: (() => void) | (() => void)[];
|
|
324
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
325
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
326
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
327
|
+
};
|
|
328
|
+
$forceUpdate: () => void;
|
|
329
|
+
$nextTick: typeof import('vue').nextTick;
|
|
330
|
+
$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;
|
|
331
|
+
} & Readonly<{
|
|
332
|
+
size: "medium" | "small";
|
|
333
|
+
duration: number;
|
|
334
|
+
disabledX: boolean;
|
|
335
|
+
disabledY: boolean;
|
|
336
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
337
|
+
autoUpdateOnScrollSize: boolean;
|
|
338
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
339
|
+
wrapClass: {
|
|
340
|
+
type: import('vue').PropType<string | {
|
|
341
|
+
[k: string]: boolean;
|
|
342
|
+
} | Array<{
|
|
343
|
+
[k: string]: boolean;
|
|
344
|
+
} | string>>;
|
|
345
|
+
};
|
|
346
|
+
disabledX: {
|
|
347
|
+
type: BooleanConstructor;
|
|
348
|
+
required: false;
|
|
349
|
+
};
|
|
350
|
+
disabledY: {
|
|
351
|
+
type: BooleanConstructor;
|
|
352
|
+
};
|
|
353
|
+
duration: {
|
|
354
|
+
type: NumberConstructor;
|
|
355
|
+
default: number;
|
|
356
|
+
};
|
|
357
|
+
showType: {
|
|
358
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
359
|
+
default: string;
|
|
360
|
+
};
|
|
361
|
+
size: {
|
|
362
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
363
|
+
default: string;
|
|
364
|
+
};
|
|
365
|
+
autoUpdateOnScrollSize: {
|
|
366
|
+
type: BooleanConstructor;
|
|
367
|
+
};
|
|
368
|
+
barClass: {
|
|
369
|
+
type: import('vue').PropType<string | {
|
|
370
|
+
[k: string]: boolean;
|
|
371
|
+
} | Array<{
|
|
372
|
+
[k: string]: boolean;
|
|
373
|
+
} | string>>;
|
|
374
|
+
};
|
|
375
|
+
}>> & Readonly<{
|
|
376
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
377
|
+
}>, "size" | "scrollTo" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollBy" | "getContainerEl"> & {
|
|
378
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
379
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
380
|
+
getContainerEl: () => HTMLElement | null;
|
|
381
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
382
|
+
$slots: Readonly<{
|
|
383
|
+
default?(): any;
|
|
384
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
385
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
386
|
+
}> & {
|
|
387
|
+
default?(): any;
|
|
388
|
+
thumb?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
389
|
+
track?(props: import('@opensig/opendesign').ScrollbarSlotProps): any;
|
|
390
|
+
};
|
|
391
|
+
}) | null;
|
|
32
392
|
containerRef: HTMLDivElement;
|
|
33
393
|
}, HTMLDivElement>;
|
|
34
394
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -51,6 +51,8 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
51
51
|
set: (value) => emit("update:collapsed", value)
|
|
52
52
|
});
|
|
53
53
|
const containerRef = ref();
|
|
54
|
+
const scrollerRef = ref();
|
|
55
|
+
const scrollerEl = ref();
|
|
54
56
|
const isResizing = ref(false);
|
|
55
57
|
let resizeTimer;
|
|
56
58
|
const getRoot = () => containerRef.value?.closest(".o-doc-layout");
|
|
@@ -62,6 +64,7 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
62
64
|
resizeTimer = window.setTimeout(() => root.classList.remove("is-resizing"), 300);
|
|
63
65
|
};
|
|
64
66
|
onMounted(() => {
|
|
67
|
+
scrollerEl.value = scrollerRef.value?.getContainerEl() || void 0;
|
|
65
68
|
window.addEventListener("resize", onWindowResize);
|
|
66
69
|
});
|
|
67
70
|
onUnmounted(() => {
|
|
@@ -105,12 +108,16 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
105
108
|
window.addEventListener("pointerup", onUp);
|
|
106
109
|
};
|
|
107
110
|
return (_ctx, _cache) => {
|
|
108
|
-
return openBlock(), createBlock(unref(OScroller), {
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
return openBlock(), createBlock(unref(OScroller), {
|
|
112
|
+
ref_key: "scrollerRef",
|
|
113
|
+
ref: scrollerRef,
|
|
114
|
+
class: normalizeClass(["o-doc-layout", {
|
|
115
|
+
"is-collapsed": collapsed.value,
|
|
116
|
+
"is-resizing": isResizing.value,
|
|
117
|
+
"has-sider": __props.hasSider,
|
|
118
|
+
"has-anchor": __props.hasAnchor
|
|
119
|
+
}])
|
|
120
|
+
}, {
|
|
114
121
|
default: withCtx(() => [createElementVNode("div", {
|
|
115
122
|
ref_key: "containerRef",
|
|
116
123
|
ref: containerRef,
|
|
@@ -122,16 +129,16 @@ var ODocLayout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
122
129
|
class: "o-doc-layout-header-toggle",
|
|
123
130
|
onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = !collapsed.value)
|
|
124
131
|
}, {
|
|
125
|
-
default: withCtx(() => [collapsed.value ? (openBlock(), createBlock(unref(
|
|
132
|
+
default: withCtx(() => [collapsed.value ? (openBlock(), createBlock(unref(icon_menu_fold_default), { key: 0 })) : (openBlock(), createBlock(unref(icon_menu_unfold_default), { key: 1 }))]),
|
|
126
133
|
_: 1
|
|
127
134
|
})) : createCommentVNode("", true),
|
|
128
135
|
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "header-title", {}, void 0, true)]),
|
|
129
136
|
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "header-right", {}, void 0, true)])
|
|
130
137
|
])) : createCommentVNode("", true),
|
|
131
|
-
__props.hasSider ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "sider", {}, void 0, true)])) : createCommentVNode("", true),
|
|
132
|
-
createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "content", {}, void 0, true)]),
|
|
133
|
-
__props.hasAnchor ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "anchor", {}, void 0, true)])) : createCommentVNode("", true),
|
|
134
|
-
__props.hasFloat ? (openBlock(), createElementBlock("div", _hoisted_7, [renderSlot(_ctx.$slots, "float", {}, void 0, true)])) : createCommentVNode("", true),
|
|
138
|
+
__props.hasSider ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "sider", { scroller: scrollerEl.value }, void 0, true)])) : createCommentVNode("", true),
|
|
139
|
+
createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "content", { scroller: scrollerEl.value }, void 0, true)]),
|
|
140
|
+
__props.hasAnchor ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "anchor", { scroller: scrollerEl.value }, void 0, true)])) : createCommentVNode("", true),
|
|
141
|
+
__props.hasFloat ? (openBlock(), createElementBlock("div", _hoisted_7, [renderSlot(_ctx.$slots, "float", { scroller: scrollerEl.value }, void 0, true)])) : createCommentVNode("", true),
|
|
135
142
|
__props.hasSider && unref(lePad) ? (openBlock(), createElementBlock("div", {
|
|
136
143
|
key: 4,
|
|
137
144
|
class: "o-doc-layout-mask",
|