Skip to content

Commit

Permalink
fix: lock @vue/runtime-core version && update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Nov 10, 2022
1 parent 5f8c816 commit fad62af
Show file tree
Hide file tree
Showing 4 changed files with 291 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"@vitejs/plugin-vue-jsx": "^1.3.3",
"@vitest/ui": "^0.16.0",
"@vue/eslint-config-typescript": "^9.1.0",
"@vue/runtime-core": "^3.2.31",
"@vue/runtime-core": "3.2.41",
"@vue/test-utils": "^2.0.0-rc.17",
"autoprefixer": "^10.2.4",
"axios": "^0.21.0",
Expand Down
16 changes: 8 additions & 8 deletions src/cascader/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ exports[`Cascader > Cascader baseVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
广东省
广东省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down Expand Up @@ -192,7 +192,7 @@ exports[`Cascader > Cascader baseVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
福建省
福建省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down Expand Up @@ -418,7 +418,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
广东省
广东省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down Expand Up @@ -446,7 +446,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
福建省
福建省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down Expand Up @@ -657,7 +657,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
浙江省
浙江省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down Expand Up @@ -685,7 +685,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
江苏省
江苏省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down Expand Up @@ -889,7 +889,7 @@ exports[`Cascader > Cascader statusVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
浙江省
浙江省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down Expand Up @@ -917,7 +917,7 @@ exports[`Cascader > Cascader statusVue demo works fine 1`] = `
class="t-cascader-item-content"
>
<!-- &lt;t-node v-if="!(typeof labelTNode === 'string')" :content="labelTNode"&gt;&lt;/t-node&gt; -->
江苏省
江苏省
</div>
<div
class="t-cascader-item-active-icon"
Expand Down
280 changes: 280 additions & 0 deletions src/steps/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5038,6 +5038,286 @@ exports[`Steps > Steps mobileVue demo works fine 1`] = `
</div>
`;

exports[`Steps > Steps verticalReadonlyVue demo works fine 1`] = `
<div
class="step-demo"
data-v-f771572e=""
>
<div
class="t-steps t-steps--vertical t-steps--readonly t-steps--default-anchor"
data-v-f771572e=""
>
<div
class="t-step t-step--finish"
data-v-f771572e=""
>
<div
class="t-step__inner"
>
<div
class="t-step-icon"
>
<div
class="t-step-icon__number"
>
<svg
class="t-icon t-icon-check"
fill="none"
height="1em"
viewBox="0 0 16 16"
width="1em"
>
<path
d="M6.43 9.92l6.23-6.22.92.92-7.15 7.14L1.97 7.3l.92-.92 3.54 3.54z"
fill="currentColor"
fill-opacity="0.9"
/>
</svg>
</div>
</div>
<div
class="t-step-content"
>
<div
class="t-step-title"
>
已完成步骤
</div>
<div
class="t-step-description"
>
</div>
<div
class="t-step-extra"
>
<!---->
</div>
</div>
</div>
</div>
<div
class="t-step t-step--process"
data-v-f771572e=""
>
<div
class="t-step__inner"
>
<div
class="t-step-icon"
>
<div
class="t-step-icon__number"
>
2
</div>
</div>
<div
class="t-step-content"
>
<div
class="t-step-title"
>
当前步骤
</div>
<div
class="t-step-description"
>
</div>
<div
class="t-step-extra"
>
<!---->
</div>
</div>
</div>
</div>
<div
class="t-step"
data-v-f771572e=""
>
<div
class="t-step__inner"
>
<div
class="t-step-icon"
>
<div
class="t-step-icon__number"
>
3
</div>
</div>
<div
class="t-step-content"
>
<div
class="t-step-title"
>
未完成步骤
</div>
<div
class="t-step-description"
>
</div>
<div
class="t-step-extra"
>
<!---->
</div>
</div>
</div>
</div>
</div>
<div
class="t-steps t-steps--vertical t-steps--readonly t-steps--default-anchor"
data-v-f771572e=""
>
<div
class="t-step t-step--finish"
data-v-f771572e=""
>
<div
class="t-step__inner"
>
<div
class="t-step-icon"
>
<div
class="t-step-icon__number"
>
<svg
class="t-icon t-icon-check"
fill="none"
height="1em"
viewBox="0 0 16 16"
width="1em"
>
<path
d="M6.43 9.92l6.23-6.22.92.92-7.15 7.14L1.97 7.3l.92-.92 3.54 3.54z"
fill="currentColor"
fill-opacity="0.9"
/>
</svg>
</div>
</div>
<div
class="t-step-content"
>
<div
class="t-step-title"
>
已完成步骤
</div>
<div
class="t-step-description"
>
</div>
<div
class="t-step-extra"
>
<!---->
</div>
</div>
</div>
</div>
<div
class="t-step t-step--error"
data-v-f771572e=""
>
<div
class="t-step__inner"
>
<div
class="t-step-icon"
>
<div
class="t-step-icon__number"
>
<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
class="t-step-content"
>
<div
class="t-step-title"
>
错误步骤
</div>
<div
class="t-step-description"
>
</div>
<div
class="t-step-extra"
>
<!---->
</div>
</div>
</div>
</div>
<div
class="t-step"
data-v-f771572e=""
>
<div
class="t-step__inner"
>
<div
class="t-step-icon"
>
<div
class="t-step-icon__number"
>
3
</div>
</div>
<div
class="t-step-content"
>
<div
class="t-step-title"
>
未完成步骤
</div>
<div
class="t-step-description"
>
</div>
<div
class="t-step-extra"
>
<!---->
</div>
</div>
</div>
</div>
</div>
</div>
`;

exports[`Steps > Steps verticalVue demo works fine 1`] = `
<div
class="step-demo"
Expand Down
2 changes: 2 additions & 0 deletions src/steps/__test__/demo.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import contentVue from '@/steps/demos/content.vue';
import horizontalVue from '@/steps/demos/horizontal.vue';
import iconVue from '@/steps/demos/icon.vue';
import mobileVue from '@/steps/demos/mobile.vue';
import verticalReadonlyVue from '@/steps/demos/vertical-readonly.vue';
import verticalVue from '@/steps/demos/vertical.vue';

const mapper = {
Expand All @@ -16,6 +17,7 @@ const mapper = {
horizontalVue,
iconVue,
mobileVue,
verticalReadonlyVue,
verticalVue,
};

Expand Down

0 comments on commit fad62af

Please sign in to comment.