diff --git a/src/_common b/src/_common
index b3064b7c9..16fb8b742 160000
--- a/src/_common
+++ b/src/_common
@@ -1 +1 @@
-Subproject commit b3064b7c99169817b49bef8822b5545c68ffa7cd
+Subproject commit 16fb8b742fd0c7b5ebb615392493486f06ed0116
diff --git a/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap b/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap
index 0ca7dfc86..a3614174d 100644
--- a/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap
@@ -11,18 +11,20 @@ exports[`ActionSheet > ActionSheet gridMultipleVue demo works fine 1`] = `
>
ActionSheet gridVue demo works fine 1`] = `
>
ActionSheet listVue demo works fine 1`] = `
>
ActionSheet mobileVue demo works fine 1`] = `
>
ActionSheet mobileVue demo works fine 1`] = `
>
ActionSheet mobileVue demo works fine 1`] = `
>
BackTop halfRoundVue demo works fine 1`] = `
>
BackTop mobileVue demo works fine 1`] = `
>
BackTop mobileVue demo works fine 1`] = `
>
BackTop roundVue demo works fine 1`] = `
>
Badge baseVue demo works fine 1`] = `
@@ -159,17 +161,19 @@ exports[`Badge > Badge baseVue demo works fine 1`] = `
@@ -203,8 +207,9 @@ exports[`Badge > Badge baseVue demo works fine 1`] = `
@@ -339,17 +345,19 @@ exports[`Badge > Badge mobileVue demo works fine 1`] = `
@@ -430,17 +438,19 @@ exports[`Badge > Badge mobileVue demo works fine 1`] = `
@@ -474,8 +484,9 @@ exports[`Badge > Badge mobileVue demo works fine 1`] = `
@@ -622,8 +634,9 @@ exports[`Badge > Badge mobileVue demo works fine 1`] = `
@@ -1061,8 +1075,9 @@ exports[`Badge > Badge themeVue demo works fine 1`] = `
diff --git a/src/button-group/button-group.md b/src/button-group/button-group.md
deleted file mode 100644
index 6b237f5a4..000000000
--- a/src/button-group/button-group.md
+++ /dev/null
@@ -1 +0,0 @@
-# 按钮组(展示模块)
diff --git a/src/button-group/button-group.vue b/src/button-group/button-group.vue
deleted file mode 100644
index d121ba91f..000000000
--- a/src/button-group/button-group.vue
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
diff --git a/src/button-group/index.ts b/src/button-group/index.ts
deleted file mode 100644
index 8bf805cb1..000000000
--- a/src/button-group/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import ButtonGroup from './button-group.vue';
-import { withInstall, WithInstallType } from '../shared';
-
-import './style';
-
-const _ButtonGroup: WithInstallType = withInstall(ButtonGroup);
-export default _ButtonGroup;
diff --git a/src/button-group/style/css.js b/src/button-group/style/css.js
deleted file mode 100644
index 6a9a4b132..000000000
--- a/src/button-group/style/css.js
+++ /dev/null
@@ -1 +0,0 @@
-import './index.css';
diff --git a/src/button-group/style/index.js b/src/button-group/style/index.js
deleted file mode 100644
index 27ef8d907..000000000
--- a/src/button-group/style/index.js
+++ /dev/null
@@ -1 +0,0 @@
-import '../../_common/style/mobile/components/button-group/_index.less';
diff --git a/src/button/__test__/__snapshots__/demo.test.jsx.snap b/src/button/__test__/__snapshots__/demo.test.jsx.snap
index 853a7aa6f..f9b6f8bde 100644
--- a/src/button/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/button/__test__/__snapshots__/demo.test.jsx.snap
@@ -6,381 +6,361 @@ exports[`Button > Button baseVue demo works fine 1`] = `
>
-
-
-
`;
exports[`Button > Button mobileVue demo works fine 1`] = `
Button 按钮
按钮用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
-
-`;
-
-exports[`Button > Button sizeVue demo works fine 1`] = `
-
-
-
-
-
-
-
-
+
-
-
-
- 按钮
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+ 填充按钮
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Button > Button shapeVue demo works fine 1`] = `
+
+
+
-
+
`;
+exports[`Button > Button sizeVue demo works fine 1`] = `
+
+
+
+
+
+
+`;
+
exports[`Button > Button statusVue demo works fine 1`] = `
+
+
+
+
+
+`;
+
+exports[`Button > Button themeVue demo works fine 1`] = `
+
+
+
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`Button > Button testVue demo works fine 1`] = `
-
-
- 正确
-
-
+
+ 填充按钮
+
+
+
+
-
-
- 错误
-
+
+
`;
diff --git a/src/button/__test__/__snapshots__/index.test.jsx.snap b/src/button/__test__/__snapshots__/index.test.jsx.snap
deleted file mode 100644
index 31a42d121..000000000
--- a/src/button/__test__/__snapshots__/index.test.jsx.snap
+++ /dev/null
@@ -1,34 +0,0 @@
-// Vitest Snapshot v1
-
-exports[`button > button-group > button group render 1`] = `
-
-
-
-
-
-
-`;
diff --git a/src/button/__test__/demo.test.jsx b/src/button/__test__/demo.test.jsx
index 8899d6040..6521a118a 100644
--- a/src/button/__test__/demo.test.jsx
+++ b/src/button/__test__/demo.test.jsx
@@ -4,17 +4,27 @@
import { mount } from '@vue/test-utils';
import baseVue from '@/button/demos/base.vue';
+import blockVue from '@/button/demos/block.vue';
+import ghostVue from '@/button/demos/ghost.vue';
+import groupVue from '@/button/demos/group.vue';
+import iconVue from '@/button/demos/icon.vue';
import mobileVue from '@/button/demos/mobile.vue';
+import shapeVue from '@/button/demos/shape.vue';
import sizeVue from '@/button/demos/size.vue';
import statusVue from '@/button/demos/status.vue';
-import testVue from '@/button/demos/test.vue';
+import themeVue from '@/button/demos/theme.vue';
const mapper = {
baseVue,
+ blockVue,
+ ghostVue,
+ groupVue,
+ iconVue,
mobileVue,
+ shapeVue,
sizeVue,
statusVue,
- testVue,
+ themeVue,
};
describe('Button', () => {
diff --git a/src/button/__test__/index.test.jsx b/src/button/__test__/index.test.jsx
index 687084b8f..eff536069 100644
--- a/src/button/__test__/index.test.jsx
+++ b/src/button/__test__/index.test.jsx
@@ -1,23 +1,19 @@
-import { h, ref } from 'vue';
+import { h } from 'vue';
import { mount } from '@vue/test-utils';
import { describe, it, expect, vi } from 'vitest';
-import { AppIcon as TIconApp, LoadingIcon } from 'tdesign-icons-vue-next';
+import { AppIcon as TIconApp } from 'tdesign-icons-vue-next';
import Button from '../button.vue';
-import ButtonGroup from '../../button-group/button-group.vue';
+import Loading from '../../loading';
const prefix = 't';
const name = `${prefix}-button`;
-const SIZE_CLASSNAMES = {
- small: `${prefix}-size-s`,
- medium: `${prefix}-size-m`,
- large: `${prefix}-size-l`,
-};
+
const TEXT = 'tdesign-mobile-vue';
const iconFunc = () => h(TIconApp);
describe('button', () => {
describe('props', () => {
- it(': theme', async () => {
+ it(':theme', async () => {
const wrapper = mount(Button, {
props: {
theme: '',
@@ -38,7 +34,7 @@ describe('button', () => {
expect($button.classes()).toContain(`${name}--${theme}`);
});
- it(': content', async () => {
+ it(':content', async () => {
const wrapper = mount(Button, {
props: {
content: TEXT,
@@ -54,7 +50,7 @@ describe('button', () => {
expect($button.text()).toBe(newContent);
});
- it(': shape', async () => {
+ it(':shape', async () => {
const wrapper = mount(Button, {
props: {
shape: '',
@@ -64,7 +60,7 @@ describe('button', () => {
// shape = ''
const $button = wrapper.findComponent(Button);
['rectangle', 'square', 'round', 'circle'].map((item) => {
- expect($button.classes().includes(`${name}--shape-${item}`)).toBeFalsy();
+ expect($button.classes().includes(`${name}--${item}`)).toBeFalsy();
});
expect(wrapper.text()).toBe(TEXT);
const shape = 'square';
@@ -72,10 +68,10 @@ describe('button', () => {
shape,
});
// shape = 'square'
- expect($button.classes()).toContain(`${name}--shape-${shape}`);
+ expect($button.classes()).toContain(`${name}--${shape}`);
});
- it(': size', async () => {
+ it(':size', async () => {
const wrapper = mount(Button, {
props: {
size: '',
@@ -85,7 +81,7 @@ describe('button', () => {
// size = ''
const $button = wrapper.findComponent(Button);
['small', 'medium', 'large'].map((item) => {
- expect($button.classes().includes(`${SIZE_CLASSNAMES[item]}`)).toBeFalsy();
+ expect($button.classes().includes(`${name}--size-${item}`)).toBeFalsy();
});
expect(wrapper.text()).toBe(TEXT);
const size = 'small';
@@ -93,10 +89,10 @@ describe('button', () => {
size,
});
// size = 'small'
- expect($button.classes()).toContain(`${SIZE_CLASSNAMES[size]}`);
+ expect($button.classes()).toContain(`${name}--size-small`);
});
- it(': variant', async () => {
+ it(':variant', async () => {
const wrapper = mount(Button, {
props: {
variant: '',
@@ -117,7 +113,7 @@ describe('button', () => {
expect($button.classes()).toContain(`${name}--${variant}`);
});
- it(': disabled', async () => {
+ it(':disabled', async () => {
const onClick = vi.fn();
const disabled = true;
const wrapper = mount(Button, {
@@ -129,7 +125,7 @@ describe('button', () => {
});
const $button = wrapper.findComponent(Button);
// disabled = true, 不会触发 click
- expect($button.classes()).toContain('t-is-disabled');
+ expect($button.classes()).toContain(`${name}--disabled`);
await $button.trigger('click');
expect(onClick).not.toBeCalled();
@@ -141,7 +137,7 @@ describe('button', () => {
expect(onClick).toBeCalled();
});
- it(': loading', async () => {
+ it(':loading', async () => {
const loading = true;
const onClick = vi.fn();
const wrapper = mount(Button, {
@@ -154,20 +150,17 @@ describe('button', () => {
const $button = wrapper.findComponent(Button);
// loading = true,不触发 click
- expect($button.classes()).toContain('t-is-loading');
- expect($button.findComponent(LoadingIcon).exists()).toBeTruthy();
await $button.trigger('click');
expect(onClick).not.toBeCalled();
// loading = false
await wrapper.setProps({
loading: false,
});
- expect($button.findComponent(LoadingIcon).exists()).toBeFalsy();
await $button.trigger('click');
expect(onClick).toBeCalled();
});
- it(': icon', async () => {
+ it(':icon', async () => {
const wrapper = mount(Button, {
props: {
loading: true,
@@ -176,12 +169,12 @@ describe('button', () => {
},
});
const $button = wrapper.findComponent(Button);
- expect($button.classes()).toContain('t-is-loading');
- expect($button.findComponent(LoadingIcon).exists()).toBeTruthy();
+ expect($button.classes()).toContain(`${name}--loading`);
+ expect($button.findComponent(Loading).exists()).toBeTruthy();
expect($button.findComponent(TIconApp).exists()).toBeFalsy();
});
- it(': ghost', async () => {
+ it(':ghost', async () => {
const ghost = true;
const wrapper = mount(Button, {
props: {
@@ -200,7 +193,7 @@ describe('button', () => {
expect($button.classes().includes(`${name}--ghost`)).toBeFalsy();
});
- it(': block', async () => {
+ it(':block', async () => {
const block = true;
const wrapper = mount(Button, {
props: {
@@ -211,42 +204,12 @@ describe('button', () => {
const $button = wrapper.findComponent(Button);
// block = true
- expect($button.classes().includes(`${prefix}-is-block`)).toBeTruthy();
+ expect($button.classes().includes(`${name}--block`)).toBeTruthy();
// block = false
await wrapper.setProps({
block: false,
});
- expect($button.classes().includes(`${prefix}-is-block`)).toBeFalsy();
- });
- });
-
- describe('button-group', () => {
- it('button group render', async () => {
- const items = [
- {
- content: TEXT,
- },
- {
- content: TEXT,
- },
- ];
- const wrapper = mount({
- setup() {
- return () => (
-
- {{
- default: items.map((item, index) => {
- return ;
- }),
- }}
-
- );
- },
- });
- expect(wrapper.element).toMatchSnapshot();
- const $buttonGroup = wrapper.findComponent(ButtonGroup);
- expect($buttonGroup.exists()).toBeTruthy();
- expect(wrapper.findAllComponents(Button).length).toEqual(items.length);
+ expect($button.classes().includes(`${name}--block`)).toBeFalsy();
});
});
});
diff --git a/src/button/button.en-US.md b/src/button/button.en-US.md
new file mode 100644
index 000000000..3b073a906
--- /dev/null
+++ b/src/button/button.en-US.md
@@ -0,0 +1,27 @@
+:: BASE_DOC ::
+
+## API
+### Button Props
+
+name | type | default | description | required
+-- | -- | -- | -- | --
+block | Boolean | false | make button to be a block-level element | N
+content | String / Slot / Function | - | button's children elements。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
+disabled | Boolean | false | disable the button, make it can not be clicked | N
+ghost | Boolean | false | make background-color to be transparent | N
+icon | Slot / Function | - | use it to set left icon in button。Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
+loading | Boolean | false | set button to be loading state | N
+loadingProps | Object | - | Typescript:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/button/type.ts) | N
+shape | String | rectangle | button shape。options:rectangle/square/round/circle | N
+size | String | medium | a button has three size。options:extra-small/small/medium/large。Typescript:`SizeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
+suffix | Slot / Function | - | Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
+theme | String | default | button theme。options:default/primary/danger/light | N
+type | String | button | type of button element in html。options:submit/reset/button | N
+variant | String | base | button variant。options:base/outline/text | N
+onClick | Function | | Typescript:`(e: MouseEvent) => void`
trigger on click | N
+
+### Button Events
+
+name | params | description
+-- | -- | --
+click | `(e: MouseEvent)` | trigger on click
diff --git a/src/button/button.md b/src/button/button.md
index e86eec676..11ba63c97 100644
--- a/src/button/button.md
+++ b/src/button/button.md
@@ -6,14 +6,17 @@
名称 | 类型 | 默认值 | 说明 | 必传
-- | -- | -- | -- | --
block | Boolean | false | 是否为块级元素 | N
-content | String / Slot / Function | - | 按钮内容。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
-disabled | Boolean | false | 是否禁用按钮 | N
+content | String / Slot / Function | - | 按钮内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
+disabled | Boolean | false | 禁用状态 | N
ghost | Boolean | false | 是否为幽灵按钮(镂空按钮) | N
icon | Slot / Function | - | 按钮内部图标,可完全自定义。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
loading | Boolean | false | 是否显示为加载状态 | N
+loadingProps | Object | - | 透传加载组件全部属性。TS 类型:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/button/type.ts) | N
shape | String | rectangle | 按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形。可选项:rectangle/square/round/circle | N
-size | String | medium | 组件尺寸。可选项:small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
-theme | String | default | 组件风格,依次为品牌色、危险色。可选项:default/primary/danger | N
+size | String | medium | 组件尺寸。可选项:extra-small/small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
+suffix | Slot / Function | - | 右侧内容,可用于定义右侧图标。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
+theme | String | default | 组件风格,依次为品牌色、危险色。可选项:default/primary/danger/light | N
+type | String | button | 按钮类型。可选项:submit/reset/button | N
variant | String | base | 按钮形式,基础、线框、文字。可选项:base/outline/text | N
onClick | Function | | TS 类型:`(e: MouseEvent) => void`
点击时触发 | N
diff --git a/src/button/button.vue b/src/button/button.vue
index 28c642cb3..fc6225a31 100644
--- a/src/button/button.vue
+++ b/src/button/button.vue
@@ -1,17 +1,26 @@
-
+.t-button + .t-button {
+ margin-left: 16px;
+}
+
diff --git a/src/button/demos/block.vue b/src/button/demos/block.vue
new file mode 100644
index 000000000..1dbb4a6ac
--- /dev/null
+++ b/src/button/demos/block.vue
@@ -0,0 +1,11 @@
+
+
+ 填充按钮
+
+
+
+
diff --git a/src/button/demos/ghost.vue b/src/button/demos/ghost.vue
new file mode 100644
index 000000000..7ec0f4883
--- /dev/null
+++ b/src/button/demos/ghost.vue
@@ -0,0 +1,19 @@
+
+
+ 幽灵按钮
+ 幽灵按钮
+ 幽灵按钮
+
+
+
+
diff --git a/src/button/demos/group.vue b/src/button/demos/group.vue
new file mode 100644
index 000000000..505caf73a
--- /dev/null
+++ b/src/button/demos/group.vue
@@ -0,0 +1,15 @@
+
+
+ 填充按钮
+ 填充按钮
+
+
+
+
diff --git a/src/button/demos/icon.vue b/src/button/demos/icon.vue
new file mode 100644
index 000000000..ff3bb28c0
--- /dev/null
+++ b/src/button/demos/icon.vue
@@ -0,0 +1,30 @@
+
+
+ 填充按钮
+ 加载中
+
+
+
+
+
+
+
diff --git a/src/button/demos/mobile.vue b/src/button/demos/mobile.vue
index 3f7f3e9be..866774a4c 100644
--- a/src/button/demos/mobile.vue
+++ b/src/button/demos/mobile.vue
@@ -2,23 +2,58 @@
Button 按钮
按钮用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。
-
+
-
-
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/button/demos/shape.vue b/src/button/demos/shape.vue
new file mode 100644
index 000000000..ab5c94560
--- /dev/null
+++ b/src/button/demos/shape.vue
@@ -0,0 +1,29 @@
+
+
+ 填充按钮
+
+ 填充按钮
+
+
+
+ 填充按钮
+
+
+
+
+
diff --git a/src/button/demos/size.vue b/src/button/demos/size.vue
index 172c21fa8..8eb91d0a2 100644
--- a/src/button/demos/size.vue
+++ b/src/button/demos/size.vue
@@ -1,34 +1,16 @@
-
-
按钮 44
+
+ 按钮 48
按钮 40
- 按钮 36
-
-
-
-
-
-
- 按钮
-
- 按钮
- 按钮
-
-
-
-
-
-
-
-
-
-
+ 按钮 32
+ 按钮 28
-
+
diff --git a/src/button/demos/status.vue b/src/button/demos/status.vue
index e5ba51fbc..c7f1b5708 100644
--- a/src/button/demos/status.vue
+++ b/src/button/demos/status.vue
@@ -1,52 +1,26 @@
-
@@ -5158,15 +5162,17 @@ exports[`Calendar > Calendar customRangeVue demo works fine 1`] = `
确认
+
@@ -6189,15 +6195,17 @@ exports[`Calendar > Calendar customTextVue demo works fine 1`] = `
确认
+
@@ -8593,15 +8601,17 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
确认
+
@@ -10956,15 +10966,17 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
确认
+
@@ -13319,15 +13331,17 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
确认
+
@@ -14368,15 +14382,17 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
确认
+
@@ -16731,15 +16747,17 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
ok
+
@@ -17206,15 +17224,17 @@ exports[`Calendar > Calendar mobileVue demo works fine 1`] = `
确认
+
@@ -19593,15 +19613,17 @@ exports[`Calendar > Calendar multipleVue demo works fine 1`] = `
确认
+
@@ -21959,15 +21981,17 @@ exports[`Calendar > Calendar rangeVue demo works fine 1`] = `
确认
+
diff --git a/src/calendar/__test__/__snapshots__/index.test.jsx.snap b/src/calendar/__test__/__snapshots__/index.test.jsx.snap
index 333f00b49..2e4f38d68 100644
--- a/src/calendar/__test__/__snapshots__/index.test.jsx.snap
+++ b/src/calendar/__test__/__snapshots__/index.test.jsx.snap
@@ -541,15 +541,17 @@ exports[`calendar > props > : format 1`] = `
确认
+
diff --git a/src/components.ts b/src/components.ts
index c0154554c..cc345b1c0 100644
--- a/src/components.ts
+++ b/src/components.ts
@@ -1,5 +1,4 @@
export { default as Button } from './button';
-export { default as ButtonGroup } from './button-group';
export { default as Divider } from './divider';
export { default as Calendar } from './calendar';
export { default as Cell, CellGroup } from './cell';
diff --git a/src/dialog/__test__/__snapshots__/demo.test.jsx.snap b/src/dialog/__test__/__snapshots__/demo.test.jsx.snap
index ef0649174..c17a2165a 100644
--- a/src/dialog/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/dialog/__test__/__snapshots__/demo.test.jsx.snap
@@ -7,33 +7,37 @@ exports[`Dialog > Dialog confirmVue demo works fine 1`] = `
双按钮
+
带警示按钮
+
Dialog confirmVue demo works fine 1`] = `
取消
+
确认
+
@@ -172,29 +180,33 @@ exports[`Dialog > Dialog confirmVue demo works fine 1`] = `
取消
+
警示操作
+
@@ -213,59 +225,67 @@ exports[`Dialog > Dialog feedbackVue demo works fine 1`] = `
单行标题
+
多行标题最大高度
+
带说明文本
+
带说明文本最大高度
+
Dialog feedbackVue demo works fine 1`] = `
知道了
+
@@ -376,15 +398,17 @@ exports[`Dialog > Dialog feedbackVue demo works fine 1`] = `
知道了
+
@@ -446,15 +470,17 @@ exports[`Dialog > Dialog feedbackVue demo works fine 1`] = `
知道了
+
@@ -516,15 +542,17 @@ exports[`Dialog > Dialog feedbackVue demo works fine 1`] = `
知道了
+
@@ -543,33 +571,37 @@ exports[`Dialog > Dialog inputVue demo works fine 1`] = `
单行标题对话框
+
带说明文本对话框
+
Dialog mobileVue demo works fine 1`] = `
单行标题
+
多行标题最大高度
+
带说明文本
+
带说明文本最大高度
+
Dialog mobileVue demo works fine 1`] = `
知道了
+
@@ -896,15 +938,17 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
知道了
+
@@ -966,15 +1010,17 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
知道了
+
@@ -1036,15 +1082,17 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
知道了
+
@@ -1082,33 +1130,37 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
双按钮
+
带警示按钮
+
Dialog mobileVue demo works fine 1`] = `
取消
+
确认
+
@@ -1247,29 +1303,33 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
取消
+
警示操作
+
@@ -1308,33 +1368,37 @@ exports[`Dialog > Dialog mobileVue demo works fine 1`] = `
单行标题对话框
+
带说明文本对话框
+
Drawer baseVue demo works fine 1`] = `
>
基础抽屉
+
@@ -309,18 +311,20 @@ exports[`Drawer > Drawer iconVue demo works fine 1`] = `
>
带图标抽屉
+
@@ -458,18 +462,20 @@ exports[`Drawer > Drawer mobileVue demo works fine 1`] = `
>
基础抽屉
+
@@ -686,18 +692,20 @@ exports[`Drawer > Drawer mobileVue demo works fine 1`] = `
>
带图标抽屉
+
diff --git a/src/empty/__test__/__snapshots__/demo.test.jsx.snap b/src/empty/__test__/__snapshots__/demo.test.jsx.snap
index 75b5e4678..d10045e79 100644
--- a/src/empty/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/empty/__test__/__snapshots__/demo.test.jsx.snap
@@ -70,17 +70,19 @@ exports[`Empty > Empty buttonEmptyVue demo works fine 1`] = `
操作按钮
+
@@ -471,17 +473,19 @@ exports[`Empty > Empty mobileVue demo works fine 1`] = `
操作按钮
+
diff --git a/src/fab/__test__/__snapshots__/demo.test.jsx.snap b/src/fab/__test__/__snapshots__/demo.test.jsx.snap
index c59b7d735..1fd98d066 100644
--- a/src/fab/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/fab/__test__/__snapshots__/demo.test.jsx.snap
@@ -4,13 +4,14 @@ exports[`Fab > Fab displayVue demo works fine 1`] = `
+
`;
@@ -73,31 +75,35 @@ exports[`Fab > Fab mobileVue demo works fine 1`] = `
>
基础使用
+
进阶使用
+
@@ -106,13 +112,14 @@ exports[`Fab > Fab mobileVue demo works fine 1`] = `
+
@@ -141,13 +149,14 @@ exports[`Fab > Fab textVue demo works fine 1`] = `
+
`;
diff --git a/src/fab/__test__/__snapshots__/index.test.jsx.snap b/src/fab/__test__/__snapshots__/index.test.jsx.snap
index 36217c329..1f98d740a 100644
--- a/src/fab/__test__/__snapshots__/index.test.jsx.snap
+++ b/src/fab/__test__/__snapshots__/index.test.jsx.snap
@@ -3,13 +3,14 @@
exports[`fab > slots > : icon 1`] = `
@@ -30,5 +31,6 @@ exports[`fab > slots > : icon 1`] = `
+
`;
diff --git a/src/fab/__test__/index.test.jsx b/src/fab/__test__/index.test.jsx
index e27901a7a..4806ee474 100644
--- a/src/fab/__test__/index.test.jsx
+++ b/src/fab/__test__/index.test.jsx
@@ -43,8 +43,8 @@ describe('fab', () => {
props: { icon, buttonProps },
});
expect(wrapper.classes()).toContain(`t-button--danger`);
- expect(wrapper.classes()).toContain(`t-button--shape-circle`);
- expect(wrapper.classes()).toContain(`t-size-l`);
+ expect(wrapper.classes()).toContain(`t-button--circle`);
+ expect(wrapper.classes()).toContain(`t-button--size-large`);
});
});
diff --git a/src/form/__test__/__snapshots__/demo.test.jsx.snap b/src/form/__test__/__snapshots__/demo.test.jsx.snap
index 3df66296f..045007732 100644
--- a/src/form/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/form/__test__/__snapshots__/demo.test.jsx.snap
@@ -1590,35 +1590,37 @@ exports[`Form > Form horizontalVue demo works fine 1`] = `
>
提交
+
重置
+
@@ -1670,33 +1672,37 @@ exports[`Form > Form mobileVue demo works fine 1`] = `
>
水平排布
+
竖直排布
+
Form mobileVue demo works fine 1`] = `
>
提交
+
重置
+
@@ -4963,35 +4971,37 @@ exports[`Form > Form verticalVue demo works fine 1`] = `
>
提交
+
重置
+
diff --git a/src/image-viewer/__test__/__snapshots__/demo.test.jsx.snap b/src/image-viewer/__test__/__snapshots__/demo.test.jsx.snap
index 9bb55eab9..3d3e2c440 100644
--- a/src/image-viewer/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/image-viewer/__test__/__snapshots__/demo.test.jsx.snap
@@ -30,17 +30,19 @@ exports[`ImageViewer > ImageViewer backgroundVue demo works fine 1`] = `
显示
+
ImageViewer baseVue demo works fine 1`] = `
>
基础用法
+
ImageViewer closeBtnVue demo works fine 1`] = `
>
不展示关闭按钮
+
ImageViewer closeEventVue demo works fine 1`] = `
>
监听关闭事件
+
ImageViewer imageListVue demo works fine 1`] = `
图片列表
+
ImageViewer initialIndexVue demo works fine 1`] = `
默认展示
+
ImageViewer mobileVue demo works fine 1`] = `
>
基础用法
+
ImageViewer mobileVue demo works fine 1`] = `
>
不展示关闭按钮
+
ImageViewer mobileVue demo works fine 1`] = `
>
监听关闭事件
+
Indexes mobileVue demo works fine 1`] = `
>
字母索引
+
数字索引
+
diff --git a/src/input/__test__/__snapshots__/demo.test.jsx.snap b/src/input/__test__/__snapshots__/demo.test.jsx.snap
index b32650168..0af4e1458 100644
--- a/src/input/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/input/__test__/__snapshots__/demo.test.jsx.snap
@@ -1101,17 +1101,19 @@ exports[`Input > Input mobileVue demo works fine 1`] = `
操作按钮
+
@@ -2797,17 +2799,19 @@ exports[`Input > Input suffixVue demo works fine 1`] = `
操作按钮
+
diff --git a/src/list/__test__/__snapshots__/demo.test.jsx.snap b/src/list/__test__/__snapshots__/demo.test.jsx.snap
index 281635fc0..a297738c1 100644
--- a/src/list/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/list/__test__/__snapshots__/demo.test.jsx.snap
@@ -75,45 +75,51 @@ exports[`List > List mobileVue demo works fine 1`] = `
基础列表
+
下拉刷新
+
错误提示
+
diff --git a/src/message/__test__/__snapshots__/demo.test.jsx.snap b/src/message/__test__/__snapshots__/demo.test.jsx.snap
index 5823dd7d2..06d1597e4 100644
--- a/src/message/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/message/__test__/__snapshots__/demo.test.jsx.snap
@@ -12,78 +12,88 @@ exports[`Message > Message baseVue demo works fine 1`] = `
>
纯文字的通知
+
带图标的通知
+
带关闭的通知
+
可滚动的通知
+
带按钮的通知
+
@@ -144,78 +154,88 @@ exports[`Message > Message mobileVue demo works fine 1`] = `
>
纯文字的通知
+
带图标的通知
+
带关闭的通知
+
可滚动的通知
+
带按钮的通知
+
@@ -260,63 +280,71 @@ exports[`Message > Message mobileVue demo works fine 1`] = `
>
普通通知
+
成功通知
+
警示通知
+
错误通知
+
@@ -333,63 +361,71 @@ exports[`Message > Message themeVue demo works fine 1`] = `
>
普通通知
+
成功通知
+
警示通知
+
错误通知
+
`;
diff --git a/src/overlay/__test__/__snapshots__/demo.test.jsx.snap b/src/overlay/__test__/__snapshots__/demo.test.jsx.snap
index b5506ebc2..cdcd19e5f 100644
--- a/src/overlay/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/overlay/__test__/__snapshots__/demo.test.jsx.snap
@@ -7,17 +7,19 @@ exports[`Overlay > Overlay baseVue demo works fine 1`] = `
基础用法
+
Overlay mobileVue demo works fine 1`] = `
基础用法
+
Popup baseVue demo works fine 1`] = `
顶部弹出
+
左侧弹出
+
中间弹出
+
底部弹出
+
右侧弹出
+
Popup customCloseVue demo works fine 1`] = `
>
居中弹出层-带自定义关闭按钮
+
Popup mobileVue demo works fine 1`] = `
顶部弹出
+
左侧弹出
+
中间弹出
+
底部弹出
+
右侧弹出
+
Popup mobileVue demo works fine 1`] = `
>
底部弹出层-带标题及操作
+
Popup mobileVue demo works fine 1`] = `
>
居中弹出层-带自定义关闭按钮
+
Popup withTitleVue demo works fine 1`] = `
>
底部弹出层-带标题及操作
+
Progress mobileVue demo works fine 1`] = `
>
减少
+
Progress mobileVue demo works fine 1`] = `
/>
增加
+
@@ -984,18 +988,20 @@ exports[`Progress > Progress statusVue demo works fine 1`] = `
>
减少
+
Progress statusVue demo works fine 1`] = `
/>
增加
+
diff --git a/src/result/__test__/__snapshots__/demo.test.jsx.snap b/src/result/__test__/__snapshots__/demo.test.jsx.snap
index d9ec9a122..6f91f8fdd 100644
--- a/src/result/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/result/__test__/__snapshots__/demo.test.jsx.snap
@@ -416,18 +416,20 @@ exports[`Result > Result mobileVue demo works fine 1`] = `
>
页面位置展示
+
diff --git a/src/sticky/__test__/__snapshots__/demo.test.jsx.snap b/src/sticky/__test__/__snapshots__/demo.test.jsx.snap
index 443f0426a..4003158ab 100644
--- a/src/sticky/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/sticky/__test__/__snapshots__/demo.test.jsx.snap
@@ -13,18 +13,20 @@ exports[`Sticky > Sticky baseVue demo works fine 1`] = `
基础吸顶
+
@@ -49,18 +51,20 @@ exports[`Sticky > Sticky containerVue demo works fine 1`] = `
指定容器
+
@@ -116,18 +120,20 @@ exports[`Sticky > Sticky mobileVue demo works fine 1`] = `
基础吸顶
+
@@ -166,18 +172,20 @@ exports[`Sticky > Sticky mobileVue demo works fine 1`] = `
吸顶距离
+
@@ -221,18 +229,20 @@ exports[`Sticky > Sticky mobileVue demo works fine 1`] = `
指定容器
+
@@ -257,18 +267,20 @@ exports[`Sticky > Sticky offsetVue demo works fine 1`] = `
吸顶距离
+
diff --git a/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap b/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap
index 56f8f7128..ee67ef0eb 100644
--- a/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap
@@ -103,17 +103,19 @@ exports[`SwipeCell > SwipeCell bindVue demo works fine 1`] = `
删除
+
@@ -158,17 +160,19 @@ exports[`SwipeCell > SwipeCell btnsVue demo works fine 1`] = `
选择
+
@@ -206,31 +210,35 @@ exports[`SwipeCell > SwipeCell btnsVue demo works fine 1`] = `
收藏
+
删除
+
@@ -295,19 +303,20 @@ exports[`SwipeCell > SwipeCell contentVue demo works fine 1`] = `
收藏
+
@@ -424,33 +433,37 @@ exports[`SwipeCell > SwipeCell disabledVue demo works fine 1`] = `
收藏
+
删除
+
@@ -495,17 +508,19 @@ exports[`SwipeCell > SwipeCell eventVue demo works fine 1`] = `
选择
+
@@ -549,33 +564,37 @@ exports[`SwipeCell > SwipeCell eventVue demo works fine 1`] = `
删除
+
收藏
+
@@ -668,17 +687,19 @@ exports[`SwipeCell > SwipeCell leftCardVue demo works fine 1`] = `
删除
+
@@ -758,17 +779,19 @@ exports[`SwipeCell > SwipeCell leftCardVue demo works fine 1`] = `
删除
+
@@ -858,48 +881,54 @@ exports[`SwipeCell > SwipeCell leftMoreMenuVue demo works fine 1`] = `
收藏
+
编辑
+
删除
+
@@ -970,48 +999,54 @@ exports[`SwipeCell > SwipeCell leftMoreMenuVue demo works fine 1`] = `
收藏
+
编辑
+
删除
+
@@ -1097,17 +1132,19 @@ exports[`SwipeCell > SwipeCell leftOneMenuVue demo works fine 1`] = `
删除
+
@@ -1178,17 +1215,19 @@ exports[`SwipeCell > SwipeCell leftOneMenuVue demo works fine 1`] = `
删除
+
@@ -1278,33 +1317,37 @@ exports[`SwipeCell > SwipeCell leftTwoMenuVue demo works fine 1`] = `
编辑
+
删除
+
@@ -1375,33 +1418,37 @@ exports[`SwipeCell > SwipeCell leftTwoMenuVue demo works fine 1`] = `
编辑
+
删除
+
@@ -1497,17 +1544,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
删除
+
@@ -1578,17 +1627,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
删除
+
@@ -1671,33 +1722,37 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
编辑
+
删除
+
@@ -1768,33 +1823,37 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
编辑
+
删除
+
@@ -1875,48 +1934,54 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
收藏
+
编辑
+
删除
+
@@ -1987,48 +2052,54 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
收藏
+
编辑
+
删除
+
@@ -2116,17 +2187,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
删除
+
@@ -2206,17 +2279,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
删除
+
@@ -2260,17 +2335,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
选择
+
@@ -2341,17 +2418,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
选择
+
@@ -2502,17 +2581,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
删除
+
@@ -2574,19 +2655,20 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
收藏
+
@@ -2700,33 +2782,37 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
收藏
+
删除
+
@@ -2768,17 +2854,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
选择
+
@@ -2816,31 +2904,35 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
收藏
+
删除
+
@@ -2882,17 +2974,19 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
选择
+
@@ -2936,33 +3030,37 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
删除
+
收藏
+
@@ -3010,17 +3108,19 @@ exports[`SwipeCell > SwipeCell rightMenuVue demo works fine 1`] = `
选择
+
@@ -3091,17 +3191,19 @@ exports[`SwipeCell > SwipeCell rightMenuVue demo works fine 1`] = `
选择
+
diff --git a/src/swiper/__test__/__snapshots__/demo.test.jsx.snap b/src/swiper/__test__/__snapshots__/demo.test.jsx.snap
index 3671504b6..7e1db993c 100644
--- a/src/swiper/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/swiper/__test__/__snapshots__/demo.test.jsx.snap
@@ -222,48 +222,54 @@ exports[`Swiper > Swiper controlVue demo works fine 1`] = `
手动指定页数:
第一页
+
第二页
+
第三页
+
Toast baseVue demo works fine 1`] = `
>
纯文本
+
多行文字
+
带横向图标
+
带竖向图标
+
加载状态
+
`;
@@ -83,31 +93,35 @@ exports[`Toast > Toast closeVue demo works fine 1`] = `
>
显示提示
+
关闭提示
+
`;
@@ -118,17 +132,19 @@ exports[`Toast > Toast coverVue demo works fine 1`] = `
>
禁止滑动和点击
+
`;
@@ -173,73 +189,83 @@ exports[`Toast > Toast mobileVue demo works fine 1`] = `
>
纯文本
+
多行文字
+
带横向图标
+
带竖向图标
+
加载状态
+
@@ -271,45 +297,51 @@ exports[`Toast > Toast mobileVue demo works fine 1`] = `
>
成功提示
+
警告提示
+
错误提示
+
@@ -341,17 +373,19 @@ exports[`Toast > Toast mobileVue demo works fine 1`] = `
>
禁止滑动和点击
+
@@ -383,31 +417,35 @@ exports[`Toast > Toast mobileVue demo works fine 1`] = `
>
显示提示
+
关闭提示
+
@@ -422,45 +460,51 @@ exports[`Toast > Toast themeVue demo works fine 1`] = `
>
成功提示
+
警告提示
+
错误提示
+
`;