📝(all): 补充文档

更新文档
This commit is contained in:
就眠儀式 2022-06-19 21:50:08 +08:00
parent 8926bb6022
commit 615cb5ba7c
5 changed files with 8 additions and 7 deletions

View File

@ -112,7 +112,9 @@ const handleClick = function () {
:type=" :type="
props.isIndeterminate && isChecked props.isIndeterminate && isChecked
? 'layui-icon-subtraction' ? 'layui-icon-subtraction'
: isChecked ? 'layui-icon-ok' : '' : isChecked
? 'layui-icon-ok'
: ''
" "
></lay-icon> ></lay-icon>
</div> </div>

View File

@ -54,7 +54,6 @@ const emit = defineEmits([
const slot = useSlots(); const slot = useSlots();
const slots = slot.default && slot.default(); const slots = slot.default && slot.default();
const allChecked = ref(false); const allChecked = ref(false);
const hasChecked = ref(false); const hasChecked = ref(false);
const tableDataSource = ref([...props.dataSource]); const tableDataSource = ref([...props.dataSource]);

View File

@ -62,7 +62,7 @@ export default {
::: title 复选框组 ::: title 复选框组
::: :::
::: demo ::: demo 方便通过数组生成 checkbox 复选框。
<template> <template>
<lay-checkbox-group v-model="checkeds" @change="groupChange"> <lay-checkbox-group v-model="checkeds" @change="groupChange">
@ -185,7 +185,7 @@ export default {
::: title 半选状态 ::: title 半选状态
::: :::
::: demo ::: demo 在实现全选效果时,你可能会用到 indeterminate 属性。
<template> <template>
<lay-checkbox name="like" skin="primary" label="1" isIndeterminate="true" v-model="checked8">半选</lay-checkbox> <lay-checkbox name="like" skin="primary" label="1" isIndeterminate="true" v-model="checked8">半选</lay-checkbox>

View File

@ -22,6 +22,7 @@
<li>[修复] carousel 组件加载时无法获取 carousel-item 轮播项</li> <li>[修复] carousel 组件加载时无法获取 carousel-item 轮播项</li>
<li>[修复] input-number 组件 modelValue 属性类型错误</li> <li>[修复] input-number 组件 modelValue 属性类型错误</li>
<li>[修复] checkbox 组件 夜间模式 选中状态异常</li> <li>[修复] checkbox 组件 夜间模式 选中状态异常</li>
<li>[优化] table 组件 checkedKeys 属性, 加入半选状态</li>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -1,8 +1,7 @@
<template> <template>
<div style="margin-top: 60px; width: 80%" class="layui-container"> <div style="margin-top: 60px; width: 80%" class="layui-container">
<blockquote class="layui-quote layui-text" style="margin: 30px 0"> <blockquote class="layui-quote layui-text" style="margin: 30px 0;letter-spacing: 2.5px;">
尽管 layui-vue 中包含了这些组件但因为它们受众群体广泛或应用广泛特从 以写作为工具为道途先帮助自己一程再以自己的领悟帮助他人一程, 这是一种服务 - 庆山
layui-vue 中抽取出来个副本可独立引用我们也会对它们进行同步维护
</blockquote> </blockquote>
<fieldset class="layui-field layui-field-title"> <fieldset class="layui-field layui-field-title">
<legend style="margin-bottom: 20px; text-align: center">独立组件</legend> <legend style="margin-bottom: 20px; text-align: center">独立组件</legend>