赞
踩
'Slot "default" invoked outside of the render function'
如下给Tabs组件加一个defaultValue的默认值即可
参考:https://github.com/tusen-ai/naive-ui/issues/3134
- <NTabs type="segment" themeOverrides={{
- colorSegment: "#c6c6c6"
- }}
- defaultValue={"one"}
- >
- <NTabPane displayDirective={"show"} name={"one"} >
- <CommonTable
- columns={this.hostColumns}
- showLoading={this.showLoading}
- tableData={this.hostTableData}
- tableConfig={this.tableConfig}
- showToolsBar
- >
- </CommonTable>
- </NTabPane>
-
- <NTabPane displayDirective={"show"} name={"two"} >
-
- <CommonTable
- columns={this.cbsColumns}
- showLoading={this.showLoading}
- tableData={this.cbsTableData}
- tableConfig={[]}
- showToolsBar
- >
- </CommonTable>
-
- </NTabPane>
-
- </NTabs>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。