diff --git a/src/api/common/tableButton.ts b/src/api/common/tableButton.ts new file mode 100644 index 0000000..f186fc9 --- /dev/null +++ b/src/api/common/tableButton.ts @@ -0,0 +1,21 @@ +export interface tableButton { + control: any; + id?: string; + name?: string; + field?: string; + type?: string; + attribute:string; + pattern?: string; + fieldClass?: string; + activeValue?: string; + inactiveValue?: string; + options?: optionsInfo[]; + config?:any; + label?: string; +} + + +export interface optionsInfo { + label: string; + value: string; +} \ No newline at end of file diff --git a/src/api/lowCode/form/type.ts b/src/api/lowCode/form/type.ts index 40338af..1df198e 100644 --- a/src/api/lowCode/form/type.ts +++ b/src/api/lowCode/form/type.ts @@ -70,6 +70,7 @@ export interface tableFormStruct { }, dict: Object, refreshTable: boolean, + isOpen:boolean, view:{ list:{ status:boolean, diff --git a/src/components/lowCode/assistant/departmentOrg.vue b/src/components/lowCode/assistant/departmentOrg.vue index 10c886e..8b83733 100644 --- a/src/components/lowCode/assistant/departmentOrg.vue +++ b/src/components/lowCode/assistant/departmentOrg.vue @@ -188,20 +188,23 @@ const orgTreeProps ={ } \ No newline at end of file diff --git a/src/components/lowCode/assistant/digitpage.vue b/src/components/lowCode/assistant/digitpage.vue index 4daf9d5..9dbe678 100644 --- a/src/components/lowCode/assistant/digitpage.vue +++ b/src/components/lowCode/assistant/digitpage.vue @@ -49,9 +49,53 @@ const getFormItemInputStyle = (ele: any,sty:number) => { return AnalysisInputCss(ele?.inputStyle,sty) } } +const config = computed(() => { + return props.data.config || {} +}) +/****input slot处理***/ +const getInputSlot = (key?: string) => { + const slot = key === 'p' ? config.value.prepend : config.value.append + const has = slot.indexOf('key:') === 0 + if (!has) { + return false + } + const slotKey = slot.replace('key:', '') + const control = getControlByName(slotKey) + if (!control || Object.keys(control)?.length === 0) { + return false + } + return control +} \ No newline at end of file diff --git a/src/components/lowCode/assistant/founder.vue b/src/components/lowCode/assistant/founder.vue index 6fd5cc8..295601c 100644 --- a/src/components/lowCode/assistant/founder.vue +++ b/src/components/lowCode/assistant/founder.vue @@ -171,7 +171,9 @@ const getFormFounder = (val: any) => { } \ No newline at end of file diff --git a/src/components/lowCode/assistant/founderTime.vue b/src/components/lowCode/assistant/founderTime.vue index 3acb144..99872ab 100644 --- a/src/components/lowCode/assistant/founderTime.vue +++ b/src/components/lowCode/assistant/founderTime.vue @@ -174,8 +174,12 @@ const getCurrentTime = () => { } \ No newline at end of file diff --git a/src/components/lowCode/assistant/quillEditor.vue b/src/components/lowCode/assistant/quillEditor.vue new file mode 100644 index 0000000..b437ae4 --- /dev/null +++ b/src/components/lowCode/assistant/quillEditor.vue @@ -0,0 +1,121 @@ + + + + \ No newline at end of file diff --git a/src/components/lowCode/assistant/quillEditorNew.vue b/src/components/lowCode/assistant/quillEditorNew.vue new file mode 100644 index 0000000..cef6080 --- /dev/null +++ b/src/components/lowCode/assistant/quillEditorNew.vue @@ -0,0 +1,280 @@ + + + + \ No newline at end of file diff --git a/src/components/lowCode/assistant/tinymce.vue b/src/components/lowCode/assistant/tinymce.vue index 81ca96b..bf81099 100644 --- a/src/components/lowCode/assistant/tinymce.vue +++ b/src/components/lowCode/assistant/tinymce.vue @@ -4,6 +4,8 @@ @ 备注: 富文本 --> \ No newline at end of file diff --git a/src/components/lowCode/formItem.vue b/src/components/lowCode/formItem.vue index b4e3c70..97eaf69 100644 --- a/src/components/lowCode/formItem.vue +++ b/src/components/lowCode/formItem.vue @@ -20,7 +20,7 @@ import wx from 'weixin-js-sdk' import request from '@/utils/axios/index' import { Md5 } from 'ts-md5' import { debounce } from '@/utils/lowCode/item/index' - +import { uploadUrl } from '@/api/lowCode/form/fieldUnit' //辅助控件 import OrgCitys from '@/components/lowCode/assistant/orgCitys.vue' import UploadPage from '@/components/lowCode/assistant/uploadPage.vue' @@ -43,7 +43,8 @@ import UrlLink from '@/components/lowCode/assistant/urlLink.vue' import DepartmentOrg from '@/components/lowCode/assistant/departmentOrg.vue' import DigitpagePage from '@/components/lowCode/assistant/digitpage.vue' import OrgCentent from '@/components/lowCode/assistant/org.vue' - +import Tinymce from '@/components/lowCode/assistant/tinymce.vue' +import QuillEditor from '@/components/lowCode/assistant/quillEditorNew.vue' const props = withDefaults( @@ -505,6 +506,9 @@ const currentComponent = computed(() => { if (props.data.type === "baidumap") { return markRaw(BaiDuMap); } + if (props.data.type === "tinymce"){ + return markRaw(QuillEditor); + } if (props.data.type === "owner") { return markRaw(OwnerPage); } @@ -549,6 +553,7 @@ const currentComponent = computed(() => { } return `el-${props.data.type}` }) +