ant-design-vue/components/card/index.ts

26 lines
552 B
TypeScript
Raw Normal View History

2021-06-26 09:35:40 +08:00
import type { App, Plugin } from 'vue';
2019-01-12 11:33:27 +08:00
import Card from './Card';
import Meta from './Meta';
import Grid from './Grid';
2020-10-12 19:19:10 +08:00
2021-06-23 23:08:16 +08:00
export type { CardProps } from './Card';
2021-06-23 21:47:53 +08:00
2019-01-12 11:33:27 +08:00
Card.Meta = Meta;
Card.Grid = Grid;
/* istanbul ignore next */
2021-06-23 23:08:16 +08:00
Card.install = function (app: App) {
2020-06-22 23:22:52 +08:00
app.component(Card.name, Card);
app.component(Meta.name, Meta);
app.component(Grid.name, Grid);
2020-10-13 19:14:56 +08:00
return app;
2019-01-12 11:33:27 +08:00
};
2021-06-23 23:08:16 +08:00
export { Meta as CardMeta, Grid as CardGrid };
2021-06-23 21:47:53 +08:00
2020-11-01 15:03:33 +08:00
export default Card as typeof Card &
Plugin & {
readonly Meta: typeof Meta;
readonly Grid: typeof Grid;
};