xverse-components-consult
v1.0.2
Published
xverse components consult
Downloads
110
Readme
API
| 参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 | | ------------------- | ------------- | -------------------------- | ------ | -------- | -------------------------- | | title | string | 标题文字 | - | false | - | | titleImg | CSSProperties | 标题图片 | - | false | 优先展示标题文字 | | afterTitle | string | 已经提交后标题文字 | - | false | - | | afterTitleImg | CSSProperties | 已经提交后的标题图片 | - | false | 优先展示已经提交的标题文字 | | closeImgUrl | string | 关闭的图标 | - | false | - | | tips | string | tips | - | false | - | | fields | IFields[] | 填写项 | - | true | 每一项是一个步骤 | | privacyHtml | string | 是否需要隐私条款 | - | false | 默认需要,传空即为不需要 | | editableAfterSubmit | boolean | 提交后是否可修改 | true | false | - | | showSecondBtn | boolean | 是否需要次级按钮 | - | false | - | | mainButtonProps | IButtonProps | 主要按钮的样式 | - | false | 配置主要按钮的样式 | | submitText | string | 初次的提交按钮文本 | - | false | 优先使用这里配置的文字 | | fixSubmitText | string | 修改的提交按钮文本 | - | false | 优先使用这里配置的文字 | | sellerData | string | 经销商的数据 | - | false | - | | className | string | css 类名 | - | false | - | | onClose | () => void | 关闭留资的回调 | - | false | - | | onSubmit | () => void | 提交的回调 | - | false | - | | onInputError | () => void | 输入失败的回调 | - | false | - | | onSubmitError | () => void | 提交后台失败的回调 | - | false | 优先使用外部传入 | | onSubmitTestError | () => void | 未填写完毕提交失败的回调用 | - | false | 提交按钮置灰时,检测提示 | | style | CSSProperties | | - | false | - |