New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

asi-section

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asi-section

🌟 一个用于文章、列表详情等标题展示的标题栏组件 🌟

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

Asi-section Component

🌟 一个用于文章、列表详情等标题展示的标题栏组件 🌟

npm version License

安装

使用npm/pnpm/yarn安装asi-section组件:

pnpm install asi-section -S

注册

在src/main.js

import asiSection from "asi-section";
app.use(asiSection);
import 'asi-section/asi-section.css';

基本用法

<asi-section title="基础用法" sub-title="副标题"></asi-section>

<asi-section title="竖线装饰" sub-title="副标题" type="line"></asi-section>

<asi-section title="装饰器插槽" sub-title="副标题">
  <template v-slot:decoration>
    <div class="decoration"></div>
  </template>
</asi-section>

<asi-section title="默认插槽" sub-title="副标题">默认插槽内容</asi-section>

<asi-section title="主标题">
  <template v-slot:right>
    right slot
  </template>
</asi-section>

属性

Section Props

属性名类型默认值说明
typeString-装饰类型,可选值:line(竖线)、circle(圆形)、square(方形)
titleString-主标题
titleFontSizeString14px主标题字体大小
titleColorString#333主标题字体颜色
bgColorString#2979ff装饰器背景颜色
subTitleString-副标题
subTitleFontSizeString12px副标题字体大小
subTitleColorString#999副标题字体颜色
paddingBolean/Stringfalse默认插槽容器的 padding 值,传入类型为 Boolean 时,设置为 10px 或 0

方法

Section Events

事件名事件说明返回参数
@click点击 Section 触发事件-

Keywords

asi-section

FAQs

Package last updated on 09 Jul 2023

Did you know?

Socket

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.

Install

Related posts