New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smt-ui/components

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smt-ui/components

1.0.1
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

功能

发布器,其中带有标题/内容/图片,功能

可配置属性与控制的功能

配置项属性名含义类型默认值
初始标题title发布器进入后,标题栏展示的默认标题String
标题placeholdertitlePlaceHolder发布器中的标题placeholderString输入标题
初始内容content发布器进入后,内容栏展示的默认内容String
内容placeholdercontentPlaceHolder发布器中的内容placeholderString输入标题
发布器中图片区域展示的图片列表pictureList图片上传完成后的列表,也可以使用本地地址Array[]
上传图片的个数限制pictureLimit最多可以上传多少张图片Number9
是否展示图片的限制提示showPictureTips在图片区域下方,是否展示提示Booleantrue
图片最大上传限制pictureSizeLimit当选择多个图片时,其中最大的是否超过了此值,单位BNumber1e7

组件的回调

回调项事件名含义参数
选择图片后的回调chooseImage点击+号之后,用户选择完成图片的回调(返回临时地址,需要调用组件的人自行上传,再填充pictureList){images: images:Array}
删除图片后的回调delImage点击图片右上角的删除按钮后,会直接删除图片,并通知删除的索引{delImage}
点击提交按钮publish点击提交按钮后,会回调给使用组件者{title: title:String, content: content:String, images: 图片列表(用的是pictureList)}

FAQs

Package last updated on 02 Dec 2019

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