修复 isHalf 模式下, 数值为整数时仍展示半选 Star
This commit is contained in:
parent
dbe701079c
commit
cd7a6616c9
@ -2,7 +2,7 @@
|
||||
:::
|
||||
|
||||
<lay-timeline style="padding-left:30px;padding-top:30px;">
|
||||
<lay-timeline-item title="尾版本号:日常 bugfix 更新" simple></lay-timeline-item>
|
||||
<lay-timeline-item title="尾版本号:日常问题更新。" simple></lay-timeline-item>
|
||||
<lay-timeline-item title="次版本号:带有新特性的向下兼容的版本。" simple></lay-timeline-item>
|
||||
<lay-timeline-item title="主版本号:含有破坏性更新和新特性,不在发布周期内。" simple></lay-timeline-item>
|
||||
</lay-timeline>
|
||||
@ -11,8 +11,8 @@
|
||||
<template>
|
||||
<lay-timeline>
|
||||
<lay-timeline-item title="0.2.7">
|
||||
[新增] useState 状态管理 hooks。<br>
|
||||
[新增] useBoolean (特殊的 useState) 布尔状态管理 hooks。<br>
|
||||
[新增] useState 变量状态管理。<br>
|
||||
[新增] useBoolean 布尔变量状态管理。<br>
|
||||
[新增] layer 对象 load 方法, 通过 type 配置调用不同类型加载层。<br>
|
||||
[文档] icons-vue 组件化使用方式。<br>
|
||||
[文档] hooks-vue 安装文档。<br>
|
||||
|
@ -103,13 +103,7 @@ export default {
|
||||
title: '赞助',
|
||||
subTitle: 'sponsor',
|
||||
path: '/zh-CN/guide/sponsor',
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: '贡献',
|
||||
subTitle: 'contribution',
|
||||
path: '/zh-CN/guide/contribution',
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
]
|
||||
|
@ -30,14 +30,14 @@
|
||||
"peerDependencies": {
|
||||
"vue": "^3.2.24",
|
||||
"vue-router": "^4.0.12",
|
||||
"@layui/layer-vue": "^1.0.7",
|
||||
"@layui/layer-vue": "^1.0.8",
|
||||
"@layui/icons-vue": "^1.0.0",
|
||||
"@layui/hooks-vue": "^0.1.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.2.24",
|
||||
"vue-router": "^4.0.12",
|
||||
"@layui/layer-vue": "^1.0.7",
|
||||
"@layui/layer-vue": "^1.0.8",
|
||||
"@layui/icons-vue": "^1.0.0",
|
||||
"@layui/hooks-vue": "^0.1.6"
|
||||
},
|
||||
|
@ -91,7 +91,7 @@ const action = function (index: number, event: any) {
|
||||
:class="[
|
||||
'layui-icon',
|
||||
`${
|
||||
half && isHalf && index === Math.ceil(currentValue)
|
||||
half && isHalf && currentValue%1 != 0 && index === Math.ceil(currentValue)
|
||||
? 'layui-icon-rate-half'
|
||||
: 'layui-icon-rate-solid'
|
||||
}`,
|
||||
|
Loading…
Reference in New Issue
Block a user