vuejs / docs

📄 Documentation for Vue 3
https://vuejs.org
Other
2.81k stars 4.1k forks source link

v-model parameters are different in Playground and web,makes it difficult to understand #2843

Closed POKEZHANG closed 2 weeks ago

POKEZHANG commented 2 weeks ago

Website:https://play.vuejs.org/#eNqFkl9PwjAUxb9K05dhglsMb2SQqOFBE9Soj31Zxh0Uu7bpHxxZ9t29LWOiQXzaes7p2a+9a+mt1unOA53S3JaGa0csOK/nTPJaK+NISwxUpCOVUTVJMJoM1nJ/r/BNgnS9nWYnWujFMCFMlkpaRxx3AsgsFI6S3XWtViBIYda+Dg3QFLUWkFwxmWcHFqTAhQPUCwe4IiTf3Mzbtq/qujzDddRPYfruaUzNGI1PRkmG0Twb+uiY/sI9cw0/0VdQcQnL0D5KovgfL5fa4/69jiDQOOTo+S6SOYtfrvg63VolkauNN0lLxOUCzLN2HMkYnZLoBK8QQn0+Rs0ZD+OjXm6g/Dijb20TNEZfDFgwOwQZPIdzAWQN9uLtKXIPJtL7gH3BfAWrhA+Mh9idlyvEPslF2of4J3G5freLxoG0x0MF0JDsYp5RHE6Y1F9H/8adpJO4j8mOdl/Hw/nf Pic: 2024-04-30T10_06_56

xiaodong2008 commented 2 weeks ago

It's not hard to understand, just different names of variables.

For docs: it's good to use title and bookTitle separately to distinguish between father and child components. For playground: it's clear because you can switch between two components and this shouldn't change to bookTitle because it doesn't match the playground demo

NataliaTepluhina commented 2 weeks ago

I've fixed the playground to match the docs chapter 👍🏻