File tree Expand file tree Collapse file tree 5 files changed +25
-20
lines changed
Expand file tree Collapse file tree 5 files changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ const Message: React.FC<MessageProps> = (originProps) => {
232232
233233 const getLinkContent = ( ) => {
234234 if ( typeof link === 'string' ) {
235- return < Link content = { link } /> ;
235+ return < Link theme = "primary" content = { link } /> ;
236236 }
237237 if ( isObject ( link ) ) {
238238 return < Link theme = "primary" { ...link } /> ;
Original file line number Diff line number Diff line change @@ -41,27 +41,24 @@ export default function () {
4141 return (
4242 < div className = "container" >
4343 { content . map ( ( v , index ) => (
44- < Button variant = "outline" className = "button" onClick = { ( ) => onClick ( index ) } key = { index } >
44+ < Button
45+ block
46+ size = "large"
47+ variant = "outline"
48+ theme = "primary"
49+ className = "button"
50+ onClick = { ( ) => onClick ( index ) }
51+ key = { index }
52+ >
4553 { v }
4654 </ Button >
4755 ) ) }
48- < Button variant = "outline" className = "button" onClick = { ( ) => setVisible ( true ) } >
56+ < Button block size = "large" variant = "outline" theme = "primary " className = "button" onClick = { ( ) => setVisible ( true ) } >
4957 带按钮的通知
5058 </ Button >
5159 < Message
52- closeBtn = {
53- < Button
54- theme = "primary"
55- variant = "outline"
56- className = "close-button"
57- onClick = { ( ) => {
58- setVisible ( false ) ;
59- } }
60- >
61- 按钮
62- </ Button >
63- }
6460 visible = { visible }
61+ link = "链接"
6562 duration = { 0 }
6663 content = "这是一条带操作的消息通知"
6764 icon = { < Icon name = "notification" size = { 22 } /> }
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ export default function () {
3939
4040 return (
4141 < div className = "container button-demo-closeall" >
42- < Button variant = "outline" className = "button" onClick = { openAllMessage } >
42+ < Button block size = "large" variant = "outline" theme = "primary " className = "button" onClick = { openAllMessage } >
4343 打开多个通知
4444 </ Button >
45- < Button variant = "outline" className = "button" onClick = { closeAllMessage } >
45+ < Button block size = "large" variant = "outline" theme = "primary " className = "button" onClick = { closeAllMessage } >
4646 关闭所有通知
4747 </ Button >
4848 </ div >
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ export default function Demo() {
1010 return (
1111 < div className = "tdesign-mobile-demo" >
1212 < TDemoHeader title = "Message 消息通知" summary = "用于轻量级反馈或提示,不会打断用户操作。 " />
13- < TDemoBlock title = "01 类型 " summary = "弹窗内容为纯文本、标题和副标题、带输入框 " >
13+ < TDemoBlock title = "01 组件类型 " summary = "消息通知内容为文本、带操作按钮 " >
1414 < Base />
1515 </ TDemoBlock >
16- < TDemoBlock title = "02 状态 " summary = "弹窗状态为普通弹窗、警示提示弹窗、成功提示弹窗、错误提示弹窗。 " >
16+ < TDemoBlock title = "02 组件状态 " summary = "消息组件风格 " >
1717 < Theme />
1818 </ TDemoBlock >
1919 < TDemoBlock title = "03 关闭所有通知" summary = "关闭所有通知" >
Original file line number Diff line number Diff line change @@ -59,7 +59,15 @@ export default function () {
5959 return (
6060 < div className = "container" >
6161 { contents . map ( ( v , index ) => (
62- < Button key = { index } variant = "outline" className = "button" onClick = { ( ) => onClick ( index ) } >
62+ < Button
63+ key = { index }
64+ block
65+ size = "large"
66+ variant = "outline"
67+ theme = "primary"
68+ className = "button"
69+ onClick = { ( ) => onClick ( index ) }
70+ >
6371 { v }
6472 </ Button >
6573 ) ) }
You can’t perform that action at this time.
0 commit comments