hs-admin-ui 15.7.0 → 15.7.2
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/LICENSE +21 -0
- package/dist/401-AUOYjSJU.mjs +56 -0
- package/dist/401-Dx_ldIeG.js +1 -0
- package/dist/404-B05H_jCa.mjs +61 -0
- package/dist/404-B05H_jCa.mjs.gz +0 -0
- package/dist/404-DkKlhDfs.js +1 -0
- package/dist/404-DkKlhDfs.js.gz +0 -0
- package/dist/account-BHYG232h.js +1 -0
- package/dist/account-yggw2mbI.mjs +215 -0
- package/dist/aside-BojWyGQq.mjs +164 -0
- package/dist/aside-IM1nd79w.js +1 -0
- package/dist/baseBtnConfig-C6KLedE5.mjs +273 -0
- package/dist/baseBtnConfig-DRxjBT8Z.js +1 -0
- package/dist/baseFormConfig-0aAt8oYn.mjs +504 -0
- package/dist/baseFormConfig-0aAt8oYn.mjs.gz +0 -0
- package/dist/baseFormConfig-BaFbaMWd.mjs +722 -0
- package/dist/baseFormConfig-BaFbaMWd.mjs.gz +0 -0
- package/dist/baseFormConfig-D5Q35Bo3.js +1 -0
- package/dist/baseFormConfig-ZNK--4Oe.js +1 -0
- package/dist/baseTableConfig-DHWjKxmf.js +1 -0
- package/dist/baseTableConfig-DHWjKxmf.js.gz +0 -0
- package/dist/baseTableConfig-YG6eGkRt.mjs +2624 -0
- package/dist/baseTableConfig-YG6eGkRt.mjs.gz +0 -0
- package/dist/bcFormConfig-BMrGl9cm.js +1 -0
- package/dist/bcFormConfig-CO-MWQ_m.mjs +234 -0
- package/dist/bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DKsh2Yf4.js +1 -0
- package/dist/bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Q23Yc4iS.mjs +131 -0
- package/dist/bcSwitchSystems.vue_vue_type_script_setup_true_lang-C5TEB_AO.mjs +101 -0
- package/dist/bcSwitchSystems.vue_vue_type_script_setup_true_lang-CWp-82fW.js +1 -0
- package/dist/btnIndex-Djj2CZ9j.js +1 -0
- package/dist/btnIndex-HGBAQo05.mjs +287 -0
- package/dist/btnIndex-HGBAQo05.mjs.gz +0 -0
- package/dist/classic-CvIqhQyg.js +1 -0
- package/dist/classic-DXgLIKOA.mjs +81 -0
- package/dist/cloneConfigDialog-B9mCSU49.js +1 -0
- package/dist/cloneConfigDialog-B9mCSU49.js.gz +0 -0
- package/dist/cloneConfigDialog-CKTvFSS6.mjs +817 -0
- package/dist/cloneConfigDialog-CKTvFSS6.mjs.gz +0 -0
- package/dist/columns-D5tXNIBk.js +1 -0
- package/dist/columns-DpoO5Zsj.mjs +87 -0
- package/dist/columnsAside-7U1fFgNM.js +1 -0
- package/dist/columnsAside-Decj2--4.mjs +220 -0
- package/dist/contextmenu-CboZcHAM.js +1 -0
- package/dist/contextmenu-DXF5oP5y.mjs +125 -0
- package/dist/contextmenu-G8dHbC6a.mjs +125 -0
- package/dist/contextmenu-dn3Ukic5.js +1 -0
- package/dist/copyMenuConfig-D4UkBIM8.js +1 -0
- package/dist/copyMenuConfig-xDGZfU8V.mjs +4 -0
- package/dist/copyMenuConfig.vue_vue_type_script_setup_true_lang-FLv8yK2X.mjs +85 -0
- package/dist/copyMenuConfig.vue_vue_type_script_setup_true_lang-V8-WSJik.js +1 -0
- package/dist/copySystem-BF-xIg-_.mjs +4 -0
- package/dist/copySystem-xq7dH1YB.js +1 -0
- package/dist/copySystem.vue_vue_type_script_setup_true_lang-GaIRgmVX.mjs +78 -0
- package/dist/copySystem.vue_vue_type_script_setup_true_lang-SoZ__LDi.js +1 -0
- package/dist/defaults-B4P_y7Bf.js +1 -0
- package/dist/defaults-DJz8qQkT.mjs +86 -0
- package/dist/dialog-37QHD09D.mjs +10 -0
- package/dist/dialog-BpY5TPcI.mjs +365 -0
- package/dist/dialog-BpY5TPcI.mjs.gz +0 -0
- package/dist/dialog-CaHgL7Un.js +1 -0
- package/dist/dialog-CwvjHdQG.mjs +4 -0
- package/dist/dialog-D2L8YrGi.mjs +4 -0
- package/dist/dialog-DQP53khI.mjs +359 -0
- package/dist/dialog-DQP53khI.mjs.gz +0 -0
- package/dist/dialog-DmI_6sfg.js +1 -0
- package/dist/dialog-DxBOYlwo.js +1 -0
- package/dist/dialog-TFJ52Qpk.js +1 -0
- package/dist/dialog-tEGpWR17.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-B34-zi76.mjs +220 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-lxzOpAYW.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B0bvaMOH.mjs +694 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B0bvaMOH.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BQD9kbev.js +1 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BQD9kbev.js.gz +0 -0
- package/dist/dictDialog-3cu_MIw2.mjs +4 -0
- package/dist/dictDialog-B8qvjYMR.js +1 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B_TRW06X.mjs +154 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CFgSsWwx.js +1 -0
- package/dist/dictItemDialog-C814-nYt.mjs +4 -0
- package/dist/dictItemDialog-CbQHgU4j.js +1 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-D3F7S3JJ.mjs +231 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-TQlHxUM-.js +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/formConfig-BrQO-6ag.js +1 -0
- package/dist/formConfig-BrQO-6ag.js.gz +0 -0
- package/dist/formConfig-Da6lJvqs.mjs +592 -0
- package/dist/formConfig-Da6lJvqs.mjs.gz +0 -0
- package/dist/header-BUGTGlM9.js +1 -0
- package/dist/header-CFJ4tqWS.mjs +28 -0
- package/dist/horizontal-CLwlN8o9.js +1 -0
- package/dist/horizontal-Dzn2yYYS.mjs +151 -0
- package/dist/hsAttrBtn-CaLLjqar.mjs +4 -0
- package/dist/hsAttrBtn-D10_Vo1Y.js +1 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-Cs9czCiW.js +1 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-D1A8kxol.mjs +128 -0
- package/dist/hsAttrForm-CdfSj5gE.js +1 -0
- package/dist/hsAttrForm-DlqsWDq4.mjs +4 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-C6HgKEYX.mjs +439 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-C6HgKEYX.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-JuStRpaX.js +1 -0
- package/dist/hsBtnConfigList-CDwPquFa.js +1 -0
- package/dist/hsBtnConfigList-Dq-UMlm2.mjs +117 -0
- package/dist/hsBtnItemConfig-CfftPcSD.mjs +4 -0
- package/dist/hsBtnItemConfig-CtQqNBlK.js +1 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BnotrC93.mjs +147 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DnaWvq-b.js +1 -0
- package/dist/hsBtnPanel-BkxSKDwq.mjs +4 -0
- package/dist/hsBtnPanel-CcMkdorr.js +1 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DcgVBDqw.js +1 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DjuZNPz0.mjs +67 -0
- package/dist/hsCheckbox-BKa_El3s.js +1 -0
- package/dist/hsCheckbox-CalDndlZ.mjs +4 -0
- package/dist/hsCheckbox.vue_vue_type_script_setup_true_lang-Dh-lqGjq.js +1 -0
- package/dist/hsCheckbox.vue_vue_type_script_setup_true_lang-XCUyHi8X.mjs +28 -0
- package/dist/hsExpand-CQVFjccm.js +1 -0
- package/dist/hsExpand-DzturGzS.mjs +4 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-2PgtnOyZ.js +1 -0
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-ByI3lkrY.mjs +285 -0
- package/dist/hsFormConfig-B-0-7IG-.js +1 -0
- package/dist/hsFormConfig-CiC1xqCS.mjs +207 -0
- package/dist/hsFormConfigList-D-zBHhco.mjs +414 -0
- package/dist/hsFormConfigList-D-zBHhco.mjs.gz +0 -0
- package/dist/hsFormConfigList-IppfulsQ.js +1 -0
- package/dist/hsFormPanel-DOSHi6SL.js +1 -0
- package/dist/hsFormPanel-DrMHz5BG.mjs +238 -0
- package/dist/hsFormPanel-DrMHz5BG.mjs.gz +0 -0
- package/dist/hsFormParse--MpZBB1o.js +1 -0
- package/dist/hsFormParse-Dzmv1LRL.mjs +4 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-C3QZXAnq.mjs +242 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DNdAJZ-0.js +1 -0
- package/dist/hsPanelItem-Cr_zx3zB.mjs +4 -0
- package/dist/hsPanelItem-L0cRzdZ9.js +1 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B8S5p2OU.mjs +86 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CHRnArdb.js +1 -0
- package/dist/iframes-CWdXFiYU.mjs +122 -0
- package/dist/iframes-DnAW1ZV2.js +1 -0
- package/dist/index copy-C9pm4wwS.mjs +134 -0
- package/dist/index copy-CltelxDj.js +1 -0
- package/dist/index copy-NI5bkeov.mjs +69 -0
- package/dist/index copy-YVeg4Qpy.js +1 -0
- package/dist/index--90UOcEE.js +1 -0
- package/dist/index-4ncpQ4eO.js +1 -0
- package/dist/index-5_S5X2B8.mjs +73 -0
- package/dist/index-7U-cYtGo.js +1 -0
- package/dist/index-86EBVGGo.js +1 -0
- package/dist/index-B0-7gN8V.mjs +131 -0
- package/dist/index-B3h4_c_0.js +1 -0
- package/dist/index-B4RbAHHA.js +1 -0
- package/dist/index-B5B5bCFQ.js +1 -0
- package/dist/index-B8Zlivb4.mjs +152 -0
- package/dist/index-BIgnSPCb.js +1 -0
- package/dist/index-BIj1BEfS.mjs +89 -0
- package/dist/index-BNdkz6Oj.mjs +65 -0
- package/dist/index-BTBnzpJl.mjs +331 -0
- package/dist/index-BTBnzpJl.mjs.gz +0 -0
- package/dist/index-BTrzbnh7.mjs +10 -0
- package/dist/index-BX1VwR6q.mjs +254 -0
- package/dist/index-B_aWJfJG.mjs +50 -0
- package/dist/index-Be14owUC.js +110 -0
- package/dist/index-Be14owUC.js.gz +0 -0
- package/dist/index-BhMp70XH.mjs +94 -0
- package/dist/index-BiFq1jSn.mjs +4 -0
- package/dist/index-BiXUzbUN.js +1 -0
- package/dist/index-BiXUzbUN.js.gz +0 -0
- package/dist/index-BoxE6g4D.mjs +22 -0
- package/dist/index-BsmMkmmb.mjs +30 -0
- package/dist/index-BvRPdQjQ.js +1 -0
- package/dist/index-Bw3xRnWj.js +1 -0
- package/dist/index-By4ZqBp1.mjs +262 -0
- package/dist/index-BziqiZMe.js +1 -0
- package/dist/index-BziqiZMe.js.gz +0 -0
- package/dist/index-C1yO8AeN.js +1 -0
- package/dist/index-C4QLSPnE.js +1 -0
- package/dist/index-C4QLSPnE.js.gz +0 -0
- package/dist/index-C4jaoMOL.js +1 -0
- package/dist/index-CBtvQ2Qa.js +1 -0
- package/dist/index-CDFo3k6H.mjs +47 -0
- package/dist/index-CEWu6Vth.js +1 -0
- package/dist/index-CH6aNW1H.js +1 -0
- package/dist/index-CNqCyebM.mjs +67 -0
- package/dist/index-COoEtFch.js +1 -0
- package/dist/index-CSFKdCgt.js +1 -0
- package/dist/index-CSohO9Sf.js +1 -0
- package/dist/index-CUE6cOFE.mjs +76 -0
- package/dist/index-CVr6ThwO.mjs +14 -0
- package/dist/index-CYwUku7v.js +1 -0
- package/dist/index-C_Jh3o-z.mjs +2208 -0
- package/dist/index-C_Jh3o-z.mjs.gz +0 -0
- package/dist/index-CaroRQE3.mjs +258272 -0
- package/dist/index-CaroRQE3.mjs.gz +0 -0
- package/dist/index-CbCppT2z.js +1 -0
- package/dist/index-CbgKih92.js +1 -0
- package/dist/index-Cevc_s57.js +1 -0
- package/dist/index-CpHkFJpe.mjs +4 -0
- package/dist/index-CpeyiMej.js +1 -0
- package/dist/index-CtQOzn7W.mjs +285 -0
- package/dist/index-CvaGWWCb.mjs +172 -0
- package/dist/index-D-ZR2ZQw.js +1 -0
- package/dist/index-D-rui3Hs.mjs +133 -0
- package/dist/index-D6stlvgD.mjs +10 -0
- package/dist/index-D858MrDM.mjs +173 -0
- package/dist/index-DCgZAOFA.js +1 -0
- package/dist/index-DEykAVeO.js +1 -0
- package/dist/index-DHHcO6BG.js +1 -0
- package/dist/index-DHxDaTXn.js +1 -0
- package/dist/index-DIMVIQkh.mjs +4 -0
- package/dist/index-DT3c6iM1.mjs +49 -0
- package/dist/index-DUmz-a1e.js +1 -0
- package/dist/index-DXyhVGaL.mjs +95 -0
- package/dist/index-DZ_UFJE2.mjs +43 -0
- package/dist/index-Db2jthwJ.js +1 -0
- package/dist/index-DhDED1vM.mjs +73 -0
- package/dist/index-Dkkn5hYp.mjs +213 -0
- package/dist/index-Dqazj9UX.js +1 -0
- package/dist/index-DqikGsbw.mjs +1009 -0
- package/dist/index-DqikGsbw.mjs.gz +0 -0
- package/dist/index-DrCxI2-S.js +1 -0
- package/dist/index-DrpmyDit.js +1 -0
- package/dist/index-Du7wnh89.js +1 -0
- package/dist/index-DuMZar1l.mjs +51 -0
- package/dist/index-DvVF79rV.mjs +65 -0
- package/dist/index-Dymo6jYe.mjs +119 -0
- package/dist/index-EKgsCiWF.js +1 -0
- package/dist/index-GyR4BRDa.mjs +4 -0
- package/dist/index-I4czMgZi.js +1 -0
- package/dist/index-JwYvAnQ3.js +1 -0
- package/dist/index-PCI3lWru.mjs +38 -0
- package/dist/index-Pkhj9M-e.mjs +403 -0
- package/dist/index-Pkhj9M-e.mjs.gz +0 -0
- package/dist/index-Qnu0cq8V.mjs +23 -0
- package/dist/index-Z83-84L3.js +1 -0
- package/dist/index-feq0FF6W.mjs +23 -0
- package/dist/index-g_BDa62N.mjs +19 -0
- package/dist/index-iXgZKYFt.mjs +200 -0
- package/dist/index-iyQdB62I.js +1 -0
- package/dist/index-jJSGIw6e.mjs +4 -0
- package/dist/index-lnqZa96W.js +1 -0
- package/dist/index-nfmpb6Xb.js +1 -0
- package/dist/index-qaA0ntg_.mjs +5403 -0
- package/dist/index-qaA0ntg_.mjs.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +169 -135
- package/dist/index.vue_vue_type_script_setup_true_lang-Bo-cWJ2h.mjs +103 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-C6kBeVt9.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CN3R-WyE.mjs +194 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CV51d0Z-.mjs +97 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CzxOI00n.mjs +267 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CzxOI00n.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DF41VMpg.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-ZElmGMCs.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-s332W7ju.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BdxXuNuU.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-iB7n4gFb.mjs +288 -0
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-iB7n4gFb.mjs.gz +0 -0
- package/dist/lib-generate-test-usersig.min.js +2 -0
- package/dist/lib-generate-test-usersig.min.js.gz +0 -0
- package/dist/link-CgTDXGDS.mjs +63 -0
- package/dist/link-D2FDMeja.js +1 -0
- package/dist/list-5DKapoIg.mjs +85 -0
- package/dist/list-BvqQwxfl.js +1 -0
- package/dist/logo-mini-BQ9BrQ1U.mjs +4 -0
- package/dist/logo-mini-DwRdfcE7.js +1 -0
- package/dist/main-CTH2j1nH.js +1 -0
- package/dist/main-DYH0PjBf.mjs +72 -0
- package/dist/mobile-ByMcRIck.mjs +115 -0
- package/dist/mobile-Ct2wYxBA.js +1 -0
- package/dist/parent-DuAzBa1S.mjs +131 -0
- package/dist/parent-nV16iTuQ.js +1 -0
- package/dist/popup-DoFnyyCj.mjs +4 -0
- package/dist/popup-V67deXeJ.js +1 -0
- package/dist/popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DQDiTEgt.mjs +89 -0
- package/dist/popup.vue_vue_type_script_setup_true_name_replaceRules_lang-E-ChMCSs.js +1 -0
- package/dist/roleItem-BlcLJSJN.js +1 -0
- package/dist/roleItem-CbNpIWj7.mjs +103 -0
- package/dist/saveForm-BzO1nXB7.js +1 -0
- package/dist/saveForm-CPBMTFy6.mjs +160 -0
- package/dist/scan-BcgmKsTD.js +1 -0
- package/dist/scan-BcgmKsTD.js.gz +0 -0
- package/dist/scan-DTqXY1TN.mjs +945 -0
- package/dist/scan-DTqXY1TN.mjs.gz +0 -0
- package/dist/search-B-EDB-Tc.mjs +114 -0
- package/dist/search-B9FiliR8.js +1 -0
- package/dist/selectConfig-C_ir8n8r.js +1 -0
- package/dist/selectConfig-DAkXAD_Y.mjs +546 -0
- package/dist/selectConfig-DAkXAD_Y.mjs.gz +0 -0
- package/dist/shortcutList-BXBGQdNn.mjs +76 -0
- package/dist/shortcutList-WSi4lUlm.js +1 -0
- package/dist/style.css +1 -0
- package/dist/style.css.gz +0 -0
- package/dist/subItem-CZYXr8hi.mjs +77 -0
- package/dist/subItem-D2t5Fs0x.js +1 -0
- package/dist/tagsView-BQQMtEO2.mjs +2695 -0
- package/dist/tagsView-BQQMtEO2.mjs.gz +0 -0
- package/dist/tagsView-D7WaG5Ak.js +8 -0
- package/dist/tagsView-D7WaG5Ak.js.gz +0 -0
- package/dist/transverse-BQN-Si9F.mjs +65 -0
- package/dist/transverse-C_saqvLc.js +1 -0
- package/dist/types/components/business/bcBox/bcBox.vue.d.ts +66 -0
- package/dist/types/{src/components → components}/business/bcBox/utils.d.ts +11 -10
- package/dist/types/components/business/bcBreadcrumb/bcBreadcrumb.vue.d.ts +23 -0
- package/dist/types/{src/components → components}/business/bcBreadcrumb/index.d.ts +2 -1
- package/dist/types/components/business/bcForm/baseForm.vue.d.ts +273 -0
- package/dist/types/components/business/bcForm/bcForm.vue.d.ts +42 -0
- package/dist/types/{src/components → components}/business/bcForm/type.d.ts +7 -6
- package/dist/types/components/business/bcForm/useGuide.d.ts +564 -0
- package/dist/types/components/business/bcSystemAuth/components/data.vue.d.ts +3 -0
- package/dist/types/components/business/bcSystemAuth/components/dict.vue.d.ts +3 -0
- package/dist/types/components/business/bcSystemAuth/components/fastSet/popup.vue.d.ts +17 -0
- package/dist/types/components/business/bcSystemAuth/components/field.vue.d.ts +3 -0
- package/dist/types/components/business/bcSystemAuth/components/form.vue.d.ts +13 -0
- package/dist/types/{src/components → components}/business/bcSystemAuth/components/selectAll/index.d.ts +3 -2
- package/dist/types/components/business/bcSystemAuth/components/selectAll/index.vue.d.ts +5 -0
- package/dist/types/components/business/bcSystemAuth/components/table.vue.d.ts +13 -0
- package/dist/types/components/business/bcSystemAuth/components/widget/btns.vue.d.ts +15 -0
- package/dist/types/components/business/bcSystemAuth/components/widget/form.vue.d.ts +15 -0
- package/dist/types/components/business/bcSystemAuth/components/widget/tab.vue.d.ts +45 -0
- package/dist/types/components/business/bcSystemAuth/components/widget/tables.vue.d.ts +15 -0
- package/dist/types/components/business/bcSystemAuth/components/widget/tablesWraper.vue.d.ts +15 -0
- package/dist/types/{src/components → components}/business/bcSystemAuth/fastStore.d.ts +49 -48
- package/dist/types/{src/components → components}/business/bcSystemAuth/fastUtils.d.ts +30 -28
- package/dist/types/components/business/bcSystemAuth/index.d.ts +3 -0
- package/dist/types/components/business/bcSystemAuth/index.vue.d.ts +26 -0
- package/dist/types/{src/components → components}/business/bcSystemAuth/store.d.ts +49 -48
- package/dist/types/components/business/bcSystemAuth/type.d.ts +42 -0
- package/dist/types/components/business/bcSystemAuth/useAuth.d.ts +28 -0
- package/dist/types/{src/components → components}/business/bcSystemAuth/utils.d.ts +30 -28
- package/dist/types/components/business/bcSystemField/components/field.vue.d.ts +3 -0
- package/dist/types/components/business/bcSystemField/components/form.vue.d.ts +13 -0
- package/dist/types/{src/components → components}/business/bcSystemField/components/selectAll/index.d.ts +5 -4
- package/dist/types/components/business/bcSystemField/components/selectAll/index.vue.d.ts +5 -0
- package/dist/types/components/business/bcSystemField/components/table.vue.d.ts +13 -0
- package/dist/types/components/business/bcSystemField/components/widget/form.vue.d.ts +15 -0
- package/dist/types/components/business/bcSystemField/components/widget/tab.vue.d.ts +45 -0
- package/dist/types/components/business/bcSystemField/components/widget/tables.vue.d.ts +15 -0
- package/dist/types/components/business/bcSystemField/components/widget/tablesWraper.vue.d.ts +15 -0
- package/dist/types/components/business/bcSystemField/index.d.ts +3 -0
- package/dist/types/components/business/bcSystemField/index.vue.d.ts +16 -0
- package/dist/types/{src/components → components}/business/bcSystemField/store.d.ts +40 -39
- package/dist/types/components/business/bcSystemField/useAuth.d.ts +16 -0
- package/dist/types/{src/components → components}/business/bcSystemField/utils.d.ts +21 -20
- package/dist/types/components/business/bcTable/bcFormTable.vue.d.ts +142 -0
- package/dist/types/components/business/bcTable/bcTable.vue.d.ts +51 -0
- package/dist/types/components/business/bcTable/components/btn/btn.vue.d.ts +77 -0
- package/dist/types/components/business/bcTable/components/popup/index.d.ts +3 -0
- package/dist/types/components/business/bcTable/components/query/components/sortForm/sortForm.vue.d.ts +23 -0
- package/dist/types/components/business/bcTable/components/query/drag.vue.d.ts +244 -0
- package/dist/types/components/business/bcTable/components/query/query.vue.d.ts +249 -0
- package/dist/types/{src/components → components}/business/bcTable/components/query/useQuickSearch.d.ts +3 -2
- package/dist/types/components/business/bcTable/components/table/colgroup.vue.d.ts +28 -0
- package/dist/types/components/business/bcTable/components/table/column.vue.d.ts +35 -0
- package/dist/types/components/business/bcTable/components/table/components/sortColumn/sortColumn.vue.d.ts +25 -0
- package/dist/types/{src/components → components}/business/bcTable/components/table/components/sortColumn/types.d.ts +2 -1
- package/dist/types/components/business/bcTable/components/table/table.vue.d.ts +67 -0
- package/dist/types/{src/components → components}/business/bcTable/components/table/useTable.d.ts +5 -5
- package/dist/types/components/business/bcTable/components/table/useTableHeight.d.ts +25 -0
- package/dist/types/{src/components → components}/business/bcTable/methods/cellDetailMethod.d.ts +1 -0
- package/dist/types/{src/components → components}/business/bcTable/methods/filterAgeMethod.d.ts +1 -0
- package/dist/types/{src/components → components}/business/bcTable/methods/footerMethod.d.ts +2 -1
- package/dist/types/{src/components → components}/business/bcTable/methods/formBtnMethod.d.ts +2 -1
- package/dist/types/{src/components → components}/business/bcTable/methods/index.d.ts +2 -1
- package/dist/types/{src/components → components}/business/bcTable/utils/authField.d.ts +2 -1
- package/dist/types/{src/components → components}/business/bcTable/utils/onFormKey.d.ts +5 -4
- package/dist/types/{src/components → components}/business/bcTable/utils/onTableKey.d.ts +6 -5
- package/dist/types/{src/components → components}/business/bcTable/utils/parseTable.d.ts +21 -20
- package/dist/types/{src/components → components}/business/bcTable/utils/type.d.ts +12 -11
- package/dist/types/{src/components → components}/business/bcTable/utils/useBcTable.d.ts +7084 -7074
- package/dist/types/{src/components → components}/business/bcTable/utils/useButon.d.ts +6 -5
- package/dist/types/components/business/bcTable/utils/useFormTableHeight.d.ts +20 -0
- package/dist/types/{src/components → components}/business/bcTable/utils/useKeydownEvent.d.ts +18 -17
- package/dist/types/{src/components → components}/business/bcVisual/bcVisual.vue.d.ts +8 -9
- package/dist/types/{src/components → components}/business/bcVisual/components/setting/dragItem.vue.d.ts +9 -16
- package/dist/types/components/business/bcVisual/components/setting/extendItem.vue.d.ts +13 -0
- package/dist/types/components/business/bcVisual/components/setting/setting.vue.d.ts +3 -0
- package/dist/types/{src/components → components}/business/bcVisual/components/setting/useDrag.d.ts +4 -2
- package/dist/types/components/business/bcVisual/components/table/table.vue.d.ts +6 -0
- package/dist/types/components/business/bcVisual/components/updateName/popup.vue.d.ts +17 -0
- package/dist/types/components/business/bcVisual/components/updateSql/addCondition.vue.d.ts +23 -0
- package/dist/types/{src/components → components}/business/bcVisual/components/updateSql/index.d.ts +2 -1
- package/dist/types/{src/components → components}/business/bcVisual/components/updateSql/nodeTree/index.d.ts +2 -1
- package/dist/types/components/business/bcVisual/components/updateSql/nodeTree/index.vue.d.ts +21 -0
- package/dist/types/components/business/bcVisual/components/updateSql/nodeTree/nodeTree.vue.d.ts +19 -0
- package/dist/types/components/business/bcVisual/components/updateSql/popup.vue.d.ts +17 -0
- package/dist/types/{src/components → components}/business/bcVisual/useTableFormat.d.ts +29 -28
- package/dist/types/{src/components → components}/business/bcVisual/utils.d.ts +3 -1
- package/dist/types/index.d.ts +1 -32
- package/dist/types/plugins/index.d.ts +33 -0
- package/dist/types/{src/types → types}/auth.d.ts +2 -1
- package/dist/types/{src/types → types}/components.d.ts +2 -1
- package/dist/types/{src/types → types}/customData.d.ts +19 -16
- package/dist/types/{src/types → types}/form.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/autocomplete.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/checkbox.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/input.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/inputGroup.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/inputNumber.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/radio.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/selelct.d.ts +2 -1
- package/dist/types/{src/types → types}/formItem/treeSelect.d.ts +2 -1
- package/dist/types/types/system.d.ts +14 -0
- package/dist/types/{src/utils → utils}/arrayOperation.d.ts +1 -1
- package/dist/types/utils/authFunction.d.ts +18 -0
- package/dist/types/utils/build.d.ts +11 -0
- package/dist/types/{src/utils → utils}/common.d.ts +4 -3
- package/dist/types/utils/commonFunction.d.ts +29 -0
- package/dist/types/{src/utils → utils}/download.d.ts +4 -4
- package/dist/types/utils/file.d.ts +6 -0
- package/dist/types/{src/utils → utils}/getDataType.d.ts +3 -2
- package/dist/types/utils/getStyleSheets.d.ts +11 -0
- package/dist/types/utils/index.d.ts +29 -0
- package/dist/types/{src/utils/loading/index.d.ts → utils/loading.d.ts} +1 -1
- package/dist/types/utils/lodash.d.ts +3 -0
- package/dist/types/{src/utils → utils}/mitt.d.ts +3 -2
- package/dist/types/{src/utils → utils}/number.d.ts +14 -2
- package/dist/types/{src/utils → utils}/other.d.ts +12 -11
- package/dist/types/utils/request/index.d.ts +6 -0
- package/dist/types/{src/utils → utils}/request/interceptors/request/authorization.interceptor.d.ts +2 -1
- package/dist/types/{src/utils → utils}/request/interceptors/request/result.type.interceptor.d.ts +2 -6
- package/dist/types/{src/utils → utils}/request/interceptors/request/undefined-params-handler.interceptor.d.ts +2 -13
- package/dist/types/{src/utils → utils}/request/interceptors/response/error-handler.interceptor.d.ts +2 -1
- package/dist/types/{src/utils → utils}/request/repeatRequest.d.ts +2 -1
- package/dist/types/utils/request/request.d.ts +7 -0
- package/dist/types/utils/setIconfont.d.ts +11 -0
- package/dist/types/utils/showMessage.d.ts +6 -0
- package/dist/types/utils/showMessageBox.d.ts +6 -0
- package/dist/types/utils/showNotification.d.ts +6 -0
- package/dist/types/{src/utils → utils}/showPopup/index.d.ts +6 -5
- package/dist/types/{src/utils → utils}/storage.d.ts +14 -12
- package/dist/types/{src/utils → utils}/tree.d.ts +4 -3
- package/dist/types/{src/utils → utils}/url.d.ts +3 -2
- package/dist/useConfigInfo-2zEYLSSs.js +1 -0
- package/dist/useConfigInfo-PTkkdx-l.mjs +19 -0
- package/dist/user-4AkMtJNx.mjs +246 -0
- package/dist/user-Dv0yBcpt.js +1 -0
- package/dist/userNews-Bkj38E0W.js +1 -0
- package/dist/userNews-Kzyqi5O2.mjs +72 -0
- package/dist/userSelect-C40-eSjE.mjs +4 -0
- package/dist/userSelect-QMToHb6f.js +1 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DAOTR3MQ.js +1 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-_aKlFytR.mjs +100 -0
- package/dist/vertical-B9_KiZof.js +1 -0
- package/dist/vertical-CU-DZItF.mjs +133 -0
- package/package.json +39 -16
- package/dist/bcIcon-BNPGT9B7.mjs +0 -4
- package/dist/bcIcon-CFYxyZyR.js +0 -1
- package/dist/index-CcXaux5a.mjs +0 -144167
- package/dist/index-yRPuvCc-.js +0 -349
- package/dist/index.css +0 -1
- package/dist/types/element-plus.d.ts +0 -557
- package/dist/types/src/components/base/Affix/index.d.ts +0 -1
- package/dist/types/src/components/base/Affix/src/Affix.vue.d.ts +0 -3
- package/dist/types/src/components/base/Alert/index.d.ts +0 -1
- package/dist/types/src/components/base/Alert/src/Alert.vue.d.ts +0 -3
- package/dist/types/src/components/base/Aside/index.d.ts +0 -1
- package/dist/types/src/components/base/Aside/src/Aside.vue.d.ts +0 -3
- package/dist/types/src/components/base/Autocomplete/index.d.ts +0 -1
- package/dist/types/src/components/base/Autocomplete/src/Autocomplete.vue.d.ts +0 -3
- package/dist/types/src/components/base/Backtop/index.d.ts +0 -1
- package/dist/types/src/components/base/Backtop/src/Backtop.vue.d.ts +0 -3
- package/dist/types/src/components/base/Badge/index.d.ts +0 -1
- package/dist/types/src/components/base/Badge/src/Badge.vue.d.ts +0 -3
- package/dist/types/src/components/base/Button/index.d.ts +0 -2
- package/dist/types/src/components/base/Button/src/Button.vue.d.ts +0 -3
- package/dist/types/src/components/base/Button/src/ButtonGroup.vue.d.ts +0 -3
- package/dist/types/src/components/base/Calendar/index.d.ts +0 -1
- package/dist/types/src/components/base/Calendar/src/Calendar.vue.d.ts +0 -3
- package/dist/types/src/components/base/Card/index.d.ts +0 -1
- package/dist/types/src/components/base/Card/src/Card.vue.d.ts +0 -3
- package/dist/types/src/components/base/Carousel/index.d.ts +0 -2
- package/dist/types/src/components/base/Carousel/src/Carousel.vue.d.ts +0 -3
- package/dist/types/src/components/base/Carousel/src/CarouselItem.vue.d.ts +0 -3
- package/dist/types/src/components/base/Cascader/index.d.ts +0 -2
- package/dist/types/src/components/base/Cascader/src/Cascader.vue.d.ts +0 -3
- package/dist/types/src/components/base/Cascader/src/CascaderPanel.vue.d.ts +0 -3
- package/dist/types/src/components/base/Checkbox/index.d.ts +0 -3
- package/dist/types/src/components/base/Checkbox/src/Checkbox.vue.d.ts +0 -3
- package/dist/types/src/components/base/Checkbox/src/CheckboxButton.vue.d.ts +0 -3
- package/dist/types/src/components/base/Checkbox/src/CheckboxGroup.vue.d.ts +0 -3
- package/dist/types/src/components/base/Col/index.d.ts +0 -1
- package/dist/types/src/components/base/Col/src/Col.vue.d.ts +0 -3
- package/dist/types/src/components/base/Collapse/index.d.ts +0 -2
- package/dist/types/src/components/base/Collapse/src/Collapse.vue.d.ts +0 -3
- package/dist/types/src/components/base/Collapse/src/CollapseItem.vue.d.ts +0 -3
- package/dist/types/src/components/base/ColorPicker/index.d.ts +0 -1
- package/dist/types/src/components/base/ColorPicker/src/ColorPicker.vue.d.ts +0 -3
- package/dist/types/src/components/base/Container/index.d.ts +0 -1
- package/dist/types/src/components/base/Container/src/Container.vue.d.ts +0 -3
- package/dist/types/src/components/base/DatePicker/index.d.ts +0 -1
- package/dist/types/src/components/base/DatePicker/src/DatePicker.vue.d.ts +0 -3
- package/dist/types/src/components/base/Descriptions/index.d.ts +0 -2
- package/dist/types/src/components/base/Descriptions/src/Descriptions.vue.d.ts +0 -3
- package/dist/types/src/components/base/Descriptions/src/DescriptionsItem.vue.d.ts +0 -3
- package/dist/types/src/components/base/Dialog/index.d.ts +0 -1
- package/dist/types/src/components/base/Dialog/src/Dialog.vue.d.ts +0 -3
- package/dist/types/src/components/base/Divider/index.d.ts +0 -1
- package/dist/types/src/components/base/Divider/src/Divider.vue.d.ts +0 -3
- package/dist/types/src/components/base/Drawer/index.d.ts +0 -1
- package/dist/types/src/components/base/Drawer/src/Drawer.vue.d.ts +0 -3
- package/dist/types/src/components/base/Dropdown/index.d.ts +0 -3
- package/dist/types/src/components/base/Dropdown/src/Dropdown.vue.d.ts +0 -3
- package/dist/types/src/components/base/Dropdown/src/DropdownItem.vue.d.ts +0 -3
- package/dist/types/src/components/base/Dropdown/src/DropdownMenu.vue.d.ts +0 -3
- package/dist/types/src/components/base/Empty/index.d.ts +0 -1
- package/dist/types/src/components/base/Empty/src/Empty.vue.d.ts +0 -3
- package/dist/types/src/components/base/Footer/index.d.ts +0 -1
- package/dist/types/src/components/base/Footer/src/Footer.vue.d.ts +0 -3
- package/dist/types/src/components/base/Form/index.d.ts +0 -2
- package/dist/types/src/components/base/Form/src/Form.vue.d.ts +0 -3
- package/dist/types/src/components/base/Form/src/FormItem.vue.d.ts +0 -3
- package/dist/types/src/components/base/Header/index.d.ts +0 -1
- package/dist/types/src/components/base/Header/src/Header.vue.d.ts +0 -3
- package/dist/types/src/components/base/Icon/index.d.ts +0 -1
- package/dist/types/src/components/base/Icon/src/Icon.vue.d.ts +0 -3
- package/dist/types/src/components/base/Image/index.d.ts +0 -1
- package/dist/types/src/components/base/Image/src/Image.vue.d.ts +0 -3
- package/dist/types/src/components/base/ImageViewer/index.d.ts +0 -1
- package/dist/types/src/components/base/ImageViewer/src/ImageViewer.vue.d.ts +0 -3
- package/dist/types/src/components/base/Input/index.d.ts +0 -1
- package/dist/types/src/components/base/Input/src/Input.vue.d.ts +0 -30
- package/dist/types/src/components/base/InputNumber/index.d.ts +0 -1
- package/dist/types/src/components/base/InputNumber/src/InputNumber.vue.d.ts +0 -3
- package/dist/types/src/components/base/Main/index.d.ts +0 -1
- package/dist/types/src/components/base/Main/src/Main.vue.d.ts +0 -3
- package/dist/types/src/components/base/Menu/index.d.ts +0 -3
- package/dist/types/src/components/base/Menu/src/Menu.vue.d.ts +0 -3
- package/dist/types/src/components/base/Menu/src/MenuItem.vue.d.ts +0 -3
- package/dist/types/src/components/base/Menu/src/SubMenu.vue.d.ts +0 -3
- package/dist/types/src/components/base/Pagination/index.d.ts +0 -1
- package/dist/types/src/components/base/Pagination/src/Pagination.vue.d.ts +0 -3
- package/dist/types/src/components/base/Popconfirm/index.d.ts +0 -1
- package/dist/types/src/components/base/Popconfirm/src/Popconfirm.vue.d.ts +0 -3
- package/dist/types/src/components/base/Popover/index.d.ts +0 -1
- package/dist/types/src/components/base/Popover/src/Popover.vue.d.ts +0 -3
- package/dist/types/src/components/base/Progress/index.d.ts +0 -1
- package/dist/types/src/components/base/Progress/src/Progress.vue.d.ts +0 -3
- package/dist/types/src/components/base/Qr/index.d.ts +0 -1
- package/dist/types/src/components/base/Qr/src/Qr.vue.d.ts +0 -3
- package/dist/types/src/components/base/Radio/index.d.ts +0 -3
- package/dist/types/src/components/base/Radio/src/Radio.vue.d.ts +0 -3
- package/dist/types/src/components/base/Radio/src/RadioButton.vue.d.ts +0 -3
- package/dist/types/src/components/base/Radio/src/RadioGroup.vue.d.ts +0 -3
- package/dist/types/src/components/base/Rate/index.d.ts +0 -1
- package/dist/types/src/components/base/Rate/src/Rate.vue.d.ts +0 -3
- package/dist/types/src/components/base/Result/index.d.ts +0 -1
- package/dist/types/src/components/base/Result/src/Result.vue.d.ts +0 -3
- package/dist/types/src/components/base/Row/index.d.ts +0 -1
- package/dist/types/src/components/base/Row/src/Row.vue.d.ts +0 -3
- package/dist/types/src/components/base/Scrollbar/index.d.ts +0 -1
- package/dist/types/src/components/base/Scrollbar/src/Scrollbar.vue.d.ts +0 -3
- package/dist/types/src/components/base/Select/index.d.ts +0 -3
- package/dist/types/src/components/base/Select/src/Option.vue.d.ts +0 -3
- package/dist/types/src/components/base/Select/src/OptionGroup.vue.d.ts +0 -3
- package/dist/types/src/components/base/Select/src/Select.vue.d.ts +0 -37
- package/dist/types/src/components/base/SelectV2/index.d.ts +0 -1
- package/dist/types/src/components/base/SelectV2/src/SelectV2.vue.d.ts +0 -3
- package/dist/types/src/components/base/Slider/index.d.ts +0 -1
- package/dist/types/src/components/base/Slider/src/Slider.vue.d.ts +0 -3
- package/dist/types/src/components/base/Steps/index.d.ts +0 -1
- package/dist/types/src/components/base/Steps/src/Step.vue.d.ts +0 -3
- package/dist/types/src/components/base/Steps/src/Steps.vue.d.ts +0 -3
- package/dist/types/src/components/base/Switch/index.d.ts +0 -1
- package/dist/types/src/components/base/Switch/src/Switch.vue.d.ts +0 -3
- package/dist/types/src/components/base/Table/index.d.ts +0 -2
- package/dist/types/src/components/base/Table/src/Table.vue.d.ts +0 -3
- package/dist/types/src/components/base/Table/src/TableColumn.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tabs/index.d.ts +0 -2
- package/dist/types/src/components/base/Tabs/src/TabPane.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tabs/src/Tabs.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tag/index.d.ts +0 -2
- package/dist/types/src/components/base/Tag/src/CheckTag.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tag/src/Tag.vue.d.ts +0 -3
- package/dist/types/src/components/base/Text/index.d.ts +0 -1
- package/dist/types/src/components/base/Text/src/Text.vue.d.ts +0 -3
- package/dist/types/src/components/base/TimePicker/index.d.ts +0 -1
- package/dist/types/src/components/base/TimePicker/src/TimePicker.vue.d.ts +0 -3
- package/dist/types/src/components/base/TimeSelect/index.d.ts +0 -1
- package/dist/types/src/components/base/TimeSelect/src/TimeSelect.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tooltip/index.d.ts +0 -1
- package/dist/types/src/components/base/Tooltip/src/Tooltip.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tour/index.d.ts +0 -2
- package/dist/types/src/components/base/Tour/src/Tour.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tour/src/TourStep.vue.d.ts +0 -3
- package/dist/types/src/components/base/Transfer/index.d.ts +0 -1
- package/dist/types/src/components/base/Transfer/src/Transfer.vue.d.ts +0 -3
- package/dist/types/src/components/base/Tree/index.d.ts +0 -1
- package/dist/types/src/components/base/Tree/src/Tree.vue.d.ts +0 -3
- package/dist/types/src/components/base/TreeSelect/index.d.ts +0 -1
- package/dist/types/src/components/base/TreeSelect/src/TreeSelect.vue.d.ts +0 -3
- package/dist/types/src/components/base/TreeV2/index.d.ts +0 -1
- package/dist/types/src/components/base/TreeV2/src/TreeV2.vue.d.ts +0 -3
- package/dist/types/src/components/base/Upload/index.d.ts +0 -1
- package/dist/types/src/components/base/Upload/src/Upload.vue.d.ts +0 -3
- package/dist/types/src/components/base/Watermark/index.d.ts +0 -1
- package/dist/types/src/components/base/Watermark/src/Watermark.vue.d.ts +0 -3
- package/dist/types/src/components/base/components.d.ts +0 -60
- package/dist/types/src/components/base/index.d.ts +0 -174
- package/dist/types/src/components/business/bcBox/bcBox.vue.d.ts +0 -48
- package/dist/types/src/components/business/bcBreadcrumb/bcBreadcrumb.vue.d.ts +0 -14
- package/dist/types/src/components/business/bcButton/bcButton.vue.d.ts +0 -13
- package/dist/types/src/components/business/bcCheckbox/bcCheckbox.vue.d.ts +0 -23
- package/dist/types/src/components/business/bcContextBox/bcContextBox.vue.d.ts +0 -40
- package/dist/types/src/components/business/bcContextBox/useContextMenu.d.ts +0 -34
- package/dist/types/src/components/business/bcDivider/bcDivider.vue.d.ts +0 -38
- package/dist/types/src/components/business/bcFace/bcFace.vue.d.ts +0 -24
- package/dist/types/src/components/business/bcForm/baseForm.vue.d.ts +0 -275
- package/dist/types/src/components/business/bcForm/bcForm.vue.d.ts +0 -33
- package/dist/types/src/components/business/bcForm/useGuide.d.ts +0 -559
- package/dist/types/src/components/business/bcGroup/bcGroup.vue.d.ts +0 -36
- package/dist/types/src/components/business/bcIcon/bcIcon.vue.d.ts +0 -27
- package/dist/types/src/components/business/bcInputGroup/bcInputGroup.vue.d.ts +0 -20
- package/dist/types/src/components/business/bcRadio/bcRadio.vue.d.ts +0 -18
- package/dist/types/src/components/business/bcSelect/bcSelect.vue.d.ts +0 -33
- package/dist/types/src/components/business/bcSignature/index.vue.d.ts +0 -19
- package/dist/types/src/components/business/bcSystemAuth/components/data.vue.d.ts +0 -3
- package/dist/types/src/components/business/bcSystemAuth/components/dict.vue.d.ts +0 -3
- package/dist/types/src/components/business/bcSystemAuth/components/fastSet/popup.vue.d.ts +0 -17
- package/dist/types/src/components/business/bcSystemAuth/components/field.vue.d.ts +0 -3
- package/dist/types/src/components/business/bcSystemAuth/components/form.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemAuth/components/selectAll/index.vue.d.ts +0 -5
- package/dist/types/src/components/business/bcSystemAuth/components/table.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemAuth/components/widget/btns.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemAuth/components/widget/form.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemAuth/components/widget/tab.vue.d.ts +0 -17
- package/dist/types/src/components/business/bcSystemAuth/components/widget/tables.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemAuth/components/widget/tablesWraper.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemAuth/index.d.ts +0 -2
- package/dist/types/src/components/business/bcSystemAuth/index.vue.d.ts +0 -17
- package/dist/types/src/components/business/bcSystemAuth/type.d.ts +0 -342
- package/dist/types/src/components/business/bcSystemAuth/useAuth.d.ts +0 -26
- package/dist/types/src/components/business/bcSystemField/components/field.vue.d.ts +0 -3
- package/dist/types/src/components/business/bcSystemField/components/form.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemField/components/selectAll/index.vue.d.ts +0 -5
- package/dist/types/src/components/business/bcSystemField/components/table.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemField/components/widget/form.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemField/components/widget/tab.vue.d.ts +0 -17
- package/dist/types/src/components/business/bcSystemField/components/widget/tables.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemField/components/widget/tablesWraper.vue.d.ts +0 -11
- package/dist/types/src/components/business/bcSystemField/index.d.ts +0 -2
- package/dist/types/src/components/business/bcSystemField/index.vue.d.ts +0 -7
- package/dist/types/src/components/business/bcSystemField/useAuth.d.ts +0 -14
- package/dist/types/src/components/business/bcTable/bcFormTable.vue.d.ts +0 -143
- package/dist/types/src/components/business/bcTable/bcTable.vue.d.ts +0 -32
- package/dist/types/src/components/business/bcTable/components/btn/btn.vue.d.ts +0 -58
- package/dist/types/src/components/business/bcTable/components/popup/index.d.ts +0 -2
- package/dist/types/src/components/business/bcTable/components/popup/popup.vue.d.ts +0 -49
- package/dist/types/src/components/business/bcTable/components/query/components/sortForm/sortForm.vue.d.ts +0 -14
- package/dist/types/src/components/business/bcTable/components/query/drag.vue.d.ts +0 -222
- package/dist/types/src/components/business/bcTable/components/query/query.vue.d.ts +0 -226
- package/dist/types/src/components/business/bcTable/components/table/colgroup.vue.d.ts +0 -25
- package/dist/types/src/components/business/bcTable/components/table/column.vue.d.ts +0 -49
- package/dist/types/src/components/business/bcTable/components/table/components/sortColumn/sortColumn.vue.d.ts +0 -16
- package/dist/types/src/components/business/bcTable/components/table/table.vue.d.ts +0 -64
- package/dist/types/src/components/business/bcTable/components/table/useTableHeight.d.ts +0 -23
- package/dist/types/src/components/business/bcTable/utils/useFormTableHeight.d.ts +0 -18
- package/dist/types/src/components/business/bcTabs/bcTabs.vue.d.ts +0 -61
- package/dist/types/src/components/business/bcTabs/components/BetterScroll/index.d.ts +0 -2
- package/dist/types/src/components/business/bcTabs/components/BetterScroll/index.vue.d.ts +0 -33
- package/dist/types/src/components/business/bcTreeSearch/bcTreeSearch.vue.d.ts +0 -55
- package/dist/types/src/components/business/bcTreeSelect/bcTreeSelect.vue.d.ts +0 -28
- package/dist/types/src/components/business/bcTrtc/bcTrtc.vue.d.ts +0 -104
- package/dist/types/src/components/business/bcTrtc/hooks/useOperateLog.d.ts +0 -8
- package/dist/types/src/components/business/bcTrtc/hooks/useTrtcRoomEvent.d.ts +0 -50
- package/dist/types/src/components/business/bcTrtc/type.d.ts +0 -124
- package/dist/types/src/components/business/bcTrtc/useTrtc.d.ts +0 -39
- package/dist/types/src/components/business/bcTrtc/util/generateTestUserSig.d.ts +0 -64
- package/dist/types/src/components/business/bcTrtc/util/lib-generate-test-usersig-es.min.d.ts +0 -20
- package/dist/types/src/components/business/bcTrtc/util/utils.d.ts +0 -4
- package/dist/types/src/components/business/bcUpload/bcUpload.vue.d.ts +0 -13
- package/dist/types/src/components/business/bcUpload/component/highSpeedCamera.vue.d.ts +0 -19
- package/dist/types/src/components/business/bcUpload/component/qwebchannel.d.ts +0 -15
- package/dist/types/src/components/business/bcUpload/component/type.d.ts +0 -44
- package/dist/types/src/components/business/bcUpload/type.d.ts +0 -83
- package/dist/types/src/components/business/bcUpload/upload.vue.d.ts +0 -272
- package/dist/types/src/components/business/bcUpload/useUpload.d.ts +0 -21
- package/dist/types/src/components/business/bcVisual/components/setting/extendItem.vue.d.ts +0 -13
- package/dist/types/src/components/business/bcVisual/components/setting/setting.vue.d.ts +0 -3
- package/dist/types/src/components/business/bcVisual/components/table/table.vue.d.ts +0 -6
- package/dist/types/src/components/business/bcVisual/components/updateName/popup.vue.d.ts +0 -17
- package/dist/types/src/components/business/bcVisual/components/updateSql/addCondition.vue.d.ts +0 -23
- package/dist/types/src/components/business/bcVisual/components/updateSql/nodeTree/index.vue.d.ts +0 -21
- package/dist/types/src/components/business/bcVisual/components/updateSql/nodeTree/nodeTree.vue.d.ts +0 -27
- package/dist/types/src/components/business/bcVisual/components/updateSql/popup.vue.d.ts +0 -17
- package/dist/types/src/components/business/index.d.ts +0 -52
- package/dist/types/src/hooks/index.d.ts +0 -3
- package/dist/types/src/hooks/onKeyStroke.d.ts +0 -13
- package/dist/types/src/hooks/useExpose.d.ts +0 -23
- package/dist/types/src/hooks/useKeyStroke.d.ts +0 -22
- package/dist/types/src/utils/commonFunction.d.ts +0 -14
- package/dist/types/src/utils/index.d.ts +0 -26
- package/dist/types/src/utils/lodash.d.ts +0 -2
- package/dist/types/src/utils/request/index.d.ts +0 -6
- package/dist/types/src/utils/request/request.d.ts +0 -6
- package/dist/types/src/utils/showMessage.d.ts +0 -3
- package/dist/types/src/utils/showMessageBox.d.ts +0 -3
- package/dist/types/src/utils/showNotification.d.ts +0 -3
- package/dist/types/src/utils/showPopup/showPopup.vue.d.ts +0 -56
- package/dist/types/vxe-table.d.ts +0 -3
- /package/dist/types/{src/components → components}/business/bcSystemAuth/components/fastSet/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcSystemAuth/components/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcSystemAuth/components/widget/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcSystemField/components/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcSystemField/components/widget/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcTable/components/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcTable/components/query/components/sortForm/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcTable/components/table/components/sortColumn/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcVisual/components/updateName/index.d.ts +0 -0
- /package/dist/types/{src/components → components}/business/bcVisual/type.d.ts +0 -0
- /package/dist/types/{src/types → types}/formItem/button.d.ts +0 -0
- /package/dist/types/{src/types → types}/formItem/index.d.ts +0 -0
- /package/dist/types/{src/types → types}/index.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/cfprint.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/crypto.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/device_info.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/formatTime.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/request/interceptors/request/index.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/request/interceptors/response/index.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/shortcutList.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/theme.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/toolsValidate.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/update.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/watermark.d.ts +0 -0
|
@@ -0,0 +1,945 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, createElementBlock, openBlock, createElementVNode, nextTick } from "vue";
|
|
2
|
+
import { I as getDefaultExportFromCjs, J as commonjsGlobal, _ as _export_sfc } from "./index-CaroRQE3.mjs";
|
|
3
|
+
var qrcode = { exports: {} };
|
|
4
|
+
(function(module, exports) {
|
|
5
|
+
var QRCode2;
|
|
6
|
+
(function(root, factory) {
|
|
7
|
+
module.exports = factory();
|
|
8
|
+
})(commonjsGlobal, function() {
|
|
9
|
+
function QR8bitByte(data) {
|
|
10
|
+
this.mode = QRMode.MODE_8BIT_BYTE;
|
|
11
|
+
this.data = data;
|
|
12
|
+
this.parsedData = [];
|
|
13
|
+
for (var i2 = 0, l = this.data.length; i2 < l; i2++) {
|
|
14
|
+
var byteArray = [];
|
|
15
|
+
var code = this.data.charCodeAt(i2);
|
|
16
|
+
if (code > 65536) {
|
|
17
|
+
byteArray[0] = 240 | (code & 1835008) >>> 18;
|
|
18
|
+
byteArray[1] = 128 | (code & 258048) >>> 12;
|
|
19
|
+
byteArray[2] = 128 | (code & 4032) >>> 6;
|
|
20
|
+
byteArray[3] = 128 | code & 63;
|
|
21
|
+
} else if (code > 2048) {
|
|
22
|
+
byteArray[0] = 224 | (code & 61440) >>> 12;
|
|
23
|
+
byteArray[1] = 128 | (code & 4032) >>> 6;
|
|
24
|
+
byteArray[2] = 128 | code & 63;
|
|
25
|
+
} else if (code > 128) {
|
|
26
|
+
byteArray[0] = 192 | (code & 1984) >>> 6;
|
|
27
|
+
byteArray[1] = 128 | code & 63;
|
|
28
|
+
} else {
|
|
29
|
+
byteArray[0] = code;
|
|
30
|
+
}
|
|
31
|
+
this.parsedData.push(byteArray);
|
|
32
|
+
}
|
|
33
|
+
this.parsedData = Array.prototype.concat.apply([], this.parsedData);
|
|
34
|
+
if (this.parsedData.length != this.data.length) {
|
|
35
|
+
this.parsedData.unshift(191);
|
|
36
|
+
this.parsedData.unshift(187);
|
|
37
|
+
this.parsedData.unshift(239);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
QR8bitByte.prototype = {
|
|
41
|
+
getLength: function(buffer) {
|
|
42
|
+
return this.parsedData.length;
|
|
43
|
+
},
|
|
44
|
+
write: function(buffer) {
|
|
45
|
+
for (var i2 = 0, l = this.parsedData.length; i2 < l; i2++) {
|
|
46
|
+
buffer.put(this.parsedData[i2], 8);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
function QRCodeModel(typeNumber, errorCorrectLevel) {
|
|
51
|
+
this.typeNumber = typeNumber;
|
|
52
|
+
this.errorCorrectLevel = errorCorrectLevel;
|
|
53
|
+
this.modules = null;
|
|
54
|
+
this.moduleCount = 0;
|
|
55
|
+
this.dataCache = null;
|
|
56
|
+
this.dataList = [];
|
|
57
|
+
}
|
|
58
|
+
QRCodeModel.prototype = { addData: function(data) {
|
|
59
|
+
var newData = new QR8bitByte(data);
|
|
60
|
+
this.dataList.push(newData);
|
|
61
|
+
this.dataCache = null;
|
|
62
|
+
}, isDark: function(row, col) {
|
|
63
|
+
if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) {
|
|
64
|
+
throw new Error(row + "," + col);
|
|
65
|
+
}
|
|
66
|
+
return this.modules[row][col];
|
|
67
|
+
}, getModuleCount: function() {
|
|
68
|
+
return this.moduleCount;
|
|
69
|
+
}, make: function() {
|
|
70
|
+
this.makeImpl(false, this.getBestMaskPattern());
|
|
71
|
+
}, makeImpl: function(test, maskPattern) {
|
|
72
|
+
this.moduleCount = this.typeNumber * 4 + 17;
|
|
73
|
+
this.modules = new Array(this.moduleCount);
|
|
74
|
+
for (var row = 0; row < this.moduleCount; row++) {
|
|
75
|
+
this.modules[row] = new Array(this.moduleCount);
|
|
76
|
+
for (var col = 0; col < this.moduleCount; col++) {
|
|
77
|
+
this.modules[row][col] = null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
this.setupPositionProbePattern(0, 0);
|
|
81
|
+
this.setupPositionProbePattern(this.moduleCount - 7, 0);
|
|
82
|
+
this.setupPositionProbePattern(0, this.moduleCount - 7);
|
|
83
|
+
this.setupPositionAdjustPattern();
|
|
84
|
+
this.setupTimingPattern();
|
|
85
|
+
this.setupTypeInfo(test, maskPattern);
|
|
86
|
+
if (this.typeNumber >= 7) {
|
|
87
|
+
this.setupTypeNumber(test);
|
|
88
|
+
}
|
|
89
|
+
if (this.dataCache == null) {
|
|
90
|
+
this.dataCache = QRCodeModel.createData(this.typeNumber, this.errorCorrectLevel, this.dataList);
|
|
91
|
+
}
|
|
92
|
+
this.mapData(this.dataCache, maskPattern);
|
|
93
|
+
}, setupPositionProbePattern: function(row, col) {
|
|
94
|
+
for (var r = -1; r <= 7; r++) {
|
|
95
|
+
if (row + r <= -1 || this.moduleCount <= row + r) continue;
|
|
96
|
+
for (var c = -1; c <= 7; c++) {
|
|
97
|
+
if (col + c <= -1 || this.moduleCount <= col + c) continue;
|
|
98
|
+
if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) {
|
|
99
|
+
this.modules[row + r][col + c] = true;
|
|
100
|
+
} else {
|
|
101
|
+
this.modules[row + r][col + c] = false;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, getBestMaskPattern: function() {
|
|
106
|
+
var minLostPoint = 0;
|
|
107
|
+
var pattern = 0;
|
|
108
|
+
for (var i2 = 0; i2 < 8; i2++) {
|
|
109
|
+
this.makeImpl(true, i2);
|
|
110
|
+
var lostPoint = QRUtil.getLostPoint(this);
|
|
111
|
+
if (i2 == 0 || minLostPoint > lostPoint) {
|
|
112
|
+
minLostPoint = lostPoint;
|
|
113
|
+
pattern = i2;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return pattern;
|
|
117
|
+
}, createMovieClip: function(target_mc, instance_name, depth) {
|
|
118
|
+
var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth);
|
|
119
|
+
var cs = 1;
|
|
120
|
+
this.make();
|
|
121
|
+
for (var row = 0; row < this.modules.length; row++) {
|
|
122
|
+
var y = row * cs;
|
|
123
|
+
for (var col = 0; col < this.modules[row].length; col++) {
|
|
124
|
+
var x = col * cs;
|
|
125
|
+
var dark = this.modules[row][col];
|
|
126
|
+
if (dark) {
|
|
127
|
+
qr_mc.beginFill(0, 100);
|
|
128
|
+
qr_mc.moveTo(x, y);
|
|
129
|
+
qr_mc.lineTo(x + cs, y);
|
|
130
|
+
qr_mc.lineTo(x + cs, y + cs);
|
|
131
|
+
qr_mc.lineTo(x, y + cs);
|
|
132
|
+
qr_mc.endFill();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return qr_mc;
|
|
137
|
+
}, setupTimingPattern: function() {
|
|
138
|
+
for (var r = 8; r < this.moduleCount - 8; r++) {
|
|
139
|
+
if (this.modules[r][6] != null) {
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
this.modules[r][6] = r % 2 == 0;
|
|
143
|
+
}
|
|
144
|
+
for (var c = 8; c < this.moduleCount - 8; c++) {
|
|
145
|
+
if (this.modules[6][c] != null) {
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
this.modules[6][c] = c % 2 == 0;
|
|
149
|
+
}
|
|
150
|
+
}, setupPositionAdjustPattern: function() {
|
|
151
|
+
var pos = QRUtil.getPatternPosition(this.typeNumber);
|
|
152
|
+
for (var i2 = 0; i2 < pos.length; i2++) {
|
|
153
|
+
for (var j = 0; j < pos.length; j++) {
|
|
154
|
+
var row = pos[i2];
|
|
155
|
+
var col = pos[j];
|
|
156
|
+
if (this.modules[row][col] != null) {
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
for (var r = -2; r <= 2; r++) {
|
|
160
|
+
for (var c = -2; c <= 2; c++) {
|
|
161
|
+
if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) {
|
|
162
|
+
this.modules[row + r][col + c] = true;
|
|
163
|
+
} else {
|
|
164
|
+
this.modules[row + r][col + c] = false;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}, setupTypeNumber: function(test) {
|
|
171
|
+
var bits = QRUtil.getBCHTypeNumber(this.typeNumber);
|
|
172
|
+
for (var i2 = 0; i2 < 18; i2++) {
|
|
173
|
+
var mod = !test && (bits >> i2 & 1) == 1;
|
|
174
|
+
this.modules[Math.floor(i2 / 3)][i2 % 3 + this.moduleCount - 8 - 3] = mod;
|
|
175
|
+
}
|
|
176
|
+
for (var i2 = 0; i2 < 18; i2++) {
|
|
177
|
+
var mod = !test && (bits >> i2 & 1) == 1;
|
|
178
|
+
this.modules[i2 % 3 + this.moduleCount - 8 - 3][Math.floor(i2 / 3)] = mod;
|
|
179
|
+
}
|
|
180
|
+
}, setupTypeInfo: function(test, maskPattern) {
|
|
181
|
+
var data = this.errorCorrectLevel << 3 | maskPattern;
|
|
182
|
+
var bits = QRUtil.getBCHTypeInfo(data);
|
|
183
|
+
for (var i2 = 0; i2 < 15; i2++) {
|
|
184
|
+
var mod = !test && (bits >> i2 & 1) == 1;
|
|
185
|
+
if (i2 < 6) {
|
|
186
|
+
this.modules[i2][8] = mod;
|
|
187
|
+
} else if (i2 < 8) {
|
|
188
|
+
this.modules[i2 + 1][8] = mod;
|
|
189
|
+
} else {
|
|
190
|
+
this.modules[this.moduleCount - 15 + i2][8] = mod;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
for (var i2 = 0; i2 < 15; i2++) {
|
|
194
|
+
var mod = !test && (bits >> i2 & 1) == 1;
|
|
195
|
+
if (i2 < 8) {
|
|
196
|
+
this.modules[8][this.moduleCount - i2 - 1] = mod;
|
|
197
|
+
} else if (i2 < 9) {
|
|
198
|
+
this.modules[8][15 - i2 - 1 + 1] = mod;
|
|
199
|
+
} else {
|
|
200
|
+
this.modules[8][15 - i2 - 1] = mod;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
this.modules[this.moduleCount - 8][8] = !test;
|
|
204
|
+
}, mapData: function(data, maskPattern) {
|
|
205
|
+
var inc = -1;
|
|
206
|
+
var row = this.moduleCount - 1;
|
|
207
|
+
var bitIndex = 7;
|
|
208
|
+
var byteIndex = 0;
|
|
209
|
+
for (var col = this.moduleCount - 1; col > 0; col -= 2) {
|
|
210
|
+
if (col == 6) col--;
|
|
211
|
+
while (true) {
|
|
212
|
+
for (var c = 0; c < 2; c++) {
|
|
213
|
+
if (this.modules[row][col - c] == null) {
|
|
214
|
+
var dark = false;
|
|
215
|
+
if (byteIndex < data.length) {
|
|
216
|
+
dark = (data[byteIndex] >>> bitIndex & 1) == 1;
|
|
217
|
+
}
|
|
218
|
+
var mask = QRUtil.getMask(maskPattern, row, col - c);
|
|
219
|
+
if (mask) {
|
|
220
|
+
dark = !dark;
|
|
221
|
+
}
|
|
222
|
+
this.modules[row][col - c] = dark;
|
|
223
|
+
bitIndex--;
|
|
224
|
+
if (bitIndex == -1) {
|
|
225
|
+
byteIndex++;
|
|
226
|
+
bitIndex = 7;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
row += inc;
|
|
231
|
+
if (row < 0 || this.moduleCount <= row) {
|
|
232
|
+
row -= inc;
|
|
233
|
+
inc = -inc;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
} };
|
|
239
|
+
QRCodeModel.PAD0 = 236;
|
|
240
|
+
QRCodeModel.PAD1 = 17;
|
|
241
|
+
QRCodeModel.createData = function(typeNumber, errorCorrectLevel, dataList) {
|
|
242
|
+
var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel);
|
|
243
|
+
var buffer = new QRBitBuffer();
|
|
244
|
+
for (var i2 = 0; i2 < dataList.length; i2++) {
|
|
245
|
+
var data = dataList[i2];
|
|
246
|
+
buffer.put(data.mode, 4);
|
|
247
|
+
buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber));
|
|
248
|
+
data.write(buffer);
|
|
249
|
+
}
|
|
250
|
+
var totalDataCount = 0;
|
|
251
|
+
for (var i2 = 0; i2 < rsBlocks.length; i2++) {
|
|
252
|
+
totalDataCount += rsBlocks[i2].dataCount;
|
|
253
|
+
}
|
|
254
|
+
if (buffer.getLengthInBits() > totalDataCount * 8) {
|
|
255
|
+
throw new Error("code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")");
|
|
256
|
+
}
|
|
257
|
+
if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
|
|
258
|
+
buffer.put(0, 4);
|
|
259
|
+
}
|
|
260
|
+
while (buffer.getLengthInBits() % 8 != 0) {
|
|
261
|
+
buffer.putBit(false);
|
|
262
|
+
}
|
|
263
|
+
while (true) {
|
|
264
|
+
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
buffer.put(QRCodeModel.PAD0, 8);
|
|
268
|
+
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
buffer.put(QRCodeModel.PAD1, 8);
|
|
272
|
+
}
|
|
273
|
+
return QRCodeModel.createBytes(buffer, rsBlocks);
|
|
274
|
+
};
|
|
275
|
+
QRCodeModel.createBytes = function(buffer, rsBlocks) {
|
|
276
|
+
var offset = 0;
|
|
277
|
+
var maxDcCount = 0;
|
|
278
|
+
var maxEcCount = 0;
|
|
279
|
+
var dcdata = new Array(rsBlocks.length);
|
|
280
|
+
var ecdata = new Array(rsBlocks.length);
|
|
281
|
+
for (var r = 0; r < rsBlocks.length; r++) {
|
|
282
|
+
var dcCount = rsBlocks[r].dataCount;
|
|
283
|
+
var ecCount = rsBlocks[r].totalCount - dcCount;
|
|
284
|
+
maxDcCount = Math.max(maxDcCount, dcCount);
|
|
285
|
+
maxEcCount = Math.max(maxEcCount, ecCount);
|
|
286
|
+
dcdata[r] = new Array(dcCount);
|
|
287
|
+
for (var i2 = 0; i2 < dcdata[r].length; i2++) {
|
|
288
|
+
dcdata[r][i2] = 255 & buffer.buffer[i2 + offset];
|
|
289
|
+
}
|
|
290
|
+
offset += dcCount;
|
|
291
|
+
var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
|
|
292
|
+
var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1);
|
|
293
|
+
var modPoly = rawPoly.mod(rsPoly);
|
|
294
|
+
ecdata[r] = new Array(rsPoly.getLength() - 1);
|
|
295
|
+
for (var i2 = 0; i2 < ecdata[r].length; i2++) {
|
|
296
|
+
var modIndex = i2 + modPoly.getLength() - ecdata[r].length;
|
|
297
|
+
ecdata[r][i2] = modIndex >= 0 ? modPoly.get(modIndex) : 0;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
var totalCodeCount = 0;
|
|
301
|
+
for (var i2 = 0; i2 < rsBlocks.length; i2++) {
|
|
302
|
+
totalCodeCount += rsBlocks[i2].totalCount;
|
|
303
|
+
}
|
|
304
|
+
var data = new Array(totalCodeCount);
|
|
305
|
+
var index = 0;
|
|
306
|
+
for (var i2 = 0; i2 < maxDcCount; i2++) {
|
|
307
|
+
for (var r = 0; r < rsBlocks.length; r++) {
|
|
308
|
+
if (i2 < dcdata[r].length) {
|
|
309
|
+
data[index++] = dcdata[r][i2];
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
for (var i2 = 0; i2 < maxEcCount; i2++) {
|
|
314
|
+
for (var r = 0; r < rsBlocks.length; r++) {
|
|
315
|
+
if (i2 < ecdata[r].length) {
|
|
316
|
+
data[index++] = ecdata[r][i2];
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return data;
|
|
321
|
+
};
|
|
322
|
+
var QRMode = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 };
|
|
323
|
+
var QRErrorCorrectLevel = { L: 1, M: 0, Q: 3, H: 2 };
|
|
324
|
+
var QRMaskPattern = { PATTERN000: 0, PATTERN001: 1, PATTERN010: 2, PATTERN011: 3, PATTERN100: 4, PATTERN101: 5, PATTERN110: 6, PATTERN111: 7 };
|
|
325
|
+
var QRUtil = { PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], G15: 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0, G18: 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0, G15_MASK: 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1, getBCHTypeInfo: function(data) {
|
|
326
|
+
var d = data << 10;
|
|
327
|
+
while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {
|
|
328
|
+
d ^= QRUtil.G15 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15);
|
|
329
|
+
}
|
|
330
|
+
return (data << 10 | d) ^ QRUtil.G15_MASK;
|
|
331
|
+
}, getBCHTypeNumber: function(data) {
|
|
332
|
+
var d = data << 12;
|
|
333
|
+
while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {
|
|
334
|
+
d ^= QRUtil.G18 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18);
|
|
335
|
+
}
|
|
336
|
+
return data << 12 | d;
|
|
337
|
+
}, getBCHDigit: function(data) {
|
|
338
|
+
var digit = 0;
|
|
339
|
+
while (data != 0) {
|
|
340
|
+
digit++;
|
|
341
|
+
data >>>= 1;
|
|
342
|
+
}
|
|
343
|
+
return digit;
|
|
344
|
+
}, getPatternPosition: function(typeNumber) {
|
|
345
|
+
return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];
|
|
346
|
+
}, getMask: function(maskPattern, i2, j) {
|
|
347
|
+
switch (maskPattern) {
|
|
348
|
+
case QRMaskPattern.PATTERN000:
|
|
349
|
+
return (i2 + j) % 2 == 0;
|
|
350
|
+
case QRMaskPattern.PATTERN001:
|
|
351
|
+
return i2 % 2 == 0;
|
|
352
|
+
case QRMaskPattern.PATTERN010:
|
|
353
|
+
return j % 3 == 0;
|
|
354
|
+
case QRMaskPattern.PATTERN011:
|
|
355
|
+
return (i2 + j) % 3 == 0;
|
|
356
|
+
case QRMaskPattern.PATTERN100:
|
|
357
|
+
return (Math.floor(i2 / 2) + Math.floor(j / 3)) % 2 == 0;
|
|
358
|
+
case QRMaskPattern.PATTERN101:
|
|
359
|
+
return i2 * j % 2 + i2 * j % 3 == 0;
|
|
360
|
+
case QRMaskPattern.PATTERN110:
|
|
361
|
+
return (i2 * j % 2 + i2 * j % 3) % 2 == 0;
|
|
362
|
+
case QRMaskPattern.PATTERN111:
|
|
363
|
+
return (i2 * j % 3 + (i2 + j) % 2) % 2 == 0;
|
|
364
|
+
default:
|
|
365
|
+
throw new Error("bad maskPattern:" + maskPattern);
|
|
366
|
+
}
|
|
367
|
+
}, getErrorCorrectPolynomial: function(errorCorrectLength) {
|
|
368
|
+
var a = new QRPolynomial([1], 0);
|
|
369
|
+
for (var i2 = 0; i2 < errorCorrectLength; i2++) {
|
|
370
|
+
a = a.multiply(new QRPolynomial([1, QRMath.gexp(i2)], 0));
|
|
371
|
+
}
|
|
372
|
+
return a;
|
|
373
|
+
}, getLengthInBits: function(mode, type) {
|
|
374
|
+
if (1 <= type && type < 10) {
|
|
375
|
+
switch (mode) {
|
|
376
|
+
case QRMode.MODE_NUMBER:
|
|
377
|
+
return 10;
|
|
378
|
+
case QRMode.MODE_ALPHA_NUM:
|
|
379
|
+
return 9;
|
|
380
|
+
case QRMode.MODE_8BIT_BYTE:
|
|
381
|
+
return 8;
|
|
382
|
+
case QRMode.MODE_KANJI:
|
|
383
|
+
return 8;
|
|
384
|
+
default:
|
|
385
|
+
throw new Error("mode:" + mode);
|
|
386
|
+
}
|
|
387
|
+
} else if (type < 27) {
|
|
388
|
+
switch (mode) {
|
|
389
|
+
case QRMode.MODE_NUMBER:
|
|
390
|
+
return 12;
|
|
391
|
+
case QRMode.MODE_ALPHA_NUM:
|
|
392
|
+
return 11;
|
|
393
|
+
case QRMode.MODE_8BIT_BYTE:
|
|
394
|
+
return 16;
|
|
395
|
+
case QRMode.MODE_KANJI:
|
|
396
|
+
return 10;
|
|
397
|
+
default:
|
|
398
|
+
throw new Error("mode:" + mode);
|
|
399
|
+
}
|
|
400
|
+
} else if (type < 41) {
|
|
401
|
+
switch (mode) {
|
|
402
|
+
case QRMode.MODE_NUMBER:
|
|
403
|
+
return 14;
|
|
404
|
+
case QRMode.MODE_ALPHA_NUM:
|
|
405
|
+
return 13;
|
|
406
|
+
case QRMode.MODE_8BIT_BYTE:
|
|
407
|
+
return 16;
|
|
408
|
+
case QRMode.MODE_KANJI:
|
|
409
|
+
return 12;
|
|
410
|
+
default:
|
|
411
|
+
throw new Error("mode:" + mode);
|
|
412
|
+
}
|
|
413
|
+
} else {
|
|
414
|
+
throw new Error("type:" + type);
|
|
415
|
+
}
|
|
416
|
+
}, getLostPoint: function(qrCode) {
|
|
417
|
+
var moduleCount = qrCode.getModuleCount();
|
|
418
|
+
var lostPoint = 0;
|
|
419
|
+
for (var row = 0; row < moduleCount; row++) {
|
|
420
|
+
for (var col = 0; col < moduleCount; col++) {
|
|
421
|
+
var sameCount = 0;
|
|
422
|
+
var dark = qrCode.isDark(row, col);
|
|
423
|
+
for (var r = -1; r <= 1; r++) {
|
|
424
|
+
if (row + r < 0 || moduleCount <= row + r) {
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
for (var c = -1; c <= 1; c++) {
|
|
428
|
+
if (col + c < 0 || moduleCount <= col + c) {
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
if (r == 0 && c == 0) {
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
if (dark == qrCode.isDark(row + r, col + c)) {
|
|
435
|
+
sameCount++;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
if (sameCount > 5) {
|
|
440
|
+
lostPoint += 3 + sameCount - 5;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
for (var row = 0; row < moduleCount - 1; row++) {
|
|
445
|
+
for (var col = 0; col < moduleCount - 1; col++) {
|
|
446
|
+
var count = 0;
|
|
447
|
+
if (qrCode.isDark(row, col)) count++;
|
|
448
|
+
if (qrCode.isDark(row + 1, col)) count++;
|
|
449
|
+
if (qrCode.isDark(row, col + 1)) count++;
|
|
450
|
+
if (qrCode.isDark(row + 1, col + 1)) count++;
|
|
451
|
+
if (count == 0 || count == 4) {
|
|
452
|
+
lostPoint += 3;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
for (var row = 0; row < moduleCount; row++) {
|
|
457
|
+
for (var col = 0; col < moduleCount - 6; col++) {
|
|
458
|
+
if (qrCode.isDark(row, col) && !qrCode.isDark(row, col + 1) && qrCode.isDark(row, col + 2) && qrCode.isDark(row, col + 3) && qrCode.isDark(row, col + 4) && !qrCode.isDark(row, col + 5) && qrCode.isDark(row, col + 6)) {
|
|
459
|
+
lostPoint += 40;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
for (var col = 0; col < moduleCount; col++) {
|
|
464
|
+
for (var row = 0; row < moduleCount - 6; row++) {
|
|
465
|
+
if (qrCode.isDark(row, col) && !qrCode.isDark(row + 1, col) && qrCode.isDark(row + 2, col) && qrCode.isDark(row + 3, col) && qrCode.isDark(row + 4, col) && !qrCode.isDark(row + 5, col) && qrCode.isDark(row + 6, col)) {
|
|
466
|
+
lostPoint += 40;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
var darkCount = 0;
|
|
471
|
+
for (var col = 0; col < moduleCount; col++) {
|
|
472
|
+
for (var row = 0; row < moduleCount; row++) {
|
|
473
|
+
if (qrCode.isDark(row, col)) {
|
|
474
|
+
darkCount++;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
|
|
479
|
+
lostPoint += ratio * 10;
|
|
480
|
+
return lostPoint;
|
|
481
|
+
} };
|
|
482
|
+
var QRMath = { glog: function(n) {
|
|
483
|
+
if (n < 1) {
|
|
484
|
+
throw new Error("glog(" + n + ")");
|
|
485
|
+
}
|
|
486
|
+
return QRMath.LOG_TABLE[n];
|
|
487
|
+
}, gexp: function(n) {
|
|
488
|
+
while (n < 0) {
|
|
489
|
+
n += 255;
|
|
490
|
+
}
|
|
491
|
+
while (n >= 256) {
|
|
492
|
+
n -= 255;
|
|
493
|
+
}
|
|
494
|
+
return QRMath.EXP_TABLE[n];
|
|
495
|
+
}, EXP_TABLE: new Array(256), LOG_TABLE: new Array(256) };
|
|
496
|
+
for (var i = 0; i < 8; i++) {
|
|
497
|
+
QRMath.EXP_TABLE[i] = 1 << i;
|
|
498
|
+
}
|
|
499
|
+
for (var i = 8; i < 256; i++) {
|
|
500
|
+
QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8];
|
|
501
|
+
}
|
|
502
|
+
for (var i = 0; i < 255; i++) {
|
|
503
|
+
QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i;
|
|
504
|
+
}
|
|
505
|
+
function QRPolynomial(num, shift) {
|
|
506
|
+
if (num.length == void 0) {
|
|
507
|
+
throw new Error(num.length + "/" + shift);
|
|
508
|
+
}
|
|
509
|
+
var offset = 0;
|
|
510
|
+
while (offset < num.length && num[offset] == 0) {
|
|
511
|
+
offset++;
|
|
512
|
+
}
|
|
513
|
+
this.num = new Array(num.length - offset + shift);
|
|
514
|
+
for (var i2 = 0; i2 < num.length - offset; i2++) {
|
|
515
|
+
this.num[i2] = num[i2 + offset];
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
QRPolynomial.prototype = { get: function(index) {
|
|
519
|
+
return this.num[index];
|
|
520
|
+
}, getLength: function() {
|
|
521
|
+
return this.num.length;
|
|
522
|
+
}, multiply: function(e) {
|
|
523
|
+
var num = new Array(this.getLength() + e.getLength() - 1);
|
|
524
|
+
for (var i2 = 0; i2 < this.getLength(); i2++) {
|
|
525
|
+
for (var j = 0; j < e.getLength(); j++) {
|
|
526
|
+
num[i2 + j] ^= QRMath.gexp(QRMath.glog(this.get(i2)) + QRMath.glog(e.get(j)));
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
return new QRPolynomial(num, 0);
|
|
530
|
+
}, mod: function(e) {
|
|
531
|
+
if (this.getLength() - e.getLength() < 0) {
|
|
532
|
+
return this;
|
|
533
|
+
}
|
|
534
|
+
var ratio = QRMath.glog(this.get(0)) - QRMath.glog(e.get(0));
|
|
535
|
+
var num = new Array(this.getLength());
|
|
536
|
+
for (var i2 = 0; i2 < this.getLength(); i2++) {
|
|
537
|
+
num[i2] = this.get(i2);
|
|
538
|
+
}
|
|
539
|
+
for (var i2 = 0; i2 < e.getLength(); i2++) {
|
|
540
|
+
num[i2] ^= QRMath.gexp(QRMath.glog(e.get(i2)) + ratio);
|
|
541
|
+
}
|
|
542
|
+
return new QRPolynomial(num, 0).mod(e);
|
|
543
|
+
} };
|
|
544
|
+
function QRRSBlock(totalCount, dataCount) {
|
|
545
|
+
this.totalCount = totalCount;
|
|
546
|
+
this.dataCount = dataCount;
|
|
547
|
+
}
|
|
548
|
+
QRRSBlock.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]];
|
|
549
|
+
QRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) {
|
|
550
|
+
var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel);
|
|
551
|
+
if (rsBlock == void 0) {
|
|
552
|
+
throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel);
|
|
553
|
+
}
|
|
554
|
+
var length = rsBlock.length / 3;
|
|
555
|
+
var list = [];
|
|
556
|
+
for (var i2 = 0; i2 < length; i2++) {
|
|
557
|
+
var count = rsBlock[i2 * 3 + 0];
|
|
558
|
+
var totalCount = rsBlock[i2 * 3 + 1];
|
|
559
|
+
var dataCount = rsBlock[i2 * 3 + 2];
|
|
560
|
+
for (var j = 0; j < count; j++) {
|
|
561
|
+
list.push(new QRRSBlock(totalCount, dataCount));
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
return list;
|
|
565
|
+
};
|
|
566
|
+
QRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) {
|
|
567
|
+
switch (errorCorrectLevel) {
|
|
568
|
+
case QRErrorCorrectLevel.L:
|
|
569
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
|
|
570
|
+
case QRErrorCorrectLevel.M:
|
|
571
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
|
|
572
|
+
case QRErrorCorrectLevel.Q:
|
|
573
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
|
|
574
|
+
case QRErrorCorrectLevel.H:
|
|
575
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
|
|
576
|
+
default:
|
|
577
|
+
return void 0;
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
function QRBitBuffer() {
|
|
581
|
+
this.buffer = [];
|
|
582
|
+
this.length = 0;
|
|
583
|
+
}
|
|
584
|
+
QRBitBuffer.prototype = { get: function(index) {
|
|
585
|
+
var bufIndex = Math.floor(index / 8);
|
|
586
|
+
return (this.buffer[bufIndex] >>> 7 - index % 8 & 1) == 1;
|
|
587
|
+
}, put: function(num, length) {
|
|
588
|
+
for (var i2 = 0; i2 < length; i2++) {
|
|
589
|
+
this.putBit((num >>> length - i2 - 1 & 1) == 1);
|
|
590
|
+
}
|
|
591
|
+
}, getLengthInBits: function() {
|
|
592
|
+
return this.length;
|
|
593
|
+
}, putBit: function(bit) {
|
|
594
|
+
var bufIndex = Math.floor(this.length / 8);
|
|
595
|
+
if (this.buffer.length <= bufIndex) {
|
|
596
|
+
this.buffer.push(0);
|
|
597
|
+
}
|
|
598
|
+
if (bit) {
|
|
599
|
+
this.buffer[bufIndex] |= 128 >>> this.length % 8;
|
|
600
|
+
}
|
|
601
|
+
this.length++;
|
|
602
|
+
} };
|
|
603
|
+
var QRCodeLimitLength = [[17, 14, 11, 7], [32, 26, 20, 14], [53, 42, 32, 24], [78, 62, 46, 34], [106, 84, 60, 44], [134, 106, 74, 58], [154, 122, 86, 64], [192, 152, 108, 84], [230, 180, 130, 98], [271, 213, 151, 119], [321, 251, 177, 137], [367, 287, 203, 155], [425, 331, 241, 177], [458, 362, 258, 194], [520, 412, 292, 220], [586, 450, 322, 250], [644, 504, 364, 280], [718, 560, 394, 310], [792, 624, 442, 338], [858, 666, 482, 382], [929, 711, 509, 403], [1003, 779, 565, 439], [1091, 857, 611, 461], [1171, 911, 661, 511], [1273, 997, 715, 535], [1367, 1059, 751, 593], [1465, 1125, 805, 625], [1528, 1190, 868, 658], [1628, 1264, 908, 698], [1732, 1370, 982, 742], [1840, 1452, 1030, 790], [1952, 1538, 1112, 842], [2068, 1628, 1168, 898], [2188, 1722, 1228, 958], [2303, 1809, 1283, 983], [2431, 1911, 1351, 1051], [2563, 1989, 1423, 1093], [2699, 2099, 1499, 1139], [2809, 2213, 1579, 1219], [2953, 2331, 1663, 1273]];
|
|
604
|
+
function _isSupportCanvas() {
|
|
605
|
+
return typeof CanvasRenderingContext2D != "undefined";
|
|
606
|
+
}
|
|
607
|
+
function _getAndroid() {
|
|
608
|
+
var android = false;
|
|
609
|
+
var sAgent = navigator.userAgent;
|
|
610
|
+
if (/android/i.test(sAgent)) {
|
|
611
|
+
android = true;
|
|
612
|
+
var aMat = sAgent.toString().match(/android ([0-9]\.[0-9])/i);
|
|
613
|
+
if (aMat && aMat[1]) {
|
|
614
|
+
android = parseFloat(aMat[1]);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
return android;
|
|
618
|
+
}
|
|
619
|
+
var svgDrawer = function() {
|
|
620
|
+
var Drawing2 = function(el, htOption) {
|
|
621
|
+
this._el = el;
|
|
622
|
+
this._htOption = htOption;
|
|
623
|
+
};
|
|
624
|
+
Drawing2.prototype.draw = function(oQRCode) {
|
|
625
|
+
var _htOption = this._htOption;
|
|
626
|
+
var _el = this._el;
|
|
627
|
+
var nCount = oQRCode.getModuleCount();
|
|
628
|
+
Math.floor(_htOption.width / nCount);
|
|
629
|
+
Math.floor(_htOption.height / nCount);
|
|
630
|
+
this.clear();
|
|
631
|
+
function makeSVG(tag, attrs) {
|
|
632
|
+
var el = document.createElementNS("http://www.w3.org/2000/svg", tag);
|
|
633
|
+
for (var k in attrs)
|
|
634
|
+
if (attrs.hasOwnProperty(k)) el.setAttribute(k, attrs[k]);
|
|
635
|
+
return el;
|
|
636
|
+
}
|
|
637
|
+
var svg = makeSVG("svg", { "viewBox": "0 0 " + String(nCount) + " " + String(nCount), "width": "100%", "height": "100%", "fill": _htOption.colorLight });
|
|
638
|
+
svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink");
|
|
639
|
+
_el.appendChild(svg);
|
|
640
|
+
svg.appendChild(makeSVG("rect", { "fill": _htOption.colorLight, "width": "100%", "height": "100%" }));
|
|
641
|
+
svg.appendChild(makeSVG("rect", { "fill": _htOption.colorDark, "width": "1", "height": "1", "id": "template" }));
|
|
642
|
+
for (var row = 0; row < nCount; row++) {
|
|
643
|
+
for (var col = 0; col < nCount; col++) {
|
|
644
|
+
if (oQRCode.isDark(row, col)) {
|
|
645
|
+
var child = makeSVG("use", { "x": String(col), "y": String(row) });
|
|
646
|
+
child.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template");
|
|
647
|
+
svg.appendChild(child);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
Drawing2.prototype.clear = function() {
|
|
653
|
+
while (this._el.hasChildNodes())
|
|
654
|
+
this._el.removeChild(this._el.lastChild);
|
|
655
|
+
};
|
|
656
|
+
return Drawing2;
|
|
657
|
+
}();
|
|
658
|
+
var useSVG = document.documentElement.tagName.toLowerCase() === "svg";
|
|
659
|
+
var Drawing = useSVG ? svgDrawer : !_isSupportCanvas() ? function() {
|
|
660
|
+
var Drawing2 = function(el, htOption) {
|
|
661
|
+
this._el = el;
|
|
662
|
+
this._htOption = htOption;
|
|
663
|
+
};
|
|
664
|
+
Drawing2.prototype.draw = function(oQRCode) {
|
|
665
|
+
var _htOption = this._htOption;
|
|
666
|
+
var _el = this._el;
|
|
667
|
+
var nCount = oQRCode.getModuleCount();
|
|
668
|
+
var nWidth = Math.floor(_htOption.width / nCount);
|
|
669
|
+
var nHeight = Math.floor(_htOption.height / nCount);
|
|
670
|
+
var aHTML = ['<table style="border:0;border-collapse:collapse;">'];
|
|
671
|
+
for (var row = 0; row < nCount; row++) {
|
|
672
|
+
aHTML.push("<tr>");
|
|
673
|
+
for (var col = 0; col < nCount; col++) {
|
|
674
|
+
aHTML.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + nWidth + "px;height:" + nHeight + "px;background-color:" + (oQRCode.isDark(row, col) ? _htOption.colorDark : _htOption.colorLight) + ';"></td>');
|
|
675
|
+
}
|
|
676
|
+
aHTML.push("</tr>");
|
|
677
|
+
}
|
|
678
|
+
aHTML.push("</table>");
|
|
679
|
+
_el.innerHTML = aHTML.join("");
|
|
680
|
+
var elTable = _el.childNodes[0];
|
|
681
|
+
var nLeftMarginTable = (_htOption.width - elTable.offsetWidth) / 2;
|
|
682
|
+
var nTopMarginTable = (_htOption.height - elTable.offsetHeight) / 2;
|
|
683
|
+
if (nLeftMarginTable > 0 && nTopMarginTable > 0) {
|
|
684
|
+
elTable.style.margin = nTopMarginTable + "px " + nLeftMarginTable + "px";
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
Drawing2.prototype.clear = function() {
|
|
688
|
+
this._el.innerHTML = "";
|
|
689
|
+
};
|
|
690
|
+
return Drawing2;
|
|
691
|
+
}() : function() {
|
|
692
|
+
function _onMakeImage() {
|
|
693
|
+
this._elImage.src = this._elCanvas.toDataURL("image/png");
|
|
694
|
+
this._elImage.style.display = "block";
|
|
695
|
+
this._elCanvas.style.display = "none";
|
|
696
|
+
}
|
|
697
|
+
if (this && this._android && this._android <= 2.1) {
|
|
698
|
+
var factor = 1 / window.devicePixelRatio;
|
|
699
|
+
var drawImage = CanvasRenderingContext2D.prototype.drawImage;
|
|
700
|
+
CanvasRenderingContext2D.prototype.drawImage = function(image, sx, sy, sw, sh, dx, dy, dw, dh) {
|
|
701
|
+
if ("nodeName" in image && /img/i.test(image.nodeName)) {
|
|
702
|
+
for (var i2 = arguments.length - 1; i2 >= 1; i2--) {
|
|
703
|
+
arguments[i2] = arguments[i2] * factor;
|
|
704
|
+
}
|
|
705
|
+
} else if (typeof dw == "undefined") {
|
|
706
|
+
arguments[1] *= factor;
|
|
707
|
+
arguments[2] *= factor;
|
|
708
|
+
arguments[3] *= factor;
|
|
709
|
+
arguments[4] *= factor;
|
|
710
|
+
}
|
|
711
|
+
drawImage.apply(this, arguments);
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
function _safeSetDataURI(fSuccess, fFail) {
|
|
715
|
+
var self = this;
|
|
716
|
+
self._fFail = fFail;
|
|
717
|
+
self._fSuccess = fSuccess;
|
|
718
|
+
if (self._bSupportDataURI === null) {
|
|
719
|
+
var el = document.createElement("img");
|
|
720
|
+
var fOnError = function() {
|
|
721
|
+
self._bSupportDataURI = false;
|
|
722
|
+
if (self._fFail) {
|
|
723
|
+
self._fFail.call(self);
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
var fOnSuccess = function() {
|
|
727
|
+
self._bSupportDataURI = true;
|
|
728
|
+
if (self._fSuccess) {
|
|
729
|
+
self._fSuccess.call(self);
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
el.onabort = fOnError;
|
|
733
|
+
el.onerror = fOnError;
|
|
734
|
+
el.onload = fOnSuccess;
|
|
735
|
+
el.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
|
|
736
|
+
return;
|
|
737
|
+
} else if (self._bSupportDataURI === true && self._fSuccess) {
|
|
738
|
+
self._fSuccess.call(self);
|
|
739
|
+
} else if (self._bSupportDataURI === false && self._fFail) {
|
|
740
|
+
self._fFail.call(self);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
var Drawing2 = function(el, htOption) {
|
|
744
|
+
this._bIsPainted = false;
|
|
745
|
+
this._android = _getAndroid();
|
|
746
|
+
this._htOption = htOption;
|
|
747
|
+
this._elCanvas = document.createElement("canvas");
|
|
748
|
+
this._elCanvas.width = htOption.width;
|
|
749
|
+
this._elCanvas.height = htOption.height;
|
|
750
|
+
el.appendChild(this._elCanvas);
|
|
751
|
+
this._el = el;
|
|
752
|
+
this._oContext = this._elCanvas.getContext("2d");
|
|
753
|
+
this._bIsPainted = false;
|
|
754
|
+
this._elImage = document.createElement("img");
|
|
755
|
+
this._elImage.alt = "Scan me!";
|
|
756
|
+
this._elImage.style.display = "none";
|
|
757
|
+
this._el.appendChild(this._elImage);
|
|
758
|
+
this._bSupportDataURI = null;
|
|
759
|
+
};
|
|
760
|
+
Drawing2.prototype.draw = function(oQRCode) {
|
|
761
|
+
var _elImage = this._elImage;
|
|
762
|
+
var _oContext = this._oContext;
|
|
763
|
+
var _htOption = this._htOption;
|
|
764
|
+
var nCount = oQRCode.getModuleCount();
|
|
765
|
+
var nWidth = _htOption.width / nCount;
|
|
766
|
+
var nHeight = _htOption.height / nCount;
|
|
767
|
+
var nRoundedWidth = Math.round(nWidth);
|
|
768
|
+
var nRoundedHeight = Math.round(nHeight);
|
|
769
|
+
_elImage.style.display = "none";
|
|
770
|
+
this.clear();
|
|
771
|
+
for (var row = 0; row < nCount; row++) {
|
|
772
|
+
for (var col = 0; col < nCount; col++) {
|
|
773
|
+
var bIsDark = oQRCode.isDark(row, col);
|
|
774
|
+
var nLeft = col * nWidth;
|
|
775
|
+
var nTop = row * nHeight;
|
|
776
|
+
_oContext.strokeStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;
|
|
777
|
+
_oContext.lineWidth = 1;
|
|
778
|
+
_oContext.fillStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;
|
|
779
|
+
_oContext.fillRect(nLeft, nTop, nWidth, nHeight);
|
|
780
|
+
_oContext.strokeRect(
|
|
781
|
+
Math.floor(nLeft) + 0.5,
|
|
782
|
+
Math.floor(nTop) + 0.5,
|
|
783
|
+
nRoundedWidth,
|
|
784
|
+
nRoundedHeight
|
|
785
|
+
);
|
|
786
|
+
_oContext.strokeRect(
|
|
787
|
+
Math.ceil(nLeft) - 0.5,
|
|
788
|
+
Math.ceil(nTop) - 0.5,
|
|
789
|
+
nRoundedWidth,
|
|
790
|
+
nRoundedHeight
|
|
791
|
+
);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
this._bIsPainted = true;
|
|
795
|
+
};
|
|
796
|
+
Drawing2.prototype.makeImage = function() {
|
|
797
|
+
if (this._bIsPainted) {
|
|
798
|
+
_safeSetDataURI.call(this, _onMakeImage);
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
Drawing2.prototype.isPainted = function() {
|
|
802
|
+
return this._bIsPainted;
|
|
803
|
+
};
|
|
804
|
+
Drawing2.prototype.clear = function() {
|
|
805
|
+
this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height);
|
|
806
|
+
this._bIsPainted = false;
|
|
807
|
+
};
|
|
808
|
+
Drawing2.prototype.round = function(nNumber) {
|
|
809
|
+
if (!nNumber) {
|
|
810
|
+
return nNumber;
|
|
811
|
+
}
|
|
812
|
+
return Math.floor(nNumber * 1e3) / 1e3;
|
|
813
|
+
};
|
|
814
|
+
return Drawing2;
|
|
815
|
+
}();
|
|
816
|
+
function _getTypeNumber(sText, nCorrectLevel) {
|
|
817
|
+
var nType = 1;
|
|
818
|
+
var length = _getUTF8Length(sText);
|
|
819
|
+
for (var i2 = 0, len = QRCodeLimitLength.length; i2 < len; i2++) {
|
|
820
|
+
var nLimit = 0;
|
|
821
|
+
switch (nCorrectLevel) {
|
|
822
|
+
case QRErrorCorrectLevel.L:
|
|
823
|
+
nLimit = QRCodeLimitLength[i2][0];
|
|
824
|
+
break;
|
|
825
|
+
case QRErrorCorrectLevel.M:
|
|
826
|
+
nLimit = QRCodeLimitLength[i2][1];
|
|
827
|
+
break;
|
|
828
|
+
case QRErrorCorrectLevel.Q:
|
|
829
|
+
nLimit = QRCodeLimitLength[i2][2];
|
|
830
|
+
break;
|
|
831
|
+
case QRErrorCorrectLevel.H:
|
|
832
|
+
nLimit = QRCodeLimitLength[i2][3];
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
if (length <= nLimit) {
|
|
836
|
+
break;
|
|
837
|
+
} else {
|
|
838
|
+
nType++;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
if (nType > QRCodeLimitLength.length) {
|
|
842
|
+
throw new Error("Too long data");
|
|
843
|
+
}
|
|
844
|
+
return nType;
|
|
845
|
+
}
|
|
846
|
+
function _getUTF8Length(sText) {
|
|
847
|
+
var replacedText = encodeURI(sText).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
|
|
848
|
+
return replacedText.length + (replacedText.length != sText ? 3 : 0);
|
|
849
|
+
}
|
|
850
|
+
QRCode2 = function(el, vOption) {
|
|
851
|
+
this._htOption = {
|
|
852
|
+
width: 256,
|
|
853
|
+
height: 256,
|
|
854
|
+
typeNumber: 4,
|
|
855
|
+
colorDark: "#000000",
|
|
856
|
+
colorLight: "#ffffff",
|
|
857
|
+
correctLevel: QRErrorCorrectLevel.H
|
|
858
|
+
};
|
|
859
|
+
if (typeof vOption === "string") {
|
|
860
|
+
vOption = {
|
|
861
|
+
text: vOption
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
if (vOption) {
|
|
865
|
+
for (var i2 in vOption) {
|
|
866
|
+
this._htOption[i2] = vOption[i2];
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
if (typeof el == "string") {
|
|
870
|
+
el = document.getElementById(el);
|
|
871
|
+
}
|
|
872
|
+
if (this._htOption.useSVG) {
|
|
873
|
+
Drawing = svgDrawer;
|
|
874
|
+
}
|
|
875
|
+
this._android = _getAndroid();
|
|
876
|
+
this._el = el;
|
|
877
|
+
this._oQRCode = null;
|
|
878
|
+
this._oDrawing = new Drawing(this._el, this._htOption);
|
|
879
|
+
if (this._htOption.text) {
|
|
880
|
+
this.makeCode(this._htOption.text);
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
QRCode2.prototype.makeCode = function(sText) {
|
|
884
|
+
this._oQRCode = new QRCodeModel(_getTypeNumber(sText, this._htOption.correctLevel), this._htOption.correctLevel);
|
|
885
|
+
this._oQRCode.addData(sText);
|
|
886
|
+
this._oQRCode.make();
|
|
887
|
+
this._el.title = sText;
|
|
888
|
+
this._oDrawing.draw(this._oQRCode);
|
|
889
|
+
this.makeImage();
|
|
890
|
+
};
|
|
891
|
+
QRCode2.prototype.makeImage = function() {
|
|
892
|
+
if (typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3)) {
|
|
893
|
+
this._oDrawing.makeImage();
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
QRCode2.prototype.clear = function() {
|
|
897
|
+
this._oDrawing.clear();
|
|
898
|
+
};
|
|
899
|
+
QRCode2.CorrectLevel = QRErrorCorrectLevel;
|
|
900
|
+
return QRCode2;
|
|
901
|
+
});
|
|
902
|
+
})(qrcode);
|
|
903
|
+
var qrcodeExports = qrcode.exports;
|
|
904
|
+
const QRCode = /* @__PURE__ */ getDefaultExportFromCjs(qrcodeExports);
|
|
905
|
+
const _hoisted_1 = { class: "login-scan-container" };
|
|
906
|
+
const __default__ = defineComponent({
|
|
907
|
+
name: "loginScan"
|
|
908
|
+
});
|
|
909
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
910
|
+
...__default__,
|
|
911
|
+
setup(__props) {
|
|
912
|
+
const qrcodeRef = ref(null);
|
|
913
|
+
const initQrcode = () => {
|
|
914
|
+
nextTick(() => {
|
|
915
|
+
qrcodeRef.value.innerHTML = "";
|
|
916
|
+
new QRCode(qrcodeRef.value, {
|
|
917
|
+
text: `https://qm.qq.com/cgi-bin/qm/qr?k=RdUY97Vx0T0vZ_1OOu-X1yFNkWgDwbjC&jump_from=webapi`,
|
|
918
|
+
width: 260,
|
|
919
|
+
height: 260,
|
|
920
|
+
colorDark: "#000000",
|
|
921
|
+
colorLight: "#ffffff"
|
|
922
|
+
});
|
|
923
|
+
});
|
|
924
|
+
};
|
|
925
|
+
onMounted(() => {
|
|
926
|
+
initQrcode();
|
|
927
|
+
});
|
|
928
|
+
return (_ctx, _cache) => {
|
|
929
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
930
|
+
createElementVNode("div", {
|
|
931
|
+
ref_key: "qrcodeRef",
|
|
932
|
+
ref: qrcodeRef
|
|
933
|
+
}, null, 512),
|
|
934
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "font12 mt20 login-msg" }, [
|
|
935
|
+
createElementVNode("i", { class: "iconfont icon-saoyisao mr5" }),
|
|
936
|
+
createElementVNode("span", null, "打开手机扫一扫,快速登录/注册")
|
|
937
|
+
], -1))
|
|
938
|
+
]);
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
const scan = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-38581de4"]]);
|
|
943
|
+
export {
|
|
944
|
+
scan as default
|
|
945
|
+
};
|