Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit afcbf82

Browse files
committed
fixed: unexpected escaping label and caption header
1 parent 7deccbb commit afcbf82

File tree

5 files changed

+48
-22
lines changed

5 files changed

+48
-22
lines changed

resources/js/coreui/views/sample/Dashboard.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,10 @@
961961
hover
962962
head-variant="light"
963963
>
964+
<div slot="HEAD_avatar">
965+
<i class="icon-people"></i>
966+
</div>
967+
964968
<div
965969
slot="avatar"
966970
slot-scope="item"

resources/js/coreui/views/sample/base/Cards.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
sm="6"
2525
md="4"
2626
>
27-
<b-card header="<i class='fa fa-check'></i> Card with icon">
27+
<b-card>
28+
<template slot="header">
29+
<i class='fa fa-check'></i> Card with icon
30+
</template>
2831
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
2932
</b-card>
3033
</b-col>

resources/js/coreui/views/sample/base/Table.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<template>
2-
<b-card :header="caption">
2+
<b-card>
3+
<template slot="header">
4+
<slot name="caption">
5+
Table
6+
</slot>
7+
</template>
38
<b-table
49
:hover="hover"
510
:striped="striped"
@@ -52,10 +57,6 @@ const shuffleArray = (array) => {
5257
export default {
5358
name : 'CTable',
5459
props: {
55-
caption: {
56-
type : String,
57-
default: 'Table',
58-
},
5960
hover: {
6061
type : Boolean,
6162
default: false,

resources/js/coreui/views/sample/base/Tables.vue

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,40 @@
22
<div class="animated fadeIn">
33
<b-row>
44
<b-col lg="6">
5-
<c-table caption="<i class='fa fa-align-justify'></i> Simple Table" />
5+
<c-table>
6+
<template slot="caption">
7+
<i class="fa fa-align-justify"></i> Simple Table
8+
</template>
9+
</c-table>
610
</b-col><!--/.col-->
711

812
<b-col lg="6">
9-
<c-table
10-
striped
11-
caption="<i class='fa fa-align-justify'></i> Striped Table"
12-
/>
13+
<c-table striped>
14+
<template slot="caption">
15+
<i class='fa fa-align-justify'></i> Striped Table
16+
</template>
17+
</c-table>
1318
</b-col><!--/.col-->
1419
</b-row><!--/.row-->
1520

1621
<b-row>
1722
<b-col lg="6">
18-
<c-table
19-
small
20-
caption="<i class='fa fa-align-justify'></i> Condensed Table"
21-
/>
23+
<c-table small >
24+
<template slot="caption">
25+
<i class='fa fa-align-justify'></i> Condensed Table
26+
</template>
27+
</c-table>
2228
</b-col><!--/.col-->
2329

2430
<b-col lg="6">
2531
<c-table
2632
fixed
2733
bordered
28-
caption="<i class='fa fa-align-justify'></i> Bordered Table"
29-
/>
34+
>
35+
<template slot="caption">
36+
<i class='fa fa-align-justify'></i> Bordered Table
37+
</template>
38+
</c-table>
3039
</b-col><!--/.col-->
3140
</b-row><!--/.row-->
3241

@@ -38,8 +47,11 @@
3847
bordered
3948
small
4049
fixed
41-
caption="<i class='fa fa-align-justify'></i> Combined All Table"
42-
/>
50+
>
51+
<template slot="caption">
52+
<i class='fa fa-align-justify'></i> Combined All Table
53+
</template>
54+
</c-table>
4355
</b-col>
4456
</b-row>
4557
</div>

resources/js/coreui/views/sample/notifications/Badges.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@
4747
md="6"
4848
>
4949
<b-card
50-
header="Badge <small>contextual variations</small>"
5150
header-tag="header"
5251
footer-tag="footer"
5352
>
53+
<template slot="header">
54+
Badge <small>contextual variations</small>
55+
</template>
5456
<div>
5557
<b-badge variant="primary">
5658
Primary
@@ -79,10 +81,12 @@
7981
</div>
8082
</b-card>
8183
<b-card
82-
header="Badge <small>pills</small>"
8384
header-tag="header"
8485
footer-tag="footer"
8586
>
87+
<template slot="header">
88+
Badge <small>pills</small>
89+
</template>
8690
<div>
8791
<b-badge
8892
pill
@@ -135,10 +139,12 @@
135139
</div>
136140
</b-card>
137141
<b-card
138-
header="Badge <small>actionable</small>"
139142
header-tag="header"
140143
footer-tag="footer"
141144
>
145+
<template slot="header">
146+
Badge <small>actionable</small>
147+
</template>
142148
<div>
143149
<b-badge
144150
href="#"

0 commit comments

Comments
 (0)