kui-vue 3.3.11 → 3.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/components/_tool/clone.js +1 -2
  2. package/components/_tool/utils.js +3 -3
  3. package/components/alert/styles/index.less +2 -2
  4. package/components/avatar/AvatarGroup.jsx +2 -2
  5. package/components/backtop/styles/index.less +44 -47
  6. package/components/base/drop.jsx +3 -2
  7. package/components/base/pop.jsx +34 -20
  8. package/components/button/button.jsx +5 -11
  9. package/components/button/index.js +1 -8
  10. package/components/collapse/styles/index.less +3 -16
  11. package/components/colorPicker/colorpicker.jsx +1 -1
  12. package/components/colorPicker/styles/index.less +6 -18
  13. package/components/datePicker/datecalendar.jsx +1 -1
  14. package/components/datePicker/styles/datepicker.less +4 -14
  15. package/components/drawer/drawer.jsx +1 -1
  16. package/components/dropdown/demo/base.md +1 -1
  17. package/components/dropdown/demo/rightmenu.md +5 -5
  18. package/components/dropdown/dropdown.jsx +11 -3
  19. package/components/dropdown/styles/index.less +31 -13
  20. package/components/form/form.jsx +1 -1
  21. package/components/form/styles/index.less +3 -14
  22. package/components/fragment/component.js +98 -0
  23. package/components/fragment/frag.js +362 -0
  24. package/components/fragment/fragment.js +19 -0
  25. package/components/fragment/index.js +104 -0
  26. package/components/fragment/ssr.js +4 -0
  27. package/components/icon/demo/search.vue +1 -1
  28. package/components/image/styles/index.less +41 -17
  29. package/components/index.js +2 -2
  30. package/components/menu/menuitem.jsx +12 -7
  31. package/components/menu/styles/index.less +189 -202
  32. package/components/menu/submenu.jsx +106 -37
  33. package/components/message/styles/index.less +11 -14
  34. package/components/modal/index.js +1 -1
  35. package/components/modal/modal.jsx +2 -2
  36. package/components/modal/styles/index.less +227 -221
  37. package/components/notice/styles/index.less +19 -5
  38. package/components/popconfirm/styles/index.less +33 -14
  39. package/components/poptip/styles/index.less +3 -14
  40. package/components/radio/button.jsx +1 -1
  41. package/components/select/styles/index.less +8 -31
  42. package/components/table/table.jsx +1 -1
  43. package/components/tabs/styles/index.less +3 -2
  44. package/components/tag/styles/index.less +3 -15
  45. package/components/tooltip/styles/index.less +45 -16
  46. package/components/tooltip/tooltip.jsx +3 -3
  47. package/components/tree/node.jsx +1 -1
  48. package/dist/k-ui.css +2 -2
  49. package/dist/k-ui.js +2 -2
  50. package/package.json +3 -3
  51. package/components/menu/styles/dropmenu.less +0 -119
@@ -1,4 +1,5 @@
1
1
  @import '../../styles/var.less';
