@me-framework/me-ui-antdv-next 0.0.3 → 0.0.6

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.
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { MeBoxType, MeBoxTrafficLightPosition } from './types';
2
+ import { MeBoxType, MeBoxTrafficLightPosition, MeBoxStripeDirection, MeBoxStripeAngle } from './types';
3
3
  declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
4
4
  type __VLS_Slots = {} & {
5
5
  'header-left'?: (props: typeof __VLS_1) => any;
@@ -51,6 +51,56 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
51
51
  type: PropType<Record<string, any>>;
52
52
  default: () => Record<string, any>;
53
53
  };
54
+ /** 斜条纹是否滚动(仅 type=stripe 时有效),默认 true */
55
+ stripeAnimated: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ /** 斜条纹滚动方向:left / right(仅 type=stripe 时有效),默认 'right' */
60
+ stripeDirection: {
61
+ type: PropType<MeBoxStripeDirection>;
62
+ default: MeBoxStripeDirection;
63
+ };
64
+ /** 斜条纹滚动速度,单位 px/s(仅 type=stripe 时有效),默认 30 */
65
+ stripeSpeed: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
69
+ /** 斜条纹间距,单位 px(仅 type=stripe 时有效),默认 24 */
70
+ stripeSize: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
74
+ /** 斜条纹粗细,单位 px(仅 type=stripe 时有效),默认 2 */
75
+ stripeThickness: {
76
+ type: NumberConstructor;
77
+ default: number;
78
+ };
79
+ /** 斜条纹颜色(仅 type=stripe 时有效),默认使用主题浅色半透明白 */
80
+ stripeColor: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ /** 斜条纹间隙/背景颜色(仅 type=stripe 时有效),默认使用主题浅色背景 */
85
+ stripeBgColor: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ /** 斜条纹边框颜色(仅 type=stripe 时有效),默认使用主题主色浅色 */
90
+ stripeBorderColor: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ /** 斜条纹边框粗细,单位 px(仅 type=stripe 时有效),默认 2 */
95
+ stripeBorderWidth: {
96
+ type: NumberConstructor;
97
+ default: number;
98
+ };
99
+ /** 斜条纹倾斜方向:left 左倾(/) / right 右倾(\\)(仅 type=stripe 时有效),默认 'right' */
100
+ stripeAngle: {
101
+ type: PropType<MeBoxStripeAngle>;
102
+ default: MeBoxStripeAngle;
103
+ };
54
104
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
55
105
  close: (...args: any[]) => void;
56
106
  minimize: (...args: any[]) => void;
@@ -96,6 +146,56 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
96
146
  type: PropType<Record<string, any>>;
97
147
  default: () => Record<string, any>;
98
148
  };
