2024-01-09 16:37:50 +08:00
|
|
|
import { computed as _computed } from '@vue/reactivity'
|
2022-01-16 18:22:18 +08:00
|
|
|
import { isInSSRComponentSetup } from './component'
|
|
|
|
|
2023-05-19 07:49:28 +08:00
|
|
|
export const computed: typeof _computed = (
|
2024-01-09 16:37:50 +08:00
|
|
|
getterOrOptions: any,
|
2023-05-19 07:49:28 +08:00
|
|
|
debugOptions?: any,
|
|
|
|
) => {
|
2024-01-09 16:37:50 +08:00
|
|
|
// @ts-expect-error
|
2022-01-16 18:22:18 +08:00
|
|
|
return _computed(getterOrOptions, debugOptions, isInSSRComponentSetup)
|
2023-05-19 07:49:28 +08:00
|
|
|
}
|