hy-app 0.4.0 → 0.4.2

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,65 +0,0 @@
1
- export interface UserLoginInfoVo {
2
- userName: string;
3
- password: string;
4
- }
5
-
6
- export default interface HyLoginProps {
7
- /**
8
- * @description 登录logo
9
- * */
10
- logo?: string;
11
- /**
12
- * @description 登录类型:可选:1-用户密码登录、2-手机验证码登录、其他-两者都可以
13
- * */
14
- loginType?: number | string;
15
- /**
16
- * @description 主题颜色
17
- * */
18
- themeColor?: string;
19
- /**
20
- * @description 浏览器缓存名称前缀
21
- * */
22
- prefix?: string;
23
- /**
24
- * @description 是否需要显示密码操作
25
- * */
26
- isShowPwd?: boolean;
27
- /**
28
- * @description 用户输入框占位提示
29
- * */
30
- userPlaceholder?: string;
31
- /**
32
- * @description 密码输入框占位提示
33
- * */
34
- pwdPlaceholder?: string;
35
- /**
36
- * @description 底部小菜单
37
- * */
38
- menu?: string[];
39
- /**
40
- * @description 自定义用户名效验
41
- * customUserValidator: {
42
- * validator: (rule, value, callback) => {
43
- * },
44
- * message: '提示信息',
45
- * trigger: ['change','blur'],
46
- * }
47
- * */
48
- customUserValidator?: Record<string, any>;
49
- /**
50
- * @description 自定义密码效验
51
- * */
52
- customPwdValidator?: Record<string, any>;
53
- /**
54
- * @description 用户名输入数量校验
55
- * */
56
- userNumValidator?: Record<string, any>;
57
- /**
58
- * @description 密码输入数量校验
59
- * */
60
- pwdNumValidator?: Record<string, any>;
61
- /**
62
- * @description 自定义手机效验规则
63
- * */
64
- customPhoneValidator?: Record<string, any>;
65
- }
package/store/index.ts DELETED
@@ -1,9 +0,0 @@
1
- import { createPinia } from "pinia";
2
- import { createUnistorage } from "pinia-plugin-unistorage"; // 数据持久化
3
-
4
- const store = createPinia();
5
- store.use(createUnistorage());
6
-
7
- export default store;
8
-
9
- export * from "./userInfo";
package/store/userInfo.ts DELETED
@@ -1,26 +0,0 @@
1
- import { defineStore } from "pinia";
2
- import type { UserLoginInfoVo } from "../components/hy-login/typing";
3
-
4
- export const useUserInfo = defineStore("gxh_userInfo", {
5
- state: () => ({
6
- userForm: {
7
- userName: "",
8
- password: "",
9
- } as UserLoginInfoVo,
10
- phoneForm: {
11
- phone: "",
12
- code: "",
13
- },
14
- rememberPsw: false,
15
- // 历史账户列表
16
- choiceList: [] as UserLoginInfoVo[],
17
- // 选中账户信息
18
- choiceIndex: 0,
19
- secretKey: "hy",
20
- }),
21
- actions: {
22
- saveHistoriesList() {
23
- this.choiceList;
24
- },
25
- },
26
- });