mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
24 lines
477 B
TypeScript
24 lines
477 B
TypeScript
import { buildProps } from '@element-plus/utils'
|
|
import type { ExtractPropTypes } from 'vue'
|
|
import type Bar from './bar.vue'
|
|
|
|
export const barProps = buildProps({
|
|
always: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
width: String,
|
|
height: String,
|
|
ratioX: {
|
|
type: Number,
|
|
default: 1,
|
|
},
|
|
ratioY: {
|
|
type: Number,
|
|
default: 1,
|
|
},
|
|
} as const)
|
|
export type BarProps = ExtractPropTypes<typeof barProps>
|
|
|
|
export type BarInstance = InstanceType<typeof Bar>
|