@befly-addon/admin 1.0.14 → 1.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@befly-addon/admin",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Befly - 管理后台功能组件",
5
5
  "type": "module",
6
6
  "private": false,
@@ -38,8 +38,8 @@
38
38
  "url": "https://github.com/chenbimo/befly.git",
39
39
  "directory": "packages/addon-admin"
40
40
  },
41
- "gitHead": "c3ad67d081d15ca86b8545e622ed96255524183a",
41
+ "gitHead": "42f9c0610527778b7d25678762360e1782cbec7f",
42
42
  "dependencies": {
43
- "befly": "3.8.5"
43
+ "befly": "3.8.6"
44
44
  }
45
45
  }
package/tables/admin.json CHANGED
@@ -17,21 +17,21 @@
17
17
  "min": 5,
18
18
  "max": 100,
19
19
  "index": true,
20
- "regexp": "^[\\w.-]+@[\\w.-]+\\.\\w+$"
20
+ "regexp": "@email"
21
21
  },
22
22
  "phone": {
23
23
  "name": "手机号",
24
24
  "type": "string",
25
25
  "min": 11,
26
26
  "max": 11,
27
- "regexp": "^1[3-9]\\d{9}$"
27
+ "regexp": "@phone"
28
28
  },
29
29
  "username": {
30
30
  "name": "用户名",
31
31
  "type": "string",
32
32
  "min": 3,
33
33
  "max": 30,
34
- "regexp": "^[a-zA-Z0-9_]+$"
34
+ "regexp": "@alphanumeric_"
35
35
  },
36
36
  "password": {
37
37
  "name": "密码",
@@ -42,7 +42,6 @@
42
42
  "avatar": {
43
43
  "name": "头像",
44
44
  "type": "string",
45
- "min": 0,
46
45
  "max": 500
47
46
  },
48
47
  "roleId": {
@@ -57,7 +56,7 @@
57
56
  "type": "string",
58
57
  "min": 2,
59
58
  "max": 50,
60
- "regexp": "^[a-zA-Z0-9_]+$"
59
+ "regexp": "@alphanumeric_"
61
60
  },
62
61
  "roleType": {
63
62
  "name": "角色类型",
@@ -71,14 +70,11 @@
71
70
  "lastLoginTime": {
72
71
  "name": "最后登录时间",
73
72
  "type": "number",
74
- "min": 0,
75
- "max": null,
76
73
  "default": 0
77
74
  },
78
75
  "lastLoginIp": {
79
76
  "name": "最后登录IP",
80
77
  "type": "string",
81
- "min": 0,
82
78
  "max": 50
83
79
  }
84
80
  }
package/tables/api.json CHANGED
@@ -25,19 +25,16 @@
25
25
  "description": {
26
26
  "name": "接口描述",
27
27
  "type": "string",
28
- "min": 0,
29
28
  "max": 500
30
29
  },
31
30
  "addonName": {
32
31
  "name": "所属插件",
33
32
  "type": "string",
34
- "min": 0,
35
33
  "max": 50
36
34
  },
37
35
  "addonTitle": {
38
36
  "name": "插件标题",
39
37
  "type": "string",
40
- "min": 0,
41
38
  "max": 100
42
39
  }
43
40
  }
package/tables/dict.json CHANGED
@@ -12,12 +12,11 @@
12
12
  "min": 2,
13
13
  "max": 50,
14
14
  "index": true,
15
- "regexp": "^[a-zA-Z0-9_]+$"
15
+ "regexp": "@alphanumeric_"
16
16
  },
17
17
  "value": {
18
18
  "name": "字典值",
19
19
  "type": "string",
20
- "min": 0,
21
20
  "max": 200,
22
21
  "index": true
23
22
  },
@@ -39,7 +38,6 @@
39
38
  "description": {
40
39
  "name": "描述",
41
40
  "type": "string",
42
- "min": 0,
43
41
  "max": 200
44
42
  }
45
43
  }
package/tables/menu.json CHANGED
@@ -16,7 +16,6 @@
16
16
  "icon": {
17
17
  "name": "图标名称",
18
18
  "type": "string",
19
- "min": 0,
20
19
  "max": 50
21
20
  },
22
21
  "sort": {
package/tables/role.json CHANGED
@@ -12,25 +12,20 @@
12
12
  "min": 2,
13
13
  "max": 50,
14
14
  "index": true,
15
- "regexp": "^[a-zA-Z0-9_]+$"
15
+ "regexp": "@alphanumeric_"
16
16
  },
17
17
  "description": {
18
18
  "name": "角色描述",
19
19
  "type": "string",
20
- "min": 0,
21
20
  "max": 200
22
21
  },
23
22
  "menus": {
24
23
  "name": "菜单权限",
25
- "type": "array_text",
26
- "min": null,
27
- "max": null
24
+ "type": "array_text"
28
25
  },
29
26
  "apis": {
30
27
  "name": "接口权限",
31
- "type": "array_text",
32
- "min": null,
33
- "max": null
28
+ "type": "array_text"
34
29
  },
35
30
  "sort": {
36
31
  "name": "排序",