chore: prefer using extend (#8531)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createApp, reactive, Component, nextTick } from 'vue';
|
||||
import { extend } from '../utils';
|
||||
import { useExpose } from '../composables/use-expose';
|
||||
|
||||
export function usePopupState() {
|
||||
@@ -11,7 +12,7 @@ export function usePopupState() {
|
||||
};
|
||||
|
||||
const open = (props: Record<string, any>) => {
|
||||
Object.assign(state, props);
|
||||
extend(state, props);
|
||||
nextTick(() => toggle(true));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user