grid.html
1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title></title>
<link
href="../node_modules/antd/dist/antd.min.css"
rel="stylesheet"
/>
</head>
<body>
<div ng-app="esNgAntd" ng-controller="mainCtrl" ng-cloak>
<div class="container" style="padding: 50px">
<es-row gutter="16">
<es-col span="8">Row1, Col1</es-col>
<es-col span="8">Row1, Col2</es-col>
<es-col span="8">Row1, Col3</es-col>
</es-row>
<es-row>
<es-col span="8">Row2, Col1</es-col>
<es-col span="8">Row2, Col2</es-col>
<es-col span="8">Row2, Col3</es-col>
</es-row>
</div>
</div>
<script src="https://cdn.staticfile.org/angular.js/1.2.28/angular.min.js"></script>
<script src="../dist/ng-antd.js"></script>
<script>
angular
.module("esNgAntd")
.controller("mainCtrl", function ($scope) {
$scope.handleChange = function(value) {
console.log("mainCtrl:value", value)
}
});
</script>
</body>
</html>