From 4a64a7e93f9ecf58f470c2a1bccb34cec06da189 Mon Sep 17 00:00:00 2001 From: kanghuiyi <1193185379@qq.com> Date: Tue, 6 Apr 2021 17:35:12 +0800 Subject: [PATCH] feat(varlet-ui): write rate to form --- packages/varlet-cli/site/mobile/App.vue | 7 +- packages/varlet-cli/site/pc/App.vue | 42 +++++-- packages/varlet-ui/src/app-bar/AppBar.vue | 22 ++-- .../varlet-ui/src/app-bar/example/index.vue | 7 +- packages/varlet-ui/src/chip/Chip.vue | 32 ++--- packages/varlet-ui/src/chip/props.ts | 37 +++--- packages/varlet-ui/src/form/docs/en-US.md | 2 + packages/varlet-ui/src/form/docs/zh-CN.md | 2 + packages/varlet-ui/src/form/example/index.vue | 6 +- .../src/form/example/locale/en-US.ts | 1 + .../src/form/example/locale/zh-CN.ts | 1 + packages/varlet-ui/src/rate/Rate.vue | 115 ++++++++++++------ packages/varlet-ui/src/rate/docs/en-US.md | 23 ++++ packages/varlet-ui/src/rate/docs/zh-CN.md | 49 +++++--- packages/varlet-ui/src/rate/example/index.vue | 5 + .../src/rate/example/locale/en-US.ts | 2 + .../src/rate/example/locale/zh-CN.ts | 2 + packages/varlet-ui/src/rate/props.ts | 21 +++- packages/varlet-ui/src/rate/provide.ts | 3 + packages/varlet-ui/src/rate/rate.less | 18 ++- 20 files changed, 267 insertions(+), 130 deletions(-) create mode 100644 packages/varlet-ui/src/rate/provide.ts diff --git a/packages/varlet-cli/site/mobile/App.vue b/packages/varlet-cli/site/mobile/App.vue index 29dc19ae2a9..67d8465e7c1 100644 --- a/packages/varlet-cli/site/mobile/App.vue +++ b/packages/varlet-cli/site/mobile/App.vue @@ -67,14 +67,9 @@ export default defineComponent({