whistle.mock-plugins 1.1.3-dev.15 → 1.1.3-dev.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/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import AppLayout from '../components/AppLayout';
|
|
|
10
10
|
import {
|
|
11
11
|
Table, Button, Modal, Form, Input, Select, message, Switch,
|
|
12
12
|
Popconfirm, Alert, Space, Card, Badge, Tooltip, Row, Col,
|
|
13
|
-
Popover, Checkbox, Tag, Input as AntInput, Radio, Drawer, Dropdown, Menu
|
|
13
|
+
Popover, Checkbox, Tag, Input as AntInput, Radio, Drawer, Dropdown, Menu, Collapse
|
|
14
14
|
} from 'antd';
|
|
15
15
|
import {
|
|
16
16
|
PlusOutlined, EditOutlined, DeleteOutlined,
|
|
@@ -1286,7 +1286,7 @@ const InterfaceManagement = () => {
|
|
|
1286
1286
|
open={modalVisible}
|
|
1287
1287
|
onOk={handleSubmit}
|
|
1288
1288
|
onCancel={handleCancel}
|
|
1289
|
-
width={
|
|
1289
|
+
width={1200}
|
|
1290
1290
|
destroyOnClose
|
|
1291
1291
|
okText={editingInterface ? '保存' : '创建'}
|
|
1292
1292
|
cancelText="取消"
|
|
@@ -1317,17 +1317,21 @@ const InterfaceManagement = () => {
|
|
|
1317
1317
|
responseDelay: '0'
|
|
1318
1318
|
}}
|
|
1319
1319
|
>
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
title={
|
|
1323
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
|
|
1324
|
-
<Badge count="1" style={{ backgroundColor: '#1677ff' }} />
|
|
1325
|
-
<span>基础信息</span>
|
|
1326
|
-
</div>
|
|
1327
|
-
}
|
|
1320
|
+
<Collapse
|
|
1321
|
+
defaultActiveKey={editingInterface ? ['1', '2'] : ['1', '2', '3']}
|
|
1328
1322
|
style={{ marginBottom: '16px' }}
|
|
1329
|
-
|
|
1323
|
+
ghost
|
|
1330
1324
|
>
|
|
1325
|
+
{/* 第一步:基础信息 */}
|
|
1326
|
+
<Collapse.Panel
|
|
1327
|
+
header={
|
|
1328
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
|
|
1329
|
+
<Badge count="1" style={{ backgroundColor: '#1677ff' }} />
|
|
1330
|
+
<span>基础信息</span>
|
|
1331
|
+
</div>
|
|
1332
|
+
}
|
|
1333
|
+
key="1"
|
|
1334
|
+
>
|
|
1331
1335
|
<div style={{ display: 'flex', flexDirection: 'row', gap: '16px' }}>
|
|
1332
1336
|
<div style={{ flex: 1 }}>
|
|
1333
1337
|
<Form.Item
|
|
@@ -1374,19 +1378,18 @@ const InterfaceManagement = () => {
|
|
|
1374
1378
|
</Form.Item>
|
|
1375
1379
|
</div>
|
|
1376
1380
|
</div>
|
|
1377
|
-
|
|
1381
|
+
</Collapse.Panel>
|
|
1378
1382
|
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
>
|
|
1383
|
+
{/* 第二步:URL配置 */}
|
|
1384
|
+
<Collapse.Panel
|
|
1385
|
+
header={
|
|
1386
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
|
|
1387
|
+
<Badge count="2" style={{ backgroundColor: '#1677ff' }} />
|
|
1388
|
+
<span>URL配置</span>
|
|
1389
|
+
</div>
|
|
1390
|
+
}
|
|
1391
|
+
key="2"
|
|
1392
|
+
>
|
|
1390
1393
|
<div style={{ display: 'flex', flexDirection: 'row', gap: '16px' }}>
|
|
1391
1394
|
<div style={{ flex: 1 }}>
|
|
1392
1395
|
<Form.Item
|
|
@@ -1528,19 +1531,18 @@ const InterfaceManagement = () => {
|
|
|
1528
1531
|
{/* 这里可以留空或添加其他字段 */}
|
|
1529
1532
|
</div>
|
|
1530
1533
|
</div>
|
|
1531
|
-
|
|
1534
|
+
</Collapse.Panel>
|
|
1532
1535
|
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
>
|
|
1536
|
+
{/* 第三步:高级配置 */}
|
|
1537
|
+
<Collapse.Panel
|
|
1538
|
+
header={
|
|
1539
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
|
|
1540
|
+
<Badge count="3" style={{ backgroundColor: '#1677ff' }} />
|
|
1541
|
+
<span>高级配置</span>
|
|
1542
|
+
</div>
|
|
1543
|
+
}
|
|
1544
|
+
key="3"
|
|
1545
|
+
>
|
|
1544
1546
|
|
|
1545
1547
|
{/* 根据proxyType显示不同的表单项 */}
|
|
1546
1548
|
<Form.Item noStyle shouldUpdate={(prevValues, currentValues) => prevValues.proxyType !== currentValues.proxyType}>
|
|
@@ -1801,7 +1803,8 @@ const InterfaceManagement = () => {
|
|
|
1801
1803
|
return null;
|
|
1802
1804
|
}}
|
|
1803
1805
|
</Form.Item>
|
|
1804
|
-
|
|
1806
|
+
</Collapse.Panel>
|
|
1807
|
+
</Collapse>
|
|
1805
1808
|
</Form>
|
|
1806
1809
|
</div>
|
|
1807
1810
|
</Modal>
|
|
@@ -1197,6 +1197,45 @@
|
|
|
1197
1197
|
box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.1);
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
|
+
/* 接口弹窗中的折叠面板样式 */
|
|
1201
|
+
.interface-modal .ant-collapse {
|
|
1202
|
+
background: transparent;
|
|
1203
|
+
border: none;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
.interface-modal .ant-collapse-item {
|
|
1207
|
+
margin-bottom: 16px;
|
|
1208
|
+
background: #ffffff;
|
|
1209
|
+
border: 1px solid #e8e8e8;
|
|
1210
|
+
border-radius: 8px;
|
|
1211
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.interface-modal .ant-collapse-header {
|
|
1215
|
+
background: #fafafa;
|
|
1216
|
+
border-bottom: 1px solid #f0f0f0;
|
|
1217
|
+
border-radius: 8px 8px 0 0 !important;
|
|
1218
|
+
padding: 16px 20px !important;
|
|
1219
|
+
font-size: 14px;
|
|
1220
|
+
font-weight: 600;
|
|
1221
|
+
color: #262626;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.interface-modal .ant-collapse-content {
|
|
1225
|
+
border-top: none;
|
|
1226
|
+
background: #ffffff;
|
|
1227
|
+
border-radius: 0 0 8px 8px;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.interface-modal .ant-collapse-content-box {
|
|
1231
|
+
padding: 20px;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.interface-modal .ant-collapse-arrow {
|
|
1235
|
+
color: #666 !important;
|
|
1236
|
+
font-size: 12px !important;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1200
1239
|
/* 分页器样式 */
|
|
1201
1240
|
.interface-table .ant-pagination-options {
|
|
1202
1241
|
margin-right: 16px;
|