-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Captcha 新增 actionConfig 配置参数,用于设定请求 Header ( Axios )
- Loading branch information
1 parent
c632349
commit bc8ccd2
Showing
4 changed files
with
70 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,55 @@ | ||
import PropTypes from '../_utils/props-types' | ||
import { tuple } from '../_utils/props-tools' | ||
import { $g } from '../../utils/global' | ||
|
||
export const captchaProps = () => ({ | ||
prefixCls: PropTypes.string, | ||
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).def(320), | ||
height: PropTypes.number, | ||
radius: PropTypes.number.def(48), | ||
themeColor: PropTypes.string, | ||
bgColor: PropTypes.string, | ||
borderColor: PropTypes.string, | ||
textColor: PropTypes.string, | ||
boxShadow: PropTypes.bool.def(true), | ||
boxShadowColor: PropTypes.string, | ||
boxShadowBlur: PropTypes.number.def(4), | ||
modalBgColor: PropTypes.string, | ||
modalBoxShadow: PropTypes.bool.def(true), | ||
modalBoxShadowColor: PropTypes.string, | ||
modalBoxShadowBlur: PropTypes.number, | ||
image: PropTypes.string, | ||
logo: PropTypes.string, | ||
mask: PropTypes.bool.def(true), | ||
maskClosable: PropTypes.bool.def(true), | ||
maxTries: PropTypes.number.def(5), | ||
initParams: PropTypes.object.def({}), | ||
initAction: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), | ||
initMethod: PropTypes.oneOf(tuple(...$g.methods)).def('get'), | ||
verifyParams: PropTypes.object.def({}), | ||
verifyAction: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), | ||
verifyMethod: PropTypes.oneOf(tuple(...$g.methods)).def('post'), | ||
checkParams: PropTypes.object.def({}), | ||
checkAction: PropTypes.string, | ||
checkMethod: PropTypes.oneOf(tuple(...$g.methods)).def('post') | ||
}) | ||
|
||
export const captchaModalProps = () => ({ | ||
prefixCls: PropTypes.string, | ||
show: PropTypes.bool.def(false), | ||
image: PropTypes.string, | ||
position: PropTypes.object, | ||
mask: PropTypes.bool.def(true), | ||
maskClosable: PropTypes.bool.def(true), | ||
themeColor: PropTypes.string, | ||
bgColor: PropTypes.string, | ||
boxShadow: PropTypes.bool.def(true), | ||
boxShadowColor: PropTypes.string, | ||
boxShadowBlur: PropTypes.number.def(6), | ||
maxTries: PropTypes.number.def(5), | ||
verifyParams: PropTypes.object.def({}), | ||
verifyMethod: PropTypes.string.def('post'), | ||
verifyAction: PropTypes.string | ||
}) | ||
import PropTypes from '../_utils/props-types' | ||
import { tuple } from '../_utils/props-tools' | ||
import { $g } from '../../utils/global' | ||
|
||
export const captchaProps = () => ({ | ||
prefixCls: PropTypes.string, | ||
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).def(320), | ||
height: PropTypes.number, | ||
radius: PropTypes.number.def(48), | ||
themeColor: PropTypes.string, | ||
bgColor: PropTypes.string, | ||
borderColor: PropTypes.string, | ||
textColor: PropTypes.string, | ||
boxShadow: PropTypes.bool.def(true), | ||
boxShadowColor: PropTypes.string, | ||
boxShadowBlur: PropTypes.number.def(4), | ||
modalBgColor: PropTypes.string, | ||
modalBoxShadow: PropTypes.bool.def(true), | ||
modalBoxShadowColor: PropTypes.string, | ||
modalBoxShadowBlur: PropTypes.number, | ||
image: PropTypes.string, | ||
logo: PropTypes.string, | ||
mask: PropTypes.bool.def(true), | ||
maskClosable: PropTypes.bool.def(true), | ||
maxTries: PropTypes.number.def(5), | ||
initParams: PropTypes.object.def({}), | ||
initAction: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), | ||
initMethod: PropTypes.oneOf(tuple(...$g.methods)).def('get'), | ||
verifyParams: PropTypes.object.def({}), | ||
verifyAction: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), | ||
verifyMethod: PropTypes.oneOf(tuple(...$g.methods)).def('post'), | ||
checkParams: PropTypes.object.def({}), | ||
checkAction: PropTypes.string, | ||
checkMethod: PropTypes.oneOf(tuple(...$g.methods)).def('post'), | ||
actionConfig: PropTypes.object.def({}) | ||
}) | ||
|
||
export const captchaModalProps = () => ({ | ||
prefixCls: PropTypes.string, | ||
show: PropTypes.bool.def(false), | ||
image: PropTypes.string, | ||
position: PropTypes.object, | ||
mask: PropTypes.bool.def(true), | ||
maskClosable: PropTypes.bool.def(true), | ||
themeColor: PropTypes.string, | ||
bgColor: PropTypes.string, | ||
boxShadow: PropTypes.bool.def(true), | ||
boxShadowColor: PropTypes.string, | ||
boxShadowBlur: PropTypes.number.def(6), | ||
maxTries: PropTypes.number.def(5), | ||
verifyParams: PropTypes.object.def({}), | ||
verifyMethod: PropTypes.string.def('post'), | ||
verifyAction: PropTypes.string, | ||
actionConfig: PropTypes.object.def({}) | ||
}) |