Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions src/docs/en-US/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `mu-button` button component can be customized with a different color or ico
<mu-button color="info">Info</mu-button>
<mu-button color="error">Error</mu-button>
<mu-button disabled>disabled</mu-button>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand All @@ -39,7 +39,7 @@ Used for common functionality and reduced tiering on the screen to make it more
<mu-button flat color="success">Success</mu-button>
<mu-button flat color="warning">Warning</mu-button>
<mu-button flat disabled>disabled</mu-button>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand Down Expand Up @@ -108,7 +108,7 @@ The icon can be used as the main content of the button, or it can be displayed w
<mu-icon right value="send"></mu-icon>
</mu-button>
</div>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand Down Expand Up @@ -146,7 +146,7 @@ The floating button is rounded and usually contains an icon.
<mu-button large fab color="purple">
<mu-icon value="thumb_up"></mu-icon>
</mu-button>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand Down Expand Up @@ -255,15 +255,3 @@ Button can be set in defferent size,`small`、`normal`、`large`。
| append | When the `append` property is set, the base path is added before the current (relative) path. For example, we navigate from `/a` to a relative path b, if no append is configured, the path is `/b`, and if it is `/a/b` | Boolean | — | false |
| replace | Setting the `replace` property, when clicked, will call `router.replace()` instead of `router.push()`, so the navigation will not leave the history record. | Boolean | — | false |

<style lang="less">
.button-wrapper {
text-align: center;
.mu-button{
margin: 8px;
vertical-align: middle;
}
a.mu-button {
text-decoration: none;
}
}
</style>
4 changes: 2 additions & 2 deletions src/docs/en-US/load-more.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Hold the drop-down to refresh, or scroll to the bottom to load data.
<mu-load-more @refresh="refresh" :refreshing="refreshing" :loading="loading" @load="load">
<mu-list>
<template v-for="i in num">
<mu-list-item>
<mu-list-item :key="i + num">
<mu-list-item-title>{{text}} Item {{i}}</mu-list-item-title>
</mu-list-item>
<mu-divider />
<mu-divider :key="i"/>
</template>
</mu-list>
</mu-load-more>
Expand Down
20 changes: 4 additions & 16 deletions src/docs/zh-CN/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<mu-button color="info">Info</mu-button>
<mu-button color="error">Error</mu-button>
<mu-button disabled>disabled</mu-button>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand All @@ -39,7 +39,7 @@
<mu-button flat color="success">Success</mu-button>
<mu-button flat color="warning">Warning</mu-button>
<mu-button flat disabled>disabled</mu-button>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand Down Expand Up @@ -108,7 +108,7 @@
<mu-icon right value="send"></mu-icon>
</mu-button>
</div>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand Down Expand Up @@ -146,7 +146,7 @@
<mu-button large fab color="purple">
<mu-icon value="thumb_up"></mu-icon>
</mu-button>
<mu-container>
</mu-container>
<style lang="less">
.button-wrapper {
text-align: center;
Expand Down Expand Up @@ -255,15 +255,3 @@
| append | 设置 `append` 属性后,则在当前(相对)路径前添加基路径。例如,我们从 `/a` 导航到一个相对路径 b,如果没有配置 append,则路径为 /b,如果配了,则为 /a/b | Boolean | — | false |
| replace | 设置 `replace` 属性的话,当点击时,会调用 `router.replace()` 而不是 `router.push()`,于是导航后不会留下 history 记录。 | Boolean | — | false |

<style lang="less">
.button-wrapper {
text-align: center;
.mu-button{
margin: 8px;
vertical-align: middle;
}
a.mu-button {
text-decoration: none;
}
}
</style>
4 changes: 2 additions & 2 deletions src/docs/zh-CN/load-more.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<mu-load-more @refresh="refresh" :refreshing="refreshing" :loading="loading" @load="load">
<mu-list>
<template v-for="i in num">
<mu-list-item>
<mu-list-item :key="i+num">
<mu-list-item-title>{{text}} Item {{i}}</mu-list-item-title>
</mu-list-item>
<mu-divider />
<mu-divider :key="i"/>
</template>
</mu-list>
</mu-load-more>
Expand Down