@dskripchenko/ui 0.2.0 → 0.4.0
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/Affix/UidAffix.vue.d.ts +33 -0
- package/dist/components/Affix/index.d.ts +2 -0
- package/dist/components/Anchor/UidAnchor.vue.d.ts +30 -0
- package/dist/components/Anchor/index.d.ts +2 -0
- package/dist/components/BackTop/UidBackTop.vue.d.ts +34 -0
- package/dist/components/BackTop/index.d.ts +2 -0
- package/dist/components/DescriptionList/UidDescriptionItem.vue.d.ts +34 -0
- package/dist/components/DescriptionList/UidDescriptionList.vue.d.ts +36 -0
- package/dist/components/DescriptionList/context.d.ts +6 -0
- package/dist/components/DescriptionList/index.d.ts +4 -0
- package/dist/components/Mention/UidMention.vue.d.ts +34 -0
- package/dist/components/Mention/index.d.ts +2 -0
- package/dist/components/Rating/UidRating.vue.d.ts +34 -0
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Splitter/UidSplitter.vue.d.ts +50 -0
- package/dist/components/Splitter/index.d.ts +2 -0
- package/dist/components/Stat/UidStat.vue.d.ts +48 -0
- package/dist/components/Stat/index.d.ts +2 -0
- package/dist/components/Tour/UidTour.vue.d.ts +44 -0
- package/dist/components/Tour/index.d.ts +2 -0
- package/dist/components/TreeSelect/UidTreeSelect.vue.d.ts +42 -0
- package/dist/components/TreeSelect/index.d.ts +2 -0
- package/dist/components/Watermark/UidWatermark.vue.d.ts +34 -0
- package/dist/components/Watermark/index.d.ts +2 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +24 -0
- package/dist/index.mjs +1758 -670
- package/dist/patterns/Result/UidResult.vue.d.ts +37 -0
- package/dist/patterns/Result/index.d.ts +2 -0
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface UidAffixProps {
|
|
2
|
+
offsetTop?: number;
|
|
3
|
+
offsetBottom?: number;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
default?(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
default?(): unknown;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
rootRef: HTMLDivElement;
|
|
14
|
+
sentinelRef: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<UidAffixProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
change: (affixed: boolean) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<UidAffixProps> & Readonly<{
|
|
22
|
+
onChange?: ((affixed: boolean) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
rootRef: HTMLDivElement;
|
|
25
|
+
sentinelRef: HTMLDivElement;
|
|
26
|
+
}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface AnchorItem {
|
|
2
|
+
key: string;
|
|
3
|
+
href: string;
|
|
4
|
+
title: string;
|
|
5
|
+
children?: AnchorItem[];
|
|
6
|
+
}
|
|
7
|
+
export interface UidAnchorProps {
|
|
8
|
+
items: AnchorItem[];
|
|
9
|
+
offsetTop?: number;
|
|
10
|
+
target?: () => HTMLElement | Window | null;
|
|
11
|
+
smooth?: boolean;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = UidAnchorProps;
|
|
14
|
+
type __VLS_PublicProps = {
|
|
15
|
+
modelValue?: string;
|
|
16
|
+
} & __VLS_Props;
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
click: (item: AnchorItem, event: MouseEvent) => any;
|
|
19
|
+
"update:modelValue": (value: string) => any;
|
|
20
|
+
change: (key: string) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
onClick?: ((item: AnchorItem, event: MouseEvent) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
onChange?: ((key: string) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
target: () => HTMLElement | Window | null;
|
|
27
|
+
smooth: boolean;
|
|
28
|
+
offsetTop: number;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface UidBackTopProps {
|
|
2
|
+
visibleAfter?: number;
|
|
3
|
+
target?: string | HTMLElement | (() => HTMLElement | null);
|
|
4
|
+
smooth?: boolean;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
default?(): unknown;
|
|
11
|
+
}> & {
|
|
12
|
+
default?(): unknown;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: any;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<UidBackTopProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
click: () => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<UidBackTopProps> & Readonly<{
|
|
21
|
+
onClick?: (() => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
target: string | HTMLElement | (() => HTMLElement | null);
|
|
24
|
+
visibleAfter: number;
|
|
25
|
+
smooth: boolean;
|
|
26
|
+
ariaLabel: string;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface UidDescriptionItemProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
span?: number;
|
|
4
|
+
copyable?: boolean;
|
|
5
|
+
copyValue?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
default?(): unknown;
|
|
11
|
+
label?(): unknown;
|
|
12
|
+
}> & {
|
|
13
|
+
default?(): unknown;
|
|
14
|
+
label?(): unknown;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
itemRef: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<UidDescriptionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidDescriptionItemProps> & Readonly<{}>, {
|
|
23
|
+
span: number;
|
|
24
|
+
copyable: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
itemRef: HTMLDivElement;
|
|
27
|
+
}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Size } from '../../types/index.js';
|
|
2
|
+
export interface UidDescriptionListProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
direction?: 'horizontal' | 'vertical';
|
|
5
|
+
columns?: number;
|
|
6
|
+
bordered?: boolean;
|
|
7
|
+
size?: Size;
|
|
8
|
+
labelWidth?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: Readonly<{
|
|
13
|
+
default?(): unknown;
|
|
14
|
+
title?(): unknown;
|
|
15
|
+
}> & {
|
|
16
|
+
default?(): unknown;
|
|
17
|
+
title?(): unknown;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<UidDescriptionListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidDescriptionListProps> & Readonly<{}>, {
|
|
24
|
+
size: Size;
|
|
25
|
+
direction: "horizontal" | "vertical";
|
|
26
|
+
columns: number;
|
|
27
|
+
bordered: boolean;
|
|
28
|
+
labelWidth: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as UidDescriptionList } from './UidDescriptionList.vue';
|
|
2
|
+
export { default as UidDescriptionItem } from './UidDescriptionItem.vue';
|
|
3
|
+
export type { UidDescriptionListProps } from './UidDescriptionList.vue';
|
|
4
|
+
export type { UidDescriptionItemProps } from './UidDescriptionItem.vue';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface MentionOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface UidMentionProps {
|
|
7
|
+
options: MentionOption[];
|
|
8
|
+
prefix?: string | string[];
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
rows?: number;
|
|
12
|
+
label?: string;
|
|
13
|
+
emptyText?: string;
|
|
14
|
+
filter?: (option: MentionOption, query: string) => boolean;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = UidMentionProps;
|
|
17
|
+
type __VLS_PublicProps = {
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
} & __VLS_Props;
|
|
20
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
select: (option: MentionOption, prefix: string) => any;
|
|
22
|
+
"update:modelValue": (value: string) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
onSelect?: ((option: MentionOption, prefix: string) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
filter: (option: MentionOption, query: string) => boolean;
|
|
28
|
+
rows: number;
|
|
29
|
+
emptyText: string;
|
|
30
|
+
prefix: string | string[];
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
32
|
+
fieldRef: HTMLTextAreaElement;
|
|
33
|
+
}, HTMLDivElement>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Size } from '../../types/index.js';
|
|
2
|
+
export type RatingTone = 'warning' | 'primary' | 'success' | 'danger';
|
|
3
|
+
export interface UidRatingProps {
|
|
4
|
+
max?: number;
|
|
5
|
+
allowHalf?: boolean;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
showLabel?: boolean;
|
|
9
|
+
size?: Size;
|
|
10
|
+
tone?: RatingTone;
|
|
11
|
+
icon?: unknown;
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
type __VLS_Props = UidRatingProps;
|
|
15
|
+
type __VLS_PublicProps = {
|
|
16
|
+
modelValue?: number;
|
|
17
|
+
} & __VLS_Props;
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: number) => any;
|
|
20
|
+
change: (value: number) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
23
|
+
onChange?: ((value: number) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
icon: undefined;
|
|
26
|
+
size: Size;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
max: number;
|
|
29
|
+
readonly: boolean;
|
|
30
|
+
tone: RatingTone;
|
|
31
|
+
allowHalf: boolean;
|
|
32
|
+
showLabel: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface UidSplitterProps {
|
|
2
|
+
direction?: 'horizontal' | 'vertical';
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = UidSplitterProps;
|
|
9
|
+
type __VLS_PublicProps = {
|
|
10
|
+
modelValue?: number;
|
|
11
|
+
} & __VLS_Props;
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: Readonly<{
|
|
15
|
+
start?(): unknown;
|
|
16
|
+
end?(): unknown;
|
|
17
|
+
}> & {
|
|
18
|
+
start?(): unknown;
|
|
19
|
+
end?(): unknown;
|
|
20
|
+
};
|
|
21
|
+
refs: {
|
|
22
|
+
containerRef: HTMLDivElement;
|
|
23
|
+
handleRef: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (value: number) => any;
|
|
30
|
+
change: (value: number) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
33
|
+
onChange?: ((value: number) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
min: number;
|
|
37
|
+
max: number;
|
|
38
|
+
direction: "horizontal" | "vertical";
|
|
39
|
+
step: number;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
|
+
containerRef: HTMLDivElement;
|
|
42
|
+
handleRef: HTMLDivElement;
|
|
43
|
+
}, HTMLDivElement>;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export type StatTone = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
export type StatVariant = 'card' | 'ghost';
|
|
4
|
+
export interface UidStatProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
value?: number | string;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
trend?: number;
|
|
10
|
+
trendSuffix?: string;
|
|
11
|
+
precision?: number;
|
|
12
|
+
formatter?: (value: number | string) => string;
|
|
13
|
+
tone?: StatTone;
|
|
14
|
+
variant?: StatVariant;
|
|
15
|
+
icon?: Component;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
footer?: string;
|
|
18
|
+
}
|
|
19
|
+
declare function __VLS_template(): {
|
|
20
|
+
attrs: Partial<{}>;
|
|
21
|
+
slots: Readonly<{
|
|
22
|
+
icon?(): unknown;
|
|
23
|
+
value?(): unknown;
|
|
24
|
+
trend?(): unknown;
|
|
25
|
+
footer?(): unknown;
|
|
26
|
+
}> & {
|
|
27
|
+
icon?(): unknown;
|
|
28
|
+
value?(): unknown;
|
|
29
|
+
trend?(): unknown;
|
|
30
|
+
footer?(): unknown;
|
|
31
|
+
};
|
|
32
|
+
refs: {};
|
|
33
|
+
rootEl: HTMLDivElement;
|
|
34
|
+
};
|
|
35
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
|
+
declare const __VLS_component: import('vue').DefineComponent<UidStatProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidStatProps> & Readonly<{}>, {
|
|
37
|
+
variant: StatVariant;
|
|
38
|
+
precision: number;
|
|
39
|
+
tone: StatTone;
|
|
40
|
+
trendSuffix: string;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type TourPlacement = 'top' | 'right' | 'bottom' | 'left' | 'center';
|
|
2
|
+
export interface TourStep {
|
|
3
|
+
target?: string | HTMLElement | (() => HTMLElement | null) | null;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
placement?: TourPlacement;
|
|
7
|
+
}
|
|
8
|
+
export interface UidTourProps {
|
|
9
|
+
steps: TourStep[];
|
|
10
|
+
maskClosable?: boolean;
|
|
11
|
+
showSkip?: boolean;
|
|
12
|
+
showProgress?: boolean;
|
|
13
|
+
nextText?: string;
|
|
14
|
+
prevText?: string;
|
|
15
|
+
finishText?: string;
|
|
16
|
+
skipText?: string;
|
|
17
|
+
}
|
|
18
|
+
type __VLS_Props = UidTourProps;
|
|
19
|
+
type __VLS_PublicProps = {
|
|
20
|
+
modelValue?: boolean;
|
|
21
|
+
'current'?: number;
|
|
22
|
+
} & __VLS_Props;
|
|
23
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (value: boolean) => any;
|
|
25
|
+
change: (index: number) => any;
|
|
26
|
+
close: () => any;
|
|
27
|
+
finish: () => any;
|
|
28
|
+
"update:current": (value: number) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
30
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
31
|
+
onChange?: ((index: number) => any) | undefined;
|
|
32
|
+
onClose?: (() => any) | undefined;
|
|
33
|
+
onFinish?: (() => any) | undefined;
|
|
34
|
+
"onUpdate:current"?: ((value: number) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
maskClosable: boolean;
|
|
37
|
+
showSkip: boolean;
|
|
38
|
+
showProgress: boolean;
|
|
39
|
+
nextText: string;
|
|
40
|
+
prevText: string;
|
|
41
|
+
finishText: string;
|
|
42
|
+
skipText: string;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TreeNode, TreeKey } from '../TreeView/context.js';
|
|
2
|
+
export interface UidTreeSelectProps {
|
|
3
|
+
nodes: TreeNode[];
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
clearable?: boolean;
|
|
8
|
+
defaultExpandAll?: boolean;
|
|
9
|
+
showGuides?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
hint?: string;
|
|
12
|
+
error?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
maxTagCount?: number;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = UidTreeSelectProps;
|
|
17
|
+
type __VLS_PublicProps = {
|
|
18
|
+
modelValue?: TreeKey | TreeKey[] | null;
|
|
19
|
+
'expandedKeys'?: TreeKey[];
|
|
20
|
+
} & __VLS_Props;
|
|
21
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: TreeKey | TreeKey[] | null) => any;
|
|
23
|
+
change: (value: TreeKey | TreeKey[] | null) => any;
|
|
24
|
+
"update:expandedKeys": (value: TreeKey[]) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: TreeKey | TreeKey[] | null) => any) | undefined;
|
|
27
|
+
onChange?: ((value: TreeKey | TreeKey[] | null) => any) | undefined;
|
|
28
|
+
"onUpdate:expandedKeys"?: ((value: TreeKey[]) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
required: boolean;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
placeholder: string;
|
|
33
|
+
multiple: boolean;
|
|
34
|
+
clearable: boolean;
|
|
35
|
+
defaultExpandAll: boolean;
|
|
36
|
+
showGuides: boolean;
|
|
37
|
+
maxTagCount: number;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
containerRef: HTMLDivElement;
|
|
40
|
+
triggerRef: HTMLDivElement;
|
|
41
|
+
}, HTMLDivElement>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface UidWatermarkProps {
|
|
2
|
+
content?: string | string[];
|
|
3
|
+
font?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
rotate?: number;
|
|
6
|
+
gap?: [number, number];
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
default?(): unknown;
|
|
13
|
+
}> & {
|
|
14
|
+
default?(): unknown;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<UidWatermarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidWatermarkProps> & Readonly<{}>, {
|
|
21
|
+
color: string;
|
|
22
|
+
rotate: number;
|
|
23
|
+
font: string;
|
|
24
|
+
content: string | string[];
|
|
25
|
+
gap: [number, number];
|
|
26
|
+
zIndex: number;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|