Skip to content

Commit d62ee9a

Browse files
committed
Merge branch 'master' of github.com:styled-components/vue-styled-components
2 parents 2ef0df4 + 32b8b88 commit d62ee9a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-styled-components",
3-
"version": "1.4.13",
3+
"version": "1.4.14",
44
"description": "Visual primitives for the component age. A simple port of styled-components 💅 for Vue",
55
"main": "lib/index.js",
66
"module": "dist/vue-styled-components.es.js",

src/test/basic.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ describe('basic', () => {
3434
expect(() => styled.notExistTag``).toThrow()
3535
})
3636

37+
it('should allow for inheriting components that are not styled', () => {
38+
const componentConfig = { name: 'Parent', template: '<div><slot/></div>', methods: {} }
39+
expect(() => styled(componentConfig, {})``).toNotThrow()
40+
})
41+
3742
// it('should generate an empty tag once rendered', () => {
3843
// const Comp = styled.div``
3944
// const vm = new Vue(Comp).$mount()

src/utils/isStyledComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default function isStyledComponent (target) {
22
return target &&
33
target.methods &&
4-
typeof target.methods.generateAndInjectStyles() === 'string'
4+
typeof target.methods.generateAndInjectStyles === 'function'
55
}

0 commit comments

Comments
 (0)