149
+ /** 斜条纹是否滚动(仅 type=stripe 时有效),默认 true */
150
+ stripeAnimated: {
151
+ type: BooleanConstructor;
152
+ default: boolean;
153
+ };
154
+ /** 斜条纹滚动方向:left / right(仅 type=stripe 时有效),默认 'right' */
155
+ stripeDirection: {
156
+ type: PropType<MeBoxStripeDirection>;
157
+ default: MeBoxStripeDirection;
158
+ };
159
+ /** 斜条纹滚动速度,单位 px/s(仅 type=stripe 时有效),默认 30 */
160
+ stripeSpeed: {
161
+ type: NumberConstructor;
162
+ default: number;
163
+ };
164
+ /** 斜条纹间距,单位 px(仅 type=stripe 时有效),默认 24 */
165
+ stripeSize: {
166
+ type: NumberConstructor;
167
+ default: number;
168
+ };
169
+ /** 斜条纹粗细,单位 px(仅 type=stripe 时有效),默认 2 */
170
+ stripeThickness: {
171
+ type: NumberConstructor;
172
+ default: number;
173
+ };
174
+ /** 斜条纹颜色(仅 type=stripe 时有效),默认使用主题浅色半透明白 */
175
+ stripeColor: {
176
+ type: StringConstructor;
177
+ default: string;
178
+ };
179
+ /** 斜条纹间隙/背景颜色(仅 type=stripe 时有效),默认使用主题浅色背景 */
180
+ stripeBgColor: {
181
+ type: StringConstructor;
182
+ default: string;
183
+ };
184
+ /** 斜条纹边框颜色(仅 type=stripe 时有效),默认使用主题主色浅色 */
185
+ stripeBorderColor: {
186
+ type: StringConstructor;
187
+ default: string;
188
+ };
189
+ /** 斜条纹边框粗细,单位 px(仅 type=stripe 时有效),默认 2 */
190
+ stripeBorderWidth: {
191
+ type: NumberConstructor;
192
+ default: number;
193
+ };
194
+ /** 斜条纹倾斜方向:left 左倾(/) / right 右倾(\\)(仅 type=stripe 时有效),默认 'right' */
195
+ stripeAngle: {
196
+ type: PropType<MeBoxStripeAngle>;
197
+ default: MeBoxStripeAngle;
198
+ };
99
199
  }>> & Readonly<{
100
200
  onClose?: ((...args: any[]) => any) | undefined;
101
201
  onMinimize?: ((...args: any[]) => any) | undefined;
@@ -109,6 +209,16 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
109
209
  showTrafficLights: boolean;
110
210
  trafficLightPosition: MeBoxTrafficLightPosition;
111
211
  customStyle: Record<string, any>;
212
+ stripeAnimated: boolean;
213
+ stripeDirection: MeBoxStripeDirection;
214
+ stripeSpeed: number;
215
+ stripeSize: number;
216
+ stripeThickness: number;
217
+ stripeColor: string;
218
+ stripeBgColor: string;
219
+ stripeBorderColor: string;
220
+ stripeBorderWidth: number;
221
+ stripeAngle: MeBoxStripeAngle;
112
222
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
113
223
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
114
224
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,14 @@
1
1
  /** MeBox 容器类型 */
2
- export type MeBoxType = 'default' | 'mac';
2
+ export type MeBoxType = 'default' | 'mac' | 'stripe';
3
3
  /** MeBox 标题栏交通灯位置 */
4
4
  export type MeBoxTrafficLightPosition = 'left' | 'right';
5
+ /** MeBox 斜条纹滚动方向 */
6
+ export type MeBoxStripeDirection = 'left' | 'right';
7
+ /** MeBox 斜条纹倾斜方向 */
8
+ export type MeBoxStripeAngle = 'left' | 'right';
5
9
  /** MeBox 组件 Props */
6
10
  export interface MeBoxProps {
7
- /** 容器类型:default 普通容器 / mac Mac 窗口风格,默认 'default' */
11
+ /** 容器类型:default 普通容器 / mac Mac 窗口风格 / stripe 斜条纹效果,默认 'default' */
8
12
  type?: MeBoxType;
9
13
  /** 标题 */
10
14
  title?: string;
@@ -20,6 +24,26 @@ export interface MeBoxProps {
20
24
  bodyStyle?: Record<string, any>;
21
25
  /** 自定义样式 */
22
26
  customStyle?: Record<string, any>;
27
+ /** 斜条纹是否滚动(仅 type=stripe 时有效),默认 true */
28
+ stripeAnimated?: boolean;
29
+ /** 斜条纹滚动方向:left / right(仅 type=stripe 时有效),默认 'right' */
30
+ stripeDirection?: MeBoxStripeDirection;
31
+ /** 斜条纹滚动速度,单位 px/s(仅 type=stripe 时有效),默认 30 */
32
+ stripeSpeed?: number;
33
+ /** 斜条纹间距,单位 px(仅 type=stripe 时有效),默认 24 */
34
+ stripeSize?: number;
35
+ /** 斜条纹粗细,单位 px(仅 type=stripe 时有效),默认 2 */
36
+ stripeThickness?: number;
37
+ /** 斜条纹颜色(仅 type=stripe 时有效),默认使用主题浅色半透明白 */
38
+ stripeColor?: string;
39
+ /** 斜条纹间隙/背景颜色(仅 type=stripe 时有效),默认使用主题浅色背景 */
40
+ stripeBgColor?: string;
41
+ /** 斜条纹边框颜色(仅 type=stripe 时有效),默认使用主题主色浅色 */
42
+ stripeBorderColor?: string;
43
+ /** 斜条纹边框粗细,单位 px(仅 type=stripe 时有效),默认 2 */
44
+ stripeBorderWidth?: number;
45
+ /** 斜条纹倾斜方向:left 左倾(/) / right 右倾(\\)(仅 type=stripe 时有效),默认 'right' */
46
+ stripeAngle?: MeBoxStripeAngle;
23
47
  }
24
48
  /** MeBox 组件 Emits */
25
49
  export interface MeBoxEmits {
@@ -0,0 +1,4 @@
1
+ import { default as MeCard } from './index.vue';
2
+ export { MeCard };
3
+ export default MeCard;
4
+ export * from './types';
@@ -0,0 +1,151 @@
1
+ import { PropType } from 'vue';
2
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_47: {}, __VLS_49: {}, __VLS_51: {};
3
+ type __VLS_Slots = {} & {
4
+ title?: (props: typeof __VLS_9) => any;
5
+ } & {
6
+ actions?: (props: typeof __VLS_11) => any;
7
+ } & {
8
+ extra?: (props: typeof __VLS_13) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_47) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_49) => any;
13
+ } & {
14
+ footer?: (props: typeof __VLS_51) => any;
15
+ };
16
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
17
+ /** 卡片标题 */
18
+ title: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ /** 是否可折叠 */
23
+ collapsible: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ /** 默认折叠状态(非受控) */
28
+ defaultCollapsed: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ /** 是否折叠(受控) */
33
+ collapsed: {
34
+ type: PropType<boolean | undefined>;
35
+ default: undefined;
36
+ };
37
+ /** 是否支持全屏 */
38
+ fullscreenable: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ /** 是否全屏(受控) */
43
+ fullscreen: {
44
+ type: PropType<boolean | undefined>;
45
+ default: undefined;
46
+ };
47
+ /** 默认全屏状态(非受控) */
48
+ defaultFullscreen: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ /** 卡片固定高度,设置后内容区域超出自动出现滚动条 */
53
+ height: {
54
+ type: PropType<string | number>;
55
+ default: string;
56
+ };
57
+ /** 是否加载中(受控),支持 v-model:loading */
58
+ loading: {
59
+ type: PropType<boolean | undefined>;
60
+ default: undefined;
61
+ };
62
+ /** 默认加载状态(非受控) */
63
+ defaultLoading: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
68
+ "update:collapsed": (collapsed: boolean) => any;
69
+ "fullscreen-change": (fullscreen: boolean) => any;
70
+ "collapse-change": (collapsed: boolean) => any;
71
+ "update:fullscreen": (fullscreen: boolean) => any;
72
+ "update:loading": (loading: boolean) => any;
73
+ "loading-change": (loading: boolean) => any;
74
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
75
+ /** 卡片标题 */
76
+ title: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ /** 是否可折叠 */
81
+ collapsible: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ /** 默认折叠状态(非受控) */
86
+ defaultCollapsed: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ /** 是否折叠(受控) */
91
+ collapsed: {
92
+ type: PropType<boolean | undefined>;
93
+ default: undefined;
94
+ };
95
+ /** 是否支持全屏 */
96
+ fullscreenable: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ /** 是否全屏(受控) */
101
+ fullscreen: {
102
+ type: PropType<boolean | undefined>;
103
+ default: undefined;
104
+ };
105
+ /** 默认全屏状态(非受控) */
106
+ defaultFullscreen: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ /** 卡片固定高度,设置后内容区域超出自动出现滚动条 */
111
+ height: {
112
+ type: PropType<string | number>;
113
+ default: string;
114
+ };
115
+ /** 是否加载中(受控),支持 v-model:loading */
116
+ loading: {
117
+ type: PropType<boolean | undefined>;
118
+ default: undefined;
119
+ };
120
+ /** 默认加载状态(非受控) */
121
+ defaultLoading: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ }>> & Readonly<{
126
+ "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
127
+ "onFullscreen-change"?: ((fullscreen: boolean) => any) | undefined;
128
+ "onCollapse-change"?: ((collapsed: boolean) => any) | undefined;
129
+ "onUpdate:fullscreen"?: ((fullscreen: boolean) => any) | undefined;
130
+ "onUpdate:loading"?: ((loading: boolean) => any) | undefined;
131
+ "onLoading-change"?: ((loading: boolean) => any) | undefined;
132
+ }>, {
133
+ loading: boolean | undefined;
134
+ title: string;
135
+ height: string | number;
136
+ collapsed: boolean | undefined;
137
+ fullscreen: boolean | undefined;
138
+ defaultFullscreen: boolean;
139
+ collapsible: boolean;
140
+ defaultCollapsed: boolean;
141
+ fullscreenable: boolean;
142
+ defaultLoading: boolean;
143
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
144
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
145
+ declare const _default: typeof __VLS_export;
146
+ export default _default;
147
+ type __VLS_WithSlots<T, S> = T & {
148
+ new (): {
149
+ $slots: S;
150
+ };
151
+ };
@@ -0,0 +1,39 @@
1
+ import { CardProps } from 'antdv-next';
2
+ /** MeCard 组件 Props */
3
+ export interface MeCardProps extends CardProps {
4
+ /** 是否可折叠 */
5
+ collapsible?: boolean;
6
+ /** 默认折叠状态(非受控),默认 false */
7
+ defaultCollapsed?: boolean;
8
+ /** 是否折叠(受控) */
9
+ collapsed?: boolean;
10
+ /** 是否支持全屏 */
11
+ fullscreenable?: boolean;
12
+ /** 是否全屏(受控) */
13
+ fullscreen?: boolean;
14
+ /** 默认全屏状态(非受控),默认 false */
15
+ defaultFullscreen?: boolean;
16
+ /** 卡片固定高度,设置后内容区域超出自动出现滚动条 */
17
+ height?: string | number;
18
+ /** 是否加载中(受控),支持 v-model:loading */
19
+ loading?: boolean;
20
+ /** 默认加载状态(非受控),默认 false */
21
+ defaultLoading?: boolean;
22
+ }
23
+ /** MeCard 组件 Emits */
24
+ export interface MeCardEmits {
25
+ /** 折叠状态变化事件 */
26
+ (e: 'update:collapsed', collapsed: boolean): void;
27
+ /** 折叠状态变化事件 */
28
+ (e: 'collapse-change', collapsed: boolean): void;
29
+ /** 全屏状态变化事件 */
30
+ (e: 'update:fullscreen', fullscreen: boolean): void;
31
+ /** 全屏状态变化事件 */
32
+ (e: 'fullscreen-change', fullscreen: boolean): void;
33
+ /** 加载状态变化事件(v-model) */
34
+ (e: 'update:loading', loading: boolean): void;
35
+ /** 加载状态变化事件 */
36
+ (e: 'loading-change', loading: boolean): void;
37
+ }
38
+ /** MeCard 组件实例类型 */
39
+ export type MeCardInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,4 @@
1
+ import { default as MeLoadJsonComponent } from './index.vue';
2
+ export { MeLoadJsonComponent as MeLoadJson };
3
+ export default MeLoadJsonComponent;
4
+ export * from './types';
@@ -0,0 +1,31 @@
1
+ import { MeLoadJsonProps } from './types';
2
+ declare var __VLS_1: {}, __VLS_35: {}, __VLS_73: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ 'footer-left'?: (props: typeof __VLS_35) => any;
7
+ } & {
8
+ 'footer-right'?: (props: typeof __VLS_73) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<MeLoadJsonProps, {
11
+ /** 获取最终结果数据 */
12
+ getData: () => object | any[] | undefined;
13
+ /** 打开对话框 */
14
+ open: () => void;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ change: (data: object | any[]) => any;
17
+ }, string, import('vue').PublicProps, Readonly<MeLoadJsonProps> & Readonly<{
18
+ onChange?: ((data: object | any[]) => any) | undefined;
19
+ }>, {
20
+ data: object | any[] | null;
21
+ width: string | number;
22
+ title: string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * MeLoadJson JSON 导入编辑器组件类型定义
3
+ */
4
+ /** JSON 导入编辑器 Props */
5
+ export interface MeLoadJsonProps {
6
+ /** 初始 JSON 数据 */
7
+ data?: object | any[] | null;
8
+ /** 对话框标题,默认 '导入JSON' */
9
+ title?: string;
10
+ /** 对话框宽度,默认 800 */
11
+ width?: string | number;
12
+ }
13
+ /** JSON 导入编辑器 Events */
14
+ export interface MeLoadJsonEmits {
15
+ /** 确认提交时触发,返回解析后的 JSON 数据 */
16
+ (e: 'change', data: object | any[]): void;
17
+ }
18
+ /** JSON 导入编辑器 Slots */
19
+ export interface MeLoadJsonSlots {
20
+ /** 默认插槽 - 触发按钮内容 */
21
+ default?: () => any;
22
+ /** 底部左侧插槽 */
23
+ 'footer-left'?: () => any;
24
+ /** 底部右侧插槽 */
25
+ 'footer-right'?: () => any;
26
+ }
27
+ /** JSON 导入编辑器实例类型 */
28
+ export interface MeLoadJsonInstance {
29
+ /** 获取最终结果数据 */
30
+ getData: () => object | any[] | undefined;
31
+ /** 打开对话框 */
32
+ open: () => void;
33
+ }
@@ -0,0 +1,4 @@
1
+ import { default as MeLoginPage } from './index.vue';
2
+ export { MeLoginPage };
3
+ export default MeLoginPage;
4
+ export * from './types';
@@ -0,0 +1,64 @@
1
+ import { FormInstance } from 'antdv-next';
2
+ import { MeLoginPageProps, MeLoginFormData } from './types';
3
+ declare var __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_25: {}, __VLS_40: {}, __VLS_55: {}, __VLS_75: {}, __VLS_77: {};
4
+ type __VLS_Slots = {} & {
5
+ background?: (props: typeof __VLS_8) => any;
6
+ } & {
7
+ logo?: (props: typeof __VLS_10) => any;
8
+ } & {
9
+ title?: (props: typeof __VLS_12) => any;
10
+ } & {
11
+ 'form-top'?: (props: typeof __VLS_25) => any;
12
+ } & {
13
+ 'username-prefix'?: (props: typeof __VLS_40) => any;
14
+ } & {
15
+ 'password-prefix'?: (props: typeof __VLS_55) => any;
16
+ } & {
17
+ 'form-bottom'?: (props: typeof __VLS_75) => any;
18
+ } & {
19
+ default?: (props: typeof __VLS_77) => any;
20
+ };
21
+ declare const __VLS_base: import('vue').DefineComponent<MeLoginPageProps, {
22
+ formRef: import('vue').Ref<FormInstance | undefined, FormInstance | undefined>;
23
+ submit: () => Promise<void>;
24
+ reset: () => void;
25
+ getFieldsValue: () => MeLoginFormData;
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
27
+ submit: (values: MeLoginFormData) => any;
28
+ "forgot-password": () => any;
29
+ register: () => any;
30
+ "validate-failed": (errorInfo: any) => any;
31
+ }, string, import('vue').PublicProps, Readonly<MeLoginPageProps> & Readonly<{
32
+ onSubmit?: ((values: MeLoginFormData) => any) | undefined;
33
+ "onForgot-password"?: (() => any) | undefined;
34
+ onRegister?: (() => any) | undefined;
35
+ "onValidate-failed"?: ((errorInfo: any) => any) | undefined;
36
+ }>, {
37
+ loading: boolean;
38
+ title: string;
39
+ subtitle: string;
40
+ logo: string;
41
+ usernameLabel: string;
42
+ usernamePlaceholder: string;
43
+ passwordLabel: string;
44
+ passwordPlaceholder: string;
45
+ submitText: string;
46
+ showRemember: boolean;
47
+ rememberText: string;
48
+ showForgotPassword: boolean;
49
+ forgotPasswordText: string;
50
+ showRegister: boolean;
51
+ registerText: string;
52
+ registerLinkText: string;
53
+ usernameMinLength: number;
54
+ passwordMinLength: number;
55
+ cardWidth: number | string;
56
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
57
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
58
+ declare const _default: typeof __VLS_export;
59
+ export default _default;
60
+ type __VLS_WithSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,96 @@
1
+ import { FormProps, FormInstance } from 'antdv-next';
2
+ /** 登录表单数据 */
3
+ export interface MeLoginFormData {
4
+ /** 用户名 */
5
+ username: string;
6
+ /** 密码 */
7
+ password: string;
8
+ /** 记住我 */
9
+ remember?: boolean;
10
+ }
11
+ /** MeLoginPage 登录页 Props */
12
+ export interface MeLoginPageProps extends Omit<FormProps, 'model' | 'onFinish' | 'onSubmit'> {
13
+ /** 登录标题 */
14
+ title?: string;
15
+ /** 登录副标题/描述 */
16
+ subtitle?: string;
17
+ /** Logo 图片地址 */
18
+ logo?: string;
19
+ /** 用户名标签文字 */
20
+ usernameLabel?: string;
21
+ /** 用户名占位符 */
22
+ usernamePlaceholder?: string;
23
+ /** 密码标签文字 */
24
+ passwordLabel?: string;
25
+ /** 密码占位符 */
26
+ passwordPlaceholder?: string;
27
+ /** 登录按钮文字 */
28
+ submitText?: string;
29
+ /** 是否显示记住我 */
30
+ showRemember?: boolean;
31
+ /** 记住我文字 */
32
+ rememberText?: string;
33
+ /** 是否显示忘记密码 */
34
+ showForgotPassword?: boolean;
35
+ /** 忘记密码文字 */
36
+ forgotPasswordText?: string;
37
+ /** 是否显示注册链接 */
38
+ showRegister?: boolean;
39
+ /** 注册提示文字 */
40
+ registerText?: string;
41
+ /** 注册链接文字 */
42
+ registerLinkText?: string;
43
+ /** 是否加载中 */
44
+ loading?: boolean;
45
+ /** 表单默认值 */
46
+ initialValues?: Partial<MeLoginFormData>;
47
+ /** 用户名最小长度 */
48
+ usernameMinLength?: number;
49
+ /** 密码最小长度 */
50
+ passwordMinLength?: number;
51
+ /** 背景图地址 */
52
+ backgroundImage?: string;
53
+ /** 卡片宽度 */
54
+ cardWidth?: number | string;
55
+ }
56
+ /** MeLoginPage 登录页 Events */
57
+ export interface MeLoginPageEmits {
58
+ /** 表单提交(验证通过后) */
59
+ (e: 'submit', values: MeLoginFormData): void;
60
+ /** 点击忘记密码 */
61
+ (e: 'forgot-password'): void;
62
+ /** 点击注册链接 */
63
+ (e: 'register'): void;
64
+ /** 表单验证失败 */
65
+ (e: 'validate-failed', errorInfo: any): void;
66
+ }
67
+ /** MeLoginPage 登录页 Slots */
68
+ export interface MeLoginPageSlots {
69
+ /** 默认插槽 - 表单下方内容(如第三方登录) */
70
+ default(props: Record<string, never>): any;
71
+ /** Logo 插槽 - 替换 Logo 区域 */
72
+ logo(props: Record<string, never>): any;
73
+ /** 标题插槽 - 替换标题区域 */
74
+ title(props: Record<string, never>): any;
75
+ /** 表单顶部插槽 - 用户名输入框上方 */
76
+ 'form-top'(props: Record<string, never>): any;
77
+ /** 表单底部插槽 - 登录按钮下方 */
78
+ 'form-bottom'(props: Record<string, never>): any;
79
+ /** 用户名输入框前缀插槽 */
80
+ 'username-prefix'(props: Record<string, never>): any;
81
+ /** 密码输入框前缀插槽 */
82
+ 'password-prefix'(props: Record<string, never>): any;
83
+ /** 背景插槽 - 替换左侧背景区域 */
84
+ background(props: Record<string, never>): any;
85
+ }
86
+ /** MeLoginPage 组件实例类型 */
87
+ export interface MeLoginPageInstance {
88
+ /** 表单实例 */
89
+ formRef: FormInstance;
90
+ /** 手动提交表单 */
91
+ submit: () => void;
92
+ /** 重置表单 */
93
+ reset: () => void;
94
+ /** 获取表单数据 */
95
+ getFieldsValue: () => MeLoginFormData;
96
+ }
@@ -0,0 +1,4 @@
1
+ import { default as MeSkeleton } from './index.vue';
2
+ export { MeSkeleton };
3
+ export default MeSkeleton;
4
+ export * from './types';
@@ -0,0 +1,29 @@
1
+ import { MeSkeletonPreset, MeSkeletonProps } from './types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<MeSkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MeSkeletonProps> & Readonly<{}>, {
7
+ loading: boolean;
8
+ avatar: boolean;
9
+ height: string | number;
10
+ rows: number;
11
+ preset: MeSkeletonPreset;
12
+ animated: boolean;
13
+ rowHeight: number;
14
+ rowGap: number;
15
+ avatarSize: number;
16
+ avatarShape: "circle" | "square";
17
+ titleWidth: number;
18
+ lastRowWidth: number;
19
+ cardImage: boolean;
20
+ cardImageHeight: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };