提交
This commit is contained in:
1 parent
f7d1004e6b
commit
310b2efe8a
91 files changed
+14420
-10840
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import FcDesigner from '@form-create/designer'
|
||||
import OaPostSelect from '@/components/oa-approval/OaPostSelect.vue'
|
||||
import { postSelectDragRule } from '@/utils/oa-post-select-rule'
|
||||
|
||||
const FLAG = '__oaPostSelectConfigured'
|
||||
|
||||
export function setupOaPostSelect(formCreate?: { component?: (name: string, c: unknown) => void }) {
|
||||
if ((FcDesigner as any)[FLAG]) return
|
||||
FcDesigner.component('post', OaPostSelect)
|
||||
if (typeof formCreate?.component === 'function') {
|
||||
formCreate.component('post', OaPostSelect)
|
||||
}
|
||||
if (typeof FcDesigner.addDragRule === 'function') {
|
||||
FcDesigner.addDragRule(postSelectDragRule)
|
||||
}
|
||||
;(FcDesigner as any)[FLAG] = true
|
||||
}
|
||||
Reference in new issue
Block a user