File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
pages/docs/components/message Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ import { useDialog } from ' shuimo-ui' ;
3+
4+ const { visible, closeDialog } = useDialog ();
5+ </script >
6+
7+ <template >
8+
9+ <m-dialog v-model:visible =" visible" :close-btn =" false" >
10+ <template #active >
11+ <m-button >点击显示弹窗</m-button >
12+ </template >
13+ <div ><m-button @click =" closeDialog" >关闭</m-button ></div >
14+ </m-dialog >
15+
16+ </template >
17+
18+ <style scoped>
19+
20+ </style >
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export const message = {
2020 '点击控制' : 'Click Control' ,
2121 '普通悬浮提示' : 'Basic Tooltip' ,
2222 '普通确认框' : 'Basic Confirm' ,
23+ '控制关闭' : 'Closing Control' ,
2324 } ,
2425 zh : {
2526 '普通弹窗' : '普通弹窗' ,
@@ -33,6 +34,6 @@ export const message = {
3334 '点击控制' : '点击控制' ,
3435 '普通悬浮提示' : '普通悬浮提示' ,
3536 '普通确认框' : '普通确认框' ,
36-
37+ '控制关闭' : '控制关闭' ,
3738 } ,
3839} ;
Original file line number Diff line number Diff line change 1212
1313::: demo message/dialog/height
1414
15+ ### {{$t(\' 控制关闭\' )}}
16+
17+ ::: demo message/dialog/closingControl
18+
1519## API
1620
1721::: api message/dialog
You can’t perform that action at this time.
0 commit comments