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.

1 lines
4.9 KiB

{"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,GAAGC,UAAU,CAAC;EACxCC,KAAK,EAAEC,MAAM;EACbC,iBAAiB,EAAED,MAAM;EACzBE,gBAAgB,EAAEF,MAAM;EACxBG,iBAAiB,EAAE;IACjBC,IAAI,EAAEJ,MAAM;IACZK,MAAM,EAAEC,WAAW;IACnBC,OAAO,EAAE;EACb,CAAG;EACDC,gBAAgB,EAAE;IAChBJ,IAAI,EAAEJ,MAAM;IACZK,MAAM,EAAEC,WAAW;IACnBC,OAAO,EAAE;EACb,CAAG;EACDE,IAAI,EAAE;IACJL,IAAI,EAAEM,YAAY;IAClBH,OAAO,EAAEA,CAAA,KAAMI;EACnB,CAAG;EACDC,SAAS,EAAE;IACTR,IAAI,EAAEJ,MAAM;IACZO,OAAO,EAAE;EACb,CAAG;EACDM,QAAQ,EAAE;IACRT,IAAI,EAAEU,OAAO;IACbP,OAAO,EAAE;EACb,CAAG;EACDQ,SAAS,EAAE;IACTX,IAAI,EAAEY,MAAM;IACZT,OAAO,EAAE;EACb,CAAG;EACDU,UAAU,EAAEC,sBAAsB,CAACD,UAAU;EAC7CE,UAAU,EAAED,sBAAsB,CAACC,UAAU;EAC7CC,KAAK,EAAE;IACLhB,IAAI,EAAE,CAACJ,MAAM,EAAEgB,MAAM,CAAC;IACtBT,OAAO,EAAE;EACb;AACA,CAAC;AACW,MAACc,eAAe,GAAG;EAC7BC,OAAO,EAAGC,CAAC,IAAKA,CAAC,YAAYC,UAAU;EACvCC,MAAM,EAAGF,CAAC,IAAKA,CAAC,YAAYC;AAC9B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}