-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
124 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<template> | ||
<FForm labelWidth="100px"> | ||
<FFormItem label="按钮大小:"> | ||
<FRadioGroup | ||
v-model="size" | ||
:options="[ | ||
{ label: 'small', value: 'small' }, | ||
{ label: 'middle(默认)', value: 'middle' }, | ||
{ label: 'large', value: 'large' }, | ||
]" | ||
/> | ||
</FFormItem> | ||
<FFormItem label="是否加载状态:"> | ||
<FRadioGroup | ||
v-model="loading" | ||
:options="[ | ||
{ label: '否(默认)', value: false }, | ||
{ label: '是', value: true }, | ||
]" | ||
/> | ||
</FFormItem> | ||
<FFormItem label="是否禁用状态:"> | ||
<FRadioGroup | ||
v-model="disabled" | ||
:options="[ | ||
{ label: '否(默认)', value: false }, | ||
{ label: '是', value: true }, | ||
]" | ||
/> | ||
</FFormItem> | ||
</FForm> | ||
|
||
<FDivider></FDivider> | ||
|
||
<FSpace> | ||
<FButton :size="size" :loading="loading" :disabled="disabled"> | ||
Default | ||
</FButton> | ||
<FButton | ||
type="primary" | ||
:size="size" | ||
:loading="loading" | ||
:disabled="disabled" | ||
> | ||
Primary | ||
</FButton> | ||
<FButton | ||
type="text" | ||
:size="size" | ||
:loading="loading" | ||
:disabled="disabled" | ||
> | ||
Text | ||
</FButton> | ||
<FButton | ||
type="link" | ||
:size="size" | ||
:loading="loading" | ||
:disabled="disabled" | ||
> | ||
Link | ||
</FButton> | ||
</FSpace> | ||
|
||
<FDivider></FDivider> | ||
|
||
<FSpace> | ||
<FButton | ||
type="info" | ||
:size="size" | ||
:loading="loading" | ||
:disabled="disabled" | ||
> | ||
Info | ||
</FButton> | ||
<FButton | ||
type="success" | ||
:size="size" | ||
:loading="loading" | ||
:disabled="disabled" | ||
> | ||
Success | ||
</FButton> | ||
<FButton | ||
type="warning" | ||
:size="size" | ||
:loading="loading" | ||
:disabled="disabled" | ||
> | ||
Warning | ||
</FButton> | ||
<FButton | ||
type="danger" | ||
:size="size" | ||
:loading="loading" | ||
:disabled="disabled" | ||
> | ||
Danger | ||
</FButton> | ||
</FSpace> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue'; | ||
const size = ref('middle'); | ||
const loading = ref(false); | ||
const disabled = ref(false); | ||
</script> |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<template> | ||
<FSpace> | ||
<FButton long>Default</FButton> | ||
<FButton type="primary" long>Primary</FButton> | ||
<FSpace vertical> | ||
<FButton size="small" long>Default</FButton> | ||
<FButton type="info" long>Info</FButton> | ||
<FButton type="primary" size="large" long>Primary</FButton> | ||
</FSpace> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.