@pangu-backend-ui/user-core 0.0.9 → 0.0.10
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/index.js +531 -198
- package/index.umd.cjs +1 -1
- package/package.json +2 -2
- package/style.css +1 -9
- package/types/components/UserDetail/UseUserDetailDialog.d.ts +3 -0
- package/types/components/UserDetail/UserDetailDialog.vue.d.ts +174 -0
- package/types/components/UserDetail/index.d.ts +6 -0
- package/types/components/UserDetail/tabs/LoginHistory.vue.d.ts +18 -0
- package/types/components/UserMobile/UserMobileComponent.vue.d.ts +30 -22
- package/types/components/index.d.ts +2 -1
- package/types/index.d.ts +3 -2
- package/types/routes/index.d.ts +2 -1
- package/types/store/ConfigStore.d.ts +8 -0
- package/types/types/InstallOptions.d.ts +6 -0
- package/types/types/UserDetailDialogTabConfig.d.ts +6 -0
- package/types/views/list.vue.d.ts +204 -18
- package/web-types.json +9 -22
|
@@ -1,31 +1,45 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
2
|
condition: import("vue").Ref<{
|
|
3
3
|
id: null;
|
|
4
|
-
|
|
4
|
+
parentId: null;
|
|
5
|
+
phone: null;
|
|
6
|
+
nicekname: null;
|
|
7
|
+
inviteCode: null;
|
|
5
8
|
}>;
|
|
6
9
|
userTable: any;
|
|
7
10
|
search: () => void;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
maskMobile: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: null;
|
|
18
|
-
};
|
|
11
|
+
userDetailDialog: import("vue").Ref<any>;
|
|
12
|
+
showDetail: (user: any) => void;
|
|
13
|
+
UserMobile: import("vue").DefineComponent<{
|
|
14
|
+
userId: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: null;
|
|
19
17
|
};
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
maskMobile: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
props: any;
|
|
24
|
+
state: import("vue").Ref<{
|
|
25
|
+
plainMobile: string | null | undefined;
|
|
22
26
|
loading: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
http: import("@pangu-backend-ui/common").Http | undefined;
|
|
29
|
+
getPlainMobile: () => void;
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
userId: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: null;
|
|
23
34
|
};
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
maskMobile: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: null;
|
|
26
38
|
};
|
|
27
|
-
}
|
|
28
|
-
|
|
39
|
+
}>>, {
|
|
40
|
+
userId: number;
|
|
41
|
+
maskMobile: string;
|
|
42
|
+
}>;
|
|
29
43
|
readonly PgTable: import("vue").DefineComponent<{
|
|
30
44
|
condition: {
|
|
31
45
|
type: ObjectConstructor;
|
|
@@ -112,5 +126,177 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
112
126
|
pagination: boolean;
|
|
113
127
|
dataList: unknown[];
|
|
114
128
|
}>;
|
|
129
|
+
UserDetailDialog: import("vue").DefineComponent<{}, {
|
|
130
|
+
getUserDetail: (userId: number) => Promise<import("@pangu-backend-ui/common").Response<unknown>> | undefined;
|
|
131
|
+
configStore: import("pinia").Store<"pg-user-core-config-store", import("pinia")._UnwrapAll<Pick<{
|
|
132
|
+
userDetailDialogTabs: import("vue").ComputedRef<import("../types/UserDetailDialogTabConfig").default[]>;
|
|
133
|
+
}, never>>, Pick<{
|
|
134
|
+
userDetailDialogTabs: import("vue").ComputedRef<import("../types/UserDetailDialogTabConfig").default[]>;
|
|
135
|
+
}, "userDetailDialogTabs">, Pick<{
|
|
136
|
+
userDetailDialogTabs: import("vue").ComputedRef<import("../types/UserDetailDialogTabConfig").default[]>;
|
|
137
|
+
}, never>>;
|
|
138
|
+
showState: import("vue").Ref<boolean>;
|
|
139
|
+
userDetail: import("vue").Ref<any>;
|
|
140
|
+
tabState: import("vue").Ref<{
|
|
141
|
+
activeName: string;
|
|
142
|
+
tabs: {
|
|
143
|
+
name: string;
|
|
144
|
+
code: string;
|
|
145
|
+
component: string | import("vue").FunctionalComponent<any, any> | {
|
|
146
|
+
new (...args: any[]): any;
|
|
147
|
+
__isFragment?: undefined;
|
|
148
|
+
__isTeleport?: undefined;
|
|
149
|
+
__isSuspense?: undefined;
|
|
150
|
+
} | {
|
|
151
|
+
[x: string]: any;
|
|
152
|
+
setup?: ((this: void, props: Readonly<import("@vue/shared").LooseRequired<any>>, ctx: {
|
|
153
|
+
attrs: {
|
|
154
|
+
[x: string]: unknown;
|
|
155
|
+
};
|
|
156
|
+
slots: Readonly<{
|
|
157
|
+
[name: string]: import("vue").Slot | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
160
|
+
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
161
|
+
}) => any) | undefined;
|
|
162
|
+
name?: string | undefined;
|
|
163
|
+
template?: string | object | undefined;
|
|
164
|
+
render?: Function | undefined;
|
|
165
|
+
components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>> | undefined;
|
|
166
|
+
directives?: Record<string, import("vue").Directive<any, any>> | undefined;
|
|
167
|
+
inheritAttrs?: boolean | undefined;
|
|
168
|
+
emits?: any;
|
|
169
|
+
expose?: string[] | undefined;
|
|
170
|
+
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
171
|
+
compilerOptions?: {
|
|
172
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
173
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
174
|
+
comments?: boolean | undefined;
|
|
175
|
+
delimiters?: [string, string] | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
178
|
+
__isFragment?: undefined;
|
|
179
|
+
__isTeleport?: undefined;
|
|
180
|
+
__isSuspense?: undefined;
|
|
181
|
+
__defaults?: {} | undefined;
|
|
182
|
+
compatConfig?: {
|
|
183
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
184
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
185
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
186
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
187
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
188
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
189
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
190
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
191
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
192
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
193
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
194
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
195
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
196
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
197
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
198
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
199
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
200
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
201
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
202
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
203
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
204
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
205
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
206
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
207
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
208
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
209
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
210
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
211
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
212
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
213
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
214
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
215
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
216
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
217
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
218
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
219
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
220
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
221
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
222
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
223
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
224
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
225
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | null) => 2 | 3) | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
228
|
+
computed?: import("vue").ComputedOptions | undefined;
|
|
229
|
+
methods?: import("vue").MethodOptions | undefined;
|
|
230
|
+
watch?: {
|
|
231
|
+
[x: string]: (string | import("vue").WatchCallback<any, any> | ({
|
|
232
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
233
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
|
|
234
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
235
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
236
|
+
} | undefined;
|
|
237
|
+
provide?: import("vue").ComponentProvideOptions | undefined;
|
|
238
|
+
inject?: {} | string[] | undefined;
|
|
239
|
+
filters?: Record<string, Function> | undefined;
|
|
240
|
+
mixins?: any[] | undefined;
|
|
241
|
+
extends?: any;
|
|
242
|
+
beforeCreate?: (() => void) | undefined;
|
|
243
|
+
created?: (() => void) | undefined;
|
|
244
|
+
beforeMount?: (() => void) | undefined;
|
|
245
|
+
mounted?: (() => void) | undefined;
|
|
246
|
+
beforeUpdate?: (() => void) | undefined;
|
|
247
|
+
updated?: (() => void) | undefined;
|
|
248
|
+
activated?: (() => void) | undefined;
|
|
249
|
+
deactivated?: (() => void) | undefined;
|
|
250
|
+
beforeDestroy?: (() => void) | undefined;
|
|
251
|
+
beforeUnmount?: (() => void) | undefined;
|
|
252
|
+
destroyed?: (() => void) | undefined;
|
|
253
|
+
unmounted?: (() => void) | undefined;
|
|
254
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
255
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
256
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | undefined;
|
|
257
|
+
delimiters?: [string, string] | undefined;
|
|
258
|
+
__differentiator?: string | number | symbol | undefined;
|
|
259
|
+
__isBuiltIn?: boolean | undefined;
|
|
260
|
+
__file?: string | undefined;
|
|
261
|
+
__name?: string | undefined;
|
|
262
|
+
beforeRouteEnter?: import("vue-router").NavigationGuardWithThis<undefined> | undefined;
|
|
263
|
+
beforeRouteUpdate?: import("vue-router").NavigationGuard | undefined;
|
|
264
|
+
beforeRouteLeave?: import("vue-router").NavigationGuard | undefined;
|
|
265
|
+
};
|
|
266
|
+
}[];
|
|
267
|
+
}>;
|
|
268
|
+
loading: import("vue").Ref<boolean>;
|
|
269
|
+
show: (userId: number, tabs?: import("../types/UserDetailDialogTabConfig").default[] | undefined) => void;
|
|
270
|
+
UserMobile: import("vue").DefineComponent<{
|
|
271
|
+
userId: {
|
|
272
|
+
type: NumberConstructor;
|
|
273
|
+
default: null;
|
|
274
|
+
};
|
|
275
|
+
maskMobile: {
|
|
276
|
+
type: StringConstructor;
|
|
277
|
+
default: null;
|
|
278
|
+
};
|
|
279
|
+
}, {
|
|
280
|
+
props: any;
|
|
281
|
+
state: import("vue").Ref<{
|
|
282
|
+
plainMobile: string | null | undefined;
|
|
283
|
+
loading: boolean;
|
|
284
|
+
}>;
|
|
285
|
+
http: import("@pangu-backend-ui/common").Http | undefined;
|
|
286
|
+
getPlainMobile: () => void;
|
|
287
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
288
|
+
userId: {
|
|
289
|
+
type: NumberConstructor;
|
|
290
|
+
default: null;
|
|
291
|
+
};
|
|
292
|
+
maskMobile: {
|
|
293
|
+
type: StringConstructor;
|
|
294
|
+
default: null;
|
|
295
|
+
};
|
|
296
|
+
}>>, {
|
|
297
|
+
userId: number;
|
|
298
|
+
maskMobile: string;
|
|
299
|
+
}>;
|
|
300
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
115
301
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
116
302
|
export default _sfc_main;
|
package/web-types.json
CHANGED
|
@@ -9,28 +9,15 @@
|
|
|
9
9
|
"html": {
|
|
10
10
|
"vue-components": [
|
|
11
11
|
{
|
|
12
|
-
"name": "pg-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "pg-pagination",
|
|
25
|
-
"source": {
|
|
26
|
-
"symbol": "Pagination"
|
|
27
|
-
},
|
|
28
|
-
"props": [
|
|
29
|
-
{
|
|
30
|
-
"name": "tt1",
|
|
31
|
-
"type": ["'1 | 2 | 3'"]
|
|
32
|
-
}
|
|
33
|
-
]
|
|
12
|
+
"name": "pg-user-detail-dialog",
|
|
13
|
+
"js": {
|
|
14
|
+
"events": [
|
|
15
|
+
{
|
|
16
|
+
"name": "show",
|
|
17
|
+
"description": "使用该方法显示用户详情对话框,方法接收一个用户ID"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
34
21
|
}
|
|
35
22
|
]
|
|
36
23
|
}
|