fix(pop-confirm-button): fix responsive failure #246

This commit is contained in:
vben 2021-02-06 23:54:31 +08:00
parent 9b6f37caef
commit c57dea0438

View File

@ -7,6 +7,7 @@
import { useI18n } from '/@/hooks/web/useI18n';
import { extendSlots } from '/@/utils/helper/tsxHelper';
import { omit } from 'lodash-es';
import { useAttrs } from '/@/hooks/core/useAttrs';
export default defineComponent({
name: 'PopButton',
@ -18,8 +19,9 @@
okText: propTypes.string,
cancelText: propTypes.string,
},
setup(props, { slots, attrs }) {
setup(props, { slots }) {
const { t } = useI18n();
const attrs = useAttrs();
const getBindValues = computed(() => {
const popValues = Object.assign(