Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit 5972d62

Browse files
author
pengshanglong
committed
fix(AtModal): Button 改为 AtButton
1 parent 51bdc60 commit 5972d62

File tree

1 file changed

+7
-5
lines changed
  • packages/taro-ui-vue/src/components/modal

1 file changed

+7
-5
lines changed

packages/taro-ui-vue/src/components/modal/index.vue

+7-5
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
</view>
2323
</ModalContent>
2424
<ModalAction v-if="cancelText || confirmText" isSimple>
25-
<Button
25+
<AtButton
2626
v-if="cancelText"
2727
@tap="handleCancel"
2828
@click="handleCancel"
2929
>
3030
{{ cancelText }}
31-
</Button>
32-
<Button
31+
</AtButton>
32+
<AtButton
3333
v-if="confirmText"
3434
@tap="handleConfirm"
3535
@click="handleConfirm"
3636
>
3737
{{ confirmText }}
38-
</Button>
38+
</AtButton>
3939
</ModalAction>
4040
</view>
4141
</view>
@@ -52,14 +52,16 @@
5252
import ModalAction from './action/index.vue'
5353
import ModalContent from './content/index.vue'
5454
import ModalHeader from './header/index.vue'
55+
import AtButton from '../button/index.vue'
5556
import AtModal from './index'
5657
export default {
5758
name: 'AtModal',
5859
mixins: [AtModal],
5960
components: {
6061
ModalAction,
6162
ModalContent,
62-
ModalHeader
63+
ModalHeader,
64+
AtButton
6365
}
6466
}
6567
</script>

0 commit comments

Comments
 (0)