mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
update code box template
This commit is contained in:
parent
2d1187c9ac
commit
9591702f14
@ -4,10 +4,6 @@
|
||||
|
||||
---
|
||||
|
||||
````html
|
||||
<div id="example"></div>
|
||||
````
|
||||
|
||||
````js
|
||||
/** @jsx React.DOM */
|
||||
var Button = React.createClass({
|
||||
@ -16,6 +12,7 @@ var Button = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
React.render(<Button>失效的按钮</Button>, document.getElementById('example'));
|
||||
React.render(
|
||||
<Button>失效的按钮</Button>
|
||||
, document.getElementById('components-button-demo-disabled'));
|
||||
````
|
||||
|
||||
|
@ -1011,7 +1011,7 @@ footer ul li > a {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.code-box .nico-insert-code {
|
||||
.code-box .code-box-demo {
|
||||
padding: 50px 25px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
@ -1,5 +1,8 @@
|
||||
<div class="code-box">
|
||||
<div class="code-box-demo">
|
||||
<div id="{{post.meta.id}}"></div>
|
||||
{{ post.html|jsx }}
|
||||
</div>
|
||||
<div class="code-box-meta">
|
||||
<div class="code-box-title">{{ post.title }}</div>
|
||||
<p class="code-box-description">
|
||||
|
Loading…
Reference in New Issue
Block a user