From 14a63187d4d88e9ceddb910ebd89b61a03c761e4 Mon Sep 17 00:00:00 2001 From: anlyyao Date: Tue, 1 Nov 2022 16:48:24 +0800 Subject: [PATCH] feat(Cascader): update demo --- .../__test__/__snapshots__/demo.test.jsx.snap | 232 ++++++++++++++++++ src/cascader/__test__/demo.test.jsx | 2 + src/cascader/demos/mobile.vue | 59 +---- src/cascader/demos/status.vue | 55 +++++ 4 files changed, 293 insertions(+), 55 deletions(-) create mode 100644 src/cascader/demos/status.vue diff --git a/src/cascader/__test__/__snapshots__/demo.test.jsx.snap b/src/cascader/__test__/__snapshots__/demo.test.jsx.snap index ac5aee06c..f888489a5 100644 --- a/src/cascader/__test__/__snapshots__/demo.test.jsx.snap +++ b/src/cascader/__test__/__snapshots__/demo.test.jsx.snap @@ -497,6 +497,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = ` 禁用可选项

+
@@ -719,6 +720,237 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = `
+ `; + +exports[`Cascader > Cascader statusVue demo works fine 1`] = ` +
+ +
+
+ + +
+
+ +
+ 地址 +
+ + + +
+
+ +
+ + + +
+ + +
+ +
+ +
+ + + + + + + + + +
+`; diff --git a/src/cascader/__test__/demo.test.jsx b/src/cascader/__test__/demo.test.jsx index 27954703a..d545c1e06 100644 --- a/src/cascader/__test__/demo.test.jsx +++ b/src/cascader/__test__/demo.test.jsx @@ -5,10 +5,12 @@ import { mount } from '@vue/test-utils'; import baseVue from '@/cascader/demos/base.vue'; import mobileVue from '@/cascader/demos/mobile.vue'; +import statusVue from '@/cascader/demos/status.vue'; const mapper = { baseVue, mobileVue, + statusVue, }; describe('Cascader', () => { diff --git a/src/cascader/demos/mobile.vue b/src/cascader/demos/mobile.vue index cc1370c8f..14d09a368 100644 --- a/src/cascader/demos/mobile.vue +++ b/src/cascader/demos/mobile.vue @@ -3,65 +3,14 @@

Cascader 级联选择器

用于多层级数据选择,主要为树形结构,可展示更多的数据

- + - - - - - +
diff --git a/src/cascader/demos/status.vue b/src/cascader/demos/status.vue new file mode 100644 index 000000000..633220ba6 --- /dev/null +++ b/src/cascader/demos/status.vue @@ -0,0 +1,55 @@ + +