File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
packages/babel-plugin-jsx Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,23 @@ const App = {
213213 return () => <A v-slots={slots} />;
214214 }
215215};
216+
217+ // or
218+ const App = {
219+ setup() {
220+ return () => (
221+ <>
222+ <A>
223+ {
224+ default: () => <div>A</div>,
225+ foo: () => <span>B</span>
226+ }
227+ </A>
228+ <B>{() => ' foo' }</B>
229+ </>
230+ );
231+ }
232+ }
216233```
217234
218235### 在 TypeSript 中使用
Original file line number Diff line number Diff line change @@ -213,6 +213,23 @@ const App = {
213213 return () => <A v-slots={slots} />;
214214 }
215215};
216+
217+ // or
218+ const App = {
219+ setup() {
220+ return () => (
221+ <>
222+ <A>
223+ {
224+ default: () => <div>A</div>,
225+ foo: () => <span>B</span>
226+ }
227+ </A>
228+ <B>{() => ' foo' }</B>
229+ </>
230+ );
231+ }
232+ }
216233```
217234
218235### In TypeScript
You can’t perform that action at this time.
0 commit comments