fix: update md template tag html>tpl

- fix `result` typo
- update jest `result` snapshots
pull/1265/head
Sendya 2019-10-10 15:26:41 +08:00
parent ba6757e859
commit 5a1b0bc2c2
No known key found for this signature in database
GPG Key ID: 6A3C43FA6CE81A28
11 changed files with 12 additions and 13 deletions

View File

@ -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> <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> </svg></i></div>
<div class="ant-result-title">Great, we have done all the operations!</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 class="ant-result-extra"><button type="button" class="ant-btn ant-btn-primary"><span>Next</span></button></div>
</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> <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> </svg></i></div>
<div class="ant-result-title">Your operation has been executed</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 class="ant-result-extra"><button type="button" class="ant-btn ant-btn-primary"><span>Go Console</span></button></div>
</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> <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> </svg></i></div>
<div class="ant-result-title">There are some problems with your operation.</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 class="ant-result-extra"><button type="button" class="ant-btn ant-btn-primary"><span>Go Console</span></button></div>
</div> </div>
`; `;

View File

@ -8,7 +8,7 @@
you are not authorized to access this page. you are not authorized to access this page.
</us> </us>
```html ```tpl
<template> <template>
<a-result <a-result
status="403" status="403"

View File

@ -8,7 +8,7 @@
The page you visited does not exist. The page you visited does not exist.
</us> </us>
```html ```tpl
<template> <template>
<a-result <a-result
status="404" status="404"

View File

@ -8,7 +8,7 @@
The server is wrong. The server is wrong.
</us> </us>
```html ```tpl
<template> <template>
<a-result <a-result
status="500" status="500"

View File

@ -8,7 +8,7 @@
Custom icon. Custom icon.
</us> </us>
```html ```tpl
<template> <template>
<a-result title="Great, we have done all the operations!"> <a-result title="Great, we have done all the operations!">
<template v-slot:icon> <template v-slot:icon>

View File

@ -8,7 +8,7 @@
Complex error feedback. Complex error feedback.
</us> </us>
```html ```tpl
<template> <template>
<a-result <a-result
status="error" status="error"

View File

@ -8,7 +8,7 @@
Show processing results. Show processing results.
</us> </us>
```html ```tpl
<template> <template>
<a-result title="Your operation has been executed"> <a-result title="Your operation has been executed">
<template v-slot:extra> <template v-slot:extra>

View File

@ -8,7 +8,7 @@
Show successful results. Show successful results.
</us> </us>
```html ```tpl
<template> <template>
<a-result <a-result
status="success" status="success"

View File

@ -8,7 +8,7 @@
The result of the warning. The result of the warning.
</us> </us>
```html ```tpl
<template> <template>
<a-result status="warning" title="There are some problems with your operation."> <a-result status="warning" title="There are some problems with your operation.">
<template v-slot:extra> <template v-slot:extra>

View File

@ -61,6 +61,7 @@ import { TimePicker } from './time-picker';
import { Timeline } from './timeline/timeline'; import { Timeline } from './timeline/timeline';
import { Tooltip } from './tootip/tooltip'; import { Tooltip } from './tootip/tooltip';
import { Upload } from './upload'; import { Upload } from './upload';
import { Result } from './result';
/** /**
* Install all ant-design-vue components into Vue. * Install all ant-design-vue components into Vue.
@ -129,4 +130,5 @@ export {
Upload, Upload,
Drawer, Drawer,
Skeleton, Skeleton,
Result,
}; };

4
types/result.d.ts vendored
View File

@ -5,14 +5,14 @@ export declare class Result extends AntdComponent {
* result title * result title
* @type string * @type string
*/ */
title: string; title: any;
/** /**
* result sub title * result sub title
* *
* @type string * @type string
*/ */
subTitle: string; subTitle: any;
/** /**
* result status,decide icons and colors * result status,decide icons and colors