Commit c57dea0438fc5ba0fbf1716b9e76e2fba1f33f84
1 parent
9b6f37ca
fix(pop-confirm-button): fix responsive failure #246
Showing
1 changed file
with
3 additions
and
1 deletions
src/components/Button/src/PopConfirmButton.vue
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | import { useI18n } from '/@/hooks/web/useI18n'; | 7 | import { useI18n } from '/@/hooks/web/useI18n'; |
8 | import { extendSlots } from '/@/utils/helper/tsxHelper'; | 8 | import { extendSlots } from '/@/utils/helper/tsxHelper'; |
9 | import { omit } from 'lodash-es'; | 9 | import { omit } from 'lodash-es'; |
10 | + import { useAttrs } from '/@/hooks/core/useAttrs'; | ||
10 | 11 | ||
11 | export default defineComponent({ | 12 | export default defineComponent({ |
12 | name: 'PopButton', | 13 | name: 'PopButton', |
@@ -18,8 +19,9 @@ | @@ -18,8 +19,9 @@ | ||
18 | okText: propTypes.string, | 19 | okText: propTypes.string, |
19 | cancelText: propTypes.string, | 20 | cancelText: propTypes.string, |
20 | }, | 21 | }, |
21 | - setup(props, { slots, attrs }) { | 22 | + setup(props, { slots }) { |
22 | const { t } = useI18n(); | 23 | const { t } = useI18n(); |
24 | + const attrs = useAttrs(); | ||
23 | 25 | ||
24 | const getBindValues = computed(() => { | 26 | const getBindValues = computed(() => { |
25 | const popValues = Object.assign( | 27 | const popValues = Object.assign( |