Skip to content

Commit

Permalink
pref(packages/nuxt-layer-shared): reexport useSharedForm
Browse files Browse the repository at this point in the history
  • Loading branch information
byronogis committed Dec 3, 2024
1 parent 557c81e commit a7a536b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import type {
DataTablePageEvent,
} from 'primevue/datatable'
import { FilterMatchMode } from '@primevue/core/api'
import { useSharedForm } from '@project-starter/shared/composables'
import SakaiForm from '../Form/SakaiForm.vue'
defineOptions({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
F extends SharedFormField<any, any, any, SakaiFormFieldType, SakaiFormFieldExtra>
"
>
import type { SharedFormField } from '@project-starter/shared/composables'
import SakaiUploader from '../SakaiUploader.vue'
const props = defineProps<{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
F extends SharedFormField<any, any, any, SakaiFormFieldType, SakaiFormFieldExtra>
"
>
import type { SharedFormField } from '@project-starter/shared/composables'
const props = defineProps<{
field: F
}>()
Expand Down
6 changes: 0 additions & 6 deletions packages/nuxt-layer-sakai/types/form.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import type {
SharedFormData,
SharedFormFields,
SharedFormGroup,
SharedFormGroups,
} from '@project-starter/shared/composables'
import type {
FilePondOptions,
ProcessServerConfigFunction,
Expand Down
3 changes: 3 additions & 0 deletions packages/nuxt-layer-shared/composables/useSharedForm.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// 从 shared 包重新导出以可被自动导入
export * from '@project-starter/shared/composables/useSharedForm'
export * from '@project-starter/shared/types/form'

0 comments on commit a7a536b

Please # to comment.