From 885a1aa0cf0fbbbbb5d52af49e4346d9b92728ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 14 Apr 2025 00:21:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=20rate=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=94=B1=20component=20=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=9E=84=E5=BB=BA=20(#2626)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/rate/index.md | 5 +- examples/rate.html | 192 +++++++++++--------------- src/modules/rate.js | 323 +++++++++++++++++++------------------------- 3 files changed, 224 insertions(+), 296 deletions(-) diff --git a/docs/rate/index.md b/docs/rate/index.md index 8cd17baf..81cf7e1d 100644 --- a/docs/rate/index.md +++ b/docs/rate/index.md @@ -2,7 +2,7 @@ title: 评分组件 rate toc: true --- - + # 评分组件 > 评分组件 `rate` 一般用于等级展示或评价类操作。 @@ -20,6 +20,7 @@ toc: true | API | 描述 | | --- | --- | | var rate = layui.rate | 获得 `rate` 模块。 | +| [基础接口](../component/#export) 2.11+ | 该组件由 `component` 构建,因此继承其提供的基础接口。| | [rate.render(options)](#render) | rate 组件渲染,核心方法。 |