Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
一臭打代码的 aka 潘先生です
vue-vben-admin
提交
ae7821e2
V
vue-vben-admin
项目概览
一臭打代码的 aka 潘先生です
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ae7821e2
编写于
7月 13, 2021
作者:
V
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(modal): ensure that props are passed correctly,fix #897
上级
a1d956d3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
7 deletion
+7
-7
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
src/components/Modal/src/BasicModal.vue
src/components/Modal/src/BasicModal.vue
+3
-3
src/views/demo/comp/modal/Modal1.vue
src/views/demo/comp/modal/Modal1.vue
+1
-1
src/views/demo/comp/modal/Modal2.vue
src/views/demo/comp/modal/Modal2.vue
+1
-2
src/views/demo/system/account/AccountDetail.vue
src/views/demo/system/account/AccountDetail.vue
+1
-1
未找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
ae7821e2
...
...
@@ -26,6 +26,7 @@
-
修复菜单默认折叠的配置不起作用的问题
-
修复
`safari`
浏览器报错导致网站打不开
-
修复在 window 上,拉取代码后 eslint 因 endOfLine 而保错问题
-
**Modal**
确保 props 正确被传递
### 🎫 Chores
...
...
src/components/Modal/src/BasicModal.vue
浏览文件 @
ae7821e2
...
...
@@ -18,7 +18,7 @@
</
template
>
<
template
#footer
v-if=
"!$slots.footer"
>
<ModalFooter
v-bind=
"get
Props
"
@
ok=
"handleOk"
@
cancel=
"handleCancel"
>
<ModalFooter
v-bind=
"get
BindValue
"
@
ok=
"handleOk"
@
cancel=
"handleCancel"
>
<template
#[item]=
"data"
v-for=
"item in Object.keys($slots)"
>
<slot
:name=
"item"
v-bind=
"data"
></slot>
</
template
>
...
...
@@ -82,7 +82,7 @@
setup
(
props
,
{
emit
,
attrs
})
{
const
visibleRef
=
ref
(
false
);
const
propsRef
=
ref
<
Partial
<
ModalProps
>
|
null
>
(
null
);
const
modalWrapperRef
=
ref
<
ComponentRef
>
(
null
);
const
modalWrapperRef
=
ref
<
any
>
(
null
);
// modal Bottom and top height
const
extHeightRef
=
ref
(
0
);
...
...
@@ -133,7 +133,7 @@
});
const
getBindValue
=
computed
(():
Recordable
=>
{
const
attr
=
{
...
attrs
,
...
unref
(
get
Props
)
};
const
attr
=
{
...
attrs
,
...
unref
(
get
MergeProps
),
visible
:
unref
(
visibleRef
)
};
if
(
unref
(
fullScreenRef
))
{
return
omit
(
attr
,
'
height
'
);
}
...
...
src/views/demo/comp/modal/Modal1.vue
浏览文件 @
ae7821e2
...
...
@@ -8,7 +8,7 @@
@
visible-change=
"handleShow"
>
<template
#insertFooter
>
<a-button
type=
"
danger"
@
click=
"setLines"
:disabled=
"loading"
>
点我更新内容
</a-button>
<a-button
type=
"
primary"
danger
@
click=
"setLines"
:disabled=
"loading"
>
点我更新内容
</a-button>
</
template
>
<
template
v-if=
"loading"
>
<div
class=
"empty-tips"
>
加载中,稍等3秒……
</div>
...
...
src/views/demo/comp/modal/Modal2.vue
浏览文件 @
ae7821e2
<
template
>
<BasicModal
v-bind=
"$attrs"
@
register=
"register"
title=
"Modal Title"
:helpMessage=
"['提示1', '提示2']"
:okButtonProps=
"
{ disabled: true }"
>
<a-button
type=
"primary"
@
click=
"closeModal"
class=
"mr-2"
>
从内部关闭弹窗
</a-button>
<a-button
type=
"primary"
@
click=
"setModalProps"
>
从内部修改title
</a-button>
</BasicModal>
</
template
>
...
...
src/views/demo/system/account/AccountDetail.vue
浏览文件 @
ae7821e2
...
...
@@ -6,7 +6,7 @@
@
back=
"goBack"
>
<template
#extra
>
<a-button
type=
"
danger"
>
禁用账号
</a-button>
<a-button
type=
"
primary"
danger
>
禁用账号
</a-button>
<a-button
type=
"primary"
>
修改密码
</a-button>
</
template
>
<
template
#footer
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录