✨(all): 更新日志
更新文档
This commit is contained in:
parent
f66cfd993a
commit
19df4a32fb
@ -11,6 +11,17 @@
|
||||
<template>
|
||||
<lay-timeline>
|
||||
<lay-timeline-item title="1.1.x">
|
||||
<ul>
|
||||
<a name="1-1-9"></a>
|
||||
<li>
|
||||
<h3>1.1.9 <span class="layui-badge-rim">2022-06-20</span></h3>
|
||||
<ul>
|
||||
<li>[新增] page-header 组件,页面的路径比较简单,则使用页头组件要,比面包屑更直观一点</li>
|
||||
<li>[修复] layer 组件 btn 属性 callback 回调参数 id 为空的问题</li>
|
||||
<li>[优化] layer 组件 callback 回调 id 参数, 配合 layer.close() 关闭当前弹层</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<a name="1-1-8"></a>
|
||||
<li>
|
||||
|
@ -587,11 +587,9 @@ defineExpose({ reset, open, close });
|
||||
>
|
||||
<template v-if="btn && btn.length > 0">
|
||||
<template v-for="(b, index) in btn" :key="index">
|
||||
<a
|
||||
:class="[`layui-layer-btn${index}`]"
|
||||
@click="b.callback(id)"
|
||||
>{{ b.text }}</a
|
||||
>
|
||||
<a :class="[`layui-layer-btn${index}`]" @click="b.callback(id)">{{
|
||||
b.text
|
||||
}}</a>
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
@ -184,7 +184,8 @@ const layer = {
|
||||
instance.modalInstance.component?.exposed?.close();
|
||||
setTimeout(() => {
|
||||
render(null, instance.modalContainer);
|
||||
if (document.body.contains(instance.modalContainer)) document.body.removeChild(instance.modalContainer);
|
||||
if (document.body.contains(instance.modalContainer))
|
||||
document.body.removeChild(instance.modalContainer);
|
||||
}, 2000);
|
||||
}
|
||||
// 销毁实例
|
||||
|
Loading…
Reference in New Issue
Block a user