
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@beisen/text-area
Advanced tools
本项目为textarea文本输入框。对本项目有任何疑问或建议,欢迎联系~(邮箱:mengshuai@beisen.com)
cnpm install 或 npm install
npm run dev (开发环境打包、项目启动,默认端口 port:8080)
npm run test (测试用例)
npm run build (生产环境打包)
const props = {
hidden: false,
disabled: false,
readOnly: false,
maxlength: 140, //文本域允许字数最大值
defaultHeight: '130px', //默认的输入框高度,内置默认为91px
labeltext: '默认title',
required: true,
textValue: '', //初始值
placeHolder:'',
showStatus: '', //显示状态 search or ''
showText: '请填写正确',
helpMsg: 'dqwdq',
sideTip: false, //toolTip是否左右显示
hiddenTip: false, //toolTip是否显示
errorStatus: false, //是否报错
errorMsg: '出错了~~~!', //报错信息
lablePos: true, //label位置,true时在左边,false在上边
lableTxt: false, //label中文字对齐方式,true左对齐,false右对齐
onClick: function (event) {
console.log(event.target.value)
},
onFocus: function (event) {
console.log(event.target.value)
},
onChange: function (event) {
console.log(event.target.value)
},
onBlur: function (event) {
console.log(event.target.value)
},
iconClick: function () {
console.log(0)
} //没有iconClick这个字段即不支持此功能。 有即是支持这个特性
}
1.安装npm组件包
npm install @beisen/text-area --save-dev
2.引用组件
import Textarea from "@beisen/text-area"
3.传入参数
state = {
hidden: false
,disabled: false
,readOnly: false
,maxlength: 10 //文本域允许字数最大值
,labeltext: "默认title"
,required: true
,textValue: 'DCSDCDSCSDDCSDCDSCSD'
,"showStatus":"" //显示状态 "search" or ""
,"showText":"请填写正确"
,"helpMsg":"dqwdq"
,"sideTip":false //toolTip是否左右显示
,"hiddenTip":false //toolTip是否显示
,"errorStatus": false//是否报错
,"errorMsg":"出错了~~~!" //报错信息
,"lablePos": true //label位置,true时在左边,false在上边
,"lableTxt": false//label中文字对齐方式,true左对齐,false右对齐
,onClick:function(event){console.log(event.target.value)}
,onFocus:function(event){console.log(event.target.value)}
,onChange:function(event){console.log(event.target.value)}
,onBlur:function(event){console.log(event.target.value)}
}
render () {
return (
<div>
<Textarea {...this.state} />
</div>
)
}
FAQs
BeisenCloudComponents-textarea
The npm package @beisen/text-area receives a total of 0 weekly downloads. As such, @beisen/text-area popularity was classified as not popular.
We found that @beisen/text-area demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.