2
+
2
3
  .k-popconfirm {
3
4
  display: inline-block;
4
5
  // position: relative;
@@ -9,56 +10,67 @@
9
10
  position: absolute;
10
11
  z-index: 1001;
11
12
  color: var(--kui-color-font);
13
+
12
14
  &[k-placement^=top] {
13
15
  .k-popconfirm-arrow {
14
16
  bottom: -7px;
15
17
  height: 9px;
16
18
  }
19
+
17
20
  .k-popconfirm-content {
18
21
  margin-bottom: 12px;
19
22
  }
20
23
  }
24
+
21
25
  &[k-placement=top] {
22
26
  .k-popconfirm-arrow {
23
27
  left: 50%;
24
28
  transform: translateX(-50%);
25
29
  }
26
30
  }
31
+
27
32
  &[k-placement=top-right] {
28
33
  .k-popconfirm-arrow {
29
34
  right: 10px;
30
35
  }
31
36
  }
37
+
32
38
  &[k-placement=top-left] {
33
39
  .k-popconfirm-arrow {
34
40
  left: 10px;
35
41
  }
36
42
  }
43
+
37
44
  &[k-placement^=bottom] {
38
45
  .k-popconfirm-arrow {
39
46
  top: -6px;
40
47
  height: 7px;
41
48
  transform: rotate(180deg);
42
49
  }
50
+
43
51
  .k-popconfirm-content {
44
52
  margin-top: 12px;
45
53
  }
46
54
  }
55
+
47
56
  &[k-placement=bottom] {
48
57
  .k-popconfirm-arrow {
49
58
  left: 50%;
50
59
  }
51
60
  }
61
+
52
62
  &[k-placement=bottom-left] {
53
63
  .k-popconfirm-arrow {
54
64
  left: 10px;
55
65
  }
56
66
  }
67
+
57
68
  &[k-placement=bottom-right] {
58
69
  .k-popconfirm-arrow {
59
70
  right: 10px;
60
71
  }
61
72
  }
73
+
62
74
  &[k-placement^=left] {
63
75
  .k-popconfirm-arrow {
64
76
  right: -14px;
@@ -66,26 +78,31 @@
66
78
  height: 7px;
67
79
  transform: rotate(-90deg);
68
80
  }
81
+
69
82
  .k-popconfirm-content {
70
83
  margin-right: 12px;
71
84
  }
72
85
  }
86
+
73
87
  &[k-placement=left] {
74
88
  .k-popconfirm-arrow {
75
89
  top: 50%;
76
90
  transform: translateY(-50%) rotate(-90deg);
77
91
  }
78
92
  }
93
+
79
94
  &[k-placement=left-bottom] {
80
95
  .k-popconfirm-arrow {
81
96
  bottom: 17px;
82
97
  }
83
98
  }
99
+
84
100
  &[k-placement=left-top] {
85
101
  .k-popconfirm-arrow {
86
102
  top: 17px;
87
103
  }
88
104
  }
105
+
89
106
  &[k-placement^=right] {
90
107
  .k-popconfirm-arrow {
91
108
  left: -14px;
@@ -93,21 +110,25 @@
93
110
  height: 7px;
94
111
  transform: rotate(90deg);
95
112
  }
113
+
96
114
  .k-popconfirm-content {
97
115
  margin-left: 12px;
98
116
  }
99
117
  }
118
+
100
119
  &[k-placement=right] {
101
120
  .k-popconfirm-arrow {
102
121
  top: 50%;
103
122
  transform: translateY(-50%) rotate(90deg);
104
123
  }
105
124
  }
125
+
106
126
  &[k-placement=right-top] {
107
127
  .k-popconfirm-arrow {
108
128
  top: 17px;
109
129
  }
110
130
  }
131
+
111
132
  &[k-placement=right-bottom] {
112
133
  .k-popconfirm-arrow {
113
134
  bottom: 17px;
@@ -119,28 +140,33 @@
119
140
  // .k-popconfirm-inner {
120
141
  background: var(--kui-color-control-10);
121
142
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
122
- border-radius: 12px;//var(--kui-border-radius);
143
+ border-radius: 12px; //var(--kui-border-radius);
123
144
  position: relative;
145
+
124
146
  // }
125
147
  .k-popconfirm-body {
126
148
  padding: 18px 18px 10px 18px;
127
149
  box-sizing: border-box;
128
150
  position: relative;
129
151
  }
152
+
130
153
  .k-icon {
131
154
  position: absolute;
132
155
  font-size: 18px;
133
156
  color: var(--kui-color-warning);
134
157
  top: 19px;
135
158
  }
159
+
136
160
  .k-popconfirm-footer {
137
161
  text-align: right;
138
162
  padding-top: 10px;
139
163
  }
164
+
140
165
  .k-popconfirm-title {
141
166
  padding: 0 0 0 24px;
142
167
  font-size: 14px;
143
168
  }
169
+
144
170
  .k-popconfirm-arrow {
145
171
  position: absolute;
146
172
  box-sizing: border-box;
@@ -149,43 +175,36 @@
149
175
  width: 24px;
150
176
  height: 7px;
151
177
  }
178
+
152
179
  .k-popconfirm-footer {
153
180
  text-align: right;
154
181
  padding: 8px 16px 16px;
182
+
155
183
  .k-btn {
156
184
  margin-left: 10px;
157
185
  }
158
186
  }
159
187
  }
160
188
 
161
- @keyframes pop-zoom-in {
189
+ @keyframes k-pop-zoom {
162
190
  from {
163
191
  opacity: 0;
164
192
  transform: scale(.8, .8);
165
193
  }
194
+
166
195
  to {
167
196
  opacity: 1;
168
197
  transform: scale(1, 1);
169
198
  }
170
199
  }
171
200
 
172
- @keyframes pop-zoom-out {
173
- from {
174
- opacity: 1;
175
- transform: scale(1, 1);
176
- }
177
- to {
178
- opacity: 0;
179
- transform: scale(.8, .8);
180
- }
181
- }
182
201
 
183
202
  .k-popconfirm-enter-active {
184
203
  // transform-origin: center bottom;
185
- animation: pop-zoom-in .3s;
204
+ animation: k-pop-zoom .3s;
186
205
  }
187
206
 
188
207
  .k-popconfirm-leave-active {
189
208
  // transform-origin: center bottom;
190
- animation: pop-zoom-out .3s;
209
+ animation: k-pop-zoom .3s reverse;
191
210
  }
@@ -183,7 +183,7 @@
183
183
  }
184
184
  }
185
185
 
186
- @keyframes pop-zoom-in {
186
+ @keyframes k-pop-zoom {
187
187
  from {
188
188
  opacity: 0;
189
189
  transform: scale(.8, .8);
@@ -195,24 +195,13 @@
195
195
  }
196
196
  }
197
197
 
198
- @keyframes pop-zoom-out {
199
- from {
200
- opacity: 1;
201
- transform: scale(1, 1);
202
- }
203
-
204
- to {
205
- opacity: 0;
206
- transform: scale(.8, .8);
207
- }
208
- }
209
198
 
210
199
  .k-poptip-enter-active {
211
200
  // transform-origin: center bottom;
212
- animation: pop-zoom-in .3s;
201
+ animation: k-pop-zoom .3s;
213
202
  }
214
203
 
215
204
  .k-poptip-leave-active {
216
205
  // transform-origin: center bottom;
217
- animation: pop-zoom-out .3s;
206
+ animation: k-pop-zoom .3s reverse;
218
207
  }
@@ -1,4 +1,4 @@
1
- import Button from '../button';
1
+ import { Button } from '../button';
2
2
  export default {
3
3
  name: "RadioButton",
4
4
  props: {
@@ -333,6 +333,7 @@
333
333
  &:hover {
334
334
  background: var(--kui-color-hover);
335
335
  }
336
+
336
337
  &:active {
337
338
  background: var(--kui-color-actived);
338
339
  }
@@ -534,7 +535,7 @@
534
535
  .k-select-selection {
535
536
  border-color: var(--kui-color-main); // border-color: #3bb4f2;
536
537
  // box-shadow: 0 0 5px rgba(59, 180, 242, 0.55);
537
- box-shadow: 0 0 5px var(--kui-color-main-30);
538
+ box-shadow: 0 0 0 2px var(--kui-color-main-90);
538
539
  }
539
540
 
540
541
  // .k-select-arrow {
@@ -600,7 +601,7 @@
600
601
  }
601
602
  }
602
603
 
603
- @keyframes zoomIn {
604
+ @keyframes k-select-slide {
604
605
  from {
605
606
  opacity: 0;
606
607
  transform: scale(0, 0);
@@ -612,27 +613,15 @@
612
613
  }
613
614
  }
614
615
 
615
- @keyframes zoomOut {
616
- from {
617
- opacity: 1;
618
- transform: scale(1, 1);
619
- }
620
-
621
- to {
622
- opacity: 0;
623
- transform: scale(0, 0);
624
- }
625
- }
626
-
627
616
  .k-select-tag-enter-active {
628
- animation: zoomIn .3s ease-out;
617
+ animation: k-select-slide .3s ease-out;
629
618
  }
630
619
 
631
620
  .k-select-tag-leave-active {
632
- animation: zoomOut .3s ease-out;
621
+ animation: k-select-slide .3s ease-out reverse;
633
622
  }
634
623
 
635
- @keyframes dropDownIn {
624
+ @keyframes drop-down {
636
625
  0% {
637
626
  opacity: 0;
638
627
  transform: scaleY(0)
@@ -644,24 +633,12 @@
644
633
  }
645
634
  }
646
635
 
647
- @keyframes dropDownOut {
648
- 0% {
649
- opacity: 1;
650
- transform: scaleY(1)
651
- }
652
-
653
- to {
654
- opacity: 0;
655
- transform: scaleY(0)
656
- }
657
- }
658
-
659
636
  .k-select-enter-active {
660
637
  transform-origin: 0 0;
661
- animation: dropDownIn .3s;
638
+ animation: drop-down .3s;
662
639
  }
663
640
 
664
641
  .k-select-leave-active {
665
642
  transform-origin: 0 0;
666
- animation: dropDownOut .3s
643
+ animation: drop-down .3s reverse
667
644
  }
@@ -32,7 +32,7 @@ export default {
32
32
  }
33
33
  },
34
34
  render() {
35
- let { $slots, data, $scopedSlots, loading, height, width, sticky } = this
35
+ let { $slots, data, $scopedSlots = {}, loading, height, width, sticky } = this
36
36
  // bordered = true
37
37
  const { header, footer } = $slots
38
38
  let isTableFixed = width || height
@@ -61,8 +61,9 @@
61
61
  }
62
62
  .k-tabs-close {
63
63
  margin: 0 -5px 0 0;
64
- width: 16px;
65
64
  text-align: center;
65
+ font-size: 16px;
66
+ margin-left: 5px;
66
67
  color: var(--kui-color-icon);
67
68
  &:hover {
68
69
  color: var(--kui-color-danger);
@@ -77,7 +78,7 @@
77
78
  }
78
79
  .k-tabs-tab-active {
79
80
  color: var(--kui-color-main);
80
- font-weight: bold;
81
+ text-shadow: 0 0 0.5px currentcolor;
81
82
  }
82
83
  .k-tabs-tab-disabled {
83
84
  color: var(--kui-color-disable-color);
@@ -168,7 +168,7 @@
168
168
  }
169
169
  }
170
170
 
171
- @keyframes zoomIn {
171
+ @keyframes k-tag-zoom {
172
172
  from {
173
173
  opacity: 0;
174
174
  transform: scale(0, 0);
@@ -180,22 +180,10 @@
180
180
  }
181
181
  }
182
182
 
183
- @keyframes zoomOut {
184
- from {
185
- opacity: 1;
186
- transform: scale(1, 1);
187
- }
188
-
189
- to {
190
- opacity: 0;
191
- transform: scale(0, 0);
192
- }
193
- }
194
-
195
183
  .k-tag-enter-active {
196
- animation: zoomIn .2s ease-out;
184
+ animation: k-tag-zoom .2s ease-out;
197
185
  }
198
186
 
199
187
  .k-tag-leave-active {
200
- animation: zoomOut .2s ease-out;
188
+ animation: k-tag-zoom .2s ease-out reverse;
201
189
  }
@@ -1,4 +1,5 @@
1
1
  @import '../../styles/var.less';
2
+
2
3
  .k-tooltip {
3
4
  display: inline-block;
4
5
  position: relative;
@@ -8,20 +9,23 @@
8
9
  line-height: 1.5;
9
10
  position: absolute;
10
11
  z-index: 1001;
12
+
11
13
  .k-tooltip-content {
12
14
  // min-width: 200px;
13
15
  // .k-tooltip-inner {
14
16
  background: @dark-back-color-10; // var(--kui-color-control-10);
15
17
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
16
18
  color: #fff; //var(--kui-color-font);
17
- border-radius:8px;// var(--kui-border-radius);
19
+ border-radius: 8px; // var(--kui-border-radius);
18
20
  position: relative;
19
21
  // }
20
22
  }
23
+
21
24
  .k-tooltip-title {
22
25
  padding: 8px 12px;
23
26
  font-size: 14px;
24
27
  }
28
+
25
29
  .k-tooltip-arrow {
26
30
  position: absolute;
27
31
  box-sizing: border-box;
@@ -30,60 +34,72 @@
30
34
  height: 7px;
31
35
  color: @dark-back-color-10;
32
36
  }
37
+
33
38
  &[k-placement^=top] {
34
39
  .k-tooltip-content {
35
40
  margin-bottom: 6px;
36
41
  }
42
+
37
43
  .k-tooltip-arrow {
38
44
  bottom: -6px;
39
45
  }
40
46
  }
47
+
41
48
  &[k-placement=top] {
42
49
  .k-tooltip-arrow {
43
50
  left: 50%;
44
51
  transform: translateX(-50%);
45
52
  }
46
53
  }
54
+
47
55
  &[k-placement=top-right] {
48
56
  .k-tooltip-arrow {
49
57
  right: 12px;
50
58
  }
51
59
  }
60
+
52
61
  &[k-placement=top-left] {
53
62
  .k-tooltip-arrow {
54
63
  left: 12px;
55
64
  }
56
65
  }
66
+
57
67
  &[k-placement^=bottom] {
58
68
  .k-tooltip-content {
59
69
  margin-top: 6px;
60
70
  }
71
+
61
72
  .k-tooltip-arrow {
62
73
  top: -7px;
63
74
  height: 9px;
64
75
  transform: rotate(180deg);
65
76
  }
66
77
  }
78
+
67
79
  &[k-placement=bottom] {
68
80
  .k-tooltip-arrow {
69
81
  left: 50%;
70
82
  transform: translateX(-50%) rotate(180deg);
71
83
  }
72
84
  }
85
+
73
86
  &[k-placement=bottom-left] {
74
87
  .k-tooltip-arrow {
75
88
  left: 12px;
76
89
  }
77
90
  }
91
+
78
92
  &[k-placement=bottom-right] {
79
93
  .k-tooltip-arrow {
80
94
  right: 12px;
81
95
  }
82
96
  }
97
+
83
98
  &[k-placement^=left] {
84
99
  .k-tooltip-content {
85
100
  margin-right: 6px;
86
101
  }
102
+
87
103
  .k-tooltip-arrow {
88
104
  right: -14px;
89
105
  width: 24px;
@@ -91,26 +107,31 @@
91
107
  transform: rotate(-90deg);
92
108
  }
93
109
  }
110
+
94
111
  &[k-placement=left] {
95
112
  .k-tooltip-arrow {
96
113
  top: 50%;
97
114
  transform: translateY(-50%) rotate(-90deg);
98
115
  }
99
116
  }
117
+
100
118
  &[k-placement=left-bottom] {
101
119
  .k-tooltip-arrow {
102
120
  bottom: 14px;
103
121
  }
104
122
  }
123
+
105
124
  &[k-placement=left-top] {
106
125
  .k-tooltip-arrow {
107
126
  top: 14px;
108
127
  }
109
128
  }
129
+
110
130
  &[k-placement^=right] {
111
131
  .k-tooltip-content {
112
132
  margin-left: 6px;
113
133
  }
134
+
114
135
  .k-tooltip-arrow {
115
136
  left: -14px;
116
137
  width: 24px;
@@ -118,17 +139,20 @@
118
139
  transform: rotate(90deg);
119
140
  }
120
141
  }
142
+
121
143
  &[k-placement=right] {
122
144
  .k-tooltip-arrow {
123
145
  top: 50%;
124
146
  transform: translateY(-50%) rotate(90deg);
125
147
  }
126
148
  }
149
+
127
150
  &[k-placement=right-top] {
128
151
  .k-tooltip-arrow {
129
152
  top: 14px;
130
153
  }
131
154
  }
155
+
132
156
  &[k-placement=right-bottom] {
133
157
  .k-tooltip-arrow {
134
158
  bottom: 14px;
@@ -147,6 +171,7 @@
147
171
  color: #fff;
148
172
  background-color: var(--kui-color-pink);
149
173
  }
174
+
150
175
  .k-tooltip-arrow {
151
176
  color: var(--kui-color-pink);
152
177
  }
@@ -157,6 +182,7 @@
157
182
  color: #fff;
158
183
  background-color: var(--kui-color-red);
159
184
  }
185
+
160
186
  .k-tooltip-arrow {
161
187
  color: var(--kui-color-red);
162
188
  }
@@ -167,6 +193,7 @@
167
193
  color: #fff;
168
194
  background-color: var(--kui-color-yellow);
169
195
  }
196
+
170
197
  .k-tooltip-arrow {
171
198
  color: var(--kui-color-yellow);
172
199
  }
@@ -177,6 +204,7 @@
177
204
  color: #fff;
178
205
  background-color: var(--kui-color-orange);
179
206
  }
207
+
180
208
  .k-tooltip-arrow {
181
209
  color: var(--kui-color-orange);
182
210
  }
@@ -187,6 +215,7 @@
187
215
  color: #fff;
188
216
  background-color: var(--kui-color-cyan);
189
217
  }
218
+
190
219
  .k-tooltip-arrow {
191
220
  color: var(--kui-color-cyan);
192
221
  }
@@ -197,6 +226,7 @@
197
226
  color: #fff;
198
227
  background-color: var(--kui-color-green);
199
228
  }
229
+
200
230
  .k-tooltip-arrow {
201
231
  color: var(--kui-color-green);
202
232
  }
@@ -207,6 +237,7 @@
207
237
  color: #fff;
208
238
  background-color: var(--kui-color-blue);
209
239
  }
