📝(component): 补充 confirm 对话框案例说明
This commit is contained in:
parent
bd310d005f
commit
4e45b05a55
@ -124,7 +124,7 @@ const footOnClear = () => {
|
|||||||
Day.value = -1;
|
Day.value = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
const ChildUpdateModelValue=()=>{
|
const ChildUpdateModelValue = () => {
|
||||||
emits("update:modelValue", Day.value);
|
emits("update:modelValue", Day.value);
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
::: title 基本介绍
|
::: title 基本介绍
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: describe 需要一个简洁的确认框询问用户时。
|
::: describe 需要一个简洁的对话框询问用户时。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: title 基础使用
|
::: title 基础使用
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: demo
|
::: demo 通过 `layer.confirm` 方法, 创建一个对话框。
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lay-button type="primary" @click="openConfirm1">信息框</lay-button>
|
<lay-button type="primary" @click="openConfirm1">信息框</lay-button>
|
||||||
@ -38,7 +38,7 @@ export default {
|
|||||||
::: title 指定操作
|
::: title 指定操作
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: demo
|
::: demo 使用 `btn` 属性, 自定义对话框操作列表。
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lay-button type="primary" @click="openConfirm2">询问框</lay-button>
|
<lay-button type="primary" @click="openConfirm2">询问框</lay-button>
|
||||||
@ -63,7 +63,6 @@ export default {
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
|
||||||
::: title 组件方法
|
::: title 组件方法
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
@ -415,7 +415,7 @@ const menus = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 92,
|
id: 92,
|
||||||
title: "询问",
|
title: "对话框",
|
||||||
subTitle: "confirm",
|
subTitle: "confirm",
|
||||||
path: "/zh-CN/components/confirm",
|
path: "/zh-CN/components/confirm",
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user