Skip to content

Commit 5dc6ad7

Browse files
committed
docs: update button doc
1 parent bdda185 commit 5dc6ad7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/button/demo/index.vue

+10
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@ const md = {
1515
按钮用于开始一个即时操作。
1616
## 何时使用
1717
标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。
18+
## 组件注册
19+
\`\`\`js
20+
import { Button } from 'ant-design-vue';
21+
Vue.use(Button);
22+
\`\`\`
1823
## 代码演示`,
1924
us: `# Button
2025
To trigger an operation.
2126
## When To Use
2227
A button means an operation (or a series of operations). Clicking a button will trigger corresponding business logic.
28+
## Component Registration
29+
\`\`\`js
30+
import { Button } from 'ant-design-vue';
31+
Vue.use(Button);
32+
\`\`\`
2333
## Examples
2434
`,
2535
};

0 commit comments

Comments
 (0)