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

+4-4
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)