diff --git a/package/component/src/component/pageHeader/index.vue b/package/component/src/component/pageHeader/index.vue index 7159e401..513b3f70 100644 --- a/package/component/src/component/pageHeader/index.vue +++ b/package/component/src/component/pageHeader/index.vue @@ -4,7 +4,10 @@
{{ backText }}
-
{{ content }}
+
+ + +
@@ -14,7 +17,9 @@ export default { }; diff --git a/package/document/src/document/zh-CN/components/pageHeader.md b/package/document/src/document/zh-CN/components/pageHeader.md index 79568175..c329f3bb 100644 --- a/package/document/src/document/zh-CN/components/pageHeader.md +++ b/package/document/src/document/zh-CN/components/pageHeader.md @@ -38,6 +38,29 @@ const handleBack=()=>{ ::: +::: title PageHeader 插槽 +::: +::: demo 使用 默认插槽可以自定义右侧内容 同时content属性将失效 + + + + + +::: ::: title PageHeader 属性 ::: @@ -46,7 +69,7 @@ const handleBack=()=>{ | 属性 | 描述 | 可选值 | | ------ | ---- | -------------- | -| content| 标题 | -- | +| content| 标题,当前默认插槽不为空时失效 | -- | | backText| 返回文本 | 默认 "返回" | :::