You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0 lines
4.9 KiB

1 month ago
  1. {"ast":null,"code":"import { QuestionFilled } from '@element-plus/icons-vue';\nimport { buttonTypes } from '../../button/src/button.mjs';\nimport { buildProps } from '../../../utils/vue/props/runtime.mjs';\nimport { iconPropType } from '../../../utils/vue/icon.mjs';\nimport { useTooltipContentProps } from '../../tooltip/src/content.mjs';\nconst popconfirmProps = buildProps({\n title: String,\n confirmButtonText: String,\n cancelButtonText: String,\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: \"primary\"\n },\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: \"text\"\n },\n icon: {\n type: iconPropType,\n default: () => QuestionFilled\n },\n iconColor: {\n type: String,\n default: \"#f90\"\n },\n hideIcon: {\n type: Boolean,\n default: false\n },\n hideAfter: {\n type: Number,\n default: 200\n },\n teleported: useTooltipContentProps.teleported,\n persistent: useTooltipContentProps.persistent,\n width: {\n type: [String, Number],\n default: 150\n }\n});\nconst popconfirmEmits = {\n confirm: e => e instanceof MouseEvent,\n cancel: e => e instanceof MouseEvent\n};\nexport { popconfirmEmits, popconfirmProps };","map":{"version":3,"names":["popconfirmProps","buildProps","title","String","confirmButtonText","cancelButtonText","confirmButtonType","type","values","buttonTypes","default","cancelButtonType","icon","iconPropType","QuestionFilled","iconColor","hideIcon","Boolean","hideAfter","Number","teleported","useTooltipContentProps","persistent","width","popconfirmEmits","confirm","e","MouseEvent","cancel"],"sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport type { ExtractPropTypes } from 'vue'\nimport type Popconfirm from './popconfirm.vue'\n\nexport const popconfirmProps = buildProps({\n /**\n * @description Title\n */\n title: String,\n /**\n * @description Confirm button text\n */\n confirmButtonText: String,\n /**\n * @description Cancel button text\n */\n cancelButtonText: String,\n /**\n * @description Confirm button type\n */\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: 'primary',\n },\n /**\n * @description Cancel button type\n */\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: 'text',\n },\n /**\n * @description Icon Component\n */\n icon: {\n type: iconPropType,\n default: () => QuestionFilled,\n },\n /**\n * @description Icon color\n */\n iconColor: {\n type: String,\n default: '#f90',\n },\n /**\n * @description is hide Icon\n */\n hideIcon: {\n type: Boolean,\n default: false,\n },\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter: {\n type: Number,\n default: 200,\n },\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: useTooltipContentProps.persistent,\n /**\n * @description popconfirm width, min width 150px\n */\n width: {\n type: [String, Number],\n default: 150,\n },\n} as const)\n\nexport const popconfirmEmits = {\n /**\n * @description triggers when click confirm button\n */\n confirm: (e: MouseEvent) => e instanceof MouseEvent,\n /**\n * @description triggers when click cancel button\n */\n cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\nexport type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm>\n"],"mappings":";;;;;AAIY,MAACA,eAAe,