diff --git a/example/common/config.ts b/example/common/config.ts
index 7741906..3e96aa0 100644
--- a/example/common/config.ts
+++ b/example/common/config.ts
@@ -41,8 +41,6 @@ export default {
'icon',
'divider',
'float-ball',
- 'rate',
- 'switch',
'loading'
]
},
@@ -57,7 +55,9 @@ export default {
'picker',
'cascade-picker',
'date-picker',
- 'time-picker'
+ 'time-picker',
+ 'rate',
+ 'switch'
]
},
{
diff --git a/example/pages/rate/index.mpx b/example/pages/rate/index.mpx
index e2a8fd0..c7ff8ed 100644
--- a/example/pages/rate/index.mpx
+++ b/example/pages/rate/index.mpx
@@ -58,7 +58,7 @@
@@ -71,7 +71,7 @@
createPage({
data: {
- value: 4.5,
+ value: 3.3,
max: '5',
customize: false,
justify: false,
@@ -92,9 +92,9 @@
updateMaxLength (e) {
const { value } = e.detail
this.max = value
- if (value >= 10) {
+ if (value > 9) {
this.$refs.toast.show()
- this.max = '10'
+ this.max = '9'
}
},
updateJustify (e) {
@@ -156,6 +156,9 @@
.cube-rate-item_active
.rate-item-demo
background-color: orange
+.cube-rate-item_half_active
+ .rate-item-demo
+ background-color: blue