{"version":3,"file":"iframe.mjs","sources":["../../../../../../packages/components/iframe/src/iframe.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\r\n\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type Iframe from './iframe.vue'\r\n\r\n// 定义组件props\r\nexport const iframeProps = buildProps({\r\n  // 嵌入页面的URL\r\n  src: {\r\n    type: String,\r\n    default: '',\r\n  },\r\n\r\n  // 用于无障碍访问的标题\r\n  title: {\r\n    type: String,\r\n    default: '内嵌页面',\r\n  },\r\n\r\n  // 宽度设置（支持px/%/vw等单位）\r\n  width: {\r\n    type: String,\r\n    default: '100%',\r\n  },\r\n\r\n  // 高度设置（支持px/%/vh等单位）\r\n  height: {\r\n    type: String,\r\n    default: '500px',\r\n  },\r\n\r\n  // 加载行为（eager/lazy）\r\n  loadingType: {\r\n    type: definePropType<'eager' | 'lazy'>(String),\r\n    default: 'eager',\r\n  },\r\n\r\n  // 是否显示边框\r\n  showBorder: {\r\n    type: Boolean,\r\n    default: false,\r\n  },\r\n} as const)\r\n\r\n// props\r\nexport type IframeProps = ExtractPropTypes<typeof iframeProps>\r\n\r\n// instance\r\nexport type IframeInstance = InstanceType<typeof Iframe>\r\n"],"names":[],"mappings":";;;;AAMO,MAAM,cAAc,UAAA,CAAW;AAAA;AAAA,EAEpC,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAGA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAGA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAGA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAGA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,eAAiC,MAAM,CAAA;AAAA,IAC7C,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAGA,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}