-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/support lifecycle demo (#53)
* feat(example): 支持omi组件格式 * feat(example): 支持omi组件格式 * feat(example): 支持omi组件格式
- Loading branch information
Showing
4 changed files
with
23 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ spline: base | |
|
||
### 基础使用 | ||
|
||
{{ base-omi }} | ||
{{ base }} | ||
|
||
### 图标按钮 | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
import 'tdesign-web-components/button'; | ||
|
||
export default function Button() { | ||
return ( | ||
<div style={{ gap: 16, display: 'inline-flex' }}> | ||
<t-button theme="default" variant="base"> | ||
填充按钮 | ||
</t-button> | ||
<t-button theme="default" variant="outline"> | ||
描边按钮 | ||
</t-button> | ||
<t-button theme="default" variant="dashed"> | ||
虚框按钮 | ||
</t-button> | ||
<t-button theme="default" variant="text"> | ||
文字按钮 | ||
</t-button> | ||
</div> | ||
); | ||
import { Component } from 'omi'; | ||
|
||
export default class Button extends Component { | ||
render() { | ||
return ( | ||
<div style={{ gap: 16, display: 'inline-flex' }}> | ||
<t-button theme="default" variant="base"> | ||
填充按钮 | ||
</t-button> | ||
<t-button theme="default" variant="outline"> | ||
描边按钮 | ||
</t-button> | ||
<t-button theme="default" variant="dashed"> | ||
虚框按钮 | ||
</t-button> | ||
<t-button theme="default" variant="text"> | ||
文字按钮 | ||
</t-button> | ||
</div> | ||
); | ||
} | ||
} |