Empty.js
606 Bytes
import template from "./Empty.html";
import style from "antd/lib/empty/style/index.css";
class Empty {
useModules = ["esNgAntd"];
state = {
image: this.props.image || "presented_image_default",
};
constructor($element) {
esNgAntd.clearAttribute($element[0], ["ng-class", "image"])
esNgAntd.createStyle("ant-empty", style);
}
render() {
return template;
}
}
Empty.propTypes = {
image: PropTypes.string,
};
export default {
PRESENTED_IMAGE_DEFAULT: "presented_image_default",
PRESENTED_IMAGE_SIMPLE: "presented_image_simple",
};