mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-22 20:18:29 +00:00
perf(modal-drawer): replace the scrollbar assembly
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getCurrentInstance, reactive, shallowRef, watchEffect } from 'vue';
|
||||
|
||||
import type { Ref } from 'vue';
|
||||
interface Params {
|
||||
excludeListeners?: boolean;
|
||||
excludeKeys?: string[];
|
||||
@@ -12,7 +12,7 @@ export function entries<T>(obj: Hash<T>): [string, T][] {
|
||||
return Object.keys(obj).map((key: string) => [key, obj[key]]);
|
||||
}
|
||||
|
||||
export function useAttrs(params: Params = {}) {
|
||||
export function useAttrs(params: Params = {}): Ref<Recordable> | {} {
|
||||
const instance = getCurrentInstance();
|
||||
if (!instance) return {};
|
||||
|
||||
|
Reference in New Issue
Block a user