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/03/31 02:44:39 UTC

[23/50] [abbrv] incubator-weex git commit: * [html5] hyphenate static style.

* [html5] hyphenate static style.


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

Branch: refs/heads/0.11-dev
Commit: 43c9e6516dc6b76b58ba536b47c7a1c0cc58352a
Parents: 436a69c
Author: MrRaindrop <te...@gmail.com>
Authored: Fri Mar 24 16:28:40 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Fri Mar 24 16:28:40 2017 +0800

----------------------------------------------------------------------
 html5/render/vue/mixins/style.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43c9e651/html5/render/vue/mixins/style.js
----------------------------------------------------------------------
diff --git a/html5/render/vue/mixins/style.js b/html5/render/vue/mixins/style.js
index bb5bfed..5d841f2 100644
--- a/html5/render/vue/mixins/style.js
+++ b/html5/render/vue/mixins/style.js
@@ -1,5 +1,6 @@
 import {
   camelizeKeys,
+  hyphenateKeys,
   extend,
   trimComment
 } from '../utils'
@@ -86,7 +87,7 @@ export default {
           }
         })
       }
-      return addPrefix(camelizeKeys(style))
+      return hyphenateKeys(addPrefix(camelizeKeys(style)))
     },
 
     _getScopeStyle (classNames) {