element-plus
Version:
A Component Library for Vue 3
48 lines (45 loc) • 1.04 kB
JavaScript
import '../../../hooks/index.mjs';
import { buildProps, definePropType } from '../../../utils/props.mjs';
import { useFormItemProps } from '../../../hooks/use-form-item/index.mjs';
const buttonType = [
"default",
"primary",
"success",
"warning",
"info",
"danger",
"text",
""
];
const buttonSize = ["", "large", "medium", "small", "mini"];
const buttonNativeType = ["button", "submit", "reset"];
const buttonProps = buildProps({
...useFormItemProps,
type: {
type: String,
values: buttonType,
default: ""
},
icon: {
type: definePropType([String, Object]),
default: ""
},
nativeType: {
type: String,
values: buttonNativeType,
default: "button"
},
loading: Boolean,
plain: Boolean,
autofocus: Boolean,
round: Boolean,
circle: Boolean,
autoInsertSpace: {
type: Boolean
}
});
const buttonEmits = {
click: (evt) => evt instanceof MouseEvent
};
export { buttonEmits, buttonNativeType, buttonProps, buttonSize, buttonType };
//# sourceMappingURL=button.mjs.map