@keyblade/pro-components 1.15.0-alpha.14 → 1.15.0-alpha.16

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.
@@ -17,7 +17,9 @@ declare module 'vue' {
17
17
  KbProCalendar: typeof import('./index')['ProCalendar'];
18
18
  KbProLoader: typeof import('./index')['ProLoader'];
19
19
  KbProLogin: typeof import('./index')['ProLogin'];
20
+ KbProAuthVerify: typeof import('./index')['ProAuthVerify'];
20
21
  KbProFindPassword: typeof import('./index')['ProFindPassword'];
22
+ KbAppeal: typeof import('./index')['ProAppeal'];
21
23
  }
22
24
  }
23
25
  export {};
package/es/index.d.ts CHANGED
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  export default _default;
7
7
  export { default as ProLogin, ProAuthVerify } from './pro-login';
8
8
  export { default as ProFindPassword } from './pro-find-password';
9
+ export { default as ProAppeal } from './pro-appeal';
9
10
  export { default as ProPageHeader } from './pro-page-header';
10
11
  export { default as ProKeepAliveRouterView } from './pro-keep-alive-router-view';
11
12
  export { default as ProLayout } from './pro-layout';
package/es/index.js CHANGED
@@ -1,58 +1,64 @@
1
- import { ProLogin as e, ProAuthVerify as m } from "./pro-login/index.js";
2
- import { ProFindPassword as t } from "./pro-find-password/index.js";
3
- import { ProPageHeader as s } from "./pro-page-header/index.js";
4
- import { ProKeepAliveRouterView as i } from "./pro-keep-alive-router-view/index.js";
5
- import { ProLayout as f, ProLayoutHeader as u } from "./pro-layout/index.js";
6
- import { ProMenu as P } from "./pro-menu/index.js";
7
- import { ProPageContainer as a } from "./pro-page-container/index.js";
8
- import { ProReuseTabs as n } from "./pro-reuse-tabs/index.js";
9
- import { ProImageUpload as d } from "./pro-image-upload/index.js";
10
- import { ProDatesPicker as l } from "./pro-dates-picker/index.js";
1
+ import { ProLogin as e, ProAuthVerify as t } from "./pro-login/index.js";
2
+ import { ProFindPassword as m } from "./pro-find-password/index.js";
3
+ import { ProAppeal as s } from "./pro-appeal/index.js";
4
+ import { ProPageHeader as i } from "./pro-page-header/index.js";
5
+ import { ProKeepAliveRouterView as u } from "./pro-keep-alive-router-view/index.js";
6
+ import { ProLayout as f, ProLayoutHeader as P } from "./pro-layout/index.js";
7
+ import { ProMenu as a } from "./pro-menu/index.js";
8
+ import { ProPageContainer as l } from "./pro-page-container/index.js";
9
+ import { ProReuseTabs as d } from "./pro-reuse-tabs/index.js";
10
+ import { ProImageUpload as n } from "./pro-image-upload/index.js";
11
+ import { ProDatesPicker as p } from "./pro-dates-picker/index.js";
11
12
  import { ProDateRangePicker as g } from "./pro-date-range-picker/index.js";
12
13
  import { ProTable as x } from "./pro-table/index.js";
