amis2/packages/amis-editor/examples/icons/index.tsx

19 lines
384 B
TypeScript

/**
* @file 内置 svg 图标
*/
import {Icon, registerIcon} from 'amis';
// @ts-ignore
import PCPreview from './pc-preview.svg';
// @ts-ignore
import H5Preview from './h5-preview.svg';
registerIcon('pc-preview', PCPreview);
registerIcon('h5-preview', H5Preview);
// @ts-ignore
import CorpusI18n from './corpus-i18n.svg';
registerIcon('corpus-i18n', CorpusI18n);
export {Icon};