cfel-base-components 0.0.15 → 0.0.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.
package/demo/src/index.jsx
CHANGED
|
@@ -42,6 +42,10 @@ const App = () => {
|
|
|
42
42
|
pagination={pagination} //分页配置
|
|
43
43
|
isBoundRolesFunc={isBoundRolesFunc} //绑定/解绑事件
|
|
44
44
|
getQueryBoundRolesFunc={getQueryBoundRolesFunc} //绑定打开弹框
|
|
45
|
+
editAccountOpen={editAccountOpen}// 弹框状态
|
|
46
|
+
setEditAccountOpen={setEditAccountOpen}// 关闭弹框
|
|
47
|
+
rolelistRoleData={rolelistRoleData} //弹框总角色数据
|
|
48
|
+
roleCheckData={roleCheckData} //弹框当前选中
|
|
45
49
|
/>
|
|
46
50
|
|
|
47
51
|
</>
|
package/package.json
CHANGED
|
@@ -19,24 +19,28 @@ export interface AccountInfoProps {
|
|
|
19
19
|
pagination:any;
|
|
20
20
|
isBoundRolesFunc:(type:any,item:any)=>any;
|
|
21
21
|
getQueryBoundRolesFunc:()=>any;
|
|
22
|
-
|
|
22
|
+
editAccountOpen:any
|
|
23
|
+
setEditAccountOpen:(item:any)=>any;
|
|
24
|
+
rolelistRoleData:any,
|
|
25
|
+
roleCheckData:any,
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export default function AccountInfo ({
|
|
26
|
-
accountInfo
|
|
27
|
-
timeFormatter
|
|
28
|
-
dataList
|
|
29
|
-
columns
|
|
30
|
-
isLoading
|
|
31
|
-
handleRoload
|
|
32
|
-
pagination
|
|
33
|
-
isBoundRolesFunc
|
|
34
|
-
getQueryBoundRolesFunc
|
|
29
|
+
accountInfo,//用户详情
|
|
30
|
+
timeFormatter,//时间戳转换
|
|
31
|
+
dataList,//表格数据
|
|
32
|
+
columns,//列
|
|
33
|
+
isLoading,//加载
|
|
34
|
+
handleRoload,//分页
|
|
35
|
+
pagination,//分页配置
|
|
36
|
+
isBoundRolesFunc,//绑定/解绑事件
|
|
37
|
+
getQueryBoundRolesFunc,//绑定打开弹框
|
|
38
|
+
editAccountOpen, //弹框状态
|
|
39
|
+
setEditAccountOpen, //关闭弹框
|
|
40
|
+
rolelistRoleData, //总角色数据
|
|
41
|
+
roleCheckData, //当前选中
|
|
42
|
+
|
|
35
43
|
}: AccountInfoProps) {
|
|
36
|
-
const [rolelistRoleData, setRolelistRoleData]: any = useState([]); // 角色总数据
|
|
37
|
-
const [roleCheckData, setRoleCheckData]: any = useState([]); //当前选中的角色list
|
|
38
|
-
|
|
39
|
-
const [editAccountOpen, setEditAccountOpen] = useState(false);
|
|
40
44
|
|
|
41
45
|
return (
|
|
42
46
|
<Pagecontainer>
|