@xto/data 1.4.1 → 1.4.3
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/es/Avatar/index.vue.d.ts +33 -0
- package/es/Avatar/types.d.ts +57 -0
- package/es/Calendar/index.d.ts +9 -0
- package/es/Calendar/index.vue.d.ts +36 -0
- package/es/Card/index.d.ts +8 -0
- package/es/Card/index.vue.d.ts +26 -0
- package/es/Card/types.d.ts +30 -0
- package/es/Carousel/CarouselItem.vue.d.ts +17 -0
- package/es/Carousel/index.d.ts +31 -0
- package/es/Carousel/index.vue.d.ts +54 -0
- package/es/Carousel/types.d.ts +105 -0
- package/es/Collapse/CollapseItem.vue.d.ts +26 -0
- package/es/Collapse/index.d.ts +18 -0
- package/es/Collapse/index.vue.d.ts +32 -0
- package/es/Descriptions/DescriptionsItem.vue.d.ts +26 -0
- package/es/Descriptions/index.vue.d.ts +34 -0
- package/es/Descriptions/types.d.ts +89 -0
- package/es/DynamicTable/index.d.ts +84 -0
- package/es/DynamicTable/index.vue.d.ts +115 -0
- package/es/DynamicTable/types.d.ts +183 -0
- package/es/Empty/index.d.ts +11 -0
- package/es/Empty/index.vue.d.ts +35 -0
- package/es/Image/index.d.ts +25 -0
- package/es/Image/index.vue.d.ts +53 -0
- package/es/InfiniteScroll/index.d.ts +17 -0
- package/es/InfiniteScroll/index.vue.d.ts +48 -0
- package/es/Pagination/index.d.ts +18 -0
- package/es/Pagination/index.vue.d.ts +25 -0
- package/es/Pagination/types.d.ts +46 -0
- package/es/Progress/index.d.ts +16 -0
- package/es/Progress/index.vue.d.ts +19 -0
- package/es/Progress/types.d.ts +54 -0
- package/es/QRCode/index.d.ts +17 -0
- package/es/QRCode/index.vue.d.ts +31 -0
- package/es/Scrollbar/index.vue.d.ts +50 -0
- package/es/Scrollbar/types.d.ts +88 -0
- package/es/Table/TableColumn.vue.d.ts +14 -0
- package/es/Table/index.vue.d.ts +106 -0
- package/es/Table/types.d.ts +176 -0
- package/es/Tag/index.d.ts +15 -0
- package/es/Tag/index.vue.d.ts +36 -0
- package/es/Timeline/TimelineItem.vue.d.ts +38 -0
- package/es/Timeline/index.d.ts +20 -0
- package/es/Timeline/index.vue.d.ts +23 -0
- package/es/Timeline/types.d.ts +70 -0
- package/es/Tree/index.d.ts +217 -0
- package/es/Tree/index.vue.d.ts +105 -0
- package/es/Tree/src/tree-node.vue.d.ts +32 -0
- package/es/Tree/src/useTree.d.ts +91 -0
- package/es/TreeTable/TreeTableColumn.vue.d.ts +14 -0
- package/es/TreeTable/index.d.ts +2 -0
- package/es/TreeTable/index.vue.d.ts +102 -0
- package/es/TreeTable/types.d.ts +164 -0
- package/es/VirtualScroll/index.d.ts +19 -0
- package/es/VirtualScroll/index.vue.d.ts +56 -0
- package/es/index.d.ts +42 -0
- package/es/index.mjs +1641 -1636
- package/es/style.css +1 -1
- package/lib/index.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src?: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
size?: 'large' | 'default' | 'small' | number;
|
|
5
|
+
shape?: 'circle' | 'square';
|
|
6
|
+
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
7
|
+
alt?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLSpanElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
error: (event: Event) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onError?: ((event: Event) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
size: "large" | "default" | "small" | number;
|
|
24
|
+
shape: "circle" | "square";
|
|
25
|
+
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
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,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar 组件类型定义
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Avatar 尺寸
|
|
6
|
+
*/
|
|
7
|
+
export type AvatarSize = 'large' | 'default' | 'small' | number;
|
|
8
|
+
/**
|
|
9
|
+
* Avatar 形状
|
|
10
|
+
*/
|
|
11
|
+
export type AvatarShape = 'circle' | 'square';
|
|
12
|
+
/**
|
|
13
|
+
* Avatar 图片适应方式
|
|
14
|
+
*/
|
|
15
|
+
export type AvatarFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
16
|
+
/**
|
|
17
|
+
* Avatar Props
|
|
18
|
+
*/
|
|
19
|
+
export interface AvatarProps {
|
|
20
|
+
/**
|
|
21
|
+
* 图片地址
|
|
22
|
+
*/
|
|
23
|
+
src?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 图标
|
|
26
|
+
*/
|
|
27
|
+
icon?: string;
|
|
28
|
+
/**
|
|
29
|
+
* 头像尺寸
|
|
30
|
+
* @default 'default'
|
|
31
|
+
*/
|
|
32
|
+
size?: AvatarSize;
|
|
33
|
+
/**
|
|
34
|
+
* 头像形状
|
|
35
|
+
* @default 'circle'
|
|
36
|
+
*/
|
|
37
|
+
shape?: AvatarShape;
|
|
38
|
+
/**
|
|
39
|
+
* 图片适应方式
|
|
40
|
+
* @default 'cover'
|
|
41
|
+
*/
|
|
42
|
+
fit?: AvatarFit;
|
|
43
|
+
/**
|
|
44
|
+
* 图片描述
|
|
45
|
+
*/
|
|
46
|
+
alt?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Avatar Emits
|
|
50
|
+
*/
|
|
51
|
+
export interface AvatarEmits {
|
|
52
|
+
(e: 'error', event: Event): void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Avatar 组件实例类型
|
|
56
|
+
*/
|
|
57
|
+
export type AvatarInstance = InstanceType<typeof import('./index.vue').default>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 绑定值 */
|
|
3
|
+
modelValue?: Date;
|
|
4
|
+
/** 范围 */
|
|
5
|
+
range?: [Date, Date];
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {
|
|
11
|
+
date: Date;
|
|
12
|
+
isCurrentMonth: boolean;
|
|
13
|
+
}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
select: (value: Date) => any;
|
|
21
|
+
change: (value: Date) => any;
|
|
22
|
+
"update:modelValue": (value: Date) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
onSelect?: ((value: Date) => any) | undefined;
|
|
25
|
+
onChange?: ((value: Date) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: Date) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
modelValue: Date;
|
|
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,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
header?: string;
|
|
3
|
+
bodyStyle?: Record<string, any>;
|
|
4
|
+
shadow?: 'always' | 'hover' | 'never';
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
header?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
bodyStyle: Record<string, any>;
|
|
18
|
+
shadow: "always" | "hover" | "never";
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card 组件类型定义
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Card 阴影显示方式
|
|
6
|
+
*/
|
|
7
|
+
export type CardShadow = 'always' | 'hover' | 'never';
|
|
8
|
+
/**
|
|
9
|
+
* Card Props
|
|
10
|
+
*/
|
|
11
|
+
export interface CardProps {
|
|
12
|
+
/**
|
|
13
|
+
* 卡片标题
|
|
14
|
+
*/
|
|
15
|
+
header?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 卡片主体样式
|
|
18
|
+
* @default { padding: '20px' }
|
|
19
|
+
*/
|
|
20
|
+
bodyStyle?: Record<string, any>;
|
|
21
|
+
/**
|
|
22
|
+
* 阴影显示方式
|
|
23
|
+
* @default 'always'
|
|
24
|
+
*/
|
|
25
|
+
shadow?: CardShadow;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Card 组件实例类型
|
|
29
|
+
*/
|
|
30
|
+
export type CardInstance = InstanceType<typeof import('./index.vue').default>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface CarouselProps {
|
|
2
|
+
/** 当前激活的幻灯片索引 */
|
|
3
|
+
activeIndex?: number;
|
|
4
|
+
/** 是否自动切换 */
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
/** 自动切换的时间间隔 */
|
|
7
|
+
interval?: number;
|
|
8
|
+
/** 指示器的位置 */
|
|
9
|
+
indicatorPosition?: 'inside' | 'outside' | 'none';
|
|
10
|
+
/** 指示器的触发方式 */
|
|
11
|
+
trigger?: 'hover' | 'click';
|
|
12
|
+
/** 箭头显示时机 */
|
|
13
|
+
arrow?: 'always' | 'hover' | 'never';
|
|
14
|
+
/** 是否循环显示 */
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
/** 走马灯的高度 */
|
|
17
|
+
height?: string | number;
|
|
18
|
+
}
|
|
19
|
+
export interface CarouselItemProps {
|
|
20
|
+
}
|
|
21
|
+
export interface CarouselEmits {
|
|
22
|
+
'update:activeIndex': (index: number) => void;
|
|
23
|
+
'change': (current: number, prev: number) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface CarouselInstance {
|
|
26
|
+
prev: () => void;
|
|
27
|
+
next: () => void;
|
|
28
|
+
setActiveItem: (index: number) => void;
|
|
29
|
+
}
|
|
30
|
+
export { default as Carousel } from './index.vue';
|
|
31
|
+
export { default as CarouselItem } from './CarouselItem.vue';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 当前激活的幻灯片索引 */
|
|
3
|
+
activeIndex?: number;
|
|
4
|
+
/** 是否自动切换 */
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
/** 自动切换的时间间隔 */
|
|
7
|
+
interval?: number;
|
|
8
|
+
/** 指示器的位置 */
|
|
9
|
+
indicatorPosition?: 'inside' | 'outside' | 'none';
|
|
10
|
+
/** 指示器的触发方式 */
|
|
11
|
+
trigger?: 'hover' | 'click';
|
|
12
|
+
/** 箭头显示时机 */
|
|
13
|
+
arrow?: 'always' | 'hover' | 'never';
|
|
14
|
+
/** 是否循环显示 */
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
/** 走马灯的高度 */
|
|
17
|
+
height?: string | number;
|
|
18
|
+
};
|
|
19
|
+
declare function __VLS_template(): {
|
|
20
|
+
attrs: Partial<{}>;
|
|
21
|
+
slots: {
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
};
|
|
24
|
+
refs: {};
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
29
|
+
prev: () => void;
|
|
30
|
+
next: () => void;
|
|
31
|
+
setActiveItem: (index: number) => void;
|
|
32
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
"update:activeIndex": (index: number) => any;
|
|
34
|
+
change: (current: number, prev: number) => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
+
"onUpdate:activeIndex"?: ((index: number) => any) | undefined;
|
|
37
|
+
onChange?: ((current: number, prev: number) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
height: string | number;
|
|
40
|
+
activeIndex: number;
|
|
41
|
+
autoplay: boolean;
|
|
42
|
+
interval: number;
|
|
43
|
+
indicatorPosition: "inside" | "outside" | "none";
|
|
44
|
+
trigger: "hover" | "click";
|
|
45
|
+
arrow: "always" | "hover" | "never";
|
|
46
|
+
loop: boolean;
|
|
47
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Carousel 组件类型定义
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Carousel 指示器位置
|
|
6
|
+
*/
|
|
7
|
+
export type CarouselIndicatorPosition = 'inside' | 'outside' | 'none';
|
|
8
|
+
/**
|
|
9
|
+
* Carousel 指示器触发方式
|
|
10
|
+
*/
|
|
11
|
+
export type CarouselTrigger = 'hover' | 'click';
|
|
12
|
+
/**
|
|
13
|
+
* Carousel 箭头显示时机
|
|
14
|
+
*/
|
|
15
|
+
export type CarouselArrow = 'always' | 'hover' | 'never';
|
|
16
|
+
/**
|
|
17
|
+
* Carousel Props
|
|
18
|
+
*/
|
|
19
|
+
export interface CarouselProps {
|
|
20
|
+
/**
|
|
21
|
+
* 当前激活的幻灯片索引
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
activeIndex?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 是否自动切换
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
autoplay?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 自动切换的时间间隔(毫秒)
|
|
32
|
+
* @default 3000
|
|
33
|
+
*/
|
|
34
|
+
interval?: number;
|
|
35
|
+
/**
|
|
36
|
+
* 指示器的位置
|
|
37
|
+
* @default 'inside'
|
|
38
|
+
*/
|
|
39
|
+
indicatorPosition?: CarouselIndicatorPosition;
|
|
40
|
+
/**
|
|
41
|
+
* 指示器的触发方式
|
|
42
|
+
* @default 'hover'
|
|
43
|
+
*/
|
|
44
|
+
trigger?: CarouselTrigger;
|
|
45
|
+
/**
|
|
46
|
+
* 箭头显示时机
|
|
47
|
+
* @default 'hover'
|
|
48
|
+
*/
|
|
49
|
+
arrow?: CarouselArrow;
|
|
50
|
+
/**
|
|
51
|
+
* 是否循环显示
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
loop?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 走马灯的高度
|
|
57
|
+
* @default 300
|
|
58
|
+
*/
|
|
59
|
+
height?: string | number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Carousel Emits
|
|
63
|
+
*/
|
|
64
|
+
export interface CarouselEmits {
|
|
65
|
+
(e: 'update:activeIndex', index: number): void;
|
|
66
|
+
(e: 'change', current: number, prev: number): void;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Carousel Expose
|
|
70
|
+
*/
|
|
71
|
+
export interface CarouselExpose {
|
|
72
|
+
/**
|
|
73
|
+
* 切换到上一张
|
|
74
|
+
*/
|
|
75
|
+
prev: () => void;
|
|
76
|
+
/**
|
|
77
|
+
* 切换到下一张
|
|
78
|
+
*/
|
|
79
|
+
next: () => void;
|
|
80
|
+
/**
|
|
81
|
+
* 切换到指定索引
|
|
82
|
+
*/
|
|
83
|
+
setActiveItem: (index: number) => void;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Carousel 组件实例类型
|
|
87
|
+
*/
|
|
88
|
+
export type CarouselInstance = InstanceType<typeof import('./index.vue').default>;
|
|
89
|
+
/**
|
|
90
|
+
* CarouselItem Props
|
|
91
|
+
*/
|
|
92
|
+
export interface CarouselItemProps {
|
|
93
|
+
/**
|
|
94
|
+
* 幻灯片名称
|
|
95
|
+
*/
|
|
96
|
+
name?: string;
|
|
97
|
+
/**
|
|
98
|
+
* 幻灯片标签
|
|
99
|
+
*/
|
|
100
|
+
label?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* CarouselItem 组件实例类型
|
|
104
|
+
*/
|
|
105
|
+
export type CarouselItemInstance = InstanceType<typeof import('./src/carousel-item.vue').default>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 面板名称 */
|
|
3
|
+
name: string;
|
|
4
|
+
/** 标题 */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
title?(_: {}): any;
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as Collapse } from './index.vue';
|
|
2
|
+
import { default as CollapseItem } from './CollapseItem.vue';
|
|
3
|
+
export { Collapse, CollapseItem };
|
|
4
|
+
export default Collapse;
|
|
5
|
+
export type CollapseProps = {
|
|
6
|
+
/** 当前展开的面板 */
|
|
7
|
+
modelValue?: string | string[];
|
|
8
|
+
/** 是否手风琴模式 */
|
|
9
|
+
accordion?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type CollapseItemProps = {
|
|
12
|
+
/** 面板名称 */
|
|
13
|
+
name: string;
|
|
14
|
+
/** 标题 */
|
|
15
|
+
title?: string;
|
|
16
|
+
/** 是否禁用 */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 当前展开的面板 */
|
|
3
|
+
modelValue?: string | string[];
|
|
4
|
+
/** 是否手风琴模式 */
|
|
5
|
+
accordion?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
change: (value: string | string[]) => any;
|
|
18
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onChange?: ((value: string | string[]) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
accordion: boolean;
|
|
24
|
+
modelValue: string | string[];
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
span?: number;
|
|
4
|
+
labelAlign?: 'left' | 'center' | 'right';
|
|
5
|
+
contentAlign?: 'left' | 'center' | 'right';
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
span: number;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
column?: number;
|
|
4
|
+
border?: boolean;
|
|
5
|
+
size?: 'large' | 'default' | 'small';
|
|
6
|
+
labelWidth?: string | number;
|
|
7
|
+
labelAlign?: 'left' | 'center' | 'right';
|
|
8
|
+
contentAlign?: 'left' | 'center' | 'right';
|
|
9
|
+
colon?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
size: "large" | "default" | "small";
|
|
22
|
+
border: boolean;
|
|
23
|
+
column: number;
|
|
24
|
+
labelAlign: "left" | "center" | "right";
|
|
25
|
+
contentAlign: "left" | "center" | "right";
|
|
26
|
+
colon: boolean;
|
|
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
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ComponentSize } from '@xto/core';
|
|
2
|
+
/**
|
|
3
|
+
* Descriptions 对齐方式
|
|
4
|
+
*/
|
|
5
|
+
export type DescriptionsAlign = 'left' | 'center' | 'right';
|
|
6
|
+
/**
|
|
7
|
+
* Descriptions Props
|
|
8
|
+
*/
|
|
9
|
+
export interface DescriptionsProps {
|
|
10
|
+
/**
|
|
11
|
+
* 描述列表标题
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 一行显示的列数
|
|
16
|
+
* @default 3
|
|
17
|
+
*/
|
|
18
|
+
column?: number;
|
|
19
|
+
/**
|
|
20
|
+
* 是否显示边框
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
border?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 描述列表尺寸
|
|
26
|
+
* @default 'default'
|
|
27
|
+
*/
|
|
28
|
+
size?: ComponentSize;
|
|
29
|
+
/**
|
|
30
|
+
* 标签宽度
|
|
31
|
+
*/
|
|
32
|
+
labelWidth?: string | number;
|
|
33
|
+
/**
|
|
34
|
+
* 标签对齐方式
|
|
35
|
+
* @default 'right'
|
|
36
|
+
*/
|
|
37
|
+
labelAlign?: DescriptionsAlign;
|
|
38
|
+
/**
|
|
39
|
+
* 内容对齐方式
|
|
40
|
+
* @default 'left'
|
|
41
|
+
*/
|
|
42
|
+
contentAlign?: DescriptionsAlign;
|
|
43
|
+
/**
|
|
44
|
+
* 是否显示冒号
|
|
45
|
+
* @default true
|
|
46
|
+
*/
|
|
47
|
+
colon?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Descriptions 组件实例类型
|
|
51
|
+
*/
|
|
52
|
+
export type DescriptionsInstance = InstanceType<typeof import('./index.vue').default>;
|
|
53
|
+
/**
|
|
54
|
+
* DescriptionsItem Props
|
|
55
|
+
*/
|
|
56
|
+
export interface DescriptionsItemProps {
|
|
57
|
+
/**
|
|
58
|
+
* 标签
|
|
59
|
+
*/
|
|
60
|
+
label?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 占用列数
|
|
63
|
+
*/
|
|
64
|
+
span?: number;
|
|
65
|
+
/**
|
|
66
|
+
* 标签宽度
|
|
67
|
+
*/
|
|
68
|
+
labelWidth?: string | number;
|
|
69
|
+
/**
|
|
70
|
+
* 标签对齐方式
|
|
71
|
+
*/
|
|
72
|
+
labelAlign?: DescriptionsAlign;
|
|
73
|
+
/**
|
|
74
|
+
* 内容对齐方式
|
|
75
|
+
*/
|
|
76
|
+
contentAlign?: DescriptionsAlign;
|
|
77
|
+
/**
|
|
78
|
+
* 标签类名
|
|
79
|
+
*/
|
|
80
|
+
labelClassName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* 内容类名
|
|
83
|
+
*/
|
|
84
|
+
className?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* DescriptionsItem 组件实例类型
|
|
88
|
+
*/
|
|
89
|
+
export type DescriptionsItemInstance = InstanceType<typeof import('./src/descriptions-item.vue').default>;
|