File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -310,12 +310,10 @@ Check out the [examples directory](https://github.com/vuejs/petite-vue/tree/main
310310
311311### Has Different Behavior
312312
313- - Most expressions (except for structural directives like ` v-if ` and ` v-for ` ) has access to the following magic properties:
314- - ` $el `
315- - ` $nextTick `
316- - ` createApp() ` (accepts global state instead of root component)
317- - Components
318- - Custom directives
313+ - In expressions, ` $el ` points to the current element the directive is bound to (instead of component root element)
314+ - ` createApp() ` accepts global state instead of a component
315+ - Components are simplified into object-returning functions
316+ - Custom directives have a different interface
319317
320318### Vue Compatible
321319
@@ -385,4 +383,4 @@ This is also how Vue 1 worked. The trade-off here is that this approach is coupl
385383
386384## License
387385
388- MIT
386+ MIT
You can’t perform that action at this time.
0 commit comments