@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
|
@@ -1,21 +1,158 @@
|
|
|
1
1
|
import { App } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
2
|
declare const OArticleAnchor: {
|
|
3
|
-
new (...args: any[]): import('../../../vue/dist/vue.esm-bundler.js').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').ArticleAnchorPropsT> & Readonly<{
|
|
3
|
+
new (...args: any[]): import('../../../vue/dist/vue.esm-bundler.js').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').ArticleAnchorPropsT> & Readonly<{
|
|
4
|
+
onChange?: ((link: string) => any) | undefined;
|
|
5
|
+
onClick?: ((ev: MouseEvent, link?: string | undefined) => any) | undefined;
|
|
6
|
+
}>, {
|
|
4
7
|
collect: () => void;
|
|
5
8
|
items: import('../../../vue/dist/vue.esm-bundler.js').ComputedRef<import('../../index').ArticleAnchorItemT[]>;
|
|
6
|
-
}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
9
|
+
}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
10
|
+
change: (link: string) => any;
|
|
11
|
+
click: (ev: MouseEvent, link?: string | undefined) => any;
|
|
12
|
+
}, import('../../../vue/dist/vue.esm-bundler.js').PublicProps, {
|
|
7
13
|
size: "pc" | "pad" | "mobile";
|
|
8
14
|
items: import('../../index').ArticleAnchorItemT[];
|
|
15
|
+
bounds: number;
|
|
16
|
+
changeHash: boolean;
|
|
9
17
|
radius: string;
|
|
10
18
|
showTitle: boolean;
|
|
11
19
|
selector: string | HTMLElement;
|
|
12
20
|
autoExtract: boolean;
|
|
13
21
|
maxLevel: number;
|
|
14
22
|
writeId: boolean;
|
|
23
|
+
idPrefix: string;
|
|
15
24
|
}, false, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, {
|
|
16
25
|
pcSlotRef: HTMLDivElement;
|
|
17
26
|
padSlotRef: HTMLDivElement;
|
|
18
27
|
hiddenSlotRef: HTMLDivElement;
|
|
28
|
+
anchorRef: ({
|
|
29
|
+
$: import('../../../vue/dist/vue.esm-bundler.js').ComponentInternalInstance;
|
|
30
|
+
$data: {};
|
|
31
|
+
$props: Partial<{
|
|
32
|
+
size: "medium" | "small" | "menu";
|
|
33
|
+
layout: "h" | "v";
|
|
34
|
+
bounds: number;
|
|
35
|
+
targetOffset: number;
|
|
36
|
+
changeHash: boolean;
|
|
37
|
+
}> & Omit<{
|
|
38
|
+
readonly size: "small" | "medium" | "menu";
|
|
39
|
+
readonly layout: "v" | "h";
|
|
40
|
+
readonly targetOffset: number;
|
|
41
|
+
readonly bounds: number;
|
|
42
|
+
readonly changeHash: boolean;
|
|
43
|
+
readonly container?: string | Window | HTMLElement | undefined;
|
|
44
|
+
readonly onChange?: ((link: string) => any) | undefined | undefined;
|
|
45
|
+
readonly onClick?: ((ev: MouseEvent, link?: string | undefined) => any) | undefined | undefined;
|
|
46
|
+
} & import('../../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../vue/dist/vue.esm-bundler.js').ComponentCustomProps, "size" | "layout" | "targetOffset" | "bounds" | "changeHash">;
|
|
47
|
+
$attrs: import('../../../vue/dist/vue.esm-bundler.js').Attrs;
|
|
48
|
+
$refs: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
} & {
|
|
51
|
+
anchorRef: HTMLDivElement;
|
|
52
|
+
anchorItemsRef: HTMLDivElement;
|
|
53
|
+
};
|
|
54
|
+
$slots: Readonly<{
|
|
55
|
+
[name: string]: import('../../../vue/dist/vue.esm-bundler.js').Slot<any> | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
$root: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
|
|
58
|
+
$parent: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
|
|
59
|
+
$host: Element | null;
|
|
60
|
+
$emit: ((event: "change", link: string) => void) & ((event: "click", ev: MouseEvent, link?: string | undefined) => void);
|
|
61
|
+
$el: HTMLDivElement;
|
|
62
|
+
$options: import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<import('../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
63
|
+
layout: {
|
|
64
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').AnchorDirectionT>;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
size: {
|
|
68
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').AnchorSizeT>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
container: {
|
|
72
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<string | HTMLElement | Window>;
|
|
73
|
+
};
|
|
74
|
+
bounds: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
targetOffset: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
82
|
+
changeHash: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onChange?: ((link: string) => any) | undefined;
|
|
88
|
+
onClick?: ((ev: MouseEvent, link?: string | undefined) => any) | undefined;
|
|
89
|
+
}>, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
90
|
+
change: (link: string) => any;
|
|
91
|
+
click: (ev: MouseEvent, link?: string | undefined) => any;
|
|
92
|
+
}, string, {
|
|
93
|
+
size: "medium" | "small" | "menu";
|
|
94
|
+
layout: "h" | "v";
|
|
95
|
+
bounds: number;
|
|
96
|
+
targetOffset: number;
|
|
97
|
+
changeHash: boolean;
|
|
98
|
+
}, {}, string, {}, import('../../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions> & {
|
|
99
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
100
|
+
created?: (() => void) | (() => void)[];
|
|
101
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
102
|
+
mounted?: (() => void) | (() => void)[];
|
|
103
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
104
|
+
updated?: (() => void) | (() => void)[];
|
|
105
|
+
activated?: (() => void) | (() => void)[];
|
|
106
|
+
deactivated?: (() => void) | (() => void)[];
|
|
107
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
108
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
109
|
+
destroyed?: (() => void) | (() => void)[];
|
|
110
|
+
unmounted?: (() => void) | (() => void)[];
|
|
111
|
+
renderTracked?: ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
|
|
112
|
+
renderTriggered?: ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
|
|
113
|
+
errorCaptured?: ((err: unknown, instance: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
114
|
+
};
|
|
115
|
+
$forceUpdate: () => void;
|
|
116
|
+
$nextTick: typeof import('../../../vue/dist/vue.esm-bundler.js').nextTick;
|
|
117
|
+
$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/dist/vue.esm-bundler.js').WatchOptions): import('../../../vue/dist/vue.esm-bundler.js').WatchStopHandle;
|
|
118
|
+
} & Readonly<{
|
|
119
|
+
size: "medium" | "small" | "menu";
|
|
120
|
+
layout: "h" | "v";
|
|
121
|
+
bounds: number;
|
|
122
|
+
targetOffset: number;
|
|
123
|
+
changeHash: boolean;
|
|
124
|
+
}> & Omit<Readonly<import('../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
125
|
+
layout: {
|
|
126
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').AnchorDirectionT>;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
size: {
|
|
130
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').AnchorSizeT>;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
container: {
|
|
134
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<string | HTMLElement | Window>;
|
|
135
|
+
};
|
|
136
|
+
bounds: {
|
|
137
|
+
type: NumberConstructor;
|
|
138
|
+
default: number;
|
|
139
|
+
};
|
|
140
|
+
targetOffset: {
|
|
141
|
+
type: NumberConstructor;
|
|
142
|
+
default: number;
|
|
143
|
+
};
|
|
144
|
+
changeHash: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
}>> & Readonly<{
|
|
149
|
+
onChange?: ((link: string) => any) | undefined;
|
|
150
|
+
onClick?: ((ev: MouseEvent, link?: string | undefined) => any) | undefined;
|
|
151
|
+
}>, "size" | "layout" | "targetOffset" | "bounds" | "changeHash"> & {} & import('../../../vue/dist/vue.esm-bundler.js').ComponentCustomProperties & {} & {
|
|
152
|
+
$slots: {
|
|
153
|
+
default?(_: {}): any;
|
|
154
|
+
};
|
|
155
|
+
}) | null;
|
|
19
156
|
}, any, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, {
|
|
20
157
|
P: {};
|
|
21
158
|
B: {};
|
|
@@ -23,34 +160,49 @@ declare const OArticleAnchor: {
|
|
|
23
160
|
C: {};
|
|
24
161
|
M: {};
|
|
25
162
|
Defaults: {};
|
|
26
|
-
}, Readonly<import('../../index').ArticleAnchorPropsT> & Readonly<{
|
|
163
|
+
}, Readonly<import('../../index').ArticleAnchorPropsT> & Readonly<{
|
|
164
|
+
onChange?: ((link: string) => any) | undefined;
|
|
165
|
+
onClick?: ((ev: MouseEvent, link?: string | undefined) => any) | undefined;
|
|
166
|
+
}>, {
|
|
27
167
|
collect: () => void;
|
|
28
168
|
items: import('../../../vue/dist/vue.esm-bundler.js').ComputedRef<import('../../index').ArticleAnchorItemT[]>;
|
|
29
169
|
}, {}, {}, {}, {
|
|
30
170
|
size: "pc" | "pad" | "mobile";
|
|
31
171
|
items: import('../../index').ArticleAnchorItemT[];
|
|
172
|
+
bounds: number;
|
|
173
|
+
changeHash: boolean;
|
|
32
174
|
radius: string;
|
|
33
175
|
showTitle: boolean;
|
|
34
176
|
selector: string | HTMLElement;
|
|
35
177
|
autoExtract: boolean;
|
|
36
178
|
maxLevel: number;
|
|
37
179
|
writeId: boolean;
|
|
180
|
+
idPrefix: string;
|
|
38
181
|
}>;
|
|
39
182
|
__isFragment?: never;
|
|
40
183
|
__isTeleport?: never;
|
|
41
184
|
__isSuspense?: never;
|
|
42
|
-
} & import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<import('../../index').ArticleAnchorPropsT> & Readonly<{
|
|
185
|
+
} & import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<import('../../index').ArticleAnchorPropsT> & Readonly<{
|
|
186
|
+
onChange?: ((link: string) => any) | undefined;
|
|
187
|
+
onClick?: ((ev: MouseEvent, link?: string | undefined) => any) | undefined;
|
|
188
|
+
}>, {
|
|
43
189
|
collect: () => void;
|
|
44
190
|
items: import('../../../vue/dist/vue.esm-bundler.js').ComputedRef<import('../../index').ArticleAnchorItemT[]>;
|
|
45
|
-
}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
191
|
+
}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
192
|
+
change: (link: string) => any;
|
|
193
|
+
click: (ev: MouseEvent, link?: string | undefined) => any;
|
|
194
|
+
}, string, {
|
|
46
195
|
size: "pc" | "pad" | "mobile";
|
|
47
196
|
items: import('../../index').ArticleAnchorItemT[];
|
|
197
|
+
bounds: number;
|
|
198
|
+
changeHash: boolean;
|
|
48
199
|
radius: string;
|
|
49
200
|
showTitle: boolean;
|
|
50
201
|
selector: string | HTMLElement;
|
|
51
202
|
autoExtract: boolean;
|
|
52
203
|
maxLevel: number;
|
|
53
204
|
writeId: boolean;
|
|
205
|
+
idPrefix: string;
|
|
54
206
|
}, {}, string, {}, import('../../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions> & import('../../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../vue/dist/vue.esm-bundler.js').ComponentCustomProps & {
|
|
55
207
|
install(app: App): void;
|
|
56
208
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export interface ArticleAnchorItemT {
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/** 锚点链接(含 # 前缀),如 '#manual-a',对应页面元素 id */
|
|
3
|
+
href: string;
|
|
4
4
|
/** 展示标题 */
|
|
5
5
|
title: string;
|
|
6
|
+
/** 透传 OAnchorItem:锚点监听的目标元素(含 # 前缀),不传时监听 href */
|
|
7
|
+
observeHref?: string;
|
|
6
8
|
/** 子锚点(嵌套渲染缩进) */
|
|
7
9
|
children?: ArticleAnchorItemT[];
|
|
8
10
|
}
|
|
@@ -23,10 +25,16 @@ export interface ArticleAnchorPropsT {
|
|
|
23
25
|
maxLevel?: number;
|
|
24
26
|
/** 无 id 标题自动生成 slug 并回写到元素 id(保证锚点可用),默认 true */
|
|
25
27
|
writeId?: boolean;
|
|
28
|
+
/** 自动收集时,元素 id 若以该前缀开头(如 'user-content-'),则 item.href 去掉前缀展示(#a),observeHref 指向完整 id(#user-content-a);默认 '' 不处理 */
|
|
29
|
+
idPrefix?: string;
|
|
26
30
|
/** 透传 OAnchor:滚动容器,默认 window */
|
|
27
31
|
container?: string | HTMLElement | Window;
|
|
28
32
|
/** 透传 OAnchor:滚动偏移量 */
|
|
29
33
|
targetOffset?: number;
|
|
34
|
+
/** 透传 OAnchor:锚点激活的边界范围,默认 5 */
|
|
35
|
+
bounds?: number;
|
|
36
|
+
/** 透传 OAnchor:点击锚点时是否改变地址栏 hash,默认 true */
|
|
37
|
+
changeHash?: boolean;
|
|
30
38
|
/** 卡片圆角 */
|
|
31
39
|
radius?: string;
|
|
32
40
|
}
|
|
@@ -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/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').VNodeProps & import('../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../vue/dist/vue.esm-bundler.js').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
|
|
55
|
+
$attrs: import('../../../vue/dist/vue.esm-bundler.js').Attrs;
|
|
56
|
+
$refs: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
} & {
|
|
59
|
+
targetRef: HTMLDivElement;
|
|
60
|
+
};
|
|
61
|
+
$slots: Readonly<{
|
|
62
|
+
[name: string]: import('../../../vue/dist/vue.esm-bundler.js').Slot<any> | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
$root: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
|
|
65
|
+
$parent: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
|
|
66
|
+
$host: Element | null;
|
|
67
|
+
$emit: (event: "scroll", event: Event) => void;
|
|
68
|
+
$el: HTMLDivElement;
|
|
69
|
+
$options: import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<import('../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
70
|
+
wrapClass: {
|
|
71
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').PropType<"auto" | "always" | "hover" | "never">;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
autoUpdateOnScrollSize: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
};
|
|
99
|
+
barClass: {
|
|
100
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
|
|
135
|
+
renderTriggered?: ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
|
|
136
|
+
errorCaptured?: ((err: unknown, instance: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
137
|
+
};
|
|
138
|
+
$forceUpdate: () => void;
|
|
139
|
+
$nextTick: typeof import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').WatchOptions): import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
149
|
+
wrapClass: {
|
|
150
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').PropType<"auto" | "always" | "hover" | "never">;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
size: {
|
|
172
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
autoUpdateOnScrollSize: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
};
|
|
178
|
+
barClass: {
|
|
179
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').De
|
|
|
29
213
|
hasAnchor: boolean;
|
|
30
214
|
hasFloat: boolean;
|
|
31
215
|
}, {}, {}, {}, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {
|
|
216
|
+
scrollerRef: ({
|
|
217
|
+
$: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').VNodeProps & import('../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../vue/dist/vue.esm-bundler.js').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
|
|
245
|
+
$attrs: import('../../../vue/dist/vue.esm-bundler.js').Attrs;
|
|
246
|
+
$refs: {
|
|
247
|
+
[x: string]: unknown;
|
|
248
|
+
} & {
|
|
249
|
+
targetRef: HTMLDivElement;
|
|
250
|
+
};
|
|
251
|
+
$slots: Readonly<{
|
|
252
|
+
[name: string]: import('../../../vue/dist/vue.esm-bundler.js').Slot<any> | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
$root: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
|
|
255
|
+
$parent: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null;
|
|
256
|
+
$host: Element | null;
|
|
257
|
+
$emit: (event: "scroll", event: Event) => void;
|
|
258
|
+
$el: HTMLDivElement;
|
|
259
|
+
$options: import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<import('../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
260
|
+
wrapClass: {
|
|
261
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').PropType<"auto" | "always" | "hover" | "never">;
|
|
280
|
+
default: string;
|
|
281
|
+
};
|
|
282
|
+
size: {
|
|
283
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
284
|
+
default: string;
|
|
285
|
+
};
|
|
286
|
+
autoUpdateOnScrollSize: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
};
|
|
289
|
+
barClass: {
|
|
290
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
|
|
325
|
+
renderTriggered?: ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void) | ((e: import('../../../vue/dist/vue.esm-bundler.js').DebuggerEvent) => void)[];
|
|
326
|
+
errorCaptured?: ((err: unknown, instance: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('../../../vue/dist/vue.esm-bundler.js').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
327
|
+
};
|
|
328
|
+
$forceUpdate: () => void;
|
|
329
|
+
$nextTick: typeof import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').WatchOptions): import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
339
|
+
wrapClass: {
|
|
340
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').PropType<"auto" | "always" | "hover" | "never">;
|
|
359
|
+
default: string;
|
|
360
|
+
};
|
|
361
|
+
size: {
|
|
362
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
363
|
+
default: string;
|
|
364
|
+
};
|
|
365
|
+
autoUpdateOnScrollSize: {
|
|
366
|
+
type: BooleanConstructor;
|
|
367
|
+
};
|
|
368
|
+
barClass: {
|
|
369
|
+
type: import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').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"]>;
|