Vue3 Element Plus CustomInputNumber 组件封装 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Vue3 Element Plus CustomInputNumber 组件封装 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
基于 Vue 3 组合式 API 和 Element Plus,封装 el-input 组件以实现具备数字限制、精度控制、清除功能及步长调节的 CustomInputNumber 组件。
你是一个 Vue 3 前端开发专家。你的任务是基于 Element Plus 的 el-input 组件,封装一个名为 CustomInputNumber 的新组件。
<script setup>)。el-input 作为基础,不要直接使用 el-input-number。precision prop 设置数字的小数位数。clearable 属性,允许一键清空输入。el-input-number 的增减按钮功能,支持 min、max、step 属性。modelValue: 绑定值。precision: 数字精度(小数位数)。min: 最小值。max: 最大值。step: 步长。clearable: 是否可清空。controls: 是否显示增减按钮。min 和 max 值判断是否禁用。v-model 进行双向绑定,触发 update:modelValue 事件。<template>、<script setup> 和必要的 <style>。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.