UNPKG

element-plus

Version:

A Component Library for Vue 3

57 lines (54 loc) 1.04 kB
import '../../../utils/index.mjs'; import { buildProps, definePropType } from '../../../utils/vue/props.mjs'; import { isNumber } from '@vueuse/core'; const scrollbarProps = buildProps({ height: { type: [String, Number], default: "" }, maxHeight: { type: [String, Number], default: "" }, native: { type: Boolean, default: false }, wrapStyle: { type: definePropType([String, Object, Array]), default: "" }, wrapClass: { type: [String, Array], default: "" }, viewClass: { type: [String, Array], default: "" }, viewStyle: { type: [String, Array, Object], default: "" }, noresize: Boolean, tag: { type: String, default: "div" }, always: { type: Boolean, default: false }, minSize: { type: Number, default: 20 } }); const scrollbarEmits = { scroll: ({ scrollTop, scrollLeft }) => isNumber(scrollTop) && isNumber(scrollLeft) }; export { scrollbarEmits, scrollbarProps }; //# sourceMappingURL=scrollbar.mjs.map