feat(Form): support using rate

This commit is contained in:
陈嘉涵
2020-02-10 17:01:56 +08:00
parent 1db9536182
commit 1cde0b4d52
2 changed files with 14 additions and 1 deletions
+7 -1
View File
@@ -1,6 +1,12 @@
// Utils
import { createNamespace, addUnit } from '../utils';
import { preventDefault } from '../utils/dom/event';
// Mixins
import { TouchMixin } from '../mixins/touch';
import { FieldMixin } from '../mixins/field';
// Components
import Icon from '../icon';
const [createComponent, bem] = createNamespace('rate');
@@ -18,7 +24,7 @@ function getRateStatus(value, index, allowHalf) {
}
export default createComponent({
mixins: [TouchMixin],
mixins: [TouchMixin, FieldMixin],
props: {
size: [Number, String],