15 lines
378 B
JavaScript
15 lines
378 B
JavaScript
import { ref } from 'vue'
|
|
|
|
export const showCreateDocumentModal = ref(false)
|
|
export const createDocumentDoctype = ref('')
|
|
export const createDocumentData = ref({})
|
|
|
|
export function createDocument(doctype, obj, close) {
|
|
if (doctype) {
|
|
close()
|
|
createDocumentDoctype.value = doctype
|
|
createDocumentData.value = obj || {}
|
|
showCreateDocumentModal.value = true
|
|
}
|
|
}
|