Card.js
549 Bytes
import template from "./Card.html";
import style from "antd/lib/card/style/index.css";
class Card {
useModules = ["esNgAntd"];
constructor($element) {
$element[0].removeAttribute("title");
$element[0].removeAttribute("extra");
$element[0].removeAttribute("ng-class");
this.self = $scope;
esNgAntd.createStyle("ant-card", style);
}
render() {
return template;
}
}
Card.propTypes = {
title: PropTypes.string,
extra: PropTypes.string,
bordered: PropTypes.boolean,
};