Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

clx-components

Latest version: v1.3.4

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: xiaobaikeai
2 Versions
261 Downloads

Scan summary

clx-components was last scanned on 30 Nov 2026 at version 1.3.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 4 days (27–30 Nov 2026).
  • Findings: No rules fired in version 1.3.4.
  • Downloads: 261 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.3.4 LATEST 30 Nov 2026 No rules fired
1.3.3 27 Nov 2026 No rules fired

No rules fired in 1.3.4

Findings

Findings for v1.3.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.3.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

快速开始

介绍

这个组件库使用 的技术栈 是vite+vue3+ts 开发,所以这个只项目支持vue3项目使用

安装
npm
npm i clx-components
yarn
npm i clx-components
说明

xiaobaikeai这是作者的Github

这个组件库是作者封装于Github上一些有趣的组件,二次封装降低了原组件的灵活度,但提供了更方便快捷的使用。如果和需求有出入,可以去原组件去使用。这个组件库的目标是为程序员们提供一个方便快捷的组件库,也是作者学习的经验总结,希望对大家有所帮助。

全局注册
import { createApp } from 'vue'
import App from './App.vue'
// 样式 使用组件先再main中导入样式,必须!!!不管是局部导入或者全局导入
import '../node_modules/clx-components/style.css'
//核心代码
 import CComponents from 'clx-components'

const app = createApp(App)
//注册
app.use(CComponents)
app.mount('#app')
提示
import CComponents from 'clx-components' //如果导入报错

请在 src目录下面 新建一个 vite-env.d.ts

里面内容是:

declare module 'clx-components' 

c-button 组件

局部导入
import { cButton } from 'clx-components'
基本使用

 <!-- 大型按钮 -->
  <c-Button size="large"  type="default">默认</c-Button>
  <c-Button size="large"  type="success">成功</c-Button>
  <c-Button size="large"  type="primary" loading>主要</c-Button>
  <c-Button size="large"  type="warning" loading circle>主要</c-Button>
  <c-Button size="large"  type="danger" circle>危险</c-Button>

  <!-- 默认小型按钮 -->
  <c-Button size="small"  type="default">默认</c-Button>
  <c-Button size="small"  type="success">成功</c-Button>
  <c-Button size="small" round type="primary" loading>主要</c-Button>
  <c-Button size="small"  type="warning" loading>主要</c-Button>
  <c-Button size="small"  type="danger" disabled>危险</c-Button>

   <!-- 迷你按钮 -->
  <c-Button size="mini"  type="default">默认</c-Button>
  <c-Button size="mini"  type="success">成功</c-Button>
  <c-Button size="mini"  type="primary" color="orange">主要</c-Button>
  <c-Button size="mini"  type="warning" loading>主要</c-Button>
  <c-Button size="mini"  round type="danger">危险</c-Button>

  <!-- loading 文案与禁用状态 -->
  <c-button
    :loading="loading"
    loading-text="保存中..."
    :loading-disabled="true"
  >
    保存
  </c-button>

  <!-- 原生链接与 Vue Router 链接 -->
  <c-button href="/help">帮助</c-button>
  <c-button :to="{ name: 'detail', params: { id: 1 } }">详情</c-button>

  <!-- @click、aria-*、title 等原生属性会绑定到真正的按钮或链接元素 -->
  <c-button aria-label="保存表单" title="保存" @click="save">保存</c-button>

  <!-- 默认 native-type 为 button;表单提交按钮需要显式指定 submit -->
  <c-button native-type="submit">提交表单</c-button>
参数
名称 类型 默认值 说明
size string small 可选值为 'large' | 'small' | 'mini';非法值回退为 small
type string default 可选值为 'default' |'primary'| 'success' | 'warning' | 'danger' | 'gray';非法值回退为 default
style StyleValue - 支持字符串、对象和数组,格式与 Vue 原生 :style 一致
color string '' 定义按钮文字颜色
round boolean false 是否为圆角按钮
circle boolean false 是否为圆形按钮
disabled boolean false 是否禁用按钮
line boolean false 是否为文字按钮
loading boolean false 是否显示加载按钮
loadingText string loading loading 时显示的文字;圆形按钮默认只显示加载图标
loadingDisabled boolean true loading 时是否禁用按钮并阻止重复点击
nativeType string button 原生按钮类型:button | submit | reset
href string - 设置后渲染为原生链接按钮
to string | object - 设置后渲染为 Vue Router 的 router-link;需要项目安装并注册 Vue Router

to 优先级高于 href。链接按钮没有原生 disabled 属性,禁用时会设置 aria-disabled="true"、移除键盘焦点并拦截点击。

