十一.Result
前言
组件默认使用 Flex 布局,不需要手动设置 type="flex"。
请注意父容器避免使用 inline 相关样式,会导致组件宽度不能撑满。
Success Tip
Please follow the instructions
Warning Tip
Please follow the instructions
Error Tip
Please follow the instructions
Info Tip
<template>
<web-row>
<web-col :sm="12" :lg="6">
<web-result icon="success" title="Success Tip" sub-title="Please follow the instructions">
<template #extra>
<web-button type="primary">Back</web-button>
</template>
</web-result>
</web-col>
<web-col :sm="12" :lg="6">
<web-result icon="warning" title="Warning Tip" sub-title="Please follow the instructions">
<template #extra>
<web-button type="primary">Back</web-button>
</template>
</web-result>
</web-col>
<web-col :sm="12" :lg="6">
<web-result icon="error" title="Error Tip" sub-title="Please follow the instructions">
<template #extra>
<web-button type="primary">Back</web-button>
</template>
</web-result>
</web-col>
<web-col :sm="12" :lg="6">
<web-result icon="info" title="Info Tip">
<template #sub-title>
<p>Using slot as subtitle</p>
</template>
<template #extra>
<web-button type="primary">Back</web-button>
</template>
</web-result>
</web-col>
</web-row>
</template>