vuejs / core-vapor

Vue Vapor is a variant of Vue that offers rendering without the Virtual DOM.
https://vapor-repl.netlify.app
MIT License
1.8k stars 86 forks source link

fix(runtime-vapor): fix slots render level mess up #241

Open Doctor-wu opened 2 months ago

Doctor-wu commented 2 months ago

close #242

netlify[bot] commented 2 months ago

Deploy Preview for vapor-template-explorer ready!

Name Link
Latest commit ea2e2a4c5d70e12d101e50a514d71af138e03198
Latest deploy log https://app.netlify.com/sites/vapor-template-explorer/deploys/66cf1634dee60c0008c5ff9d
Deploy Preview https://deploy-preview-241--vapor-template-explorer.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 2 months ago

Deploy Preview for vapor-repl ready!

Name Link
Latest commit ea2e2a4c5d70e12d101e50a514d71af138e03198
Latest deploy log https://app.netlify.com/sites/vapor-repl/deploys/66cf1634b364d60008638cae
Deploy Preview https://deploy-preview-241--vapor-repl.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 2 months ago

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 80.6 kB 28.4 kB 25 kB
compiler-vapor.global.prod.js 56.9 kB 19.4 kB 17.6 kB
runtime-dom.global.prod.js 99.3 kB 37.6 kB 33.8 kB
runtime-vapor.global.prod.js 48.8 kB (+221 B) 18.4 kB (+90 B) 16.8 kB (+85 B)
vue-vapor.global.prod.js 103 kB (+221 B) 36.2 kB (+77 B) 32.6 kB (+113 B)
vue.global.prod.js 157 kB 57.4 kB 51 kB

Usages

Name Size Gzip Brotli
createApp 55.2 kB 21.3 kB 19.4 kB
createSSRApp 59.1 kB 22.9 kB 20.9 kB
defineCustomElement 59.8 kB 22.8 kB 20.8 kB
vapor 49.4 kB (+221 B) 18.6 kB (+87 B) 16.9 kB (+76 B)
overall 68.8 kB 26.3 kB 23.9 kB
LittleSound commented 2 months ago

I have addressed a similar issue in PR #227. You can refer to the implementation of the normalizeSlotProps function.

I hope this information helps you solve the problem!

Doctor-wu commented 2 months ago

Preview Demo

pkg-pr-new[bot] commented 1 month ago

commit: ea2e2a4

@vue/compiler-core

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-core@241 ```

@vue/compiler-dom

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-dom@241 ```

@vue/compiler-sfc

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-sfc@241 ```

@vue/compiler-ssr

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-ssr@241 ```

@vue/compiler-vapor

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-vapor@241 ```

@vue/reactivity

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/reactivity@241 ```

@vue/runtime-core

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-core@241 ```

@vue/runtime-dom

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-dom@241 ```

@vue/runtime-shared

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-shared@241 ```

@vue/runtime-vapor

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-vapor@241 ```

@vue/server-renderer

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/server-renderer@241 ```

@vue/shared

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/shared@241 ```

vue

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/vue@241 ```

@vue/compat

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/compat@241 ```

@vue/vapor

``` pnpm add https://pkg.pr.new/vuejs/core-vapor/@vue/vapor@241 ```

Open in Stackblitzplayground

moushicheng commented 1 week ago

look good👍