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

[29/50] [abbrv] incubator-weex git commit: * [ios] update weex examples

* [ios] update weex examples


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

Branch: refs/heads/master
Commit: c0a6edf63dfeac6f89b9c9278c3432f51313a718
Parents: 91389e0
Author: boboning <ni...@163.com>
Authored: Thu Feb 16 17:42:24 2017 +0800
Committer: boboning <ni...@163.com>
Committed: Thu Feb 16 17:42:24 2017 +0800

----------------------------------------------------------------------
 examples/index.we                               |  1 +
 examples/linear-gradient.we                     | 70 ++++++++++++++++++++
 .../xcshareddata/xcschemes/WeexDemo.xcscheme    |  2 +-
 ios/sdk/WeexSDK.podspec                         |  2 +-
 4 files changed, 73 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c0a6edf6/examples/index.we
----------------------------------------------------------------------
diff --git a/examples/index.we b/examples/index.we
index 62d9cf2..54feddc 100644
--- a/examples/index.we
+++ b/examples/index.we
@@ -16,6 +16,7 @@
         {name: 'hello', title: 'Hello World'},
         {name: 'style/index', title: 'Common Style'},
         {name: 'animation', title: 'Animation'},
+        {name: 'linear-gradient', title: 'Gradient Color'},
 
         // component
         {name: 'component/text-demo', title: 'Text'},

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c0a6edf6/examples/linear-gradient.we
----------------------------------------------------------------------
diff --git a/examples/linear-gradient.we b/examples/linear-gradient.we
new file mode 100644
index 0000000..babe158
--- /dev/null
+++ b/examples/linear-gradient.we
@@ -0,0 +1,70 @@
+<template>
+    <scroller style="background-color: #3a3a3a">
+        <div class="container1" style="background-image:linear-gradient(to right,#43C6AC,#F8FFAE);">
+            <text class="direction">to right</text>
+        </div>
+        <div class="container1" style="background-image:linear-gradient(to left,#DCE35B,#45B649);">
+            <text class="direction">to left</text>
+        </div>
+        <div class="container1" style="background-image:linear-gradient(to bottom,#3494E6,#EC6EAD);">
+            <text class="direction">to bottom</text>
+        </div>
+        <div class="container1" style="background-image:linear-gradient(to top,#ee0979,#ff6a00);">
+            <text class="direction">to top</text>
+        </div>
+        <div style="flex-direction: row;align-items: center;justify-content: center">
+            <div class="container2" style="background-image:linear-gradient(to bottom right,#00c3ff,#ffff1c);">
+                <text class="direction">to bottom right</text>
+            </div>
+            <div class="container2" style="background-image:linear-gradient(to top left,#ff00cc,#333399);">
+                <text class="direction">to top left</text>
+            </div>
+        </div>
+        <div class="container1" style="background-image:linear-gradient(to right,#a80077,#66ff00);">
+            <text class="direction">to right</text>
+        </div>
+        <div class="container1" style="background-image:linear-gradient(to left,#a80077,#66ff00);">
+            <text class="direction">to left</text>
+        </div>
+        <div class="container1" style="background-image:linear-gradient(to bottom,#a80077,#66ff00);">
+            <text class="direction">to bottom</text>
+        </div>
+        <div class="container1" style="background-image:linear-gradient(to top,#a80077,#66ff00);">
+            <text class="direction">to top</text>
+        </div>
+        <div style="flex-direction: row;align-items: center;justify-content: center">
+            <div class="container2" style="background-image:linear-gradient(to bottom right,#a80077,#66ff00);">
+                <text class="direction">to bottom right</text>
+            </div>
+            <div class="container2" style="background-image:linear-gradient(to top left,#a80077,#66ff00);">
+                <text class="direction">to top left</text>
+            </div>
+        </div>
+    </scroller>
+</template>
+<style>
+    .container1 {
+        margin: 10px;
+        width: 730px;
+        height: 200px;
+        align-items: center;
+        justify-content: center;
+        border: solid;
+        border-radius: 10px;
+    }
+
+    .container2 {
+        margin: 10px;
+        width: 300px;
+        height: 300px;
+        align-items: center;
+        justify-content: center;
+        border: solid;
+        border-radius: 10px;
+    }
+
+    .direction {
+        font-size: 40px;
+        color: white;
+    }
+</style>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c0a6edf6/ios/playground/WeexDemo.xcodeproj/xcshareddata/xcschemes/WeexDemo.xcscheme
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo.xcodeproj/xcshareddata/xcschemes/WeexDemo.xcscheme b/ios/playground/WeexDemo.xcodeproj/xcshareddata/xcschemes/WeexDemo.xcscheme
index a0422b6..a33c31d 100644
--- a/ios/playground/WeexDemo.xcodeproj/xcshareddata/xcschemes/WeexDemo.xcscheme
+++ b/ios/playground/WeexDemo.xcodeproj/xcshareddata/xcschemes/WeexDemo.xcscheme
@@ -63,7 +63,7 @@
       </AdditionalOptions>
    </TestAction>
    <LaunchAction
-      buildConfiguration = "Release"
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c0a6edf6/ios/sdk/WeexSDK.podspec
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK.podspec b/ios/sdk/WeexSDK.podspec
index 17ec318..66af1d4 100644
--- a/ios/sdk/WeexSDK.podspec
+++ b/ios/sdk/WeexSDK.podspec
@@ -3,7 +3,7 @@ Pod::Spec.new do |s|
 
   s.name         = "WeexSDK"
 
-  s.version      = "0.9.5"
+  s.version      = "0.10.0"
 
   s.summary      = "WeexSDK Source ."