Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update tree demo #1406

Merged
merged 5 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 54 additions & 47 deletions src/alert/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -616,66 +616,73 @@ exports[`Alert Alert iconVue demo works fine 1`] = `
`;

exports[`Alert Alert operationVue demo works fine 1`] = `
<t-sapce>
<div
class="t-space t-space-horizontal"
style="gap: 16px;"
>
<div
class="t-alert t-alert--info"
class="t-space-item"
>
<div
class="t-alert__icon"
>
<svg
class="t-icon t-icon-info-circle-filled"
fill="none"
height="1em"
viewBox="0 0 16 16"
width="1em"
>
<path
d="M8 15A7 7 0 108 1a7 7 0 000 14zM7.4 4h1.2v1.2H7.4V4zm.1 2.5h1V12h-1V6.5z"
fill="currentColor"
fill-opacity="0.9"
/>
</svg>
</div>
<div
class="t-alert__content"
class="t-alert t-alert--info"
>
<div
class="t-alert__message"
class="t-alert__icon"
>
<div
class="t-alert__description"
<svg
class="t-icon t-icon-info-circle-filled"
fill="none"
height="1em"
viewBox="0 0 16 16"
width="1em"
>
这是一条普通的消息提示
</div>
<path
d="M8 15A7 7 0 108 1a7 7 0 000 14zM7.4 4h1.2v1.2H7.4V4zm.1 2.5h1V12h-1V6.5z"
fill="currentColor"
fill-opacity="0.9"
/>
</svg>
</div>
<div
class="t-alert__content"
>
<div
class="t-alert__operation"
class="t-alert__message"
>
<span>
相关操作
</span>
<div
class="t-alert__description"
>
这是一条普通的消息提示
</div>
<div
class="t-alert__operation"
>
<span>
相关操作
</span>
</div>
</div>
</div>
</div>
<div
class="t-alert__close"
>
<svg
class="t-icon t-icon-close"
fill="none"
height="1em"
viewBox="0 0 16 16"
width="1em"
>
<path
d="M8 8.92L11.08 12l.92-.92L8.92 8 12 4.92 11.08 4 8 7.08 4.92 4 4 4.92 7.08 8 4 11.08l.92.92L8 8.92z"
fill="currentColor"
fill-opacity="0.9"
/>
</svg>
<div
class="t-alert__close"
>
<svg
class="t-icon t-icon-close"
fill="none"
height="1em"
viewBox="0 0 16 16"
width="1em"
>
<path
d="M8 8.92L11.08 12l.92-.92L8.92 8 12 4.92 11.08 4 8 7.08 4.92 4 4 4.92 7.08 8 4 11.08l.92.92L8 8.92z"
fill="currentColor"
fill-opacity="0.9"
/>
</svg>
</div>
</div>
</div>
</t-sapce>
</div>
`;

exports[`Alert Alert titleVue demo works fine 1`] = `
Expand Down
4 changes: 2 additions & 2 deletions src/alert/_example/operation.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<t-sapce>
<t-space>
<t-alert theme="info" message="这是一条普通的消息提示" close>
<template #operation>
<span @click="handleOperation">相关操作</span>
</template>
</t-alert>
</t-sapce>
</t-space>
</template>
<script lang="jsx">
export default {
Expand Down
Loading