📝(component): 补充 confirm 对话框案例说明

This commit is contained in:
就眠儀式 2022-10-10 09:51:23 +08:00
parent bd310d005f
commit 4e45b05a55
3 changed files with 6 additions and 7 deletions

View File

@ -124,7 +124,7 @@ const footOnClear = () => {
Day.value = -1;
};
const ChildUpdateModelValue=()=>{
const ChildUpdateModelValue = () => {
emits("update:modelValue", Day.value);
}
};
</script>

View File

@ -4,13 +4,13 @@
::: title 基本介绍
:::
::: describe 需要一个简洁的确认框询问用户时。
::: describe 需要一个简洁的对话框询问用户时。
:::
::: title 基础使用
:::
::: demo
::: demo 通过 `layer.confirm` 方法, 创建一个对话框。
<template>
<lay-button type="primary" @click="openConfirm1">信息框</lay-button>
@ -38,7 +38,7 @@ export default {
::: title 指定操作
:::
::: demo
::: demo 使用 `btn` 属性, 自定义对话框操作列表。
<template>
<lay-button type="primary" @click="openConfirm2">询问框</lay-button>
@ -63,7 +63,6 @@ export default {
:::
::: title 组件方法
:::

View File

@ -415,7 +415,7 @@ const menus = [
},
{
id: 92,
title: "询问",
title: "对话框",
subTitle: "confirm",
path: "/zh-CN/components/confirm",
},