[修复] 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> <template>
<lay-form> <lay-form>
<lay-checkbox skin="primary" v-model="checked" label="1">写作</lay-checkbox> <lay-checkbox name="like" skin="primary" v-model="checked" label="1">写作</lay-checkbox>
<lay-checkbox skin="primary" v-model="checked" label="2">画画</lay-checkbox> <lay-checkbox name="like" 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="3">运动</lay-checkbox>
</lay-form> </lay-form>
{{checked}} {{checked}}
</template> </template>

View File

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

View File

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

View File

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

View File

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