diff --git a/docs/docs/zh-CN/components/checkbox.md b/docs/docs/zh-CN/components/checkbox.md index 419580fc..11f3f5f9 100644 --- a/docs/docs/zh-CN/components/checkbox.md +++ b/docs/docs/zh-CN/components/checkbox.md @@ -4,7 +4,7 @@ @@ -14,7 +14,10 @@ import { ref } from 'vue' export default { setup() { + const checked1 = ref(false) + return { + checked1 } } } @@ -28,7 +31,7 @@ export default { @@ -38,7 +41,10 @@ import { ref } from 'vue' export default { setup() { + const checked2 = ref(false) + return { + checked2 } } } @@ -50,10 +56,9 @@ export default { @@ -63,12 +68,12 @@ import { ref } from 'vue' export default { setup() { - const checked1 = ref(true); - const checked2 = ref(true); const checked3 = ref(true); - const checked4 = false; + const checked4 = ref(true); + const checked5 = ref(true); + return { - checked1, checked2, checked3 + checked3, checked4, checked5 } } } @@ -80,7 +85,7 @@ export default { @@ -92,8 +97,10 @@ export default { const disabled = ref(true) + const checked6 = ref(true); + return { - disabled + disabled,checked6 } } } @@ -105,7 +112,7 @@ export default { @@ -115,12 +122,15 @@ import { ref } from 'vue' export default { setup() { + const checked7 = ref(true); + const change = function(isChecked) { console.log("是否选中:" + isChecked) } return { - change + change, + checked7 } } } diff --git a/src/css/layui.css b/src/css/layui.css index 6324e3ab..930a5d3e 100644 --- a/src/css/layui.css +++ b/src/css/layui.css @@ -4921,6 +4921,10 @@ body .layui-table-tips .layui-layer-content { font-size: 14px; } +.layui-breadcrumb a { + color: #999; +} + .layui-breadcrumb a:hover { color: #5fb878 !important; } diff --git a/src/module/breadcrumb/index.vue b/src/module/breadcrumb/index.vue index edbb58c0..3c7c2618 100644 --- a/src/module/breadcrumb/index.vue +++ b/src/module/breadcrumb/index.vue @@ -1,14 +1,11 @@ diff --git a/src/module/switch/index.vue b/src/module/switch/index.vue index 0263b1bc..3e34177c 100644 --- a/src/module/switch/index.vue +++ b/src/module/switch/index.vue @@ -20,8 +20,8 @@ const props = withDefaults( defineProps<{ modelValue: boolean disabled?: boolean - activeText: string - inactiveText: string + activeText?: string + inactiveText?: string }>(), { activeText: '启用',