当我在Zebble文档网站上读到下面的代码时,我创建了一个新的空白页面,但我需要在我的所有页面上使用它,我不想在所有页面上重复这种设计。当我尝试构建我的项目时,出现如下错误:
<z-Component z-type="Page1" z-base="Page" z-namespace="UI.Pages"
z-partial="true" Title="Page 1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./../.zebble-schema.xml">
<Stack Id="Header" Direction="Horizontal">
<Button Text="MyToogleMenuBtn" />
<TextView Text="MyPageTitle" />
<Button Text="AddBtn" />
</Stack>
<Stack Id="Body">
</Stack>
<Stack Id="Footer">
<Button Id="ConfirmBtn" />
</Stack>
/z-Component>
错误是:
但是我不知道应该在哪里添加title属性。
发布于 2017-05-12 00:50:17
要将此页面用作其他页面的模板,只需将其指定为z-base
<z-Component z-type="MyChildPage" z-base="MyTemplate" ...
对于该错误,您应该删除Title="Page 1"
,因为当前页面中没有Title
属性
https://stackoverflow.com/questions/43920972
复制相似问题