@web-utils/component 2.0.14 → 2.2.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/components/address-input/index.js → address-input/index.mjs} +9 -9
- package/affix/index.mjs +102 -0
- package/affix/style.css +1 -0
- package/aside-menu/index.mjs +58 -0
- package/avatar/index.mjs +106 -0
- package/avatar/style.css +1 -0
- package/awesome-button/index.mjs +112 -0
- package/base.css +1 -0
- package/{dist/components/capsule-tab/index.js → capsule-tab/index.mjs} +10 -10
- package/{dist/components/capsule-tab → capsule-tab}/style.css +1 -1
- package/card/index.mjs +126 -0
- package/card/style.css +1 -0
- package/carousel/index.mjs +70 -0
- package/carousel/style.css +1 -0
- package/chat/index.mjs +576 -0
- package/chat/style.css +1 -0
- package/{dist/components/chunk-file-uploader/index.js → chunk-file-uploader/index.mjs} +8 -6
- package/chunks/FormTemp.FX8xmbVB.mjs +165 -0
- package/chunks/confirmable-mixin.rTUMhoRH.mjs +106 -0
- package/chunks/dataformat.X_61lMA7.mjs +158 -0
- package/chunks/dic.6tk91Dmq.mjs +130 -0
- package/chunks/event.NHA7rYFE.mjs +236 -0
- package/{dist/chunks/76680a03.js → chunks/form-input-mixin.IKogWBfn.mjs} +2 -2
- package/{dist/chunks/b4acd3a6.js → chunks/form-item-mixin.BilKDUlK.mjs} +28 -14
- package/{dist/chunks/f71045fc.js → chunks/index.LGsb2aDq.mjs} +7 -6
- package/chunks/init.Ac4dKUJB.mjs +122 -0
- package/chunks/json-beautifier.fUZFSW5j.mjs +126 -0
- package/chunks/packages.v6r2Hr7E.mjs +58 -0
- package/chunks/permission.E9kZbW48.mjs +16 -0
- package/chunks/slot.j1uMmBnG.mjs +27 -0
- package/{dist/chunks/8c0142e0.js → chunks/tab-mixin.tM9jcRT8.mjs} +1 -1
- package/chunks/util.C2Bhx22L.mjs +259 -0
- package/{dist/chunks/5d4282fb.js → chunks/vueComponentNormalizer.JwmUNtgn.mjs} +3 -1
- package/{dist/components/code-mirror-editor/index.js → code-mirror-editor/index.mjs} +41 -38
- package/code-mirror-editor/style.css +1 -0
- package/{dist/components/color-picker/index.js → color-picker/index.mjs} +41 -23
- package/comment/index.mjs +90 -0
- package/comment/style.css +1 -0
- package/{dist/components/confirm-button/index.js → confirm-button/index.mjs} +2 -2
- package/{dist/components/confirmable/index.js → confirmable/index.mjs} +2 -2
- package/{dist/components/context-menu/index.js → context-menu/index.mjs} +27 -15
- package/context-menu/style.css +1 -0
- package/count-up/index.mjs +131 -0
- package/custom-scrollbar/index.mjs +116 -0
- package/data-box/index.mjs +97 -0
- package/data-box/style.css +1 -0
- package/data-card/index.mjs +98 -0
- package/data-card/style.css +1 -0
- package/data-cardtext/index.mjs +82 -0
- package/data-cardtext/style.css +1 -0
- package/data-display/index.mjs +97 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.mjs +104 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.mjs +106 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.mjs +99 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.mjs +93 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.mjs +152 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.mjs +84 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.mjs +97 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.mjs +96 -0
- package/data-rotate/style.css +1 -0
- package/{dist/components/data-table-picker/index.js → data-table-picker/index.mjs} +22 -22
- package/data-tabs/index.mjs +94 -0
- package/data-tabs/style.css +1 -0
- package/dialog-form/index.mjs +148 -0
- package/dialog-form/style.css +1 -0
- package/{dist/components/dynamic-table/index.js → dynamic-table/index.mjs} +11 -11
- package/dynamic-table/style.css +1 -0
- package/{dist/components/e-charts/index.js → e-charts/index.mjs} +33 -46
- package/easy-popup/index.mjs +136 -0
- package/easy-popup/style.css +1 -0
- package/{dist/components/editable-progress/index.js → editable-progress/index.mjs} +1 -1
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.mjs +844 -0
- package/editable-tree/style.css +1 -0
- package/{dist/components/egd-collapse/index.js → egd-collapse/index.mjs} +1 -1
- package/{dist/components/egd-collapse-item/index.js → egd-collapse-item/index.mjs} +14 -12
- package/{dist/components/element-dialog/index.js → element-dialog/index.mjs} +88 -35
- package/element-dialog/style.css +1 -0
- package/{dist/components/empty-view/index.js → empty-view/index.mjs} +9 -9
- package/empty-view/style.css +1 -0
- package/{dist/components/error-view/index.js → error-view/index.mjs} +13 -13
- package/error-view/style.css +1 -0
- package/flex-column/index.mjs +62 -0
- package/flex-item/index.mjs +81 -0
- package/flex-row/index.mjs +62 -0
- package/{dist/components/flex-scroller/index.js → flex-scroller/index.mjs} +5 -5
- package/flex-scroller/style.css +1 -0
- package/flow/index.mjs +277 -0
- package/flow/style.css +1 -0
- package/flow-designer/index.mjs +10184 -0
- package/flow-designer/style.css +1 -0
- package/flow-node/index.mjs +102 -0
- package/flow-viewer/index.mjs +209 -0
- package/flow-viewer/style.css +1 -0
- package/form-block/index.mjs +156 -0
- package/form-block/style.css +1 -0
- package/form-button/index.mjs +58 -0
- package/{dist/components/form-cascader/index.js → form-cascader/index.mjs} +41 -29
- package/{dist/components/form-checkbox-group/index.js → form-checkbox-group/index.mjs} +47 -36
- package/form-checkbox-group/style.css +1 -0
- package/{dist/components/form-date-picker/index.js → form-date-picker/index.mjs} +45 -36
- package/form-holder/index.mjs +129 -0
- package/{dist/components/form-input/index.js → form-input/index.mjs} +34 -23
- package/{dist/components/form-input-email/index.js → form-input-email/index.mjs} +36 -25
- package/{dist/components/form-input-id-card/index.js → form-input-id-card/index.mjs} +35 -24
- package/{dist/components/form-input-number/index.js → form-input-number/index.mjs} +40 -29
- package/{dist/components/form-input-phone-number/index.js → form-input-phone-number/index.mjs} +37 -26
- package/form-input-tag/index.mjs +108 -0
- package/{dist/components/form-input-time/index.js → form-input-time/index.mjs} +40 -29
- package/form-item/index.mjs +147 -0
- package/{dist/components/form-item → form-item}/style.css +1 -1
- package/{dist/components/form-item-config-provider/index.js → form-item-config-provider/index.mjs} +1 -1
- package/{dist/components/form-item-group/index.js → form-item-group/index.mjs} +4 -4
- package/form-item-group/style.css +1 -0
- package/{dist/components/form-radio-group/index.js → form-radio-group/index.mjs} +51 -40
- package/form-radio-group/style.css +1 -0
- package/{dist/components/form-select/index.js → form-select/index.mjs} +40 -29
- package/{dist/components/form-switch/index.js → form-switch/index.mjs} +35 -24
- package/form-textarea/index.mjs +113 -0
- package/{dist/components/form-view/index.js → form-view/index.mjs} +72 -44
- package/form-view/style.css +1 -0
- package/fy-array/index.mjs +158 -0
- package/fy-array/style.css +1 -0
- package/fy-article/index.mjs +93 -0
- package/fy-article/style.css +1 -0
- package/fy-cascader/index.mjs +132 -0
- package/fy-checkbox/index.mjs +117 -0
- package/fy-checkbox/style.css +1 -0
- package/fy-code/index.mjs +66 -0
- package/fy-curd/index.mjs +3119 -0
- package/fy-curd/style.css +1 -0
- package/fy-date/index.mjs +84 -0
- package/fy-date/style.css +1 -0
- package/fy-draggable/index.mjs +382 -0
- package/fy-draggable/style.css +1 -0
- package/fy-dynamic/index.mjs +337 -0
- package/fy-dynamic/style.css +1 -0
- package/fy-empty/index.mjs +59 -0
- package/fy-empty/style.css +1 -0
- package/fy-form/index.mjs +993 -0
- package/fy-form/style.css +1 -0
- package/fy-form-design/index.mjs +7483 -0
- package/fy-form-design/style.css +1 -0
- package/fy-input/index.mjs +171 -0
- package/fy-input-color/index.mjs +101 -0
- package/fy-input-icon/index.mjs +169 -0
- package/fy-input-icon/style.css +1 -0
- package/fy-input-map/index.mjs +279 -0
- package/fy-input-map/style.css +1 -0
- package/fy-input-number/index.mjs +87 -0
- package/fy-input-table/index.mjs +172 -0
- package/fy-input-table/style.css +1 -0
- package/fy-input-tree/index.mjs +267 -0
- package/fy-input-tree/style.css +1 -0
- package/fy-progress/index.mjs +60 -0
- package/fy-radio/index.mjs +70 -0
- package/fy-radio/style.css +1 -0
- package/fy-rate/index.mjs +106 -0
- package/fy-rate/style.css +1 -0
- package/fy-select/index.mjs +225 -0
- package/fy-select/style.css +1 -0
- package/fy-slider/index.mjs +79 -0
- package/fy-switch/index.mjs +74 -0
- package/fy-tabs/index.mjs +92 -0
- package/fy-time/index.mjs +95 -0
- package/fy-title/index.mjs +40 -0
- package/fy-title/style.css +1 -0
- package/fy-tree/index.mjs +433 -0
- package/fy-tree/style.css +1 -0
- package/fy-u-editor/index.mjs +398 -0
- package/fy-u-editor/style.css +1 -0
- package/fy-upload/index.mjs +592 -0
- package/fy-upload/style.css +1 -0
- package/{dist/components/guide-steps/index.js → guide-steps/index.mjs} +12 -12
- package/{dist/components/guide-steps → guide-steps}/style.css +1 -1
- package/highlight-j-s/index.mjs +76 -0
- package/highlight-j-s/style.css +1 -0
- package/{dist/components/icon-card/index.js → icon-card/index.mjs} +9 -9
- package/{dist/components/icon-card → icon-card}/style.css +1 -1
- package/icon-temp/index.mjs +50 -0
- package/icon-temp/style.css +1 -0
- package/{dist/components/iframe-window/index.js → iframe-window/index.mjs} +5 -5
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.mjs +249 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.mjs +260 -0
- package/image-preview/style.css +1 -0
- package/{dist/components/image-viewer/index.js → image-viewer/index.mjs} +5 -5
- package/image-viewer/style.css +1 -0
- package/index.mjs +627 -0
- package/{dist/components/input-number/index.js → input-number/index.mjs} +2 -2
- package/{dist/components/input-number-range/index.js → input-number-range/index.mjs} +7 -7
- package/input-number-range/style.css +1 -0
- package/{dist/components/keep-view-alive/index.js → keep-view-alive/index.mjs} +6 -2
- package/keyboard/index.mjs +384 -0
- package/keyboard/style.css +1 -0
- package/license/index.mjs +134 -0
- package/{dist/components/loading-view/index.js → loading-view/index.mjs} +5 -5
- package/loading-view/style.css +1 -0
- package/login/index.mjs +250 -0
- package/login/style.css +1 -0
- package/monaco-editor/index.mjs +197 -0
- package/name-avatar/index.mjs +66 -0
- package/name-avatar/style.css +1 -0
- package/{dist/components/nav-bar/index.js → nav-bar/index.mjs} +8 -8
- package/nav-bar/style.css +1 -0
- package/not-implement/index.mjs +35 -0
- package/not-implement/style.css +1 -0
- package/notice/index.mjs +143 -0
- package/notice/style.css +1 -0
- package/package.json +41 -148
- package/{dist/components/page/index.js → page/index.mjs} +8 -8
- package/{dist/components/page-header/index.js → page-header/index.mjs} +6 -6
- package/{dist/components/page-index/index.js → page-index/index.mjs} +58 -34
- package/page-index/style.css +1 -0
- package/page-index-top/index.mjs +141 -0
- package/page-skeleton/index.mjs +67 -0
- package/page-skeleton/style.css +1 -0
- package/{dist/components/page-skeleton-new/index.js → page-skeleton-new/index.mjs} +3 -3
- package/page-skeleton-new/style.css +1 -0
- package/{dist/components/pageable-table/index.js → pageable-table/index.mjs} +149 -100
- package/pageable-table/style.css +1 -0
- package/{dist/components/pageable-view/index.js → pageable-view/index.mjs} +118 -68
- package/pageable-view/style.css +1 -0
- package/photo-swipe/index.mjs +129 -0
- package/present-view/index.mjs +365 -0
- package/present-view/style.css +1 -0
- package/queue/index.mjs +71 -0
- package/queue/style.css +1 -0
- package/record-video/index.mjs +173 -0
- package/record-video/style.css +1 -0
- package/{dist/components/resize-observer/index.js → resize-observer/index.mjs} +6 -6
- package/resize-observer/style.css +1 -0
- package/search/index.mjs +143 -0
- package/search/style.css +1 -0
- package/{dist/components/search-popover/index.js → search-popover/index.mjs} +64 -43
- package/search-popover/style.css +1 -0
- package/sign/index.mjs +132 -0
- package/sign/style.css +1 -0
- package/{dist/components/sign-panel/index.js → sign-panel/index.mjs} +18 -5
- package/sign-panel/style.css +1 -0
- package/skeleton/index.mjs +82 -0
- package/skeleton/style.css +1 -0
- package/{dist/components/split-pane/index.js → split-pane/index.mjs} +125 -28
- package/split-pane/style.css +1 -0
- package/{dist/components/stateful/index.js → stateful/index.mjs} +12 -12
- package/{dist/components/stateful → stateful}/style.css +1 -1
- package/{dist/components/static-pageable-table/index.js → static-pageable-table/index.mjs} +10 -10
- package/static-pageable-table/style.css +1 -0
- package/{dist/components/swiper/index.js → swiper/index.mjs} +49 -24
- package/swiper/style.css +1 -0
- package/{dist/components/tab/index.js → tab/index.mjs} +4 -2
- package/tab/style.css +1 -0
- package/{dist/components/tab-item/index.js → tab-item/index.mjs} +3 -3
- package/{dist/components/table-column/index.js → table-column/index.mjs} +35 -22
- package/{dist/components/table-view/index.js → table-view/index.mjs} +91 -64
- package/table-view/style.css +1 -0
- package/{dist/components/tag-render/index.js → tag-render/index.mjs} +45 -26
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.mjs +108 -0
- package/text-ellipsis/style.css +1 -0
- package/{dist/components/tinymce-wrapper/index.js → tinymce-editor/index.mjs} +446 -71
- package/tinymce-editor/style.css +1 -0
- package/{dist/components/toolbar/index.js → toolbar/index.mjs} +21 -21
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.mjs +108 -0
- package/toolbar-button/style.css +1 -0
- package/verify/index.mjs +80 -0
- package/verify/style.css +1 -0
- package/vue-cron/index.mjs +1410 -0
- package/vue-cron/style.css +1 -0
- package/vue-qr-code/index.mjs +83 -0
- package/vue-quill-editor/index.mjs +117 -0
- package/vue-quill-editor/style.css +1 -0
- package/{dist/components/vue-tags-input/index.js → vue-tags-input/index.mjs} +115 -1
- package/vue-tags-input/style.css +1 -0
- package/vue-tree-select/index.mjs +2881 -0
- package/vue-tree-select/style.css +1 -0
- package/vue-video-player/index.mjs +192 -0
- package/vue-video-player/style.css +1 -0
- package/watermark/index.mjs +95 -0
- package/watermark/style.css +1 -0
- package/web-types.json +14033 -2752
- package/x-input-tag/index.mjs +203 -0
- package/x-input-tag/style.css +1 -0
- package/README.md +0 -27
- package/dist/chunks/3a79781b.js +0 -75
- package/dist/chunks/5a78e0db.js +0 -16
- package/dist/chunks/97652d86.js +0 -26
- package/dist/components/aside-menu/index.js +0 -58
- package/dist/components/awesome-button/index.js +0 -82
- package/dist/components/base.css +0 -1
- package/dist/components/chunk-file-uploader-button/index.js +0 -60
- package/dist/components/chunk-file-uploader-button/style.css +0 -1
- package/dist/components/chunk-file-uploader-drop/index.js +0 -65
- package/dist/components/chunk-file-uploader-drop/style.css +0 -1
- package/dist/components/chunk-file-uploader-file/index.js +0 -311
- package/dist/components/chunk-file-uploader-file/style.css +0 -1
- package/dist/components/chunk-file-uploader-files/index.js +0 -49
- package/dist/components/chunk-file-uploader-files/style.css +0 -1
- package/dist/components/chunk-file-uploader-list/index.js +0 -50
- package/dist/components/chunk-file-uploader-list/style.css +0 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +0 -51
- package/dist/components/chunk-file-uploader-un-support/style.css +0 -1
- package/dist/components/code-mirror-editor/style.css +0 -1
- package/dist/components/context-menu/style.css +0 -1
- package/dist/components/custom-scrollbar/index.js +0 -149
- package/dist/components/dynamic-table/style.css +0 -1
- package/dist/components/editable-progress/style.css +0 -1
- package/dist/components/editable-tree/index.js +0 -789
- package/dist/components/editable-tree/style.css +0 -1
- package/dist/components/element-dialog/style.css +0 -1
- package/dist/components/empty-view/style.css +0 -1
- package/dist/components/error-view/style.css +0 -1
- package/dist/components/flex-column/index.js +0 -50
- package/dist/components/flex-item/index.js +0 -66
- package/dist/components/flex-row/index.js +0 -50
- package/dist/components/flex-scroller/style.css +0 -1
- package/dist/components/form-button/index.js +0 -80
- package/dist/components/form-checkbox-group/style.css +0 -1
- package/dist/components/form-holder/index.js +0 -90
- package/dist/components/form-item/index.js +0 -119
- package/dist/components/form-item-group/style.css +0 -1
- package/dist/components/form-radio-group/style.css +0 -1
- package/dist/components/form-textarea/index.js +0 -102
- package/dist/components/form-view/style.css +0 -1
- package/dist/components/iframe-window/style.css +0 -1
- package/dist/components/image-viewer/style.css +0 -1
- package/dist/components/input-number-range/style.css +0 -1
- package/dist/components/loading-view/style.css +0 -1
- package/dist/components/nav-bar/style.css +0 -1
- package/dist/components/not-implement/index.js +0 -35
- package/dist/components/not-implement/style.css +0 -1
- package/dist/components/page-index/style.css +0 -1
- package/dist/components/page-index-top/index.js +0 -119
- package/dist/components/page-skeleton/index.js +0 -56
- package/dist/components/page-skeleton/style.css +0 -1
- package/dist/components/page-skeleton-new/style.css +0 -1
- package/dist/components/pageable-table/style.css +0 -1
- package/dist/components/pageable-view/style.css +0 -1
- package/dist/components/photo-swipe/index.js +0 -187
- package/dist/components/photo-swipe/style.css +0 -1
- package/dist/components/resize-observer/style.css +0 -1
- package/dist/components/search-popover/style.css +0 -1
- package/dist/components/sign-panel/style.css +0 -1
- package/dist/components/split-pane/style.css +0 -1
- package/dist/components/static-pageable-table/style.css +0 -1
- package/dist/components/swiper/style.css +0 -1
- package/dist/components/tab/style.css +0 -1
- package/dist/components/table-view/style.css +0 -1
- package/dist/components/tag-render/style.css +0 -1
- package/dist/components/tinymce-editor/index.js +0 -173
- package/dist/components/tinymce-editor/style.css +0 -1
- package/dist/components/tinymce-wrapper/style.css +0 -1
- package/dist/components/toolbar/style.css +0 -1
- package/dist/components/toolbar-button/index.js +0 -90
- package/dist/components/toolbar-button/style.css +0 -1
- package/dist/components/trigger/index.js +0 -71
- package/dist/components/vue-tags-input/style.css +0 -1
- package/dist/components/watermark/index.js +0 -63
- package/dist/components/watermark/style.css +0 -1
- package/dist/components/x-dialog/index.js +0 -173
- package/dist/components/x-dialog/style.css +0 -1
- package/dist/index.css +0 -2060
- package/dist/index.es.js +0 -13236
- /package/{dist/components/address-input → address-input}/style.css +0 -0
- /package/{dist/components/aside-menu → aside-menu}/style.css +0 -0
- /package/{dist/components/chunk-file-uploader → chunk-file-uploader}/style.css +0 -0
- /package/{dist/chunks/61ad06b2.js → chunks/form-pick-mixin.y-qhZJi6.mjs} +0 -0
- /package/{dist/chunks/41a066be.js → chunks/input-number-mixin.GE2zr_3s.mjs} +0 -0
- /package/{dist/components/e-charts → e-charts}/style.css +0 -0
- /package/{dist/components/form-input-number → form-input-number}/style.css +0 -0
- /package/{dist/components/input-number → input-number}/style.css +0 -0
- /package/{dist/components/j-s-x-component/index.js → j-s-x-component/index.mjs} +0 -0
- /package/{dist/components/page → page}/style.css +0 -0
- /package/{dist/components/page-header → page-header}/style.css +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
methods: {
|
|
3
|
+
getSlotName(s = {}, n = "D", e) {
|
|
4
|
+
const r = {
|
|
5
|
+
F: "Form",
|
|
6
|
+
H: "Header",
|
|
7
|
+
E: "Error",
|
|
8
|
+
L: "Label",
|
|
9
|
+
S: "Search",
|
|
10
|
+
T: "Type",
|
|
11
|
+
D: ""
|
|
12
|
+
}, t = s.prop + r[n];
|
|
13
|
+
return e ? e[t] : t;
|
|
14
|
+
},
|
|
15
|
+
getSlotList(s = [], n, e) {
|
|
16
|
+
return e = e.map((r) => r.prop), Object.keys(n).filter((r) => {
|
|
17
|
+
let t = !1;
|
|
18
|
+
return e.includes(r) || s.forEach((o) => {
|
|
19
|
+
r.includes(o) && (t = !0);
|
|
20
|
+
}), t;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
a as s
|
|
27
|
+
};
|
|
@@ -55,7 +55,7 @@ const n = {
|
|
|
55
55
|
this.$parent.$emit("on-before-index-change", this.currentIndex);
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
(typeof this.disabled
|
|
58
|
+
(typeof this.disabled == "undefined" || this.disabled === !1) && (this.currentSelected = !0, this.$parent.currentIndex = this.currentIndex, this.$nextTick(() => {
|
|
59
59
|
this.$emit("on-item-click", this.currentIndex);
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { isBlank as l, isArray as g, isObject as m, isBoolean as b, isNumber as A, isString as P } from "@web-utils/core";
|
|
2
|
+
const D = "fy-", f = {
|
|
3
|
+
rowKey: "id",
|
|
4
|
+
rowParentKey: "parentId",
|
|
5
|
+
nodeKey: "id",
|
|
6
|
+
label: "label",
|
|
7
|
+
value: "value",
|
|
8
|
+
desc: "desc",
|
|
9
|
+
groups: "groups",
|
|
10
|
+
title: "title",
|
|
11
|
+
leaf: "leaf",
|
|
12
|
+
children: "children",
|
|
13
|
+
hasChildren: "hasChildren",
|
|
14
|
+
labelText: "名称",
|
|
15
|
+
disabled: "disabled"
|
|
16
|
+
}, M = {
|
|
17
|
+
name: "name",
|
|
18
|
+
url: "url",
|
|
19
|
+
fileName: "file",
|
|
20
|
+
res: ""
|
|
21
|
+
}, I = [
|
|
22
|
+
"dates",
|
|
23
|
+
"date",
|
|
24
|
+
"datetime",
|
|
25
|
+
"datetimerange",
|
|
26
|
+
"daterange",
|
|
27
|
+
"time",
|
|
28
|
+
"timerange",
|
|
29
|
+
"week",
|
|
30
|
+
"month",
|
|
31
|
+
"monthrange",
|
|
32
|
+
"year"
|
|
33
|
+
], R = ["tree", "number", "icon", "color", "table", "map"], L = ["img", "array", "url"], k = ["cascader", "tree", "select"], K = ["slider"], V = L.concat(["upload", "dynamic", "map", "checkbox", "cascader", "dynamic", "timerange", "monthrange", "daterange", "datetimerange", "dates"]), F = I.concat(["select", "checkbox", "radio", "cascader", "tree", "color", "icon", "table", "map"]), T = " | ", B = ",", y = {
|
|
34
|
+
img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
|
|
35
|
+
video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
|
|
36
|
+
audio: /\.(mp3|wav|MP3|WAV)/
|
|
37
|
+
}, G = (e, n) => {
|
|
38
|
+
if (!l(e))
|
|
39
|
+
return y.audio.test(e) || n === "audio" ? "audio" : y.video.test(e) || n === "video" ? "video" : y.img.test(e) || n === "img" ? "img" : !1;
|
|
40
|
+
};
|
|
41
|
+
function U(e = 0, n = 2) {
|
|
42
|
+
return Number(e.toFixed(n));
|
|
43
|
+
}
|
|
44
|
+
function v(e, n = "") {
|
|
45
|
+
let t = u(e);
|
|
46
|
+
return l(n) || n.split(".").forEach((r) => {
|
|
47
|
+
t = l(t[r]) ? "" : t[r];
|
|
48
|
+
}), t;
|
|
49
|
+
}
|
|
50
|
+
const x = (e) => new Function(`return ${e}`)();
|
|
51
|
+
function J(e, n = "", t) {
|
|
52
|
+
let r;
|
|
53
|
+
return l(t) ? g(t) ? r = `obj.${n}=[]` : m(t) ? r = `obj.${n}={}` : b(t) || A(t) ? r = `obj.${n}=undefined` : r = `obj.${n}=''` : P(t) ? r = `obj.${n}='${t}'` : r = `obj.${n}=${t}`, x(r), e;
|
|
54
|
+
}
|
|
55
|
+
function W(e, n) {
|
|
56
|
+
typeof e == "object" && e instanceof Blob && (e = URL.createObjectURL(e));
|
|
57
|
+
const t = document.createElement("a");
|
|
58
|
+
t.href = e, t.download = n || "";
|
|
59
|
+
let r;
|
|
60
|
+
window.MouseEvent ? r = new MouseEvent("click") : (r = document.createEvent("MouseEvents"), r.initMouseEvent(
|
|
61
|
+
"click",
|
|
62
|
+
!0,
|
|
63
|
+
!1,
|
|
64
|
+
window,
|
|
65
|
+
0,
|
|
66
|
+
0,
|
|
67
|
+
0,
|
|
68
|
+
0,
|
|
69
|
+
0,
|
|
70
|
+
!1,
|
|
71
|
+
!1,
|
|
72
|
+
!1,
|
|
73
|
+
!1,
|
|
74
|
+
0,
|
|
75
|
+
null
|
|
76
|
+
)), t.dispatchEvent(r);
|
|
77
|
+
}
|
|
78
|
+
function Y(e) {
|
|
79
|
+
return e.forEach((n, t) => {
|
|
80
|
+
e[t] = Number(n);
|
|
81
|
+
}), e;
|
|
82
|
+
}
|
|
83
|
+
function $(...e) {
|
|
84
|
+
let n = e[0] || {}, t = !1;
|
|
85
|
+
const r = Array.prototype.slice.call(e);
|
|
86
|
+
let s = 1, o, i, c, a, d = !1;
|
|
87
|
+
for (typeof n == "boolean" && (t = n, s++, n = e[1]); s < r.length; s++)
|
|
88
|
+
if ((o = r[s]) != null)
|
|
89
|
+
for (c in o)
|
|
90
|
+
a = o[c], i = n[c], t && (toString.call(a) === "[object Object]" || (d = toString.call(a) === "[object Array]")) ? (d ? i = toString.call(i) === "[object Array]" ? i : [] : i = toString.call(i) === "[object Object]" ? i : {}, n[c] = $(t, i, a)) : a !== void 0 && a !== i && (n[c] = a);
|
|
91
|
+
return n;
|
|
92
|
+
}
|
|
93
|
+
function H(e, n) {
|
|
94
|
+
const t = n.split("."), r = t.splice(0, 1)[0], s = {};
|
|
95
|
+
if (s[r] = {}, t.length >= 2) {
|
|
96
|
+
const o = "{", i = "}";
|
|
97
|
+
let c = "";
|
|
98
|
+
t.forEach((a) => {
|
|
99
|
+
c = `${c}${o}"${a}":`;
|
|
100
|
+
}), c = `${c}""`;
|
|
101
|
+
for (let a = 0; a < t.length; a++)
|
|
102
|
+
c = `${c}${i}`;
|
|
103
|
+
c = JSON.parse(c), s[r] = c;
|
|
104
|
+
}
|
|
105
|
+
return e = $(!0, e, s), e;
|
|
106
|
+
}
|
|
107
|
+
function q(e, n) {
|
|
108
|
+
const t = e.split(","), r = t[0].match(/:(.*?);/)[1], s = atob(t[1]);
|
|
109
|
+
let o = s.length;
|
|
110
|
+
const i = new Uint8Array(o);
|
|
111
|
+
for (; o--; )
|
|
112
|
+
i[o] = s.charCodeAt(o);
|
|
113
|
+
return new File([i], n, {
|
|
114
|
+
type: r
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function z(e, n, t = "prop") {
|
|
118
|
+
let r = -1;
|
|
119
|
+
const s = (() => {
|
|
120
|
+
let o;
|
|
121
|
+
return e.forEach((i) => {
|
|
122
|
+
i.column ? o = "group" : i.children && (o = "tree");
|
|
123
|
+
}), o;
|
|
124
|
+
})();
|
|
125
|
+
return s === "group" ? e.forEach((o) => {
|
|
126
|
+
const i = E(o.column, n, t, !0);
|
|
127
|
+
i !== -1 && (r = i);
|
|
128
|
+
}) : s === "tree" ? r = S(e, n, { value: t }, !0) : r = E(e, n, t, !0), r;
|
|
129
|
+
}
|
|
130
|
+
function Q() {
|
|
131
|
+
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", n = e.length;
|
|
132
|
+
let t = "";
|
|
133
|
+
for (let r = 0; r < 16; r++)
|
|
134
|
+
t += e.charAt(Math.floor(Math.random() * n));
|
|
135
|
+
return t;
|
|
136
|
+
}
|
|
137
|
+
const u = (e) => {
|
|
138
|
+
let n;
|
|
139
|
+
if (g(e))
|
|
140
|
+
n = [];
|
|
141
|
+
else if (m(e))
|
|
142
|
+
n = {};
|
|
143
|
+
else
|
|
144
|
+
return e;
|
|
145
|
+
if (g(e)) {
|
|
146
|
+
e = e;
|
|
147
|
+
let t = 0;
|
|
148
|
+
const r = e.length;
|
|
149
|
+
for (; t < r; t++)
|
|
150
|
+
e[t] && delete e[t].$parent, n.push(u(e[t]));
|
|
151
|
+
} else if (m(e))
|
|
152
|
+
for (const t in e) {
|
|
153
|
+
const r = e[t];
|
|
154
|
+
r && delete r.$parent, n[t] = u(e[t]);
|
|
155
|
+
}
|
|
156
|
+
return n;
|
|
157
|
+
}, X = (e, n = "") => (e || (e = n), e ? (e = `${e}`, e.indexOf("%") === -1 && e.indexOf("px") === -1 && (e = `${e}px`), e) : ""), O = (e, n) => l(e) ? e : n === "number" ? Number(e) : n === "string" ? `${e}` : e, _ = (e = [], n = {}, t) => {
|
|
158
|
+
const r = n.value || f.value, s = n.children || f.children;
|
|
159
|
+
return e.forEach((o) => {
|
|
160
|
+
o[r] = O(o[r], t), o[s] && _(o[s], n, t);
|
|
161
|
+
}), e;
|
|
162
|
+
}, Z = (e, n, t) => {
|
|
163
|
+
if (l(e))
|
|
164
|
+
return n;
|
|
165
|
+
const r = n instanceof Array, s = r ? n : [n];
|
|
166
|
+
t = t || f;
|
|
167
|
+
const o = [];
|
|
168
|
+
for (let i = 0; i < s.length; i++)
|
|
169
|
+
o.push(S(e, s[i], t) || s[i]);
|
|
170
|
+
return r ? o.join(T) : o.join();
|
|
171
|
+
}, ee = (e, n = ["", "$"], t = !0) => {
|
|
172
|
+
const r = t ? u(e) : e;
|
|
173
|
+
for (const s in r)
|
|
174
|
+
n.includes("") && l(r[s]) && delete r[s], n.includes("$") && s.indexOf("$") !== -1 && delete r[s];
|
|
175
|
+
return r;
|
|
176
|
+
}, N = (e = [], n = {}) => {
|
|
177
|
+
let t = u(e);
|
|
178
|
+
const r = n[f.groups] || f.groups;
|
|
179
|
+
return e.forEach((s) => {
|
|
180
|
+
s[r] && (t = t.concat(s[r]));
|
|
181
|
+
}), t;
|
|
182
|
+
}, S = (e, n, t, r = null) => {
|
|
183
|
+
let s;
|
|
184
|
+
r || (e = N(e, t));
|
|
185
|
+
const o = (i) => {
|
|
186
|
+
const c = t.label || f.label, a = t.value || f.value, d = t.children || f.children;
|
|
187
|
+
for (let p = 0; p < i.length; p++) {
|
|
188
|
+
const h = i[p], w = h[d] || [];
|
|
189
|
+
h[a] === n ? s = r ? h : h[c] : o(w);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
return o(e), s;
|
|
193
|
+
}, C = (e) => (Array.isArray(e) ? e : e.data) || [], te = (e, n = "", t = null) => {
|
|
194
|
+
const r = n.split(".");
|
|
195
|
+
let s = e;
|
|
196
|
+
return r[0] === "" && t !== "object" ? C(e) : (r[0] !== "" && r.forEach((o) => {
|
|
197
|
+
s = s[o];
|
|
198
|
+
}), s);
|
|
199
|
+
}, E = (e, n, t, r) => {
|
|
200
|
+
t = t || f.value;
|
|
201
|
+
for (let s = 0; s < e.length; s++)
|
|
202
|
+
if (e[s][t] === n)
|
|
203
|
+
return r ? e[s] : s;
|
|
204
|
+
return -1;
|
|
205
|
+
}, ne = (e = "", n) => {
|
|
206
|
+
const t = e.toString().length;
|
|
207
|
+
e = "";
|
|
208
|
+
for (let r = 0; r < t; r++)
|
|
209
|
+
e = e + n;
|
|
210
|
+
return e;
|
|
211
|
+
}, re = (e = [], n, t) => e.filter((r) => !l(r[n])).sort((r, s) => t(r, s)).concat(e.filter((r) => l(r[n]))), se = (e, n) => e ? (n.forEach((t) => {
|
|
212
|
+
t.includes("$") ? delete e[t] : l(e[t]) || (g(e[t]) ? e[t] = [] : m(e[t]) ? e[t] = {} : b(e[t]) || A(e[t]) ? e[t] = void 0 : e[t] = "");
|
|
213
|
+
}), e) : {}, oe = (e, n) => typeof e == "boolean" ? e : l(e) ? n : e;
|
|
214
|
+
function ie(e = {}, n) {
|
|
215
|
+
n = n || this;
|
|
216
|
+
const t = ["uploadPreview", "uploadBefore", "uploadAfter", "uploadDelete", "uploadError", "uploadExceed"], r = {};
|
|
217
|
+
return e.type === "upload" ? t.forEach((s) => {
|
|
218
|
+
e[s] || (r[s] = n[s]);
|
|
219
|
+
}) : t.forEach((s) => {
|
|
220
|
+
r[s] = n[s];
|
|
221
|
+
}), r;
|
|
222
|
+
}
|
|
223
|
+
export {
|
|
224
|
+
V as A,
|
|
225
|
+
q as B,
|
|
226
|
+
W as C,
|
|
227
|
+
M as D,
|
|
228
|
+
R as I,
|
|
229
|
+
D as K,
|
|
230
|
+
k as M,
|
|
231
|
+
K as R,
|
|
232
|
+
F as S,
|
|
233
|
+
f as a,
|
|
234
|
+
B as b,
|
|
235
|
+
O as c,
|
|
236
|
+
u as d,
|
|
237
|
+
L as e,
|
|
238
|
+
z as f,
|
|
239
|
+
H as g,
|
|
240
|
+
I as h,
|
|
241
|
+
G as i,
|
|
242
|
+
ee as j,
|
|
243
|
+
T as k,
|
|
244
|
+
re as l,
|
|
245
|
+
_ as m,
|
|
246
|
+
te as n,
|
|
247
|
+
oe as o,
|
|
248
|
+
v as p,
|
|
249
|
+
Y as q,
|
|
250
|
+
Q as r,
|
|
251
|
+
X as s,
|
|
252
|
+
ne as t,
|
|
253
|
+
ie as u,
|
|
254
|
+
Z as v,
|
|
255
|
+
U as w,
|
|
256
|
+
J as x,
|
|
257
|
+
se as y,
|
|
258
|
+
x as z
|
|
259
|
+
};
|
|
@@ -3,7 +3,9 @@ function v(r, a, d, h, i, t, f, u) {
|
|
|
3
3
|
a && (e.render = a, e.staticRenderFns = d, e._compiled = !0), h && (e.functional = !0), t && (e._scopeId = "data-v-" + t);
|
|
4
4
|
var o;
|
|
5
5
|
if (f ? (o = function(n) {
|
|
6
|
-
n = n ||
|
|
6
|
+
n = n || // cached call
|
|
7
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
8
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ != "undefined" && (n = __VUE_SSR_CONTEXT__), i && i.call(this, n), n && n._registeredComponents && n._registeredComponents.add(f);
|
|
7
9
|
}, e._ssrRegister = o) : i && (o = u ? function() {
|
|
8
10
|
i.call(
|
|
9
11
|
this,
|
|
@@ -12,9 +12,9 @@ import "codemirror/addon/fold/foldgutter";
|
|
|
12
12
|
import "codemirror/addon/fold/foldgutter.css";
|
|
13
13
|
import "codemirror/addon/fold/brace-fold";
|
|
14
14
|
import "codemirror/addon/fold/comment-fold";
|
|
15
|
-
import { n as j } from "
|
|
16
|
-
var
|
|
17
|
-
var i = {},
|
|
15
|
+
import { n as j } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
16
|
+
var P = function() {
|
|
17
|
+
var i = {}, h = function() {
|
|
18
18
|
var m = { trace: function() {
|
|
19
19
|
}, yy: {}, symbols_: { error: 2, JSONString: 3, STRING: 4, JSONNumber: 5, NUMBER: 6, JSONNullLiteral: 7, NULL: 8, JSONBooleanLiteral: 9, TRUE: 10, FALSE: 11, JSONText: 12, JSONValue: 13, EOF: 14, JSONObject: 15, JSONArray: 16, "{": 17, "}": 18, JSONMemberList: 19, JSONMember: 20, ":": 21, ",": 22, "[": 23, "]": 24, JSONElementList: 25, $accept: 0, $end: 1 }, terminals_: { 2: "error", 4: "STRING", 6: "NUMBER", 8: "NULL", 10: "TRUE", 11: "FALSE", 14: "EOF", 17: "{", 18: "}", 21: ":", 22: ",", 23: "[", 24: "]" }, productions_: [0, [3, 1], [5, 1], [7, 1], [9, 1], [9, 1], [12, 2], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [15, 2], [15, 3], [20, 3], [19, 1], [19, 3], [16, 2], [16, 3], [25, 1], [25, 3]], performAction: function(u, t, n, p, s, e, o) {
|
|
20
20
|
var r = e.length - 1;
|
|
@@ -74,41 +74,41 @@ var M = function() {
|
|
|
74
74
|
var y;
|
|
75
75
|
return y = p.lexer.lex() || 1, typeof y != "number" && (y = p.symbols_[y] || y), y;
|
|
76
76
|
}
|
|
77
|
-
var p = this, s = [0], e = [null], o = [], r = this.table,
|
|
78
|
-
this.lexer.setInput(u), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc
|
|
77
|
+
var p = this, s = [0], e = [null], o = [], r = this.table, v = "", d = 0, N = 0, _ = 0, $ = 2, L = 1;
|
|
78
|
+
this.lexer.setInput(u), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc == "undefined" && (this.lexer.yylloc = {});
|
|
79
79
|
var b = this.lexer.yylloc;
|
|
80
80
|
o.push(b), typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
|
|
81
|
-
for (var
|
|
82
|
-
if (a = s[s.length - 1], this.defaultActions[a] ? c = this.defaultActions[a] : (
|
|
81
|
+
for (var l, S, a, c, w, g = {}, k, f, A, E; ; ) {
|
|
82
|
+
if (a = s[s.length - 1], this.defaultActions[a] ? c = this.defaultActions[a] : (l == null && (l = n()), c = r[a] && r[a][l]), typeof c == "undefined" || !c.length || !c[0]) {
|
|
83
83
|
if (!_) {
|
|
84
84
|
E = [];
|
|
85
|
-
for (
|
|
86
|
-
this.terminals_[
|
|
85
|
+
for (k in r[a])
|
|
86
|
+
this.terminals_[k] && k > 2 && E.push("'" + this.terminals_[k] + "'");
|
|
87
87
|
var x = "";
|
|
88
88
|
this.lexer.showPosition ? x = "Parse error on line " + (d + 1) + `:
|
|
89
89
|
` + this.lexer.showPosition() + `
|
|
90
|
-
Expecting ` + E.join(", ") + ", got '" + this.terminals_[
|
|
90
|
+
Expecting ` + E.join(", ") + ", got '" + this.terminals_[l] + "'" : x = "Parse error on line " + (d + 1) + ": Unexpected " + (l == 1 ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(x, { text: this.lexer.match, token: this.terminals_[l] || l, line: this.lexer.yylineno, loc: b, expected: E });
|
|
91
91
|
}
|
|
92
92
|
if (_ == 3) {
|
|
93
|
-
if (
|
|
93
|
+
if (l == L)
|
|
94
94
|
throw new Error(x || "Parsing halted.");
|
|
95
|
-
N = this.lexer.yyleng,
|
|
95
|
+
N = this.lexer.yyleng, v = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, l = n();
|
|
96
96
|
}
|
|
97
97
|
for (; !($.toString() in r[a]); ) {
|
|
98
98
|
if (a == 0)
|
|
99
99
|
throw new Error(x || "Parsing halted.");
|
|
100
100
|
t(1), a = s[s.length - 1];
|
|
101
101
|
}
|
|
102
|
-
S =
|
|
102
|
+
S = l, l = $, a = s[s.length - 1], c = r[a] && r[a][$], _ = 3;
|
|
103
103
|
}
|
|
104
104
|
if (c[0] instanceof Array && c.length > 1)
|
|
105
|
-
throw new Error("Parse Error: multiple actions possible at state: " + a + ", token: " +
|
|
105
|
+
throw new Error("Parse Error: multiple actions possible at state: " + a + ", token: " + l);
|
|
106
106
|
switch (c[0]) {
|
|
107
107
|
case 1:
|
|
108
|
-
s.push(
|
|
108
|
+
s.push(l), e.push(this.lexer.yytext), o.push(this.lexer.yylloc), s.push(c[1]), l = null, S ? (l = S, S = null) : (N = this.lexer.yyleng, v = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, _ > 0 && _--);
|
|
109
109
|
break;
|
|
110
110
|
case 2:
|
|
111
|
-
if (f = this.productions_[c[1]][1], g.$ = e[e.length - f], g._$ = { first_line: o[o.length - (f || 1)].first_line, last_line: o[o.length - 1].last_line, first_column: o[o.length - (f || 1)].first_column, last_column: o[o.length - 1].last_column }, w = this.performAction.call(g,
|
|
111
|
+
if (f = this.productions_[c[1]][1], g.$ = e[e.length - f], g._$ = { first_line: o[o.length - (f || 1)].first_line, last_line: o[o.length - 1].last_line, first_column: o[o.length - (f || 1)].first_column, last_column: o[o.length - 1].last_column }, w = this.performAction.call(g, v, N, d, this.yy, c[1], e, o), typeof w != "undefined")
|
|
112
112
|
return w;
|
|
113
113
|
f && (s = s.slice(0, -1 * f * 2), e = e.slice(0, -1 * f), o = o.slice(0, -1 * f)), s.push(this.productions_[c[1]][0]), e.push(g.$), o.push(g._$), A = r[s[s.length - 2]][s[s.length - 1]], s.push(A);
|
|
114
114
|
break;
|
|
@@ -161,7 +161,7 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
|
|
|
161
161
|
` + this.showPosition(), { text: "", token: null, line: this.yylineno });
|
|
162
162
|
}, lex: function() {
|
|
163
163
|
var t = this.next();
|
|
164
|
-
return typeof t
|
|
164
|
+
return typeof t != "undefined" ? t : this.lex();
|
|
165
165
|
}, begin: function(t) {
|
|
166
166
|
this.conditionStack.push(t);
|
|
167
167
|
}, popState: function() {
|
|
@@ -208,33 +208,33 @@ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse e
|
|
|
208
208
|
}();
|
|
209
209
|
return m.lexer = J, m;
|
|
210
210
|
}();
|
|
211
|
-
return i.parser =
|
|
212
|
-
return
|
|
211
|
+
return i.parser = h, i.parse = function() {
|
|
212
|
+
return h.parse.apply(h, arguments);
|
|
213
213
|
}, i;
|
|
214
|
-
}(),
|
|
215
|
-
var i = this,
|
|
214
|
+
}(), R = function() {
|
|
215
|
+
var i = this, h = i.$createElement, m = i._self._c || h;
|
|
216
216
|
return m("div", {
|
|
217
217
|
staticClass: "code-mirror-editor"
|
|
218
218
|
}, [m("textarea", {
|
|
219
219
|
ref: "editor"
|
|
220
220
|
})]);
|
|
221
|
-
},
|
|
222
|
-
window.jsonlint =
|
|
221
|
+
}, T = [];
|
|
222
|
+
window.jsonlint = P;
|
|
223
223
|
const O = (i) => {
|
|
224
224
|
if (i)
|
|
225
225
|
try {
|
|
226
226
|
return JSON.stringify(JSON.parse(i), null, 1);
|
|
227
|
-
} catch {
|
|
227
|
+
} catch (h) {
|
|
228
228
|
}
|
|
229
229
|
return i;
|
|
230
|
-
},
|
|
230
|
+
}, U = (i) => {
|
|
231
231
|
if (i)
|
|
232
232
|
try {
|
|
233
233
|
return JSON.stringify(JSON.parse(i));
|
|
234
|
-
} catch {
|
|
234
|
+
} catch (h) {
|
|
235
235
|
}
|
|
236
236
|
return i;
|
|
237
|
-
},
|
|
237
|
+
}, M = {
|
|
238
238
|
name: "CodeMirrorEditor",
|
|
239
239
|
inject: {
|
|
240
240
|
elForm: {
|
|
@@ -252,8 +252,8 @@ const O = (i) => {
|
|
|
252
252
|
},
|
|
253
253
|
watch: {
|
|
254
254
|
value(i) {
|
|
255
|
-
var
|
|
256
|
-
(
|
|
255
|
+
var h;
|
|
256
|
+
(h = this.editor) == null || h.setValue(O(i));
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
mounted() {
|
|
@@ -264,9 +264,12 @@ const O = (i) => {
|
|
|
264
264
|
indentUnit: 2,
|
|
265
265
|
lint: !0,
|
|
266
266
|
foldGutter: !0,
|
|
267
|
+
// lineNumbers: true,
|
|
267
268
|
smartIndent: !0,
|
|
268
269
|
lineWrapping: !0,
|
|
269
270
|
matchBrackets: !0
|
|
271
|
+
// styleActiveLine: true,
|
|
272
|
+
// gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter', 'CodeMirror-lint-markers']
|
|
270
273
|
}), this.editor.setValue(O(this.value)), this.editor.on("blur", this.change), this.editor.on("focus", this.focus), this.editor.setOption("extraKeys", {
|
|
271
274
|
"Ctrl-Alt-L"(i) {
|
|
272
275
|
i.setValue(O(i.getValue()), null, 1);
|
|
@@ -274,24 +277,24 @@ const O = (i) => {
|
|
|
274
277
|
});
|
|
275
278
|
},
|
|
276
279
|
beforeDestroy() {
|
|
277
|
-
var i,
|
|
278
|
-
(i = this.editor) == null || i.off("blur", this.change), (
|
|
280
|
+
var i, h;
|
|
281
|
+
(i = this.editor) == null || i.off("blur", this.change), (h = this.editor) == null || h.toTextArea();
|
|
279
282
|
},
|
|
280
283
|
methods: {
|
|
281
284
|
focus() {
|
|
282
|
-
var i,
|
|
283
|
-
(
|
|
285
|
+
var i, h;
|
|
286
|
+
(h = (i = this.elFormItem).clearValidate) == null || h.call(i);
|
|
284
287
|
},
|
|
285
288
|
change() {
|
|
286
289
|
var i;
|
|
287
|
-
this.$emit("input",
|
|
290
|
+
this.$emit("input", U((i = this.editor) == null ? void 0 : i.getValue()));
|
|
288
291
|
}
|
|
289
292
|
}
|
|
290
293
|
}, I = {};
|
|
291
294
|
var V = /* @__PURE__ */ j(
|
|
292
|
-
|
|
293
|
-
P,
|
|
295
|
+
M,
|
|
294
296
|
R,
|
|
297
|
+
T,
|
|
295
298
|
!1,
|
|
296
299
|
C,
|
|
297
300
|
null,
|
|
@@ -299,8 +302,8 @@ var V = /* @__PURE__ */ j(
|
|
|
299
302
|
null
|
|
300
303
|
);
|
|
301
304
|
function C(i) {
|
|
302
|
-
for (let
|
|
303
|
-
this[
|
|
305
|
+
for (let h in I)
|
|
306
|
+
this[h] = I[h];
|
|
304
307
|
}
|
|
305
308
|
const rt = /* @__PURE__ */ function() {
|
|
306
309
|
return V.exports;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.code-mirror-editor{line-height:normal}.code-mirror-editor .CodeMirror{border:1px solid #dcdfe6;border-radius:4px;overflow:hidden}.code-mirror-editor .CodeMirror.CodeMirror-focused{border-color:#e34e55}
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var c = (e, o, t) => new Promise((r, n) => {
|
|
2
|
+
var d = (i) => {
|
|
3
|
+
try {
|
|
4
|
+
s(t.next(i));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
n(l);
|
|
7
|
+
}
|
|
8
|
+
}, u = (i) => {
|
|
9
|
+
try {
|
|
10
|
+
s(t.throw(i));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
n(l);
|
|
13
|
+
}
|
|
14
|
+
}, s = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(d, u);
|
|
15
|
+
s((t = t.apply(e, o)).next());
|
|
16
|
+
});
|
|
17
|
+
import p from "element-ui/packages/color-picker/src/color";
|
|
18
|
+
import h from "element-ui/src/utils/clickoutside";
|
|
19
|
+
import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
20
|
+
var m = function() {
|
|
21
|
+
var e = this, o = e.$createElement, t = e._self._c || o;
|
|
6
22
|
return t("ElColorPickerDropdown", {
|
|
7
23
|
directives: [{
|
|
8
24
|
name: "clickoutside",
|
|
@@ -30,10 +46,10 @@ var c = function() {
|
|
|
30
46
|
expression: "showPicker"
|
|
31
47
|
}
|
|
32
48
|
});
|
|
33
|
-
},
|
|
34
|
-
const
|
|
49
|
+
}, k = [];
|
|
50
|
+
const v = {
|
|
35
51
|
name: "ColorPicker",
|
|
36
|
-
directives: { Clickoutside:
|
|
52
|
+
directives: { Clickoutside: h },
|
|
37
53
|
props: {
|
|
38
54
|
popperClass: String,
|
|
39
55
|
predefine: Array,
|
|
@@ -52,7 +68,7 @@ const d = {
|
|
|
52
68
|
},
|
|
53
69
|
data() {
|
|
54
70
|
return {
|
|
55
|
-
color: new
|
|
71
|
+
color: new p({ enableAlpha: !1 }),
|
|
56
72
|
showPicker: !1
|
|
57
73
|
};
|
|
58
74
|
},
|
|
@@ -65,8 +81,10 @@ const d = {
|
|
|
65
81
|
},
|
|
66
82
|
visible: {
|
|
67
83
|
immediate: !0,
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
handler(e) {
|
|
85
|
+
return c(this, null, function* () {
|
|
86
|
+
e ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = e;
|
|
87
|
+
});
|
|
70
88
|
}
|
|
71
89
|
}
|
|
72
90
|
},
|
|
@@ -87,24 +105,24 @@ const d = {
|
|
|
87
105
|
this.$emit("update:visible", !1);
|
|
88
106
|
}
|
|
89
107
|
}
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
108
|
+
}, a = {};
|
|
109
|
+
var _ = /* @__PURE__ */ f(
|
|
110
|
+
v,
|
|
111
|
+
m,
|
|
112
|
+
k,
|
|
95
113
|
!1,
|
|
96
|
-
|
|
114
|
+
w,
|
|
97
115
|
null,
|
|
98
116
|
null,
|
|
99
117
|
null
|
|
100
118
|
);
|
|
101
|
-
function
|
|
102
|
-
for (let
|
|
103
|
-
this[
|
|
119
|
+
function w(e) {
|
|
120
|
+
for (let o in a)
|
|
121
|
+
this[o] = a[o];
|
|
104
122
|
}
|
|
105
|
-
const
|
|
106
|
-
return
|
|
123
|
+
const b = /* @__PURE__ */ function() {
|
|
124
|
+
return _.exports;
|
|
107
125
|
}();
|
|
108
126
|
export {
|
|
109
|
-
|
|
127
|
+
b as default
|
|
110
128
|
};
|