element-plus
Version:
A Component Library for Vue 3
1 lines • 4.48 kB
Source Map (JSON)
{"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { Component } from 'vue'\n\n/**\n * @description dialog-content component props\n */\nexport interface DialogContentProps {\n /**\n * @description whether to align the header and footer in center\n */\n center?: boolean\n /**\n * @description whether to align the dialog both horizontally and vertically\n */\n alignCenter?: boolean\n /**\n * @description custom close icon, default is Close\n */\n closeIcon?: string | Component\n /**\n * @description enable dragging feature for Dialog\n */\n draggable?: boolean\n /**\n * @description draggable Dialog can overflow the viewport\n */\n overflow?: boolean\n /**\n * @description whether the Dialog takes up full screen\n */\n fullscreen?: boolean\n /**\n * @description custom class names for header wrapper\n */\n headerClass?: string\n /**\n * @description custom class names for body wrapper\n */\n bodyClass?: string\n /**\n * @description custom class names for footer wrapper\n */\n footerClass?: string\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description title of Dialog. Can also be passed with a named slot (see the following table)\n */\n title?: string\n /**\n * @description header's aria-level attribute\n */\n ariaLevel?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `DialogContentProps` instead.\n */\nexport const dialogContentProps = buildProps({\n /**\n * @description whether to align the header and footer in center\n */\n center: Boolean,\n /**\n * @description whether to align the dialog both horizontally and vertically\n */\n alignCenter: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description enable dragging feature for Dialog\n */\n draggable: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description draggable Dialog can overflow the viewport\n */\n overflow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether the Dialog takes up full screen\n */\n fullscreen: Boolean,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title of Dialog. Can also be passed with a named slot (see the following table)\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description header's aria-level attribute\n */\n ariaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n\nexport const dialogContentPropsDefaults = {\n alignCenter: undefined,\n draggable: undefined,\n overflow: undefined,\n showClose: true,\n title: '',\n ariaLevel: '2',\n} as const\n"],"names":[],"mappings":";;;AA6DO,MAAM,qBAAqB,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI3C,MAAA,EAAQ,OAAA;AAAA;AAAA;AAAA;AAAA,EAIR,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAA,EAAY,OAAA;AAAA;AAAA;AAAA;AAAA,EAIZ,WAAA,EAAa,MAAA;AAAA;AAAA;AAAA;AAAA,EAIb,SAAA,EAAW,MAAA;AAAA;AAAA;AAAA;AAAA,EAIX,WAAA,EAAa,MAAA;AAAA;AAAA;AAAA;AAAA,EAIb,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA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