halo-pc 1.0.1 → 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/layouts/index.d.ts +2 -2
- 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-D4qXG55i.js +0 -195
- package/dist/ArticleFooter-BAf1rKUX.js +0 -78
- package/dist/Autocomplete-BOxOjTFs.js +0 -51
- package/dist/Autocomplete-BdKldPfG.js +0 -27
- package/dist/Autocomplete-CV4D7693.js +0 -52
- package/dist/CSharp-D_fhmKNi.js +0 -27
- package/dist/Calender-B1bjnNK5.js +0 -10
- package/dist/Callback-DjHhgx-q.js +0 -20
- package/dist/Cascader-B6OhUHVe.js +0 -44
- package/dist/Cascader-K4fh1YbW.js +0 -83
- package/dist/Checkbox-CkfHA52y.js +0 -27
- package/dist/Checkbox-D928Sp6S.js +0 -69
- package/dist/Code-3c6-02U1.js +0 -39
- package/dist/Code-BTDq_0B6.js +0 -57
- package/dist/Code-C4HjQm82.js +0 -28
- package/dist/Code-RAklwsI8.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-zfBqeJue.js +0 -62
- package/dist/Color-CfXtJFUo.js +0 -22
- package/dist/Color-Da69pnQg.js +0 -34
- package/dist/Column-D9Kx2OQ2.js +0 -68
- package/dist/Comment-DCArar0n.js +0 -101
- package/dist/Compare-7rmSR2Vp.js +0 -57
- package/dist/Compare-D-WXTccH.js +0 -27
- package/dist/Copy-DkFCsKxT.js +0 -43
- package/dist/Custom-a5LNK1fz.js +0 -52
- package/dist/DataExport-CNacxrr6.js +0 -4
- package/dist/DataExport.vue_vue_type_script_setup_true_lang-Dnt8MHYd.js +0 -111
- package/dist/DataImport-Dm86g3rr.js +0 -4
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-DieNCc_-.js +0 -172
- package/dist/Date-2zsvAlTg.js +0 -27
- package/dist/Date-B9tmMFuT.js +0 -36
- package/dist/DateRange-DM7_QCBw.js +0 -60
- package/dist/DateRange-DrYK_l0Y.js +0 -19
- package/dist/DateTime-Ce1NnyqQ.js +0 -37
- package/dist/DateTime-DMECNCs4.js +0 -27
- package/dist/DateTimeRange-Cr_pV6VX.js +0 -61
- package/dist/Daterange-b5lnauDR.js +0 -60
- package/dist/Decimal-C38-N54B.js +0 -36
- package/dist/Decimal-DtTHo5uv.js +0 -27
- package/dist/Delete-CJYIlwyA.js +0 -55
- package/dist/Detail-vOrhBm_q.js +0 -69
- package/dist/Dictionary-B9oe1_S6.js +0 -58
- package/dist/Email-BGc1mV9s.js +0 -47
- package/dist/Email-BKW9GRcH.js +0 -19
- package/dist/File-Bmnp2oNs.js +0 -157
- package/dist/Image-8u9oIiGp.js +0 -9
- package/dist/Index-9AheG9bs.js +0 -4
- package/dist/Index-BNXlbQ4E.js +0 -4
- package/dist/Index-B_P8rY63.js +0 -4
- package/dist/Index-CS11p-lU.js +0 -73
- package/dist/Index-CSqSf17l.js +0 -4
- package/dist/Index-DiMWhBFC.js +0 -4
- package/dist/Index-DtM8VZwV.js +0 -170
- package/dist/Index-ujUgBmOq.js +0 -4
- package/dist/Index.vue_vue_type_script_setup_true_lang-BPj8s6sN.js +0 -68
- package/dist/Index.vue_vue_type_script_setup_true_lang-CKE6hz5m.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-CqDJToNR.js +0 -112
- package/dist/Install-DU27ycRi.js +0 -129
- package/dist/Int-AE2e9jyG.js +0 -37
- package/dist/Int-B-t8edhd.js +0 -19
- package/dist/Int-BuRUWpC5.js +0 -44
- package/dist/List-DmUA_Qjf.js +0 -75
- package/dist/Maintaince-BxK8vEL8.js +0 -15
- package/dist/Markdown-BzMP3m7o.js +0 -37
- package/dist/Markdown-DuJREXXg.js +0 -27
- package/dist/Month-BVKakHhk.js +0 -36
- package/dist/Month-D366v-0Q.js +0 -27
- package/dist/Month-D9r3wt_e.js +0 -37
- package/dist/Normal-CPn8hp3t.js +0 -253
- package/dist/Paging-D1DvQER2.js +0 -93
- 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-B7_jCs5e.js +0 -13
- package/dist/Racebar-ng-7K86M.js +0 -165
- package/dist/Radio-DW7t0gUT.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-oG9MMCqJ.js +0 -201
- package/dist/RichText-Bk0Msyhl.js +0 -22
- package/dist/RichText-Bpw54w7L.js +0 -104
- package/dist/SearchFooter-TOtn9psJ.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-aQwf-Jl6.js +0 -55
- package/dist/SearchForm-tCH9rcrw.js +0 -4
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-U5f9oExf.js +0 -148
- package/dist/Select-CGOTSJVh.js +0 -114
- package/dist/Select-DhpaFdqx.js +0 -27
- package/dist/Select-Dz8akTqG.js +0 -80
- package/dist/Single-BETJuNyR.js +0 -322
- package/dist/Statistic-B_mgjlnr.js +0 -76
- package/dist/Statistic-DzF-1c5_.js +0 -160
- package/dist/Stock-9Ja_G9Dg.js +0 -28
- package/dist/Stock-CfI244Nf.js +0 -4
- package/dist/Stock.vue_vue_type_style_index_0_lang-DbTd0pjx.js +0 -301
- package/dist/Switch-DhFaku5L.js +0 -50
- package/dist/Switch-HAej2klZ.js +0 -27
- package/dist/Table-Bes5hPBu.js +0 -238
- package/dist/Table-Q1QCTkqH.js +0 -317
- package/dist/Text-CLMVbFyi.js +0 -52
- package/dist/Text-DgINICKw.js +0 -4
- package/dist/Text-EQNK15_K.js +0 -51
- package/dist/Text.vue_vue_type_style_index_0_lang-Bw2lRC5n.js +0 -55
- package/dist/TextLink-o-e-724y.js +0 -65
- package/dist/Textarea-2hZMIygc.js +0 -28
- package/dist/Textarea-D9TgF9ig.js +0 -37
- package/dist/Time-CRVru-6c.js +0 -36
- package/dist/Timeline-B2unIcOQ.js +0 -56
- package/dist/Tree-Bt7FIc2Z.js +0 -120
- package/dist/Tree-DO2eaZZT.js +0 -294
- package/dist/TreeNode-k4qKfs3W.js +0 -37
- package/dist/Tree_Old-h__WmqFA.js +0 -11
- package/dist/Update-BH1SivST.js +0 -64
- package/dist/UpdateChild-CA0P17tZ.js +0 -85
- package/dist/Upload-Bhp3QMff.js +0 -70
- package/dist/Upload-Cw7Ln3cd.js +0 -146
- package/dist/UploadApi-DdQy8bcl.js +0 -17
- package/dist/Year-DBuvSBYN.js +0 -40
- package/dist/Year-Q2Y-HAuh.js +0 -27
- package/dist/main-iF34LtMW.js +0 -6023
- package/dist/main.js +0 -91
- 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 -13
- package/esm/drivers/cdns/CdnFactory.d.ts +0 -11
- package/esm/drivers/cdns/ICdn.d.ts +0 -30
- package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -8
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -11
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +0 -8
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -8
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -8
- package/esm/drivers/driver-helper.d.ts +0 -36
- 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/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 -8
- package/esm/drivers/requesters/RequesterFactory.d.ts +0 -11
- 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/signers/ISigner.d.ts +0 -33
- package/esm/drivers/signers/SignerFactory.d.ts +0 -11
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +0 -16
- 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/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 -25
- package/esm/sdks/helpers/json-helper.d.ts +0 -27
- 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/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,30 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 事件帮助类
|
3
|
-
*/
|
4
|
-
declare class EventHelper {
|
5
|
-
/**
|
6
|
-
* 批量绑定事件,执行指定处理函数
|
7
|
-
*/
|
8
|
-
static bind: (events: any[], dom: any, func: Function) => void;
|
9
|
-
/**
|
10
|
-
* 批量绑定事件,执行指定处理函数
|
11
|
-
*/
|
12
|
-
static unbind: (events: any[], dom: any, func: Function) => void;
|
13
|
-
/**
|
14
|
-
* 绑定点击处理函数
|
15
|
-
*/
|
16
|
-
static click: (dom: any, func: Function) => void;
|
17
|
-
/**
|
18
|
-
* 解除点击监听
|
19
|
-
*/
|
20
|
-
static unclick: (dom: any, func: Function) => void;
|
21
|
-
/**
|
22
|
-
* 绑定滚动处理函数
|
23
|
-
*/
|
24
|
-
static scroll: (dom: any, func: Function) => void;
|
25
|
-
/**
|
26
|
-
* 移除滚动处理函数,防止内存泄漏
|
27
|
-
*/
|
28
|
-
static unscroll: (dom: any, func: Function) => void;
|
29
|
-
}
|
30
|
-
export default EventHelper;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 文件帮助类
|
3
|
-
*/
|
4
|
-
declare class FileHelper {
|
5
|
-
/**
|
6
|
-
* 保存文件
|
7
|
-
*/
|
8
|
-
static save: (base64: string, fileName: string) => void;
|
9
|
-
/**
|
10
|
-
* 获取文件扩展名
|
11
|
-
*/
|
12
|
-
static getExtension: (name: string) => string;
|
13
|
-
/**
|
14
|
-
* 判断当前文件名是否是excel文件
|
15
|
-
*/
|
16
|
-
static isExcel: (name: string) => boolean;
|
17
|
-
/**
|
18
|
-
* 判断当前文件是否是图片文件
|
19
|
-
*/
|
20
|
-
static isImage: (url: string) => boolean;
|
21
|
-
}
|
22
|
-
export default FileHelper;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import ComponentHelper from './component-helper';
|
2
|
-
import ArrayHelper from "./array-helper";
|
3
|
-
import CookieHelper from "./cookie-helper";
|
4
|
-
import DomHelper from "./dom-helper";
|
5
|
-
import EncryptHelper from "./encrypt-helper";
|
6
|
-
import EventHelper from "./event-helper";
|
7
|
-
import FileHelper from "./file-helper";
|
8
|
-
import HtmlHelper from "./html-helper";
|
9
|
-
import ImageHelper from "./image-helper";
|
10
|
-
import MathHelper from "./math-helper";
|
11
|
-
import MicroHelper from "./micro-helper";
|
12
|
-
import MountHelper from "./mount-helper";
|
13
|
-
import ObjectHelper from "./object-helper";
|
14
|
-
import StringHelper from "./string-helper";
|
15
|
-
import ScriptHelper from "./script-helper";
|
16
|
-
import TaskHelper from "./task-helper";
|
17
|
-
import TypeHelper from "./type-helper";
|
18
|
-
import TimeHelper from "./time-helper";
|
19
|
-
import TreeHelper from "./tree-helper";
|
20
|
-
import StorageHelper from "./storage-helper";
|
21
|
-
import ScrollHelper from "./scroll-helper";
|
22
|
-
import JsonHelper from "./json-helper";
|
23
|
-
import I18nHelper from "./i18n-helper";
|
24
|
-
import UrlHelper from "./url-helper";
|
25
|
-
export { ComponentHelper, ArrayHelper, CookieHelper, DomHelper, EventHelper, FileHelper, HtmlHelper, ImageHelper, MathHelper, MountHelper, ObjectHelper, MicroHelper, StringHelper, ScriptHelper, TaskHelper, TypeHelper, TimeHelper, TreeHelper, EncryptHelper, StorageHelper, ScrollHelper, JsonHelper, I18nHelper, UrlHelper, };
|
@@ -1,27 +0,0 @@
|
|
1
|
-
declare type Prop = {
|
2
|
-
key: string;
|
3
|
-
type: string;
|
4
|
-
remark: string;
|
5
|
-
};
|
6
|
-
/**
|
7
|
-
* JSON帮助类
|
8
|
-
*/
|
9
|
-
declare class JsonHelper {
|
10
|
-
/**
|
11
|
-
* 从树集合构建出Json对象
|
12
|
-
*/
|
13
|
-
static buildObject(tree: any[], childProp: string, fun: (node: any) => Prop): string;
|
14
|
-
/**
|
15
|
-
* 把字符串格式化为Json字符串
|
16
|
-
*/
|
17
|
-
static stringify(value: string): string;
|
18
|
-
/**
|
19
|
-
* 把字符串格式化为Json字符串
|
20
|
-
*/
|
21
|
-
static stringifyString(value: string): string;
|
22
|
-
/**
|
23
|
-
* 根据props中的.自动分割得到属性值
|
24
|
-
*/
|
25
|
-
static getValue(value: string, props: string): string;
|
26
|
-
}
|
27
|
-
export default JsonHelper;
|
@@ -1,42 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 数学帮助类
|
3
|
-
*/
|
4
|
-
declare class MathHelper {
|
5
|
-
/**
|
6
|
-
* 过滤某一页数据
|
7
|
-
*/
|
8
|
-
static filterPage: (rows: any[], page: number, size: number) => any[];
|
9
|
-
/**
|
10
|
-
* 总页数
|
11
|
-
*/
|
12
|
-
static pageCount: (count: number, size: number) => number;
|
13
|
-
/**
|
14
|
-
* 四舍五入
|
15
|
-
*/
|
16
|
-
static round: (value: number, digits: number) => string;
|
17
|
-
/**
|
18
|
-
* 天花板函数
|
19
|
-
*/
|
20
|
-
static ceil: (value: number) => number;
|
21
|
-
/**
|
22
|
-
* 获取百分比
|
23
|
-
*/
|
24
|
-
static getPercentage: (current: number, total: number) => number;
|
25
|
-
/**
|
26
|
-
* 获取百分比,保留2位小数
|
27
|
-
*/
|
28
|
-
static getPercentageText: (current: number, total: number) => string;
|
29
|
-
/**
|
30
|
-
* 获取进度文本
|
31
|
-
*/
|
32
|
-
static getProgressText: (current: number, total: number) => string;
|
33
|
-
/**
|
34
|
-
* 获取大小
|
35
|
-
*/
|
36
|
-
static size: (bytes: number) => string;
|
37
|
-
/**
|
38
|
-
* 生成指定范围内的随机数
|
39
|
-
*/
|
40
|
-
static random(start: number, end: number): number;
|
41
|
-
}
|
42
|
-
export default MathHelper;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 对象帮助类
|
3
|
-
*/
|
4
|
-
declare class ObjectHelper {
|
5
|
-
/**
|
6
|
-
* 净化对象,返回不带默认属性的对象
|
7
|
-
*/
|
8
|
-
static pure(input: object): {};
|
9
|
-
/**
|
10
|
-
* 过滤key,并输出新对象
|
11
|
-
*/
|
12
|
-
static filter(input: object, filter: (n: any) => boolean, valueHandler: (n: any) => {}): any[];
|
13
|
-
/**
|
14
|
-
* 把数组转换成对象
|
15
|
-
*/
|
16
|
-
static toObject(array: any[], keySelector: (n: any) => string, valueSelector: (n: any) => string): {};
|
17
|
-
/**
|
18
|
-
* 手动复制,并对字段执行指定自定义处理
|
19
|
-
*/
|
20
|
-
static copy: (obj: any, handler?: {}) => any[] | any;
|
21
|
-
/**
|
22
|
-
* 对对象进行深度克隆,同时可以移除Proxy对象
|
23
|
-
*/
|
24
|
-
static clone: (obj: any, handler?: (n: any) => void) => any;
|
25
|
-
/**
|
26
|
-
* 合并对象
|
27
|
-
*/
|
28
|
-
static merge: (target: any, source: any) => any;
|
29
|
-
/**
|
30
|
-
* 给对象添加属性集合,并赋值
|
31
|
-
*/
|
32
|
-
static addProperties: (obj: object, keys: string[], value: string) => void;
|
33
|
-
}
|
34
|
-
export default ObjectHelper;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 脚本帮助类
|
3
|
-
*/
|
4
|
-
declare class ScriptHelper {
|
5
|
-
/**
|
6
|
-
* 异步加载脚本/样式内容,把内容处理为行内html
|
7
|
-
* 这种方式,依赖的内部资源,会从当前站点加载
|
8
|
-
*/
|
9
|
-
static loadContentAsync: (src: string | string[]) => Promise<void[]>;
|
10
|
-
/**
|
11
|
-
* 异步加载单个路径下的多个文件
|
12
|
-
*/
|
13
|
-
static loadPathAsync: (path: string, files: string[]) => Promise<void>;
|
14
|
-
/**
|
15
|
-
* 通过注入DOM标签异步加载脚本或样式表
|
16
|
-
*/
|
17
|
-
static loadAsync: (src: string | string[]) => Promise<void>;
|
18
|
-
/**
|
19
|
-
* 注意:箭头函数没有参数
|
20
|
-
*/
|
21
|
-
static loadAll: (...args: any[]) => Promise<any[]>;
|
22
|
-
/**
|
23
|
-
* 根据路径获取标签(无src)
|
24
|
-
*/
|
25
|
-
static getInnerTagByUrl: (url: string) => HTMLStyleElement | HTMLScriptElement;
|
26
|
-
/**
|
27
|
-
* 根据路径获取待加载的元素,同时包含Url
|
28
|
-
*/
|
29
|
-
static getOuterTagByUrl: (url: string) => HTMLLinkElement | HTMLScriptElement;
|
30
|
-
}
|
31
|
-
export default ScriptHelper;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 滚动帮助类
|
3
|
-
*/
|
4
|
-
declare class ScrollHelper {
|
5
|
-
/**
|
6
|
-
* 判断指定元素滚动条位置,是否到了页面底部
|
7
|
-
*/
|
8
|
-
static isBottom: (selector: any) => boolean;
|
9
|
-
/**
|
10
|
-
* 滚动指定元素的滚动条到页面底部
|
11
|
-
*/
|
12
|
-
static scrollToBottom: (selector: any) => void;
|
13
|
-
}
|
14
|
-
export default ScrollHelper;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 存储帮助类
|
3
|
-
*/
|
4
|
-
declare class StorageHelper {
|
5
|
-
/**
|
6
|
-
* 获取本地存储
|
7
|
-
*/
|
8
|
-
static get: (key: string, value?: any) => any;
|
9
|
-
/**
|
10
|
-
* 设置本地存储
|
11
|
-
*/
|
12
|
-
static set: (key: string, value: string) => void;
|
13
|
-
/**
|
14
|
-
* 获取本地存储
|
15
|
-
*/
|
16
|
-
static getObject: (key: string) => any;
|
17
|
-
/**
|
18
|
-
* 设置本地存储
|
19
|
-
*/
|
20
|
-
static setObject: (key: string, value: any) => void;
|
21
|
-
/**
|
22
|
-
* 移除存储数据
|
23
|
-
*/
|
24
|
-
static remove: (key: string) => void;
|
25
|
-
/**
|
26
|
-
* 以5M为基准,获取剩余可用容量(KB)
|
27
|
-
*/
|
28
|
-
static getLeftStorage: () => number;
|
29
|
-
/**
|
30
|
-
* 判断指定值是否能够存储到storage中
|
31
|
-
*/
|
32
|
-
static canStorage: (value: object) => boolean;
|
33
|
-
}
|
34
|
-
export default StorageHelper;
|
@@ -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) => 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: (str?: any) => number;
|
9
|
-
/**
|
10
|
-
* 根据字符串获取可对比的时间
|
11
|
-
*/
|
12
|
-
static getTime: (str?: 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;
|