diff --git a/example/pages/switch/index.wxml b/example/pages/switch/index.wxml index fe24c507..a20db8ec 100644 --- a/example/pages/switch/index.wxml +++ b/example/pages/switch/index.wxml @@ -18,4 +18,10 @@ + + + + + + diff --git a/example/pages/switch/index.wxss b/example/pages/switch/index.wxss index 87217462..cfb79a4e 100644 --- a/example/pages/switch/index.wxss +++ b/example/pages/switch/index.wxss @@ -1,6 +1,5 @@ -.zan-panel { - padding: 10px; -} -.zan-switch { - margin-right: 8px; + +.switch-theme { + background: #f44 !important; + border-color: #f44 !important; } diff --git a/packages/btn/index.js b/packages/btn/index.js index f65506f1..3d4db84d 100644 --- a/packages/btn/index.js +++ b/packages/btn/index.js @@ -1,7 +1,7 @@ const nativeButtonBehavior = require('./native-button-behaviors'); Component({ - externalClasses: ['custom-class'], + externalClasses: ['custom-class', 'theme-class'], behaviors: [nativeButtonBehavior], relations: { '../btn-group/index': { diff --git a/packages/btn/index.wxml b/packages/btn/index.wxml index e1626d00..0a1703cc 100644 --- a/packages/btn/index.wxml +++ b/packages/btn/index.wxml @@ -1,5 +1,5 @@