element-plus
Version:
A Component Library for Vue 3
56 lines (53 loc) • 1.14 kB
JavaScript
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
import { componentSizes } from '../../../constants/size.mjs';
const tagProps = buildProps({
/**
* @description type of Tag
*/
type: {
type: String,
values: ["primary", "success", "info", "warning", "danger"],
default: "primary"
},
/**
* @description whether Tag can be removed
*/
closable: Boolean,
/**
* @description whether to disable animations
*/
disableTransitions: Boolean,
/**
* @description whether Tag has a highlighted border
*/
hit: Boolean,
/**
* @description background color of the Tag
*/
color: String,
/**
* @description size of Tag
*/
size: {
type: String,
values: componentSizes
},
/**
* @description theme of Tag
*/
effect: {
type: String,
values: ["dark", "light", "plain"],
default: "light"
},
/**
* @description whether Tag is rounded
*/
round: Boolean
});
const tagEmits = {
close: (evt) => evt instanceof MouseEvent,
click: (evt) => evt instanceof MouseEvent
};
export { tagEmits, tagProps };
//# sourceMappingURL=tag.mjs.map