UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.01 kB
{"version":3,"file":"thumb.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/thumb.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Thumb from './thumb.vue'\n\nexport interface ThumbProps {\n vertical?: boolean\n size?: string\n move?: number\n ratio: number\n always?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ThumbProps` instead.\n */\nexport const thumbProps = buildProps({\n vertical: Boolean,\n size: String,\n move: Number,\n ratio: {\n type: Number,\n required: true,\n },\n always: Boolean,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ThumbProps` instead.\n */\nexport type ThumbPropsPublic = ExtractPublicPropTypes<typeof thumbProps>\n\nexport type ThumbInstance = InstanceType<typeof Thumb> & unknown\n"],"mappings":";;;;;;AAgBA,MAAa,aAAa,WAAW;CACnC,UAAU;CACV,MAAM;CACN,MAAM;CACN,OAAO;EACL,MAAM;EACN,UAAU;EACX;CACD,QAAQ;CACT,CAAU"}