fix: update md template tag html>tpl
- fix `result` typo - update jest `result` snapshotspull/1265/head
parent
ba6757e859
commit
5a1b0bc2c2
|
@ -35,7 +35,6 @@ exports[`renders ./components/result/demo/customIcon.md correctly 1`] = `
|
|||
<path fill="#1890ff" d="M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4zm-24-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z"></path>
|
||||
</svg></i></div>
|
||||
<div class="ant-result-title">Great, we have done all the operations!</div>
|
||||
<div class="ant-result-subtitle"></div>
|
||||
<div class="ant-result-extra"><button type="button" class="ant-btn ant-btn-primary"><span>Next</span></button></div>
|
||||
</div>
|
||||
`;
|
||||
|
@ -70,7 +69,6 @@ exports[`renders ./components/result/demo/info.md correctly 1`] = `
|
|||
<path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"></path>
|
||||
</svg></i></div>
|
||||
<div class="ant-result-title">Your operation has been executed</div>
|
||||
<div class="ant-result-subtitle"></div>
|
||||
<div class="ant-result-extra"><button type="button" class="ant-btn ant-btn-primary"><span>Go Console</span></button></div>
|
||||
</div>
|
||||
`;
|
||||
|
@ -92,7 +90,6 @@ exports[`renders ./components/result/demo/warning.md correctly 1`] = `
|
|||
<path d="M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"></path>
|
||||
</svg></i></div>
|
||||
<div class="ant-result-title">There are some problems with your operation.</div>
|
||||
<div class="ant-result-subtitle"></div>
|
||||
<div class="ant-result-extra"><button type="button" class="ant-btn ant-btn-primary"><span>Go Console</span></button></div>
|
||||
</div>
|
||||
`;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
you are not authorized to access this page.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result
|
||||
status="403"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
The page you visited does not exist.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result
|
||||
status="404"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
The server is wrong.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result
|
||||
status="500"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Custom icon.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result title="Great, we have done all the operations!">
|
||||
<template v-slot:icon>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Complex error feedback.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result
|
||||
status="error"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Show processing results.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result title="Your operation has been executed">
|
||||
<template v-slot:extra>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Show successful results.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result
|
||||
status="success"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
The result of the warning.
|
||||
</us>
|
||||
|
||||
```html
|
||||
```tpl
|
||||
<template>
|
||||
<a-result status="warning" title="There are some problems with your operation.">
|
||||
<template v-slot:extra>
|
||||
|
|
|
@ -61,6 +61,7 @@ import { TimePicker } from './time-picker';
|
|||
import { Timeline } from './timeline/timeline';
|
||||
import { Tooltip } from './tootip/tooltip';
|
||||
import { Upload } from './upload';
|
||||
import { Result } from './result';
|
||||
|
||||
/**
|
||||
* Install all ant-design-vue components into Vue.
|
||||
|
@ -129,4 +130,5 @@ export {
|
|||
Upload,
|
||||
Drawer,
|
||||
Skeleton,
|
||||
Result,
|
||||
};
|
||||
|
|
|
@ -5,14 +5,14 @@ export declare class Result extends AntdComponent {
|
|||
* result title
|
||||
* @type string
|
||||
*/
|
||||
title: string;
|
||||
title: any;
|
||||
|
||||
/**
|
||||
* result sub title
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
subTitle: string;
|
||||
subTitle: any;
|
||||
|
||||
/**
|
||||
* result status,decide icons and colors
|
||||
|
|
Loading…
Reference in New Issue