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

netx-ui

v1.0.9

Published

Personal component UI library based on Vue3 implementation

Downloads

14

Readme

Vue3 + Vite2

使用Vue3.2 setup语法糖开发个人的组件库,全面拥抱Vue3 ☑

使用

安装

npm i netx-ui
yarn add netx-ui
pnpm add netx-ui

全局注册

....
import NetXUI from 'netx-ui'
Vue.use(NetXUI)
import '../node_modules/netx-ui/dist/style.css'   // 这个bug  待修复 作者正在学习中~
// 这样会报错 找不到这个css文件
// import 'netx-ui/dist/style.css' 
...

组件

按钮(Button)

| 属性 | 值 | 描述 | | -------- | ---------------- | -------------------------------------------------------------------- | | type | String | 按钮类型:primary,info,success,warning,danger | | plain | Boolean | 是否为朴素按钮,默认为 false | | mimicry | Boolean | 是否为拟态按钮,和 plain 不能同时设置,会被 plain 覆盖。默认为 false | | disabled | Boolean | 是否禁用按钮,默认为 false | | round | Boolean | 是否为圆角按钮,默认为 false | | circle | Boolean | 是否为圆形按钮,默认为 false | | icon | Array 或 Boolean | font-awesome 字体数组,默认为 false |

| 事件 | 值 | 描述 | | ----- | -------- | -------- | | click | Function | 点击事件 |


对话框(Dialog)

| 属性 | 值 | 描述 | | -------- | ------- | ---------------------------------- | | title | String | 对话框头部提示,默认为"提示" | | visiable | Boolean | 对话框可见状态,默认为 false | | mimicry | Boolean | 对话框是否为拟态风格,默认为 false | | width | String | 对话框宽度,默认为 60% | | top | String | 对话框距离顶部位置,默认为 15vh |

| 插槽 | 描述 | | ------ | ----------------------- | | title | Dialog 标题区的内容 | | footer | Dialog 按钮操作区的内容 |


输入框(Input)

| 属性 | 值 | 描述 | | ------------ | ------- | ---------------------------------- | | placeholder | String | 占位符,默认为空字符串 | | type | String | 表单类型,默认为'text' | | mimicry | Boolean | 对话框是否为拟态风格,默认为 false | | name | String | 表单命名,默认为空 | | value | String | 表单值,默认为空字符串 | | disabled | Boolean | 是否禁用,默认为 false | | clearable | Boolean | 是否可清空,默认为 false | | showPassword | Boolean | 是否显示密码可见,默认为 false |

切换(Switch)

| 属性 | 值 | 描述 | | ------------- | ------- | ---------------------------------- | | mimicry | Boolean | 对话框是否为拟态风格,默认为 false | | name | String | 表单命名,默认为空 | | value | String | 表单值,默认为空字符串 | | disabled | Boolean | 是否禁用,默认为 false | | activeColor | String | 激活状态颜色,默认为#dcdfe6 | | inactiveColor | String | 未激化状态颜色,默认为#dcdfe6 |

| 事件 | 值 | 描述 | | ------ | -------- | ---------------------------------- | | change | Function | 状态修改触发事件,返回修改后的状态 |


单选框(Radio)

| 属性 | 值 | 描述 | | ------- | ------------------------- | ---------------------------------- | | label | [String, Number, Boolean] | 单选框 label 值,默认为空字符串 | | name | String | 表单命名,默认为空 | | value | String | 表单值,默认为空字符串 | | color | String | 单选框选择时的颜色,默认为#409eff |

单选框组(RadioGroup)

用于包裹 radio,通过 v-model 指定组内所有的 radio 的 v-model


复选框(Checkbox)

| 属性 | 值 | 描述 | | ------- | ------------------------- | ---------------------------------- | | label | [String, Number, Boolean] | 单选框 label 值,默认为空字符串 | | mimicry | Boolean | 对话框是否为拟态风格,默认为 false | | name | String | 表单命名,默认为空 | | value | String | 表单值,默认为空字符串 | | color | String | 单选框选择时的颜色,默认为#409eff |

复选框组(CheckboxGroup)

用于包裹多个 checkbox,通过 v-model 指定组内所有的 checkout 的 v-model


表单项(Form-item)

| 属性 | 值 | 描述 | | ----- | ------ | ------------------------------- | | label | String | 单选框 label 值,默认为空字符串 |

表单(Form)

| 属性 | 值 | 描述 | | ----------- | ------ | -------------------- | | model | Object | 表单对象,必填 | | label-width | String | 标签宽度,默认"80px" |


轮播图(Carousel)

| 属性 | 值 | 描述 | | ------- | ------------------------- | -----------------------------------| | duration| ms | 轮播时间,单位毫秒,默认2000ms | | autoplay| Boolean | 是否自动播放,默认为 true | | initial | Number | 初始显示第几个item,默认为0 | | hasDirection| Boolean | 是否显示左右箭头,默认为true | | hasDot | Boolean | 是否显示轮播图地下的小点,默认为true | | dotBgColor | String | 小圆点为acitve时的颜色,默认为#008c8c |