Skip to content

Commit

Permalink
feat:车牌组件弹窗样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weishuodan committed Jan 8, 2024
1 parent a2dc1d6 commit ec691e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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
9 changes: 1 addition & 8 deletions components/icon/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<svg
v-if="svg || isSvgIcon"
v-if="svg"
class="md-icon icon-svg"
:class="[`md-icon-${name}`, size]"
:style="{fill: color}"
Expand All @@ -18,7 +18,6 @@
</template>

<script>import loadSprite from './load-spirte'
const svgIcon = ['spinner', 'success-color', 'warn-color']
export default {
name: 'md-icon',
Expand All @@ -42,12 +41,6 @@ export default {
},
},
data() {
return {
isSvgIcon: svgIcon.indexOf(this.name) !== -1,
}
},
mounted() {
loadSprite()
},
Expand Down

0 comments on commit ec691e5

Please sign in to comment.