UNPKG

tav-ui

Version:
49 lines (44 loc) 1.47 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var propTypes = require('../../../utils/propTypes2.js'); const tuple = (...args) => args; const ButtonTypes = tuple("default", "primary", "ghost", "dashed", "link", "text"); const ButtonHTMLTypes = tuple("submit", "button", "reset"); const buttonProps = { prefixCls: propTypes.propTypes.string, type: propTypes.propTypes.oneOf(ButtonTypes), htmlType: propTypes.propTypes.oneOf(ButtonHTMLTypes).def("button"), shape: { type: String }, size: { type: String }, loading: { type: [Boolean, Object], default: () => false }, ghost: propTypes.propTypes.looseBool, block: propTypes.propTypes.looseBool, danger: propTypes.propTypes.looseBool, icon: propTypes.propTypes.VNodeChild, href: propTypes.propTypes.string, target: propTypes.propTypes.string, title: propTypes.propTypes.string, color: { type: String, validator: (v) => ["error", "warning", "success", ""].includes(v) }, disabled: { type: Boolean }, preIcon: { type: String }, preIconColor: { type: String }, postIcon: { type: String }, postIconColor: { type: String }, iconSize: { type: Number, default: 14 }, onClick: { type: Function, default: null }, permission: { type: String }, permissionCode: { type: Number }, usePermission: { type: Object }, ifShow: { type: Boolean, default: true } }; exports.buttonProps = buttonProps; //# sourceMappingURL=types2.js.map