-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 complete simple input component feature
complete simple input component feature
- Loading branch information
1 parent
6f85a0d
commit 6011126
Showing
594 changed files
with
31,167 additions
and
4,948 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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# 间距 - Space | ||
|
||
### 基础用法 | ||
|
||
输入框组件的基本用法。 | ||
|
||
:::demo | ||
|
||
|
||
```vue | ||
<template> | ||
<SSpace> | ||
<SInput :style="{width:'320px'}" placeholder="Please enter something" allow-clear v-model="text" /> | ||
<SInput :style="{width:'320px'}" default-value="content" placeholder="Please enter something" allow-clear /> | ||
</SSpace> | ||
</template> | ||
<script> | ||
import { ref, defineComponent } from 'vue' | ||
export default defineComponent({ | ||
setup() { | ||
return { | ||
text: ref('') | ||
} | ||
} | ||
}) | ||
</script> | ||
``` | ||
::: | ||
|
||
### 垂直间距 | ||
|
||
可以设置垂直方向排列的间距。 | ||
|
||
:::demo | ||
|
||
|
||
```vue | ||
<template> | ||
<SSpace direction="vertical" fill> | ||
<SButton>hello</SButton> | ||
<SButton>world</SButton> | ||
<SButton>haha</SButton> | ||
</SSpace> | ||
</template> | ||
``` | ||
::: | ||
|
||
### 尺寸 | ||
|
||
内置 4 个尺寸,mini - 4px small - 8px (默认) medium - 16px large - 24px,也支持传数字来自定义尺寸。 | ||
|
||
:::demo | ||
|
||
|
||
```vue | ||
<template> | ||
<SSpace size="large"> | ||
<SButton>hello</SButton> | ||
<SButton>world</SButton> | ||
<SButton>haha</SButton> | ||
</SSpace> | ||
</template> | ||
``` | ||
::: |
Oops, something went wrong.