52 lines
1000 B
JavaScript
52 lines
1000 B
JavaScript
import '../../button/index.mjs';
|
|
import { QuestionFilled } from '@element-plus/icons-vue';
|
|
import { buildProps, definePropType } from '../../../utils/props.mjs';
|
|
import { buttonType } from '../../button/src/button.mjs';
|
|
|
|
const popconfirmProps = buildProps({
|
|
title: {
|
|
type: String
|
|
},
|
|
confirmButtonText: {
|
|
type: String
|
|
},
|
|
cancelButtonText: {
|
|
type: String
|
|
},
|
|
confirmButtonType: {
|
|
type: String,
|
|
values: buttonType,
|
|
default: "primary"
|
|
},
|
|
cancelButtonType: {
|
|
type: String,
|
|
values: buttonType,
|
|
default: "text"
|
|
},
|
|
icon: {
|
|
type: definePropType([String, Object]),
|
|
default: QuestionFilled
|
|
},
|
|
iconColor: {
|
|
type: String,
|
|
default: "#f90"
|
|
},
|
|
hideIcon: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
hideAfter: {
|
|
type: Number,
|
|
default: 200
|
|
},
|
|
onConfirm: {
|
|
type: definePropType(Function)
|
|
},
|
|
onCancel: {
|
|
type: definePropType(Function)
|
|
}
|
|
});
|
|
|
|
export { popconfirmProps };
|
|
//# sourceMappingURL=popconfirm.mjs.map
|