2.1.4 • Published 1 year ago

@alicloud/console-components-inline-editor v2.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@ali/wind-rc-inline-editor

a wind library

install

tnpm i @ali/wind-rc-inline-editor --save-dev

Usage

import SimpleEditor from '@ali/wind-rc-inline-editor';

<SimpleEditor
  intl={intl}
  maxLength={100}
  onSubmit={nameValue => {

  }}
>test</SimpleEditor>

API

参数说明类型必填默认值
type修改的类型, 名字或者描述'name' or 'desc'true-
shape触发修改的类型'icon' or 'text'true-
minLength文案最小长度numbertrue-
maxLength文案最大长度numbertrue-
classPrefixclass 的 prefix 默认(next)stringtrue-
onClose弹窗关闭的回调() => voidtrue-
onSubmit提交的的回调(value: string) => voidtrue-
children被包裹的内容-false-
validateRegExp校验的表达式Regexfalse-
okText弹窗确认按钮stringfalse确认
cancelText弹窗取消按钮stringfalse取消
editText编辑文案stringfalse编辑
tipFormatText提示格式的 Messagestringfalse长度为{min}-{max}个字符,以大小字母或中文开头,可包含数字,"_"或"-"
noEmptyText提示为空的文案stringfalse不能为空
invalidText格式错误的文案stringfalse格式不合法