) => {
!!dropdown && dropdown.onClick();
!!props.onClick && props.onClick(e);
},
};
return (
{!!props.icon && }
{props.children}
);
};
export const $$dropdown = (() => {
let ins: any;
return (option: DropdownOption) => {
if (!ins) {
const el = document.createElement('div');
document.body.appendChild(el);
ReactDom.render( (ins = i)} />, el);
}
ins.show(option);
};
})();