({
name: 'PureContent',
inheritAttrs: false,
props: ['prefixCls', 'type', 'icon'] as any,
setup(props, { slots }) {
return () => (
{props.icon || TypeIcon[props.type!]}
{slots.default?.()}
);
},
});
export interface PurePanelProps
extends Omit,
Omit {
prefixCls?: string;
}
/** @private Internal Component. Do not use in your production. */
export default defineComponent({
name: 'PurePanel',
inheritAttrs: false,
props: ['prefixCls', 'class', 'type', 'icon', 'content'] as any,
setup(props, { slots, attrs }) {
const { getPrefixCls } = useConfigContextInject();
const prefixCls = computed(() => props.prefixCls || getPrefixCls('message'));
const [, hashId] = useStyle(prefixCls);
return (
{slots.default?.()}
);
},
});