File tree 3 files changed +25
-2
lines changed
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
registry "https://registry.yarnpkg.com"
2
2
3
- sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ $card_prefix: "dtc-block-header";
40
40
flex : 1 ;
41
41
display : flex ;
42
42
align-items : center ;
43
+ min-width : 0 ;
43
44
.#{$card_prefix } -before-title {
44
45
margin-right : 8px ;
45
46
.default {
@@ -55,6 +56,8 @@ $card_prefix: "dtc-block-header";
55
56
color : #3D446E ;
56
57
font-weight : 500 ;
57
58
margin-right : 4px ;
59
+ flex : 1 ;
60
+ min-width : 0 ;
58
61
}
59
62
.#{$card_prefix } -after-title {
60
63
display : flex ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react';
2
2
import { PieChartOutlined } from '@ant-design/icons' ;
3
3
import BlockHeader from '../../../components/blockHeader' ;
4
4
import EllipsisText from '../../../components/ellipsisText' ;
5
+ import { Button } from 'antd' ;
5
6
6
7
export default function BlockHeaderRender ( ) {
7
8
const style = {
@@ -30,7 +31,27 @@ export default function BlockHeaderRender() {
30
31
Hello World!
31
32
</ BlockHeader >
32
33
< p style = { style } > 7、标题超长</ p >
33
- < BlockHeader title = { < EllipsisText maxWidth = { 400 } value = "标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长" /> } />
34
+ < BlockHeader
35
+ title = {
36
+ < EllipsisText
37
+ maxWidth = { 400 }
38
+ value = "标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长"
39
+ />
40
+ }
41
+ />
42
+ < p style = { style } > 8、标题超长且有 afterTitle</ p >
43
+ < div style = { { width : '50%' } } >
44
+ < BlockHeader
45
+ title = {
46
+ < EllipsisText
47
+ maxWidth = { '100%' }
48
+ value = "标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长标题超长"
49
+ />
50
+ }
51
+ afterTitle = "这是 afterTitle"
52
+ addonAfter = { < Button size = "small" > 选择</ Button > }
53
+ />
54
+ </ div >
34
55
< br />
35
56
36
57
< h3 > 大标题 + 无背景</ h3 >
You can’t perform that action at this time.
0 commit comments