bmw-form-render 0.0.317-beta.2 → 0.0.317-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AntiCheating-BO10u3mx.cjs → AntiCheating-CjicTnua.cjs} +1 -1
- package/dist/{AppointConfig-B6lSfAhk.cjs → AppointConfig-C5inOVLl.cjs} +1 -1
- package/dist/{BasicInputSetting-DzoLK3Q0.cjs → BasicInputSetting-CWSKIfdr.cjs} +1 -1
- package/dist/{BasicSelectSetting-CriOJHFC.cjs → BasicSelectSetting-DD8lYQYl.cjs} +1 -1
- package/dist/{Button-CvNHgvjt.cjs → Button--NZAZyk0.cjs} +1 -1
- package/dist/{ButtonConfig-Df3HvL_8.cjs → ButtonConfig-BRc38edw.cjs} +1 -1
- package/dist/{CacheIcon-C3A6xy2g.cjs → CacheIcon-CKafKstM.cjs} +1 -1
- package/dist/{Carousel-sa1MRrpu.cjs → Carousel-7mlru_qj.cjs} +1 -1
- package/dist/{CarouselSetting-BVpyYKIt.cjs → CarouselSetting-CHnn6zZg.cjs} +1 -1
- package/dist/{CheckEntrySetting-DukkCjU6.cjs → CheckEntrySetting-BKNVk1Zc.cjs} +1 -1
- package/dist/{CheckboxRange.vue_vue_type_script_setup_true_lang-B1j9jC1G.cjs → CheckboxRange.vue_vue_type_script_setup_true_lang-BZVjKSYY.cjs} +1 -1
- package/dist/{CheckboxSetting-bBkk63hN.cjs → CheckboxSetting-CcPmuVUi.cjs} +1 -1
- package/dist/{Choice-BvU7lqk8.cjs → Choice-CrO_daGD.cjs} +1 -1
- package/dist/{Column.vue_vue_type_script_setup_true_lang-BpkRwOSV.cjs → Column.vue_vue_type_script_setup_true_lang-C4q5EGBo.cjs} +1 -1
- package/dist/{ColumnNumOption.vue_vue_type_script_setup_true_lang-BcaKMGlw.cjs → ColumnNumOption.vue_vue_type_script_setup_true_lang-DzY1FxE4.cjs} +1 -1
- package/dist/{CommonRadioSetting-1v2gGGBs.cjs → CommonRadioSetting-Bv13ye0M.cjs} +1 -1
- package/dist/{ConfirmCode-NOo0KAns.cjs → ConfirmCode-DGIv9xPH.cjs} +1 -1
- package/dist/{ContactUs-CYoIMXqu.cjs → ContactUs-BB1pVFkq.cjs} +1 -1
- package/dist/{ContactUs-BoLANJgr.cjs → ContactUs-DN6bZ7TH.cjs} +1 -1
- package/dist/{ContactUsSetting-CUpy6Zlk.cjs → ContactUsSetting-DpipQcfs.cjs} +1 -1
- package/dist/{CrowdManagement-DnbSt2g4.cjs → CrowdManagement-aSUitIKX.cjs} +1 -1
- package/dist/{DataCollectPanel-C0QwjCXY.cjs → DataCollectPanel-XBP2Lz18.cjs} +1 -1
- package/dist/{DataSubmitPanel-nWnpzs9t.cjs → DataSubmitPanel-CWO8M0-m.cjs} +1 -1
- package/dist/{DateSetting-CncBQFKU.cjs → DateSetting-DpO3WaQA.cjs} +1 -1
- package/dist/{DisplayRuleSetting-Vd70pYL1.cjs → DisplayRuleSetting-Ck7rWLoj.cjs} +1 -1
- package/dist/{DynamicTableSetting-DL4mdFIS.cjs → DynamicTableSetting-C4BQh1HY.cjs} +1 -1
- package/dist/{EduCheckboxSetting-BprdYgoC.cjs → EduCheckboxSetting-CGpKmclI.cjs} +1 -1
- package/dist/{EmailInputSetting-DjFVnJH7.cjs → EmailInputSetting-C65xut7p.cjs} +1 -1
- package/dist/{ExamBar-BdwsjFkP.cjs → ExamBar-DcTpJpCd.cjs} +1 -1
- package/dist/{FileSetting-Dqm8w5wa.cjs → FileSetting-BfI70sc_.cjs} +1 -1
- package/dist/{FillBlank-JyGFcDAF.cjs → FillBlank-Cxou1DpD.cjs} +1 -1
- package/dist/{FormProgress-DboUPfSf.cjs → FormProgress-CIrYlVq3.cjs} +1 -1
- package/dist/{GainConfig-DZamF7VR.cjs → GainConfig-D8n151vU.cjs} +1 -1
- package/dist/{Geolocation-DkqmlExd.cjs → Geolocation-BE68G-F1.cjs} +1 -1
- package/dist/{IdCardInputSetting-OdlAyXiF.cjs → IdCardInputSetting-Cnm3V_-B.cjs} +1 -1
- package/dist/ImageSetting-B1Y286zu.cjs +1 -0
- package/dist/{ImgCard-1Vys7QxZ.cjs → ImgCard-DAfjlsrC.cjs} +1 -1
- package/dist/{ImgCheckboxSetting-CrNiYHsZ.cjs → ImgCheckboxSetting-C95oWEcZ.cjs} +1 -1
- package/dist/{ImgRadioSetting-ANW1EGlO.cjs → ImgRadioSetting-B3uTSDue.cjs} +1 -1
- package/dist/{ImportantOption.vue_vue_type_script_setup_true_lang-DwsM6a6K.cjs → ImportantOption.vue_vue_type_script_setup_true_lang-jrntYGRh.cjs} +1 -1
- package/dist/{Input-Cfee9UmW.cjs → Input-CnCmgqk8.cjs} +1 -1
- package/dist/{InputTimer-RsSFoyhi.cjs → InputTimer-yXjKSjEL.cjs} +1 -1
- package/dist/{LengthRangeOption.vue_vue_type_script_setup_true_lang-QBxWodC3.cjs → LengthRangeOption.vue_vue_type_script_setup_true_lang-CpoXdvn5.cjs} +1 -1
- package/dist/{LocationSetting-C1atZjIh.cjs → LocationSetting-D0I5Fvgy.cjs} +1 -1
- package/dist/{MapNavSetting-CItRxOXE.cjs → MapNavSetting-CJ9SRZDh.cjs} +1 -1
- package/dist/{MapNavigation-PViq2eEA.cjs → MapNavigation-Cg0vmbOp.cjs} +1 -1
- package/dist/{MessagePush-BEjLfZfR.cjs → MessagePush-Bx5EQCu3.cjs} +1 -1
- package/dist/{MultiSelectSetting-BcNh9vYH.cjs → MultiSelectSetting-BvKczFL4.cjs} +1 -1
- package/dist/{NumRange-DM_2TmHv.cjs → NumRange-o3V6Bn9F.cjs} +1 -1
- package/dist/{NumberFillBlank-C3x-ouqk.cjs → NumberFillBlank-BrYWDUrK.cjs} +1 -1
- package/dist/{NumberInputSetting-CAOb2yZ0.cjs → NumberInputSetting-D0cLPeol.cjs} +1 -1
- package/dist/{OcrSetting-DHVz0vi3.cjs → OcrSetting-B_BO-Ug2.cjs} +1 -1
- package/dist/{OcrWidget-DgEkMGZ_.cjs → OcrWidget-BV1IczLP.cjs} +1 -1
- package/dist/{OptionRandom.vue_vue_type_script_setup_true_lang-B0qSM7pn.cjs → OptionRandom.vue_vue_type_script_setup_true_lang-Drunu9p1.cjs} +1 -1
- package/dist/{PageHeader-D1Yt-5sU.cjs → PageHeader-aJFmgRVs.cjs} +1 -1
- package/dist/{PageHeaderSetting-C5zjGRY2.cjs → PageHeaderSetting-C6nIq5o-.cjs} +1 -1
- package/dist/{Pagination-DAuioOUL.cjs → Pagination-CHvS_qs1.cjs} +1 -1
- package/dist/{PayConfig-B7OmoU6w.cjs → PayConfig-DFS3g8yp.cjs} +1 -1
- package/dist/{PayMethod-CnXVC36c.cjs → PayMethod-DW5p2bEl.cjs} +1 -1
- package/dist/{PhoneInputSetting-Cix8YprM.cjs → PhoneInputSetting-DVy7tEt3.cjs} +1 -1
- package/dist/{PlaceholderOption.vue_vue_type_script_setup_true_lang-hgZvqzz-.cjs → PlaceholderOption.vue_vue_type_script_setup_true_lang-CMu1YEhp.cjs} +1 -1
- package/dist/{PreparePlaceholderOption.vue_vue_type_script_setup_true_lang-CXu8jvhF.cjs → PreparePlaceholderOption.vue_vue_type_script_setup_true_lang-ocgS7CE2.cjs} +1 -1
- package/dist/{PreparerNameSetting-B8A5dPeJ.cjs → PreparerNameSetting-DMPniu2Z.cjs} +1 -1
- package/dist/{PreparerPhoneInputSetting-C-7Ccdaf.cjs → PreparerPhoneInputSetting-BDV-GqIe.cjs} +1 -1
- package/dist/{PreparerSetting-CPPPgYx-.cjs → PreparerSetting-Dp85ZYCD.cjs} +1 -1
- package/dist/{RadioSetting-DdkZmVjo.cjs → RadioSetting-CrnXa0WF.cjs} +1 -1
- package/dist/{RatingSetting-BnH8v792.cjs → RatingSetting-BbtrtYO9.cjs} +1 -1
- package/dist/{SearchAndShare-BWIWjMG0.cjs → SearchAndShare-UAy_eZNP.cjs} +1 -1
- package/dist/{SetpayModal-IZBg_uNO.cjs → SetpayModal-SykI_Yfo.cjs} +1 -1
- package/dist/{ShareQRCode-Cxkb5HbA.cjs → ShareQRCode-D3i_9ZA5.cjs} +1 -1
- package/dist/{TableSetting-C4_Y0pxl.cjs → TableSetting-B3oJ2lVa.cjs} +1 -1
- package/dist/{TestSettingPanel-CuSLEsIh.cjs → TestSettingPanel-D_i85W5q.cjs} +1 -1
- package/dist/{ViewVoteRate-D1SkgZxs.cjs → ViewVoteRate-B3P1p71K.cjs} +1 -1
- package/dist/{WatermarkSetting-CGrVu4cZ.cjs → WatermarkSetting-CHNNp-w3.cjs} +1 -1
- package/dist/bmw-form-render.cjs +1 -1
- package/dist/iconfont-D1vBY9pe.cjs +1 -0
- package/dist/{index-D8e7erhN.cjs → index-8UvMpHX2.cjs} +1 -1
- package/dist/{index-opE54l5f.cjs → index-BLyEu5ka.cjs} +1 -1
- package/dist/{index-EA6HYeaH.cjs → index-BYwuWfzx.cjs} +1 -1
- package/dist/{index-CksXi6zA.cjs → index-BnSS1tC5.cjs} +1 -1
- package/dist/{index-CQDMAuzo.cjs → index-Bqg1LehR.cjs} +1 -1
- package/dist/{index-K1a-IrAW.cjs → index-CsUo-7Xm.cjs} +1 -1
- package/dist/{index-cyGousry.cjs → index-CxJ86Ru0.cjs} +1 -1
- package/dist/index-h0-Plp-9.cjs +1 -0
- package/dist/main-CCeQTdQJ.cjs +146 -0
- package/dist/{style-DQkOe1fS.cjs → style-D_tQsuNx.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/app/right-side/modules/ImageSetting.vue.d.ts +2 -0
- package/dist/types/logic/active-manager.d.ts +1 -1
- package/dist/types/logic/getters.d.ts +6 -0
- package/dist/types/logic/request.d.ts +29 -0
- package/dist/types/logic/verify-util.d.ts +5 -0
- package/dist/types/logic/widget-manager.d.ts +2 -2
- package/dist/types/main.d.ts +1 -1
- package/dist/types/widgets/image/index.d.ts +38 -0
- package/dist/types/widgets/image/src/Image.vue.d.ts +35 -0
- package/dist/types/widgets/image/src/constant.d.ts +43 -0
- package/dist/{useVipDialog-gGFy15bq.cjs → useVipDialog-B4ukXS7f.cjs} +1 -1
- package/dist/{vue-quill.esm-bundler-C9uz4tpr.cjs → vue-quill.esm-bundler-BtvezVXO.cjs} +1 -1
- package/package.json +1 -1
- package/dist/iconfont-CRr0eauA.cjs +0 -1
- package/dist/index-BzfvH5Of.cjs +0 -1
- package/dist/main-CX7NYh1a.cjs +0 -146
|
@@ -16,7 +16,7 @@ export declare const activeWidget: import('vue').ComputedRef<{
|
|
|
16
16
|
attrs: AnyRecord;
|
|
17
17
|
} | TWidget<"contactUs"> | null>;
|
|
18
18
|
export declare const activeWidgetIndex: import('vue').ComputedRef<number | null>;
|
|
19
|
-
export declare const activeWidgetType: import('vue').ComputedRef<"textarea" | "button" | "file" | "resume" | "work" | "sort" | "basicInput" | "fillBlank" | "emailInput" | "idCardInput" | "shortAnswer" | "phoneInput" | "numberInput" | "nameInput" | "companyInput" | "departmentInput" | "positionInput" | "ageInput" | "basicSelect" | "multiSelect" | "businessSelect" | "nationSelect" | "regionSelect" | "rate" | "date" | "basicRadio" | "checkbox" | "imgRadio" | "imgCheckbox" | "occupationRadio" | "sexRadio" | "educationRadio" | "ageRadio" | "geolocation" | "mapNavigation" | "carousel" | "pageHeader" | "contactUs" | "pagination" | "description" | "eduRadio" | "fillBlank2" | "shortAnswer2" | "numberFillBlank" | "eduCheckbox" | "eduJudgement" | "eduImgRadio" | "eduImgCheckbox" | "eduSelect" | "appoint" | "gainWithPic" | "gainWithoutPic" | "groupTitle" | "preparerNameInput" | "preparerIdCardInput" | "preparerPhoneInput" | "preparerWorkIdInput" | "watermark" | "location" | "checkEntry" | "basicTable" | "dynamicTable" | "idCardOcr" | "bankCardOcr" | "vehicleLicenseOcr" | "driverLicenseOcr" | "businessLicenseOcr" | "specialCertificateOcr" | "vatInvoiceOcr" | "customTableOcr" | undefined>;
|
|
19
|
+
export declare const activeWidgetType: import('vue').ComputedRef<"textarea" | "button" | "file" | "resume" | "work" | "sort" | "basicInput" | "fillBlank" | "emailInput" | "idCardInput" | "shortAnswer" | "phoneInput" | "numberInput" | "nameInput" | "companyInput" | "departmentInput" | "positionInput" | "ageInput" | "basicSelect" | "multiSelect" | "businessSelect" | "nationSelect" | "regionSelect" | "rate" | "date" | "basicRadio" | "checkbox" | "imgRadio" | "imgCheckbox" | "occupationRadio" | "sexRadio" | "educationRadio" | "ageRadio" | "geolocation" | "mapNavigation" | "carousel" | "pageHeader" | "contactUs" | "pagination" | "description" | "eduRadio" | "fillBlank2" | "shortAnswer2" | "numberFillBlank" | "eduCheckbox" | "eduJudgement" | "eduImgRadio" | "eduImgCheckbox" | "eduSelect" | "appoint" | "gainWithPic" | "gainWithoutPic" | "groupTitle" | "preparerNameInput" | "preparerIdCardInput" | "preparerPhoneInput" | "preparerWorkIdInput" | "watermark" | "location" | "checkEntry" | "image" | "basicTable" | "dynamicTable" | "idCardOcr" | "bankCardOcr" | "vehicleLicenseOcr" | "driverLicenseOcr" | "businessLicenseOcr" | "specialCertificateOcr" | "vatInvoiceOcr" | "customTableOcr" | undefined>;
|
|
20
20
|
export declare const activeWidgetAttrs: import('vue').ComputedRef<AnyRecord | undefined>;
|
|
21
21
|
export declare const activeWidgetInfo: import('vue').ComputedRef<WidgetInfo | null>;
|
|
22
22
|
export declare const setActiveWidget: (widgetId: string | null) => void;
|
|
@@ -29,6 +29,12 @@ export declare const getPageList: (isEditor: boolean) => Widget[][];
|
|
|
29
29
|
* 获取组件分页后的真实索引
|
|
30
30
|
*/
|
|
31
31
|
export declare const getWidgetRealIndex: (id: string, type: WidgetType) => any;
|
|
32
|
+
/**
|
|
33
|
+
* 获取组件在可见组件中的真实索引(跳过被显隐规则隐藏的组件)
|
|
34
|
+
* 用于落地页(input/render 模式)中的序号显示
|
|
35
|
+
* 编辑器模式中所有组件均可见,应使用 getWidgetRealIndex
|
|
36
|
+
*/
|
|
37
|
+
export declare const getWidgetVisibleIndex: (id: string, type: WidgetType, allWidgets: Widget[], formData: Record<string, any>) => number;
|
|
32
38
|
/**
|
|
33
39
|
* 是否显示题号
|
|
34
40
|
*/
|
|
@@ -22,6 +22,35 @@ export declare const postUploadAnswerFile: (data: {
|
|
|
22
22
|
file_size: any;
|
|
23
23
|
}) => Promise<any>;
|
|
24
24
|
export declare const getUploadLimit: (uid: string) => Promise<any>;
|
|
25
|
+
/** 临时文件条目(与后端 /v1/tempFile 接口字段对齐) */
|
|
26
|
+
export interface TempFileItem {
|
|
27
|
+
type: "image";
|
|
28
|
+
url: string;
|
|
29
|
+
name: string;
|
|
30
|
+
size: number;
|
|
31
|
+
latitude?: number;
|
|
32
|
+
longitude?: number;
|
|
33
|
+
address?: string;
|
|
34
|
+
nickname?: string;
|
|
35
|
+
uploadMethod?: string;
|
|
36
|
+
uploadTime?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 保存临时文件列表,获取临时 id
|
|
40
|
+
* @description 跳转小程序上传页前,将当前已有的图片数据保存到服务端,
|
|
41
|
+
* 获取临时 id(tid) 后通过 URL 参数传递给小程序页。
|
|
42
|
+
*/
|
|
43
|
+
export declare const saveTempFileList: (files: TempFileItem[]) => Promise<{
|
|
44
|
+
tid: string;
|
|
45
|
+
expire: number;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* 根据 tid 查询小程序上传页已上传的临时文件列表
|
|
49
|
+
* @description 小程序上传页上传完成后,会重定向回表单页并附带
|
|
50
|
+
* `?tempFileId=xxx` 查询参数;落地页 widget 在 onMounted 拿到 tempFileId 后调用本接口,
|
|
51
|
+
* 将返回的图片列表渲染到上传网格。
|
|
52
|
+
*/
|
|
53
|
+
export declare const getTempFileList: (tid: string) => Promise<TempFileItem[]>;
|
|
25
54
|
export declare const getForm3: (id: string) => Promise<any>;
|
|
26
55
|
export declare const getSumitData: (id: string) => Promise<any>;
|
|
27
56
|
export declare const editFormData: ({ answer, form_id, fake_id }: {
|
|
@@ -4,6 +4,7 @@ import { TCheckEntryAttrs } from '../widgets/checkEntry';
|
|
|
4
4
|
import { TWatermarkAttrs } from '../widgets/watermark';
|
|
5
5
|
import { TBasicTableAttrs, TDynamicTableAttrs } from '../widgets/table';
|
|
6
6
|
import { TLocationAttrs } from '../widgets/location';
|
|
7
|
+
import { TImageAttrs } from '../widgets/image';
|
|
7
8
|
import { OcrAttrs } from '../widgets/ocr/types';
|
|
8
9
|
export declare enum VerifyStatus {
|
|
9
10
|
Error = 0,
|
|
@@ -47,6 +48,10 @@ export declare const verifyLocation: (attrs: TLocationAttrs, value: any) => {
|
|
|
47
48
|
status: VerifyStatus;
|
|
48
49
|
message: string;
|
|
49
50
|
};
|
|
51
|
+
export declare const verifyImage: (attrs: TImageAttrs, value: any) => {
|
|
52
|
+
status: VerifyStatus;
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
50
55
|
export declare const verifyBasicTable: (attrs: TBasicTableAttrs, value: any) => any;
|
|
51
56
|
export declare const verifyDynamicTable: (attrs: TDynamicTableAttrs, value: any) => any;
|
|
52
57
|
export declare const verifyCustomTableOcr: (attrs: OcrAttrs, value: any) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WidgetType } from '../widgets';
|
|
2
2
|
export declare const createWidget: (type: WidgetType) => {
|
|
3
3
|
id: string;
|
|
4
|
-
type: "textarea" | "button" | "file" | "resume" | "work" | "sort" | "basicInput" | "fillBlank" | "emailInput" | "idCardInput" | "shortAnswer" | "phoneInput" | "numberInput" | "nameInput" | "companyInput" | "departmentInput" | "positionInput" | "ageInput" | "basicSelect" | "multiSelect" | "businessSelect" | "nationSelect" | "regionSelect" | "rate" | "date" | "basicRadio" | "checkbox" | "imgRadio" | "imgCheckbox" | "occupationRadio" | "sexRadio" | "educationRadio" | "ageRadio" | "geolocation" | "mapNavigation" | "carousel" | "pageHeader" | "contactUs" | "pagination" | "description" | "eduRadio" | "fillBlank2" | "shortAnswer2" | "numberFillBlank" | "eduCheckbox" | "eduJudgement" | "eduImgRadio" | "eduImgCheckbox" | "eduSelect" | "appoint" | "gainWithPic" | "gainWithoutPic" | "groupTitle" | "preparerNameInput" | "preparerIdCardInput" | "preparerPhoneInput" | "preparerWorkIdInput" | "watermark" | "location" | "checkEntry" | "basicTable" | "dynamicTable" | "idCardOcr" | "bankCardOcr" | "vehicleLicenseOcr" | "driverLicenseOcr" | "businessLicenseOcr" | "specialCertificateOcr" | "vatInvoiceOcr" | "customTableOcr";
|
|
4
|
+
type: "textarea" | "button" | "file" | "resume" | "work" | "sort" | "basicInput" | "fillBlank" | "emailInput" | "idCardInput" | "shortAnswer" | "phoneInput" | "numberInput" | "nameInput" | "companyInput" | "departmentInput" | "positionInput" | "ageInput" | "basicSelect" | "multiSelect" | "businessSelect" | "nationSelect" | "regionSelect" | "rate" | "date" | "basicRadio" | "checkbox" | "imgRadio" | "imgCheckbox" | "occupationRadio" | "sexRadio" | "educationRadio" | "ageRadio" | "geolocation" | "mapNavigation" | "carousel" | "pageHeader" | "contactUs" | "pagination" | "description" | "eduRadio" | "fillBlank2" | "shortAnswer2" | "numberFillBlank" | "eduCheckbox" | "eduJudgement" | "eduImgRadio" | "eduImgCheckbox" | "eduSelect" | "appoint" | "gainWithPic" | "gainWithoutPic" | "groupTitle" | "preparerNameInput" | "preparerIdCardInput" | "preparerPhoneInput" | "preparerWorkIdInput" | "watermark" | "location" | "checkEntry" | "image" | "basicTable" | "dynamicTable" | "idCardOcr" | "bankCardOcr" | "vehicleLicenseOcr" | "driverLicenseOcr" | "businessLicenseOcr" | "specialCertificateOcr" | "vatInvoiceOcr" | "customTableOcr";
|
|
5
5
|
attrs: any;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
@@ -25,7 +25,7 @@ export declare const onAfterAddWidget: (addedWidget: Widget) => void;
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const addWidget: (type: WidgetType, idx?: number) => {
|
|
27
27
|
id: string;
|
|
28
|
-
type: "textarea" | "button" | "file" | "resume" | "work" | "sort" | "basicInput" | "fillBlank" | "emailInput" | "idCardInput" | "shortAnswer" | "phoneInput" | "numberInput" | "nameInput" | "companyInput" | "departmentInput" | "positionInput" | "ageInput" | "basicSelect" | "multiSelect" | "businessSelect" | "nationSelect" | "regionSelect" | "rate" | "date" | "basicRadio" | "checkbox" | "imgRadio" | "imgCheckbox" | "occupationRadio" | "sexRadio" | "educationRadio" | "ageRadio" | "geolocation" | "mapNavigation" | "carousel" | "pageHeader" | "contactUs" | "pagination" | "description" | "eduRadio" | "fillBlank2" | "shortAnswer2" | "numberFillBlank" | "eduCheckbox" | "eduJudgement" | "eduImgRadio" | "eduImgCheckbox" | "eduSelect" | "appoint" | "gainWithPic" | "gainWithoutPic" | "groupTitle" | "preparerNameInput" | "preparerIdCardInput" | "preparerPhoneInput" | "preparerWorkIdInput" | "watermark" | "location" | "checkEntry" | "basicTable" | "dynamicTable" | "idCardOcr" | "bankCardOcr" | "vehicleLicenseOcr" | "driverLicenseOcr" | "businessLicenseOcr" | "specialCertificateOcr" | "vatInvoiceOcr" | "customTableOcr";
|
|
28
|
+
type: "textarea" | "button" | "file" | "resume" | "work" | "sort" | "basicInput" | "fillBlank" | "emailInput" | "idCardInput" | "shortAnswer" | "phoneInput" | "numberInput" | "nameInput" | "companyInput" | "departmentInput" | "positionInput" | "ageInput" | "basicSelect" | "multiSelect" | "businessSelect" | "nationSelect" | "regionSelect" | "rate" | "date" | "basicRadio" | "checkbox" | "imgRadio" | "imgCheckbox" | "occupationRadio" | "sexRadio" | "educationRadio" | "ageRadio" | "geolocation" | "mapNavigation" | "carousel" | "pageHeader" | "contactUs" | "pagination" | "description" | "eduRadio" | "fillBlank2" | "shortAnswer2" | "numberFillBlank" | "eduCheckbox" | "eduJudgement" | "eduImgRadio" | "eduImgCheckbox" | "eduSelect" | "appoint" | "gainWithPic" | "gainWithoutPic" | "groupTitle" | "preparerNameInput" | "preparerIdCardInput" | "preparerPhoneInput" | "preparerWorkIdInput" | "watermark" | "location" | "checkEntry" | "image" | "basicTable" | "dynamicTable" | "idCardOcr" | "bankCardOcr" | "vehicleLicenseOcr" | "driverLicenseOcr" | "businessLicenseOcr" | "specialCertificateOcr" | "vatInvoiceOcr" | "customTableOcr";
|
|
29
29
|
attrs: any;
|
|
30
30
|
};
|
|
31
31
|
export declare const deleteWidget: (id: string) => void;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export { default as message } from './components/Message';
|
|
|
5
5
|
export { getFormName, isFormChanged } from './logic/getters';
|
|
6
6
|
export { getScenenName, SceneType } from './logic/scene';
|
|
7
7
|
export { headerWidget, widgets, addWidget, resetWidgetsOldData, saveOldWidgets, } from './logic/widget-manager';
|
|
8
|
-
export { saveOldSetting, applyFormSetting, resetSettingOldData, FormSetting, } from './logic/common-setting';
|
|
8
|
+
export { saveOldSetting, applyFormSetting, resetSettingOldData, FormSetting, CommonSetting, } from './logic/common-setting';
|
|
9
9
|
export { eventBus } from './utils/eventBus';
|
|
10
10
|
export * from './apps';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { imageAttrs, imageInfo } from './src/constant';
|
|
2
|
+
export { imageAttrs, imageInfo };
|
|
3
|
+
export type { TImageAttrs, IImageItem, ImageUploadMethod } from './src/constant';
|
|
4
|
+
export declare const imageComponent: import('vue').DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: import('vue').PropType<string>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
attrs: {
|
|
10
|
+
type: import('vue').PropType<import('.').TImageAttrs>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
value: {
|
|
14
|
+
type: import('vue').PropType<import('.').IImageItem[]>;
|
|
15
|
+
required: true;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:value": (value: import('.').IImageItem[]) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
id: {
|
|
22
|
+
type: import('vue').PropType<string>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
attrs: {
|
|
26
|
+
type: import('vue').PropType<import('.').TImageAttrs>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
type: import('vue').PropType<import('.').IImageItem[]>;
|
|
31
|
+
required: true;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
}>> & {
|
|
35
|
+
"onUpdate:value"?: ((value: import('.').IImageItem[]) => any) | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
value: import('.').IImageItem[];
|
|
38
|
+
}, {}>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IImageItem, TImageAttrs } from './constant';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
attrs: TImageAttrs;
|
|
4
|
+
value: IImageItem[];
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
8
|
+
value: () => never[];
|
|
9
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:value": (value: IImageItem[]) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
12
|
+
value: () => never[];
|
|
13
|
+
}>>> & {
|
|
14
|
+
"onUpdate:value"?: ((value: IImageItem[]) => any) | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
value: IImageItem[];
|
|
17
|
+
}, {}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithDefaults<P, D> = {
|
|
20
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
21
|
+
default: D[K];
|
|
22
|
+
}> : P[K];
|
|
23
|
+
};
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToOption<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_PrettifyLocal<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** 上传方式枚举 */
|
|
2
|
+
export type ImageUploadMethod = "camera" | "album" | "wechat";
|
|
3
|
+
/** 单张图片的数据结构 */
|
|
4
|
+
export interface IImageItem {
|
|
5
|
+
/** 后端文件 id(来自 postUploadAnswerFile) */
|
|
6
|
+
id: string;
|
|
7
|
+
/** 资源 url */
|
|
8
|
+
url: string;
|
|
9
|
+
/** 文件名 */
|
|
10
|
+
name: string;
|
|
11
|
+
/** 文件大小(字节) */
|
|
12
|
+
size: number;
|
|
13
|
+
/** 水印:纬度(开启图片水印防作假时记录) */
|
|
14
|
+
latitude?: number;
|
|
15
|
+
/** 水印:经度 */
|
|
16
|
+
longitude?: number;
|
|
17
|
+
/** 水印:地址文本 */
|
|
18
|
+
address?: string;
|
|
19
|
+
/** 水印:上传人(昵称) */
|
|
20
|
+
nickname?: string;
|
|
21
|
+
/** 水印:上传时间(毫秒时间戳) */
|
|
22
|
+
uploadTime?: number;
|
|
23
|
+
/** 上传方式 */
|
|
24
|
+
uploadMethod?: ImageUploadMethod;
|
|
25
|
+
}
|
|
26
|
+
/** 组件 attrs 类型 */
|
|
27
|
+
export interface TImageAttrs {
|
|
28
|
+
title: string;
|
|
29
|
+
desc: string;
|
|
30
|
+
required: boolean;
|
|
31
|
+
/** 最大上传数量,默认 20 */
|
|
32
|
+
maxCount: number;
|
|
33
|
+
/** 启用的上传方式,默认全部勾选 */
|
|
34
|
+
uploadMethods: ImageUploadMethod[];
|
|
35
|
+
/** 图片水印防作假:开启后上传时记录时间/地点/上传人 */
|
|
36
|
+
watermark: boolean;
|
|
37
|
+
/** 落地页左下角水印:开启后渲染时在每张图左下角叠加信息 */
|
|
38
|
+
showWatermarkOnRender: boolean;
|
|
39
|
+
/** 单图最大体积(字节),默认 10MB */
|
|
40
|
+
maxSize: number;
|
|
41
|
+
}
|
|
42
|
+
export declare const imageAttrs: TImageAttrs;
|
|
43
|
+
export declare const imageInfo: WidgetInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./main-
|
|
1
|
+
"use strict";const e=require("./main-CCeQTdQJ.cjs"),V=t=>(e.pushScopeId("data-v-274736c6"),t=t(),e.popScopeId(),t),C=V(()=>e.createBaseVNode("div",{class:"upgrade-title"},[e.createBaseVNode("span",{class:"icon iconfont icon-form-circle-notice"}),e.createTextVNode("提示")],-1)),w={class:"upgrade-container"},b={class:"dialog-upgrade-footer"},I=e.defineComponent({__name:"VipDialog",props:{type:{},name:{},confirmEvent:{}},emits:["closed"],setup(t,{emit:n}){const o=t,s=e.ref(!1),a=()=>{s.value=!0},d=()=>{s.value=!1};e.onMounted(a);const v=()=>{o.confirmEvent&&e.globalInject.postCollection(o.confirmEvent),d(),e.globalInject.showBuyVipDialog({level:o.type})};return(i,r)=>(e.openBlock(),e.createBlock(e.unref(e.ElDialog),{width:"480",modelValue:s.value,"onUpdate:modelValue":r[0]||(r[0]=p=>s.value=p),"align-center":"",onClosed:r[1]||(r[1]=p=>i.$emit("closed"))},{header:e.withCtx(()=>[C]),footer:e.withCtx(()=>[e.createBaseVNode("div",b,[e.createVNode(e.unref(e.ElButton),{class:"button",plain:!0,onClick:d},{default:e.withCtx(()=>[e.createTextVNode(" 取消 ")]),_:1}),e.createBaseVNode("div",{class:"origin-button button",onClick:v}," 去升级 ")])]),default:e.withCtx(()=>[e.createBaseVNode("div",w,"该功能为"+e.toDisplayString(i.name)+"尊享,您当前的会员等级尚不满足",1)]),_:1},8,["modelValue"]))}}),N=e._export_sfc(I,[["__scopeId","data-v-274736c6"]]),B=["src"],E=e.defineComponent({__name:"ImagePreview",props:{url:{}},setup(t){const n=e.ref(!1),o=()=>{n.value=!0};return e.onMounted(o),(s,a)=>(e.openBlock(),e.createBlock(e.unref(e.ElDialog),{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=d=>n.value=d),"align-center":"",class:"form-img-preview","show-close":!1,onClosed:a[1]||(a[1]=d=>s.$emit("closed"))},{default:e.withCtx(()=>[e.createBaseVNode("img",{src:s.url,alt:"Preview Image",style:{width:"100%"}},null,8,B)]),_:1},8,["modelValue"]))}}),k=e._export_sfc(E,[["__scopeId","data-v-b2fd2af4"]]),m=t=>(e.pushScopeId("data-v-8a34b329"),t=t(),e.popScopeId(),t),$={class:"upgrade-title"},P=m(()=>e.createBaseVNode("div",null,[e.createTextVNode(" 在线预约"),e.createBaseVNode("span",{class:"high-vip"},"高级版及以上会员专享")],-1)),S={class:"upgrade-container"},x=m(()=>e.createBaseVNode("div",{class:"content"},"在线预约支持不同的预约项目设置不同的预约时间和名额,可以满足例如:课程、服务项目、场地等不同业务的预约需求",-1)),D=m(()=>e.createBaseVNode("div",{class:"desc"},"在线预约为高级版及以上会员专享功能,普通版与初级版会员有一次七天试用机会 ~",-1)),y=["src"],M={key:0,class:"dialog-upgrade-footer"},U={key:1,class:"dialog-upgrade-footer"},A=m(()=>e.createBaseVNode("div",{class:"finish-tip"},"已完成七天试用,直接升级解锁预约功能 →",-1)),F=e.defineComponent({__name:"AppointDialog",props:{type:{},name:{},confirmEvent:{},probStatus:{},callback:{type:Function}},emits:["closed"],setup(t,{emit:n}){const o=t,s=n,a=e.ref(!1),d=()=>{a.value=!0},v=()=>{a.value=!1};e.onMounted(d);const i=()=>{o.confirmEvent&&e.globalInject.postCollection(o.confirmEvent),v(),e.globalInject.showBuyVipDialog({level:o.type})},r=c=>{const l=new Date(c*1e3),u=l.getFullYear(),_=String(l.getMonth()+1).padStart(2,"0"),h=String(l.getDate()).padStart(2,"0");return`${u}年${_}月${h}日`},p=async()=>{let c=await e.getAppointmentTempUse("1");if(console.log(c,"getAppointmentTempUse1"),c.status){o.callback(c.end_time);let l=`您已开启预约功能七天试用,试用将在${r(c.end_time)}结束`;e.ElMessage.success(l)}s("closed")};return(c,l)=>(e.openBlock(),e.createBlock(e.unref(e.ElDialog),{width:"660",modelValue:a.value,"onUpdate:modelValue":l[1]||(l[1]=u=>a.value=u),"show-close":!1,style:{"padding-left":"24px","padding-right":"24px","border-radius":"4px"},onClosed:l[2]||(l[2]=u=>c.$emit("closed"))},{header:e.withCtx(()=>[e.createBaseVNode("div",$,[P,e.createVNode(e.unref(e.ElIcon),{class:"colse-icon",onClick:l[0]||(l[0]=u=>c.$emit("closed"))},{default:e.withCtx(()=>[e.createVNode(e.unref(e.close_default))]),_:1})])]),footer:e.withCtx(()=>[o.probStatus===0?(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(e.unref(e.ElPopover),{placement:"top",width:320,trigger:"hover",content:"七天试用期内您可以试用预约所有功能,包括编辑, 设置、发布、填写与数据处理,点击即可开启~"},{reference:e.withCtx(()=>[e.createVNode(e.unref(e.ElButton),{class:"button",plain:!0,onClick:p},{default:e.withCtx(()=>[e.createTextVNode(" 开启七天试用 ")]),_:1})]),_:1}),e.createBaseVNode("div",{class:"button origin-button",onClick:i}," 直接升级 ")])):e.createCommentVNode("",!0),o.probStatus===2?(e.openBlock(),e.createElementBlock("div",U,[A,e.createBaseVNode("div",{class:"button origin-button",onClick:i}," 直接升级 ")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createBaseVNode("div",S,[x,D,e.createBaseVNode("img",{class:"img",src:e.unref(e.getImageUrl)("images/widget/appoint-probat.png"),alt:"",srcset:""},null,8,y)])]),_:1},8,["modelValue"]))}}),O=e._export_sfc(F,[["__scopeId","data-v-8a34b329"]]);var f=(t=>(t[t.OldVIP=12]="OldVIP",t[t.OldSVIP=13]="OldSVIP",t[t.OldCVIP=14]="OldCVIP",t[t.VIP=52]="VIP",t[t.SVIP=53]="SVIP",t[t.CVIP=54]="CVIP",t))(f||{});const g={52:"初级版及以上会员",53:"高级版及以上会员",54:"企业版会员"};function q(t=52,n){const o=document.createElement("div"),s=()=>{e.render(null,o),o.remove()},a=e.h(e.ElConfigProvider,{namespace:"bmwfr"},()=>e.h(N,{type:t,name:`${g[t]}`,confirmEvent:n,onClosed:s}));document.body.appendChild(o),e.render(a,o)}function Y(t){const n=document.createElement("div"),o=()=>{e.render(null,n),n.remove()},s=e.h(e.ElConfigProvider,{namespace:"bmwfr"},()=>e.h(k,{url:t,onClosed:o}));document.body.appendChild(n),e.render(s,n)}function j(t){const n=document.createElement("div"),o=()=>{e.render(null,n),n.remove()},s=e.h(e.ElConfigProvider,{namespace:"bmwfr"},()=>e.h(O,{type:t.type||53,probStatus:t.probStatus,name:`${g[t.type||53]}`,callback:t.callback||function(){},confirmEvent:t.confirmEvent,onClosed:o}));document.body.appendChild(n),e.render(s,n)}exports.VipType=f;exports.useAppointDialog=j;exports.useImgModel=Y;exports.useVipModel=q;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const gt=require("./main-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const gt=require("./main-CCeQTdQJ.cjs");var zn={exports:{}};/*!
|
|
2
2
|
* Quill Editor v1.3.7
|
|
3
3
|
* https://quilljs.com/
|
|
4
4
|
* Copyright (c) 2014, Jason Chen
|