1
1
<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'
3
3
import Component from ' ./Component.vue'
4
4
import { ref } from ' vue'
5
+ import { IconInner } from ' ./Test'
5
6
6
7
const theme = ref ({ primary: ' green' , error: ' red' })
7
8
@@ -25,6 +26,7 @@ const update = () => {
25
26
}
26
27
27
28
const StyledComp3 = styled (Component )`
29
+ position: sticky;
28
30
background: ${(props ) => props .theme .primary };
29
31
`
30
32
const StyledComp4 = styled .div `
@@ -118,10 +120,12 @@ const TestEmbedComponent = styled('div', { show: Boolean })`
118
120
`
119
121
120
122
// console.log(testEmbedCss1, testEmbedCss2)
123
+ const visible = ref (true )
121
124
</script >
122
125
123
126
<template >
124
127
<ThemeProvider :theme =" theme" >
128
+ <div @click =" visible = !visible" >Test Remove</div >
125
129
<StyledComp3 @click =" update" >12345</StyledComp3 >
126
130
<StyledComp4 >12345</StyledComp4 >
127
131
<StyledComp5 >12345</StyledComp5 >
@@ -133,6 +137,10 @@ const TestEmbedComponent = styled('div', { show: Boolean })`
133
137
134
138
<TestEmbedComponent :show =" show" > White </TestEmbedComponent >
135
139
<TestEmbedComponent :show =" !show" @click =" show = !show" > Blue </TestEmbedComponent >
140
+
141
+ <IconInner color =" red" size =" 55" > 666 </IconInner >
142
+
143
+ <BlueButton v-if =" visible" />
136
144
</ThemeProvider >
137
145
</template >
138
146
0 commit comments