UNPKG

element-plus

Version:

A Component Library for Vue 3

70 lines (66 loc) 1.32 kB
'use strict'; var runtime = require('../../../utils/vue/props/runtime.js'); const badgeProps = runtime.buildProps({ /** * @description display value. */ value: { type: [String, Number], default: "" }, /** * @description maximum value, shows `{max}+` when exceeded. Only works if value is a number. */ max: { type: Number, default: 99 }, /** * @description if a little dot is displayed. */ isDot: Boolean, /** * @description hidden badge. */ hidden: Boolean, /** * @description badge type. */ type: { type: String, values: ["primary", "success", "warning", "info", "danger"], default: "danger" }, /** * @description whether to show badge when value is zero. */ showZero: { type: Boolean, default: true }, /** * @description customize dot background color */ color: String, /** * @description CSS style of badge */ badgeStyle: { type: runtime.definePropType([String, Object, Array]) }, /** * @description set offset of the badge */ offset: { type: runtime.definePropType(Array), default: () => [0, 0] }, /** * @description custom class name of badge */ badgeClass: { type: String } }); exports.badgeProps = badgeProps; //# sourceMappingURL=badge.js.map