You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove style guide recommendation on global base components (#2949)
Right now official Vue Style Guide suggests you use global components when you deal with base components. This can lead to confusion with new developers coming to a project, IDE assistance and testing. This PR removes this recommendation so it's always obvious how components are imported.
Copy file name to clipboardExpand all lines: src/v2/style-guide/index.md
-16Lines changed: 0 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -771,22 +771,6 @@ Some advantages of this convention:
771
771
772
772
- Since component names should always be multi-word, this convention prevents you from having to choose an arbitrary prefix for simple component wrappers (e.g. `MyButton`, `VueButton`).
773
773
774
-
- Since these components are so frequently used, you may want to simply make them global instead of importing them everywhere. A prefix makes this possible with Webpack:
775
-
776
-
```js
777
-
var requireComponent =require.context("./src", true,/Base[A-Z]\w+\.(vue|js)$/)
0 commit comments