ant-design-vue/components/_util/cssinjs/Keyframes.ts

20 lines
386 B
TypeScript
Raw Normal View History

2023-01-24 14:51:59 +00:00
import type { CSSInterpolation } from './hooks/useStyleRegister';
class Keyframe {
private name: string;
style: CSSInterpolation;
constructor(name: string, style: CSSInterpolation) {
this.name = name;
this.style = style;
}
getName(hashId = ''): string {
return hashId ? `${hashId}-${this.name}` : this.name;
}
_keyframe = true;
}
export default Keyframe;