240
+
210
241
  .k-tooltip-arrow {
211
242
  color: var(--kui-color-blue);
212
243
  }
@@ -217,6 +248,7 @@
217
248
  color: #fff;
218
249
  background-color: var(--kui-color-purple);
219
250
  }
251
+
220
252
  .k-tooltip-arrow {
221
253
  color: var(--kui-color-purple);
222
254
  }
@@ -227,6 +259,7 @@
227
259
  color: #fff;
228
260
  background-color: var(--kui-color-geekblue);
229
261
  }
262
+
230
263
  .k-tooltip-arrow {
231
264
  color: var(--kui-color-geekblue);
232
265
  }
@@ -237,6 +270,7 @@
237
270
  color: #fff;
238
271
  background-color: var(--kui-color-magenta);
239
272
  }
273
+
240
274
  .k-tooltip-arrow {
241
275
  color: var(--kui-color-magenta);
242
276
  }
@@ -247,6 +281,7 @@
247
281
  color: #fff;
248
282
  background-color: var(--kui-color-volcano);
249
283
  }
284
+
250
285
  .k-tooltip-arrow {
251
286
  color: var(--kui-color-volcano);
252
287
  }
@@ -257,6 +292,7 @@
257
292
  color: #fff;
258
293
  background-color: var(--kui-color-gold);
