Commit 4b621619 authored by 邓超's avatar 邓超

fix: 修改全局表格hover样式,建表按钮样式调整

parent cc117fd6
Pipeline #61593 passed with stages
......@@ -56,7 +56,7 @@
.btnBox {
position: absolute;
top: 0px;
top: 0;
right: 0px;
// background-color: #fff;
width: 100%;
......
......@@ -101,8 +101,14 @@ iframe {
.ant-table-body {
border-right: 1px solid rgb(240, 240, 240);
.ant-table-row:hover>td {
background: #aed8fa !important;
}
}
.ant-table-cell {
overflow: hidden;
......
......@@ -237,7 +237,7 @@ const EditableCell = ({
) : (
<div
className="editable-cell-value-wrap"
title={children[1]}
// title={children[1]}
style={{
width: `${width - 20}px`,
height: '32px',
......@@ -515,7 +515,7 @@ const TableView = props => {
title: '字段名称',
dataIndex: 'Name',
width: 200,
ellipsis: true,
// ellipsis: true,
editable: true,
align: 'center',
render: (text, record) => (
......@@ -651,40 +651,50 @@ const TableView = props => {
centered
>
<div className={styles.content}>
<Form form={form} layout="inline">
<Form.Item label="表名" name="tableName" required>
<Input
addonBefore={type === 'add' ? `${tableMap[tableType]}_` : null}
placeholder="请填写表名"
/>
</Form.Item>
<Form.Item label="别名" name="alias">
<Input placeholder="请填写别名" />
</Form.Item>
<Form.Item label="内置字段">
<Switch
defaultChecked
checkedChildren="显示"
unCheckedChildren="隐藏"
onChange={showDefaultFields}
/>
</Form.Item>
<Form.Item>
<Button type="primary" onClick={() => handleAdd()}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<PlusOutlined style={{ marginRight: '5px' }} />
<span> 新增</span>
</div>
</Button>
</Form.Item>
<Form.Item>
<Button onClick={() => deleteFilleds()}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<MinusOutlined style={{ marginRight: '5px' }} />
<span> 批量删除</span>
</div>
</Button>
</Form.Item>
<Form form={form}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<div style={{ display: 'flex' }}>
<Form.Item label="表名" name="tableName" required style={{ marginBottom: '0' }}>
<Input
addonBefore={type === 'add' ? `${tableMap[tableType]}_` : null}
placeholder="请填写表名"
/>
</Form.Item>
<Form.Item
label="别名"
name="alias"
style={{ marginBottom: '0', marginLeft: '10px' }}
>
<Input placeholder="请填写别名" />
</Form.Item>
</div>
<div style={{ display: 'flex' }}>
<Form.Item label="内置字段" style={{ marginBottom: '0', marginRight: '10px' }}>
<Switch
defaultChecked
checkedChildren="显示"
unCheckedChildren="隐藏"
onChange={showDefaultFields}
/>
</Form.Item>
<Form.Item style={{ marginBottom: '0', marginRight: '10px' }}>
<Button type="primary" onClick={() => handleAdd()}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<PlusOutlined style={{ marginRight: '5px' }} />
<span> 新增</span>
</div>
</Button>
</Form.Item>
<Form.Item style={{ marginBottom: '0' }}>
<Button onClick={() => deleteFilleds()}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<MinusOutlined style={{ marginRight: '5px' }} />
<span> 批量删除</span>
</div>
</Button>
</Form.Item>
</div>
</div>
</Form>
<Spin spinning={loading}>
<Table
......
......@@ -132,7 +132,7 @@
.ant-tabs-content {
height: 100%;
position: relative;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment