提交 33c4a45e 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

docs(uni-app x): 补充 props 说明

上级 138d5141
...@@ -42,8 +42,9 @@ uni-app x支持的组件包括: ...@@ -42,8 +42,9 @@ uni-app x支持的组件包括:
## props ## props
- 仅支持[对象方式](https://cn.vuejs.org/guide/components/props.html#props-declaration)声明。 - 仅支持 `export default` 中使用[对象方式](https://cn.vuejs.org/guide/components/props.html#props-declaration)声明,不支持外部引入或字符串数组方式声明。
- 复杂数据类型需要通过 `PropType` 标记类型,[详见](https://cn.vuejs.org/guide/typescript/options-api.html#typing-component-props) - 复杂数据类型需要通过 `PropType` 标记类型,[详见](https://cn.vuejs.org/guide/typescript/options-api.html#typing-component-props)
- 不支持引入 props,
```ts ```ts
import { type PropType } from 'vue' import { type PropType } from 'vue'
...@@ -94,7 +95,7 @@ export default { ...@@ -94,7 +95,7 @@ export default {
str: "str" str: "str"
} as Obj } as Obj
} }
}, }
} }
</script> </script>
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册