259
294
  }
295
+
260
296
  .k-tooltip-arrow {
261
297
  color: var(--kui-color-gold);
262
298
  }
@@ -267,43 +303,36 @@
267
303
  color: #fff;
268
304
  background-color: var(--kui-color-lime);
269
305
  }
306
+
270
307
  .k-tooltip-arrow {
271
308
  color: var(--kui-color-lime);
272
309
  }
273
310
  }
274
311
 
275
- @keyframes pop-zoom-in {
312
+ @keyframes k-pop-zoom {
276
313
  from {
277
314
  opacity: 0;
278
315
  transform: scale(.8, .8);
279
316
  }
280
- to {
281
- opacity: 1;
282
- transform: scale(1, 1);
283
- }
284
- }
285
317
 
286
- @keyframes pop-zoom-out {
287
- from {
318
+ to {
288
319
  opacity: 1;
289
320
  transform: scale(1, 1);
290
321
  }
291
- to {
292
- opacity: 0;
293
- transform: scale(.8, .8);
294
- }
295
322
  }
296
323
 
297
324
  .k-tooltip-enter-active {
298
325
  // transform-origin: center bottom;
299
- animation: pop-zoom-in .3s;
326
+ animation: k-pop-zoom .3s;
300
327
  }
301
328
 
302
329
  .k-tooltip-leave-active {
303
330
  // transform-origin: center bottom;
304
- animation: pop-zoom-out .3s;
331
+ animation: k-pop-zoom .3s reverse;
305
332
  }
306
- body[theme-mode=dark], *[theme-mode=dark] {
333
+
334
+ body[theme-mode=dark],
335
+ *[theme-mode=dark] {
307
336
  .k-tooltip .k-tooltip-content {
308
337
  // background-color: #999;
309
338
  }
@@ -24,11 +24,11 @@ export default {
24
24
  let props = {
25
25
  props: { preCls: 'tooltip', ...this.$props, updateKey: title },
26
26
  }
27
- return (title ?
27
+ return (
28
28
  <BasePop {...props}>
29
29
  {this.$slots.default}
30
- <template slot="title">{title}</template>
31
- </BasePop> : this.$slots.default
30
+ {title ? <template slot="title">{title}</template> : null}
31
+ </BasePop>
32
32
  )
33
33
  }
34
34
  };