halo-pc 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/components/business/index.d.ts +8 -8
- package/esm/components/controls/Text.vue.d.ts +1 -1
- package/esm/components/index.d.ts +8 -8
- package/esm/components/lists/Tree.vue.d.ts +1 -1
- package/esm/components/lists/index.d.ts +1 -1
- package/esm/components/pages/Single.vue.d.ts +1 -1
- package/esm/components/pagings/Article.vue.d.ts +1 -1
- package/esm/components/pagings/DataExport.vue.d.ts +1 -1
- package/esm/components/pagings/DataImport.vue.d.ts +1 -1
- package/esm/components/pagings/Index.vue.d.ts +4 -4
- package/esm/components/pagings/SearchFooter.vue.d.ts +1 -1
- package/esm/components/pagings/Table.vue.d.ts +3 -3
- package/esm/components/pagings/index.d.ts +1 -1
- package/esm/components/partials/Detail.vue.d.ts +1 -1
- package/esm/components/partials/Update.vue.d.ts +1 -1
- package/esm/components/singles/index.d.ts +1 -1
- package/esm/components/texts/Autocomplete.vue.d.ts +1 -1
- package/esm/components/texts/CSharp.vue.d.ts +1 -1
- package/esm/components/texts/Cascader.vue.d.ts +1 -1
- package/esm/components/texts/Checkbox.vue.d.ts +1 -1
- package/esm/components/texts/Code.vue.d.ts +1 -1
- package/esm/components/texts/Color.vue.d.ts +1 -1
- package/esm/components/texts/Compare.vue.d.ts +1 -1
- package/esm/components/texts/Copy.vue.d.ts +1 -1
- package/esm/components/texts/Date.vue.d.ts +1 -1
- package/esm/components/texts/DateRange.vue.d.ts +1 -1
- package/esm/components/texts/DateTime.vue.d.ts +1 -1
- package/esm/components/texts/Decimal.vue.d.ts +1 -1
- package/esm/components/texts/Dictionary.vue.d.ts +1 -1
- package/esm/components/texts/Email.vue.d.ts +1 -1
- package/esm/components/texts/Index.vue.d.ts +1 -1
- package/esm/components/texts/Int.vue.d.ts +1 -1
- package/esm/components/texts/Markdown.vue.d.ts +1 -1
- package/esm/components/texts/Month.vue.d.ts +1 -1
- package/esm/components/texts/Password.vue.d.ts +1 -1
- package/esm/components/texts/Progress.vue.d.ts +1 -1
- package/esm/components/texts/Radio.vue.d.ts +1 -1
- package/esm/components/texts/Rate.vue.d.ts +1 -1
- package/esm/components/texts/RichText.vue.d.ts +1 -1
- package/esm/components/texts/Select.vue.d.ts +1 -1
- package/esm/components/texts/Switch.vue.d.ts +1 -1
- package/esm/components/texts/Text.vue.d.ts +1 -1
- package/esm/components/texts/TextLink.vue.d.ts +1 -1
- package/esm/components/texts/Textarea.vue.d.ts +1 -1
- package/esm/components/texts/Upload.vue.d.ts +1 -1
- package/esm/components/texts/Year.vue.d.ts +1 -1
- package/esm/main.d.ts +5 -5
- package/esm/plugins/index.d.ts +1 -0
- package/esm/sdks/commons/HaTable.vue.d.ts +1 -1
- package/esm/sdks/commons/index.d.ts +1 -59
- package/esm/sdks/globals/HaWindow.vue.d.ts +4 -4
- package/esm/sdks/globals/index.d.ts +4 -0
- package/esm/sdks/index.d.ts +4 -7
- package/esm/services/MessageService.d.ts +9 -8
- package/esm/services/index.d.ts +1 -3
- package/esm/stores/index.d.ts +1 -7
- package/package.json +17 -21
- package/dist/Article-DievbQaS.js +0 -196
- package/dist/ArticleFooter-BAf1rKUX.js +0 -78
- package/dist/Autocomplete-9Dw6RZUJ.js +0 -53
- package/dist/Autocomplete-BC9yw7bd.js +0 -52
- package/dist/Autocomplete-CA9lAfcX.js +0 -27
- package/dist/CSharp-9TTxxjTd.js +0 -27
- package/dist/Calender-Cvt1swho.js +0 -10
- package/dist/Callback-3bTaCoQy.js +0 -20
- package/dist/Cascader-B8DEKaGU.js +0 -84
- package/dist/Cascader-DCbx-Xfo.js +0 -45
- package/dist/Checkbox-BPaKVuvv.js +0 -27
- package/dist/Checkbox-D928Sp6S.js +0 -69
- package/dist/Code--ryEmiLJ.js +0 -40
- package/dist/Code-CnU5c_Xk.js +0 -4
- package/dist/Code-DS9dwk0s.js +0 -58
- package/dist/Code-DVUf05Qa.js +0 -28
- package/dist/Code.vue_vue_type_style_index_0_lang-BQQ6Jatk.js +0 -63
- package/dist/Color-CfXtJFUo.js +0 -22
- package/dist/Color-Da69pnQg.js +0 -34
- package/dist/Column-BzM9a1Ai.js +0 -69
- package/dist/Comment-5gH4WF9C.js +0 -102
- package/dist/Compare-7rmSR2Vp.js +0 -57
- package/dist/Compare-D-WXTccH.js +0 -27
- package/dist/Copy-DcAUXAJq.js +0 -43
- package/dist/Custom-lSjUvIAb.js +0 -53
- package/dist/DataExport-Cl2LRmuu.js +0 -4
- package/dist/DataExport.vue_vue_type_script_setup_true_lang-DFuUWnTj.js +0 -112
- package/dist/DataImport-C8MggQON.js +0 -4
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-Qgy5ODur.js +0 -172
- package/dist/Date-B9tmMFuT.js +0 -36
- package/dist/Date-BRd0o_ib.js +0 -27
- package/dist/DateRange-DrYK_l0Y.js +0 -19
- package/dist/DateRange-Q6osbxfF.js +0 -61
- package/dist/DateTime-Ce1NnyqQ.js +0 -37
- package/dist/DateTime-DSUMg60T.js +0 -27
- package/dist/DateTimeRange-Cr_pV6VX.js +0 -61
- package/dist/Daterange-0qtKemST.js +0 -61
- package/dist/Decimal-BBYZHN-L.js +0 -27
- package/dist/Decimal-C38-N54B.js +0 -36
- package/dist/Delete-DkSX4BUu.js +0 -55
- package/dist/Detail-DlJeIF7u.js +0 -70
- package/dist/Dictionary-DH3ukOm9.js +0 -59
- package/dist/Email-BGc1mV9s.js +0 -47
- package/dist/Email-BKW9GRcH.js +0 -19
- package/dist/File-27vOsF_i.js +0 -158
- package/dist/Image-BejU08yZ.js +0 -9
- package/dist/Index-9AheG9bs.js +0 -4
- package/dist/Index-BaxI_lNq.js +0 -4
- package/dist/Index-BnNuVSxA.js +0 -4
- package/dist/Index-BtK4Riqs.js +0 -170
- package/dist/Index-ByC6qZPq.js +0 -74
- package/dist/Index-CtQ5rwyH.js +0 -4
- package/dist/Index-DEDLWObm.js +0 -4
- package/dist/Index-DMdBkj-p.js +0 -4
- package/dist/Index.vue_vue_type_script_setup_true_lang-3zk23es9.js +0 -69
- package/dist/Index.vue_vue_type_script_setup_true_lang-CCdCOtFc.js +0 -75
- package/dist/Index.vue_vue_type_script_setup_true_lang-gv23r-9D.js +0 -36
- package/dist/Index.vue_vue_type_style_index_0_lang-DZJCAfOb.js +0 -113
- package/dist/Install-DzOXL82w.js +0 -130
- package/dist/Int-AE2e9jyG.js +0 -37
- package/dist/Int-B-t8edhd.js +0 -19
- package/dist/Int-D3k7ZnH3.js +0 -45
- package/dist/List-BeoZ2a1r.js +0 -76
- package/dist/Maintaince-BMLmBQI9.js +0 -15
- package/dist/Markdown-BVhD-lo1.js +0 -27
- package/dist/Markdown-BzMP3m7o.js +0 -37
- package/dist/Month--2hXaJkd.js +0 -27
- package/dist/Month-BVKakHhk.js +0 -36
- package/dist/Month-D9r3wt_e.js +0 -37
- package/dist/Normal-B3Xs7sFU.js +0 -254
- package/dist/Paging-CqpaB0Mn.js +0 -94
- package/dist/PagingHeader-CBXHiUXR.js +0 -140
- package/dist/PagingRow-tny-wHwu.js +0 -66
- package/dist/Password-DuyYEgzR.js +0 -55
- package/dist/Password-yHtlY-Qa.js +0 -24
- package/dist/Progress-C3D821AQ.js +0 -34
- package/dist/Progress-CKVzMO-W.js +0 -25
- package/dist/QueryApi-BqpLpqXT.js +0 -13
- package/dist/Racebar-CvsmozFH.js +0 -166
- package/dist/Radio-DMlWrRLV.js +0 -27
- package/dist/Radio-DkcBKBvX.js +0 -47
- package/dist/Rate-B7jKTFKT.js +0 -34
- package/dist/Rate-BmC4gw_0.js +0 -34
- package/dist/Register-B7KEYSdN.js +0 -202
- package/dist/RichText-BX7WZjO-.js +0 -105
- package/dist/RichText-Bk0Msyhl.js +0 -22
- package/dist/SearchFooter-BSHxMoTL.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-CgAQfUu-.js +0 -55
- package/dist/SearchForm-CH5YWxKr.js +0 -4
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-By2w2biv.js +0 -149
- package/dist/Select-B7VB4CHX.js +0 -27
- package/dist/Select-Dmr_Q332.js +0 -115
- package/dist/Select-zZ9NAS5C.js +0 -80
- package/dist/Single-z7YLL5yh.js +0 -323
- package/dist/Statistic-B_mgjlnr.js +0 -76
- package/dist/Statistic-SFo_gi_N.js +0 -161
- package/dist/Stock-DInt0W2k.js +0 -28
- package/dist/Stock-cw7lE17E.js +0 -4
- package/dist/Stock.vue_vue_type_style_index_0_lang-DKGuyQ08.js +0 -302
- package/dist/Switch-DhFaku5L.js +0 -50
- package/dist/Switch-gkN2GOAQ.js +0 -27
- package/dist/Table-BRSX9_5r.js +0 -238
- package/dist/Table-ByUYlERR.js +0 -318
- package/dist/Text-CLMVbFyi.js +0 -52
- package/dist/Text-CXXJqJ8N.js +0 -4
- package/dist/Text-EQNK15_K.js +0 -51
- package/dist/Text.vue_vue_type_style_index_0_lang-Cwyu-GMz.js +0 -56
- package/dist/TextLink-KC_xsgpi.js +0 -66
- package/dist/Textarea-D9TgF9ig.js +0 -37
- package/dist/Textarea-DoE5sGRR.js +0 -28
- package/dist/Time-CRVru-6c.js +0 -36
- package/dist/Timeline-CTj1FAtR.js +0 -57
- package/dist/Tree-B2ILQtRK.js +0 -295
- package/dist/Tree-DfY_7l-G.js +0 -121
- package/dist/TreeNode-BV9BiCFt.js +0 -38
- package/dist/Tree_Old-h__WmqFA.js +0 -11
- package/dist/Update-C6EmSv2D.js +0 -65
- package/dist/UpdateChild-CA0P17tZ.js +0 -85
- package/dist/Upload-CQo4b32p.js +0 -147
- package/dist/Upload-z2mEnrlN.js +0 -71
- package/dist/UploadApi-C0wC0lME.js +0 -18
- package/dist/Year-CEHCOGTW.js +0 -27
- package/dist/Year-DBuvSBYN.js +0 -40
- package/dist/main-CgmRyjET.js +0 -6158
- package/dist/main.js +0 -92
- package/dist/style.css +0 -1
- package/dist/vendor-@intlify-BISCQg1h.js +0 -2189
- package/dist/vendor-@monaco-editor-DKC4UNw_.js +0 -258
- package/dist/vendor-@vue-aVYGocXp.js +0 -93
- package/dist/vendor-axios-ud9O0vdJ.js +0 -1670
- package/dist/vendor-clipboard-BqjesuiY.js +0 -521
- package/dist/vendor-clone-BPtCWdXG.js +0 -134
- package/dist/vendor-crypto-js-ftX_aBC-.js +0 -4995
- package/dist/vendor-element-plus-Z7vJFrsh.js +0 -456
- package/dist/vendor-file-saver-CytTIJ-3.js +0 -74
- package/dist/vendor-intro.js-CZkClzQO.js +0 -1695
- package/dist/vendor-moment-h96o7c8I.js +0 -2578
- package/dist/vendor-pinia-yrN6kSxh.js +0 -861
- package/dist/vendor-sprintf-js-BPTdvBYM.js +0 -148
- package/dist/vendor-state-local-CEworIRt.js +0 -131
- package/dist/vendor-underscore-DVTek3G4.js +0 -1070
- package/dist/vendor-underscore.string-BEHfJwHl.js +0 -425
- package/dist/vendor-util-deprecate-DzpNkCzj.js +0 -28
- package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
- package/dist/vendor-vue-i18n-C3KH15Qn.js +0 -1670
- package/esm/components/business/HoCondition.vue.d.ts +0 -18
- package/esm/components/business/HoCrud.vue.d.ts +0 -29
- package/esm/components/business/HoDrawer.vue.d.ts +0 -24
- package/esm/components/business/HoDriver.vue.d.ts +0 -52
- package/esm/components/business/HoFeedback.vue.d.ts +0 -8
- package/esm/components/business/HoForm.vue.d.ts +0 -23
- package/esm/components/business/HoSwitch.vue.d.ts +0 -24
- package/esm/components/business/HoWelcome.vue.d.ts +0 -8
- package/esm/drivers/IDriver.d.ts +0 -10
- package/esm/drivers/cdns/Cdn.d.ts +0 -14
- package/esm/drivers/cdns/CdnFactory.d.ts +0 -11
- package/esm/drivers/cdns/ICdn.d.ts +0 -34
- package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -13
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +0 -12
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -16
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -10
- package/esm/drivers/driver-helper.d.ts +0 -46
- package/esm/drivers/encoders/Encoder.d.ts +0 -11
- package/esm/drivers/encoders/EncoderFactory.d.ts +0 -16
- package/esm/drivers/encoders/IEncoder.d.ts +0 -22
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +0 -11
- package/esm/drivers/excels/ExcelFactory.d.ts +0 -11
- package/esm/drivers/excels/IExcel.d.ts +0 -18
- package/esm/drivers/excels/implements/XlsxExcel.d.ts +0 -10
- package/esm/drivers/explainers/Explainer.d.ts +0 -4
- package/esm/drivers/explainers/ExplainerFactory.d.ts +0 -1
- package/esm/drivers/explainers/IExplainer.d.ts +0 -3
- package/esm/drivers/explainers/implement/JsonExplainer.d.ts +0 -4
- package/esm/drivers/features/FeatureFactory.d.ts +0 -11
- package/esm/drivers/features/IFeature.d.ts +0 -23
- package/esm/drivers/features/implements/ExpressionFeature.d.ts +0 -12
- package/esm/drivers/features/implements/I18NFeature.d.ts +0 -12
- package/esm/drivers/features/implements/SortFeature.d.ts +0 -13
- package/esm/drivers/hashers/Hasher.d.ts +0 -10
- package/esm/drivers/hashers/HasherFactory.d.ts +0 -13
- package/esm/drivers/hashers/IHasher.d.ts +0 -19
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +0 -10
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +0 -10
- package/esm/drivers/index.d.ts +0 -7
- package/esm/drivers/providers/IProvider.d.ts +0 -43
- package/esm/drivers/providers/ProviderFactory.d.ts +0 -11
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +0 -55
- package/esm/drivers/requesters/IRequester.d.ts +0 -17
- package/esm/drivers/requesters/Requester.d.ts +0 -11
- package/esm/drivers/requesters/RequesterFactory.d.ts +0 -17
- package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -22
- package/esm/drivers/requesters/entities/HttpResponse.d.ts +0 -19
- package/esm/drivers/requesters/implements/DefaultRequester.d.ts +0 -7
- package/esm/drivers/requesters/implements/MkRequester.d.ts +0 -39
- package/esm/drivers/signers/ISigner.d.ts +0 -33
- package/esm/drivers/signers/SignerFactory.d.ts +0 -11
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +0 -18
- package/esm/drivers/ssos/ISso.d.ts +0 -41
- package/esm/drivers/ssos/SsoFactory.d.ts +0 -11
- package/esm/drivers/ssos/implements/AnonymousSso.d.ts +0 -18
- package/esm/drivers/ssos/implements/BearerSso.d.ts +0 -22
- package/esm/drivers/ssos/implements/NioSso.d.ts +0 -23
- package/esm/drivers/ssos/implements/SecretSso.d.ts +0 -18
- package/esm/drivers/ssos/implements/WeiXinSso.d.ts +0 -20
- package/esm/sdks/commons/HaCode.vue.d.ts +0 -39
- package/esm/sdks/commons/HaCol.vue.d.ts +0 -9
- package/esm/sdks/commons/HaCompare.vue.d.ts +0 -40
- package/esm/sdks/commons/HaContainer.vue.d.ts +0 -21
- package/esm/sdks/commons/HaEmpty.vue.d.ts +0 -24
- package/esm/sdks/commons/HaProgress.vue.d.ts +0 -8
- package/esm/sdks/commons/HaRow.vue.d.ts +0 -19
- package/esm/sdks/commons/HoCaptcha.vue.d.ts +0 -14
- package/esm/sdks/commons/HoCode.vue.d.ts +0 -39
- package/esm/sdks/commons/HoCol.vue.d.ts +0 -9
- package/esm/sdks/commons/HoCompare.vue.d.ts +0 -40
- package/esm/sdks/commons/HoContainer.vue.d.ts +0 -21
- package/esm/sdks/commons/HoDebug.vue.d.ts +0 -9
- package/esm/sdks/commons/HoEditable.vue.d.ts +0 -13
- package/esm/sdks/commons/HoEmpty.vue.d.ts +0 -24
- package/esm/sdks/commons/HoLoading.vue.d.ts +0 -33
- package/esm/sdks/commons/HoMouseContext.vue.d.ts +0 -2
- package/esm/sdks/commons/HoParticles.vue.d.ts +0 -2
- package/esm/sdks/commons/HoProgress.vue.d.ts +0 -8
- package/esm/sdks/commons/HoResizer.vue.d.ts +0 -26
- package/esm/sdks/commons/HoRow.vue.d.ts +0 -19
- package/esm/sdks/commons/HoSpinner.vue.d.ts +0 -20
- package/esm/sdks/commons/HoTable.vue.d.ts +0 -34
- package/esm/sdks/commons/HoTableColumn.vue.d.ts +0 -31
- package/esm/sdks/globals/HoHeaderTab.vue.d.ts +0 -19
- package/esm/sdks/globals/HoHeaderTabs.vue.d.ts +0 -17
- package/esm/sdks/globals/HoMenu.vue.d.ts +0 -77
- package/esm/sdks/globals/HoMenuItem.vue.d.ts +0 -76
- package/esm/sdks/globals/HoMissComponent.vue.d.ts +0 -9
- package/esm/sdks/globals/HoSideTab.vue.d.ts +0 -21
- package/esm/sdks/globals/HoSideTabs.vue.d.ts +0 -17
- package/esm/sdks/globals/HoWindow.vue.d.ts +0 -66
- package/esm/sdks/helpers/array-helper.d.ts +0 -97
- package/esm/sdks/helpers/component-helper.d.ts +0 -10
- package/esm/sdks/helpers/cookie-helper.d.ts +0 -6
- package/esm/sdks/helpers/dictionary-helper.d.ts +0 -10
- package/esm/sdks/helpers/dom-helper.d.ts +0 -74
- package/esm/sdks/helpers/encrypt-helper.d.ts +0 -18
- package/esm/sdks/helpers/event-helper.d.ts +0 -30
- package/esm/sdks/helpers/file-helper.d.ts +0 -22
- package/esm/sdks/helpers/html-helper.d.ts +0 -10
- package/esm/sdks/helpers/i18n-helper.d.ts +0 -14
- package/esm/sdks/helpers/image-helper.d.ts +0 -10
- package/esm/sdks/helpers/index.d.ts +0 -26
- package/esm/sdks/helpers/json-helper.d.ts +0 -31
- package/esm/sdks/helpers/math-helper.d.ts +0 -42
- package/esm/sdks/helpers/micro-helper.d.ts +0 -10
- package/esm/sdks/helpers/mount-helper.d.ts +0 -14
- package/esm/sdks/helpers/object-helper.d.ts +0 -34
- package/esm/sdks/helpers/script-helper.d.ts +0 -31
- package/esm/sdks/helpers/scroll-helper.d.ts +0 -14
- package/esm/sdks/helpers/sign-helper.d.ts +0 -14
- package/esm/sdks/helpers/storage-helper.d.ts +0 -34
- package/esm/sdks/helpers/string-helper.d.ts +0 -94
- package/esm/sdks/helpers/task-helper.d.ts +0 -26
- package/esm/sdks/helpers/time-helper.d.ts +0 -62
- package/esm/sdks/helpers/tree-helper.d.ts +0 -54
- package/esm/sdks/helpers/type-helper.d.ts +0 -26
- package/esm/sdks/helpers/url-helper.d.ts +0 -92
- package/esm/sdks/panels/HoGroup.vue.d.ts +0 -9
- package/esm/sdks/panels/HoHeader.vue.d.ts +0 -16
- package/esm/sdks/panels/HoOperation.vue.d.ts +0 -22
- package/esm/sdks/panels/HoPanel.vue.d.ts +0 -30
- package/esm/sdks/panels/HoShrink.vue.d.ts +0 -48
- package/esm/sdks/stores/window.d.ts +0 -25
- package/esm/sdks/thirds/index.d.ts +0 -8
- package/esm/sdks/utilities/AffixUtility.d.ts +0 -9
- package/esm/sdks/utilities/EventUtility.d.ts +0 -30
- package/esm/sdks/utilities/KeyboardUtility.d.ts +0 -73
- package/esm/sdks/utilities/MouseUtility.d.ts +0 -24
- package/esm/sdks/utilities/index.d.ts +0 -4
- package/esm/services/HttpService.d.ts +0 -22
- package/esm/services/SettingService.d.ts +0 -5
- package/esm/stores/app.d.ts +0 -44
- package/esm/stores/component.d.ts +0 -30
- package/esm/stores/config.d.ts +0 -55
- package/esm/stores/driver.d.ts +0 -37
- package/esm/stores/i18n.d.ts +0 -67
- package/esm/stores/layout.d.ts +0 -13
- package/esm/stores/log.d.ts +0 -20
- package/esm/stores/router.d.ts +0 -20
- package/esm/stores/setting.d.ts +0 -43
- package/esm/stores/socket.d.ts +0 -27
- package/esm/stores/user.d.ts +0 -40
@@ -1,94 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 字符串帮助类
|
3
|
-
*/
|
4
|
-
declare class StringHelper {
|
5
|
-
/**
|
6
|
-
* 生成唯一字符串
|
7
|
-
*/
|
8
|
-
static getUniqueId: () => string;
|
9
|
-
/**
|
10
|
-
* 填充字符串到指定长度,使用pad填充
|
11
|
-
*/
|
12
|
-
static padLeft: (value: string, length: number, pad: string) => any;
|
13
|
-
/**
|
14
|
-
* 去掉头部字符串
|
15
|
-
*/
|
16
|
-
static trimStart: (value: string, trim: string) => string;
|
17
|
-
/**
|
18
|
-
* 去掉尾部字符串
|
19
|
-
*/
|
20
|
-
static trimEnd: (value: string, trim: string) => string;
|
21
|
-
/**
|
22
|
-
* 去掉头尾字符串
|
23
|
-
*/
|
24
|
-
static trim: (value: string, start: string, end: string) => string;
|
25
|
-
/**
|
26
|
-
* 获取中划线命名法
|
27
|
-
*/
|
28
|
-
static getDashName: (value: string) => string;
|
29
|
-
/**
|
30
|
-
* 忽略大小写包含判断,支持从数组中搜索关键词
|
31
|
-
*/
|
32
|
-
static containsIgnoreCase: (keywords: string, value: string | string[]) => boolean;
|
33
|
-
/**
|
34
|
-
* 从html中提取纯文本
|
35
|
-
*/
|
36
|
-
static getTextFromHtml: (html: string) => string;
|
37
|
-
/**
|
38
|
-
* 判断是否是数字类型,这样支持0
|
39
|
-
*/
|
40
|
-
static isNumber: (value: any) => boolean;
|
41
|
-
/**
|
42
|
-
* 验证是否是邮箱格式
|
43
|
-
*/
|
44
|
-
static isEmail: (email: string) => boolean;
|
45
|
-
/**
|
46
|
-
* 判断是否是json
|
47
|
-
*/
|
48
|
-
static isJson: (value: string) => boolean;
|
49
|
-
/**
|
50
|
-
* 判断是否是isJsonp
|
51
|
-
*/
|
52
|
-
static isJsonp: (value: string) => boolean;
|
53
|
-
/**
|
54
|
-
* 判断是否是html
|
55
|
-
*/
|
56
|
-
static isHtml: (value: string) => boolean;
|
57
|
-
/**
|
58
|
-
* 获取内容类型
|
59
|
-
*/
|
60
|
-
static getContentType: (value: string) => "json" | "html" | "text";
|
61
|
-
/**
|
62
|
-
* 判断字符串是否为空或空串
|
63
|
-
*/
|
64
|
-
static isNullOrEmpty: (value: string) => boolean;
|
65
|
-
/**
|
66
|
-
* 判断字符串是否为空或空串
|
67
|
-
*/
|
68
|
-
static isEmpty: (value: string) => boolean;
|
69
|
-
/**
|
70
|
-
* 判断是否符合密码要求
|
71
|
-
*/
|
72
|
-
static isPassword: (value: string) => boolean;
|
73
|
-
/**
|
74
|
-
* 获取数据值或者空
|
75
|
-
*/
|
76
|
-
static getNumberOrNull: (value: any) => number;
|
77
|
-
/**
|
78
|
-
* 格式化成留指定位数的小数
|
79
|
-
*/
|
80
|
-
static format: (value: string, digits: number) => any;
|
81
|
-
/**
|
82
|
-
* 获取两个字符串之间的字符串
|
83
|
-
*/
|
84
|
-
static getBetween: (value: string, start: string, end: string) => string;
|
85
|
-
/**
|
86
|
-
* 根据字符串或数组,自动返回数组
|
87
|
-
*/
|
88
|
-
static getArray(name: string | string[]): string[];
|
89
|
-
/**
|
90
|
-
* 忽略大小写比较
|
91
|
-
*/
|
92
|
-
static equalsIgnoreCase(value: any, valueCompare: string): boolean;
|
93
|
-
}
|
94
|
-
export default StringHelper;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 任务执行帮助类
|
3
|
-
*/
|
4
|
-
declare class TaskHelper {
|
5
|
-
/**
|
6
|
-
* 延时指定ms后执行指定任务
|
7
|
-
*/
|
8
|
-
static delay: (fun: Function, ms: number) => number;
|
9
|
-
/**
|
10
|
-
* 在执行指定延时后,每隔指定ms执行指定任务
|
11
|
-
*/
|
12
|
-
static execute: (fun: Function, ms: number, delay: number) => Promise<unknown>;
|
13
|
-
/**
|
14
|
-
* 清空定时器
|
15
|
-
*/
|
16
|
-
static clearInterval: (id: number) => void;
|
17
|
-
/**
|
18
|
-
* 防抖(指定时间内只触发一次)
|
19
|
-
*/
|
20
|
-
static debounce: (fun: Function, delay: number) => (e: any) => void;
|
21
|
-
/**
|
22
|
-
* 节流:https://segmentfault.com/a/1190000018428170
|
23
|
-
*/
|
24
|
-
static throttle: (fun: Function, delay: number) => (e: any) => boolean;
|
25
|
-
}
|
26
|
-
export default TaskHelper;
|
@@ -1,62 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 时间帮助类
|
3
|
-
*/
|
4
|
-
declare class TimeHelper {
|
5
|
-
/**
|
6
|
-
* 获取相对于1970年1月1日的时间戳(ms),不同时区结果相同
|
7
|
-
*/
|
8
|
-
static getTimestamp: (value?: any) => number;
|
9
|
-
/**
|
10
|
-
* 根据字符串获取可对比的时间
|
11
|
-
*/
|
12
|
-
static getTime: (value?: any) => Date;
|
13
|
-
/**
|
14
|
-
* 格式化时间
|
15
|
-
*/
|
16
|
-
static format: (value: string, format: string) => string;
|
17
|
-
/**
|
18
|
-
* 获取当前日期时间的字符串
|
19
|
-
*/
|
20
|
-
static getDateTimeString: () => string;
|
21
|
-
/**
|
22
|
-
* 获取当前时间的字符串
|
23
|
-
*/
|
24
|
-
static getDateString: () => string;
|
25
|
-
/**
|
26
|
-
* 获取当前时间的字符串
|
27
|
-
*/
|
28
|
-
static getTimeString: () => string;
|
29
|
-
/**
|
30
|
-
* 对时间值进行时间格式化
|
31
|
-
*/
|
32
|
-
static formatSecondTime: (value: any) => string;
|
33
|
-
/**
|
34
|
-
* 对时间值进行时间格式化
|
35
|
-
*/
|
36
|
-
static formatMillisecondTime: (value: string) => string;
|
37
|
-
/**
|
38
|
-
* 格式化成24小时时间格式
|
39
|
-
*/
|
40
|
-
static formatTime: (value: any) => string;
|
41
|
-
/**
|
42
|
-
* 对时间值进行日期格式化
|
43
|
-
*/
|
44
|
-
static formatDate: (value: any) => string;
|
45
|
-
/**
|
46
|
-
* 添加天数
|
47
|
-
*/
|
48
|
-
static addDays: (value: any, days: number) => string;
|
49
|
-
/**
|
50
|
-
* 添加月份
|
51
|
-
*/
|
52
|
-
static addMonths: (value: any, months: number) => string;
|
53
|
-
/**
|
54
|
-
* 判断指定时间是否是周末
|
55
|
-
*/
|
56
|
-
static isWeekend: (value: any) => boolean;
|
57
|
-
/**
|
58
|
-
* 把中国时间,转换为当地时间
|
59
|
-
*/
|
60
|
-
static localeTime: (time: any) => string;
|
61
|
-
}
|
62
|
-
export default TimeHelper;
|
@@ -1,54 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 树帮助类
|
3
|
-
*/
|
4
|
-
declare class TreeHelper {
|
5
|
-
/**
|
6
|
-
* 从树结构数据中,递归获取指定主键的对象
|
7
|
-
*/
|
8
|
-
static getById: (id: any, idProp: string, tree: any[], childProp: string) => any;
|
9
|
-
/**
|
10
|
-
* 树节点
|
11
|
-
*/
|
12
|
-
static getByIds: (ids: any[], idProp: string, tree: any[], childProp: string) => any[];
|
13
|
-
/**
|
14
|
-
* 找出指定层级集合中,指定对象的下一个对象
|
15
|
-
*/
|
16
|
-
static getNextById: (id: any, idProp: string, tree: any[], childProp: string) => any;
|
17
|
-
/**
|
18
|
-
* 获取兄弟节点
|
19
|
-
*/
|
20
|
-
static getSiblingsById: (id: any, idProp: string, tree: any[], childProp: string) => any;
|
21
|
-
/**
|
22
|
-
* 获取父节点
|
23
|
-
*/
|
24
|
-
static getParentById: (id: any, idProp: string, tree: any[], childProp: string) => any;
|
25
|
-
/**
|
26
|
-
* 从树结构数据中,递归获取指定主键的父元素集合
|
27
|
-
*/
|
28
|
-
static getParentsById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
|
29
|
-
/**
|
30
|
-
* 获取当前节点的所有孩子节点的集合
|
31
|
-
*/
|
32
|
-
static getChildrenById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
|
33
|
-
/**
|
34
|
-
* 获取当前节点的所有孩子节点的集合
|
35
|
-
*/
|
36
|
-
static getChildren: (element: any, childProp: string, hasSelf?: boolean) => any[];
|
37
|
-
/**
|
38
|
-
* 搜索指定文本的树结构
|
39
|
-
*/
|
40
|
-
static searchTree: (keywords: string, tree: any[], childProp: string, searchProps: any) => any[];
|
41
|
-
/**
|
42
|
-
* 删除指定子元素
|
43
|
-
*/
|
44
|
-
static removeById: (id: any, idProp: string, tree: any[], childProp: string) => void;
|
45
|
-
/**
|
46
|
-
* 获取树结构扁平化后的节点信息
|
47
|
-
*/
|
48
|
-
static getFlat: (tree: any[], childProp: string) => any[];
|
49
|
-
/**
|
50
|
-
* 对树结点的数据进行重新映射,映射得到新的Tree数组
|
51
|
-
*/
|
52
|
-
static map: (tree: any[], prevChildProp: string, childProp: string, fun: Function) => any[];
|
53
|
-
}
|
54
|
-
export default TreeHelper;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 类型帮助类
|
3
|
-
*/
|
4
|
-
declare class TypeHelper {
|
5
|
-
/**
|
6
|
-
* 判断输入类型是否是字符串类型 null -> false
|
7
|
-
*/
|
8
|
-
static isString: (input: any) => boolean;
|
9
|
-
/**
|
10
|
-
* 判断输入类型是否是Object类型
|
11
|
-
*/
|
12
|
-
static isObject: (input: any) => boolean;
|
13
|
-
/**
|
14
|
-
* 判断输入类型是否是Array类型
|
15
|
-
*/
|
16
|
-
static isArray: (input: any) => boolean;
|
17
|
-
/**
|
18
|
-
* 判断输入类型是否是Number类型,null -> false
|
19
|
-
*/
|
20
|
-
static isNumber: (input: any) => boolean;
|
21
|
-
/**
|
22
|
-
* 判断输入类型是否是isBoolean类型
|
23
|
-
*/
|
24
|
-
static isBoolean: (input: any) => boolean;
|
25
|
-
}
|
26
|
-
export default TypeHelper;
|
@@ -1,92 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Url帮助类
|
3
|
-
*/
|
4
|
-
declare class UrlHelper {
|
5
|
-
/**
|
6
|
-
* 获取指定地址路由对象
|
7
|
-
*/
|
8
|
-
static getToRoute(url: string, withReturnUrl?: boolean): any;
|
9
|
-
/**
|
10
|
-
* 获取要跳转的Url地址信息,自动涵盖后退地址
|
11
|
-
*/
|
12
|
-
static getToUrl(url: string, withReturnUrl?: boolean): string;
|
13
|
-
/**
|
14
|
-
* 获取菜单参数
|
15
|
-
*/
|
16
|
-
static getM(url: string): any;
|
17
|
-
/**
|
18
|
-
* 获取后退地址路由
|
19
|
-
*/
|
20
|
-
static getBackRoute(): any;
|
21
|
-
/**
|
22
|
-
* 获取要后退的地址URL
|
23
|
-
*/
|
24
|
-
static getBackUrl(): string;
|
25
|
-
/**
|
26
|
-
* 获取指定地址的路由对象,自动合并qs,并解码
|
27
|
-
*/
|
28
|
-
static getRoute(url: string, queryObj?: object): any;
|
29
|
-
/**
|
30
|
-
* 处理实体,得到url query参数形式
|
31
|
-
* 如:app=Tool&compare[language]=json&compare[sql]=App%3D%27Tool%27+and+[Table]+like+%27Ctl_%25%27+order+by+[Table],+Name
|
32
|
-
*/
|
33
|
-
static getQuery(value: any): string;
|
34
|
-
/**
|
35
|
-
* 处理键值对的值
|
36
|
-
*/
|
37
|
-
private static handleQueryValue;
|
38
|
-
/**
|
39
|
-
* 合并路径和查询对象(自动编码,并支持覆盖现有参数),得到完整URL地址,并会省略默认值
|
40
|
-
* ? 对url参数不编码,只对 queryObj 参数编码,防止用户的参数被改成编码形式
|
41
|
-
* ? 目前,对Url参数对象和目标对象都编码,因为源对象属性是经过解码的
|
42
|
-
*/
|
43
|
-
static getUrl: (url: string, params?: any) => string;
|
44
|
-
/**
|
45
|
-
* 获取超链接配置对象
|
46
|
-
*/
|
47
|
-
static getAnchor: (url: string, params?: any) => {
|
48
|
-
href: any;
|
49
|
-
target: any;
|
50
|
-
};
|
51
|
-
/**
|
52
|
-
* 从Url中提取路径
|
53
|
-
*/
|
54
|
-
static getPath(url: string): string;
|
55
|
-
/**
|
56
|
-
* 获取path中最后一个片段信息
|
57
|
-
*/
|
58
|
-
static getLastSegment(url: string): string;
|
59
|
-
/**
|
60
|
-
* 获取地址中的查询参数
|
61
|
-
*/
|
62
|
-
static getQueryParam(url: string, key: string): string;
|
63
|
-
/**
|
64
|
-
* 从Url中提取查询对象
|
65
|
-
*/
|
66
|
-
static deserialize(url: string): object;
|
67
|
-
/**
|
68
|
-
* 把查询字符串转换成对象(自动解码成源数据)
|
69
|
-
*/
|
70
|
-
static deserializeQs(qs: string, decode?: boolean): any;
|
71
|
-
/**
|
72
|
-
* 把对象转换成查询字符串,自动编码
|
73
|
-
*/
|
74
|
-
static serialize(obj: object): string;
|
75
|
-
/**
|
76
|
-
* URL编码
|
77
|
-
*/
|
78
|
-
static encode(val: string): string;
|
79
|
-
/**
|
80
|
-
* 把指定对象转换成base64字符串
|
81
|
-
*/
|
82
|
-
static base64(obj: object): string;
|
83
|
-
/**
|
84
|
-
* 把指定base64字符串解析为原对象
|
85
|
-
*/
|
86
|
-
static base64Decode(val: string): any;
|
87
|
-
/**
|
88
|
-
* 是否是http或https开头的地址
|
89
|
-
*/
|
90
|
-
static httpOrHttps(url: string): boolean;
|
91
|
-
}
|
92
|
-
export default UrlHelper;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
2
|
-
default?(_: {}): any;
|
3
|
-
}>;
|
4
|
-
export default _default;
|
5
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
6
|
-
new (): {
|
7
|
-
$slots: S;
|
8
|
-
};
|
9
|
-
};
|
@@ -1,16 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
-
title: {
|
3
|
-
type: StringConstructor;
|
4
|
-
};
|
5
|
-
theme: {
|
6
|
-
type: StringConstructor;
|
7
|
-
};
|
8
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
9
|
-
title: {
|
10
|
-
type: StringConstructor;
|
11
|
-
};
|
12
|
-
theme: {
|
13
|
-
type: StringConstructor;
|
14
|
-
};
|
15
|
-
}>>, {}, {}>;
|
16
|
-
export default _default;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { OperationProps } from "./index";
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<OperationProps>, {
|
3
|
-
ref: import("vue").Ref<any>;
|
4
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<OperationProps>>>, {}, {}>, {
|
5
|
-
left?(_: {}): any;
|
6
|
-
default?(_: {}): any;
|
7
|
-
}>;
|
8
|
-
export default _default;
|
9
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
10
|
-
new (): {
|
11
|
-
$slots: S;
|
12
|
-
};
|
13
|
-
};
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
15
|
-
type __VLS_TypePropsToOption<T> = {
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
18
|
-
} : {
|
19
|
-
type: import('vue').PropType<T[K]>;
|
20
|
-
required: true;
|
21
|
-
};
|
22
|
-
};
|
@@ -1,30 +0,0 @@
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
-
title: {
|
3
|
-
type: StringConstructor;
|
4
|
-
};
|
5
|
-
dark: {
|
6
|
-
type: BooleanConstructor;
|
7
|
-
default: boolean;
|
8
|
-
};
|
9
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
10
|
-
title: {
|
11
|
-
type: StringConstructor;
|
12
|
-
};
|
13
|
-
dark: {
|
14
|
-
type: BooleanConstructor;
|
15
|
-
default: boolean;
|
16
|
-
};
|
17
|
-
}>>, {
|
18
|
-
dark: boolean;
|
19
|
-
}, {}>, {
|
20
|
-
title?(_: {}): any;
|
21
|
-
operation?(_: {}): any;
|
22
|
-
default?(_: {}): any;
|
23
|
-
"panel-footer"?(_: {}): any;
|
24
|
-
}>;
|
25
|
-
export default _default;
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
27
|
-
new (): {
|
28
|
-
$slots: S;
|
29
|
-
};
|
30
|
-
};
|
@@ -1,48 +0,0 @@
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
-
title: {
|
3
|
-
type: StringConstructor;
|
4
|
-
default: string;
|
5
|
-
};
|
6
|
-
count: {
|
7
|
-
type: NumberConstructor;
|
8
|
-
default: any;
|
9
|
-
};
|
10
|
-
shrinkWhen: {
|
11
|
-
type: NumberConstructor;
|
12
|
-
default: any;
|
13
|
-
};
|
14
|
-
shrinkHeight: {
|
15
|
-
type: NumberConstructor;
|
16
|
-
default: any;
|
17
|
-
};
|
18
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
19
|
-
title: {
|
20
|
-
type: StringConstructor;
|
21
|
-
default: string;
|
22
|
-
};
|
23
|
-
count: {
|
24
|
-
type: NumberConstructor;
|
25
|
-
default: any;
|
26
|
-
};
|
27
|
-
shrinkWhen: {
|
28
|
-
type: NumberConstructor;
|
29
|
-
default: any;
|
30
|
-
};
|
31
|
-
shrinkHeight: {
|
32
|
-
type: NumberConstructor;
|
33
|
-
default: any;
|
34
|
-
};
|
35
|
-
}>>, {
|
36
|
-
title: string;
|
37
|
-
count: number;
|
38
|
-
shrinkWhen: number;
|
39
|
-
shrinkHeight: number;
|
40
|
-
}, {}>, {
|
41
|
-
default?(_: {}): any;
|
42
|
-
}>;
|
43
|
-
export default _default;
|
44
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
45
|
-
new (): {
|
46
|
-
$slots: S;
|
47
|
-
};
|
48
|
-
};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { IProvider } from "../../drivers";
|
2
|
-
/**
|
3
|
-
* 使用窗口仓储
|
4
|
-
*/
|
5
|
-
declare let useWindowStore: import("pinia").StoreDefinition<"window", {
|
6
|
-
windows: any[];
|
7
|
-
}, {}, {
|
8
|
-
/**
|
9
|
-
* 加载窗口
|
10
|
-
*/
|
11
|
-
loadWindows(provider: IProvider): Promise<void>;
|
12
|
-
/**
|
13
|
-
* 获取窗口状态
|
14
|
-
*/
|
15
|
-
get(id: string): any;
|
16
|
-
/**
|
17
|
-
* 保存窗口状态
|
18
|
-
*/
|
19
|
-
save(id: string, options: any, provider: IProvider): Promise<void>;
|
20
|
-
/**
|
21
|
-
* 删除窗口
|
22
|
-
*/
|
23
|
-
remove(id: string): void;
|
24
|
-
}>;
|
25
|
-
export default useWindowStore;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import loader from "@monaco-editor/loader";
|
2
|
-
import type * as Monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
3
|
-
import moment from "moment";
|
4
|
-
/**
|
5
|
-
* 异步加载echarts
|
6
|
-
*/
|
7
|
-
export declare function loadEcharts(): Promise<unknown>;
|
8
|
-
export { loader, Monaco, moment };
|
@@ -1,30 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 事件工具类
|
3
|
-
*/
|
4
|
-
declare class EventUtility {
|
5
|
-
resizeObserver: ResizeObserver;
|
6
|
-
resizeHandler: any;
|
7
|
-
/**
|
8
|
-
* 大小改变事件,已防抖
|
9
|
-
*/
|
10
|
-
resize: (element: Element, handler: Function, debounceMs?: number) => void;
|
11
|
-
/**
|
12
|
-
* 移除大小改变事件
|
13
|
-
*/
|
14
|
-
unresize: (element: Element) => void;
|
15
|
-
lastDebounceTime: number;
|
16
|
-
lastDebounceTimeout: any;
|
17
|
-
/**
|
18
|
-
* 事件防抖: time ms没重复触发才执行指定操作
|
19
|
-
*/
|
20
|
-
debounce: (func: Function, time: number, args?: any) => void;
|
21
|
-
/**
|
22
|
-
* 清空防抖
|
23
|
-
*/
|
24
|
-
clearDebounce: () => void;
|
25
|
-
/**
|
26
|
-
* 事件节流: 指定时间段内只第一次操作被触发
|
27
|
-
*/
|
28
|
-
throttle: () => void;
|
29
|
-
}
|
30
|
-
export default EventUtility;
|
@@ -1,73 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 键盘帮助类
|
3
|
-
*/
|
4
|
-
declare class KeyboardUtility {
|
5
|
-
events: Object;
|
6
|
-
/**
|
7
|
-
* 注册事件
|
8
|
-
*/
|
9
|
-
add: (element: any, cb: Function, condition: Function, key: string, prevent: boolean, type: string) => void;
|
10
|
-
/**
|
11
|
-
* 移除事件
|
12
|
-
*/
|
13
|
-
remove: (element: any, key: string, type: string) => void;
|
14
|
-
/**
|
15
|
-
* 监听键盘按下事件
|
16
|
-
*/
|
17
|
-
keydown: (element: any, cb: Function, condition: Function, key: string, prevent?: boolean) => void;
|
18
|
-
/**
|
19
|
-
* 移除键盘按下事件
|
20
|
-
*/
|
21
|
-
removeKeydown: (element: any, key: string) => void;
|
22
|
-
/**
|
23
|
-
* 当触发保存时执行
|
24
|
-
* 想在div上绑定ctrlS事件,需要div处于focus状态,才可以触发已绑定的ctrlS事件
|
25
|
-
* div设置tabindex=-1,才可以手动触发焦点
|
26
|
-
*/
|
27
|
-
ctrlS: (element: any, cb: Function) => void;
|
28
|
-
/**
|
29
|
-
* 移除保存事件
|
30
|
-
*/
|
31
|
-
removeCtrlS: (element: any) => void;
|
32
|
-
/**
|
33
|
-
* 触发Ctrl回车事件
|
34
|
-
*/
|
35
|
-
ctrlEnter: (element: any, cb: Function) => void;
|
36
|
-
/**
|
37
|
-
* 移除Ctrl回车事件
|
38
|
-
*/
|
39
|
-
removeCtrlEnter: (element: any) => void;
|
40
|
-
lastKeyTime: number;
|
41
|
-
isKeyLastUp: boolean;
|
42
|
-
/**
|
43
|
-
* 双击事件
|
44
|
-
*/
|
45
|
-
doubleKey: (element: any, cb: Function, key: string, prevent?: boolean) => void;
|
46
|
-
/**
|
47
|
-
* 移除双击事件
|
48
|
-
*/
|
49
|
-
removeDoubleKey: (element: any, key: string) => void;
|
50
|
-
/**
|
51
|
-
* 监听键盘抬起事件
|
52
|
-
*/
|
53
|
-
keyup: (element: any, cb: Function, condition: Function, key: string, prevent?: boolean) => void;
|
54
|
-
/**
|
55
|
-
* 移除键盘抬起事件
|
56
|
-
*/
|
57
|
-
removeKeyup: (element: any, key: string) => void;
|
58
|
-
/**
|
59
|
-
* 监控是否按下Ctrl
|
60
|
-
*/
|
61
|
-
isCtrl: boolean;
|
62
|
-
ctrl: (document: any) => void;
|
63
|
-
/**
|
64
|
-
* 删除Ctrl事件
|
65
|
-
*/
|
66
|
-
removeCtrl: (document: any) => void;
|
67
|
-
timer: number;
|
68
|
-
touchStart: Function;
|
69
|
-
touchEnd(): void;
|
70
|
-
touch: (element: any, cb: Function) => void;
|
71
|
-
removeTouch: (element: any) => void;
|
72
|
-
}
|
73
|
-
export default KeyboardUtility;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 鼠标工具类
|
3
|
-
*/
|
4
|
-
declare class MouseUtility {
|
5
|
-
container: HTMLElement;
|
6
|
-
closeTriggers: HTMLElement[];
|
7
|
-
/**
|
8
|
-
* 初始化,并绑定自动关闭上下文菜单事件
|
9
|
-
*/
|
10
|
-
constructor(container: HTMLElement, closeTriggers?: any[]);
|
11
|
-
/**
|
12
|
-
* 手动关闭右键上下文菜单
|
13
|
-
*/
|
14
|
-
close: () => void;
|
15
|
-
/**
|
16
|
-
* 根据鼠标事件,显示右键上下文弹窗
|
17
|
-
*/
|
18
|
-
show: (event: MouseEvent) => void;
|
19
|
-
/**
|
20
|
-
* 资源释放,防止内存泄漏
|
21
|
-
*/
|
22
|
-
dispose: () => void;
|
23
|
-
}
|
24
|
-
export default MouseUtility;
|