npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

asi-section

v1.0.4

Published

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

Downloads

3

Readme

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

| 属性名 | 类型 | 默认值 | 说明 | |:--------------------:|:--------:|:------:|---------------------------------------| | type | String | - | 装饰类型,可选值:line(竖线)、circle(圆形)、square(方形) | | title | String | - | 主标题 | | titleFontSize | String | 14px | 主标题字体大小 | | titleColor | String | #333 | 主标题字体颜色 | | bgColor | String | #2979ff | 装饰器背景颜色 | | subTitle | String | - | 副标题 | | subTitleFontSize | String | 12px | 副标题字体大小 | | subTitleColor | String | #999 | 副标题字体颜色 | | padding |Bolean/String| false | 默认插槽容器的 padding 值,传入类型为 Boolean 时,设置为 10px 或 0 |

方法

Section Events

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