11<script setup lang="ts">
2- import { styled , ThemeProvider , keyframes , withAttrs , css , cssClass } from ' @vvide /vue-styled-components'
2+ import { styled , ThemeProvider , keyframes , withAttrs , css , cssClass } from ' @vvibe /vue-styled-components'
33import Component from ' ./Component.vue'
44import { ref } from ' vue'
5+ import { IconInner } from ' ./Test'
56
67const theme = ref ({ primary: ' green' , error: ' red' })
78
@@ -25,6 +26,7 @@ const update = () => {
2526}
2627
2728const StyledComp3 = styled (Component )`
29+ position: sticky;
2830 background: ${(props ) => props .theme .primary };
2931`
3032const StyledComp4 = styled .div `
@@ -118,10 +120,12 @@ const TestEmbedComponent = styled('div', { show: Boolean })`
118120`
119121
120122// console.log(testEmbedCss1, testEmbedCss2)
123+ const visible = ref (true )
121124 </script >
122125
123126<template >
124127 <ThemeProvider :theme =" theme" >
128+ <div @click =" visible = !visible" >Test Remove</div >
125129 <StyledComp3 @click =" update" >12345</StyledComp3 >
126130 <StyledComp4 >12345</StyledComp4 >
127131 <StyledComp5 >12345</StyledComp5 >
@@ -133,6 +137,10 @@ const TestEmbedComponent = styled('div', { show: Boolean })`
133137
134138 <TestEmbedComponent :show =" show" > White </TestEmbedComponent >
135139 <TestEmbedComponent :show =" !show" @click =" show = !show" > Blue </TestEmbedComponent >
140+
141+ <IconInner color =" red" size =" 55" > 666 </IconInner >
142+
143+ <BlueButton v-if =" visible" />
136144 </ThemeProvider >
137145</template >
138146
0 commit comments