From 01dfe20fce6507077a8fd1dd060f021e0f4f3bbe Mon Sep 17 00:00:00 2001 From: Kagol Date: Sat, 9 Apr 2022 13:05:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs(button):=20=E4=BC=98=E5=8C=96demo?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devui-theme/styles/demo-block.scss | 18 +++ .../devui-vue/docs/components/button/index.md | 128 ++++++------------ 2 files changed, 63 insertions(+), 83 deletions(-) diff --git a/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss b/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss index b9e49c8a70..666bb693f7 100644 --- a/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss +++ b/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss @@ -6,6 +6,24 @@ &.hover { box-shadow: none !important; } + + .source { + .demo-spacing { + & > .devui-btn { + margin: 0 8px 8px 0; + + &:last-child { + margin-right: 0; + } + } + + &:last-child { + & > .devui-btn { + margin-bottom: 0; + } + } + } + } } .demo-block-control { diff --git a/packages/devui-vue/docs/components/button/index.md b/packages/devui-vue/docs/components/button/index.md index 3023a010eb..e4ec4f0b13 100644 --- a/packages/devui-vue/docs/components/button/index.md +++ b/packages/devui-vue/docs/components/button/index.md @@ -6,41 +6,41 @@ 标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。 -### 按钮类型 +### 按钮形态 -:::demo 通过`variant`设置按钮类型,目前支持`solid`、`outline`、`text`三种类型,默认为`outline`类型。 +:::demo 通过`variant`设置按钮形态,目前支持`solid`、`outline`、`text`三种形态,默认为`outline`。 ```vue - - ``` ::: ### 主题色 -:::demo 通过`color`设置按钮主题,目前支持`secondary`、`primary`、`danger`三种类型,默认为`secondary`类型。 +:::demo 通过`color`设置按钮的主题色,目前支持`primary`、`secondary`、`danger`三种主题色,默认为`secondary`。
注意:如果`variant`设置成`solid`,则默认使用`primary`主题色。 ```vue