Skip to content

Commit 043e6b7

Browse files
authored
fix(modal): [modal] modify the messageClosable in Vue2 version to not display the close button (#3600)
1 parent 14ebc47 commit 043e6b7

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

examples/sites/demos/apis/modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export default {
241241
'en-US': "Whether the 'message' type pop-up window displays a close button"
242242
},
243243
mode: ['pc'],
244-
pcDemo: 'message-closable'
244+
pcDemo: 'message-close'
245245
},
246246
{
247247
name: 'min-height',

packages/vue/src/modal/src/pc.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,14 @@ export default defineComponent({
267267
{
268268
class: 'tiny-modal__close-wrapper'
269269
},
270-
h(iconClose(), {
271-
class: ['tiny-modal__close-btn'],
272-
on: {
273-
click: this.closeEvent
274-
}
275-
})
270+
[
271+
h(iconClose(), {
272+
class: ['tiny-modal__close-btn'],
273+
on: {
274+
click: this.closeEvent
275+
}
276+
})
277+
]
276278
)
277279
: null
278280
]

0 commit comments

Comments
 (0)