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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| <template>
| <el-dialog
| :show-close="false"
| :destroy-on-close="true"
| :width="width"
| :draggable="draggable"
| :modal="modal"
| :close-on-click-modal="modal"
| :modal-class="modal ? 'p-events-auto' : ''"
| >
| <template #header="{ close, titleId, titleClass }">
| <BaseCard direction="top-left" borderless="t">
| <template #content>
| <el-row justify="space-between" align="middle">
| <el-row align="middle">
| <font-awesome-icon icon="fa fa-list" class="m-r-4" />
| <span :id="titleId" :class="titleClass">{{ title }}</span>
| </el-row>
| <font-awesome-icon
| icon="fa fa-times"
| class="cursor-p m-r-4"
| @click="close"
| />
| </el-row>
| </template>
| </BaseCard>
| </template>
| <BaseCard v-bind="$attrs">
| <template #content>
| <slot></slot>
| </template>
| <template #footer>
| <slot name="footer"></slot>
| </template>
| </BaseCard>
| </el-dialog>
| </template>
| <script>
| export default {
| props: {
| // 显隐控制
| // modelValue: Boolean,
| // 标题
| title: String,
| // 宽度
| width: {
| type: [String, Number],
| default: '50%'
| },
| // 可拖拽
| draggable: Boolean,
| // 遮罩层
| modal: {
| type: Boolean,
| default: true
| },
| },
| // emits: ['update:modelValue', 'changed'],
| methods: {
| // handleChange(value) {
| // this.$emit('update:modelValue', value);
| // this.$emit('changed', value);
| // }
| }
| };
| </script>
| <style></style>
|
|