ant-design-vue/components/icon/index.tsx

18 lines
320 B
TypeScript
Raw Normal View History

2020-09-18 04:15:01 +00:00
import { App } from 'vue';
import warning from '../_util/warning';
const Icon = () => {
warning(false, 'Icon', 'Empty Icon');
return null;
};
Icon.displayName = 'AIcon';
/* istanbul ignore next */
Icon.install = function(app: App) {
app.component(Icon.displayName, Icon);
2020-10-13 11:14:56 +00:00
return app;
2020-09-18 04:15:01 +00:00
};
export default Icon;