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
5.2 KiB
1 lines
5.2 KiB
{"ast":null,"code":"import { buildProps } from '../../../utils/vue/props/runtime.mjs';\nimport { isNumber } from '../../../utils/types.mjs';\nconst carouselProps = buildProps({\n initialIndex: {\n type: Number,\n default: 0\n },\n height: {\n type: String,\n default: \"\"\n },\n trigger: {\n type: String,\n values: [\"hover\", \"click\"],\n default: \"hover\"\n },\n autoplay: {\n type: Boolean,\n default: true\n },\n interval: {\n type: Number,\n default: 3e3\n },\n indicatorPosition: {\n type: String,\n values: [\"\", \"none\", \"outside\"],\n default: \"\"\n },\n arrow: {\n type: String,\n values: [\"always\", \"hover\", \"never\"],\n default: \"hover\"\n },\n type: {\n type: String,\n values: [\"\", \"card\"],\n default: \"\"\n },\n cardScale: {\n type: Number,\n default: 0.83\n },\n loop: {\n type: Boolean,\n default: true\n },\n direction: {\n type: String,\n values: [\"horizontal\", \"vertical\"],\n default: \"horizontal\"\n },\n pauseOnHover: {\n type: Boolean,\n default: true\n },\n motionBlur: Boolean\n});\nconst carouselEmits = {\n change: (current, prev) => [current, prev].every(isNumber)\n};\nexport { carouselEmits, carouselProps };","map":{"version":3,"names":["carouselProps","buildProps","initialIndex","type","Number","default","height","String","trigger","values","autoplay","Boolean","interval","indicatorPosition","arrow","cardScale","loop","direction","pauseOnHover","motionBlur","carouselEmits","change","current","prev","every","isNumber"],"sources":["../../../../../../packages/components/carousel/src/carousel.ts"],"sourcesContent":["import { buildProps, isNumber } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const carouselProps = buildProps({\n /**\n * @description index of the initially active slide (starting from 0)\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of the carousel\n */\n height: {\n type: String,\n default: '',\n },\n /**\n * @description how indicators are triggered\n */\n trigger: {\n type: String,\n values: ['hover', 'click'],\n default: 'hover',\n },\n /**\n * @description whether automatically loop the slides\n */\n autoplay: {\n type: Boolean,\n default: true,\n },\n /**\n * @description interval of the auto loop, in milliseconds\n */\n interval: {\n type: Number,\n default: 3000,\n },\n /**\n * @description position of the indicators\n */\n indicatorPosition: {\n type: String,\n values: ['', 'none', 'outside'],\n default: '',\n },\n /**\n * @description when arrows are shown\n */\n arrow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: 'hover',\n },\n /**\n * @description type of the Carousel\n */\n type: {\n type: String,\n values: ['', 'card'],\n default: '',\n },\n /**\n * @description when type is card, scaled size of secondary cards\n */\n cardScale: {\n type: Number,\n default: 0.83,\n },\n /**\n * @description display the items in loop\n */\n loop: {\n type: Boolean,\n default: true,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description pause autoplay when hover\n */\n pauseOnHover: {\n type: Boolean,\n default: true,\n },\n /**\n * @description infuse dynamism and smoothness into the carousel\n */\n motionBlur: Boolean,\n} as const)\n\nexport const carouselEmits = {\n /**\n * @description triggers when the active slide switches\n * @param current index of the new active slide\n * @param prev index of the old active slide\n */\n change: (current: number, prev: number) => [current, prev].every(isNumber),\n}\n\nexport type CarouselProps = ExtractPropTypes<typeof carouselProps>\nexport type CarouselEmits = typeof carouselEmits\n"],"mappings":";;AACY,MAACA,aAAa,GAAGC,UAAU,CAAC;EACtCC,YAAY,EAAE;IACZC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACb,CAAG;EACDC,MAAM,EAAE;IACNH,IAAI,EAAEI,MAAM;IACZF,OAAO,EAAE;EACb,CAAG;EACDG,OAAO,EAAE;IACPL,IAAI,EAAEI,MAAM;IACZE,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1BJ,OAAO,EAAE;EACb,CAAG;EACDK,QAAQ,EAAE;IACRP,IAAI,EAAEQ,OAAO;IACbN,OAAO,EAAE;EACb,CAAG;EACDO,QAAQ,EAAE;IACRT,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EAC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