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
310
310
311
311
### Has Different Behavior
312
312
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
319
317
320
318
### Vue Compatible
321
319
@@ -385,4 +383,4 @@ This is also how Vue 1 worked. The trade-off here is that this approach is coupl
385
383
386
384
## License
387
385
388
- MIT
386
+ MIT
You can’t perform that action at this time.
0 commit comments