@obr-fe/utils 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.d.mts +98 -3
- package/dist/{array-CiSUhZCW.d.mts → array.d.ts} +8 -9
- package/dist/array.js +1 -0
- package/dist/array.mjs +1 -1
- package/dist/base.d.mts +192 -3
- package/dist/{base-BXKvmcaf.d.cts → base.d.ts} +4 -5
- package/dist/base.js +1 -0
- package/dist/base.mjs +1 -1
- package/dist/chunk-3EVCK72A.mjs +1 -0
- package/dist/chunk-44EYU7QJ.mjs +1 -0
- package/dist/chunk-4JPCGRPU.mjs +1 -0
- package/dist/chunk-6DX7ZFGR.mjs +1 -0
- package/dist/chunk-7FGMUEZA.mjs +1 -0
- package/dist/chunk-7YMDSJIW.mjs +1 -0
- package/dist/chunk-A25LR755.mjs +1 -0
- package/dist/chunk-A5BXGBYT.mjs +1 -0
- package/dist/chunk-AMTPTGPU.mjs +1 -0
- package/dist/chunk-BEM6E7R7.mjs +1 -0
- package/dist/chunk-BPXO4V4X.mjs +1 -0
- package/dist/chunk-CTKIL4BL.mjs +1 -0
- package/dist/chunk-DDHFJKTT.mjs +1 -0
- package/dist/chunk-DKKF6DRJ.mjs +1 -0
- package/dist/chunk-DVMX6FDA.mjs +1 -0
- package/dist/chunk-E4SEMOGO.mjs +1 -0
- package/dist/chunk-EUDEMS67.mjs +1 -0
- package/dist/chunk-G6NAYP42.mjs +1 -0
- package/dist/chunk-GS4ARDQV.mjs +1 -0
- package/dist/chunk-HOXWKSQ2.mjs +1 -0
- package/dist/chunk-HZMHGGXU.mjs +1 -0
- package/dist/chunk-INFFTHYR.mjs +1 -0
- package/dist/chunk-IZHCWZIN.mjs +1 -0
- package/dist/chunk-KGXCJWE5.mjs +1 -0
- package/dist/chunk-LPLK3ZT5.mjs +1 -0
- package/dist/chunk-MQBXN7R5.mjs +1 -0
- package/dist/chunk-MUHFPVB3.mjs +1 -0
- package/dist/chunk-MUUIQW2M.mjs +1 -0
- package/dist/chunk-NX2HGAYK.mjs +1 -0
- package/dist/chunk-PE3DNHCL.mjs +1 -0
- package/dist/chunk-PK5CYIDE.mjs +1 -0
- package/dist/chunk-SAXMBV46.mjs +1 -0
- package/dist/chunk-TQ5GXPYB.mjs +1 -0
- package/dist/chunk-UVMLBW6A.mjs +1 -0
- package/dist/chunk-VYAKT4FB.mjs +1 -0
- package/dist/chunk-WN7L4HYY.mjs +1 -0
- package/dist/chunk-X7TUTCBW.mjs +1 -0
- package/dist/chunk-YA66RVVU.mjs +1 -0
- package/dist/clipboard.d.mts +3 -2
- package/dist/clipboard.d.ts +3 -0
- package/dist/clipboard.js +1 -0
- package/dist/clipboard.mjs +1 -1
- package/dist/dayjs.d.mts +29 -2
- package/dist/{dayjs-DgS65bx1.d.cts → dayjs.d.ts} +5 -6
- package/dist/dayjs.js +1 -0
- package/dist/dayjs.mjs +1 -1
- package/dist/dom/base.d.mts +24 -2
- package/dist/{base-Ca2FN16G.d.mts → dom/base.d.ts} +2 -3
- package/dist/dom/base.js +1 -0
- package/dist/dom/base.mjs +1 -1
- package/dist/dom/class.d.mts +26 -2
- package/dist/{class-Bp70Yi1y.d.cts → dom/class.d.ts} +2 -3
- package/dist/dom/class.js +1 -0
- package/dist/dom/class.mjs +1 -1
- package/dist/dom/contains.d.mts +10 -2
- package/dist/{contains-Bj-oQ7KI.d.mts → dom/contains.d.ts} +2 -3
- package/dist/dom/contains.js +1 -0
- package/dist/dom/contains.mjs +1 -1
- package/dist/dom/css.d.mts +22 -2
- package/dist/{css-5xR1zP0f.d.cts → dom/css.d.ts} +10 -11
- package/dist/dom/css.js +1 -0
- package/dist/dom/css.mjs +1 -1
- package/dist/dom/dynamic-css.d.mts +20 -2
- package/dist/{dynamic-css-CIw8ZtwR.d.cts → dom/dynamic-css.d.ts} +8 -9
- package/dist/dom/dynamic-css.js +1 -0
- package/dist/dom/dynamic-css.mjs +1 -1
- package/dist/dom/find-dom-node.d.mts +3 -2
- package/dist/dom/find-dom-node.d.ts +3 -0
- package/dist/dom/find-dom-node.js +1 -0
- package/dist/dom/find-dom-node.mjs +1 -1
- package/dist/dom/focus.d.mts +10 -2
- package/dist/{focus-BBcVAsFx.d.cts → dom/focus.d.ts} +2 -3
- package/dist/dom/focus.js +1 -0
- package/dist/dom/focus.mjs +1 -1
- package/dist/dom/iframe.d.mts +57 -2
- package/dist/{iframe-CBeiHcmx.d.mts → dom/iframe.d.ts} +15 -16
- package/dist/dom/iframe.js +1 -0
- package/dist/dom/iframe.mjs +1 -1
- package/dist/dom/index.d.mts +17 -18
- package/dist/dom/index.d.ts +17 -0
- package/dist/dom/index.js +1 -0
- package/dist/dom/index.mjs +1 -1
- package/dist/dom/is-visible.d.mts +3 -2
- package/dist/dom/is-visible.d.ts +3 -0
- package/dist/dom/is-visible.js +1 -0
- package/dist/dom/is-visible.mjs +1 -1
- package/dist/dom/lib/can-use-dom.d.mts +2 -3
- package/dist/dom/lib/can-use-dom.d.ts +3 -0
- package/dist/dom/lib/can-use-dom.js +1 -0
- package/dist/dom/lib/can-use-dom.mjs +1 -1
- package/dist/dom/scrollbar.d.mts +8 -2
- package/dist/{scrollbar-B0PNF6i2.d.mts → dom/scrollbar.d.ts} +2 -3
- package/dist/dom/scrollbar.js +1 -0
- package/dist/dom/scrollbar.mjs +1 -1
- package/dist/dom/storage.d.mts +20 -3
- package/dist/{storage-DicI9wsP.d.cts → dom/storage.d.ts} +4 -5
- package/dist/dom/storage.js +1 -0
- package/dist/dom/storage.mjs +1 -1
- package/dist/dom/style-checker.d.mts +4 -2
- package/dist/{style-checker-CpyAZJew.d.cts → dom/style-checker.d.ts} +2 -3
- package/dist/dom/style-checker.js +1 -0
- package/dist/dom/style-checker.mjs +1 -1
- package/dist/dom/style-names.d.mts +3 -2
- package/dist/{style-names-ClFu2pk1.d.cts → dom/style-names.d.ts} +2 -3
- package/dist/dom/style-names.js +1 -0
- package/dist/dom/style-names.mjs +1 -1
- package/dist/dom/support.d.mts +8 -2
- package/dist/dom/support.d.ts +8 -0
- package/dist/dom/support.js +1 -0
- package/dist/dom/support.mjs +1 -1
- package/dist/dom/video.d.mts +9 -2
- package/dist/{video-Bp6NaeX6.d.cts → dom/video.d.ts} +2 -3
- package/dist/dom/video.js +1 -0
- package/dist/dom/video.mjs +1 -1
- package/dist/encrypt.d.mts +28 -2
- package/dist/{encrypt-BFDBlSX_.d.cts → encrypt.d.ts} +2 -3
- package/dist/encrypt.js +1 -0
- package/dist/encrypt.mjs +1 -1
- package/dist/file.d.mts +35 -2
- package/dist/{file-CjjpuB5u.d.cts → file.d.ts} +5 -6
- package/dist/file.js +1 -0
- package/dist/file.mjs +1 -1
- package/dist/index.d.mts +44 -44
- package/dist/index.d.ts +44 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -1
- package/dist/lodash.d.mts +9 -2
- package/dist/lodash.d.ts +9 -0
- package/dist/lodash.js +1 -0
- package/dist/lodash.mjs +1 -1
- package/dist/object.d.mts +86 -3
- package/dist/{object-CqyPehTh.d.cts → object.d.ts} +4 -5
- package/dist/object.js +1 -0
- package/dist/object.mjs +1 -1
- package/dist/other.d.mts +49 -3
- package/dist/{other-BzR4DqG0.d.cts → other.d.ts} +4 -5
- package/dist/other.js +1 -0
- package/dist/other.mjs +1 -1
- package/dist/parse.d.mts +21 -3
- package/dist/{parse-DQMRWCdz.d.mts → parse.d.ts} +7 -8
- package/dist/parse.js +1 -0
- package/dist/parse.mjs +1 -1
- package/dist/pinyin.d.mts +18 -2
- package/dist/{pinyin-C2BqrFMq.d.mts → pinyin.d.ts} +3 -5
- package/dist/pinyin.js +1 -0
- package/dist/pinyin.mjs +1 -1
- package/dist/request/constant.d.mts +4 -4
- package/dist/request/{constant.d.cts → constant.d.ts} +4 -4
- package/dist/request/constant.js +1 -0
- package/dist/request/constant.mjs +1 -1
- package/dist/request/handler.d.mts +10 -3
- package/dist/request/handler.d.ts +10 -0
- package/dist/request/handler.js +1 -0
- package/dist/request/handler.mjs +1 -1
- package/dist/request/index.d.mts +4 -6
- package/dist/request/index.d.ts +4 -0
- package/dist/request/index.js +1 -0
- package/dist/request/index.mjs +1 -1
- package/dist/request/request.d.mts +99 -3
- package/dist/request/request.d.ts +99 -0
- package/dist/request/request.js +1 -0
- package/dist/request/request.mjs +1 -1
- package/dist/request/utils/cancel.d.mts +4 -4
- package/dist/request/utils/{cancel.d.cts → cancel.d.ts} +4 -4
- package/dist/request/utils/cancel.js +1 -0
- package/dist/request/utils/cancel.mjs +1 -1
- package/dist/request/utils/file.d.mts +4 -4
- package/dist/request/utils/file.d.ts +6 -0
- package/dist/request/utils/file.js +1 -0
- package/dist/request/utils/file.mjs +1 -1
- package/dist/request/utils/format.d.mts +4 -4
- package/dist/request/utils/{format.d.cts → format.d.ts} +4 -4
- package/dist/request/utils/format.js +1 -0
- package/dist/request/utils/format.mjs +1 -1
- package/dist/request/utils/params.d.mts +4 -4
- package/dist/request/utils/params.d.ts +6 -0
- package/dist/request/utils/params.js +1 -0
- package/dist/request/utils/params.mjs +1 -1
- package/dist/safe-next-tick.d.mts +9 -2
- package/dist/{safe-next-tick-DlJsO1Ha.d.mts → safe-next-tick.d.ts} +4 -5
- package/dist/safe-next-tick.js +1 -0
- package/dist/safe-next-tick.mjs +1 -1
- package/dist/types.d.mts +207 -2
- package/dist/types.d.ts +207 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -1
- package/dist/vue/hooks/clipboard.d.mts +8 -2
- package/dist/vue/hooks/clipboard.d.ts +8 -0
- package/dist/vue/hooks/clipboard.js +1 -0
- package/dist/vue/hooks/clipboard.mjs +1 -1
- package/dist/vue/index.d.mts +3 -4
- package/dist/vue/index.d.ts +3 -0
- package/dist/vue/index.js +1 -0
- package/dist/vue/index.mjs +1 -1
- package/dist/vue/type-util.d.mts +47 -2
- package/dist/{type-util-BdSpgYN3.d.mts → vue/type-util.d.ts} +21 -22
- package/dist/vue/type-util.js +1 -0
- package/dist/vue/type-util.mjs +1 -1
- package/package.json +4 -4
- package/dist/array-CEhD-Z_e.mjs +0 -1
- package/dist/array-okkZATKz.d.cts +0 -99
- package/dist/array-ri-t3Wsz.cjs +0 -1
- package/dist/array.cjs +0 -1
- package/dist/array.d.cts +0 -3
- package/dist/base-854WVUaj.mjs +0 -1
- package/dist/base-BSg8gJZf.mjs +0 -1
- package/dist/base-DSfexc9G.d.cts +0 -25
- package/dist/base-DUxrUTOr.cjs +0 -1
- package/dist/base-Dl59EolR.d.mts +0 -193
- package/dist/base-DmSU_ydZ.cjs +0 -1
- package/dist/base.cjs +0 -1
- package/dist/base.d.cts +0 -3
- package/dist/can-use-dom-DiyvIP5G.mjs +0 -1
- package/dist/can-use-dom-DvmMdeGa.cjs +0 -1
- package/dist/cancel-BV5B58Lw.mjs +0 -1
- package/dist/cancel-Do0w5I5K.cjs +0 -1
- package/dist/chunk-BcXMmzxH.cjs +0 -1
- package/dist/chunk-Dbq9I6zD.mjs +0 -1
- package/dist/class-C29-Mh-o.mjs +0 -1
- package/dist/class-D5duI9ps.d.mts +0 -27
- package/dist/class-D8a8qnWA.cjs +0 -1
- package/dist/clipboard-BN1iiQLu.d.mts +0 -4
- package/dist/clipboard-C8ZiJE_h.d.cts +0 -9
- package/dist/clipboard-CJ-9sRbH.d.mts +0 -9
- package/dist/clipboard-CWQVWiTk.cjs +0 -1
- package/dist/clipboard-Ci0l5Dtt.d.cts +0 -4
- package/dist/clipboard-CjgXtqbg.mjs +0 -1
- package/dist/clipboard-DqGhq6A4.mjs +0 -1
- package/dist/clipboard-ZMrs6wzK.cjs +0 -1
- package/dist/clipboard.cjs +0 -1
- package/dist/clipboard.d.cts +0 -2
- package/dist/constant-CskvZDUK.cjs +0 -1
- package/dist/constant-Dxt8HuVn.mjs +0 -1
- package/dist/contains-BpG9RIaT.mjs +0 -1
- package/dist/contains-CYQgjY4K.cjs +0 -1
- package/dist/contains-D3q8gHUu.d.cts +0 -11
- package/dist/css-DIpTZrC7.mjs +0 -1
- package/dist/css-DkmknM-7.d.mts +0 -23
- package/dist/css-WYllKaVv.cjs +0 -1
- package/dist/dayjs-00xX6Mts.d.mts +0 -31
- package/dist/dayjs-BBOQ72ow.mjs +0 -1
- package/dist/dayjs-Bvzj_rlD.cjs +0 -1
- package/dist/dayjs.cjs +0 -1
- package/dist/dayjs.d.cts +0 -2
- package/dist/dom/base.cjs +0 -1
- package/dist/dom/base.d.cts +0 -2
- package/dist/dom/class.cjs +0 -1
- package/dist/dom/class.d.cts +0 -2
- package/dist/dom/contains.cjs +0 -1
- package/dist/dom/contains.d.cts +0 -2
- package/dist/dom/css.cjs +0 -1
- package/dist/dom/css.d.cts +0 -2
- package/dist/dom/dynamic-css.cjs +0 -1
- package/dist/dom/dynamic-css.d.cts +0 -2
- package/dist/dom/find-dom-node.cjs +0 -1
- package/dist/dom/find-dom-node.d.cts +0 -2
- package/dist/dom/focus.cjs +0 -1
- package/dist/dom/focus.d.cts +0 -2
- package/dist/dom/iframe.cjs +0 -1
- package/dist/dom/iframe.d.cts +0 -2
- package/dist/dom/index.cjs +0 -1
- package/dist/dom/index.d.cts +0 -18
- package/dist/dom/is-visible.cjs +0 -1
- package/dist/dom/is-visible.d.cts +0 -2
- package/dist/dom/lib/can-use-dom.cjs +0 -1
- package/dist/dom/lib/can-use-dom.d.cts +0 -3
- package/dist/dom/scrollbar.cjs +0 -1
- package/dist/dom/scrollbar.d.cts +0 -2
- package/dist/dom/storage.cjs +0 -1
- package/dist/dom/storage.d.cts +0 -3
- package/dist/dom/style-checker.cjs +0 -1
- package/dist/dom/style-checker.d.cts +0 -2
- package/dist/dom/style-names.cjs +0 -1
- package/dist/dom/style-names.d.cts +0 -2
- package/dist/dom/support.cjs +0 -1
- package/dist/dom/support.d.cts +0 -2
- package/dist/dom/video.cjs +0 -1
- package/dist/dom/video.d.cts +0 -2
- package/dist/dom-D2QfuVth.mjs +0 -1
- package/dist/dynamic-css-CD9eHWzL.d.mts +0 -21
- package/dist/dynamic-css-CP1iFszw.mjs +0 -1
- package/dist/dynamic-css-iSnm5CN6.cjs +0 -1
- package/dist/encrypt-CHxdyuoC.d.mts +0 -29
- package/dist/encrypt-D6oTfiTY.cjs +0 -1
- package/dist/encrypt-Z5CU2r_1.mjs +0 -1
- package/dist/encrypt.cjs +0 -1
- package/dist/encrypt.d.cts +0 -2
- package/dist/file-B9oorXhT.cjs +0 -1
- package/dist/file-D4oBhObv.d.mts +0 -36
- package/dist/file-Dwobl-pF.mjs +0 -1
- package/dist/file-TjtumYrh.mjs +0 -1
- package/dist/file-rmcv99h0.cjs +0 -1
- package/dist/file.cjs +0 -1
- package/dist/file.d.cts +0 -2
- package/dist/find-dom-node-BYO9We8P.d.mts +0 -4
- package/dist/find-dom-node-BkrYW2pm.d.cts +0 -4
- package/dist/find-dom-node-gbroqN2N.mjs +0 -1
- package/dist/find-dom-node-lY7vePVL.cjs +0 -1
- package/dist/focus-ByNB07tt.d.mts +0 -11
- package/dist/focus-DtSCSQEr.cjs +0 -1
- package/dist/focus-REYXIBdQ.mjs +0 -1
- package/dist/format-3CsgkBWg.mjs +0 -1
- package/dist/format-CezZBld9.cjs +0 -1
- package/dist/handler-C40H2JG4.cjs +0 -1
- package/dist/handler-Dk1QWSgF.d.cts +0 -10
- package/dist/handler-N6Akxkpa.mjs +0 -1
- package/dist/handler-bsPUG7U9.d.mts +0 -10
- package/dist/iframe-ByOdqFYr.mjs +0 -1
- package/dist/iframe-CR0bl22C.cjs +0 -1
- package/dist/iframe-QhpkIola.d.cts +0 -58
- package/dist/index-6bSwZ6-V.d.cts +0 -1
- package/dist/index-BYjO2-Dk.d.mts +0 -3
- package/dist/index-CLTQPxoD.d.mts +0 -1
- package/dist/index-CqciuydZ.d.cts +0 -7
- package/dist/index-Ctvuv0vV.d.cts +0 -1
- package/dist/index-D-9tW2r5.d.mts +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -43
- package/dist/is-visible-BXbqt6I2.mjs +0 -1
- package/dist/is-visible-BpFCb4uJ.d.mts +0 -4
- package/dist/is-visible-DT2jLmnp.d.cts +0 -4
- package/dist/is-visible-laJngqtK.cjs +0 -1
- package/dist/lodash-BrrZKPAY.d.cts +0 -10
- package/dist/lodash-DAdPs0O9.d.mts +0 -10
- package/dist/lodash-iHVEJs1z.mjs +0 -1
- package/dist/lodash-kixEH9o9.cjs +0 -1
- package/dist/lodash.cjs +0 -1
- package/dist/lodash.d.cts +0 -2
- package/dist/object-C6qVmoZY.cjs +0 -1
- package/dist/object-j-lK643f.mjs +0 -1
- package/dist/object-l_DvbWqN.d.mts +0 -87
- package/dist/object.cjs +0 -1
- package/dist/object.d.cts +0 -3
- package/dist/other-B2ug3Xof.mjs +0 -1
- package/dist/other-H13CGzY5.d.mts +0 -50
- package/dist/other-c9ZDQ-tY.cjs +0 -1
- package/dist/other.cjs +0 -1
- package/dist/other.d.cts +0 -3
- package/dist/params-CnZhAsve.cjs +0 -1
- package/dist/params-CpjttIDa.mjs +0 -1
- package/dist/parse-BpErok05.cjs +0 -1
- package/dist/parse-C1eaIjot.mjs +0 -1
- package/dist/parse-vp0jh8-x.d.cts +0 -22
- package/dist/parse.cjs +0 -1
- package/dist/parse.d.cts +0 -3
- package/dist/pinyin-BE6Ew65z.cjs +0 -1
- package/dist/pinyin-D11MW4u2.mjs +0 -1
- package/dist/pinyin-Di92101W.d.cts +0 -20
- package/dist/pinyin.cjs +0 -1
- package/dist/pinyin.d.cts +0 -2
- package/dist/request/constant.cjs +0 -1
- package/dist/request/handler.cjs +0 -1
- package/dist/request/handler.d.cts +0 -3
- package/dist/request/index.cjs +0 -1
- package/dist/request/index.d.cts +0 -6
- package/dist/request/request.cjs +0 -1
- package/dist/request/request.d.cts +0 -3
- package/dist/request/utils/cancel.cjs +0 -1
- package/dist/request/utils/file.cjs +0 -1
- package/dist/request/utils/file.d.cts +0 -6
- package/dist/request/utils/format.cjs +0 -1
- package/dist/request/utils/params.cjs +0 -1
- package/dist/request/utils/params.d.cts +0 -6
- package/dist/request-BG5UIh9R.mjs +0 -1
- package/dist/request-C8gChBjl.d.cts +0 -99
- package/dist/request-Cbv8Ih3e.cjs +0 -1
- package/dist/request-CcQHJNao.cjs +0 -1
- package/dist/request-CmsAe99W.mjs +0 -1
- package/dist/request-DGUcKxsQ.d.mts +0 -99
- package/dist/safe-next-tick-1ezZPIPs.d.cts +0 -10
- package/dist/safe-next-tick-Cc30ZlUX.mjs +0 -1
- package/dist/safe-next-tick-DphyaFY6.cjs +0 -1
- package/dist/safe-next-tick.cjs +0 -1
- package/dist/safe-next-tick.d.cts +0 -2
- package/dist/scrollbar-07jqhpVk.d.cts +0 -9
- package/dist/scrollbar-2zQwgB3N.cjs +0 -1
- package/dist/scrollbar-BsVSwcz1.mjs +0 -1
- package/dist/storage-CVE8yo6N.mjs +0 -1
- package/dist/storage-ClTxbIcP.cjs +0 -1
- package/dist/storage-HTBNfA8Q.d.mts +0 -21
- package/dist/style-checker-066o7h7_.mjs +0 -1
- package/dist/style-checker-B5wzcdHi.d.mts +0 -5
- package/dist/style-checker-DAxS0NyJ.cjs +0 -1
- package/dist/style-names-CYvxRARD.cjs +0 -1
- package/dist/style-names-DDdz6-7S.d.mts +0 -4
- package/dist/style-names-cEIIM3cL.mjs +0 -1
- package/dist/support-BKRoxgNc.d.mts +0 -9
- package/dist/support-BZYJpIOE.cjs +0 -1
- package/dist/support-jAYY4GwL.d.cts +0 -9
- package/dist/support-wu9hh5gZ.mjs +0 -1
- package/dist/type-util-BRGMhQFp.d.cts +0 -48
- package/dist/type-util-HyvLYA2w.cjs +0 -1
- package/dist/type-util-Qle7ht7X.mjs +0 -1
- package/dist/types-BEdiy6mb.d.mts +0 -208
- package/dist/types-Bs46AtMe.mjs +0 -1
- package/dist/types-DTtPjrm8.d.cts +0 -208
- package/dist/types.cjs +0 -1
- package/dist/types.d.cts +0 -2
- package/dist/video-BDLauzJm.cjs +0 -1
- package/dist/video-C_sYI0Ht.d.mts +0 -10
- package/dist/video-CtkByFxt.mjs +0 -1
- package/dist/vue/hooks/clipboard.cjs +0 -1
- package/dist/vue/hooks/clipboard.d.cts +0 -2
- package/dist/vue/index.cjs +0 -1
- package/dist/vue/index.d.cts +0 -4
- package/dist/vue/type-util.cjs +0 -1
- package/dist/vue/type-util.d.cts +0 -2
- package/dist/vue-Q8n_JN-R.mjs +0 -1
- /package/dist/{dom-DzrnEGri.cjs → chunk-G27KRYT2.mjs} +0 -0
- /package/dist/{types-DAFnYo8a.cjs → chunk-PM3H3ISM.mjs} +0 -0
- /package/dist/{vue-CGBzFhF4.cjs → chunk-WBQAMGXK.mjs} +0 -0
package/dist/lodash-kixEH9o9.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`);let t=require(`lodash.clonedeep`);t=e.r(t);let n=require(`lodash.debounce`);n=e.r(n);let r=require(`lodash.merge`);r=e.r(r);let i=require(`lodash.clone`);i=e.r(i);let a=require(`lodash.get`);a=e.r(a);let o=require(`lodash.set`);o=e.r(o);let s=require(`lodash.has`);s=e.r(s);let c=require(`lodash.kebabcase`);c=e.r(c);let l=require(`lodash.camelcase`);l=e.r(l);
|
package/dist/lodash.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`);require(`./lodash-kixEH9o9.cjs`);let t=require(`lodash.has`),n=require(`lodash.debounce`),r=require(`lodash.clonedeep`),i=require(`lodash.clone`),a=require(`lodash.set`),o=require(`lodash.kebabcase`),s=require(`lodash.camelcase`),c=require(`lodash.get`),l=require(`lodash.merge`);exports.camelcase=s.default,exports.clone=i.default,exports.cloneDeep=r.default,exports.debounce=n.default,exports.get=c.default,exports.has=t.default,exports.kebabcase=o.default,exports.merge=l.default,exports.set=a.default;
|
package/dist/lodash.d.cts
DELETED
package/dist/object-C6qVmoZY.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`);let n=require(`lodash.clonedeep`);n=e.r(n);let r=require(`lodash.merge`);r=e.r(r);function i(e,t=[],n){if(e==null)return n||e;let r=Object.getOwnPropertyNames(e).reduce((n,r)=>(t.includes(r)&&(n[r]=e[r]),n),{});return Object.assign(r,n)}function a(e,t=[],n){if(e==null)return n||e;let r=Object.getOwnPropertyNames(e).reduce((n,r)=>(t.includes(r)||(n[r]=e[r]),n),{});return Object.assign(r,n)}function o(e={},t=!0){let n=Object.keys(e).sort();return t||n.reverse(),n.reduce((t,n)=>(t[n]=e[n],t),{})}function s(e={}){return Object.entries(e).reduce((e,[n,r])=>(t.f(r)||e.push(`${n}=${r}`),e),[]).join(`&`)}function c(e){if(!t.y(e))return{};let n=e.trim();if(n[0]===`?`)n=n.slice(1);else if(n.indexOf(`http`)===0)try{let e=new URL(n);n=e.search?e.search.slice(1):``}catch(e){console.error(`传入的[url]格式错误: `,e)}if(!n)return{};let r=new URLSearchParams(n);return Array.from(r.entries()).reduce((e,[t,n])=>(e[t]=n,e),{})}function l(e={}){let t=new FormData;return Object.entries(e).forEach(([e,n])=>{t.append(e,n)}),t}function u(e){let t={};for(let[n,r]of e.entries())t[n]=r;return t}function d(e={}){return Object.entries(e).reduce((e,[n,r])=>(t.f(r)||(e[n]=r),e),{})}function f(e,t){return Object.keys(t).reduce((t,n)=>(t[n]=e[n],t),{})}function p(e,t){return t.every(t=>Reflect.has(e,t))}function m(e,t){return Object.entries(t).reduce((t,[n,r])=>(t[n]=e[r],t),{})}function h(e,i={}){let a=(0,r.default)({},e);if(t.d(i))return a;for(let e in i){let n=e;t._(i[e])&&t._(a[e])?a[n]=h(a[n],i[e]):a[n]=i[e]}return(0,n.default)(a)}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return a}});
|
package/dist/object-j-lK643f.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,d as t,f as n,y as r}from"./base-854WVUaj.mjs";import i from"lodash.clonedeep";import a from"lodash.merge";function o(e,t=[],n){if(e==null)return n||e;let r=Object.getOwnPropertyNames(e).reduce((n,r)=>(t.includes(r)&&(n[r]=e[r]),n),{});return Object.assign(r,n)}function s(e,t=[],n){if(e==null)return n||e;let r=Object.getOwnPropertyNames(e).reduce((n,r)=>(t.includes(r)||(n[r]=e[r]),n),{});return Object.assign(r,n)}function c(e={},t=!0){let n=Object.keys(e).sort();return t||n.reverse(),n.reduce((t,n)=>(t[n]=e[n],t),{})}function l(e={}){return Object.entries(e).reduce((e,[t,r])=>(n(r)||e.push(`${t}=${r}`),e),[]).join(`&`)}function u(e){if(!r(e))return{};let t=e.trim();if(t[0]===`?`)t=t.slice(1);else if(t.indexOf(`http`)===0)try{let e=new URL(t);t=e.search?e.search.slice(1):``}catch(e){console.error(`传入的[url]格式错误: `,e)}if(!t)return{};let n=new URLSearchParams(t);return Array.from(n.entries()).reduce((e,[t,n])=>(e[t]=n,e),{})}function d(e={}){let t=new FormData;return Object.entries(e).forEach(([e,n])=>{t.append(e,n)}),t}function f(e){let t={};for(let[n,r]of e.entries())t[n]=r;return t}function p(e={}){return Object.entries(e).reduce((e,[t,r])=>(n(r)||(e[t]=r),e),{})}function m(e,t){return Object.keys(t).reduce((t,n)=>(t[n]=e[n],t),{})}function h(e,t){return t.every(t=>Reflect.has(e,t))}function g(e,t){return Object.entries(t).reduce((t,[n,r])=>(t[n]=e[r],t),{})}function _(n,r={}){let o=a({},n);if(t(r))return o;for(let t in r){let n=t;e(r[t])&&e(o[t])?o[n]=_(o[n],r[t]):o[n]=r[t]}return i(o)}export{h as a,_ as c,o as d,u as f,g as i,c as l,p as n,d as o,f as r,l as s,m as t,s as u};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { u as ObjectDataType } from "./types-BEdiy6mb.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/object.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description: pick函数
|
|
7
|
-
* @return {*}
|
|
8
|
-
* @autor: 刘 相卿
|
|
9
|
-
*/
|
|
10
|
-
declare function pick<T, K extends keyof T, R extends Record<string, any>>(object: T, keys?: K[], rest?: R): Pick<T, K> & (R extends undefined ? {} : R);
|
|
11
|
-
declare function omit<T, K extends keyof T, R extends Record<string, any>>(object: T, keys?: K[], rest?: R): Omit<T, K> & (R extends undefined ? {} : R);
|
|
12
|
-
/**
|
|
13
|
-
* @description:
|
|
14
|
-
* @param {ObjectDataType} object 传入的对象
|
|
15
|
-
* @param {boolean} asc 是否升序
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @autor: 刘 相卿
|
|
18
|
-
*/
|
|
19
|
-
declare function objectSortByKey(object?: ObjectDataType, asc?: boolean): ObjectDataType;
|
|
20
|
-
/**
|
|
21
|
-
* @description: json转url
|
|
22
|
-
* @param {ObjectDataType} json
|
|
23
|
-
* @return {string} url
|
|
24
|
-
* @autor: 刘 相卿
|
|
25
|
-
*/
|
|
26
|
-
declare function json2url(json?: ObjectDataType): string;
|
|
27
|
-
/**
|
|
28
|
-
* @description: url转json参数
|
|
29
|
-
* @param {string} url
|
|
30
|
-
* @return {*}
|
|
31
|
-
* @autor: 刘 相卿
|
|
32
|
-
*/
|
|
33
|
-
declare function url2json(url: string): ObjectDataType;
|
|
34
|
-
/**
|
|
35
|
-
* @description: json转formdata
|
|
36
|
-
* @param {ObjectDataType} json
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @autor: 刘 相卿
|
|
39
|
-
*/
|
|
40
|
-
declare function json2formdata(json?: ObjectDataType): FormData;
|
|
41
|
-
/**
|
|
42
|
-
* @description: formdata转json
|
|
43
|
-
* @param {FormData} formdata
|
|
44
|
-
* @return {*}
|
|
45
|
-
* @autor: 刘 相卿
|
|
46
|
-
*/
|
|
47
|
-
declare function formdata2json(formdata: FormData): ObjectDataType;
|
|
48
|
-
/**
|
|
49
|
-
* @description: 删除对象中的空值
|
|
50
|
-
* @return {*}
|
|
51
|
-
* @autor: 刘 相卿
|
|
52
|
-
*/
|
|
53
|
-
declare function deleteEmptyValue(data?: ObjectDataType): ObjectDataType;
|
|
54
|
-
/**
|
|
55
|
-
* @description: 把某个对象中对应的属性值拷贝到另一对象
|
|
56
|
-
* @param {ObjectDataType} data 完整对象
|
|
57
|
-
* @param {ObjectDataType} object 目标对象
|
|
58
|
-
* @return {*}
|
|
59
|
-
* @autor: 刘 相卿
|
|
60
|
-
*/
|
|
61
|
-
declare function cloneData2Object(data: ObjectDataType, object: ObjectDataType): ObjectDataType;
|
|
62
|
-
/**
|
|
63
|
-
* @description: 判断对象是否存在某些属性
|
|
64
|
-
* @param {ObjectDataType} object
|
|
65
|
-
* @param {string} props
|
|
66
|
-
* @return {*}
|
|
67
|
-
* @autor: 刘 相卿
|
|
68
|
-
*/
|
|
69
|
-
declare function hasProperties(object: ObjectDataType, props: string[]): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* @description: 根据传入的对象和映射关系返回一个新的对象
|
|
72
|
-
* @param {ObjectDataType} data
|
|
73
|
-
* @param {Record<string, string>} mapping
|
|
74
|
-
* @return {*}
|
|
75
|
-
* @autor: 刘 相卿
|
|
76
|
-
*/
|
|
77
|
-
declare function getObjectFromMapping(data: ObjectDataType, mapping: Record<string, string>): ObjectDataType;
|
|
78
|
-
/**
|
|
79
|
-
* @description: 合并对象
|
|
80
|
-
* @param {ObjectDataType} data
|
|
81
|
-
* @param {ObjectDataType} mergeData
|
|
82
|
-
* @return {*}
|
|
83
|
-
* @autor: 刘 相卿
|
|
84
|
-
*/
|
|
85
|
-
declare function mergeObject<T extends ObjectDataType = ObjectDataType>(data: T, mergeData?: ObjectDataType): T;
|
|
86
|
-
//#endregion
|
|
87
|
-
export { hasProperties as a, mergeObject as c, pick as d, url2json as f, getObjectFromMapping as i, objectSortByKey as l, deleteEmptyValue as n, json2formdata as o, formdata2json as r, json2url as s, cloneData2Object as t, omit as u };
|
package/dist/object.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./base-DUxrUTOr.cjs`);const e=require(`./object-C6qVmoZY.cjs`);exports.cloneData2Object=e.t,exports.deleteEmptyValue=e.n,exports.formdata2json=e.r,exports.getObjectFromMapping=e.i,exports.hasProperties=e.a,exports.json2formdata=e.o,exports.json2url=e.s,exports.mergeObject=e.c,exports.objectSortByKey=e.l,exports.omit=e.u,exports.pick=e.d,exports.url2json=e.f;
|
package/dist/object.d.cts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "./types-DTtPjrm8.cjs";
|
|
2
|
-
import { a as hasProperties, c as mergeObject, d as pick, f as url2json, i as getObjectFromMapping, l as objectSortByKey, n as deleteEmptyValue, o as json2formdata, r as formdata2json, s as json2url, t as cloneData2Object, u as omit } from "./object-CqyPehTh.cjs";
|
|
3
|
-
export { cloneData2Object, deleteEmptyValue, formdata2json, getObjectFromMapping, hasProperties, json2formdata, json2url, mergeObject, objectSortByKey, omit, pick, url2json };
|
package/dist/other-B2ug3Xof.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){e&&e.parentNode?.removeChild(e)}function t(e,t){let n=e.slice(1);return`rgba(${[Number.parseInt(`0x${n.slice(0,2)}`),Number.parseInt(`0x${n.slice(2,4)}`),Number.parseInt(`0x${n.slice(4,6)}`),t].toString()})`}function n(e,t){return e[t]??e.default}function r(e){return e.toString().replace(/\d+/,e=>e.replace(/(\d)(?=(\d{3})+$)/g,e=>`${e},`))}function i(e,...t){return new Promise((n,r)=>{if(typeof e!=`function`)return r(Error(`usePromise传入的第一个参数必须为函数!`));try{let i=e(...t);i instanceof Promise?i.then(n,r):n(i)}catch(e){r(e)}})}async function a(e){return new Promise(t=>{fetch(e,{method:`HEAD`}).then(e=>{try{t(e.headers.get(`content-type`)||``)}catch{t(``)}}).catch(()=>{t(``)})})}export{e as a,r as i,n,i as o,t as r,a as t};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { l as MappingType } from "./types-BEdiy6mb.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/other.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description: 移除DOM节点
|
|
7
|
-
* @param {HTMLElement} element 要移除的DOM节点
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @autor: 刘 相卿
|
|
10
|
-
*/
|
|
11
|
-
declare function removeElement(element: HTMLElement): void;
|
|
12
|
-
/**
|
|
13
|
-
* @description: 计算 rgba 颜色
|
|
14
|
-
* @param {string} color
|
|
15
|
-
* @param {number} alpha
|
|
16
|
-
* @return {*}
|
|
17
|
-
*/
|
|
18
|
-
declare function hex2rgba(color: string, alpha: number): string;
|
|
19
|
-
/**
|
|
20
|
-
* @description: 根据映射关系对象,查找key对应的值
|
|
21
|
-
* @param {MappingType} mapping 映射关系对象
|
|
22
|
-
* @param {string} key 映射关系对象key
|
|
23
|
-
* @return {*}
|
|
24
|
-
* @autor: 刘 相卿
|
|
25
|
-
*/
|
|
26
|
-
declare function getValueByMapping(mapping: MappingType, key: string | number): any;
|
|
27
|
-
/**
|
|
28
|
-
* @description: 给传入的数字添加千分符
|
|
29
|
-
* @param {number} number
|
|
30
|
-
* @return {*}
|
|
31
|
-
* @autor: 刘 相卿
|
|
32
|
-
*/
|
|
33
|
-
declare function number2thousands(number: number): string;
|
|
34
|
-
/**
|
|
35
|
-
* @description: 使用usePromise 接收一个函数作为参数 返回一个新的 Promise
|
|
36
|
-
* @param {unknown} fn 传入的函数
|
|
37
|
-
* @param {Array} args 传入的参数
|
|
38
|
-
* @return {*}
|
|
39
|
-
* @autor: 刘 相卿
|
|
40
|
-
*/
|
|
41
|
-
declare function usePromise<T>(fn: unknown, ...args: any[]): Promise<T>;
|
|
42
|
-
/**
|
|
43
|
-
* @description: 通过fetch获取文件的MIME类型
|
|
44
|
-
* @param {string} url 文件地址
|
|
45
|
-
* @return {*}
|
|
46
|
-
* @autor: 刘 相卿
|
|
47
|
-
*/
|
|
48
|
-
declare function getMimeByUrl(url: string): Promise<string>;
|
|
49
|
-
//#endregion
|
|
50
|
-
export { removeElement as a, number2thousands as i, getValueByMapping as n, usePromise as o, hex2rgba as r, getMimeByUrl as t };
|
package/dist/other-c9ZDQ-tY.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){e&&e.parentNode?.removeChild(e)}function t(e,t){let n=e.slice(1);return`rgba(${[Number.parseInt(`0x${n.slice(0,2)}`),Number.parseInt(`0x${n.slice(2,4)}`),Number.parseInt(`0x${n.slice(4,6)}`),t].toString()})`}function n(e,t){return e[t]??e.default}function r(e){return e.toString().replace(/\d+/,e=>e.replace(/(\d)(?=(\d{3})+$)/g,e=>`${e},`))}function i(e,...t){return new Promise((n,r)=>{if(typeof e!=`function`)return r(Error(`usePromise传入的第一个参数必须为函数!`));try{let i=e(...t);i instanceof Promise?i.then(n,r):n(i)}catch(e){r(e)}})}async function a(e){return new Promise(t=>{fetch(e,{method:`HEAD`}).then(e=>{try{t(e.headers.get(`content-type`)||``)}catch{t(``)}}).catch(()=>{t(``)})})}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
package/dist/other.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./other-c9ZDQ-tY.cjs`);exports.getMimeByUrl=e.t,exports.getValueByMapping=e.n,exports.hex2rgba=e.r,exports.number2thousands=e.i,exports.removeElement=e.a,exports.usePromise=e.o;
|
package/dist/other.d.cts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "./types-DTtPjrm8.cjs";
|
|
2
|
-
import { a as removeElement, i as number2thousands, n as getValueByMapping, o as usePromise, r as hex2rgba, t as getMimeByUrl } from "./other-BzR4DqG0.cjs";
|
|
3
|
-
export { getMimeByUrl, getValueByMapping, hex2rgba, number2thousands, removeElement, usePromise };
|
package/dist/params-CnZhAsve.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`);let n=require(`lodash.get`);n=e.r(n);function r(e,n){return n===`toArray`?t.i(e)?e:[e].flat().filter(e=>!t.f(e)):n===`toNumber`?t.y(e)?Number(e):e:n===`toString`?t.i(e)?e.join(`,`):String(e):e}function i(e,i={}){let a;for(let o of e)if(a=(o.path?(0,n.default)(i,o.path):o.defaultValue)??o.defaultValue,o.formatter&&(a=r(a,o.formatter)),!t.f(a))break;return a}function a(e=[],n={}){let r={};for(let a of e)if(r=r===null?{}:r,a.required&&(!a.key||!a.source.length)){r=null;break}else if(a.key&&a.source.length){let e=i(a.source,n);if(a.required&&t.f(e)){r=null;break}else if(a.toValue){if(r=e,!t._(r))break}else t._(r)&&(r[a.key]=e)}return r}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
package/dist/params-CpjttIDa.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,f as t,i as n,y as r}from"./base-854WVUaj.mjs";import i from"lodash.get";function a(e,i){return i===`toArray`?n(e)?e:[e].flat().filter(e=>!t(e)):i===`toNumber`?r(e)?Number(e):e:i===`toString`?n(e)?e.join(`,`):String(e):e}function o(e,n={}){let r;for(let o of e)if(r=(o.path?i(n,o.path):o.defaultValue)??o.defaultValue,o.formatter&&(r=a(r,o.formatter)),!t(r))break;return r}function s(n=[],r={}){let i={};for(let a of n)if(i=i===null?{}:i,a.required&&(!a.key||!a.source.length)){i=null;break}else if(a.key&&a.source.length){let n=o(a.source,r);if(a.required&&t(n)){i=null;break}else if(a.toValue){if(i=n,!e(i))break}else e(i)&&(i[a.key]=n)}return i}export{s as t};
|
package/dist/parse-BpErok05.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./base-DUxrUTOr.cjs`);function t(t,n={},r){let{prefix:i=`#{`,suffix:a=`}`,defaultValue:o=``}=r??{};if(typeof t!=`string`)return String(t);if(!n||typeof n!=`object`)return t;let s=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),c=s(i),l=s(a),u=RegExp(`${c}([^${l}]+)${l}`,`g`);return t.replace(u,(t,r)=>{let i=n[r];return e.f(i)?String(e.f(o)?``:o):String(i)})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
package/dist/parse-C1eaIjot.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./base-854WVUaj.mjs";function t(t,n={},r){let{prefix:i=`#{`,suffix:a=`}`,defaultValue:o=``}=r??{};if(typeof t!=`string`)return String(t);if(!n||typeof n!=`object`)return t;let s=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),c=s(i),l=s(a),u=RegExp(`${c}([^${l}]+)${l}`,`g`);return t.replace(u,(t,r)=>{let i=n[r];return e(i)?String(e(o)?``:o):String(i)})}export{t};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { u as ObjectDataType } from "./types-DTtPjrm8.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/parse.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description: 根据模板和对象值转换为字符串
|
|
7
|
-
* @param {string} template
|
|
8
|
-
* @param {ObjectDataType} data
|
|
9
|
-
* @param {object} options
|
|
10
|
-
* @param {string} options.prefix
|
|
11
|
-
* @param {string} options.suffix
|
|
12
|
-
* @param {string | number} options.defaultValue
|
|
13
|
-
* @return {*}
|
|
14
|
-
* @autor: 刘 相卿
|
|
15
|
-
*/
|
|
16
|
-
declare function parseTemplate(template: string, data?: ObjectDataType, options?: {
|
|
17
|
-
prefix?: string;
|
|
18
|
-
suffix?: string;
|
|
19
|
-
defaultValue?: string | number;
|
|
20
|
-
}): string;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { parseTemplate as t };
|
package/dist/parse.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./base-DUxrUTOr.cjs`);const e=require(`./parse-BpErok05.cjs`);exports.parseTemplate=e.t;
|
package/dist/parse.d.cts
DELETED
package/dist/pinyin-BE6Ew65z.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`);let t=require(`pinyin-pro`);function n(e){return(0,t.pinyin)(e,{toneType:`none`}).replaceAll(` `,``)}function r(e){return(0,t.pinyin)(e,{pattern:`initial`}).replaceAll(` `,``)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
package/dist/pinyin-D11MW4u2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{pinyin as e}from"pinyin-pro";function t(t){return e(t,{toneType:`none`}).replaceAll(` `,``)}function n(t){return e(t,{pattern:`initial`}).replaceAll(` `,``)}export{t as n,e as r,n as t};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { pinyin } from "pinyin-pro";
|
|
2
|
-
|
|
3
|
-
//#region src/pinyin.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description: 汉字转拼音
|
|
7
|
-
* @param {string} text
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @autor: 刘 相卿
|
|
10
|
-
*/
|
|
11
|
-
declare function chinese2pinyin(text: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* @description: 汉字转声母
|
|
14
|
-
* @param {string} text
|
|
15
|
-
* @return {*}
|
|
16
|
-
* @autor: 刘 相卿
|
|
17
|
-
*/
|
|
18
|
-
declare function chinese2initial(text: string): string;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { chinese2pinyin as n, pinyin as r, chinese2initial as t };
|
package/dist/pinyin.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./pinyin-BE6Ew65z.cjs`);let n=require(`pinyin-pro`);exports.chinese2initial=t.t,exports.chinese2pinyin=t.n,exports.pinyin=n.pinyin;
|
package/dist/pinyin.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`../constant-CskvZDUK.cjs`);exports.DEFAULT_CONFIG=e.t,exports.OPTION_RES_ALIAS=e.n,exports.RECORD_RES_ALIAS=e.r,exports.RES_ALIAS=e.i;
|
package/dist/request/handler.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../base-DUxrUTOr.cjs`),require(`../lodash-kixEH9o9.cjs`),require(`../object-C6qVmoZY.cjs`),require(`../array-ri-t3Wsz.cjs`),require(`../constant-CskvZDUK.cjs`),require(`../cancel-Do0w5I5K.cjs`),require(`../file-B9oorXhT.cjs`),require(`../parse-BpErok05.cjs`),require(`../format-CezZBld9.cjs`);const e=require(`../handler-C40H2JG4.cjs`);exports.ErrorMessage=e.t,exports.requestUrl2json=e.n,exports.useErrorHandler=e.r,exports.useRequestHandler=e.i,exports.useResponseHandler=e.a;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "../types-DTtPjrm8.cjs";
|
|
2
|
-
import { a as useResponseHandler, i as useRequestHandler, n as requestUrl2json, r as useErrorHandler, t as ErrorMessage } from "../handler-Dk1QWSgF.cjs";
|
|
3
|
-
export { ErrorMessage, requestUrl2json, useErrorHandler, useRequestHandler, useResponseHandler };
|
package/dist/request/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../base-DUxrUTOr.cjs`),require(`../lodash-kixEH9o9.cjs`),require(`../object-C6qVmoZY.cjs`),require(`../array-ri-t3Wsz.cjs`),require(`../constant-CskvZDUK.cjs`),require(`../cancel-Do0w5I5K.cjs`),require(`../file-B9oorXhT.cjs`),require(`../parse-BpErok05.cjs`),require(`../format-CezZBld9.cjs`);const e=require(`../handler-C40H2JG4.cjs`);require(`../params-CnZhAsve.cjs`);const t=require(`../request-Cbv8Ih3e.cjs`);require(`../request-CcQHJNao.cjs`),exports.ErrorMessage=e.t,exports.ObrRequest=t.t,exports.requestUrl2json=e.n,exports.useErrorHandler=e.r,exports.useRequestHandler=e.i,exports.useResponseHandler=e.a;var n=require(`axios`);Object.keys(n).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});
|
package/dist/request/index.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "../index-CqciuydZ.cjs";
|
|
2
|
-
import "../types-DTtPjrm8.cjs";
|
|
3
|
-
import { a as useResponseHandler, i as useRequestHandler, n as requestUrl2json, r as useErrorHandler, t as ErrorMessage } from "../handler-Dk1QWSgF.cjs";
|
|
4
|
-
import { t as ObrRequest } from "../request-C8gChBjl.cjs";
|
|
5
|
-
export * from "axios";
|
|
6
|
-
export { ErrorMessage, ObrRequest, requestUrl2json, useErrorHandler, useRequestHandler, useResponseHandler };
|
package/dist/request/request.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../base-DUxrUTOr.cjs`),require(`../lodash-kixEH9o9.cjs`),require(`../object-C6qVmoZY.cjs`),require(`../array-ri-t3Wsz.cjs`),require(`../constant-CskvZDUK.cjs`),require(`../cancel-Do0w5I5K.cjs`),require(`../file-B9oorXhT.cjs`),require(`../parse-BpErok05.cjs`),require(`../format-CezZBld9.cjs`),require(`../handler-C40H2JG4.cjs`),require(`../params-CnZhAsve.cjs`);const e=require(`../request-Cbv8Ih3e.cjs`);exports.ObrRequest=e.t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`../../cancel-Do0w5I5K.cjs`);exports.addPending=e.t,exports.pendingMap=e.n,exports.removeAllPending=e.r,exports.removeNdAddPending=e.i,exports.removePending=e.a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`../../file-B9oorXhT.cjs`);exports.readBlobResponse=e.t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../../base-DUxrUTOr.cjs`),require(`../../lodash-kixEH9o9.cjs`),require(`../../object-C6qVmoZY.cjs`),require(`../../array-ri-t3Wsz.cjs`),require(`../../constant-CskvZDUK.cjs`),require(`../../parse-BpErok05.cjs`);const e=require(`../../format-CezZBld9.cjs`);exports.format=e.t,exports.formatData=e.n,exports.formatOption=e.r,exports.formatPageQuery=e.i,exports.formatPageRecords=e.a,exports.getSuccessCode=e.o,exports.getUnauthorizedCode=e.s,exports.sort=e.c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../../base-DUxrUTOr.cjs`);const e=require(`../../params-CnZhAsve.cjs`);exports.getRequestParamValues=e.t;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { u as ObjectDataType, x as RequestParamConfig } from "../../types-DTtPjrm8.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/request/utils/params.d.ts
|
|
4
|
-
declare function getRequestParamValues(params?: RequestParamConfig[], data?: ObjectDataType): any[] | ObjectDataType | null;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { getRequestParamValues };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,i as t}from"./base-854WVUaj.mjs";import{c as n}from"./lodash-iHVEJs1z.mjs";import{o as r,u as i}from"./object-j-lK643f.mjs";import{t as a}from"./constant-Dxt8HuVn.mjs";import{a as o,r as s}from"./cancel-BV5B58Lw.mjs";import{a as c,i as l,r as u}from"./format-3CsgkBWg.mjs";import{a as d,i as f,r as p}from"./handler-N6Akxkpa.mjs";import{t as m}from"./params-CpjttIDa.mjs";import h,{isCancel as g}from"axios";var _=class{options;instance;constructor(e){this.options=n({},a,e),this.instance=this.setupInterceptors(this.options)}setupInterceptors(e){let t=h.create(i(e,[`basePath`,`allowCancel`,`allowNullValue`,`successCode`,`unauthorizedCode`,`whiteUrl`,`alias`,`token`,`beforeRequest`,`afterRequest`,401,`cancel`,`error`]));return t.interceptors.request.use(e=>f(e,this.options)),t.interceptors.response.use(e=>d(e,this.options),e=>p({type:g(e)?`CANCEL`:`ERROR`,content:e,options:this.options})),t}fetchLocalFile(e){return fetch((this.options.basePath??``)+e)}async get(e,t={},n){let{data:r}=await this.instance.get(e,{...n,params:t});return r}async post(e,t={},n){let{data:r}=await this.instance.post(e,t,n);return r}async postForm(e,t={},i){let a=r(t),{data:o}=await this.instance.post(e,a,n({},{headers:{"Content-Type":`multipart/form-data`},...i}));return o}async getPageRecords(e,t={},n={},r=`GET`,i,a){let o=r.toUpperCase()===`GET`,s={...l(n,i),...t},{data:u}=await this.instance.request({...a,url:e,method:r,params:o?s:{...l(n,i)},data:o?{}:s});return c(u,i)}async getOptions(n,r={},i=`GET`,a,o,s=!0){let c=i.toUpperCase()===`GET`,{data:l=[]}=await this.instance.request({...o,url:n,method:i,params:r,data:c?{}:r});return t(l)?u(l,a,s):e(l)?Object.values(l).every(e=>t(e))?u(Object.values(l).flat(),a,s):u(Object.entries(l).map(([e,t])=>({label:t,value:e})),void 0,s):[]}async getCascaderOptions(t,r={},i,a=!0){if(!t.length)return[];let o=async(t,s,c={})=>{let l=t[s];if(!l?.url)return[];let u=m(l.params,c)??{},d=(await this.getOptions(l.url,e(u)?n({},r,u):u,l.method,l.alias,i,a)).map(e=>({...e,children:e.json?.children??[]}));for(let e=0;e<d.length;e++)d[e].children=await o(t,s+1,d[e].json);return d};return await o(t,0,r)}cancel(e){o(e,!0)}request(e){return this.instance.request(e)}destory(){s(),this.instance=null}};export{_ as t};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { C as ResDataType, _ as PageQueryType, b as RequestMethod, f as ObrAxiosRequestConfig, g as PageAlias, h as OptionResAlias, n as CascaderOptionType, r as CascaderRequestOption, t as BaseOptionType, u as ObjectDataType, v as PageResType, y as RequestBaseConfig } from "./types-DTtPjrm8.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/request/request.d.ts
|
|
4
|
-
declare class ObrRequest {
|
|
5
|
-
private options;
|
|
6
|
-
private instance;
|
|
7
|
-
constructor(options: RequestBaseConfig);
|
|
8
|
-
private setupInterceptors;
|
|
9
|
-
/**
|
|
10
|
-
* @description: 请求本地文件
|
|
11
|
-
* @param {string} path
|
|
12
|
-
* @return {Promise<Response>}
|
|
13
|
-
* @autor: 刘 相卿
|
|
14
|
-
*/
|
|
15
|
-
fetchLocalFile(path: string): Promise<Response>;
|
|
16
|
-
/**
|
|
17
|
-
* @description: get请求
|
|
18
|
-
* @param {string} url
|
|
19
|
-
* @param {ObjectDataType} params
|
|
20
|
-
* @param {ObrAxiosRequestConfig} config
|
|
21
|
-
* @return {*}
|
|
22
|
-
* @autor: 刘 相卿
|
|
23
|
-
*/
|
|
24
|
-
get<T = any>(url: string, params?: ObjectDataType, config?: ObrAxiosRequestConfig): Promise<T>;
|
|
25
|
-
/**
|
|
26
|
-
* @description: post请求
|
|
27
|
-
* @param {string} url
|
|
28
|
-
* @param {ObjectDataType} params 请求参数
|
|
29
|
-
* @param {ObrAxiosRequestConfig} config 请求配置项
|
|
30
|
-
* @return {Promise<T>}
|
|
31
|
-
* @autor: 刘 相卿
|
|
32
|
-
*/
|
|
33
|
-
post<T = any>(url: string, params?: ObjectDataType, config?: ObrAxiosRequestConfig): Promise<T>;
|
|
34
|
-
/**
|
|
35
|
-
* @description: post请求(json参数会转为FormData类型)
|
|
36
|
-
* @param {string} url
|
|
37
|
-
* @param {ObjectDataType} params 请求参数
|
|
38
|
-
* @param {ObrAxiosRequestConfig} config 请求配置项
|
|
39
|
-
* @return {Promise<T>}
|
|
40
|
-
* @autor: 刘 相卿
|
|
41
|
-
*/
|
|
42
|
-
postForm<T = any>(url: string, params?: ObjectDataType, config?: ObrAxiosRequestConfig): Promise<T>;
|
|
43
|
-
/**
|
|
44
|
-
* @description: 请求分页接口
|
|
45
|
-
* @param {string} url
|
|
46
|
-
* @param {ObjectDataType} searchParams 请求参数
|
|
47
|
-
* @param {PageQueryType} pageParams 分页参数
|
|
48
|
-
* @param {RequestMethod} method 请求方法
|
|
49
|
-
* @param {Partial} alias 分页别名配置
|
|
50
|
-
* @param {ObrAxiosRequestConfig} config 请求配置项
|
|
51
|
-
* @return {Promise<PageResType<R>>}
|
|
52
|
-
* @autor: 刘 相卿
|
|
53
|
-
*/
|
|
54
|
-
getPageRecords<R = ObjectDataType>(url: string, searchParams?: ObjectDataType, pageParams?: PageQueryType, method?: RequestMethod, alias?: Partial<PageAlias>, config?: ObrAxiosRequestConfig): Promise<PageResType<R>>;
|
|
55
|
-
/**
|
|
56
|
-
* @description: 获取options类型数据(下拉选择/字典等)
|
|
57
|
-
* @param {string} url
|
|
58
|
-
* @param {ObjectDataType} params
|
|
59
|
-
* @param {RequestMethod} method
|
|
60
|
-
* @param {Partial} alias alias.label可设置为模板 #{name}/#{no} 从模板中获取
|
|
61
|
-
* @param {ObrAxiosRequestConfig} config
|
|
62
|
-
* @param {boolean} unique
|
|
63
|
-
* @return {Promise<BaseOptionType<T>[]>}
|
|
64
|
-
* @autor: 刘 相卿
|
|
65
|
-
*/
|
|
66
|
-
getOptions<T = ObjectDataType>(url: string, params?: ObjectDataType, method?: RequestMethod, alias?: Partial<OptionResAlias>, config?: ObrAxiosRequestConfig, unique?: boolean): Promise<BaseOptionType<T>[]>;
|
|
67
|
-
/**
|
|
68
|
-
* @description: 获取级联类型数据(谨慎使用!!! 会发起大量请求!!!)
|
|
69
|
-
* @param {CascaderRequestOption} options 级联请求配置项
|
|
70
|
-
* @param {ObjectDataType} params 所有层级的请求参数(共用)
|
|
71
|
-
* @param {ObrAxiosRequestConfig} config
|
|
72
|
-
* @param {boolean} unique 单一层级下的去重
|
|
73
|
-
* @return {*}
|
|
74
|
-
* @autor: 刘 相卿
|
|
75
|
-
*/
|
|
76
|
-
getCascaderOptions<T extends ObjectDataType = ObjectDataType>(options: CascaderRequestOption[], params?: ObjectDataType, config?: ObrAxiosRequestConfig, unique?: boolean): Promise<CascaderOptionType<T>[]>;
|
|
77
|
-
/**
|
|
78
|
-
* @description: 强制取消请求
|
|
79
|
-
* @param {ObrAxiosRequestConfig} config
|
|
80
|
-
* @return {*}
|
|
81
|
-
* @autor: 刘 相卿
|
|
82
|
-
*/
|
|
83
|
-
cancel(config: ObrAxiosRequestConfig): void;
|
|
84
|
-
/**
|
|
85
|
-
* @description: request请求
|
|
86
|
-
* @param {ObrAxiosRequestConfig} config
|
|
87
|
-
* @return {Promise<ResDataType<T>>}
|
|
88
|
-
* @autor: 刘 相卿
|
|
89
|
-
*/
|
|
90
|
-
request<T = any>(config: ObrAxiosRequestConfig): Promise<ResDataType<T>>;
|
|
91
|
-
/**
|
|
92
|
-
* @description: 取消所有请求并销毁axios实例
|
|
93
|
-
* @return {*}
|
|
94
|
-
* @autor: 刘 相卿
|
|
95
|
-
*/
|
|
96
|
-
destory(): void;
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { ObrRequest as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`),n=require(`./object-C6qVmoZY.cjs`),r=require(`./constant-CskvZDUK.cjs`),i=require(`./cancel-Do0w5I5K.cjs`),a=require(`./format-CezZBld9.cjs`),o=require(`./handler-C40H2JG4.cjs`),s=require(`./params-CnZhAsve.cjs`);let c=require(`axios`);c=e.r(c);let l=require(`lodash.merge`);var u=class{options;instance;constructor(e){this.options=(0,l.default)({},r.t,e),this.instance=this.setupInterceptors(this.options)}setupInterceptors(e){let t=c.default.create(n.u(e,[`basePath`,`allowCancel`,`allowNullValue`,`successCode`,`unauthorizedCode`,`whiteUrl`,`alias`,`token`,`beforeRequest`,`afterRequest`,401,`cancel`,`error`]));return t.interceptors.request.use(e=>o.i(e,this.options)),t.interceptors.response.use(e=>o.a(e,this.options),e=>o.r({type:(0,c.isCancel)(e)?`CANCEL`:`ERROR`,content:e,options:this.options})),t}fetchLocalFile(e){return fetch((this.options.basePath??``)+e)}async get(e,t={},n){let{data:r}=await this.instance.get(e,{...n,params:t});return r}async post(e,t={},n){let{data:r}=await this.instance.post(e,t,n);return r}async postForm(e,t={},r){let i=n.o(t),{data:a}=await this.instance.post(e,i,(0,l.default)({},{headers:{"Content-Type":`multipart/form-data`},...r}));return a}async getPageRecords(e,t={},n={},r=`GET`,i,o){let s=r.toUpperCase()===`GET`,c={...a.i(n,i),...t},{data:l}=await this.instance.request({...o,url:e,method:r,params:s?c:{...a.i(n,i)},data:s?{}:c});return a.a(l,i)}async getOptions(e,n={},r=`GET`,i,o,s=!0){let c=r.toUpperCase()===`GET`,{data:l=[]}=await this.instance.request({...o,url:e,method:r,params:n,data:c?{}:n});return t.i(l)?a.r(l,i,s):t._(l)?Object.values(l).every(e=>t.i(e))?a.r(Object.values(l).flat(),i,s):a.r(Object.entries(l).map(([e,t])=>({label:t,value:e})),void 0,s):[]}async getCascaderOptions(e,n={},r,i=!0){if(!e.length)return[];let a=async(e,o,c={})=>{let u=e[o];if(!u?.url)return[];let d=s.t(u.params,c)??{},f=(await this.getOptions(u.url,t._(d)?(0,l.default)({},n,d):d,u.method,u.alias,r,i)).map(e=>({...e,children:e.json?.children??[]}));for(let t=0;t<f.length;t++)f[t].children=await a(e,o+1,f[t].json);return f};return await a(e,0,n)}cancel(e){i.a(e,!0)}request(e){return this.instance.request(e)}destory(){i.r(),this.instance=null}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./handler-C40H2JG4.cjs`),n=require(`./request-Cbv8Ih3e.cjs`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./chunk-Dbq9I6zD.mjs";import{a as n,i as r,n as i,r as a,t as o}from"./handler-N6Akxkpa.mjs";import{t as s}from"./request-BG5UIh9R.mjs";export{};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { C as ResDataType, _ as PageQueryType, b as RequestMethod, f as ObrAxiosRequestConfig, g as PageAlias, h as OptionResAlias, n as CascaderOptionType, r as CascaderRequestOption, t as BaseOptionType, u as ObjectDataType, v as PageResType, y as RequestBaseConfig } from "./types-BEdiy6mb.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/request/request.d.ts
|
|
4
|
-
declare class ObrRequest {
|
|
5
|
-
private options;
|
|
6
|
-
private instance;
|
|
7
|
-
constructor(options: RequestBaseConfig);
|
|
8
|
-
private setupInterceptors;
|
|
9
|
-
/**
|
|
10
|
-
* @description: 请求本地文件
|
|
11
|
-
* @param {string} path
|
|
12
|
-
* @return {Promise<Response>}
|
|
13
|
-
* @autor: 刘 相卿
|
|
14
|
-
*/
|
|
15
|
-
fetchLocalFile(path: string): Promise<Response>;
|
|
16
|
-
/**
|
|
17
|
-
* @description: get请求
|
|
18
|
-
* @param {string} url
|
|
19
|
-
* @param {ObjectDataType} params
|
|
20
|
-
* @param {ObrAxiosRequestConfig} config
|
|
21
|
-
* @return {*}
|
|
22
|
-
* @autor: 刘 相卿
|
|
23
|
-
*/
|
|
24
|
-
get<T = any>(url: string, params?: ObjectDataType, config?: ObrAxiosRequestConfig): Promise<T>;
|
|
25
|
-
/**
|
|
26
|
-
* @description: post请求
|
|
27
|
-
* @param {string} url
|
|
28
|
-
* @param {ObjectDataType} params 请求参数
|
|
29
|
-
* @param {ObrAxiosRequestConfig} config 请求配置项
|
|
30
|
-
* @return {Promise<T>}
|
|
31
|
-
* @autor: 刘 相卿
|
|
32
|
-
*/
|
|
33
|
-
post<T = any>(url: string, params?: ObjectDataType, config?: ObrAxiosRequestConfig): Promise<T>;
|
|
34
|
-
/**
|
|
35
|
-
* @description: post请求(json参数会转为FormData类型)
|
|
36
|
-
* @param {string} url
|
|
37
|
-
* @param {ObjectDataType} params 请求参数
|
|
38
|
-
* @param {ObrAxiosRequestConfig} config 请求配置项
|
|
39
|
-
* @return {Promise<T>}
|
|
40
|
-
* @autor: 刘 相卿
|
|
41
|
-
*/
|
|
42
|
-
postForm<T = any>(url: string, params?: ObjectDataType, config?: ObrAxiosRequestConfig): Promise<T>;
|
|
43
|
-
/**
|
|
44
|
-
* @description: 请求分页接口
|
|
45
|
-
* @param {string} url
|
|
46
|
-
* @param {ObjectDataType} searchParams 请求参数
|
|
47
|
-
* @param {PageQueryType} pageParams 分页参数
|
|
48
|
-
* @param {RequestMethod} method 请求方法
|
|
49
|
-
* @param {Partial} alias 分页别名配置
|
|
50
|
-
* @param {ObrAxiosRequestConfig} config 请求配置项
|
|
51
|
-
* @return {Promise<PageResType<R>>}
|
|
52
|
-
* @autor: 刘 相卿
|
|
53
|
-
*/
|
|
54
|
-
getPageRecords<R = ObjectDataType>(url: string, searchParams?: ObjectDataType, pageParams?: PageQueryType, method?: RequestMethod, alias?: Partial<PageAlias>, config?: ObrAxiosRequestConfig): Promise<PageResType<R>>;
|
|
55
|
-
/**
|
|
56
|
-
* @description: 获取options类型数据(下拉选择/字典等)
|
|
57
|
-
* @param {string} url
|
|
58
|
-
* @param {ObjectDataType} params
|
|
59
|
-
* @param {RequestMethod} method
|
|
60
|
-
* @param {Partial} alias alias.label可设置为模板 #{name}/#{no} 从模板中获取
|
|
61
|
-
* @param {ObrAxiosRequestConfig} config
|
|
62
|
-
* @param {boolean} unique
|
|
63
|
-
* @return {Promise<BaseOptionType<T>[]>}
|
|
64
|
-
* @autor: 刘 相卿
|
|
65
|
-
*/
|
|
66
|
-
getOptions<T = ObjectDataType>(url: string, params?: ObjectDataType, method?: RequestMethod, alias?: Partial<OptionResAlias>, config?: ObrAxiosRequestConfig, unique?: boolean): Promise<BaseOptionType<T>[]>;
|
|
67
|
-
/**
|
|
68
|
-
* @description: 获取级联类型数据(谨慎使用!!! 会发起大量请求!!!)
|
|
69
|
-
* @param {CascaderRequestOption} options 级联请求配置项
|
|
70
|
-
* @param {ObjectDataType} params 所有层级的请求参数(共用)
|
|
71
|
-
* @param {ObrAxiosRequestConfig} config
|
|
72
|
-
* @param {boolean} unique 单一层级下的去重
|
|
73
|
-
* @return {*}
|
|
74
|
-
* @autor: 刘 相卿
|
|
75
|
-
*/
|
|
76
|
-
getCascaderOptions<T extends ObjectDataType = ObjectDataType>(options: CascaderRequestOption[], params?: ObjectDataType, config?: ObrAxiosRequestConfig, unique?: boolean): Promise<CascaderOptionType<T>[]>;
|
|
77
|
-
/**
|
|
78
|
-
* @description: 强制取消请求
|
|
79
|
-
* @param {ObrAxiosRequestConfig} config
|
|
80
|
-
* @return {*}
|
|
81
|
-
* @autor: 刘 相卿
|
|
82
|
-
*/
|
|
83
|
-
cancel(config: ObrAxiosRequestConfig): void;
|
|
84
|
-
/**
|
|
85
|
-
* @description: request请求
|
|
86
|
-
* @param {ObrAxiosRequestConfig} config
|
|
87
|
-
* @return {Promise<ResDataType<T>>}
|
|
88
|
-
* @autor: 刘 相卿
|
|
89
|
-
*/
|
|
90
|
-
request<T = any>(config: ObrAxiosRequestConfig): Promise<ResDataType<T>>;
|
|
91
|
-
/**
|
|
92
|
-
* @description: 取消所有请求并销毁axios实例
|
|
93
|
-
* @return {*}
|
|
94
|
-
* @autor: 刘 相卿
|
|
95
|
-
*/
|
|
96
|
-
destory(): void;
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { ObrRequest as t };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/safe-next-tick.d.ts
|
|
2
|
-
declare function delayTimer(delay?: number): Promise<unknown>;
|
|
3
|
-
declare function safeNextick(fn?: () => void, option?: {
|
|
4
|
-
delay: number;
|
|
5
|
-
}): void;
|
|
6
|
-
declare function safeNextick(fn?: () => void, option?: {
|
|
7
|
-
delay: number;
|
|
8
|
-
}): Promise<void>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { safeNextick as n, delayTimer as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e}from"./base-854WVUaj.mjs";async function t(e=0){return new Promise(t=>{let n=setTimeout(()=>{t(!0),clearTimeout(n)},e)})}async function n(n,r){await t(r?.delay),n&&e(n)&&n()}export{n,t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./base-DUxrUTOr.cjs`);async function t(e=0){return new Promise(t=>{let n=setTimeout(()=>{t(!0),clearTimeout(n)},e)})}async function n(n,r){await t(r?.delay),n&&e.p(n)&&n()}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
package/dist/safe-next-tick.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./base-DUxrUTOr.cjs`);const e=require(`./safe-next-tick-DphyaFY6.cjs`);exports.delayTimer=e.t,exports.safeNextick=e.n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(){let e=document.createElement(`div`);e.style.visibility=`hidden`,e.style.overflow=`scroll`,e.style.width=`100px`,e.style.height=`100px`,document.body.appendChild(e);let t=document.createElement(`div`);t.style.width=`100%`,e.appendChild(t);let n=e.offsetWidth-t.offsetWidth;return e.parentNode?.removeChild(e),n}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(){let e=document.createElement(`div`);e.style.visibility=`hidden`,e.style.overflow=`scroll`,e.style.width=`100px`,e.style.height=`100px`,document.body.appendChild(e);let t=document.createElement(`div`);t.style.width=`100%`,e.appendChild(t);let n=e.offsetWidth-t.offsetWidth;return e.parentNode?.removeChild(e),n}export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e=[]){return localStorage?e.length?e.reduce((e,t)=>(e[t]=localStorage.getItem(t),e),{}):Object.keys(localStorage).reduce((e,t)=>(e[t]=localStorage.getItem(t),e),{}):e.length===1?null:{}}function t(e=[]){return sessionStorage?sessionStorage?e.length?e.reduce((e,t)=>(e[t]=sessionStorage.getItem(t),e),{}):Object.keys(sessionStorage).reduce((e,t)=>(e[t]=sessionStorage.getItem(t),e),{}):null:e.length===1?null:{}}function n(e=[]){if(document.cookie){let t=document.cookie.split(`; `).reduce((e,t)=>{let[n=``,r=``]=t.split(`=`).map(decodeURIComponent);return e[n]=r,e},{});return e.length?e.reduce((e,n)=>(e[n]=t[n],e),{}):t}else return e.length===1?null:{}}export{e as n,t as r,n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e=[]){return localStorage?e.length?e.reduce((e,t)=>(e[t]=localStorage.getItem(t),e),{}):Object.keys(localStorage).reduce((e,t)=>(e[t]=localStorage.getItem(t),e),{}):e.length===1?null:{}}function t(e=[]){return sessionStorage?sessionStorage?e.length?e.reduce((e,t)=>(e[t]=sessionStorage.getItem(t),e),{}):Object.keys(sessionStorage).reduce((e,t)=>(e[t]=sessionStorage.getItem(t),e),{}):null:e.length===1?null:{}}function n(e=[]){if(document.cookie){let t=document.cookie.split(`; `).reduce((e,t)=>{let[n=``,r=``]=t.split(`=`).map(decodeURIComponent);return e[n]=r,e},{});return e.length?e.reduce((e,n)=>(e[n]=t[n],e),{}):t}else return e.length===1?null:{}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|