@mtn-ui/components 1.0.7 → 1.0.8
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/antd-wrapped/action-group/action-group.vue.js +2 -2
- package/dist/antd-wrapped/action-group/action-group.vue2.js +60 -57
- package/dist/antd-wrapped/table/table.js +6 -21
- package/dist/components.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +22 -17
- package/dist/index.mjs +269 -307
- package/package.json +1 -1
- package/dist/antd-wrapped/table/index.js +0 -7
- package/dist/antd-wrapped/table/props.js +0 -35
- package/dist/types/index.d.ts +0 -18
- package/dist/types/packages/components/src/_utils/__tests__/filterMenuByPermission.test.d.ts +0 -1
- package/dist/types/packages/components/src/_utils/__tests__/usePermission.test.d.ts +0 -1
- package/dist/types/packages/components/src/_utils/constants.d.ts +0 -7
- package/dist/types/packages/components/src/_utils/filterMenuByPermission.d.ts +0 -14
- package/dist/types/packages/components/src/_utils/index.d.ts +0 -7
- package/dist/types/packages/components/src/_utils/types.d.ts +0 -7
- package/dist/types/packages/components/src/_utils/usePermission.d.ts +0 -29
- package/dist/types/packages/components/src/antd-wrapped/action-group/__tests__/action-group.test.d.ts +0 -1
- package/dist/types/packages/components/src/antd-wrapped/action-group/index.d.ts +0 -4
- package/dist/types/packages/components/src/antd-wrapped/action-group/props.d.ts +0 -91
- package/dist/types/packages/components/src/antd-wrapped/action-group/types.d.ts +0 -110
- package/dist/types/packages/components/src/antd-wrapped/action-group/utils.d.ts +0 -17
- package/dist/types/packages/components/src/antd-wrapped/button/__tests__/button.test.d.ts +0 -1
- package/dist/types/packages/components/src/antd-wrapped/button/button.d.ts +0 -112
- package/dist/types/packages/components/src/antd-wrapped/button/index.d.ts +0 -5
- package/dist/types/packages/components/src/antd-wrapped/button/props.d.ts +0 -55
- package/dist/types/packages/components/src/antd-wrapped/button/types.d.ts +0 -38
- package/dist/types/packages/components/src/antd-wrapped/button-group/button-group.d.ts +0 -50
- package/dist/types/packages/components/src/antd-wrapped/button-group/index.d.ts +0 -5
- package/dist/types/packages/components/src/antd-wrapped/button-group/props.d.ts +0 -28
- package/dist/types/packages/components/src/antd-wrapped/delete-button/__tests__/delete-button.test.d.ts +0 -1
- package/dist/types/packages/components/src/antd-wrapped/delete-button/index.d.ts +0 -2
- package/dist/types/packages/components/src/antd-wrapped/delete-button/props.d.ts +0 -122
- package/dist/types/packages/components/src/antd-wrapped/dropdown-button/__tests__/dropdown-button.test.d.ts +0 -1
- package/dist/types/packages/components/src/antd-wrapped/dropdown-button/dropdown-button.d.ts +0 -106
- package/dist/types/packages/components/src/antd-wrapped/dropdown-button/index.d.ts +0 -5
- package/dist/types/packages/components/src/antd-wrapped/dropdown-button/props.d.ts +0 -49
- package/dist/types/packages/components/src/antd-wrapped/dropdown-button/types.d.ts +0 -36
- package/dist/types/packages/components/src/antd-wrapped/index.d.ts +0 -10
- package/dist/types/packages/components/src/antd-wrapped/table/index.d.ts +0 -68
- package/dist/types/packages/components/src/antd-wrapped/table/props.d.ts +0 -37
- package/dist/types/packages/components/src/antd-wrapped/table/table.d.ts +0 -67
- package/dist/types/packages/components/src/data-display/index.d.ts +0 -5
- package/dist/types/packages/components/src/data-display/tag/__tests__/tag.test.d.ts +0 -1
- package/dist/types/packages/components/src/data-display/tag/index.d.ts +0 -21
- package/dist/types/packages/components/src/data-display/tag/props.d.ts +0 -11
- package/dist/types/packages/components/src/data-display/tag/tag.d.ts +0 -20
- package/dist/types/packages/components/src/index.d.ts +0 -18
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { ButtonProps } from '../button/props';
|
|
3
|
-
export declare const deleteButtonProps: {
|
|
4
|
-
loading: {
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
default: undefined;
|
|
7
|
-
};
|
|
8
|
-
/** 确认提示文本(支持函数,动态生成) */
|
|
9
|
-
confirm: {
|
|
10
|
-
type: PropType<string | false | ((count?: number) => string)>;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
/** 确认类型:modal-弹窗确认,popconfirm-气泡确认 */
|
|
14
|
-
confirmType: {
|
|
15
|
-
type: PropType<"modal" | "popconfirm">;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
/** Modal 标题 */
|
|
19
|
-
confirmTitle: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
/** 确认按钮文本 */
|
|
24
|
-
okText: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
/** 取消按钮文本 */
|
|
29
|
-
cancelText: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
/** 是否隐藏图标 */
|
|
34
|
-
hideIcon: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
|
-
/** 是否自动处理 Loading(推荐开启) */
|
|
39
|
-
autoLoading: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
/** 删除前验证函数,返回 false 或 Promise<false> 可阻止删除 */
|
|
44
|
-
beforeDelete: {
|
|
45
|
-
type: PropType<() => boolean | Promise<boolean>>;
|
|
46
|
-
default: undefined;
|
|
47
|
-
};
|
|
48
|
-
/** 删除数量(用于批量删除提示) */
|
|
49
|
-
count: {
|
|
50
|
-
type: NumberConstructor;
|
|
51
|
-
default: number;
|
|
52
|
-
};
|
|
53
|
-
/** 是否显示成功提示 */
|
|
54
|
-
showSuccess: {
|
|
55
|
-
type: BooleanConstructor;
|
|
56
|
-
default: boolean;
|
|
57
|
-
};
|
|
58
|
-
/** 成功提示文本 */
|
|
59
|
-
successText: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
/** 是否显示错误提示 */
|
|
64
|
-
showError: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
/** 防抖延迟(ms),0 表示不防抖 */
|
|
69
|
-
debounce: {
|
|
70
|
-
type: NumberConstructor;
|
|
71
|
-
default: number;
|
|
72
|
-
};
|
|
73
|
-
/** 删除事件处理函数(用于 ActionGroup Config API) */
|
|
74
|
-
onDelete: {
|
|
75
|
-
type: PropType<(done: () => void) => void | Promise<void>>;
|
|
76
|
-
default: undefined;
|
|
77
|
-
};
|
|
78
|
-
type: {
|
|
79
|
-
type: PropType<"primary" | "default" | "dashed" | "text" | "link">;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
size: {
|
|
83
|
-
type: PropType<"small" | "middle" | "large">;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
disabled: {
|
|
87
|
-
type: BooleanConstructor;
|
|
88
|
-
default: boolean;
|
|
89
|
-
};
|
|
90
|
-
danger: {
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
default: boolean;
|
|
93
|
-
};
|
|
94
|
-
block: {
|
|
95
|
-
type: BooleanConstructor;
|
|
96
|
-
default: boolean;
|
|
97
|
-
};
|
|
98
|
-
ghost: {
|
|
99
|
-
type: BooleanConstructor;
|
|
100
|
-
default: boolean;
|
|
101
|
-
};
|
|
102
|
-
shape: {
|
|
103
|
-
type: PropType<"default" | "circle" | "round">;
|
|
104
|
-
default: string;
|
|
105
|
-
};
|
|
106
|
-
htmlType: {
|
|
107
|
-
type: PropType<"button" | "submit" | "reset">;
|
|
108
|
-
default: string;
|
|
109
|
-
};
|
|
110
|
-
icon: {
|
|
111
|
-
type: PropType<any>;
|
|
112
|
-
};
|
|
113
|
-
permission: {
|
|
114
|
-
type: PropType<string | string[]>;
|
|
115
|
-
default: undefined;
|
|
116
|
-
};
|
|
117
|
-
permissionAction: {
|
|
118
|
-
type: PropType<"hide" | "disable">;
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
export type DeleteButtonProps = ExtractPropTypes<typeof deleteButtonProps> & Partial<ButtonProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/packages/components/src/antd-wrapped/dropdown-button/dropdown-button.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
text: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
type: {
|
|
7
|
-
type: import('vue').PropType<"primary" | "default" | "dashed" | "text" | "link">;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
size: {
|
|
11
|
-
type: import('vue').PropType<"large" | "middle" | "small">;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
menu: {
|
|
15
|
-
type: import('vue').PropType<import('ant-design-vue').MenuProps["items"]>;
|
|
16
|
-
default: undefined;
|
|
17
|
-
};
|
|
18
|
-
disabled: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
loading: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
danger: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: boolean;
|
|
29
|
-
};
|
|
30
|
-
placement: {
|
|
31
|
-
type: import('vue').PropType<"bottom" | "bottomLeft" | "bottomRight" | "top" | "topLeft" | "topRight">;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
trigger: {
|
|
35
|
-
type: import('vue').PropType<("click" | "hover" | "contextmenu")[]>;
|
|
36
|
-
default: () => string[];
|
|
37
|
-
};
|
|
38
|
-
permission: {
|
|
39
|
-
type: import('vue').PropType<string | string[]>;
|
|
40
|
-
default: undefined;
|
|
41
|
-
};
|
|
42
|
-
permissionAction: {
|
|
43
|
-
type: import('vue').PropType<"hide" | "disable">;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
-
text: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
type: {
|
|
52
|
-
type: import('vue').PropType<"primary" | "default" | "dashed" | "text" | "link">;
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
|
-
size: {
|
|
56
|
-
type: import('vue').PropType<"large" | "middle" | "small">;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
menu: {
|
|
60
|
-
type: import('vue').PropType<import('ant-design-vue').MenuProps["items"]>;
|
|
61
|
-
default: undefined;
|
|
62
|
-
};
|
|
63
|
-
disabled: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
loading: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
danger: {
|
|
72
|
-
type: BooleanConstructor;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
placement: {
|
|
76
|
-
type: import('vue').PropType<"bottom" | "bottomLeft" | "bottomRight" | "top" | "topLeft" | "topRight">;
|
|
77
|
-
default: string;
|
|
78
|
-
};
|
|
79
|
-
trigger: {
|
|
80
|
-
type: import('vue').PropType<("click" | "hover" | "contextmenu")[]>;
|
|
81
|
-
default: () => string[];
|
|
82
|
-
};
|
|
83
|
-
permission: {
|
|
84
|
-
type: import('vue').PropType<string | string[]>;
|
|
85
|
-
default: undefined;
|
|
86
|
-
};
|
|
87
|
-
permissionAction: {
|
|
88
|
-
type: import('vue').PropType<"hide" | "disable">;
|
|
89
|
-
default: string;
|
|
90
|
-
};
|
|
91
|
-
}>> & Readonly<{
|
|
92
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
93
|
-
}>, {
|
|
94
|
-
type: "default" | "link" | "text" | "primary" | "dashed";
|
|
95
|
-
menu: import('ant-design-vue').ItemType[] | undefined;
|
|
96
|
-
text: string;
|
|
97
|
-
size: "small" | "middle" | "large";
|
|
98
|
-
loading: boolean;
|
|
99
|
-
disabled: boolean;
|
|
100
|
-
danger: boolean;
|
|
101
|
-
permission: string | string[];
|
|
102
|
-
permissionAction: "hide" | "disable";
|
|
103
|
-
placement: "bottom" | "bottomLeft" | "bottomRight" | "top" | "topLeft" | "topRight";
|
|
104
|
-
trigger: ("click" | "hover" | "contextmenu")[];
|
|
105
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
106
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as DropdownButton } from './dropdown-button';
|
|
2
|
-
import { DropdownButtonProps } from './props';
|
|
3
|
-
import { MenuItemWithPermission, MenuWithPermission } from './types';
|
|
4
|
-
export { DropdownButton, type DropdownButtonProps, type MenuItemWithPermission, type MenuWithPermission };
|
|
5
|
-
export default DropdownButton;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { MenuProps } from 'ant-design-vue';
|
|
3
|
-
export declare const dropdownButtonProps: {
|
|
4
|
-
text: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
default: string;
|
|
7
|
-
};
|
|
8
|
-
type: {
|
|
9
|
-
type: PropType<"primary" | "default" | "dashed" | "text" | "link">;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
size: {
|
|
13
|
-
type: PropType<"large" | "middle" | "small">;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
menu: {
|
|
17
|
-
type: PropType<MenuProps["items"]>;
|
|
18
|
-
default: undefined;
|
|
19
|
-
};
|
|
20
|
-
disabled: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
loading: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
danger: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
placement: {
|
|
33
|
-
type: PropType<"bottom" | "bottomLeft" | "bottomRight" | "top" | "topLeft" | "topRight">;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
trigger: {
|
|
37
|
-
type: PropType<("click" | "hover" | "contextmenu")[]>;
|
|
38
|
-
default: () => string[];
|
|
39
|
-
};
|
|
40
|
-
permission: {
|
|
41
|
-
type: PropType<string | string[]>;
|
|
42
|
-
default: undefined;
|
|
43
|
-
};
|
|
44
|
-
permissionAction: {
|
|
45
|
-
type: PropType<"hide" | "disable">;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export type DropdownButtonProps = ExtractPropTypes<typeof dropdownButtonProps>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 扩展的菜单项类型,支持权限控制
|
|
3
|
-
* 基于 Ant Design Vue 的 MenuProps['items'],添加权限相关属性
|
|
4
|
-
*/
|
|
5
|
-
export interface MenuItemWithPermission {
|
|
6
|
-
/** 菜单项唯一标识 */
|
|
7
|
-
key?: string;
|
|
8
|
-
/** 菜单项文本 */
|
|
9
|
-
label?: string;
|
|
10
|
-
/** 菜单项图标 */
|
|
11
|
-
icon?: any;
|
|
12
|
-
/** 是否禁用 */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** 是否危险样式 */
|
|
15
|
-
danger?: boolean;
|
|
16
|
-
/** 点击事件 */
|
|
17
|
-
onClick?: (info?: any) => void;
|
|
18
|
-
/** 菜单项类型(用于分割线) */
|
|
19
|
-
type?: "divider";
|
|
20
|
-
/**
|
|
21
|
-
* 权限码(支持单个或多个,满足任一即可)
|
|
22
|
-
* @example 'user:add'
|
|
23
|
-
* @example ['admin', 'user:manage']
|
|
24
|
-
*/
|
|
25
|
-
permission?: string | string[];
|
|
26
|
-
/**
|
|
27
|
-
* 无权限时的行为
|
|
28
|
-
* - 'hide'(默认):隐藏菜单项
|
|
29
|
-
* - 'disable':禁用菜单项(灰色显示但可见)
|
|
30
|
-
*/
|
|
31
|
-
permissionAction?: "hide" | "disable";
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* 扩展的菜单配置类型(数组形式)
|
|
35
|
-
*/
|
|
36
|
-
export type MenuWithPermission = MenuItemWithPermission[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ant Design Vue 封装组件
|
|
3
|
-
* 这些组件基于 Ant Design Vue 二次封装,保持统一的 Tailwind 风格
|
|
4
|
-
*/
|
|
5
|
-
export * from './button';
|
|
6
|
-
export * from './button-group';
|
|
7
|
-
export * from './dropdown-button';
|
|
8
|
-
export * from './action-group';
|
|
9
|
-
export * from './delete-button';
|
|
10
|
-
export * from './table';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export declare const Table: import('../../../../shared/index.ts').WithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
columns: {
|
|
3
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["columns"]>;
|
|
4
|
-
required: boolean;
|
|
5
|
-
};
|
|
6
|
-
dataSource: {
|
|
7
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["dataSource"]>;
|
|
8
|
-
default: () => never[];
|
|
9
|
-
};
|
|
10
|
-
rowKey: {
|
|
11
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["rowKey"]>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
pagination: {
|
|
15
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["pagination"]>;
|
|
16
|
-
default: undefined;
|
|
17
|
-
};
|
|
18
|
-
loading: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
bordered: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
size: {
|
|
27
|
-
type: import('vue').PropType<"small" | "middle" | "large">;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
|
-
columns: {
|
|
32
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["columns"]>;
|
|
33
|
-
required: boolean;
|
|
34
|
-
};
|
|
35
|
-
dataSource: {
|
|
36
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["dataSource"]>;
|
|
37
|
-
default: () => never[];
|
|
38
|
-
};
|
|
39
|
-
rowKey: {
|
|
40
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["rowKey"]>;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
pagination: {
|
|
44
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["pagination"]>;
|
|
45
|
-
default: undefined;
|
|
46
|
-
};
|
|
47
|
-
loading: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
bordered: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
size: {
|
|
56
|
-
type: import('vue').PropType<"small" | "middle" | "large">;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
}>> & Readonly<{}>, {
|
|
60
|
-
size: "small" | "middle" | "large";
|
|
61
|
-
loading: boolean;
|
|
62
|
-
rowKey: string | import('ant-design-vue/es/vc-table/interface').GetRowKey<any> | undefined;
|
|
63
|
-
dataSource: any[] | undefined;
|
|
64
|
-
pagination: false | import('ant-design-vue').TablePaginationConfig | undefined;
|
|
65
|
-
bordered: boolean;
|
|
66
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
67
|
-
export default Table;
|
|
68
|
-
export * from './props';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { TableProps as AntdTableProps } from 'ant-design-vue';
|
|
3
|
-
/**
|
|
4
|
-
* 继承 Ant Design Table 的 Props
|
|
5
|
-
* 可以添加自定义 props 或覆盖默认值
|
|
6
|
-
*/
|
|
7
|
-
export declare const tableProps: {
|
|
8
|
-
columns: {
|
|
9
|
-
type: PropType<AntdTableProps["columns"]>;
|
|
10
|
-
required: boolean;
|
|
11
|
-
};
|
|
12
|
-
dataSource: {
|
|
13
|
-
type: PropType<AntdTableProps["dataSource"]>;
|
|
14
|
-
default: () => never[];
|
|
15
|
-
};
|
|
16
|
-
rowKey: {
|
|
17
|
-
type: PropType<AntdTableProps["rowKey"]>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
pagination: {
|
|
21
|
-
type: PropType<AntdTableProps["pagination"]>;
|
|
22
|
-
default: undefined;
|
|
23
|
-
};
|
|
24
|
-
loading: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
bordered: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
size: {
|
|
33
|
-
type: PropType<"small" | "middle" | "large">;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export type TableProps = ExtractPropTypes<typeof tableProps>;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
columns: {
|
|
3
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["columns"]>;
|
|
4
|
-
required: boolean;
|
|
5
|
-
};
|
|
6
|
-
dataSource: {
|
|
7
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["dataSource"]>;
|
|
8
|
-
default: () => never[];
|
|
9
|
-
};
|
|
10
|
-
rowKey: {
|
|
11
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["rowKey"]>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
pagination: {
|
|
15
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["pagination"]>;
|
|
16
|
-
default: undefined;
|
|
17
|
-
};
|
|
18
|
-
loading: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
bordered: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
size: {
|
|
27
|
-
type: import('vue').PropType<"small" | "middle" | "large">;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
|
-
columns: {
|
|
32
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["columns"]>;
|
|
33
|
-
required: boolean;
|
|
34
|
-
};
|
|
35
|
-
dataSource: {
|
|
36
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["dataSource"]>;
|
|
37
|
-
default: () => never[];
|
|
38
|
-
};
|
|
39
|
-
rowKey: {
|
|
40
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["rowKey"]>;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
pagination: {
|
|
44
|
-
type: import('vue').PropType<import('ant-design-vue').TableProps["pagination"]>;
|
|
45
|
-
default: undefined;
|
|
46
|
-
};
|
|
47
|
-
loading: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
bordered: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
size: {
|
|
56
|
-
type: import('vue').PropType<"small" | "middle" | "large">;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
}>> & Readonly<{}>, {
|
|
60
|
-
size: "small" | "middle" | "large";
|
|
61
|
-
loading: boolean;
|
|
62
|
-
rowKey: string | import('ant-design-vue/es/vc-table/interface').GetRowKey<any> | undefined;
|
|
63
|
-
dataSource: any[] | undefined;
|
|
64
|
-
pagination: false | import('ant-design-vue').TablePaginationConfig | undefined;
|
|
65
|
-
bordered: boolean;
|
|
66
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
67
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const Tag: import('../../../../shared/index.ts').WithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
type: {
|
|
3
|
-
type: import('vue').PropType<"success" | "processing" | "error" | "warning" | "default">;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
color: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
};
|
|
9
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
-
type: {
|
|
11
|
-
type: import('vue').PropType<"success" | "processing" | "error" | "warning" | "default">;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
color: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
};
|
|
17
|
-
}>> & Readonly<{}>, {
|
|
18
|
-
type: "success" | "processing" | "error" | "warning" | "default";
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
20
|
-
export default Tag;
|
|
21
|
-
export * from './props';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
export declare const tagProps: {
|
|
3
|
-
type: {
|
|
4
|
-
type: PropType<"success" | "processing" | "error" | "warning" | "default">;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
color: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export type TagProps = ExtractPropTypes<typeof tagProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
type: {
|
|
3
|
-
type: import('vue').PropType<"success" | "processing" | "error" | "warning" | "default">;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
color: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
};
|
|
9
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
-
type: {
|
|
11
|
-
type: import('vue').PropType<"success" | "processing" | "error" | "warning" | "default">;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
color: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
};
|
|
17
|
-
}>> & Readonly<{}>, {
|
|
18
|
-
type: "success" | "processing" | "error" | "warning" | "default";
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Mtn UI - Vue 3 Component Library
|
|
4
|
-
*
|
|
5
|
-
* 分类导出:
|
|
6
|
-
* - data-display: 数据展示组件(自实现)
|
|
7
|
-
* - antd-wrapped: 复杂组件(基于 Ant Design Vue 封装)
|
|
8
|
-
* - layout: 布局组件(待添加)
|
|
9
|
-
* - navigation: 导航组件(待添加)
|
|
10
|
-
* - data-entry: 数据录入组件(待添加)
|
|
11
|
-
* - feedback: 反馈组件(待添加)
|
|
12
|
-
*/
|
|
13
|
-
export * from './data-display';
|
|
14
|
-
export * from './antd-wrapped';
|
|
15
|
-
declare const _default: {
|
|
16
|
-
install(app: App): void;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|