(checkbox): 新增 isIndeterminate 半选状态

更新文档
This commit is contained in:
就眠儀式
2022-06-18 14:31:29 +08:00
parent 244757ff68
commit a694119cd1
8 changed files with 50 additions and 340 deletions

View File

@@ -182,6 +182,32 @@ export default {
:::
::: title 半选状态
:::
::: demo
<template>
<lay-checkbox name="like" skin="primary" label="1" isIndeterminate="true" v-model="checked8">半选</lay-checkbox>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const checked8 = ref(true);
return {
checked8
}
}
}
</script>
:::
::: title Checkbox 属性
:::
@@ -192,8 +218,8 @@ export default {
| name | 原始属性 name | -- |
| skin | 主题 | -- |
| label | 选中值 | -- |
| v-model | 是否选中 | `true` `false` |
| change | 切换事件 | isChecked : 当前状态 |
| v-model | 是否选中 | `true` `false` |
| isIndeterminate | 半选状态 | `true` `false` |
:::

View File

@@ -68,6 +68,11 @@ const zhCN = [
component: () => import("../document/zh-CN/guide/dark.md"),
meta: { title: "夜间" },
},
{
path: "/zh-CN/guide/plugin",
component: () => import("../document/zh-CN/guide/plugin.md"),
meta: { title: "插件" },
},
],
},
{

View File

@@ -87,31 +87,37 @@ export default {
path: "/zh-CN/guide/changelog",
},
{
id: 3,
id: 4,
title: "主题",
subTitle: "theme",
path: "/zh-CN/guide/theme",
},
{
id: 3,
id: 5,
title: "夜间",
subTitle: "dark",
path: "/zh-CN/guide/dark",
},
{
id: 3,
id: 6,
title: "语言",
subTitle: "locale",
path: "/zh-CN/guide/locale",
},
{
id: 4,
id: 7,
title: "问题",
subTitle: "problem",
path: "/zh-CN/guide/problem",
},
{
id: 6,
id: 8,
title: "插件",
subTitle: "member",
path: "/zh-CN/guide/plugin",
},
{
id: 9,
title: "团队",
subTitle: "member",
path: "/zh-CN/guide/member",