nemo-shen c416ff16b6
feat(Rate): css variables (#4297)
* feat(Rate): css variables

* fix(Rate): adjust less variables name

* fix(Rate): adjust less variables name

* docs(Rate): adjust doc

- 示例与文档对应
- 对照vant文档做了一些调整
- 增加 `监听 change 事件`
- 删除 `props` 中的版本列

* fix(Rate): adjust demo
2021-06-27 16:37:04 +08:00

19 lines
284 B
JavaScript

import Page from '../../common/page';
import Toast from '../../dist/toast/toast';
Page({
data: {
value1: 3,
value2: 3,
value3: 3,
value4: 2.5,
value5: 4,
value6: 3,
value8: 2,
},
onChange(event) {
Toast('当前值:' + event.detail);
},
});