13
- import { ProTextarea as b } from "./pro-textarea/index.js";
14
- import { ProFooterBar as c } from "./pro-footer-bar/index.js";
15
- import { ProFormGroup as L } from "./pro-form-group/index.js";
16
- import { ProCalendar as y } from "./pro-calendar/index.js";
17
- import { ProLoader as F } from "./pro-loader/index.js";
18
- import { globalProps as I } from "./global-props.js";
19
- import { setGlobalProps as W } from "./global-props.js";
20
- import { splitStringWithCommaAndSpace as z } from "./utils.js";
21
- import { EImageUploadInnerBeforeUploadStep as N } from "./pro-image-upload/types.js";
22
- import { defaultImageUploadOptions as X } from "./pro-image-upload/constant.js";
23
- import { EProLoginType as Z } from "./pro-login/enum.js";
24
- import { EFindPasswordSteps as $ } from "./pro-find-password/enum.js";
25
- const v = {
14
+ import { ProTextarea as A } from "./pro-textarea/index.js";
15
+ import { ProFooterBar as S } from "./pro-footer-bar/index.js";
16
+ import { ProFormGroup as E } from "./pro-form-group/index.js";
17
+ import { ProCalendar as b } from "./pro-calendar/index.js";
18
+ import { ProLoader as c } from "./pro-loader/index.js";
19
+ import { globalProps as L } from "./global-props.js";
20
+ import { setGlobalProps as z } from "./global-props.js";
21
+ import { splitStringWithCommaAndSpace as N } from "./utils.js";
22
+ import { EImageUploadInnerBeforeUploadStep as X } from "./pro-image-upload/types.js";
23
+ import { defaultImageUploadOptions as Z } from "./pro-image-upload/constant.js";
24
+ import { EProLoginType as $ } from "./pro-login/enum.js";
25
+ import { EFindPasswordSteps as ro } from "./pro-find-password/enum.js";
26
+ import { EAppealAuditStatus as to, EAppealAuditStatusMapText as mo, EAppealSteps as so } from "./pro-appeal/enum.js";
27
+ const K = {
26
28
  install(o, r) {
27
- Object.assign(I, r || {}), o.use(e), o.use(m), o.use(t), o.use(s), o.use(i), o.use(f), o.use(u), o.use(c), o.use(P), o.use(a), o.use(n), o.use(d), o.use(l), o.use(g), o.use(b), o.use(x), o.use(L), o.use(y), o.use(F);
29
+ Object.assign(L, r || {}), o.use(e), o.use(t), o.use(m), o.use(s), o.use(i), o.use(u), o.use(f), o.use(P), o.use(S), o.use(a), o.use(l), o.use(d), o.use(n), o.use(p), o.use(g), o.use(A), o.use(x), o.use(E), o.use(b), o.use(c);
28
30
  }
29
31
  };
30
32
  export {
31
- $ as EFindPasswordSteps,
32
- N as EImageUploadInnerBeforeUploadStep,
33
- Z as EProLoginType,
34
- m as ProAuthVerify,
35
- y as ProCalendar,
33
+ to as EAppealAuditStatus,
34
+ mo as EAppealAuditStatusMapText,
35
+ so as EAppealSteps,
36
+ ro as EFindPasswordSteps,
37
+ X as EImageUploadInnerBeforeUploadStep,
38
+ $ as EProLoginType,
39
+ s as ProAppeal,
40
+ t as ProAuthVerify,
41
+ b as ProCalendar,
36
42
  g as ProDateRangePicker,
37
- l as ProDatesPicker,
38
- t as ProFindPassword,
39
- c as ProFooterBar,
40
- L as ProFormGroup,
41
- d as ProImageUpload,
42
- i as ProKeepAliveRouterView,
43
+ p as ProDatesPicker,
44
+ m as ProFindPassword,
45
+ S as ProFooterBar,
46
+ E as ProFormGroup,
47
+ n as ProImageUpload,
48
+ u as ProKeepAliveRouterView,
43
49
  f as ProLayout,
44
- u as ProLayoutHeader,
45
- F as ProLoader,
50
+ P as ProLayoutHeader,
51
+ c as ProLoader,
46
52
  e as ProLogin,
47
- P as ProMenu,
48
- a as ProPageContainer,
49
- s as ProPageHeader,
50
- n as ProReuseTabs,
53
+ a as ProMenu,
54
+ l as ProPageContainer,
55
+ i as ProPageHeader,
56
+ d as ProReuseTabs,
51
57
  x as ProTable,
52
- b as ProTextarea,
53
- v as default,
54
- X as defaultImageUploadOptions,
55
- I as globalProps,
56
- W as setGlobalProps,
57
- z as splitStringWithCommaAndSpace
58
+ A as ProTextarea,
59
+ K as default,
60
+ Z as defaultImageUploadOptions,
61
+ L as globalProps,
62
+ z as setGlobalProps,
63
+ N as splitStringWithCommaAndSpace
58
64
  };
package/es/inerface.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './pro-date-range-picker/interface.ts';
3
3
  export * from './pro-table/interface';
4
4
  export * from './pro-login/interface';
5
5
  export * from './pro-find-password/interface.ts';
6
+ export * from './pro-appeal/interface';
@@ -0,0 +1,228 @@
1
+ import { ImageUploadOptions } from '../pro-image-upload';
2
+ import { IAppealValidInfoResult, IAppealNextStep } from './interface';
3
+ import { IInputProps } from '../pro-login/interface';
4
+ type __VLS_Props = {
5
+ /** 加载中 */
6
+ loading?: boolean;
7
+ /** 信息验证结果 */
8
+ validInfoResult?: IAppealValidInfoResult[];
9
+ /** 输入框属性 */
10
+ inputProps?: IInputProps;
11
+ /** 检查用户审核状态 */
12
+ checkAuth?: boolean;
13
+ /** 证件照片上传配置 */
14
+ imageUploadOptions: ImageUploadOptions;
15
+ /** 短信验证码倒计时 */
16
+ countdown?: number;
17
+ };
18
+ declare const current: import('vue').ModelRef<number, string, number, number>;
19
+ type __VLS_PublicProps = {
20
+ 'current': typeof current['value'];
21
+ } & __VLS_Props;
22
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ "update:current": (value: number) => any;
24
+ } & {
25
+ "send-sms-code": (value: string) => any;
26
+ nextStep: (value: IAppealNextStep) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onSend-sms-code"?: ((value: string) => any) | undefined;
29
+ "onUpdate:current"?: ((value: number) => any) | undefined;
30
+ onNextStep?: ((value: IAppealNextStep) => any) | undefined;
31
+ }>, {
32
+ inputProps: IInputProps;
33
+ countdown: number;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
35
+ formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
36
+ model: {
37
+ type: ObjectConstructor;
38
+ required: true;
39
+ };
40
+ layout: {
41
+ type: import('vue').PropType<"horizontal" | "vertical" | "inline">;
42
+ default: string;
43
+ };
44
+ size: {
45
+ type: import('vue').PropType<"mini" | "small" | "medium" | "large">;
46
+ };
47
+ labelColProps: {
48
+ type: ObjectConstructor;
49
+ default: () => {
50
+ span: number;
51
+ offset: number;
52
+ };
53
+ };
54
+ wrapperColProps: {
55
+ type: ObjectConstructor;
56
+ default: () => {
57
+ span: number;
58
+ offset: number;
59
+ };
60
+ };
61
+ labelColStyle: ObjectConstructor;
62
+ wrapperColStyle: ObjectConstructor;
63
+ labelAlign: {
64
+ type: import('vue').PropType<"left" | "right">;
65
+ default: string;
66
+ };
67
+ disabled: {
68
+ type: BooleanConstructor;
69
+ default: undefined;
70
+ };
71
+ rules: {
72
+ type: import('vue').PropType<Record<string, import('@arco-design/web-vue').FieldRule<any> | import('@arco-design/web-vue').FieldRule<any>[]>>;
73
+ };
74
+ autoLabelWidth: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ id: {
79
+ type: StringConstructor;
80
+ };
81
+ scrollToFirstError: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ }>> & Readonly<{
86
+ onSubmit?: ((data: {
87
+ values: Record<string, any>;
88
+ errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined;
89
+ }, ev: Event) => any) | undefined;
90
+ onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
91
+ onSubmitFailed?: ((data: {
92
+ values: Record<string, any>;
93
+ errors: Record<string, import('@arco-design/web-vue').ValidatedError>;
94
+ }, ev: Event) => any) | undefined;
95
+ }>, {
96
+ cls: import('vue').ComputedRef<(string | {
97
+ [x: string]: boolean;
98
+ })[]>;
99
+ formRef: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
100
+ handleSubmit: (e: Event) => void;
101
+ innerValidate: (callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
102
+ innerValidateField: (field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
103
+ innerResetFields: (field?: string | string[] | undefined) => void;
104
+ innerClearValidate: (field?: string | string[] | undefined) => void;
105
+ innerSetFields: (data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>) => void;
106
+ innerScrollToField: (field: string, options?: import('../../node_modules/scroll-into-view-if-needed').Options<any> | undefined) => void;
107
+ }, {}, {}, {
108
+ validate(callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
109
+ validateField(field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
110
+ resetFields(field?: string | string[] | undefined): void;
111
+ clearValidate(field?: string | string[] | undefined): void;
112
+ setFields(data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>): void;
113
+ scrollToField(field: string): void;
114
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
115
+ submit: (data: {
116
+ values: Record<string, any>;
117
+ errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined;
118
+ }, ev: Event) => true;
119
+ submitSuccess: (values: Record<string, any>, ev: Event) => true;
120
+ submitFailed: (data: {
121
+ values: Record<string, any>;
122
+ errors: Record<string, import('@arco-design/web-vue').ValidatedError>;
123
+ }, ev: Event) => true;
124
+ }, import('vue').PublicProps, {
125
+ disabled: boolean;
126
+ layout: "horizontal" | "vertical" | "inline";
127
+ labelColProps: Record<string, any>;
128
+ wrapperColProps: Record<string, any>;
129
+ labelAlign: "left" | "right";
130
+ autoLabelWidth: boolean;
131
+ scrollToFirstError: boolean;
132
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
133
+ P: {};
134
+ B: {};
135
+ D: {};
136
+ C: {};
137
+ M: {};
138
+ Defaults: {};
139
+ }, Readonly<import('vue').ExtractPropTypes<{
140
+ model: {
141
+ type: ObjectConstructor;
142
+ required: true;
143
+ };
144
+ layout: {
145
+ type: import('vue').PropType<"horizontal" | "vertical" | "inline">;
146
+ default: string;
147
+ };
148
+ size: {
149
+ type: import('vue').PropType<"mini" | "small" | "medium" | "large">;
150
+ };
151
+ labelColProps: {
152
+ type: ObjectConstructor;
153
+ default: () => {
154
+ span: number;
155
+ offset: number;
156
+ };
157
+ };
158
+ wrapperColProps: {
159
+ type: ObjectConstructor;
160
+ default: () => {
161
+ span: number;
162
+ offset: number;
163
+ };
164
+ };
165
+ labelColStyle: ObjectConstructor;
166
+ wrapperColStyle: ObjectConstructor;
167
+ labelAlign: {
168
+ type: import('vue').PropType<"left" | "right">;
169
+ default: string;
170
+ };
171
+ disabled: {
172
+ type: BooleanConstructor;
173
+ default: undefined;
174
+ };
175
+ rules: {
176
+ type: import('vue').PropType<Record<string, import('@arco-design/web-vue').FieldRule<any> | import('@arco-design/web-vue').FieldRule<any>[]>>;
177
+ };
178
+ autoLabelWidth: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ id: {
183
+ type: StringConstructor;
184
+ };
185
+ scrollToFirstError: {
186
+ type: BooleanConstructor;
187
+ default: boolean;
188
+ };
189
+ }>> & Readonly<{
190
+ onSubmit?: ((data: {
191
+ values: Record<string, any>;
192
+ errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined;
193
+ }, ev: Event) => any) | undefined;
194
+ onSubmitSuccess?: ((values: Record<string, any>, ev: Event) => any) | undefined;
195
+ onSubmitFailed?: ((data: {
196
+ values: Record<string, any>;
197
+ errors: Record<string, import('@arco-design/web-vue').ValidatedError>;
198
+ }, ev: Event) => any) | undefined;
199
+ }>, {
200
+ cls: import('vue').ComputedRef<(string | {
201
+ [x: string]: boolean;
202
+ })[]>;
203
+ formRef: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
204
+ handleSubmit: (e: Event) => void;
205
+ innerValidate: (callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
206
+ innerValidateField: (field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined) => Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
207
+ innerResetFields: (field?: string | string[] | undefined) => void;
208
+ innerClearValidate: (field?: string | string[] | undefined) => void;
209
+ innerSetFields: (data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>) => void;
210
+ innerScrollToField: (field: string, options?: import('../../node_modules/scroll-into-view-if-needed').Options<any> | undefined) => void;
211
+ }, {}, {}, {
212
+ validate(callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
213
+ validateField(field: string | string[], callback?: ((errors: Record<string, import('@arco-design/web-vue').ValidatedError> | undefined) => void) | undefined): Promise<Record<string, import('@arco-design/web-vue').ValidatedError> | undefined>;
214
+ resetFields(field?: string | string[] | undefined): void;
215
+ clearValidate(field?: string | string[] | undefined): void;
216
+ setFields(data: Record<string, import('@arco-design/web-vue/es/form/interface').FieldData>): void;
217
+ scrollToField(field: string): void;
218
+ }, {
219
+ disabled: boolean;
220
+ layout: "horizontal" | "vertical" | "inline";
221
+ labelColProps: Record<string, any>;
222
+ wrapperColProps: Record<string, any>;
223
+ labelAlign: "left" | "right";
224
+ autoLabelWidth: boolean;
225
+ scrollToFirstError: boolean;
226
+ }> | null;
227
+ }, any>;
228
+ export default _default;