Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enn-hex-input-vue3

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enn-hex-input-vue3

enn-hex-input-vue3

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

十六进制组件 for Vue3

  • 十六进制字符输入、生成随机数、MSB/LSB 转换、复制等功能
  • 十六进制字符展示

示例

输入组件

<template>
  <Hex v-model="hexStr" />
</template>

<script>
import Hex from 'enn-hex-input-vue3';

export default {
  components: {
    Hex,
  },
  data() {
    return {
      hexStr: '',
    };
  },
};
</script>

展示

<template>
  <Hex type="show" :data="hexStr" />
</template>

<script>
import Hex from 'enn-hex-input-vue3';

export default {
  components: {
    Hex,
  },
  data() {
    return {
      hexStr: 'abcde222',
    };
  },
};
</script>

API

HEX Input Attributes

参数类型必填默认值说明
typeStringtextHEX 组件的类型:text、textarea、show
dataString/NumberHEX 组件的类型为 show 时展示的值(也可使用 v-model 传值)
placeholderString输入框 placeholder
splitSymbolString" "字符串的分隔符
disabledBoolean是否禁用
lengthNumber长度限制
rowsString/Numbertype=textarea 时的行数
canMSBBooleantrue只在 type=text 时可用。是否可以进行 MSB <-> LSB 的转化
canRandomBooleantrue只在 type=text 时可用。是否显示随机产生值进行填充的按钮
canCopyBooleanfalse只在 type=text 时可用。是否显示复制按钮

本地调试组件

  • npm run dev

发包

  • lib 为发包后的文件夹

Keywords

FAQs

Package last updated on 13 Jul 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc