Commit 27024f93 by zhaochengxiang

调整资产样式

parent 9c123670
...@@ -219,7 +219,7 @@ tr.drop-over-upward td { ...@@ -219,7 +219,7 @@ tr.drop-over-upward td {
} }
.m-common { .m-common {
margin: 24px 15px; margin: 20px 15px;
} }
.mx-common { .mx-common {
...@@ -236,20 +236,20 @@ tr.drop-over-upward td { ...@@ -236,20 +236,20 @@ tr.drop-over-upward td {
} }
.my-common { .my-common {
margin-top: 24px; margin-top: 20px;
margin-bottom: 24px; margin-bottom: 20px;
} }
.mt-common { .mt-common {
margin-top: 24px; margin-top: 20px;
} }
.mb-common { .mb-common {
margin-bottom: 24px; margin-bottom: 20px;
} }
.p-common { .p-common {
padding: 24px 15px; padding: 20px 15px;
} }
.px-common { .px-common {
...@@ -266,16 +266,16 @@ tr.drop-over-upward td { ...@@ -266,16 +266,16 @@ tr.drop-over-upward td {
} }
.py-common { .py-common {
padding-top: 24px; padding-top: 20px;
padding-bottom: 24px; padding-bottom: 20px;
} }
.pt-common { .pt-common {
padding-top: 24px; padding-top: 20px;
} }
.pb-common { .pb-common {
padding-bottom: 24px; padding-bottom: 20px;
} }
.py-compact-common { .py-compact-common {
...@@ -352,4 +352,8 @@ tr.drop-over-upward td { ...@@ -352,4 +352,8 @@ tr.drop-over-upward td {
} }
} }
} }
}
.yy-card-head {
min-height: 40px !important;
} }
\ No newline at end of file
...@@ -8,6 +8,7 @@ import AttributeRelationModal from "./AttributeRelationModal"; ...@@ -8,6 +8,7 @@ import AttributeRelationModal from "./AttributeRelationModal";
import FilterElementModal from './FilterElementModal'; import FilterElementModal from './FilterElementModal';
import { showNotifaction } from '../../../../util'; import { showNotifaction } from '../../../../util';
import { MoreSvg } from './AssetSvg'; import { MoreSvg } from './AssetSvg';
import Separate from './Separate';
import record from '../Assets/record.png'; import record from '../Assets/record.png';
import './AssetDirectory.less'; import './AssetDirectory.less';
...@@ -120,18 +121,20 @@ const AssetDirectory = (props) => { ...@@ -120,18 +121,20 @@ const AssetDirectory = (props) => {
> >
<div style={{ flex: 1, overflow: 'hidden'}}> <div style={{ flex: 1, overflow: 'hidden'}}>
<div> <div>
<div className='mb-common'> <div className='mb-common flex'>
<Paragraph> <Paragraph style={{ flex: 1, overflow: 'hidden' }}>
<Tooltip title={dir?.name||''}> <Tooltip title={dir?.name||''}>
<Text className='title-color'> <Text className='title-color' ellipsis={true}>
名称:&nbsp; 名称
<Text className='text-color'>{dir?.name||''}</Text> <Text className='text-color'>{dir?.name||''}</Text>
</Text> </Text>
</Tooltip> </Tooltip>
&nbsp;&nbsp; </Paragraph>
<Separate width={10} background='#fff' />
<Paragraph style={{ flex: 1, overflow: 'hidden' }}>
<Tooltip title={dir?.code||''}> <Tooltip title={dir?.code||''}>
<Text className='title-color'> <Text className='title-color' ellipsis={true}>
编号:&nbsp; 编号
<Text className='text-color'>{dir?.code||''}</Text> <Text className='text-color'>{dir?.code||''}</Text>
</Text> </Text>
</Tooltip> </Tooltip>
...@@ -141,7 +144,7 @@ const AssetDirectory = (props) => { ...@@ -141,7 +144,7 @@ const AssetDirectory = (props) => {
<Paragraph> <Paragraph>
<Tooltip title={dir?.desc||''}> <Tooltip title={dir?.desc||''}>
<Text className='title-color' ellipsis={true}> <Text className='title-color' ellipsis={true}>
描述:&nbsp; 描述
<Text className='text-color'>{dir?.desc||''}</Text> <Text className='text-color'>{dir?.desc||''}</Text>
</Text> </Text>
</Tooltip> </Tooltip>
...@@ -152,7 +155,7 @@ const AssetDirectory = (props) => { ...@@ -152,7 +155,7 @@ const AssetDirectory = (props) => {
<Paragraph> <Paragraph>
<Tooltip title={dir?.remarks||''}> <Tooltip title={dir?.remarks||''}>
<Text className='title-color' ellipsis={true}> <Text className='title-color' ellipsis={true}>
备注:&nbsp; 备注
<Text className='text-color'>{dir?.remarks||''}</Text> <Text className='text-color'>{dir?.remarks||''}</Text>
</Text> </Text>
</Tooltip> </Tooltip>
...@@ -190,7 +193,7 @@ const AssetDirectory = (props) => { ...@@ -190,7 +193,7 @@ const AssetDirectory = (props) => {
flexDirection: 'column', flexDirection: 'column',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
marginBottom: 58, marginBottom: 42,
}} }}
> >
<MoreSvg style={{ width: 20, height: 20, marginBottom: 5 }} /> <MoreSvg style={{ width: 20, height: 20, marginBottom: 5 }} />
......
...@@ -514,7 +514,7 @@ const AssetTable = (props) => { ...@@ -514,7 +514,7 @@ const AssetTable = (props) => {
if (fullScreen) { if (fullScreen) {
scrollY = 'calc(100vh - 182px - 80px)'; scrollY = 'calc(100vh - 182px - 80px)';
} else if (reference===AssetManageReference) { } else if (reference===AssetManageReference) {
scrollY = 'calc(100vh - 182px - 139px - 15px - 80px)'; scrollY = 'calc(100vh - 182px - 123px - 15px - 80px)';
} else if (reference===AssetBrowseReference||reference===ResourceBrowseReference) { } else if (reference===AssetBrowseReference||reference===ResourceBrowseReference) {
scrollY = 'calc(100vh - 182px - 102px - 15px - 80px)'; scrollY = 'calc(100vh - 182px - 102px - 15px - 80px)';
} else if (reference===AssetRecycleReference) { } else if (reference===AssetRecycleReference) {
......
...@@ -555,7 +555,6 @@ const AssetTree = (props) => { ...@@ -555,7 +555,6 @@ const AssetTree = (props) => {
index > -1 ? ( index > -1 ? (
<span <span
className={isRootLeaf?'title-color': 'text-color'} className={isRootLeaf?'title-color': 'text-color'}
style={{ fontWeight: isRootLeaf?'bold': '' }}
> >
{beforeStr} {beforeStr}
<span className="site-tree-search-value">{keyword}</span> <span className="site-tree-search-value">{keyword}</span>
...@@ -564,7 +563,6 @@ const AssetTree = (props) => { ...@@ -564,7 +563,6 @@ const AssetTree = (props) => {
) : ( ) : (
<span <span
className={isRootLeaf?'title-color': 'text-color'} className={isRootLeaf?'title-color': 'text-color'}
style={{ fontWeight: isRootLeaf?'bold': '' }}
>{item.text}</span> >{item.text}</span>
); );
if (item.children) { if (item.children) {
...@@ -586,7 +584,7 @@ const AssetTree = (props) => { ...@@ -586,7 +584,7 @@ const AssetTree = (props) => {
<div <div
className='flex px-2 btn-group' className='flex px-2 btn-group'
style={{ style={{
height: 60, height: 40,
alignItems: 'center', alignItems: 'center',
justifyContent: 'space-around', justifyContent: 'space-around',
}} }}
...@@ -611,14 +609,14 @@ const AssetTree = (props) => { ...@@ -611,14 +609,14 @@ const AssetTree = (props) => {
</div> </div>
)} )}
bordered={false} bordered={false}
bodyStyle={{ padding: '24px 15px' }} bodyStyle={{ padding: '10px 15px' }}
headStyle={{ padding: 0 }} headStyle={{ padding: 0 }}
style={{ width: '100%' }} style={{ width: '100%' }}
> >
<Spin spinning={loading}> <Spin spinning={loading}>
<Input <Input
value={keyword} value={keyword}
style={{ marginBottom: 24 }} style={{ marginBottom: 10 }}
onChange={(e) => { onChange(e) }} onChange={(e) => { onChange(e) }}
/> />
<Tree <Tree
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
} }
.yy-tree{ .yy-tree{
height: calc(100vh - @header-height - 30px - 60px - 104px) !important; height: calc(100vh - @header-height - 30px - 40px - 62px) !important;
overflow: auto !important; overflow: auto !important;
} }
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
.asset-tree-read-only { .asset-tree-read-only {
.yy-tree { .yy-tree {
height: calc(100vh - @header-height - 30px - 104px) !important;; height: calc(100vh - @header-height - 30px - 62px) !important;;
overflow: auto !important; overflow: auto !important;
} }
} }
......
const Separate = (props) => { const Separate = (props) => {
const { width = '100%', height = '100%' } = props; const { width = '100%', height = '100%', background = '#f0f2f5' } = props;
return ( return (
<div style={{ width, height, background: '#f0f2f5' }} /> <div style={{ width, height, background }} />
) )
} }
......
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