Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 |
Tags
- VAE
- 예제 실행 시 에러 관련_
- stackoverflow
- OpenCV로 배우는 영상처리 및 응용
- pkg-config
- 웹어셈블리 인 액션
- 영상처리
- VisualCapture
- AutoEncoder
- NSCameraUsageDescription
- homebrew
- Info.plist
- mac os
- WebAssembly in Action
- xcode
- OpenCV
- Camera Usage Description
- OpenCV-4.1.0
- Today
- 0
- Total
- 4,460
DEV.log
slots 본문
<!-- App.svelte -->
<script>
import Box from './Box.svelte';
</script>
<Box>
<h2>Hello!</h2>
<p>This is a box. It can contain anything.</p>
</Box>
<!-- Box.svelte -->
<div class="box">
<slot>
<em>no content was provided</em></slot>
</slot>
</div>
<style>
.box {
width: 300px;
border: 1px solid #aaa;
border-radius: 2px;
box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
padding: 1em;
margin: 0 0 1em 0;
}
</style>
https://svelte.dev/tutorial/slots
Component composition / Slots • Svelte Tutorial
Component composition / Slots a. Basicsb. Adding datac. Dynamic attributesd. Stylinge. Nested componentsf. HTML tagsg. Making an appa. Assignmentsb. Declarationsc. Statementsd. Updating arrays and objectsa. Declaring propsb. Default valuesc. Spread propsa.
svelte.dev
'Svelte > tutorial' 카테고리의 다른 글
optional-slots (0) | 2022.02.01 |
---|---|
named-slots (0) | 2022.02.01 |
slots (0) | 2022.02.01 |
classes (0) | 2022.02.01 |
custom-stores (0) | 2022.02.01 |
derived-stores (0) | 2022.02.01 |
0 Comments