kn-cli 1.0.97 → 1.0.99
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 +1 -1
- package/templates/template_admin/cli.config.js +4 -1
- package/templates/template_admin/package.json +7 -1
- package/templates/template_admin/public/favicon.png +0 -0
- package/templates/template_admin/public/index.html +6 -4
- package/templates/template_admin/public/src/_antd.less +30 -3
- package/templates/template_admin/public/src/_mixin.less +41 -0
- package/templates/template_admin/public/src/_reset.less +28 -20
- package/templates/template_admin/public/src/_variable.less +11 -6
- package/templates/template_admin/public/src/assets/iconfont/iconfont.eot +0 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.less +60 -8
- package/templates/template_admin/public/src/assets/iconfont/iconfont.svg +57 -18
- package/templates/template_admin/public/src/assets/iconfont/iconfont.ttf +0 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.woff +0 -0
- package/templates/template_admin/public/src/assets/iconfont/iconfont.woff2 +0 -0
- package/templates/template_admin/public/src/assets/images/arrow.png +0 -0
- package/templates/template_admin/public/src/assets/images/icon-notice.png +0 -0
- package/templates/template_admin/public/src/assets/images/icon-user.png +0 -0
- package/templates/template_admin/public/src/assets/images/loadFail.png +0 -0
- package/templates/template_admin/public/src/assets/images/login/bg.png +0 -0
- package/templates/template_admin/public/src/assets/images/login/logo.png +0 -0
- package/templates/template_admin/public/src/assets/images/login/slogan.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-dep-active.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-dep.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-log-active.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-log.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-loginlog-active.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-loginlog.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-role-active.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-role.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-user-active.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/icon-user.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/nav-toggle.png +0 -0
- package/templates/template_admin/public/src/assets/images/nav/slogan.png +0 -0
- package/templates/template_admin/public/src/assets/images/noData.png +0 -0
- package/templates/template_admin/public/src/assets/images/noSelect.png +0 -0
- package/templates/template_admin/public/src/components/auth/index.jsx +7 -3
- package/templates/template_admin/public/src/components/auth/index.less +7 -0
- package/templates/template_admin/public/src/components/badge/index.jsx +47 -0
- package/templates/template_admin/public/src/components/badge/index.less +44 -0
- package/templates/template_admin/public/src/components/debug/index.jsx +27 -0
- package/templates/template_admin/public/src/components/debug/index.less +9 -0
- package/templates/template_admin/public/src/components/empty/index.jsx +28 -0
- package/templates/template_admin/public/src/components/empty/index.less +20 -0
- package/templates/template_admin/public/src/components/image/index.jsx +73 -0
- package/templates/template_admin/public/src/components/image/index.less +117 -0
- package/templates/template_admin/public/src/components/image/preview.jsx +85 -0
- package/templates/template_admin/public/src/components/layout/basic/index.jsx +24 -11
- package/templates/template_admin/public/src/components/layout/basic/index.less +58 -19
- package/templates/template_admin/public/src/components/layout/index.jsx +20 -17
- package/templates/template_admin/public/src/components/layout/index.less +4 -4
- package/templates/template_admin/public/src/components/layout/provider/index.jsx +19 -6
- package/templates/template_admin/public/src/components/{menu → leftMenu}/index.jsx +20 -28
- package/templates/template_admin/public/src/components/leftMenu/index.less +42 -0
- package/templates/template_admin/public/src/components/popup/index.jsx +25 -0
- package/templates/template_admin/public/src/components/table/column.jsx +47 -0
- package/templates/template_admin/public/src/components/table/column.less +12 -0
- package/templates/template_admin/public/src/components/table/index.jsx +22 -13
- package/templates/template_admin/public/src/components/table/index.less +15 -0
- package/templates/template_admin/public/src/components/text/index.jsx +98 -0
- package/templates/template_admin/public/src/components/text/index.less +13 -0
- package/templates/template_admin/public/src/components/topMenu/index.jsx +97 -0
- package/templates/template_admin/public/src/components/topMenu/index.less +80 -0
- package/templates/template_admin/public/src/components/topMenu/topBar/index.jsx +76 -0
- package/templates/template_admin/public/src/components/topMenu/topBar/index.less +88 -0
- package/templates/template_admin/public/src/components/video/index.jsx +96 -0
- package/templates/template_admin/public/src/components/video/index.less +132 -0
- package/templates/template_admin/public/src/components/video/preview.jsx +38 -0
- package/templates/template_admin/public/src/dictionary/index.js +108 -39
- package/templates/template_admin/public/src/enum.js +41 -0
- package/templates/template_admin/public/src/hooks/index.jsx +8 -6
- package/templates/template_admin/public/src/hooks/useDebounceFn.jsx +33 -0
- package/templates/template_admin/public/src/hooks/useInToView.jsx +58 -0
- package/templates/template_admin/public/src/hooks/useRouteMenu.jsx +37 -28
- package/templates/template_admin/public/src/hooks/useTimer.jsx +42 -0
- package/templates/template_admin/public/src/index.jsx +10 -7
- package/templates/template_admin/public/src/mock/auth.js +33 -0
- package/templates/template_admin/public/src/mock/demo.js +12 -74
- package/templates/template_admin/public/src/mock/index.js +1 -0
- package/templates/template_admin/public/src/pages/auth/user/create/index.jsx +55 -0
- package/templates/template_admin/public/src/pages/auth/user/create/index.less +6 -0
- package/templates/template_admin/public/src/pages/auth/user/dialog/index.jsx +96 -0
- package/templates/template_admin/public/src/pages/auth/user/index.jsx +271 -0
- package/templates/template_admin/public/src/pages/components/layout/index.jsx +75 -0
- package/templates/template_admin/public/src/pages/components/layout/index.less +78 -0
- package/templates/template_admin/public/src/pages/components/layout/titleBar/index.jsx +28 -0
- package/templates/template_admin/public/src/pages/components/layout/titleBar/index.less +44 -0
- package/templates/template_admin/public/src/pages/components/select/account/index.jsx +114 -0
- package/templates/template_admin/public/src/pages/components/select/device/index.jsx +83 -0
- package/templates/template_admin/public/src/pages/components/select/groupUser/index.jsx +172 -0
- package/templates/template_admin/public/src/pages/components/select/user/index.jsx +119 -0
- package/templates/template_admin/public/src/pages/home.jsx +79 -0
- package/templates/template_admin/public/src/pages/home.less +6 -0
- package/templates/template_admin/public/src/pages/login/index.jsx +90 -6
- package/templates/template_admin/public/src/pages/login/index.less +133 -24
- package/templates/template_admin/public/src/provider/app.jsx +72 -66
- package/templates/template_admin/public/src/provider/loading.jsx +47 -0
- package/templates/template_admin/public/src/provider/menu.jsx +117 -83
- package/templates/template_admin/public/src/provider/menu.less +35 -0
- package/templates/template_admin/public/src/route.jsx +39 -41
- package/templates/template_admin/public/src/services/auth.js +39 -0
- package/templates/template_admin/public/src/services/demo.js +3 -37
- package/templates/template_admin/public/src/services/index.js +139 -13
- package/templates/template_admin/public/src/services/login.js +37 -0
- package/templates/template_admin/public/src/services/socket/index.jsx +100 -0
- package/templates/template_admin/public/src/type.js +36 -19
- package/templates/template_admin/public/src/utils/event.js +58 -0
- package/templates/template_admin/public/src/utils/format.js +84 -0
- package/templates/template_admin/public/src/utils/index.js +214 -2
- package/templates/template_admin/public/src/utils/rule.js +3 -0
- package/templates/template_admin/public/static/kssoLogin.html +1 -1
- package/templates/template_admin/webpack.api.js +11 -3
- package/templates/template_admin/public/favicon.ico +0 -0
- package/templates/template_admin/public/src/assets/images/avatars/1.png +0 -0
- package/templates/template_admin/public/src/assets/images/avatars/2.png +0 -0
- package/templates/template_admin/public/src/assets/images/avatars/3.png +0 -0
- package/templates/template_admin/public/src/components/layout/centerBody/index.jsx +0 -25
- package/templates/template_admin/public/src/components/layout/centerBody/index.less +0 -30
- package/templates/template_admin/public/src/components/menu/index.less +0 -19
- package/templates/template_admin/public/src/components/menu/topMenu/index.jsx +0 -132
- package/templates/template_admin/public/src/components/menu/topMenu/index.less +0 -105
- package/templates/template_admin/public/src/pages/demo/detail/index.jsx +0 -27
- package/templates/template_admin/public/src/pages/demo/edit/index.jsx +0 -109
- package/templates/template_admin/public/src/pages/demo/index.less +0 -9
- package/templates/template_admin/public/src/pages/demo/page1.jsx +0 -161
- package/templates/template_admin/public/src/pages/superAdminLogin/index.jsx +0 -64
- package/templates/template_admin/public/src/pages/superAdminLogin/index.less +0 -44
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import ReactDom from 'react-dom';
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import moment from 'moment';
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
import { Modal, Form, Input, Select, message, DatePicker,Spin } from 'antd';
|
|
7
|
-
import Popup from '@/components/popup';
|
|
8
|
-
import { GET_DETAIL,CREATE,UPDATE } from '@/services/demo';
|
|
9
|
-
import rule from '@/utils/rule';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const DialogEdit = (props) => {
|
|
14
|
-
const { destory, id=null } = props;
|
|
15
|
-
const [form] = Form.useForm();
|
|
16
|
-
const [record,setRecord]=useState(null)
|
|
17
|
-
|
|
18
|
-
const init=async ()=>{
|
|
19
|
-
if(id){
|
|
20
|
-
const req= await GET_DETAIL({id})
|
|
21
|
-
if(req?.code==0 && req?.data){
|
|
22
|
-
let item= req.data;
|
|
23
|
-
item.date = moment(item.date);
|
|
24
|
-
setRecord(item);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
setRecord({
|
|
29
|
-
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
const onOk = async () => {
|
|
33
|
-
try {
|
|
34
|
-
const values = await form.validateFields();
|
|
35
|
-
const params = {
|
|
36
|
-
...values,
|
|
37
|
-
};
|
|
38
|
-
let res = null;
|
|
39
|
-
if (id) {
|
|
40
|
-
res = await UPDATE({id,...params});
|
|
41
|
-
} else {
|
|
42
|
-
res = await CREATE(params);
|
|
43
|
-
}
|
|
44
|
-
if (res?.code === 0) {
|
|
45
|
-
message.success('成功');
|
|
46
|
-
destory && destory(true);
|
|
47
|
-
}
|
|
48
|
-
} catch (errorInfo) {
|
|
49
|
-
console.log('Failed:', errorInfo);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const onCancel = () => {
|
|
54
|
-
form.resetFields();
|
|
55
|
-
destory && destory(false);
|
|
56
|
-
};
|
|
57
|
-
useEffect(()=>{
|
|
58
|
-
init();
|
|
59
|
-
},[])
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<Modal
|
|
63
|
-
title={id? '编辑用户' : '新增用户'}
|
|
64
|
-
width={600}
|
|
65
|
-
open={true}
|
|
66
|
-
onOk={onOk}
|
|
67
|
-
onCancel={onCancel}
|
|
68
|
-
>
|
|
69
|
-
{
|
|
70
|
-
!record?
|
|
71
|
-
<Spin/>:
|
|
72
|
-
<Form labelCol={{ span: 5 }} wrapperCol={{ span: 19 }} form={form} initialValues={record||{}}>
|
|
73
|
-
<Form.Item label="姓名" name="name">
|
|
74
|
-
<Input placeholder="请输入" />
|
|
75
|
-
</Form.Item>
|
|
76
|
-
<Form.Item label="创建时间" name="date" rules={rule.SELECT} required>
|
|
77
|
-
<DatePicker style={{width:'100%'}}/>
|
|
78
|
-
</Form.Item>
|
|
79
|
-
|
|
80
|
-
<Form.Item
|
|
81
|
-
label="手机号码"
|
|
82
|
-
name="phone"
|
|
83
|
-
>
|
|
84
|
-
<Input />
|
|
85
|
-
</Form.Item>
|
|
86
|
-
|
|
87
|
-
<Form.Item label="绑定号码" name="select" required rules={rule.SELECT}>
|
|
88
|
-
<Select>
|
|
89
|
-
<Select.Option value={1}>1</Select.Option>
|
|
90
|
-
<Select.Option value={2}>2</Select.Option>
|
|
91
|
-
</Select>
|
|
92
|
-
</Form.Item>
|
|
93
|
-
</Form>
|
|
94
|
-
}
|
|
95
|
-
</Modal>
|
|
96
|
-
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const ShowEdit = (props = {}) => {
|
|
101
|
-
return new Promise((resolve) => {
|
|
102
|
-
let popup = Popup(resolve);
|
|
103
|
-
ReactDom.render(
|
|
104
|
-
<DialogEdit destory={popup.destory} {...props} />,
|
|
105
|
-
popup.dom
|
|
106
|
-
);
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
export default ShowEdit;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useRef } from 'react';
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
import {Input,Button,Form,Badge,Space,Popconfirm} from 'antd';
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import { useNavigate } from 'react-router-dom';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import moment from 'moment';
|
|
8
|
-
|
|
9
|
-
import Table from '@/components/table';
|
|
10
|
-
import Link from '@/components/link';
|
|
11
|
-
import {usePaginationWithForm} from '@/hooks';
|
|
12
|
-
import {GET_LIST,FormatTableService} from '@/services/demo';
|
|
13
|
-
import {formatText,formatPhone} from '@/utils/format';
|
|
14
|
-
import {useHealthy} from '@/dictionary';
|
|
15
|
-
|
|
16
|
-
import ShowEdit from './edit';
|
|
17
|
-
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import styles from './index.less';
|
|
20
|
-
|
|
21
|
-
const Page = (props) => {
|
|
22
|
-
const {label=''}= props;
|
|
23
|
-
const [form] = Form.useForm();
|
|
24
|
-
const emHealthy = useHealthy();
|
|
25
|
-
const navigate = useNavigate();
|
|
26
|
-
|
|
27
|
-
const page = usePaginationWithForm({
|
|
28
|
-
service:GET_LIST,
|
|
29
|
-
pagination:{pageSize:10},
|
|
30
|
-
form,
|
|
31
|
-
afterService: [FormatTableService],
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
const columns=[
|
|
35
|
-
{
|
|
36
|
-
dataIndex:'id',
|
|
37
|
-
title:'id',
|
|
38
|
-
width:30,
|
|
39
|
-
render:(text)=>formatText(text)
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
dataIndex:'query',
|
|
43
|
-
title:'查询内容',
|
|
44
|
-
width:90,
|
|
45
|
-
render:(text)=>formatText(text)
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
dataIndex:'name',
|
|
49
|
-
title:'名称',
|
|
50
|
-
width:90,
|
|
51
|
-
render:(text)=>formatText(text)
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
dataIndex:'date',
|
|
55
|
-
title:'时间',
|
|
56
|
-
width:90,
|
|
57
|
-
render:(date)=>date?moment(date).format('YYYY-MM-DD'):'-'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
title: '手机号码',
|
|
61
|
-
dataIndex: 'phone',
|
|
62
|
-
width:100,
|
|
63
|
-
align:'center',
|
|
64
|
-
render:(phone)=>formatPhone(phone)
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
title: '状态',
|
|
68
|
-
dataIndex: 'select',
|
|
69
|
-
width:90,
|
|
70
|
-
align:'center',
|
|
71
|
-
render:(state,record,idx)=>{
|
|
72
|
-
state=['normal','abnormal','disabled'][idx%3];
|
|
73
|
-
const colors={
|
|
74
|
-
normal:'green',
|
|
75
|
-
abnormal:'#FAAD14',
|
|
76
|
-
disabled:'red'
|
|
77
|
-
}
|
|
78
|
-
return <Badge
|
|
79
|
-
color={colors[state]}
|
|
80
|
-
text={emHealthy.getLabel(state)}
|
|
81
|
-
/>
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
title: '操作',
|
|
86
|
-
key: 'option',
|
|
87
|
-
width:80,
|
|
88
|
-
fixed:'right',
|
|
89
|
-
align:'center',
|
|
90
|
-
render: (_, record) => (
|
|
91
|
-
<Space>
|
|
92
|
-
<Link onClick={onDetail.bind(this,record)}>详情</Link>
|
|
93
|
-
<Link onClick={onEdit.bind(this,record)}>编辑</Link>
|
|
94
|
-
<Popconfirm
|
|
95
|
-
title={`确定要${'禁用'}此用户吗?`}
|
|
96
|
-
onConfirm={onDel.bind(this,record)}
|
|
97
|
-
>
|
|
98
|
-
<Link>删除</Link>
|
|
99
|
-
</Popconfirm>
|
|
100
|
-
</Space>
|
|
101
|
-
),
|
|
102
|
-
},
|
|
103
|
-
];
|
|
104
|
-
|
|
105
|
-
const onEdit= async (record)=>{
|
|
106
|
-
const req= await ShowEdit({id:record.id});
|
|
107
|
-
if(req){
|
|
108
|
-
onSearch();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const onDetail= async (record)=>{
|
|
112
|
-
|
|
113
|
-
navigate(`detail/${record.id}`)
|
|
114
|
-
}
|
|
115
|
-
const onDel=()=>{}
|
|
116
|
-
|
|
117
|
-
// 搜索
|
|
118
|
-
const onSearch = () => {
|
|
119
|
-
page.update({ pagination: { current: 1 }, clear: true });
|
|
120
|
-
};
|
|
121
|
-
// 重置
|
|
122
|
-
const onReset = () => {
|
|
123
|
-
page.reset();
|
|
124
|
-
};
|
|
125
|
-
const onPageChange = (current, pageSize) => {
|
|
126
|
-
page.update({ pagination: { current, pageSize }, clear: true });
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
useEffect(() => {
|
|
130
|
-
onSearch();
|
|
131
|
-
}, []);
|
|
132
|
-
|
|
133
|
-
return (
|
|
134
|
-
<section className={styles.contentWrap}>
|
|
135
|
-
<p>页面名称:{label}</p>
|
|
136
|
-
<Form form={form} layout="inline">
|
|
137
|
-
<Form.Item label="关键字" name={'key1'}>
|
|
138
|
-
<Input placeholder="请输入用户组/描述" allowClear />
|
|
139
|
-
</Form.Item>
|
|
140
|
-
<Form.Item label="用户" name={'key2'}>
|
|
141
|
-
<Input placeholder="请输入用户全名" allowClear />
|
|
142
|
-
</Form.Item>
|
|
143
|
-
<Space>
|
|
144
|
-
<Button onClick={onSearch} type="primary">
|
|
145
|
-
搜索
|
|
146
|
-
</Button>
|
|
147
|
-
<Button onClick={onReset}>重置</Button>
|
|
148
|
-
</Space>
|
|
149
|
-
</Form>
|
|
150
|
-
<Table
|
|
151
|
-
columns={columns}
|
|
152
|
-
pagination={{
|
|
153
|
-
onChange: onPageChange,
|
|
154
|
-
}}
|
|
155
|
-
page={page}
|
|
156
|
-
/>
|
|
157
|
-
</section>
|
|
158
|
-
)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export default Page;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React, { useState, useRef } from 'react';
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
import {Input,Button} from 'antd';
|
|
4
|
-
|
|
5
|
-
import ProviderApp from '@/provider/app';
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
import styles from './index.less';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 本地模拟账号密码登录的页面
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
const Page = () => {
|
|
15
|
-
const providerApp = ProviderApp.useContainer();
|
|
16
|
-
const [username,setUsername]=useState('');
|
|
17
|
-
const [password,setPassword]=useState('');
|
|
18
|
-
const refPassword = useRef();
|
|
19
|
-
|
|
20
|
-
const onInput=(type,e)=>{
|
|
21
|
-
const {target:{value}} = e
|
|
22
|
-
switch(type){
|
|
23
|
-
case 'username':{setUsername(value);}break;
|
|
24
|
-
case 'password':{setPassword(value);}break;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const onAccountLogin= async ()=>{
|
|
29
|
-
providerApp.login(username,password)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const onKeyUp=(type,e)=>{
|
|
33
|
-
console.log('onkeyup',e);
|
|
34
|
-
const {key:code}= e;
|
|
35
|
-
if(code.toLocaleLowerCase()=='enter'){
|
|
36
|
-
if(type=='id'){
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
refPassword.current.focus();
|
|
39
|
-
}else{
|
|
40
|
-
onAccountLogin();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return (
|
|
45
|
-
<section className={styles.body}>
|
|
46
|
-
<section className={styles.wrap}>
|
|
47
|
-
<p className={styles.title}>登录</p>
|
|
48
|
-
<hgroup>
|
|
49
|
-
<span className={styles.inputLabel}>用户名</span>
|
|
50
|
-
<Input onKeyUp={onKeyUp.bind(this,'id')} autoComplete='new-password' id='skitoon-id' placeholder="请输入OA域账号" size='large' className={styles.input} value={username} onInput={onInput.bind(this,'username')} />
|
|
51
|
-
</hgroup>
|
|
52
|
-
|
|
53
|
-
<hgroup>
|
|
54
|
-
<span className={styles.inputLabel}>密码</span>
|
|
55
|
-
<Input.Password ref={refPassword} onKeyUp={onKeyUp.bind(this,'password')} autoComplete='new-password' id='skitoon-password' placeholder="请输入密码" size='large' className={styles.input} value={password} onInput={onInput.bind(this,'password')} />
|
|
56
|
-
</hgroup>
|
|
57
|
-
<Button type='primary' size='large' className={styles.btn} onClick={onAccountLogin}
|
|
58
|
-
>登录</Button>
|
|
59
|
-
</section>
|
|
60
|
-
</section>
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export default Page;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.link{
|
|
3
|
-
display: block;
|
|
4
|
-
}
|
|
5
|
-
.body{
|
|
6
|
-
width: 100%;
|
|
7
|
-
height:100%;
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
align-items: center;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
background-color: var(--color-primary-dark);
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
.wrap{
|
|
16
|
-
padding:26px 32px;
|
|
17
|
-
background-color: white;
|
|
18
|
-
.title{
|
|
19
|
-
font-size: 24px;
|
|
20
|
-
font-weight: var(--weight-Medium);
|
|
21
|
-
margin-bottom: 24px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
hgroup{
|
|
25
|
-
margin-bottom: 16px;
|
|
26
|
-
display: block;
|
|
27
|
-
.inputLabel{
|
|
28
|
-
display: block;
|
|
29
|
-
font-size: 13px;
|
|
30
|
-
font-weight: var(--weight-Medium);
|
|
31
|
-
color: #86909C;
|
|
32
|
-
line-height: 22px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
.input{
|
|
36
|
-
width: 336px;
|
|
37
|
-
border-radius: 4px;
|
|
38
|
-
border: 1px solid #E5E6EB;
|
|
39
|
-
}
|
|
40
|
-
.btn{
|
|
41
|
-
width: 336px;
|
|
42
|
-
margin-top: 18px;
|
|
43
|
-
}
|
|
44
|
-
}
|