Skip to content

Commit 542807d

Browse files
committed
refactor: CImg, CMedia: rename blankColor prop to placeholderColor
1 parent f5c62b4 commit 542807d

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

src/components/Image/CImg.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:class="imageClasses"
1313
:width="width"
1414
:height="height"
15-
:style="{'background-color': isActive ? blankColor : 'transparent' }"
15+
:style="{'background-color': isActive ? placeholderColor : 'transparent' }"
1616
/>
1717
</template>
1818

@@ -47,7 +47,7 @@ export default {
4747
type: String,
4848
validator: align => ['', 'left', 'right', 'center'].includes(align)
4949
},
50-
blankColor: {
50+
placeholderColor: {
5151
type: String,
5252
default: 'transparent'
5353
}

src/components/Image/tests/CImg.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ const customWrapper = mount(Component, {
1414
rounded: 'right',
1515
// thumbnail: true,
1616
align: 'right',
17-
blankColor: 'red',
18-
rounded: 'right'
17+
placeholderColor: 'red'
1918
}
2019
})
2120

src/components/Image/tests/CImgLazy.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const customWrapper = mount(Component, {
2424
rounded: 'right',
2525
// thumbnail: true,
2626
align: 'right',
27-
blankColor: 'red'
27+
placeholderColor: 'red'
2828
}
2929
})
3030

src/components/Media/CMedia.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
computedAsideImageProps () {
3838
return Object.assign(
3939
{
40-
blankColor: '#777777',
40+
placeholderColor: '#777777',
4141
width: '64px',
4242
height: this.asideVerticalPosition === 'stretch' ? '100%' : '64px'
4343
},

src/components/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export declare class CImg extends Vue {
315315
rounded: [boolean, string]
316316
thumbnail: boolean
317317
align: string
318-
blankColor: string
318+
placeholderColor: string
319319
}
320320

321321
export declare class CImgLazy extends CImg {

0 commit comments

Comments
 (0)