Blame view

example/input.html 2.16 KB
3a3ecabe   Imshann   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <!DOCTYPE html>
  <html>
  
  <head>
      <meta charset="UTF-8" />
      <title></title>
      <link href="https://cdn.staticfile.org/antd/3.26.9/antd.css" rel="stylesheet" />
      <style>
          div.row {
              margin-bottom: 16px;
          }
      </style>
  </head>
  
  <body>
      <div ng-app="esNgAntd" ng-controller="mainCtrl">
          <div class="container" style="padding: 50px">
              <div class="row">
d88eaac5   Imshann   优化
19
                      <antd-input max-length="3"></antd-input>
3a3ecabe   Imshann   init
20
21
              </div>
              <div class="row">
d88eaac5   Imshann   优化
22
23
24
                  <antd-input-group compact="true">
                      <antd-input style="width: 50px"></antd-input><antd-input style="width: 50px"></antd-input>
                  </antd-input-group>
3a3ecabe   Imshann   init
25
26
              </div>
              <div class="row">
d88eaac5   Imshann   优化
27
28
29
                  <antd-input-group compact="true">
                      <antd-input style="width: 50px" addon-before="长"></antd-input><antd-input style="width: 50px" addon-before="长"></antd-input>
                  </antd-input-group>
3a3ecabe   Imshann   init
30
31
              </div>
              <div class="row">
d88eaac5   Imshann   优化
32
                  <antd-input on-change="handleChange(event)" value="{{value}}"></antd-input>
3a3ecabe   Imshann   init
33
34
              </div>
              <div class="row">
d88eaac5   Imshann   优化
35
                  <antd-input placeholder="Basic usage" style="width: 200px"></antd-input>
3a3ecabe   Imshann   init
36
37
              </div>
              <div class="row">
d88eaac5   Imshann   优化
38
                  <antd-input placeholder="Basic usage" value="abc"></antd-input>
3a3ecabe   Imshann   init
39
40
              </div>
              <div class="row">
d88eaac5   Imshann   优化
41
                  <antd-input addon-before="Http://" on-change="handleChange()"></antd-input>
3a3ecabe   Imshann   init
42
43
              </div>
              <div class="row">
d88eaac5   Imshann   优化
44
                  <antd-input disabled="true"></antd-input>
3a3ecabe   Imshann   init
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
              </div>
          </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.value = "123123";
                  $scope.handleChange = function(event) {
                      console.log("input changed.", event)
                      $scope.value="4566";
                  }
              });
      </script>
  </body>
  
  </html>