diff --git a/.vscode/settings.json b/.vscode/settings.json index 3c525f6..2ca1ca1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit", + "source.fixAll.eslint": "never", "source.organizeImports": "never", "source.fixAll.oxc": "explicit" }, diff --git a/src/pages/index.page.vue b/src/pages/index.page.vue index 1650646..4da91e6 100644 --- a/src/pages/index.page.vue +++ b/src/pages/index.page.vue @@ -17,44 +17,41 @@ useHead({ consola.info('routes', routes); const FComponent: import('vue').FunctionalComponent<{ prop: string }> = (props, context) => ( - // <> -
- - - 函数式组件 - - ,接收到的 prop 值为: - + <> + + 函数式组件: https://cn.vuejs.org/guide/extras/render-function#typing-functional-components + +

函数式组件,接收到的 prop 值为:

{JSON.stringify(props, null, 2)}
-
- // + );