1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| /** props */
| export const propsType = {
| flag: {
| type: Boolean,
| default: false
| },
| width: {
| type: String,
| default: "30%"
| },
| title: {
| type: String,
| default: "消息"
| }
| }
| /** 自定义hook */
| export function dialogHook(emit){
| /** dialog关闭 */
| const close = (form) => {
| emit("update:flag", false)
| // 重置表单
| form && form.value.handlerFormReset();
| };
| return {
| close
| };
| }
|
|