gi-component 0.0.33 → 0.0.34
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/button/index.d.ts +4 -0
- package/dist/components/button/src/button.vue.d.ts +25 -0
- package/dist/components/button/src/type.d.ts +4 -0
- package/dist/components/card/index.d.ts +4 -0
- package/dist/components/card/src/card.vue.d.ts +35 -0
- package/dist/components/card/src/type.d.ts +11 -0
- package/dist/components/dialog/index.d.ts +5 -0
- package/dist/components/dialog/src/dialog-content.vue.d.ts +9 -0
- package/dist/components/dialog/src/dialog.d.ts +26 -0
- package/dist/components/dialog/src/dialog.vue.d.ts +43 -0
- package/dist/components/dialog/src/type.d.ts +15 -0
- package/dist/components/dot/index.d.ts +4 -0
- package/dist/components/dot/src/dot.vue.d.ts +7 -0
- package/dist/components/dot/src/type.d.ts +6 -0
- package/dist/components/drawer/index.d.ts +5 -0
- package/dist/components/drawer/src/drawer.d.ts +18 -0
- package/dist/components/drawer/src/drawer.vue.d.ts +47 -0
- package/dist/components/drawer/src/type.d.ts +14 -0
- package/dist/components/edit-table/index.d.ts +4 -0
- package/dist/components/edit-table/src/type.d.ts +23 -0
- package/dist/components/form/index.d.ts +4 -0
- package/dist/components/form/src/type.d.ts +50 -0
- package/dist/components/grid/index.d.ts +6 -0
- package/dist/components/grid/src/context.d.ts +19 -0
- package/dist/components/grid/src/grid-item.vue.d.ts +78 -0
- package/dist/components/grid/src/grid.vue.d.ts +103 -0
- package/dist/components/grid/src/hook/use-index.d.ts +9 -0
- package/dist/components/grid/src/hook/use-responsive-state.d.ts +3 -0
- package/dist/components/grid/src/hook/use-responsive-value.d.ts +24 -0
- package/dist/components/grid/src/interface.d.ts +80 -0
- package/dist/components/grid/src/type.d.ts +0 -0
- package/dist/components/grid/src/utils/global-config.d.ts +1 -0
- package/dist/components/grid/src/utils/index.d.ts +11 -0
- package/dist/components/grid/src/utils/is.d.ts +2 -0
- package/dist/components/grid/src/utils/responsive-observe.d.ts +24 -0
- package/dist/components/input-group/index.d.ts +4 -0
- package/dist/components/input-group/src/input-group.vue.d.ts +17 -0
- package/dist/components/input-group/src/type.d.ts +2 -0
- package/dist/components/input-search/index.d.ts +4 -0
- package/dist/components/input-search/src/input-search.vue.d.ts +22 -0
- package/dist/components/input-search/src/type.d.ts +6 -0
- package/dist/components/page-layout/index.d.ts +4 -0
- package/dist/components/page-layout/src/page-layout.vue.d.ts +19 -0
- package/dist/components/page-layout/src/split-button.vue.d.ts +26 -0
- package/dist/components/page-layout/src/type.d.ts +11 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/src/TableColumn.vue.d.ts +10 -0
- package/dist/components/table/src/type.d.ts +20 -0
- package/dist/components/tabs/index.d.ts +4 -0
- package/dist/components/tabs/src/tabs.vue.d.ts +79 -0
- package/dist/components/tabs/src/type.d.ts +12 -0
- package/dist/components/tree-transfer/index.d.ts +4 -0
- package/dist/components/tree-transfer/src/tree-transfer.vue.d.ts +14436 -0
- package/dist/components/tree-transfer/src/type.d.ts +6 -0
- package/dist/components/tree-transfer/src/utils.d.ts +9 -0
- package/dist/gi.css +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useBemClass.d.ts +3 -0
- package/dist/index.d.ts +55 -15372
- package/dist/index.es.js +18 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/tool.d.ts +6 -0
- package/dist/utils/createSelectDialog.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +9 -1
- package/packages/components/card/src/card.vue +9 -5
- package/packages/components/dialog/src/dialog-content.vue +0 -5
- package/packages/components/page-layout/src/page-layout.vue +11 -12
- package/packages/components/tabs/src/tabs.vue +2 -2
- package/packages/styles/index.scss +0 -5
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export interface ResponsiveValue {
|
|
2
|
+
/**
|
|
3
|
+
* @zh >= 1600px 响应式配置
|
|
4
|
+
* @en >= 1600px responsive configuration
|
|
5
|
+
*/
|
|
6
|
+
xxl?: number;
|
|
7
|
+
/**
|
|
8
|
+
* @zh >= 1200px 响应式配置
|
|
9
|
+
* @en >= 1200px responsive configuration
|
|
10
|
+
*/
|
|
11
|
+
xl?: number;
|
|
12
|
+
/**
|
|
13
|
+
* @zh >= 992px 响应式配置
|
|
14
|
+
* @en >= 992px responsive configuration
|
|
15
|
+
*/
|
|
16
|
+
lg?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @zh >= 768px 响应式配置
|
|
19
|
+
* @en >= 768px responsive configuration
|
|
20
|
+
*/
|
|
21
|
+
md?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @zh >= 576px 响应式配置
|
|
24
|
+
* @en >= 576px responsive configuration
|
|
25
|
+
*/
|
|
26
|
+
sm?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @zh < 576px 响应式配置
|
|
29
|
+
* @en <576px responsive configuration
|
|
30
|
+
*/
|
|
31
|
+
xs?: number;
|
|
32
|
+
}
|
|
33
|
+
export type FlexType = number | string | 'initial' | 'auto' | 'none';
|
|
34
|
+
export interface RowProps {
|
|
35
|
+
gutter?: number | ResponsiveValue | ResponsiveValue[];
|
|
36
|
+
justify?: 'start' | 'center' | 'end' | 'space-around' | 'space-between';
|
|
37
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
38
|
+
div?: boolean;
|
|
39
|
+
wrap?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface ColProps {
|
|
42
|
+
span?: number;
|
|
43
|
+
offset?: number | undefined;
|
|
44
|
+
order?: number | undefined;
|
|
45
|
+
xs?: number | {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
} | undefined;
|
|
48
|
+
sm?: number | {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
} | undefined;
|
|
51
|
+
md?: number | {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
} | undefined;
|
|
54
|
+
lg?: number | {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
} | undefined;
|
|
57
|
+
xl?: number | {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
} | undefined;
|
|
60
|
+
xxl?: number | {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
} | undefined;
|
|
63
|
+
flex?: number | string | 'initial' | 'auto' | 'none' | undefined;
|
|
64
|
+
}
|
|
65
|
+
export interface GridProps {
|
|
66
|
+
cols?: number | ResponsiveValue;
|
|
67
|
+
rowGap?: number | ResponsiveValue;
|
|
68
|
+
colGap?: number | ResponsiveValue;
|
|
69
|
+
collapsed?: boolean;
|
|
70
|
+
collapsedRows?: number;
|
|
71
|
+
}
|
|
72
|
+
export interface GridItemProps {
|
|
73
|
+
span?: number | ResponsiveValue;
|
|
74
|
+
offset?: number | ResponsiveValue;
|
|
75
|
+
suffix?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface GridItemData extends GridItemProps {
|
|
78
|
+
span: number;
|
|
79
|
+
offset: number;
|
|
80
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPrefixCls(name: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GridItemData } from '../interface';
|
|
2
|
+
export declare function resolveItemData(cols: number, props: GridItemData): GridItemData;
|
|
3
|
+
export declare function setItemVisible({ cols, collapsed, collapsedRows, itemDataList }: {
|
|
4
|
+
cols: number;
|
|
5
|
+
collapsed: boolean;
|
|
6
|
+
collapsedRows: number;
|
|
7
|
+
itemDataList: GridItemData[];
|
|
8
|
+
}): {
|
|
9
|
+
overflow: boolean;
|
|
10
|
+
displayIndexList: number[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
2
|
+
export type BreakpointMap = Partial<Record<Breakpoint, string>>;
|
|
3
|
+
export type ScreenMap = Partial<Record<Breakpoint, boolean>>;
|
|
4
|
+
export declare const responsiveArray: Breakpoint[];
|
|
5
|
+
export declare const responsiveMap: BreakpointMap;
|
|
6
|
+
type SubscribeFunc = (screens: ScreenMap, breakpointChecked: Breakpoint) => void;
|
|
7
|
+
interface MediaQueryResult {
|
|
8
|
+
matches: boolean;
|
|
9
|
+
}
|
|
10
|
+
type MediaQueryListener = (matches: MediaQueryResult) => void;
|
|
11
|
+
declare const responsiveObserve: {
|
|
12
|
+
matchHandlers: {
|
|
13
|
+
[key: string]: {
|
|
14
|
+
mql: MediaQueryList;
|
|
15
|
+
listener: MediaQueryListener;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
dispatch: (pointMap: ScreenMap, breakpointChecked: Breakpoint) => boolean;
|
|
19
|
+
subscribe: (func: SubscribeFunc) => string;
|
|
20
|
+
unsubscribe: (token: string) => void;
|
|
21
|
+
unregister: () => void;
|
|
22
|
+
register: () => void;
|
|
23
|
+
};
|
|
24
|
+
export default responsiveObserve;
|
|
@@ -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,22 @@
|
|
|
1
|
+
import { InputSearchProps } from './type';
|
|
2
|
+
declare const model: import('vue').ModelRef<string | undefined, string, string | undefined, string | undefined>;
|
|
3
|
+
type __VLS_Props = InputSearchProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: typeof model['value'];
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
9
|
+
} & {
|
|
10
|
+
clear: () => any;
|
|
11
|
+
search: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
onClear?: (() => any) | undefined;
|
|
14
|
+
onSearch?: (() => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
readonly: boolean;
|
|
20
|
+
disabledHideButton: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PageLayoutProps } from './type';
|
|
2
|
+
declare function __VLS_template(): any;
|
|
3
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<PageLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageLayoutProps> & Readonly<{}>, {
|
|
5
|
+
size: string | number;
|
|
6
|
+
bordered: boolean;
|
|
7
|
+
headerStyle: import('vue').CSSProperties;
|
|
8
|
+
bodyStyle: import('vue').CSSProperties;
|
|
9
|
+
collapse: boolean;
|
|
10
|
+
leftStyle: import('vue').CSSProperties;
|
|
11
|
+
toolStyle: import('vue').CSSProperties;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** 按钮类型 */
|
|
2
|
+
type ButtonType = 'default' | 'circle';
|
|
3
|
+
/** 组件属性定义 */
|
|
4
|
+
interface Props {
|
|
5
|
+
/** 是否折叠状态 */
|
|
6
|
+
collapsed?: boolean;
|
|
7
|
+
/** 按钮类型 */
|
|
8
|
+
type?: ButtonType;
|
|
9
|
+
/** 图标大小 */
|
|
10
|
+
iconSize?: number;
|
|
11
|
+
/** 是否禁用 */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
click: () => any;
|
|
16
|
+
"update:collapsed": (value: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
onClick?: (() => any) | undefined;
|
|
19
|
+
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
type: ButtonType;
|
|
23
|
+
collapsed: boolean;
|
|
24
|
+
iconSize: number;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SplitterPanelProps } from 'element-plus';
|
|
2
|
+
import { CSSProperties } from 'vue';
|
|
3
|
+
export interface PageLayoutProps {
|
|
4
|
+
size?: SplitterPanelProps['size'];
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
collapse?: boolean;
|
|
7
|
+
leftStyle?: CSSProperties;
|
|
8
|
+
headerStyle?: CSSProperties;
|
|
9
|
+
toolStyle?: CSSProperties;
|
|
10
|
+
bodyStyle?: CSSProperties;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare function __VLS_template(): any;
|
|
2
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
3
|
+
declare const __VLS_component: any;
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
7
|
+
new (): {
|
|
8
|
+
$slots: S;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TableProps as ElTableProps, PaginationProps, TableColumnInstance } from 'element-plus';
|
|
2
|
+
import { ExtractPropTypes, VNode } from 'vue';
|
|
3
|
+
export type DefaultRow = Record<PropertyKey, any>;
|
|
4
|
+
export interface TableColumnItem<T extends DefaultRow = any> extends Omit<TableColumnInstance['$props'], never> {
|
|
5
|
+
slotName?: string;
|
|
6
|
+
children?: TableColumnItem[];
|
|
7
|
+
render?: (scope: TableSlotScope<T>) => VNode | VNode[] | string;
|
|
8
|
+
}
|
|
9
|
+
export type TableSlotScope<T extends DefaultRow = any> = {
|
|
10
|
+
$index: number;
|
|
11
|
+
cellIndex: number;
|
|
12
|
+
column: TableColumnInstance['$props'];
|
|
13
|
+
row: T;
|
|
14
|
+
expanded: boolean;
|
|
15
|
+
};
|
|
16
|
+
export interface TableProps<T extends DefaultRow = any> extends ExtractPropTypes<ElTableProps<Record<string | number | symbol, any>>> {
|
|
17
|
+
data?: T[];
|
|
18
|
+
columns?: TableColumnItem[];
|
|
19
|
+
pagination?: Partial<PaginationProps> | boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { TabsProps as ElTabsProps } from 'element-plus';
|
|
2
|
+
import { TabsOptionItem, TabsProps } from './type.ts';
|
|
3
|
+
type __VLS_Props = TabsProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: ElTabsProps['modelValue'];
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
default: () => void;
|
|
11
|
+
extra: () => void;
|
|
12
|
+
label: (e: {
|
|
13
|
+
data: TabsOptionItem;
|
|
14
|
+
}) => void;
|
|
15
|
+
}> & {
|
|
16
|
+
default: () => void;
|
|
17
|
+
extra: () => void;
|
|
18
|
+
label: (e: {
|
|
19
|
+
data: TabsOptionItem;
|
|
20
|
+
}) => void;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (value: (string | number) | undefined) => any;
|
|
28
|
+
} & {
|
|
29
|
+
"tab-click": (pane: {
|
|
30
|
+
uid: number;
|
|
31
|
+
getVnode: () => import('vue').VNode;
|
|
32
|
+
slots: import('vue').Slots;
|
|
33
|
+
props: {
|
|
34
|
+
readonly disabled: boolean;
|
|
35
|
+
readonly lazy: boolean;
|
|
36
|
+
readonly label: string;
|
|
37
|
+
readonly name?: (string | number) | undefined;
|
|
38
|
+
readonly closable?: boolean | undefined;
|
|
39
|
+
};
|
|
40
|
+
paneName: import('element-plus').TabPaneName | undefined;
|
|
41
|
+
active: boolean;
|
|
42
|
+
index: string | undefined;
|
|
43
|
+
isClosable: boolean;
|
|
44
|
+
isFocusInsidePane: () => boolean | undefined;
|
|
45
|
+
}, ev: Event) => any;
|
|
46
|
+
"tab-change": (value: string) => any;
|
|
47
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
48
|
+
"onUpdate:modelValue"?: ((value: (string | number) | undefined) => any) | undefined;
|
|
49
|
+
"onTab-click"?: ((pane: {
|
|
50
|
+
uid: number;
|
|
51
|
+
getVnode: () => import('vue').VNode;
|
|
52
|
+
slots: import('vue').Slots;
|
|
53
|
+
props: {
|
|
54
|
+
readonly disabled: boolean;
|
|
55
|
+
readonly lazy: boolean;
|
|
56
|
+
readonly label: string;
|
|
57
|
+
readonly name?: (string | number) | undefined;
|
|
58
|
+
readonly closable?: boolean | undefined;
|
|
59
|
+
};
|
|
60
|
+
paneName: import('element-plus').TabPaneName | undefined;
|
|
61
|
+
active: boolean;
|
|
62
|
+
index: string | undefined;
|
|
63
|
+
isClosable: boolean;
|
|
64
|
+
isFocusInsidePane: () => boolean | undefined;
|
|
65
|
+
}, ev: Event) => any) | undefined;
|
|
66
|
+
"onTab-change"?: ((value: string) => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
size: "small" | "medium";
|
|
69
|
+
type: ElTabsProps["type"];
|
|
70
|
+
inner: boolean;
|
|
71
|
+
options: TabsOptionItem[];
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
73
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
74
|
+
export default _default;
|
|
75
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
76
|
+
new (): {
|
|
77
|
+
$slots: S;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TabsProps as ElTabsProps } from 'element-plus';
|
|
2
|
+
export type TabsOptionItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
name: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export interface TabsProps extends Partial<Pick<ElTabsProps, 'type' | 'stretch'>> {
|
|
8
|
+
type?: ElTabsProps['type'];
|
|
9
|
+
options?: TabsOptionItem[];
|
|
10
|
+
size?: 'small' | 'medium';
|
|
11
|
+
inner?: boolean;
|
|
12
|
+
}
|