bmw-form-render 0.0.307 → 0.0.313-beta.0
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-D8OyLIwA.cjs → AntiCheating-Rs0n38kJ.cjs} +1 -1
- package/dist/{AppointConfig-B_eCE0Ur.cjs → AppointConfig-BlmeTCIe.cjs} +1 -1
- package/dist/{BasicInputSetting-kp_69Yvr.cjs → BasicInputSetting-Keq9ro0c.cjs} +1 -1
- package/dist/{BasicSelectSetting-Bit4IMqQ.cjs → BasicSelectSetting-Dgkzl9Li.cjs} +1 -1
- package/dist/{Button-RwQc7DJp.cjs → Button-BpnLLLoL.cjs} +1 -1
- package/dist/{ButtonConfig-CtyRGqSA.cjs → ButtonConfig-DAEI1wx6.cjs} +1 -1
- package/dist/{CacheIcon-BCn-b6Jn.cjs → CacheIcon-B3GyraRn.cjs} +1 -1
- package/dist/{Carousel-DEE1a8wR.cjs → Carousel-B2FYrPT4.cjs} +1 -1
- package/dist/{CarouselSetting-DW1fLlu2.cjs → CarouselSetting-B5KjnzaK.cjs} +1 -1
- package/dist/{CheckEntrySetting-BbLC4X1O.cjs → CheckEntrySetting-N3Py5xnO.cjs} +1 -1
- package/dist/{CheckboxRange.vue_vue_type_script_setup_true_lang-D2OTnsH_.cjs → CheckboxRange.vue_vue_type_script_setup_true_lang-DnstaHuO.cjs} +1 -1
- package/dist/{CheckboxSetting-D94AWsXi.cjs → CheckboxSetting-bxpPdOoQ.cjs} +1 -1
- package/dist/{Choice-DnHIBxvv.cjs → Choice-CZT6CImO.cjs} +1 -1
- package/dist/{ChooseInput-D8KlgNHA.cjs → ChooseInput-J0jdMy9Q.cjs} +1 -1
- package/dist/{Column.vue_vue_type_script_setup_true_lang-I2VYgGOZ.cjs → Column.vue_vue_type_script_setup_true_lang-DIL5UZ6Z.cjs} +1 -1
- package/dist/{ColumnNumOption.vue_vue_type_script_setup_true_lang-zNhK2-Xm.cjs → ColumnNumOption.vue_vue_type_script_setup_true_lang-Dbf7T65s.cjs} +1 -1
- package/dist/{CommonRadioSetting-CVFR0DxC.cjs → CommonRadioSetting-CMQoEMk2.cjs} +1 -1
- package/dist/{ConfirmCode-o_0sIIl3.cjs → ConfirmCode-BP-5gAuZ.cjs} +1 -1
- package/dist/{ContactUs-BSSW8TJZ.cjs → ContactUs-3H_Dtm5j.cjs} +1 -1
- package/dist/{ContactUs-BtLvC4hi.cjs → ContactUs-DWLc70RP.cjs} +1 -1
- package/dist/{ContactUsSetting-CEw7XH2Q.cjs → ContactUsSetting-CE6Kpvsx.cjs} +1 -1
- package/dist/{CrowdManagement-Bp4hr-JA.cjs → CrowdManagement-CajKRipV.cjs} +1 -1
- package/dist/{DataCollectPanel-BeG0zGvR.cjs → DataCollectPanel-B8Kt-e4A.cjs} +1 -1
- package/dist/{DataSubmitPanel-DvHYuIAx.cjs → DataSubmitPanel-B1HhuDVL.cjs} +1 -1
- package/dist/{DateSetting-BjXFiBgn.cjs → DateSetting-DW3uuJum.cjs} +1 -1
- package/dist/{DynamicTableSetting-Ba2cBOEq.cjs → DynamicTableSetting-DHWJrReX.cjs} +1 -1
- package/dist/{EduCheckboxSetting-Da4sWmq2.cjs → EduCheckboxSetting-Cm1HvnEi.cjs} +1 -1
- package/dist/{EmailInputSetting-BRqr2HB1.cjs → EmailInputSetting-8uJJOFNX.cjs} +1 -1
- package/dist/{ExamBar-CP2gY1Qe.cjs → ExamBar-Ca22VEUG.cjs} +1 -1
- package/dist/{FileSetting-C-GN4kvY.cjs → FileSetting-BWeK9d7w.cjs} +1 -1
- package/dist/{FillBlank-DFb0Sqyj.cjs → FillBlank-CsN5zzXz.cjs} +1 -1
- package/dist/{FormProgress-1WL-FLuV.cjs → FormProgress-D6MU8Xv5.cjs} +1 -1
- package/dist/{GainConfig-BKzSP367.cjs → GainConfig-BPlRH_E9.cjs} +1 -1
- package/dist/{Geolocation-WACT4bkO.cjs → Geolocation-BxqTI7Rx.cjs} +1 -1
- package/dist/{IdCardInputSetting-Dvp5fR1M.cjs → IdCardInputSetting-SbGyT30t.cjs} +1 -1
- package/dist/{ImgCard-B2E_BeKb.cjs → ImgCard-DqVcD0wC.cjs} +1 -1
- package/dist/{ImgCheckboxSetting-C2fLC6aD.cjs → ImgCheckboxSetting--hT0mJBz.cjs} +1 -1
- package/dist/{ImgRadioSetting-CyIyBLQN.cjs → ImgRadioSetting-DWfdYXIg.cjs} +1 -1
- package/dist/{ImportantOption.vue_vue_type_script_setup_true_lang-DLJ_PrF6.cjs → ImportantOption.vue_vue_type_script_setup_true_lang-CSK7lMzR.cjs} +1 -1
- package/dist/{Input-D7OZt2cg.cjs → Input-IKZtFI9B.cjs} +1 -1
- package/dist/{InputTimer-CU9yFFlF.cjs → InputTimer-1nUkCL5r.cjs} +1 -1
- package/dist/{LengthRangeOption.vue_vue_type_script_setup_true_lang-BaegKkR5.cjs → LengthRangeOption.vue_vue_type_script_setup_true_lang-7-Xebfu6.cjs} +1 -1
- package/dist/{LocationSetting-CHvlefcq.cjs → LocationSetting-Br9tttWp.cjs} +1 -1
- package/dist/{MapNavSetting-CN1qODng.cjs → MapNavSetting-C51xeHJK.cjs} +1 -1
- package/dist/{MapNavigation-DPvQhtez.cjs → MapNavigation-CCCBz6VY.cjs} +1 -1
- package/dist/{MessagePush-C5lDd0KN.cjs → MessagePush-Cpx6uRGl.cjs} +1 -1
- package/dist/{MultiSelectSetting-BB4sHBEU.cjs → MultiSelectSetting-yMBnRKV-.cjs} +1 -1
- package/dist/{NumRange-BU6e8lLz.cjs → NumRange-BptPjQgZ.cjs} +1 -1
- package/dist/{NumberFillBlank-BZPcQLM5.cjs → NumberFillBlank-BnvaPzvF.cjs} +1 -1
- package/dist/{NumberInputSetting-Bf55M_pN.cjs → NumberInputSetting-BU3Y2Q_f.cjs} +1 -1
- package/dist/OcrSetting-BCZheI6n.cjs +1 -0
- package/dist/OcrWidget-B4ZmmE6R.cjs +1 -0
- package/dist/{OptionRandom.vue_vue_type_script_setup_true_lang-Clfvp3Jo.cjs → OptionRandom.vue_vue_type_script_setup_true_lang-XZUqzopv.cjs} +1 -1
- package/dist/{PageHeader-DWfhD7HX.cjs → PageHeader-C-rRepoS.cjs} +1 -1
- package/dist/{PageHeaderSetting-DMJ5jfhb.cjs → PageHeaderSetting-D9pg4Nve.cjs} +1 -1
- package/dist/{Pagination-COA--dRo.cjs → Pagination-DIVhoWXF.cjs} +1 -1
- package/dist/{PayConfig-BBsXTB_R.cjs → PayConfig-CTaQSr2A.cjs} +1 -1
- package/dist/{PayMethod-BJl7q89F.cjs → PayMethod-CYgkOXYY.cjs} +1 -1
- package/dist/{PhoneInputSetting-BZO4W1ey.cjs → PhoneInputSetting-D9ejAGOq.cjs} +1 -1
- package/dist/{PlaceholderOption.vue_vue_type_script_setup_true_lang-B-R5XRuu.cjs → PlaceholderOption.vue_vue_type_script_setup_true_lang-Dnm0_dlE.cjs} +1 -1
- package/dist/{PreparePlaceholderOption.vue_vue_type_script_setup_true_lang-iiAu19jx.cjs → PreparePlaceholderOption.vue_vue_type_script_setup_true_lang-CtH2o6oS.cjs} +1 -1
- package/dist/{PreparerNameSetting-DYxajyFi.cjs → PreparerNameSetting-DOhBjMNW.cjs} +1 -1
- package/dist/{PreparerPhoneInputSetting-CZvKxfDj.cjs → PreparerPhoneInputSetting-DAjVWFpZ.cjs} +1 -1
- package/dist/{PreparerSetting-BMR-S1YF.cjs → PreparerSetting-DdfMZxXQ.cjs} +1 -1
- package/dist/RadioSetting-COEEZRee.cjs +1 -0
- package/dist/{RatingSetting-CtOiyhUK.cjs → RatingSetting-dLU8xzPX.cjs} +1 -1
- package/dist/{SearchAndShare-C5RIqh__.cjs → SearchAndShare-D3BUjDlJ.cjs} +1 -1
- package/dist/{SetpayModal-DwKagLuS.cjs → SetpayModal-BAIBnAaA.cjs} +1 -1
- package/dist/{ShareQRCode-C96hBppL.cjs → ShareQRCode-BSC7rH83.cjs} +1 -1
- package/dist/{TableSetting-DoWBoqct.cjs → TableSetting-w3kIHqs7.cjs} +1 -1
- package/dist/{TestSettingPanel-DI4rOTud.cjs → TestSettingPanel-vTIJoy_m.cjs} +1 -1
- package/dist/{ViewVoteRate-DMMr6hlB.cjs → ViewVoteRate-DlDv_OOs.cjs} +1 -1
- package/dist/{WatermarkSetting-hkRB3Y4v.cjs → WatermarkSetting-m14KyxOB.cjs} +1 -1
- package/dist/bmw-form-render.cjs +1 -1
- package/dist/iconfont-CRr0eauA.cjs +1 -0
- package/dist/{index-B2Yzdqw5.cjs → index-BUDszMxU.cjs} +1 -1
- package/dist/{index-CjhhiRej.cjs → index-Bh02qUNF.cjs} +1 -1
- package/dist/{index-TF2ORPjz.cjs → index-Cz0eIEwo.cjs} +1 -1
- package/dist/index-D6m8FPHx.cjs +1 -0
- package/dist/{index-DwwRx8Jv.cjs → index-DOuGkhSl.cjs} +1 -1
- package/dist/{index-K2IQthHV.cjs → index-DQZ0ROkK.cjs} +1 -1
- package/dist/{index-DedskREV.cjs → index-n7VaGIvI.cjs} +1 -1
- package/dist/{index-DNTp3SOM.cjs → index-oxaZsBcV.cjs} +1 -1
- package/dist/main-DSxbXvAC.cjs +146 -0
- package/dist/{style-D827Gb7D.cjs → style-yPRqcGIq.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/app/right-side/components/ExampleDialog.vue.d.ts +21 -0
- package/dist/types/app/right-side/modules/OcrSetting.vue.d.ts +2 -0
- package/dist/types/logic/active-manager.d.ts +1 -1
- package/dist/types/logic/widget-manager.d.ts +2 -2
- package/dist/types/main.d.ts +1 -1
- package/dist/types/widgets/ocr/constants.d.ts +11 -0
- package/dist/types/widgets/ocr/index.d.ts +47 -0
- package/dist/types/widgets/ocr/src/OcrResultTable.vue.d.ts +23 -0
- package/dist/types/widgets/ocr/src/OcrUploader.vue.d.ts +19 -0
- package/dist/types/widgets/ocr/src/OcrWidget.vue.d.ts +22 -0
- package/dist/types/widgets/ocr/src/aliyunOcr.d.ts +23 -0
- package/dist/types/widgets/ocr/types.d.ts +26 -0
- package/dist/{useVipDialog-BWY81kg3.cjs → useVipDialog-ByOaO8Er.cjs} +1 -1
- package/dist/{vue-quill.esm-bundler-BWQwcqWI.cjs → vue-quill.esm-bundler-R4r69e8u.cjs} +1 -1
- package/package.json +2 -1
- package/dist/RadioSetting-DQJTm3Uo.cjs +0 -1
- package/dist/iconfont-YXzXXFKx.cjs +0 -1
- package/dist/index-Z8qOoN_M.cjs +0 -1
- package/dist/main-DWPMu8UE.cjs +0 -146
- /package/dist/types/app/form-main/{AgreementDialog.vue.d.ts → agreementDialog.vue.d.ts} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
desc?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:visible": (value: boolean) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & {
|
|
10
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -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" | 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" | "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;
|
|
@@ -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";
|
|
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";
|
|
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";
|
|
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";
|
|
29
29
|
attrs: any;
|
|
30
30
|
};
|
|
31
31
|
export declare const deleteWidget: (id: string) => void;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { beforeExitWorksapce, saveConfirm } from './logic/exit-manager';
|
|
|
4
4
|
export { default as message } from './components/Message';
|
|
5
5
|
export { getFormName, isFormChanged } from './logic/getters';
|
|
6
6
|
export { getScenenName, SceneType } from './logic/scene';
|
|
7
|
-
export { headerWidget, widgets, resetWidgetsOldData, saveOldWidgets, } from './logic/widget-manager';
|
|
7
|
+
export { headerWidget, widgets, addWidget, resetWidgetsOldData, saveOldWidgets, } from './logic/widget-manager';
|
|
8
8
|
export { saveOldSetting, applyFormSetting, resetSettingOldData, } from './logic/common-setting';
|
|
9
9
|
export { eventBus } from './utils/eventBus';
|
|
10
10
|
export * from './apps';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OcrAttrs } from './types';
|
|
2
|
+
export declare const idCardOcrAttrs: OcrAttrs;
|
|
3
|
+
export declare const bankCardOcrAttrs: OcrAttrs;
|
|
4
|
+
export declare const vehicleLicenseOcrAttrs: OcrAttrs;
|
|
5
|
+
export declare const driverLicenseOcrAttrs: OcrAttrs;
|
|
6
|
+
export declare const businessLicenseOcrAttrs: OcrAttrs;
|
|
7
|
+
export declare const specialCertificateOcrAttrs: OcrAttrs;
|
|
8
|
+
export declare const vatInvoiceOcrAttrs: OcrAttrs;
|
|
9
|
+
export declare const customTableOcrAttrs: OcrAttrs;
|
|
10
|
+
export declare const MOCK_OCR_DELAY = 1500;
|
|
11
|
+
export declare const MOCK_OCR_RESULTS: Record<string, Record<string, string>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OcrAttrs } from './types';
|
|
2
|
+
declare const OcrComponent: import('vue').DefineComponent<{
|
|
3
|
+
id: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
type: {
|
|
8
|
+
type: import('vue').PropType<string>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
attrs: {
|
|
12
|
+
type: import('vue').PropType<OcrAttrs>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
value: {
|
|
16
|
+
type: import('vue').PropType<import('./types').OcrValue>;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:value": (value: import('./types').OcrValue) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
id: {
|
|
22
|
+
type: import('vue').PropType<string>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
type: {
|
|
26
|
+
type: import('vue').PropType<string>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
attrs: {
|
|
30
|
+
type: import('vue').PropType<OcrAttrs>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
value: {
|
|
34
|
+
type: import('vue').PropType<import('./types').OcrValue>;
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
37
|
+
"onUpdate:value"?: ((value: import('./types').OcrValue) => any) | undefined;
|
|
38
|
+
}, {}, {}>;
|
|
39
|
+
export declare const idCardOcr: WidgetConfig<OcrAttrs>;
|
|
40
|
+
export declare const bankCardOcr: WidgetConfig<OcrAttrs>;
|
|
41
|
+
export declare const vehicleLicenseOcr: WidgetConfig<OcrAttrs>;
|
|
42
|
+
export declare const driverLicenseOcr: WidgetConfig<OcrAttrs>;
|
|
43
|
+
export declare const businessLicenseOcr: WidgetConfig<OcrAttrs>;
|
|
44
|
+
export declare const specialCertificateOcr: WidgetConfig<OcrAttrs>;
|
|
45
|
+
export declare const vatInvoiceOcr: WidgetConfig<OcrAttrs>;
|
|
46
|
+
export declare const customTableOcr: WidgetConfig<OcrAttrs>;
|
|
47
|
+
export { OcrComponent };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OcrSection, OcrDocType } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
sections: OcrSection[];
|
|
4
|
+
ocrData: Record<string, string>;
|
|
5
|
+
canEdit: boolean;
|
|
6
|
+
ocrType: OcrDocType;
|
|
7
|
+
isLanding?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:field": (key: string, value: string) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & {
|
|
12
|
+
"onUpdate:field"?: ((key: string, value: string) => any) | undefined;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToOption<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
allowCamera?: boolean;
|
|
3
|
+
allowGallery?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
upload: (file: File) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & {
|
|
8
|
+
onUpload?: ((file: File) => any) | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToOption<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OcrAttrs, OcrValue } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
id: string;
|
|
4
|
+
type: string;
|
|
5
|
+
attrs: OcrAttrs;
|
|
6
|
+
value?: OcrValue;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:value": (value: OcrValue) => void;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & {
|
|
11
|
+
"onUpdate:value"?: ((value: OcrValue) => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToOption<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** OCR 识别输入参数 */
|
|
2
|
+
export interface RecognizeGeneralStructureParams {
|
|
3
|
+
/** 图片oss链接 */
|
|
4
|
+
url: string;
|
|
5
|
+
/** 需要识别的字段中文名列表,如 ["住址", "姓名"] */
|
|
6
|
+
keys: string[];
|
|
7
|
+
/** EACB 认证令牌,默认使用内置值 */
|
|
8
|
+
eacb?: string;
|
|
9
|
+
/** 超时毫秒数,默认 10000 */
|
|
10
|
+
timeoutMs?: number;
|
|
11
|
+
}
|
|
12
|
+
/** OCR 识别结果(简化) */
|
|
13
|
+
export interface OcrRecognizeResult {
|
|
14
|
+
/** 字段中文名 → 字段值 映射 */
|
|
15
|
+
fields: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 调用后端 OCR 代理接口进行通用结构识别。
|
|
19
|
+
*
|
|
20
|
+
* 请求体:{ eacb, imgUrl, keys }
|
|
21
|
+
* 响应 result 格式:[{ key: "姓名", value: "赖旭宇" }, ...]
|
|
22
|
+
*/
|
|
23
|
+
export declare function recognizeGeneralStructure(params: RecognizeGeneralStructureParams): Promise<OcrRecognizeResult>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface OcrField {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface OcrSection {
|
|
8
|
+
name: string;
|
|
9
|
+
fields: OcrField[];
|
|
10
|
+
}
|
|
11
|
+
export type OcrDocType = 'idCard' | 'bankCard' | 'vehicleLicense' | 'driverLicense' | 'businessLicense' | 'specialCertificate' | 'vatInvoice' | 'customTable';
|
|
12
|
+
export interface OcrAttrs {
|
|
13
|
+
title: string;
|
|
14
|
+
desc: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
ocrType: OcrDocType;
|
|
17
|
+
sections: OcrSection[];
|
|
18
|
+
allowCamera?: boolean;
|
|
19
|
+
allowGallery?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface OcrValue {
|
|
22
|
+
imageUrl: string;
|
|
23
|
+
imageKey: string;
|
|
24
|
+
recognized: boolean;
|
|
25
|
+
fields: Record<string, string>;
|
|
26
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./main-
|
|
1
|
+
"use strict";const e=require("./main-DSxbXvAC.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-DSxbXvAC.cjs");var zn={exports:{}};/*!
|
|
2
2
|
* Quill Editor v1.3.7
|
|
3
3
|
* https://quilljs.com/
|
|
4
4
|
* Copyright (c) 2014, Jason Chen
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bmw-form-render",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.313-beta.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/bmw-form-render.cjs",
|
|
7
7
|
"types": "dist/types/main.d.ts",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"build:watch": "vite build --watch",
|
|
54
54
|
"build:analyzer": "vite build --mode development",
|
|
55
55
|
"tsc": "vue-tsc --noEmit",
|
|
56
|
+
"publish:test": "pnpm version prerelease --preid=beta --no-git-tag-version && pnpm publish --access public --tag test --no-git-checks",
|
|
56
57
|
"publish:release": "pnpm version patch && pnpm publish --access public"
|
|
57
58
|
}
|
|
58
59
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./main-DWPMu8UE.cjs"),n=require("./index-Z8qOoN_M.cjs"),o=require("./ColumnNumOption.vue_vue_type_script_setup_true_lang-zNhK2-Xm.cjs"),r=require("./ChooseInput-D8KlgNHA.cjs"),_=require("./OptionRandom.vue_vue_type_script_setup_true_lang-Clfvp3Jo.cjs"),u=require("./ImportantOption.vue_vue_type_script_setup_true_lang-DLJ_PrF6.cjs"),t=require("./ViewVoteRate-DMMr6hlB.cjs"),c=e.defineComponent({__name:"RadioSetting",setup(i){return(a,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(n.TitleRow),null,{default:e.withCtx(()=>[e.createTextVNode("选项设置")]),_:1}),e.createVNode(o._sfc_main),e.createVNode(_._sfc_main),e.createVNode(r.ChooseInput),e.createVNode(t.OptionTips),e.createVNode(t._sfc_main),e.createVNode(u._sfc_main)]))}});exports.default=c;
|