2020-08-13 15:18:26 +08:00
|
|
|
<script>
|
2021-07-25 16:27:07 +08:00
|
|
|
import RadiusBox from "../../components/demo/border/radius-box.vue";
|
|
|
|
import ShadowBox from "../../components/demo/border/shadow-box.vue";
|
|
|
|
|
|
|
|
const radiusGroup = [
|
|
|
|
{
|
|
|
|
name: '无圆角',
|
|
|
|
type: ''
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: '小圆角',
|
|
|
|
type: 'small'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: '大圆角',
|
|
|
|
type: 'base'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: '圆形圆角',
|
|
|
|
type: 'round'
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
const shadowGroup = [
|
|
|
|
{
|
|
|
|
name: '基础投影',
|
|
|
|
type: 'base'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: '浅色投影',
|
|
|
|
type: 'light'
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
2021-07-25 16:27:07 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
RadiusBox,
|
|
|
|
ShadowBox
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
radiusGroup,
|
|
|
|
shadowGroup,
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
|
|
|
}
|
2021-07-25 16:27:07 +08:00
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
## Border 边框
|
|
|
|
|
|
|
|
我们对边框进行统一规范,可用于按钮、卡片、弹窗等组件里。
|
|
|
|
|
|
|
|
### 边框
|
|
|
|
|
|
|
|
我们提供了以下几种边框样式,以供选择。
|
|
|
|
|
|
|
|
<table class="demo-border">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="text">名称</td>
|
|
|
|
<td class="text">粗细</td>
|
|
|
|
<td class="line">举例</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-08-26 09:57:56 +08:00
|
|
|
<td class="text">实线</td>
|
2020-08-13 15:18:26 +08:00
|
|
|
<td class="text">1px</td>
|
|
|
|
<td class="line">
|
|
|
|
<div></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-08-26 09:57:56 +08:00
|
|
|
<td class="text">虚线</td>
|
2020-08-13 15:18:26 +08:00
|
|
|
<td class="text">2px</td>
|
|
|
|
<td class="line">
|
|
|
|
<div class="dashed"></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
### 圆角
|
|
|
|
|
|
|
|
我们提供了以下几种圆角样式,以供选择。
|
|
|
|
|
2021-07-25 16:27:07 +08:00
|
|
|
<radius-box :radius-group="radiusGroup" />
|
2020-08-13 15:18:26 +08:00
|
|
|
|
|
|
|
### 投影
|
|
|
|
|
|
|
|
我们提供了以下几种投影样式,以供选择。
|
|
|
|
|
2021-07-25 16:27:07 +08:00
|
|
|
<shadow-box :shadow-group="shadowGroup" />
|