element-plus
Version:
A Component Library for Vue 3
69 lines (68 loc) • 1.23 kB
JavaScript
import { componentSizes } from "../../../constants/size.mjs";
import { buildProps } from "../../../utils/vue/props/runtime.mjs";
//#region ../../packages/components/tag/src/tag.ts
/**
* @deprecated Removed after 3.0.0, Use `TagProps` instead.
*/
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
};
//#endregion
export { tagEmits, tagProps };
//# sourceMappingURL=tag.mjs.map