Skip to content

Commit b068b07

Browse files
committed
docs: update
1 parent 6da8656 commit b068b07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ You can also write your own resolver quickly:
227227
Components({
228228
resolvers: [
229229
// example of importing Vant
230-
(name) => {
231-
// where `name` is always CapitalCase
232-
if (name.startsWith('Van'))
233-
return { importName: name.slice(3), path: 'vant' }
230+
(componentName) => {
231+
// where `componentName` is always CapitalCase
232+
if (componentName.startsWith('Van'))
233+
return { name: name.slice(3), from: 'vant' }
234234
},
235235
],
236236
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy