You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2017/04/21 06:18:27 UTC

[04/50] incubator-weex git commit: + [example] fix bug demo

+ [example] fix bug demo


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/eb6b55c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/eb6b55c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/eb6b55c2

Branch: refs/heads/0.13-dev
Commit: eb6b55c25ceda9e3681e195df03a0460787b77e7
Parents: 2f8eec6
Author: \u9f50\u5c71 <su...@163.com>
Authored: Sat Apr 15 21:56:17 2017 +0800
Committer: \u9f50\u5c71 <su...@163.com>
Committed: Sat Apr 15 21:56:17 2017 +0800

----------------------------------------------------------------------
 examples/component/input-demo.we  | 14 +++++++-------
 examples/vue/components/input.vue | 14 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/eb6b55c2/examples/component/input-demo.we
----------------------------------------------------------------------
diff --git a/examples/component/input-demo.we b/examples/component/input-demo.we
index 950805a..ea4313b 100644
--- a/examples/component/input-demo.we
+++ b/examples/component/input-demo.we
@@ -11,7 +11,7 @@
                 <div style="background-color: #286090">
                     <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input type = text</text>
                 </div>
-                <input type="text" placeholder="Input Text" class="input" :autofocus="autofocus" value="" onchange="onchange" oninput="oninput"/>
+                <input type="text" placeholder="Input Text" class="input" autofocus=true value="" onchange="onchange" oninput="oninput"/>
             </div>
 
             <div>
@@ -58,42 +58,42 @@
 
             <div>
                 <div style="background-color: #286090">
-                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = default</text>
+                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = default</text>
                 </div>
                 <input type="text" placeholder="please input" return-key-type="default" class="input" onchange="onchange" onreturn = "onreturn" oninput="oninput" />
             </div>
 
             <div>
                 <div style="background-color: #286090">
-                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = go</text>
+                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = go</text>
                 </div>
                 <input type="text" placeholder="please input" return-key-type="go" class="input" onchange="onchange" onreturn = "onreturn" oninput="oninput" />
             </div>
 
             <div>
                 <div style="background-color: #286090">
-                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = next</text>
+                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = next</text>
                 </div>
                 <input type="text" placeholder="please input" return-key-type="next" class="input" onchange="onchange" onreturn = "onreturn" oninput="oninput" />
             </div>
 
             <div>
                 <div style="background-color: #286090">
-                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = search</text>
+                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = search</text>
                 </div>
                 <input type="text" placeholder="please input" return-key-type="search" class="input" onchange="onchange" onreturn = "onreturn" oninput="oninput" />
             </div>
 
             <div>
                 <div style="background-color: #286090">
-                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = send</text>
+                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = send</text>
                 </div>
                 <input type="text" placeholder="please input" return-key-type="send" class="input" onchange="onchange" onreturn = "onreturn" oninput="oninput" />
             </div>
 
             <div>
                 <div style="background-color: #286090">
-                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = done</text>
+                    <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = done</text>
                 </div>
                 <input type="text" placeholder="please input" return-key-type="done" class="input" onchange="onchange" onreturn = "onreturn" oninput="oninput" />
             </div>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/eb6b55c2/examples/vue/components/input.vue
----------------------------------------------------------------------
diff --git a/examples/vue/components/input.vue b/examples/vue/components/input.vue
index 6ef5f9b..9cf4c37 100644
--- a/examples/vue/components/input.vue
+++ b/examples/vue/components/input.vue
@@ -10,7 +10,7 @@
         <div style="background-color: #286090">
           <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input type = text</text>
         </div>
-        <input type="text" placeholder="Input Text" class="input" :autofocus="autofocus" value="" @change="onchange" @input="oninput"/>
+        <input type="text" placeholder="Input Text" class="input" :autofocus=true value="" @change="onchange" @input="oninput"/>
       </div>
 
       <div>
@@ -57,42 +57,42 @@
 
       <div>
         <div style="background-color: #286090">
-          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = default</text>
+          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = default</text>
         </div>
         <input type="text" placeholder="please input" return-key-type="default" class="input" @change="onchange" @return = "onreturn" @input="oninput" />
       </div>
 
       <div>
         <div style="background-color: #286090">
-          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = go</text>
+          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = go</text>
         </div>
         <input type="text" placeholder="please input" return-key-type="go" class="input" @change="onchange" @return = "onreturn" @input="oninput" />
       </div>
 
       <div>
         <div style="background-color: #286090">
-          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = next</text>
+          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = next</text>
         </div>
         <input type="text" placeholder="please input" return-key-type="next" class="input" @change="onchange" @return = "onreturn" @input="oninput" />
       </div>
 
       <div>
         <div style="background-color: #286090">
-          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = search</text>
+          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = search</text>
         </div>
         <input type="text" placeholder="please input" return-key-type="search" class="input" @change="onchange" @return = "onreturn" @input="oninput" />
       </div>
 
       <div>
         <div style="background-color: #286090">
-          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = send</text>
+          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = send</text>
         </div>
         <input type="text" placeholder="please input" return-key-type="send" class="input" @change="onchange" @return = "onreturn" @input="oninput" />
       </div>
 
       <div>
         <div style="background-color: #286090">
-          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input keyboard = done</text>
+          <text class="title" style="height: 80 ;padding: 20;color: #FFFFFF">input return-key-type = done</text>
         </div>
         <input type="text" placeholder="please input" return-key-type="done" class="input" @change="onchange" @return = "onreturn" @input="oninput" />
       </div>