This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-36
lines changed
c-checkbox/tests/__snapshots__ Expand file tree Collapse file tree 2 files changed +32
-36
lines changed Original file line number Diff line number Diff line change @@ -223,32 +223,29 @@ export const CAvatar = defineComponent({
223
223
isLoaded : computed ( ( ) => isLoaded . value ) ,
224
224
} )
225
225
226
- return ( ) => {
227
- console . log ( "render c-avatar" , chakra . span )
228
- return (
229
- < chakra . span
230
- __label = "avatar"
231
- data-loaded = { dataAttr ( isLoaded . value ) }
232
- __css = { avatarStyles . value }
233
- { ...attrs }
234
- >
235
- < CAvatarImage
236
- src = { props . src }
237
- srcSet = { props . srcSet }
238
- loading = { props . loading }
239
- onLoad = { handleLoaded }
240
- onError = { ( e ) => emit ( "error" , e ) }
241
- initials = { props . initials }
242
- name = { props . name }
243
- // @ts -ignore
244
- borderRadius = { props . borderRadius }
245
- iconLabel = { props . iconLabel }
246
- ignoreFallback = { props . ignoreFallback }
247
- { ...extractedAttrs . value . imgAttrs }
248
- />
249
- { slots ?. default ?.( ) }
250
- </ chakra . span >
251
- )
252
- }
226
+ return ( ) => (
227
+ < chakra . span
228
+ __label = "avatar"
229
+ data-loaded = { dataAttr ( isLoaded . value ) }
230
+ __css = { avatarStyles . value }
231
+ { ...attrs }
232
+ >
233
+ < CAvatarImage
234
+ src = { props . src }
235
+ srcSet = { props . srcSet }
236
+ loading = { props . loading }
237
+ onLoad = { handleLoaded }
238
+ onError = { ( e ) => emit ( "error" , e ) }
239
+ initials = { props . initials }
240
+ name = { props . name }
241
+ // @ts -ignore
242
+ borderRadius = { props . borderRadius }
243
+ iconLabel = { props . iconLabel }
244
+ ignoreFallback = { props . ignoreFallback }
245
+ { ...extractedAttrs . value . imgAttrs }
246
+ />
247
+ { slots ?. default ?.( ) }
248
+ </ chakra . span >
249
+ )
253
250
} ,
254
251
} ) as any as ComponentWithProps < CAvatarProps >
Original file line number Diff line number Diff line change @@ -28,16 +28,15 @@ exports[`should render properly 1`] = `
28
28
data-part = " control"
29
29
id = " control-chakra-checkbox-EMPTY_STRING"
30
30
>
31
- <transition-stub
32
- __css = " [object Object]"
33
- appear = " false"
34
- css = " false"
35
- mode = " out-in"
36
- persisted = " false"
37
- style = " display: flex; align-items: center; justify-content: center; height: 100%;"
31
+ <svg
32
+ class = " css-1mg6af5"
33
+ style = " fill: none; stroke-width: 2; stroke: currentColor; stroke-dasharray: 16;"
34
+ viewBox = " 0 0 12 10"
38
35
>
39
- <!---->
40
- </transition-stub >
36
+ <polyline
37
+ points = " 1.5 6 4.5 9 10.5 1"
38
+ />
39
+ </svg >
41
40
</span >
42
41
<!---->
43
42
</label >
You can’t perform that action at this time.
0 commit comments