🐛(layer):

更新文档
This commit is contained in:
就眠儀式
2022-06-20 22:41:03 +08:00
parent bbb0ae3394
commit f66cfd993a
6 changed files with 29 additions and 15 deletions

View File

@@ -272,7 +272,11 @@ export default {
setup() {
let id = null;
const open = function() {
id = layer.open({title:"标题",content:"内容", shade: false})
id = layer.open({title:"标题",content:"内容", shade: false, btn: [
{text:"关闭", callback: function(ids) {
layer.close(ids);
}}
]})
}
const close = function() {
layer.close(id)