package list from viandwi24

This commit is contained in:
Kar
2023-04-28 09:58:09 +05:30
commit 4125135289
108 changed files with 27411 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { WritableComputedRef } from 'vue'
export const useSyncProps = <T>(
props: any,
key: string,
emit: any
): WritableComputedRef<T> => {
return computed({
get() {
return props[key]
},
set(value) {
emit(`update:${key}`, value)
},
})
}