@web-utils/component 2.0.13 → 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/address-input/index.mjs +113 -0
- package/address-input/style.css +1 -0
- package/affix/index.mjs +102 -0
- package/affix/style.css +1 -0
- package/aside-menu/index.mjs +58 -0
- package/aside-menu/style.css +1 -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/capsule-tab/index.mjs +52 -0
- package/capsule-tab/style.css +1 -0
- 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/chunk-file-uploader/index.mjs +121 -0
- package/chunk-file-uploader/style.css +1 -0
- 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/chunks/form-input-mixin.IKogWBfn.mjs +24 -0
- package/chunks/form-item-mixin.BilKDUlK.mjs +140 -0
- package/{dist/chunks/822300f3.js → chunks/form-pick-mixin.y-qhZJi6.mjs} +3 -3
- package/chunks/index.LGsb2aDq.mjs +185 -0
- package/chunks/init.Ac4dKUJB.mjs +122 -0
- package/{dist/chunks/44b78389.js → chunks/input-number-mixin.GE2zr_3s.mjs} +8 -8
- 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/chunks/tab-mixin.tM9jcRT8.mjs +81 -0
- package/chunks/util.C2Bhx22L.mjs +259 -0
- package/chunks/vueComponentNormalizer.JwmUNtgn.mjs +32 -0
- package/code-mirror-editor/index.mjs +313 -0
- package/code-mirror-editor/style.css +1 -0
- package/color-picker/index.mjs +128 -0
- package/comment/index.mjs +90 -0
- package/comment/style.css +1 -0
- package/confirm-button/index.mjs +57 -0
- package/confirmable/index.mjs +28 -0
- package/context-menu/index.mjs +255 -0
- 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/data-table-picker/index.mjs +137 -0
- 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/dynamic-table/index.mjs +195 -0
- package/dynamic-table/style.css +1 -0
- package/e-charts/index.mjs +216 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.mjs +136 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.mjs +141 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.mjs +844 -0
- package/editable-tree/style.css +1 -0
- package/egd-collapse/index.mjs +79 -0
- package/egd-collapse-item/index.mjs +134 -0
- package/element-dialog/index.mjs +296 -0
- package/element-dialog/style.css +1 -0
- package/empty-view/index.mjs +69 -0
- package/empty-view/style.css +1 -0
- package/error-view/index.mjs +61 -0
- 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/flex-scroller/index.mjs +47 -0
- 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/form-cascader/index.mjs +163 -0
- package/form-checkbox-group/index.mjs +203 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.mjs +191 -0
- package/form-holder/index.mjs +129 -0
- package/form-input/index.mjs +117 -0
- package/form-input-email/index.mjs +108 -0
- package/form-input-id-card/index.mjs +115 -0
- package/form-input-number/index.mjs +134 -0
- package/form-input-number/style.css +1 -0
- package/form-input-phone-number/index.mjs +109 -0
- package/form-input-tag/index.mjs +108 -0
- package/form-input-time/index.mjs +135 -0
- package/form-item/index.mjs +147 -0
- package/form-item/style.css +1 -0
- package/form-item-config-provider/index.mjs +63 -0
- package/form-item-group/index.mjs +169 -0
- package/form-item-group/style.css +1 -0
- package/form-radio-group/index.mjs +181 -0
- package/form-radio-group/style.css +1 -0
- package/form-select/index.mjs +165 -0
- package/form-switch/index.mjs +108 -0
- package/form-textarea/index.mjs +113 -0
- package/form-view/index.mjs +371 -0
- 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/guide-steps/index.mjs +94 -0
- package/guide-steps/style.css +1 -0
- package/highlight-j-s/index.mjs +76 -0
- package/highlight-j-s/style.css +1 -0
- package/icon-card/index.mjs +62 -0
- package/icon-card/style.css +1 -0
- package/icon-temp/index.mjs +50 -0
- package/icon-temp/style.css +1 -0
- package/iframe-window/index.mjs +61 -0
- 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/image-viewer/index.mjs +95 -0
- package/image-viewer/style.css +1 -0
- package/index.mjs +627 -0
- package/input-number/index.mjs +274 -0
- package/input-number/style.css +1 -0
- package/input-number-range/index.mjs +110 -0
- package/input-number-range/style.css +1 -0
- package/{dist/components/j-s-x-component/index.js → j-s-x-component/index.mjs} +4 -4
- package/keep-view-alive/index.mjs +123 -0
- package/keyboard/index.mjs +384 -0
- package/keyboard/style.css +1 -0
- package/license/index.mjs +134 -0
- package/loading-view/index.mjs +61 -0
- 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/nav-bar/index.mjs +52 -0
- 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/page/index.mjs +40 -0
- package/page/style.css +1 -0
- package/page-header/index.mjs +56 -0
- package/page-header/style.css +1 -0
- package/page-index/index.mjs +175 -0
- 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/page-skeleton-new/index.mjs +98 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.mjs +478 -0
- package/pageable-table/style.css +1 -0
- package/pageable-view/index.mjs +378 -0
- 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/resize-observer/index.mjs +62 -0
- package/resize-observer/style.css +1 -0
- package/search/index.mjs +143 -0
- package/search/style.css +1 -0
- package/search-popover/index.mjs +412 -0
- package/search-popover/style.css +1 -0
- package/sign/index.mjs +132 -0
- package/sign/style.css +1 -0
- package/sign-panel/index.mjs +255 -0
- package/sign-panel/style.css +1 -0
- package/skeleton/index.mjs +82 -0
- package/skeleton/style.css +1 -0
- package/split-pane/index.mjs +306 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.mjs +84 -0
- package/stateful/style.css +1 -0
- package/static-pageable-table/index.mjs +92 -0
- package/static-pageable-table/style.css +1 -0
- package/swiper/index.mjs +183 -0
- package/swiper/style.css +1 -0
- package/tab/index.mjs +147 -0
- package/tab/style.css +1 -0
- package/tab-item/index.mjs +73 -0
- package/table-column/index.mjs +102 -0
- package/table-view/index.mjs +390 -0
- package/table-view/style.css +1 -0
- package/tag-render/index.mjs +116 -0
- 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} +479 -133
- package/tinymce-editor/style.css +1 -0
- package/toolbar/index.mjs +217 -0
- 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/vue-tags-input/index.mjs +553 -0
- 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/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
- package/dist/chunks/e1939731.js +0 -17
- package/dist/components/address-input/index.js +0 -126
- package/dist/components/address-input/style.css +0 -15
- package/dist/components/aside-menu/index.js +0 -64
- package/dist/components/aside-menu/style.css +0 -9
- package/dist/components/awesome-button/index.js +0 -85
- package/dist/components/base.css +0 -66
- package/dist/components/capsule-tab/index.js +0 -58
- package/dist/components/capsule-tab/style.css +0 -32
- package/dist/components/chunk-file-uploader/index.js +0 -153
- package/dist/components/chunk-file-uploader/style.css +0 -4
- package/dist/components/chunk-file-uploader-button/index.js +0 -66
- package/dist/components/chunk-file-uploader-button/style.css +0 -17
- package/dist/components/chunk-file-uploader-drop/index.js +0 -79
- package/dist/components/chunk-file-uploader-drop/style.css +0 -12
- package/dist/components/chunk-file-uploader-file/index.js +0 -388
- package/dist/components/chunk-file-uploader-file/style.css +0 -125
- package/dist/components/chunk-file-uploader-files/index.js +0 -55
- package/dist/components/chunk-file-uploader-files/style.css +0 -9
- package/dist/components/chunk-file-uploader-list/index.js +0 -56
- package/dist/components/chunk-file-uploader-list/style.css +0 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +0 -59
- package/dist/components/chunk-file-uploader-un-support/style.css +0 -6
- package/dist/components/code-mirror-editor/index.js +0 -338
- package/dist/components/code-mirror-editor/style.css +0 -17
- package/dist/components/color-picker/index.js +0 -129
- package/dist/components/confirm-button/index.js +0 -59
- package/dist/components/confirmable/index.js +0 -29
- package/dist/components/context-menu/index.js +0 -265
- package/dist/components/context-menu/style.css +0 -88
- package/dist/components/custom-scrollbar/index.js +0 -167
- package/dist/components/data-table-picker/index.js +0 -156
- package/dist/components/dynamic-table/index.js +0 -219
- package/dist/components/dynamic-table/style.css +0 -30
- package/dist/components/e-charts/index.js +0 -310
- package/dist/components/e-charts/style.css +0 -10
- package/dist/components/editable-progress/index.js +0 -174
- package/dist/components/editable-progress/style.css +0 -37
- package/dist/components/editable-tree/index.js +0 -1004
- package/dist/components/editable-tree/style.css +0 -82
- package/dist/components/egd-collapse/index.js +0 -92
- package/dist/components/egd-collapse-item/index.js +0 -148
- package/dist/components/element-dialog/index.js +0 -295
- package/dist/components/element-dialog/style.css +0 -102
- package/dist/components/empty-view/index.js +0 -75
- package/dist/components/empty-view/style.css +0 -17
- package/dist/components/error-view/index.js +0 -67
- package/dist/components/error-view/style.css +0 -17
- package/dist/components/flex-column/index.js +0 -65
- package/dist/components/flex-item/index.js +0 -94
- package/dist/components/flex-row/index.js +0 -65
- package/dist/components/flex-scroller/index.js +0 -53
- package/dist/components/flex-scroller/style.css +0 -20
- package/dist/components/form-button/index.js +0 -84
- package/dist/components/form-cascader/index.js +0 -161
- package/dist/components/form-checkbox-group/index.js +0 -217
- package/dist/components/form-checkbox-group/style.css +0 -51
- package/dist/components/form-date-picker/index.js +0 -244
- package/dist/components/form-holder/index.js +0 -97
- package/dist/components/form-input/index.js +0 -112
- package/dist/components/form-input-email/index.js +0 -109
- package/dist/components/form-input-id-card/index.js +0 -110
- package/dist/components/form-input-number/index.js +0 -130
- package/dist/components/form-input-number/style.css +0 -12
- package/dist/components/form-input-phone-number/index.js +0 -104
- package/dist/components/form-input-time/index.js +0 -130
- package/dist/components/form-item/index.js +0 -162
- package/dist/components/form-item/style.css +0 -11
- package/dist/components/form-item-config-provider/index.js +0 -64
- package/dist/components/form-item-group/index.js +0 -195
- package/dist/components/form-item-group/style.css +0 -30
- package/dist/components/form-radio-group/index.js +0 -189
- package/dist/components/form-radio-group/style.css +0 -53
- package/dist/components/form-select/index.js +0 -169
- package/dist/components/form-switch/index.js +0 -103
- package/dist/components/form-textarea/index.js +0 -108
- package/dist/components/form-view/index.js +0 -410
- package/dist/components/form-view/style.css +0 -158
- package/dist/components/guide-steps/index.js +0 -108
- package/dist/components/guide-steps/style.css +0 -34
- package/dist/components/icon-card/index.js +0 -68
- package/dist/components/icon-card/style.css +0 -56
- package/dist/components/iframe-window/index.js +0 -67
- package/dist/components/iframe-window/style.css +0 -20
- package/dist/components/image-viewer/index.js +0 -113
- package/dist/components/image-viewer/style.css +0 -21
- package/dist/components/input-number/index.js +0 -340
- package/dist/components/input-number/style.css +0 -15
- package/dist/components/input-number-range/index.js +0 -122
- package/dist/components/input-number-range/style.css +0 -12
- package/dist/components/keep-view-alive/index.js +0 -166
- package/dist/components/loading-view/index.js +0 -67
- package/dist/components/loading-view/style.css +0 -17
- package/dist/components/nav-bar/index.js +0 -62
- package/dist/components/nav-bar/style.css +0 -17
- package/dist/components/not-implement/index.js +0 -43
- package/dist/components/not-implement/style.css +0 -15
- package/dist/components/page/index.js +0 -46
- package/dist/components/page/style.css +0 -12
- package/dist/components/page-header/index.js +0 -62
- package/dist/components/page-header/style.css +0 -14
- package/dist/components/page-index/index.js +0 -172
- package/dist/components/page-index/style.css +0 -23
- package/dist/components/page-index-top/index.js +0 -134
- package/dist/components/page-skeleton/index.js +0 -62
- package/dist/components/page-skeleton/style.css +0 -23
- package/dist/components/page-skeleton-new/index.js +0 -104
- package/dist/components/page-skeleton-new/style.css +0 -42
- package/dist/components/pageable-table/index.js +0 -496
- package/dist/components/pageable-table/style.css +0 -72
- package/dist/components/pageable-view/index.js +0 -398
- package/dist/components/pageable-view/style.css +0 -69
- package/dist/components/photo-swipe/index.js +0 -228
- package/dist/components/photo-swipe/style.css +0 -20
- package/dist/components/resize-observer/index.js +0 -96
- package/dist/components/resize-observer/style.css +0 -31
- package/dist/components/search-popover/index.js +0 -449
- package/dist/components/search-popover/style.css +0 -93
- package/dist/components/sign-panel/index.js +0 -292
- package/dist/components/sign-panel/style.css +0 -97
- package/dist/components/split-pane/index.js +0 -270
- package/dist/components/split-pane/style.css +0 -100
- package/dist/components/stateful/index.js +0 -87
- package/dist/components/stateful/style.css +0 -33
- package/dist/components/static-pageable-table/index.js +0 -99
- package/dist/components/static-pageable-table/style.css +0 -9
- package/dist/components/swiper/index.js +0 -223
- package/dist/components/swiper/style.css +0 -43
- package/dist/components/tab/index.js +0 -163
- package/dist/components/tab/style.css +0 -122
- package/dist/components/tab-item/index.js +0 -78
- package/dist/components/table-column/index.js +0 -91
- package/dist/components/table-view/index.js +0 -434
- package/dist/components/table-view/style.css +0 -95
- package/dist/components/tag-render/index.js +0 -111
- package/dist/components/tag-render/style.css +0 -33
- package/dist/components/tinymce-editor/index.js +0 -189
- package/dist/components/tinymce-editor/style.css +0 -43
- package/dist/components/tinymce-wrapper/style.css +0 -36
- package/dist/components/toolbar/index.js +0 -238
- package/dist/components/toolbar/style.css +0 -39
- package/dist/components/toolbar-button/index.js +0 -97
- package/dist/components/toolbar-button/style.css +0 -21
- package/dist/components/trigger/index.js +0 -78
- package/dist/components/vue-tags-input/index.js +0 -559
- package/dist/components/vue-tags-input/style.css +0 -682
- package/dist/components/watermark/index.js +0 -75
- package/dist/components/watermark/style.css +0 -11
- package/dist/components/x-dialog/index.js +0 -199
- package/dist/components/x-dialog/style.css +0 -15
- package/dist/index.css +0 -2972
- package/dist/index.es.js +0 -15689
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body,.dialog-form .el-drawer__body{flex-direction:column;flex:auto;padding:0;display:flex}.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body .avue-form,.dialog-form .el-drawer__body .avue-form{flex:auto}.dialog-form .el-drawer .el-drawer__body{height:100%}.dialog-form .el-drawer .avue-form{padding:10px}.avue-crud{width:100%;margin:0 auto}.avue-crud .el-card+.el-card{margin-top:8px}.avue-crud--card .el-card{border:none}.avue-crud--card .el-card__body{padding:0}.avue-crud--card .el-card+.el-card{margin-top:0}.avue-crud .el-table .el-form-item{width:100%;margin-bottom:0;display:inline-block}.avue-crud .el-table .el-form-item__label{position:absolute;left:2px}.avue-crud .el-table .el-form-item__content{font-size:inherit;line-height:inherit}.avue-crud .el-table .el-form-item__error{text-align:left;width:100%;position:relative}.avue-crud .el-dropdown+.el-button{margin-left:10px}.avue-crud .el-checkbox:last-of-type{margin-right:0}.avue-crud .el-range-editor--mini{height:28px}.avue-crud__img{justify-content:center;display:flex}.avue-crud__img>*{object-fit:contain;height:50px;margin-right:5px;font-size:50px}.avue-crud__column .el-checkbox{cursor:move;margin-bottom:10px}.avue-crud__menu{background-color:#fff;justify-content:space-between;width:100%;height:auto;min-height:40px;margin-bottom:5px;display:flex;position:relative;overflow:hidden}.avue-crud__search .el-form-item--medium.el-form-item{margin-bottom:22px}.avue-crud__search .el-form-item--mini.el-form-item,.avue-crud__search .el-form-item--small.el-form-item{margin-bottom:14px}.avue-crud .el-table--mini .avue-crud__color{width:20px;height:20px}.avue-crud .el-table--mini .avue-crud__icon{font-size:20px}.avue-crud .el-table--small .avue-crud__color{width:30px;height:30px}.avue-crud .el-table--small .avue-crud__icon{font-size:30px}.avue-crud th{color:rgba(0,0,0,.85);word-break:break-word;background-color:#fafafa}.avue-crud table td{line-height:26px}.avue-crud--indeterminate .is-indeterminate .el-checkbox__inner{background-color:#fff;border-color:#dcdfe6}.avue-crud .el-table th{color:rgba(0,0,0,.85);word-break:break-word;background-color:#fafafa}.avue-crud__color{border-radius:5px;width:40px;height:40px;margin:0 auto;display:block}.avue-crud__icon{font-size:45px}.avue-crud__icon--small{width:20px;height:20px;font-size:20px}.avue-crud__ghost{cursor:move;opacity:.4}.is-always-shadow+.avue-crud__pagination{padding:0}.avue-crud__pagination{text-align:right;padding:25px 0 20px 20px;position:relative}.avue-crud__pagination .el-pagination{display:inline-block}.avue-crud__form{padding:0 8px}.avue-crud__empty{padding:20px 0}.avue-crud__empty .el-empty__description{margin-top:0}.avue-crud__header{margin-bottom:10px}.avue-crud__header>.el-button{padding:12px 25px}.avue-crud__title{justify-content:space-between;align-items:center;margin-bottom:20px;font-size:22px;font-weight:700;display:flex}.avue-crud__tip{align-items:center;margin:0 0 8px;font-size:12px;display:flex}.avue-crud__tip-name{margin-right:10px}.avue-crud__tip-count{font-size:16px;font-weight:600}.avue-crud__tip .el-button{margin-bottom:0}.avue-crud__filter-item{justify-content:center;align-items:center;margin-bottom:12px;display:flex}.avue-crud__filter-menu{margin-bottom:20px;padding:0 5px}.avue-crud__filter-label{margin:0 5px;width:120px!important}.avue-crud__filter-symbol{margin:0 5px;width:80px!important}.avue-crud__filter-value{margin:0 5px;width:150px!important}.avue-crud__filter-value .el-date-editor.el-input,.avue-crud__filter-value .el-date-editor.el-input__inner{width:100%}.avue-crud__filter-icon{margin-left:10px}.avue-crud__dialog .el-drawer__header .avue-crud__dialog__menu{padding-right:0}.avue-crud__dialog__header{justify-content:space-between;align-items:center;display:flex}.avue-crud__dialog__menu{padding-right:20px}.avue-crud__dialog__menu i{color:#909399;font-size:15px}.avue-crud__dialog__menu i:hover{color:#409eff}.avue-crud__dialog .el-dialog__body,.avue-crud__dialog .el-drawer__body{padding:20px 20px 5px 10px}.avue-crud__dialog .el-drawer__close-btn{margin-top:2px;font-size:18px}.avue-crud__dialog .el-scrollbar__wrap{overflow-x:hidden}.avue-crud__dialog .avue-form__menu{padding-top:15px}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { p as n, e as o } from "../chunks/event.NHA7rYFE.mjs";
|
|
2
|
+
import { n as i } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
|
+
var s = function() {
|
|
4
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
5
|
+
return t("div", {
|
|
6
|
+
staticClass: "avue-date"
|
|
7
|
+
}, [t("ElDatePicker", {
|
|
8
|
+
attrs: {
|
|
9
|
+
type: e.type,
|
|
10
|
+
"popper-class": e.popperClass,
|
|
11
|
+
size: e.size,
|
|
12
|
+
editable: e.editable,
|
|
13
|
+
"unlink-panels": e.unlinkPanels,
|
|
14
|
+
readonly: e.readonly,
|
|
15
|
+
"default-value": e.defaultValue,
|
|
16
|
+
"default-time": e.defaultTime,
|
|
17
|
+
"range-separator": e.rangeSeparator,
|
|
18
|
+
"start-placeholder": e.startPlaceholder || "开始",
|
|
19
|
+
"end-placeholder": e.endPlaceholder || "结束",
|
|
20
|
+
format: e.format,
|
|
21
|
+
clearable: e.clearableVal,
|
|
22
|
+
"picker-options": e.pickerOptions,
|
|
23
|
+
"value-format": e.valueFormat,
|
|
24
|
+
placeholder: e.placeholder,
|
|
25
|
+
disabled: e.disabled
|
|
26
|
+
},
|
|
27
|
+
on: {
|
|
28
|
+
blur: e.handleBlur,
|
|
29
|
+
focus: e.handleFocus
|
|
30
|
+
},
|
|
31
|
+
nativeOn: {
|
|
32
|
+
click: function(l) {
|
|
33
|
+
return e.handleClick.apply(null, arguments);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
model: {
|
|
37
|
+
value: e.text,
|
|
38
|
+
callback: function(l) {
|
|
39
|
+
e.text = l;
|
|
40
|
+
},
|
|
41
|
+
expression: "text"
|
|
42
|
+
}
|
|
43
|
+
})], 1);
|
|
44
|
+
}, c = [];
|
|
45
|
+
const p = {
|
|
46
|
+
name: "FyDate",
|
|
47
|
+
mixins: [n, o],
|
|
48
|
+
props: {
|
|
49
|
+
editable: Boolean,
|
|
50
|
+
unlinkPanels: Boolean,
|
|
51
|
+
startPlaceholder: String,
|
|
52
|
+
endPlaceholder: String,
|
|
53
|
+
rangeSeparator: String,
|
|
54
|
+
defaultValue: [String, Array],
|
|
55
|
+
defaultTime: [String, Array],
|
|
56
|
+
pickerOptions: Object,
|
|
57
|
+
type: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "date"
|
|
60
|
+
},
|
|
61
|
+
valueFormat: String,
|
|
62
|
+
format: String
|
|
63
|
+
}
|
|
64
|
+
}, r = {};
|
|
65
|
+
var u = /* @__PURE__ */ i(
|
|
66
|
+
p,
|
|
67
|
+
s,
|
|
68
|
+
c,
|
|
69
|
+
!1,
|
|
70
|
+
d,
|
|
71
|
+
null,
|
|
72
|
+
null,
|
|
73
|
+
null
|
|
74
|
+
);
|
|
75
|
+
function d(e) {
|
|
76
|
+
for (let a in r)
|
|
77
|
+
this[a] = r[a];
|
|
78
|
+
}
|
|
79
|
+
const v = /* @__PURE__ */ function() {
|
|
80
|
+
return u.exports;
|
|
81
|
+
}();
|
|
82
|
+
export {
|
|
83
|
+
v as default
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-date__group{align-items:center;display:flex}.avue-date__radio .el-radio-button:last-child .el-radio-button__inner{border-right:0;border-radius:0}.avue-date__date{width:300px}.avue-date__date .el-date-editor{border-top-left-radius:0;border-bottom-left-radius:0}
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { s as l, w as a } from "../chunks/util.C2Bhx22L.mjs";
|
|
2
|
+
import { n as v } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
|
+
var g = function() {
|
|
4
|
+
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
5
|
+
return s("div", {
|
|
6
|
+
class: {
|
|
7
|
+
"avue-draggable__active": (e.active || e.overActive) && !e.readonly,
|
|
8
|
+
"avue-draggable__move": e.moveActive,
|
|
9
|
+
"avue-draggable__click": e.disabled
|
|
10
|
+
},
|
|
11
|
+
style: e.styleName,
|
|
12
|
+
on: {
|
|
13
|
+
mousedown: function(i) {
|
|
14
|
+
return i.stopPropagation(), e.handleMove.apply(null, arguments);
|
|
15
|
+
},
|
|
16
|
+
mouseover: function(i) {
|
|
17
|
+
return i.stopPropagation(), e.handleOver.apply(null, arguments);
|
|
18
|
+
},
|
|
19
|
+
mouseout: function(i) {
|
|
20
|
+
return i.stopPropagation(), e.handleOut.apply(null, arguments);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, [s("ElInput", {
|
|
24
|
+
ref: "input",
|
|
25
|
+
staticClass: "avue-draggable__focus",
|
|
26
|
+
model: {
|
|
27
|
+
value: e.value,
|
|
28
|
+
callback: function(i) {
|
|
29
|
+
e.value = i;
|
|
30
|
+
},
|
|
31
|
+
expression: "value"
|
|
32
|
+
}
|
|
33
|
+
}), s("div", {
|
|
34
|
+
ref: "wrapper",
|
|
35
|
+
staticClass: "avue-draggable__wrapper"
|
|
36
|
+
}, [(e.active || e.overActive || e.moveActive) && !e.readonly ? [s("div", {
|
|
37
|
+
staticClass: "avue-draggable__line['left'])",
|
|
38
|
+
style: e.styleLineName
|
|
39
|
+
}), s("div", {
|
|
40
|
+
staticClass: "avue-draggable__line['top'])",
|
|
41
|
+
style: e.styleLineName
|
|
42
|
+
}), s("div", {
|
|
43
|
+
staticClass: "avue-draggable__line['label'])",
|
|
44
|
+
style: e.styleLabelName
|
|
45
|
+
}, [e._v(" " + e._s(e.baseLeft) + "," + e._s(e.baseTop) + " ")])] : e._e(), e.readonly ? e._e() : [e._l(e.rangeList, function(i, h) {
|
|
46
|
+
return [e.active ? s("div", {
|
|
47
|
+
key: h,
|
|
48
|
+
staticClass: "avue-draggable__range[item.classname])",
|
|
49
|
+
style: [e.styleRangeName, e.getRangeStyle(i.classname)],
|
|
50
|
+
on: {
|
|
51
|
+
mousedown: function(n) {
|
|
52
|
+
return n.stopPropagation(), e.rangeMove(n, i.classname);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}) : e._e()];
|
|
56
|
+
})], s("div", {
|
|
57
|
+
directives: [{
|
|
58
|
+
name: "show",
|
|
59
|
+
rawName: "v-show",
|
|
60
|
+
value: e.active || e.overActive,
|
|
61
|
+
expression: "active || overActive"
|
|
62
|
+
}],
|
|
63
|
+
staticClass: "avue-draggable__menu",
|
|
64
|
+
style: e.styleMenuName
|
|
65
|
+
}, [e._t("menu", null, {
|
|
66
|
+
zIndex: e.zIndex,
|
|
67
|
+
index: e.index
|
|
68
|
+
})], 2), s("div", {
|
|
69
|
+
ref: "item",
|
|
70
|
+
staticClass: "avue-draggable__item"
|
|
71
|
+
}, [e._t("default")], 2), !e.disabled && e.mask ? s("div", {
|
|
72
|
+
staticClass: "avue-draggable__mask"
|
|
73
|
+
}) : e._e()], 2)], 1);
|
|
74
|
+
}, y = [];
|
|
75
|
+
const _ = {
|
|
76
|
+
name: "FyDraggable",
|
|
77
|
+
props: {
|
|
78
|
+
index: {
|
|
79
|
+
type: [String, Number]
|
|
80
|
+
},
|
|
81
|
+
mask: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: !0
|
|
84
|
+
},
|
|
85
|
+
scale: {
|
|
86
|
+
type: Number,
|
|
87
|
+
default: 1
|
|
88
|
+
},
|
|
89
|
+
readonly: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !1
|
|
92
|
+
},
|
|
93
|
+
resize: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !0
|
|
96
|
+
},
|
|
97
|
+
disabled: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: !1
|
|
100
|
+
},
|
|
101
|
+
lock: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !1
|
|
104
|
+
},
|
|
105
|
+
step: {
|
|
106
|
+
type: Number,
|
|
107
|
+
default: 1
|
|
108
|
+
},
|
|
109
|
+
zIndex: {
|
|
110
|
+
type: [Number, String],
|
|
111
|
+
default: 1
|
|
112
|
+
},
|
|
113
|
+
left: {
|
|
114
|
+
type: Number,
|
|
115
|
+
default: 0
|
|
116
|
+
},
|
|
117
|
+
top: {
|
|
118
|
+
type: Number,
|
|
119
|
+
default: 0
|
|
120
|
+
},
|
|
121
|
+
width: {
|
|
122
|
+
type: Number
|
|
123
|
+
},
|
|
124
|
+
height: {
|
|
125
|
+
type: Number
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
data() {
|
|
129
|
+
return {
|
|
130
|
+
first: !0,
|
|
131
|
+
value: "",
|
|
132
|
+
baseWidth: 0,
|
|
133
|
+
baseHeight: 0,
|
|
134
|
+
baseLeft: 0,
|
|
135
|
+
baseTop: 0,
|
|
136
|
+
children: {},
|
|
137
|
+
moveActive: !1,
|
|
138
|
+
overActive: !1,
|
|
139
|
+
rangeActive: !1,
|
|
140
|
+
active: !1,
|
|
141
|
+
keyDown: null,
|
|
142
|
+
rangeList: [
|
|
143
|
+
{
|
|
144
|
+
classname: "left"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
classname: "right"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
classname: "top"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
classname: "bottom"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
classname: "top-left"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
classname: "top-right"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
classname: "bottom-left"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
classname: "bottom-right"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
computed: {
|
|
171
|
+
scaleVal() {
|
|
172
|
+
return this.scale;
|
|
173
|
+
},
|
|
174
|
+
styleMenuName() {
|
|
175
|
+
return {
|
|
176
|
+
transformOrigin: "0 0",
|
|
177
|
+
transform: `scale(${this.scaleVal})`
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
styleLineName() {
|
|
181
|
+
return {
|
|
182
|
+
borderWidth: l(this.scaleVal)
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
styleRangeName() {
|
|
186
|
+
const e = 10 * this.scaleVal;
|
|
187
|
+
return {
|
|
188
|
+
width: l(e),
|
|
189
|
+
height: l(e)
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
styleLabelName() {
|
|
193
|
+
return {
|
|
194
|
+
fontSize: l(18 * this.scaleVal)
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
styleName() {
|
|
198
|
+
return Object.assign(
|
|
199
|
+
(() => this.active ? Object.assign(
|
|
200
|
+
{
|
|
201
|
+
zIndex: 9999
|
|
202
|
+
},
|
|
203
|
+
this.styleLineName
|
|
204
|
+
) : { zIndex: this.zIndex })(),
|
|
205
|
+
{
|
|
206
|
+
top: l(this.baseTop),
|
|
207
|
+
left: l(this.baseLeft),
|
|
208
|
+
width: l(this.baseWidth),
|
|
209
|
+
height: l(this.baseHeight)
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
watch: {
|
|
215
|
+
active(e) {
|
|
216
|
+
e ? this.handleKeydown() : document.onkeydown = this.keyDown;
|
|
217
|
+
},
|
|
218
|
+
width(e) {
|
|
219
|
+
this.baseWidth = a(e) || this.children.offsetWidth;
|
|
220
|
+
},
|
|
221
|
+
height(e) {
|
|
222
|
+
this.baseHeight = a(e) || this.children.offsetHeight;
|
|
223
|
+
},
|
|
224
|
+
left(e) {
|
|
225
|
+
this.baseLeft = a(e);
|
|
226
|
+
},
|
|
227
|
+
top(e) {
|
|
228
|
+
this.baseTop = a(e);
|
|
229
|
+
},
|
|
230
|
+
baseWidth(e) {
|
|
231
|
+
this.$refs.wrapper.style.width = l(e), this.resize && this.children.style && (this.children.style.width = l(e));
|
|
232
|
+
},
|
|
233
|
+
baseHeight(e) {
|
|
234
|
+
this.$refs.wrapper.style.height = l(e), this.resize && this.children.style && (this.children.style.height = l(e));
|
|
235
|
+
},
|
|
236
|
+
baseLeft(e, t) {
|
|
237
|
+
this.first || this.setMove(e - t, 0);
|
|
238
|
+
},
|
|
239
|
+
baseTop(e, t) {
|
|
240
|
+
this.first || this.setMove(0, e - t);
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
mounted() {
|
|
244
|
+
this.init();
|
|
245
|
+
},
|
|
246
|
+
methods: {
|
|
247
|
+
init() {
|
|
248
|
+
this.children = this.$refs.item.firstChild, this.baseWidth = a(this.width) || this.children.offsetWidth, this.baseHeight = a(this.height) || this.children.offsetHeight, this.baseLeft = a(this.left), this.baseTop = a(this.top), this.keyDown = document.onkeydown, this.$nextTick(() => {
|
|
249
|
+
this.first = !1;
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
setMove(e, t) {
|
|
253
|
+
this.$emit("move", {
|
|
254
|
+
index: this.index,
|
|
255
|
+
left: e,
|
|
256
|
+
top: t
|
|
257
|
+
});
|
|
258
|
+
},
|
|
259
|
+
setLeft(e) {
|
|
260
|
+
this.baseLeft = e;
|
|
261
|
+
},
|
|
262
|
+
setTop(e) {
|
|
263
|
+
this.baseTop = e;
|
|
264
|
+
},
|
|
265
|
+
getRangeStyle(e) {
|
|
266
|
+
const t = 10 * this.scaleVal / 2, s = {};
|
|
267
|
+
return e.split("-").forEach((h) => {
|
|
268
|
+
s[h] = l(-t);
|
|
269
|
+
}), s;
|
|
270
|
+
},
|
|
271
|
+
setOverActive(e) {
|
|
272
|
+
this.overActive = e;
|
|
273
|
+
},
|
|
274
|
+
setActive(e) {
|
|
275
|
+
this.active = e;
|
|
276
|
+
},
|
|
277
|
+
rangeMove(e, t) {
|
|
278
|
+
if (this.disabled || this.lock)
|
|
279
|
+
return;
|
|
280
|
+
let s, i, h, n, o, u;
|
|
281
|
+
this.rangeActive = !0, this.handleMouseDown();
|
|
282
|
+
let c = e.clientX, f = e.clientY;
|
|
283
|
+
document.onmousemove = (d) => {
|
|
284
|
+
this.moveActive = !0, t === "right" ? (s = !0, i = !1) : t === "left" ? (s = !0, h = !0, o = !0, i = !1) : t === "top" ? (s = !1, i = !0, n = !0, u = !0) : t === "bottom" ? (s = !1, i = !0) : t === "bottom-right" ? (s = !0, i = !0) : t === "bottom-left" ? (s = !0, i = !0, h = !0, o = !0) : t === "top-right" ? (s = !0, i = !0, n = !0, u = !0) : t === "top-left" && (s = !0, i = !0, h = !0, o = !0, n = !0, u = !0);
|
|
285
|
+
const m = d.clientX - c, p = d.clientY - f;
|
|
286
|
+
if (c = d.clientX, f = d.clientY, s) {
|
|
287
|
+
let r = m * this.step;
|
|
288
|
+
o && (r = -r), h && (this.baseLeft = a(this.baseLeft - r)), this.baseWidth = a(this.baseWidth + r);
|
|
289
|
+
}
|
|
290
|
+
if (i) {
|
|
291
|
+
let r = p * this.step;
|
|
292
|
+
u && (r = -r), n && (this.baseTop = a(this.baseTop - r)), this.baseHeight = a(this.baseHeight + r);
|
|
293
|
+
}
|
|
294
|
+
}, this.handleClear();
|
|
295
|
+
},
|
|
296
|
+
handleOut() {
|
|
297
|
+
this.overActive = !1, this.$emit("out", {
|
|
298
|
+
index: this.index,
|
|
299
|
+
width: this.baseWidth,
|
|
300
|
+
height: this.baseHeight,
|
|
301
|
+
left: this.baseLeft,
|
|
302
|
+
top: this.baseTop
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
handleOver() {
|
|
306
|
+
this.disabled || (this.overActive = !0, this.$emit("over", {
|
|
307
|
+
index: this.index,
|
|
308
|
+
width: this.baseWidth,
|
|
309
|
+
height: this.baseHeight,
|
|
310
|
+
left: this.baseLeft,
|
|
311
|
+
top: this.baseTop
|
|
312
|
+
}));
|
|
313
|
+
},
|
|
314
|
+
handleMove(e) {
|
|
315
|
+
if (this.disabled || this.lock)
|
|
316
|
+
return;
|
|
317
|
+
setTimeout(() => {
|
|
318
|
+
this.$refs.input.focus();
|
|
319
|
+
}), this.active = !0, this.handleMouseDown();
|
|
320
|
+
let t = e.clientX, s = e.clientY;
|
|
321
|
+
document.onmousemove = (i) => {
|
|
322
|
+
const h = i.clientX - t, n = i.clientY - s;
|
|
323
|
+
t = i.clientX, s = i.clientY, this.baseLeft = a(this.baseLeft + h * this.step), this.baseTop = a(this.baseTop + n * this.step);
|
|
324
|
+
}, this.handleClear();
|
|
325
|
+
},
|
|
326
|
+
handleClear() {
|
|
327
|
+
document.onmouseup = () => {
|
|
328
|
+
document.onmousemove = null, document.onmouseup = null, this.handleMouseUp();
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
handleKeydown() {
|
|
332
|
+
document.onkeydown = (e) => {
|
|
333
|
+
const t = e || window.event, s = this.step;
|
|
334
|
+
this.$refs.input.focused && (t && t.keyCode === 38 ? this.baseTop = a(this.baseTop - s) : t && t.keyCode === 37 ? this.baseLeft = a(this.baseLeft - s) : t && t.keyCode === 40 ? this.baseTop = a(this.baseTop + s) : t && t.keyCode === 39 && (this.baseLeft = a(this.baseLeft + s)), e.stopPropagation(), e.preventDefault(), this.$emit("blur", {
|
|
335
|
+
index: this.index,
|
|
336
|
+
width: this.baseWidth,
|
|
337
|
+
height: this.baseHeight,
|
|
338
|
+
left: this.baseLeft,
|
|
339
|
+
top: this.baseTop
|
|
340
|
+
}), this.keyDown && this.keyDown(e));
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
handleMouseDown() {
|
|
344
|
+
this.moveActive = !0, this.$emit("focus", {
|
|
345
|
+
index: this.index,
|
|
346
|
+
width: this.baseWidth,
|
|
347
|
+
height: this.baseHeight,
|
|
348
|
+
left: this.baseLeft,
|
|
349
|
+
top: this.baseTop
|
|
350
|
+
});
|
|
351
|
+
},
|
|
352
|
+
handleMouseUp() {
|
|
353
|
+
this.moveActive = !1, this.rangeActive = !1, this.$emit("blur", {
|
|
354
|
+
index: this.index,
|
|
355
|
+
width: this.baseWidth,
|
|
356
|
+
height: this.baseHeight,
|
|
357
|
+
left: this.baseLeft,
|
|
358
|
+
top: this.baseTop
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}, b = {};
|
|
363
|
+
var w = /* @__PURE__ */ v(
|
|
364
|
+
_,
|
|
365
|
+
g,
|
|
366
|
+
y,
|
|
367
|
+
!1,
|
|
368
|
+
x,
|
|
369
|
+
null,
|
|
370
|
+
null,
|
|
371
|
+
null
|
|
372
|
+
);
|
|
373
|
+
function x(e) {
|
|
374
|
+
for (let t in b)
|
|
375
|
+
this[t] = b[t];
|
|
376
|
+
}
|
|
377
|
+
const k = /* @__PURE__ */ function() {
|
|
378
|
+
return w.exports;
|
|
379
|
+
}();
|
|
380
|
+
export {
|
|
381
|
+
k as default
|
|
382
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-draggable{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;padding:10px;position:absolute}.avue-draggable__focus{z-index:-1024;opacity:0;top:0;left:0;position:absolute!important}.avue-draggable__mask{z-index:1;border:0;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.avue-draggable--active{cursor:move;background-color:rgba(115,170,229,.5);border:1px dashed #09f}.avue-draggable--move{opacity:.6;background-color:rgba(115,170,229,.5)}.avue-draggable--click{cursor:pointer}.avue-draggable__line--left{border-top:1px dashed #09f;width:10000px;height:0;position:absolute;top:0;transform:translate(-100%)}.avue-draggable__line--top{border-left:1px dashed #09f;width:0;height:10000px;position:absolute;left:0;transform:translateY(-100%)}.avue-draggable__line--label{color:#09f;white-space:nowrap;cursor:move;padding:5px;font-size:18px;position:absolute;top:-5px;left:-8px;transform:translate(-100%,-100%)}.avue-draggable__menu{z-index:9999;color:#fff;cursor:pointer;background-color:#409eff;font-size:25px;position:absolute;top:0;left:0}.avue-draggable__range{z-index:9999;background-color:#09f;border-radius:100%;width:10px;height:10px;position:absolute}.avue-draggable__range--left,.avue-draggable__range--right{top:50%;transform:translateY(-50%)}.avue-draggable__range--left:hover,.avue-draggable__range--right:hover{cursor:ew-resize}.avue-draggable__range--left{left:-6px}.avue-draggable__range--right{right:-6px}.avue-draggable__range--top,.avue-draggable__range--bottom{left:50%;transform:translate(-50%)}.avue-draggable__range--top:hover,.avue-draggable__range--bottom:hover{cursor:ns-resize}.avue-draggable__range--top{top:-6px}.avue-draggable__range--bottom{bottom:-6px}.avue-draggable__range--bottom-right:hover,.avue-draggable__range--top-left:hover{cursor:nwse-resize}.avue-draggable__range--bottom-left:hover,.avue-draggable__range--top-right:hover{cursor:nesw-resize}.avue-draggable__range--top-right{top:-6px;right:-6px}.avue-draggable__range--top-left{top:-6px;left:-6px}.avue-draggable__range--bottom-right{bottom:-6px;right:-6px}.avue-draggable__range--bottom-left{bottom:-6px;left:-6px}
|