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 line
3.2 KiB

{"ast":null,"code":"import '../../../utils/index.mjs';\nimport { buildProps } from '../../../utils/vue/props/runtime.mjs';\nimport { keysOf } from '../../../utils/objects.mjs';\nimport { TypeComponentsMap } from '../../../utils/vue/icon.mjs';\nconst alertEffects = [\"light\", \"dark\"];\nconst alertProps = buildProps({\n title: {\n type: String,\n default: \"\"\n },\n description: {\n type: String,\n default: \"\"\n },\n type: {\n type: String,\n values: keysOf(TypeComponentsMap),\n default: \"info\"\n },\n closable: {\n type: Boolean,\n default: true\n },\n closeText: {\n type: String,\n default: \"\"\n },\n showIcon: Boolean,\n center: Boolean,\n effect: {\n type: String,\n values: alertEffects,\n default: \"light\"\n }\n});\nconst alertEmits = {\n close: evt => evt instanceof MouseEvent\n};\nexport { alertEffects, alertEmits, alertProps };","map":{"version":3,"names":["alertEffects","alertProps","buildProps","title","type","String","default","description","values","keysOf","TypeComponentsMap","closable","Boolean","closeText","showIcon","center","effect","alertEmits","close","evt","MouseEvent"],"sources":["../../../../../../packages/components/alert/src/alert.ts"],"sourcesContent":["import { TypeComponentsMap, buildProps, keysOf } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const alertEffects = ['light', 'dark'] as const\n\nexport const alertProps = buildProps({\n /**\n * @description alert title.\n */\n title: {\n type: String,\n default: '',\n },\n description: {\n type: String,\n default: '',\n },\n /**\n * @description alert type.\n */\n type: {\n type: String,\n values: keysOf(TypeComponentsMap),\n default: 'info',\n },\n /**\n * @description whether alert can be dismissed.\n */\n closable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description text for replacing x button\n */\n closeText: {\n type: String,\n default: '',\n },\n /**\n * @description whether show icon\n */\n showIcon: Boolean,\n /**\n * @description should content be placed in center.\n */\n center: Boolean,\n effect: {\n type: String,\n values: alertEffects,\n default: 'light',\n },\n} as const)\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\n\nexport const alertEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type AlertEmits = typeof alertEmits\n"],"mappings":";;;;AACY,MAACA,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM;AAChC,MAACC,UAAU,GAAGC,UAAU,CAAC;EACnCC,KAAK,EAAE;IACLC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACb,CAAG;EACDC,WAAW,EAAE;IACXH,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACb,CAAG;EACDF,IAAI,EAAE;IACJA,IAAI,EAAEC,MAAM;IACZG,MAAM,EAAEC,MAAM,CAACC,iBAAiB,CAAC;IACjCJ,OAAO,EAAE;EACb,CAAG;EACDK,QAAQ,EAAE;IACRP,IAAI,EAAEQ,OAAO;IACbN,OAAO,EAAE;EACb,CAAG;EACDO,SAAS,EAAE;IACTT,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACb,CAAG;EACDQ,QAAQ,EAAEF,OAAO;EACjBG,MAAM,EAAEH,OAAO;EACfI,MAAM,EAAE;IACNZ,IAAI,EAAEC,MAAM;IACZG,MAAM,EAAER,YAAY;IACpBM,OAAO,EAAE;EACb;AACA,CAAC;AACW,MAACW,UAAU,GAAG;EACxBC,KAAK,EAAGC,GAAG,IAAKA,GAAG,YAAYC;AACjC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}