组件会把 @click、aria-*、title、name、value 等未声明的原生属性转发到实际的 <button>、<a> 或 router-link,不会绑定到外层包装元素。

插槽
插槽名 说明
icon 自定义图标
default 自定义按钮内容
loadingName 自定义加载文字内容
loadingIcon 自定义加载图标内容

c-input组件

局部导入
import { cInput } from 'clx-components'
基础用法
<script setup lang="ts">
import { ref } from 'vue'

const text = ref('')
const password = ref('')
const description = ref('')
</script>

<template>
  <c-input v-model="text" size="mini" placeholder="请输入内容" />

  <!-- clearable、showPassword、showWordLimit 可以组合使用 -->
  <c-input
    v-model="password"
    clearable
    show-password
    show-word-limit
    :max-length="20"
    autocomplete="current-password"
    placeholder="请输入密码"
  />

  <c-input v-model="text" size="small" placeholder="带前后插槽">
    <template #prefix>🔍</template>
    <template #suffix>.com</template>
  </c-input>

  <c-input
    v-model="description"
    type="textarea"
    :autosize="{ minRows: 3, maxRows: 8 }"
    :max-length="200"
    show-word-limit
    clearable
    placeholder="请输入说明"
  />
</template>
原生表单属性

未声明的属性会转发到实际的 <input> 或 <textarea>,可以直接使用 name、id、required、pattern、min、max、step、autocomplete、inputmode、aria-* 等原生属性。

<label for="email">邮箱</label>
<c-input
  id="email"
  v-model.trim="email"
  type="email"
  name="email"
  autocomplete="email"
  required
/>

组件支持 v-model.trim、v-model.number 和 v-model.lazy。中文输入法组合输入期间不会向外发送未完成的拼音中间值。

参数
名称 类型 默认值 说明
modelValue / v-model string | number '' 输入值
size 'large' | 'small' | 'mini' 'small' 输入框尺寸,input 和 textarea 均支持
type string 'text' 支持 text、password、textarea、url、email、date、number、tel、search、color、time、datetime-local、month、week
placeholder string 'Please input' 占位文本
color string '#606266' 输入文字颜色
style StyleValue - 根元素样式,支持字符串、对象和数组
disabled boolean false 是否禁用
readonly boolean false 是否只读
width string | number '180px' 宽度;数字按 px 处理
height string | number - 高度;数字按 px 处理,textarea 开启 autosize 时忽略
clearable boolean false 显示清空按钮,input 和 textarea 均支持
showPassword boolean false 显示密码可见性按钮;设置后默认使用密码输入模式,可以和 clearable 同时使用
maxLength string | number 100 最大输入长度
rows number 2 textarea 默认行数
cols number 20 textarea 原生列数
resize boolean false textarea 是否允许垂直拖动;开启 autosize 时不生效
autosize boolean | { minRows?: number; maxRows?: number } false textarea 自动调整高度
showWordLimit boolean false 显示字数统计,不再覆盖输入内容
formatter (value) => string - 显示值格式化函数
parser (value: string) => string \| number - 将输入文本转换为 v-model 值
status 'default' | 'success' | 'warning' | 'error' 'default' 校验状态;error 自动设置 aria-invalid="true"
errorText string '' error 状态下显示的错误提示
errorId string - 错误提示元素 ID;未设置时会根据输入框 id 自动生成 ${id}-error
clearAriaLabel string '清空输入内容' 清空按钮的无障碍名称
showPasswordAriaLabel string '显示密码' 显示密码按钮的无障碍名称
hidePasswordAriaLabel string '隐藏密码' 隐藏密码按钮的无障碍名称
formatter 和 parser
<c-input
  v-model="price"
  inputmode="decimal"
  :formatter="(value) => `¥ ${value}`"
  :parser="(value) => Number(value.replace(/[^\d.]/g, ''))"
/>

formatter 只控制展示内容,parser 控制写入 v-model 的值。使用 formatter 时,建议同时提供对应的 parser。

校验状态
<c-input
  id="username"
  v-model="username"
  status="error"
  error-text="用户名不能为空"
/>
事件
事件名 参数 说明
update:modelValue value v-model 更新事件
input value, nativeEvent 完成一次有效输入时触发
change value, nativeEvent 原生 change 事件触发时执行
focus nativeEvent 获得焦点时触发
blur nativeEvent 失去焦点时触发
clear - 点击清空按钮或调用 clear 方法时触发
插槽
插槽名 说明
prefix 输入框前置内容,input 和 textarea 均支持
suffix 输入框后置内容,input 和 textarea 均支持
公开方法

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm clx-components

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229