Skip to content

Commit

Permalink
feat: button readme 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Apr 28, 2023
1 parent 226127b commit f49f8a1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/quarkd/src/button/doc.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,10 @@ import "quarkd/lib/button";
```html
<quark-button loading type="danger" loadtype="circular">加载中...</quark-button>
<quark-button loading type="warning">加载中...</quark-button>
<!-- @click="changeLoading" -->
<quark-button type="success" onclick="changeLoading()">Click me!</quark-button>
<quark-button type="success" @click="changeLoading">Click me!</quark-button>
```

```js
function changeLoading() {
btn.loading = true;
setTimeout(() => {
btn.loadng = false;
}, 2000); // 点击2s后loading消失
}

export default {
setup() {
const isLoading = ref(false);
Expand Down

0 comments on commit f49f8a1

Please sign in to comment.