wedux-ui 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -23,9 +23,9 @@ npm install wedux-ui
|
|
|
23
23
|
在项目全局样式文件 `app.scss` 中引入:
|
|
24
24
|
|
|
25
25
|
```scss
|
|
26
|
-
@import '
|
|
27
|
-
@import '
|
|
28
|
-
@import '
|
|
26
|
+
@import './miniprogram_dist/styles/iconfont.scss';
|
|
27
|
+
@import './miniprogram_dist/styles/tokens.scss';
|
|
28
|
+
@import './miniprogram_dist/styles/theme.scss';
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## 快速上手
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
<text class="w-highlight"
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<text class="w-highlight"
|
|
2
|
+
><block wx:for="{{_segments}}" wx:key="index"
|
|
3
|
+
><text
|
|
4
4
|
wx:if="{{item.isMatch}}"
|
|
5
5
|
class="w-highlight__mark {{highlightClass}}"
|
|
6
6
|
style="{{highlightStyle}}"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</block>
|
|
12
|
-
</text>
|
|
7
|
+
>{{item.text}}</text
|
|
8
|
+
><block wx:else>{{item.text}}</block></block
|
|
9
|
+
></text
|
|
10
|
+
>
|