diff --git a/example/pages/button/index.wxml b/example/pages/button/index.wxml index 495cf2e7..c91445c1 100644 --- a/example/pages/button/index.wxml +++ b/example/pages/button/index.wxml @@ -34,5 +34,4 @@ 小型按钮 迷你按钮 - diff --git a/packages/button/index.ts b/packages/button/index.ts index ccc246e9..94b03143 100644 --- a/packages/button/index.ts +++ b/packages/button/index.ts @@ -24,21 +24,6 @@ VantComponent({ } }, - computed: { - classes(): string { - const { type, size, block, plain, round, square, loading, disabled } = this.data; - return this.classNames('van-button', `van-button--${type}`, `van-button--${size}`, { - 'van-button--block': block, - 'van-button--round': round, - 'van-button--plain': plain, - 'van-button--square': square, - 'van-button--loading': loading, - 'van-button--disabled': disabled, - 'van-button--unclickable': disabled || loading - }); - } - }, - methods: { onClick() { if (!this.data.disabled && !this.data.loading) { diff --git a/packages/button/index.wxml b/packages/button/index.wxml index 3480f938..63817067 100644 --- a/packages/button/index.wxml +++ b/packages/button/index.wxml @@ -1,7 +1,9 @@ + +