ddd373d9
Imshann
优化Card组件
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import template from "./Card.html";
angular.module("esNgAntd").directive("antdCard", ["esNgAntd", function (esNgAntd) {
return {
template: template,
restrict: "E",
replace: true,
transclude: true,
scope: {
title: "@",
extra: "@",
bordered: "="
},
link: function ($scope, $element) {
$element[0].removeAttribute("title");
$element[0].removeAttribute("extra");
$element[0].removeAttribute("ng-class");
$scope.self = $scope;
esNgAntd.createStyle("ant-card", style);
}
};
}]);
|