[修复] checkbox 和 progress 警告

This commit is contained in:
就眠仪式 2021-10-01 00:48:51 +08:00
parent 4bad992d9b
commit cdd220b7f0
5 changed files with 14 additions and 10 deletions

View File

@ -145,9 +145,9 @@ export default {
<template>
<lay-form>
<lay-checkbox skin="primary" v-model="checked" label="1">写作</lay-checkbox>
<lay-checkbox skin="primary" v-model="checked" label="2">画画</lay-checkbox>
<lay-checkbox skin="primary" v-model="checked" label="3">运动</lay-checkbox>
<lay-checkbox name="like" skin="primary" v-model="checked" label="1">写作</lay-checkbox>
<lay-checkbox name="like" skin="primary" v-model="checked" label="2">画画</lay-checkbox>
<lay-checkbox name="like" skin="primary" v-model="checked" label="3">运动</lay-checkbox>
</lay-form>
{{checked}}
</template>

View File

@ -9,9 +9,9 @@ import { defineProps } from 'vue'
const props =
defineProps<{
type: string
theme: string
color: string
type?: string
theme?: string
color?: string
}>()
const classList = [{

View File

@ -26,9 +26,9 @@ const props =
defineProps<{
modelValue: Array<unknown>
label: string
disabled: boolean
disabled?: boolean
name: string
skin: string
skin?: string
}>()
const hasValue = ref(false)

View File

@ -21,7 +21,7 @@ import { defineProps } from 'vue'
const props =
defineProps<{
percent: number
percent: number | string
theme?: string
color?: string
size?: string

View File

@ -1,5 +1,5 @@
<template>
<div class="layui-side">
<div class="layui-side" :class="black?'layui-bg-black':''">
<div class="layui-side-scroll">
<slot></slot>
</div>
@ -7,4 +7,8 @@
</template>
<script setup name="LaySide" lang="ts">
const props =
defineProps<{
black?: boolean
}>()
</script>