
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@ophiuchus/divider
Advanced tools
用于将内容分隔为多个区域。
import Vue from 'vue';
import Divider from '@ophiuchus/divider';
Vue.use(Divider);
默认渲染一条水平分割线。
<sf-divider />
通过插槽在可以分割线中间插入内容。
<sf-divider>文字</sf-divider>
通过 content-position 指定内容所在位置。
<sf-divider content-position="left">文字</sf-divider>
<sf-divider content-position="right">文字</sf-divider>
添加 dashed 属性使分割线渲染为虚线。
<sf-divider dashed>文字</sf-divider>
可以直接通过 style 属性设置分割线的样式。
<sf-divider
:style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 16px' }"
>
文字
</sf-divider>
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| dashed | 是否使用虚线 | boolean | false |
| hairline | 是否使用 0.5px 线 | boolean | true |
| content-position | 内容位置,可选值为left right | string | center |
| 名称 | 说明 |
|---|---|
| default | 内容 |
组件提供了下列 Less 变量,可用于自定义样式,使用方法请参考主题定制。
| 名称 | 默认值 | 描述 |
|---|---|---|
| @divider-margin | @padding-md 0 | - |
| @divider-text-color | @gray-6 | - |
| @divider-font-size | @font-size-md | - |
| @divider-line-height | 24px | - |
| @divider-border-color | @border-color | - |
| @divider-content-padding | @padding-md | - |
| @divider-content-left-width | 10% | - |
| @divider-content-right-width | 10% | - |
FAQs
### 介绍
The npm package @ophiuchus/divider receives a total of 5 weekly downloads. As such, @ophiuchus/divider popularity was classified as not popular.
We found that @ophiuchus/divider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.