Skip to content

Commit

Permalink
Merge pull request #849 from wsd000/feat_icon_optimized
Browse files Browse the repository at this point in the history
feat:车牌组件弹窗样式优化
  • Loading branch information
qifeng0748 authored Jan 8, 2024
2 parents daaec99 + ec691e5 commit 5d5f74f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 3 additions & 5 deletions components/dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const instances = []
const generate = function({
title = '',
icon = '',
iconSvg = false,
iconSvg = true,
content = '',
closable = false,
transition = 'md-bounce',
Expand Down Expand Up @@ -75,7 +75,7 @@ const generate = function({
Dialog.confirm = ({
title = '',
icon = '',
iconSvg = false,
iconSvg = true,
content = '',
cancelText = t('md.dialog.cancel'),
cancelWarning = false,
Expand Down Expand Up @@ -131,7 +131,7 @@ Dialog.confirm = ({
Dialog.alert = ({
title = '',
icon = '',
iconSvg = false,
iconSvg = true,
content = '',
confirmText = t('md.dialog.confirm'),
closable = false,
Expand Down Expand Up @@ -174,7 +174,6 @@ Dialog.alert = ({
*/
Dialog.succeed = props => {
props.icon = 'success-color'
props.iconSvg = true
return Dialog.confirm(props)
}

Expand All @@ -186,7 +185,6 @@ Dialog.succeed = props => {
*/
Dialog.failed = props => {
props.icon = 'warn-color'
props.iconSvg = true
return Dialog.confirm(props)
}

Expand Down
10 changes: 7 additions & 3 deletions components/license-plate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,14 @@ export default {
.md-license-plate-input-container{
&.popUp{
background: #fff;
padding: 20px 40px 0px;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
padding: 20px 40px 40px;
}
}
.md-popup-box.md-slide-up{
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
border-radius: 40px 40px 0 0;
background: #fff;
}
}
</style>
Expand Down

0 comments on commit 5d5f74f

Please sign in to comment.