(release): 1.3.0

This commit is contained in:
就眠儀式
2022-07-20 13:26:50 +08:00
parent f9bb4edcac
commit e8fb49cd38
12 changed files with 124 additions and 92 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "1.3.0-alpha.3",
"version": "1.3.0",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

View File

@@ -37,6 +37,7 @@ const matchModule: string[] = [
"tooltip",
"page",
"scroll",
"radio"
];
export default (): UserConfigExport => {

View File

@@ -17,7 +17,7 @@ export interface LayCheckboxProps {
isIndeterminate?: boolean;
modelValue?: boolean | Array<string | object>;
disabled?: boolean;
size?: 'lg' | 'md' | 'sm' | 'xs';
size?: "lg" | "md" | "sm" | "xs";
}
const props = withDefaults(defineProps<LayCheckboxProps>(), {
@@ -25,7 +25,7 @@ const props = withDefaults(defineProps<LayCheckboxProps>(), {
modelValue: false,
disabled: false,
label: "",
size: "md"
size: "md",
});
const checkboxGroup: any = inject("checkboxGroup", {});
@@ -124,7 +124,8 @@ const isDisabled = computed(() => {
:lay-skin="skin"
>
<span class="layui-checkbox-label"
><slot>{{ label }}</slot></span>
><slot>{{ label }}</slot></span
>
<lay-icon
:type="
props.isIndeterminate && isChecked