@me-framework/me-ui-antdv-next 0.0.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/LICENSE +21 -0
- package/README.en.md +82 -0
- package/README.md +82 -0
- package/dist/components/body/index.d.ts +4 -0
- package/dist/components/body/index.vue.d.ts +176 -0
- package/dist/components/body/types.d.ts +30 -0
- package/dist/components/box/index.d.ts +4 -0
- package/dist/components/box/index.vue.d.ts +120 -0
- package/dist/components/box/types.d.ts +34 -0
- package/dist/components/breadcrumb/index.d.ts +4 -0
- package/dist/components/breadcrumb/index.vue.d.ts +31 -0
- package/dist/components/breadcrumb/types.d.ts +76 -0
- package/dist/components/icon/index.d.ts +16 -0
- package/dist/components/icon/index.vue.d.ts +129 -0
- package/dist/components/icon/types.d.ts +32 -0
- package/dist/components/input-gps/index.d.ts +4 -0
- package/dist/components/input-gps/index.vue.d.ts +19 -0
- package/dist/components/input-gps/map.vue.d.ts +21 -0
- package/dist/components/input-gps/types.d.ts +44 -0
- package/dist/components/input-icon-selector/index.d.ts +4 -0
- package/dist/components/input-icon-selector/index.vue.d.ts +33 -0
- package/dist/components/input-icon-selector/types.d.ts +39 -0
- package/dist/components/input-radio/index.d.ts +4 -0
- package/dist/components/input-radio/index.vue.d.ts +106 -0
- package/dist/components/input-radio/types.d.ts +23 -0
- package/dist/components/menu/MenuTreeItem.vue.d.ts +14 -0
- package/dist/components/menu/index.d.ts +4 -0
- package/dist/components/menu/index.vue.d.ts +50 -0
- package/dist/components/menu/types.d.ts +270 -0
- package/dist/components/message/index.d.ts +16 -0
- package/dist/components/message/index.vue.d.ts +39 -0
- package/dist/components/message/types.d.ts +97 -0
- package/dist/components/modal/index.d.ts +4 -0
- package/dist/components/modal/index.vue.d.ts +36 -0
- package/dist/components/modal/types.d.ts +24 -0
- package/dist/components/nav/index.d.ts +4 -0
- package/dist/components/nav/index.vue.d.ts +37 -0
- package/dist/components/nav/types.d.ts +102 -0
- package/dist/components/tree-menu/TreeMenuActions.vue.d.ts +35 -0
- package/dist/components/tree-menu/TreeMenuCard.vue.d.ts +40 -0
- package/dist/components/tree-menu/TreeMenuEdit.vue.d.ts +127 -0
- package/dist/components/tree-menu/TreeMenuNode.vue.d.ts +40 -0
- package/dist/components/tree-menu/index.d.ts +4 -0
- package/dist/components/tree-menu/index.vue.d.ts +345 -0
- package/dist/components/tree-menu/types.d.ts +133 -0
- package/dist/composables/useColor.d.ts +8 -0
- package/dist/data/menu.json +3686 -0
- package/dist/icons/me-icon-test.svg +3 -0
- package/dist/images/bg/0.jpg +0 -0
- package/dist/images/logo/0.svg +24 -0
- package/dist/index.d.ts +35 -0
- package/dist/me-ui-antdv-next.css +2 -0
- package/dist/me-ui-antdv-next.js +90528 -0
- package/dist/me-ui-antdv-next.umd.cjs +262 -0
- package/dist/shims-vue.d.ts +25 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/utils/index.d.ts +16 -0
- package/dist/vite.svg +10 -0
- package/package.json +99 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { PropType, Component } from 'vue';
|
|
2
|
+
import { MeIconType } from './types';
|
|
3
|
+
declare var __VLS_7: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_7) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
/**
|
|
9
|
+
* 图标名称 / 组件 / 路径
|
|
10
|
+
* - lucide: 图标名称(PascalCase,如 'Home')或直接传入图标组件
|
|
11
|
+
* - remixicon: 类名(如 'ri-home-line')
|
|
12
|
+
* - iconfont: 类名(如 'icon-home')
|
|
13
|
+
* - svg-file: SVG 文件路径(如 '/icons/home.svg')
|
|
14
|
+
*/
|
|
15
|
+
name: {
|
|
16
|
+
type: PropType<string | Component>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
/** 图标类型:auto 自动识别 / lucide / remixicon / svg / svg-file / iconfont,默认 'auto' */
|
|
20
|
+
type: {
|
|
21
|
+
type: PropType<MeIconType>;
|
|
22
|
+
default: MeIconType;
|
|
23
|
+
};
|
|
24
|
+
/** 图标尺寸,默认 16 */
|
|
25
|
+
size: {
|
|
26
|
+
type: PropType<number | string>;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
/** 图标颜色,默认继承父元素颜色(currentColor) */
|
|
30
|
+
color: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
/** 背景颜色 */
|
|
35
|
+
bgColor: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
/** 圆角大小,默认 0 */
|
|
40
|
+
radius: {
|
|
41
|
+
type: PropType<number | string>;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
/** Lucide 图标线条粗细,默认 2 */
|
|
45
|
+
strokeWidth: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
/** iconfont 前缀类名,默认 'iconfont' */
|
|
50
|
+
iconfontPrefix: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
/** iconfont 模式:class 字体模式 / symbol SVG Symbol 模式,默认 'class' */
|
|
55
|
+
iconfontMode: {
|
|
56
|
+
type: PropType<"class" | "symbol">;
|
|
57
|
+
default: "class" | "symbol";
|
|
58
|
+
};
|
|
59
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
/**
|
|
61
|
+
* 图标名称 / 组件 / 路径
|
|
62
|
+
* - lucide: 图标名称(PascalCase,如 'Home')或直接传入图标组件
|
|
63
|
+
* - remixicon: 类名(如 'ri-home-line')
|
|
64
|
+
* - iconfont: 类名(如 'icon-home')
|
|
65
|
+
* - svg-file: SVG 文件路径(如 '/icons/home.svg')
|
|
66
|
+
*/
|
|
67
|
+
name: {
|
|
68
|
+
type: PropType<string | Component>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
/** 图标类型:auto 自动识别 / lucide / remixicon / svg / svg-file / iconfont,默认 'auto' */
|
|
72
|
+
type: {
|
|
73
|
+
type: PropType<MeIconType>;
|
|
74
|
+
default: MeIconType;
|
|
75
|
+
};
|
|
76
|
+
/** 图标尺寸,默认 16 */
|
|
77
|
+
size: {
|
|
78
|
+
type: PropType<number | string>;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
/** 图标颜色,默认继承父元素颜色(currentColor) */
|
|
82
|
+
color: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
/** 背景颜色 */
|
|
87
|
+
bgColor: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
/** 圆角大小,默认 0 */
|
|
92
|
+
radius: {
|
|
93
|
+
type: PropType<number | string>;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
/** Lucide 图标线条粗细,默认 2 */
|
|
97
|
+
strokeWidth: {
|
|
98
|
+
type: NumberConstructor;
|
|
99
|
+
default: number;
|
|
100
|
+
};
|
|
101
|
+
/** iconfont 前缀类名,默认 'iconfont' */
|
|
102
|
+
iconfontPrefix: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
/** iconfont 模式:class 字体模式 / symbol SVG Symbol 模式,默认 'class' */
|
|
107
|
+
iconfontMode: {
|
|
108
|
+
type: PropType<"class" | "symbol">;
|
|
109
|
+
default: "class" | "symbol";
|
|
110
|
+
};
|
|
111
|
+
}>> & Readonly<{}>, {
|
|
112
|
+
type: MeIconType;
|
|
113
|
+
name: string | Component;
|
|
114
|
+
size: string | number;
|
|
115
|
+
color: string;
|
|
116
|
+
bgColor: string;
|
|
117
|
+
radius: string | number;
|
|
118
|
+
strokeWidth: number;
|
|
119
|
+
iconfontPrefix: string;
|
|
120
|
+
iconfontMode: "symbol" | "class";
|
|
121
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
122
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
123
|
+
declare const _default: typeof __VLS_export;
|
|
124
|
+
export default _default;
|
|
125
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
126
|
+
new (): {
|
|
127
|
+
$slots: S;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
/** 图标类型:auto 自动识别 / lucide / remixicon / svg 内联 / svg-file 本地文件 / iconfont */
|
|
3
|
+
export type MeIconType = 'auto' | 'lucide' | 'remixicon' | 'svg' | 'svg-file' | 'iconfont';
|
|
4
|
+
/** MeIcon 组件 Props */
|
|
5
|
+
export interface MeIconProps {
|
|
6
|
+
/**
|
|
7
|
+
* 图标名称 / 组件 / 路径
|
|
8
|
+
* - lucide: 图标名称(PascalCase,如 'Home')或直接传入图标组件
|
|
9
|
+
* - remixicon: 类名(如 'ri-home-line')
|
|
10
|
+
* - iconfont: 类名(如 'icon-home')
|
|
11
|
+
* - svg-file: SVG 文件路径(如 '/icons/home.svg')
|
|
12
|
+
*/
|
|
13
|
+
name?: string | Component;
|
|
14
|
+
/** 图标类型,默认 auto 自动识别 */
|
|
15
|
+
type?: MeIconType;
|
|
16
|
+
/** 图标尺寸,默认 16 */
|
|
17
|
+
size?: number | string;
|
|
18
|
+
/** 图标颜色,默认 currentColor */
|
|
19
|
+
color?: string;
|
|
20
|
+
/** 背景颜色 */
|
|
21
|
+
bgColor?: string;
|
|
22
|
+
/** 圆角大小,默认 0 */
|
|
23
|
+
radius?: number | string;
|
|
24
|
+
/** Lucide 图标线条粗细,默认 2 */
|
|
25
|
+
strokeWidth?: number;
|
|
26
|
+
/** iconfont 前缀类名,默认 'iconfont' */
|
|
27
|
+
iconfontPrefix?: string;
|
|
28
|
+
/** iconfont 模式:class 字体模式 / symbol SVG Symbol 模式,默认 'class' */
|
|
29
|
+
iconfontMode?: 'class' | 'symbol';
|
|
30
|
+
}
|
|
31
|
+
/** MeIcon 组件实例类型 */
|
|
32
|
+
export type MeIconInstance = InstanceType<typeof import('./index.vue').default>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MeInputGpsProps } from './types';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<MeInputGpsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
confirm: (data: {
|
|
4
|
+
latitude: number | string;
|
|
5
|
+
longitude: number | string;
|
|
6
|
+
address: string;
|
|
7
|
+
}) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<MeInputGpsProps> & Readonly<{
|
|
9
|
+
onConfirm?: ((data: {
|
|
10
|
+
latitude: number | string;
|
|
11
|
+
longitude: number | string;
|
|
12
|
+
address: string;
|
|
13
|
+
}) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GpsCoord } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isFullscreen?: boolean;
|
|
4
|
+
modelValue?: GpsCoord;
|
|
5
|
+
mapKey?: string;
|
|
6
|
+
securityJsCode?: string;
|
|
7
|
+
};
|
|
8
|
+
/** 重新调整地图尺寸(容器尺寸变化后调用) */
|
|
9
|
+
declare function resize(): void;
|
|
10
|
+
/** 定位到当前坐标并绘制 marker */
|
|
11
|
+
declare function setCenter(): void;
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
13
|
+
resize: typeof resize;
|
|
14
|
+
setCenter: typeof setCenter;
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
"update:modelValue": (value: GpsCoord) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: GpsCoord) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MeInputGps GPS坐标输入组件类型定义
|
|
3
|
+
*/
|
|
4
|
+
/** 位置坐标数据 */
|
|
5
|
+
export interface GpsCoord {
|
|
6
|
+
/** 经度 */
|
|
7
|
+
longitude?: number | string;
|
|
8
|
+
/** 纬度 */
|
|
9
|
+
latitude?: number | string;
|
|
10
|
+
/** 地址名称 */
|
|
11
|
+
address?: string;
|
|
12
|
+
/** 名称 */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** 省市区数组 */
|
|
15
|
+
zone?: string[];
|
|
16
|
+
}
|
|
17
|
+
/** MeInputGps Props */
|
|
18
|
+
export interface MeInputGpsProps {
|
|
19
|
+
/** 纬度 */
|
|
20
|
+
latitude?: number | string;
|
|
21
|
+
/** 经度 */
|
|
22
|
+
longitude?: number | string;
|
|
23
|
+
/** 地址 */
|
|
24
|
+
address?: string;
|
|
25
|
+
/** 高德地图 Web 端 Key */
|
|
26
|
+
mapKey: string;
|
|
27
|
+
/** 高德地图安全密钥(JS API 2.0 必填,开启"加密方式"时使用) */
|
|
28
|
+
securityJsCode?: string;
|
|
29
|
+
/** 输入框占位符 */
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
/** 是否禁用 */
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** MeInputGps Events */
|
|
35
|
+
export interface MeInputGpsEmits {
|
|
36
|
+
/** 确认选择位置 */
|
|
37
|
+
(e: 'confirm', data: {
|
|
38
|
+
latitude: number | string;
|
|
39
|
+
longitude: number | string;
|
|
40
|
+
address: string;
|
|
41
|
+
}): void;
|
|
42
|
+
}
|
|
43
|
+
/** MeInputGps 组件实例类型 */
|
|
44
|
+
export type MeInputGpsInstance = InstanceType<typeof import('./index.vue').default>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MeInputIconSelectorProps, MeInputIconSelectorSource } from './types';
|
|
2
|
+
declare var __VLS_61: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_61) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<MeInputIconSelectorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
change: (value: string) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<MeInputIconSelectorProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
onChange?: ((value: string) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
modelValue: string;
|
|
14
|
+
size: "large" | "middle" | "small";
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
iconfontPrefix: string;
|
|
17
|
+
iconfontMode: "class" | "symbol";
|
|
18
|
+
sources: MeInputIconSelectorSource[];
|
|
19
|
+
iconfontData: string[];
|
|
20
|
+
placeholder: string;
|
|
21
|
+
searchPlaceholder: string;
|
|
22
|
+
pageSize: number;
|
|
23
|
+
popoverWidth: number | string;
|
|
24
|
+
clearable: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** 图标源类型 */
|
|
2
|
+
export type MeInputIconSelectorSource = 'lucide' | 'remixicon' | 'iconfont';
|
|
3
|
+
/** MeInputIconSelector 组件 Props */
|
|
4
|
+
export interface MeInputIconSelectorProps {
|
|
5
|
+
/** v-model 绑定的图标名称 */
|
|
6
|
+
modelValue?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 可选的图标源,默认 ['lucide', 'remixicon', 'iconfont']
|
|
9
|
+
* 顺序决定 Tab 显示顺序
|
|
10
|
+
*/
|
|
11
|
+
sources?: MeInputIconSelectorSource[];
|
|
12
|
+
/** iconfont 图标数据列表 */
|
|
13
|
+
iconfontData?: string[];
|
|
14
|
+
/** 占位符文本 */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
/** 搜索框占位符 */
|
|
17
|
+
searchPlaceholder?: string;
|
|
18
|
+
/** 每页显示数量,默认 30 */
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
/** 弹层宽度,默认 280 */
|
|
21
|
+
popoverWidth?: number | string;
|
|
22
|
+
/** 是否禁用 */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** 输入框尺寸 */
|
|
25
|
+
size?: 'large' | 'middle' | 'small';
|
|
26
|
+
/** 是否可清空 */
|
|
27
|
+
clearable?: boolean;
|
|
28
|
+
/** iconfont 前缀类名,默认 'iconfont' */
|
|
29
|
+
iconfontPrefix?: string;
|
|
30
|
+
/** iconfont 模式:class 字体模式 / symbol SVG Symbol 模式,默认 'class' */
|
|
31
|
+
iconfontMode?: 'class' | 'symbol';
|
|
32
|
+
}
|
|
33
|
+
/** MeInputIconSelector 组件 Emits */
|
|
34
|
+
export interface MeInputIconSelectorEmits {
|
|
35
|
+
(e: 'update:modelValue', value: string): void;
|
|
36
|
+
(e: 'change', value: string): void;
|
|
37
|
+
}
|
|
38
|
+
/** MeInputIconSelector 组件实例类型 */
|
|
39
|
+
export type MeInputIconSelectorInstance = InstanceType<typeof import('./index.vue').default>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/** 标题 */
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
/** 描述 */
|
|
9
|
+
desc: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
/** 是否显示单选圆点 */
|
|
14
|
+
radio: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** 宽度 */
|
|
19
|
+
width: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/** 选中标记是否在顶部 */
|
|
24
|
+
top: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
/** 间隔 */
|
|
29
|
+
gap: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
/** 尺寸 */
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<"small" | "normal">;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
/** 是否禁用 */
|
|
39
|
+
disabled: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
/** 单选框的值 */
|
|
44
|
+
label: {
|
|
45
|
+
type: PropType<string | number | boolean>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
49
|
+
/** 标题 */
|
|
50
|
+
title: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
/** 描述 */
|
|
55
|
+
desc: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
/** 是否显示单选圆点 */
|
|
60
|
+
radio: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** 宽度 */
|
|
65
|
+
width: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/** 选中标记是否在顶部 */
|
|
70
|
+
top: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
/** 间隔 */
|
|
75
|
+
gap: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/** 尺寸 */
|
|
80
|
+
size: {
|
|
81
|
+
type: PropType<"small" | "normal">;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
/** 是否禁用 */
|
|
85
|
+
disabled: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
/** 单选框的值 */
|
|
90
|
+
label: {
|
|
91
|
+
type: PropType<string | number | boolean>;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
}>> & Readonly<{}>, {
|
|
95
|
+
top: boolean;
|
|
96
|
+
width: string;
|
|
97
|
+
title: string;
|
|
98
|
+
size: "small" | "normal";
|
|
99
|
+
radio: boolean;
|
|
100
|
+
label: string | number | boolean;
|
|
101
|
+
desc: string;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
gap: string;
|
|
104
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
declare const _default: typeof __VLS_export;
|
|
106
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** MeInputRadio 组件 Props */
|
|
2
|
+
export interface MeInputRadioProps {
|
|
3
|
+
/** 标题 */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** 描述 */
|
|
6
|
+
desc?: string;
|
|
7
|
+
/** 是否显示单选圆点 */
|
|
8
|
+
radio?: boolean;
|
|
9
|
+
/** 宽度 */
|
|
10
|
+
width?: string;
|
|
11
|
+
/** 选中标记是否在顶部 */
|
|
12
|
+
top?: boolean;
|
|
13
|
+
/** 间隔 */
|
|
14
|
+
gap?: string;
|
|
15
|
+
/** 尺寸 */
|
|
16
|
+
size?: 'small' | 'normal';
|
|
17
|
+
/** 是否禁用 */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** 单选框的值 */
|
|
20
|
+
label?: string | number | boolean;
|
|
21
|
+
}
|
|
22
|
+
/** MeInputRadio 组件实例类型 */
|
|
23
|
+
export type MeInputRadioInstance = InstanceType<typeof import('./index.vue').default>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MeMenuItem } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: MeMenuItem;
|
|
4
|
+
level: number;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
click: (item: MeMenuItem) => any;
|
|
8
|
+
toggle: (id: string) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClick?: ((item: MeMenuItem) => any) | undefined;
|
|
11
|
+
onToggle?: ((id: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { MeMenuItem, MeMenuProps } from './types';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_23: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
logo?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
footer?: (props: typeof __VLS_23) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<MeMenuProps, {
|
|
9
|
+
setBadge: (key: string, badge: string | number | boolean, color?: string) => void;
|
|
10
|
+
removeBadge: (key: string) => void;
|
|
11
|
+
selectedItem: import('vue').ComputedRef<MeMenuItem | null>;
|
|
12
|
+
toggleCollapse: () => void;
|
|
13
|
+
isCollapsed: import('vue').ComputedRef<boolean>;
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
select: (item: MeMenuItem) => any;
|
|
16
|
+
change: (item: MeMenuItem) => any;
|
|
17
|
+
"update:activeId": (value: string) => any;
|
|
18
|
+
"update:selectedId": (value: string) => any;
|
|
19
|
+
"update:collapsed": (value: boolean) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<MeMenuProps> & Readonly<{
|
|
21
|
+
onSelect?: ((item: MeMenuItem) => any) | undefined;
|
|
22
|
+
onChange?: ((item: MeMenuItem) => any) | undefined;
|
|
23
|
+
"onUpdate:activeId"?: ((value: string) => any) | undefined;
|
|
24
|
+
"onUpdate:selectedId"?: ((value: string) => any) | undefined;
|
|
25
|
+
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
data: MeMenuItem[];
|
|
28
|
+
router: boolean;
|
|
29
|
+
height: string | number;
|
|
30
|
+
background: string;
|
|
31
|
+
activeId: string;
|
|
32
|
+
defaultActiveId: string;
|
|
33
|
+
selectedId: string;
|
|
34
|
+
defaultSelectedId: string;
|
|
35
|
+
leftWidth: string | number;
|
|
36
|
+
rightWidth: string | number;
|
|
37
|
+
hideDisabled: boolean;
|
|
38
|
+
showHidden: boolean;
|
|
39
|
+
keyField: string;
|
|
40
|
+
collapsed: boolean;
|
|
41
|
+
collapsedWidth: string | number;
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|