@vipl520/dk-ui 1.0.41 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/attributes.json +23 -3
- package/dist/index.css +1 -1
- package/dist/index.min.js +4 -13
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +4 -13
- package/dist/index.min.mjs.map +1 -1
- package/dist/tags.json +7 -2
- package/dist/web-types.json +71 -12
- package/es/animate-select/src/animate-select.vue.mjs +1 -1
- package/es/animate-select/src/animate-select.vue2.mjs +5 -1
- package/es/animate-select/src/animate-select.vue2.mjs.map +1 -1
- package/es/api/attachment.mjs.map +1 -1
- package/es/attachment/src/attachment.vue.mjs +1 -1
- package/es/attachment/src/attachment.vue2.mjs +7 -1
- package/es/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/attachment/src/file-icon.vue.mjs +1 -1
- package/es/attachment-dialog/index.d.ts +9 -0
- package/es/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
- package/es/attachment-dialog/src/attachment-dialog.vue.mjs +1 -1
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +3 -2
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
- package/es/attachment-dialog/src/props.d.ts +4 -0
- package/es/attachment-dialog/src/props.mjs +4 -0
- package/es/attachment-dialog/src/props.mjs.map +1 -1
- package/es/audio-input/src/audio-input.vue.mjs +1 -1
- package/es/audio-list-input/src/audio-list-input.vue.mjs +1 -1
- package/es/audio-list-input/src/audio-list-input.vue2.mjs.map +1 -1
- package/es/box-size-input/src/box-size-input.vue.mjs +1 -1
- package/es/box-size-input/src/box-size-input.vue2.mjs +60 -59
- package/es/box-size-input/src/box-size-input.vue2.mjs.map +1 -1
- package/es/box-size-input/style/index.css +1 -1
- package/es/box-size-input/style/index.scss +11 -4
- package/es/color-input/src/color-input.vue.mjs +1 -1
- package/es/dialog/src/dialog.vue.mjs +1 -1
- package/es/dialog/src/dialog.vue2.mjs +3 -1
- package/es/dialog/src/dialog.vue2.mjs.map +1 -1
- package/es/dialog/style/index.scss +1 -0
- package/es/file-input/src/file-input.vue.mjs +1 -1
- package/es/file-input/src/file-input.vue2.mjs.map +1 -1
- package/es/file-list-input/src/file-list-input.vue.mjs +1 -1
- package/es/file-list-input/src/file-list-input.vue2.mjs.map +1 -1
- package/es/file-list-input/style/index.css +1 -1
- package/es/file-list-input/style/index.scss +20 -16
- package/es/form/src/form.vue.mjs +1 -1
- package/es/form/src/form.vue2.mjs.map +1 -1
- package/es/group/src/group.vue.mjs +1 -1
- package/es/group/src/group.vue2.mjs +3 -3
- package/es/group/src/group.vue2.mjs.map +1 -1
- package/es/hot-area-input/src/component/hot-area-content.vue.mjs +1 -1
- package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
- package/es/hot-area-input/src/hot-area-input.vue.mjs +1 -1
- package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -1
- package/es/icon/src/icon.vue.mjs +1 -1
- package/es/icon/src/icon.vue2.mjs.map +1 -1
- package/es/icon-input/src/icon-content.vue.mjs +1 -1
- package/es/icon-input/src/icon-content.vue2.mjs +1 -1
- package/es/icon-input/src/icon-content.vue2.mjs.map +1 -1
- package/es/icon-input/src/icon-dialog.vue.mjs +1 -1
- package/es/icon-input/src/icon-input.vue.mjs +1 -1
- package/es/icon-input/src/icon-input.vue2.mjs.map +1 -1
- package/es/image-input/src/image-input.vue.mjs +1 -1
- package/es/image-list-input/src/image-list-input.vue.mjs +1 -1
- package/es/image-list-input/src/image-list-input.vue2.mjs.map +1 -1
- package/es/index.mjs +0 -10
- package/es/index.mjs.map +1 -1
- package/es/page-diy/index.mjs +0 -2
- package/es/page-diy/index.mjs.map +1 -1
- package/es/page-diy/src/components/DiyCloud.vue.mjs +1 -1
- package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
- package/es/page-diy/src/components/DragBox.vue.mjs +7 -3
- package/es/page-diy/src/components/DragBox.vue.mjs.map +1 -1
- package/es/page-diy/src/components/DragTool.vue.mjs +6 -2
- package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
- package/es/page-diy/src/components/PreviewPhone.vue.mjs +1 -1
- package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
- package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs +1 -1
- package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +12 -10
- package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -1
- package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs +9 -1
- package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs +3 -1
- package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +36 -6
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +6 -2
- package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/index.mjs +8 -1
- package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
- package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs +3 -1
- package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -1
- package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -1
- package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs +7 -1
- package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -1
- package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs +9 -3
- package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -1
- package/es/page-diy/src/page-diy.vue.mjs +101 -34
- package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
- package/es/page-diy/src/utils/eventData.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinBlank.vue.mjs +1 -1
- package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +24 -7
- package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +1 -1
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs +1 -1
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +1 -1
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinVideo.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewCell.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +4 -2
- package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewDialog.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewImage.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewMusic.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewNavBar.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewTabbar.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewTextarea.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewTitle.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -1
- package/es/page-diy/src/views/web/DkViewVideo.vue.mjs +1 -1
- package/es/page-diy/style/dk-page-diy.scss +1 -1
- package/es/poster-input/src/component/poster.vue.mjs +1 -1
- package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
- package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewAvatar.vue2.mjs.map +1 -1
- package/es/poster-input/src/component/views/DkPosterViewImage.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs +5 -2
- package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs.map +1 -1
- package/es/poster-input/src/component/views/DkPosterViewName.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewName.vue2.mjs.map +1 -1
- package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewQrcode.vue2.mjs.map +1 -1
- package/es/poster-input/src/component/views/DkPosterViewText.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewText.vue2.mjs.map +1 -1
- package/es/poster-input/src/component/views/quick-action.vue.mjs +1 -1
- package/es/poster-input/src/component/views/quick-action.vue2.mjs.map +1 -1
- package/es/poster-input/src/poster-input.vue.mjs +1 -1
- package/es/poster-input/src/poster-input.vue2.mjs.map +1 -1
- package/es/poster-input/style/index.scss +4 -2
- package/es/select/src/select.vue.mjs +1 -1
- package/es/select/src/select.vue2.mjs +9 -1
- package/es/select/src/select.vue2.mjs.map +1 -1
- package/es/style-animation-input/src/props.mjs.map +1 -1
- package/es/style-animation-input/src/style-animation-input.vue.mjs +1 -1
- package/es/style-animation-input/src/style-animation-input.vue2.mjs +1 -1
- package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -1
- package/es/style-background-input/index.d.ts +2 -1
- package/es/style-background-input/src/style-background-input.vue.d.ts +2 -1
- package/es/style-background-input/src/style-background-input.vue.mjs +1 -1
- package/es/style-background-input/src/style-background-input.vue2.mjs +2 -1
- package/es/style-background-input/src/style-background-input.vue2.mjs.map +1 -1
- package/es/style-border-input/index.d.ts +2 -1
- package/es/style-border-input/src/style-border-input.vue.d.ts +2 -1
- package/es/style-border-input/src/style-border-input.vue.mjs +1 -1
- package/es/style-border-input/src/style-border-input.vue2.mjs +55 -38
- package/es/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
- package/es/style-box-input/index.d.ts +2 -1
- package/es/style-box-input/src/style-box-input.vue.d.ts +2 -1
- package/es/style-box-input/src/style-box-input.vue.mjs +1 -1
- package/es/style-box-input/src/style-box-input.vue2.mjs +2 -1
- package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
- package/es/style-font-input/index.d.ts +2 -1
- package/es/style-font-input/src/style-font-input.vue.d.ts +2 -1
- package/es/style-font-input/src/style-font-input.vue.mjs +1 -1
- package/es/style-font-input/src/style-font-input.vue2.mjs +8 -7
- package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
- package/es/style-input/src/style-input.vue.mjs +1 -1
- package/es/style-input/src/style-input.vue2.mjs +15 -22
- package/es/style-input/src/style-input.vue2.mjs.map +1 -1
- package/es/style-number-input/src/style-number-input.vue.mjs +1 -1
- package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
- package/es/style-position-input/src/style-position-input.vue.mjs +1 -1
- package/es/style-position-input/src/style-position-input.vue2.mjs +4 -1
- package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
- package/es/style-shadow-input/index.d.ts +2 -1
- package/es/style-shadow-input/src/style-shadow-content.vue.mjs +1 -1
- package/es/style-shadow-input/src/style-shadow-content.vue2.mjs +144 -155
- package/es/style-shadow-input/src/style-shadow-content.vue2.mjs.map +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
- package/es/style-shadow-input/src/style-shadow-input.vue.mjs +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +2 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
- package/es/table/src/components/ComSearch.vue.mjs +1 -1
- package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
- package/es/table/src/components/FieldRender.vue.mjs +1 -1
- package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
- package/es/table/src/components/RecycleDialog.vue.mjs +1 -1
- package/es/table/src/components/RecycleDialog.vue2.mjs +3 -1
- package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
- package/es/table/src/components/header.vue.mjs +1 -1
- package/es/table/src/components/header.vue2.mjs +17 -3
- package/es/table/src/components/header.vue2.mjs.map +1 -1
- package/es/table/src/props.mjs +11 -1
- package/es/table/src/props.mjs.map +1 -1
- package/es/table/src/table.vue.mjs +1 -1
- package/es/table/src/table.vue2.mjs +13 -3
- package/es/table/src/table.vue2.mjs.map +1 -1
- package/es/table/utils/dkTable.mjs +32 -11
- package/es/table/utils/dkTable.mjs.map +1 -1
- package/es/table/utils/dkTableApi.mjs.map +1 -1
- package/es/test/src/test.vue.mjs +1 -1
- package/es/tiny-editor/src/tiny-editor.vue.mjs +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs +7 -3
- package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
- package/es/tiny-editor/style/index.css +1 -1
- package/es/tiny-editor/style/index.scss +5 -0
- package/es/video-input/src/video-input.vue.mjs +1 -1
- package/es/video-list-input/src/video-list-input.vue.mjs +1 -1
- package/es/video-list-input/src/video-list-input.vue2.mjs.map +1 -1
- package/lib/animate-select/src/animate-select.vue.js +1 -1
- package/lib/animate-select/src/animate-select.vue2.js +5 -1
- package/lib/animate-select/src/animate-select.vue2.js.map +1 -1
- package/lib/api/attachment.js.map +1 -1
- package/lib/attachment/src/attachment.vue.js +1 -1
- package/lib/attachment/src/attachment.vue2.js +7 -1
- package/lib/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/attachment/src/file-icon.vue.js +1 -1
- package/lib/attachment-dialog/index.d.ts +9 -0
- package/lib/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
- package/lib/attachment-dialog/src/attachment-dialog.vue.js +1 -1
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js +3 -2
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
- package/lib/attachment-dialog/src/props.d.ts +4 -0
- package/lib/attachment-dialog/src/props.js +4 -0
- package/lib/attachment-dialog/src/props.js.map +1 -1
- package/lib/audio-input/src/audio-input.vue.js +1 -1
- package/lib/audio-list-input/src/audio-list-input.vue.js +1 -1
- package/lib/audio-list-input/src/audio-list-input.vue2.js.map +1 -1
- package/lib/box-size-input/src/box-size-input.vue.js +1 -1
- package/lib/box-size-input/src/box-size-input.vue2.js +59 -58
- package/lib/box-size-input/src/box-size-input.vue2.js.map +1 -1
- package/lib/box-size-input/style/index.css +1 -1
- package/lib/box-size-input/style/index.scss +11 -4
- package/lib/color-input/src/color-input.vue.js +1 -1
- package/lib/dialog/src/dialog.vue.js +1 -1
- package/lib/dialog/src/dialog.vue2.js +3 -1
- package/lib/dialog/src/dialog.vue2.js.map +1 -1
- package/lib/dialog/style/index.scss +1 -0
- package/lib/file-input/src/file-input.vue.js +1 -1
- package/lib/file-input/src/file-input.vue2.js.map +1 -1
- package/lib/file-list-input/src/file-list-input.vue.js +1 -1
- package/lib/file-list-input/src/file-list-input.vue2.js.map +1 -1
- package/lib/file-list-input/style/index.css +1 -1
- package/lib/file-list-input/style/index.scss +20 -16
- package/lib/form/src/form.vue.js +1 -1
- package/lib/form/src/form.vue2.js.map +1 -1
- package/lib/group/src/group.vue.js +1 -1
- package/lib/group/src/group.vue2.js +2 -2
- package/lib/group/src/group.vue2.js.map +1 -1
- package/lib/hot-area-input/src/component/hot-area-content.vue.js +1 -1
- package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
- package/lib/hot-area-input/src/hot-area-input.vue.js +1 -1
- package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -1
- package/lib/icon/src/icon.vue.js +1 -1
- package/lib/icon/src/icon.vue2.js.map +1 -1
- package/lib/icon-input/src/icon-content.vue.js +1 -1
- package/lib/icon-input/src/icon-content.vue2.js +1 -1
- package/lib/icon-input/src/icon-content.vue2.js.map +1 -1
- package/lib/icon-input/src/icon-dialog.vue.js +1 -1
- package/lib/icon-input/src/icon-input.vue.js +1 -1
- package/lib/icon-input/src/icon-input.vue2.js.map +1 -1
- package/lib/image-input/src/image-input.vue.js +1 -1
- package/lib/image-list-input/src/image-list-input.vue.js +1 -1
- package/lib/image-list-input/src/image-list-input.vue2.js.map +1 -1
- package/lib/index.js +0 -10
- package/lib/index.js.map +1 -1
- package/lib/page-diy/index.js +0 -2
- package/lib/page-diy/index.js.map +1 -1
- package/lib/page-diy/src/components/DiyCloud.vue.js +1 -1
- package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
- package/lib/page-diy/src/components/DragBox.vue.js +7 -3
- package/lib/page-diy/src/components/DragBox.vue.js.map +1 -1
- package/lib/page-diy/src/components/DragTool.vue.js +6 -2
- package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
- package/lib/page-diy/src/components/PreviewPhone.vue.js +1 -1
- package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
- package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js +1 -1
- package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +12 -10
- package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -1
- package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js +9 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js +3 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +36 -6
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +6 -2
- package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/index.js +8 -1
- package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
- package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js +3 -1
- package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -1
- package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -1
- package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js +7 -1
- package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -1
- package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js +9 -3
- package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -1
- package/lib/page-diy/src/page-diy.vue.js +101 -34
- package/lib/page-diy/src/page-diy.vue.js.map +1 -1
- package/lib/page-diy/src/utils/eventData.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinBlank.vue.js +1 -1
- package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +24 -7
- package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +1 -1
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinTextarea.vue.js +1 -1
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js +1 -1
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinVideo.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewCell.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +4 -2
- package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewDialog.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewImage.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewMusic.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewNavBar.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewSwipe.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewTabbar.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewTextarea.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewTitle.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -1
- package/lib/page-diy/src/views/web/DkViewVideo.vue.js +1 -1
- package/lib/page-diy/style/dk-page-diy.scss +1 -1
- package/lib/poster-input/src/component/poster.vue.js +1 -1
- package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue2.js.map +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewImage.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js +5 -2
- package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js.map +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewName.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewName.vue2.js.map +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue2.js.map +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewText.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewText.vue2.js.map +1 -1
- package/lib/poster-input/src/component/views/quick-action.vue.js +1 -1
- package/lib/poster-input/src/component/views/quick-action.vue2.js.map +1 -1
- package/lib/poster-input/src/poster-input.vue.js +1 -1
- package/lib/poster-input/src/poster-input.vue2.js.map +1 -1
- package/lib/poster-input/style/index.scss +4 -2
- package/lib/select/src/select.vue.js +1 -1
- package/lib/select/src/select.vue2.js +9 -1
- package/lib/select/src/select.vue2.js.map +1 -1
- package/lib/style-animation-input/src/props.js.map +1 -1
- package/lib/style-animation-input/src/style-animation-input.vue.js +1 -1
- package/lib/style-animation-input/src/style-animation-input.vue2.js +1 -1
- package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -1
- package/lib/style-background-input/index.d.ts +2 -1
- package/lib/style-background-input/src/style-background-input.vue.d.ts +2 -1
- package/lib/style-background-input/src/style-background-input.vue.js +1 -1
- package/lib/style-background-input/src/style-background-input.vue2.js +2 -1
- package/lib/style-background-input/src/style-background-input.vue2.js.map +1 -1
- package/lib/style-border-input/index.d.ts +2 -1
- package/lib/style-border-input/src/style-border-input.vue.d.ts +2 -1
- package/lib/style-border-input/src/style-border-input.vue.js +1 -1
- package/lib/style-border-input/src/style-border-input.vue2.js +55 -38
- package/lib/style-border-input/src/style-border-input.vue2.js.map +1 -1
- package/lib/style-box-input/index.d.ts +2 -1
- package/lib/style-box-input/src/style-box-input.vue.d.ts +2 -1
- package/lib/style-box-input/src/style-box-input.vue.js +1 -1
- package/lib/style-box-input/src/style-box-input.vue2.js +2 -1
- package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
- package/lib/style-font-input/index.d.ts +2 -1
- package/lib/style-font-input/src/style-font-input.vue.d.ts +2 -1
- package/lib/style-font-input/src/style-font-input.vue.js +1 -1
- package/lib/style-font-input/src/style-font-input.vue2.js +8 -7
- package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
- package/lib/style-input/src/style-input.vue.js +1 -1
- package/lib/style-input/src/style-input.vue2.js +14 -21
- package/lib/style-input/src/style-input.vue2.js.map +1 -1
- package/lib/style-number-input/src/style-number-input.vue.js +1 -1
- package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
- package/lib/style-position-input/src/style-position-input.vue.js +1 -1
- package/lib/style-position-input/src/style-position-input.vue2.js +4 -1
- package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
- package/lib/style-shadow-input/index.d.ts +2 -1
- package/lib/style-shadow-input/src/style-shadow-content.vue.js +1 -1
- package/lib/style-shadow-input/src/style-shadow-content.vue2.js +144 -155
- package/lib/style-shadow-input/src/style-shadow-content.vue2.js.map +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue.js +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js +2 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
- package/lib/table/src/components/ComSearch.vue.js +1 -1
- package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
- package/lib/table/src/components/FieldRender.vue.js +1 -1
- package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
- package/lib/table/src/components/RecycleDialog.vue.js +1 -1
- package/lib/table/src/components/RecycleDialog.vue2.js +3 -1
- package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
- package/lib/table/src/components/header.vue.js +1 -1
- package/lib/table/src/components/header.vue2.js +17 -3
- package/lib/table/src/components/header.vue2.js.map +1 -1
- package/lib/table/src/props.js +11 -1
- package/lib/table/src/props.js.map +1 -1
- package/lib/table/src/table.vue.js +1 -1
- package/lib/table/src/table.vue2.js +13 -3
- package/lib/table/src/table.vue2.js.map +1 -1
- package/lib/table/utils/dkTable.js +32 -11
- package/lib/table/utils/dkTable.js.map +1 -1
- package/lib/table/utils/dkTableApi.js.map +1 -1
- package/lib/test/src/test.vue.js +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue.js +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js +7 -3
- package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
- package/lib/tiny-editor/style/index.css +1 -1
- package/lib/tiny-editor/style/index.scss +5 -0
- package/lib/video-input/src/video-input.vue.js +1 -1
- package/lib/video-list-input/src/video-list-input.vue.js +1 -1
- package/lib/video-list-input/src/video-list-input.vue2.js.map +1 -1
- package/package.json +3 -2
- package/dist/index.js +0 -34319
- package/dist/index.mjs +0 -34229
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"attachment.vue2.js","sources":["../../../src/attachment/src/attachment.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachment',\n});\n</script>\n<template>\n <div class=\"dk-attachment attachment\">\n <!-- 顶部-->\n <div class=\"attachment-header flex justify-between pt-5px pb-5px\">\n <div class=\"header-form z\">\n <el-input v-model=\"searchFileName\" placeholder=\"请输入附件名称\" class=\"input-with-select\">\n <template #append>\n <el-button :icon=\"Search\" />\n </template>\n </el-input>\n </div>\n <div class=\"header-button y\">\n <el-dropdown class=\"mr\" trigger=\"click\" @command=\"handleMoveAttachment\">\n <el-button type=\"info\" :disabled=\"chooseFileKey.length <= 0\"> 移动 </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item v-for=\"(item, key) in groupList\" :key=\"key\" :command=\"item.id\">\n {{ item.name }}\n </el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-button type=\"danger\" :disabled=\"chooseFileKey.length <= 0\" @click=\"onDelete\"\n >删除<i class=\"el-icon-delete el-icon--right\"></i\n ></el-button>\n <el-upload\n ref=\"upload\"\n class=\"dk-upload-button\"\n :action=\"uploadUrl\"\n multiple\n :data=\"data\"\n :show-file-list=\"false\"\n :headers=\"headers\"\n :on-success=\"handleUploadSuccess\"\n :accept=\"_accept\"\n list-type=\"text\"\n >\n <el-button type=\"primary\">上传<i class=\"el-icon-upload el-icon--right\"></i></el-button>\n </el-upload>\n </div>\n </div>\n <!--内部-->\n <div class=\"attachment-content flex\">\n <!-- 分组-->\n <div class=\"attachment-group\">\n <h5 class=\"cursor-pointer flex items-center content-center\" @click=\"addGroup()\">\n 附件分组\n <el-icon class=\"m-l-5px\"><CirclePlusFilled /></el-icon>\n </h5>\n <ul class=\"group_list\">\n <li\n v-for=\"(item, key) in groupList\"\n :key=\"key\"\n :class=\"{ active: groupId === item.id }\"\n @click=\"selectGroup(item.id)\"\n >\n <dk-icon v-if=\"item.id === groupId\" icon=\"flat-color-icons:opened-folder\" />\n <dk-icon v-else icon=\"flat-color-icons:folder\" />\n\n <span class=\"ml-10px\">{{ item.name }}</span>\n\n <el-popover placement=\"right\" trigger=\"click\">\n <template #reference>\n <div class=\"op\">\n <el-icon v-if=\"item.id > 0\">\n <Tools />\n </el-icon>\n </div>\n </template>\n <template #default>\n <el-button size=\"small\" type=\"primary\" @click.stop=\"editGroup()\">编辑 </el-button>\n <el-button size=\"small\" type=\"danger\" @click=\"delGroup(item.id)\">删除</el-button>\n </template>\n </el-popover>\n </li>\n </ul>\n </div>\n <!-- 列表-->\n <div class=\"attachment-container\">\n <div v-if=\"loading || list.length > 0\" v-loading=\"loading\" class=\"p2\">\n <ul class=\"attachment-list cl\" :style=\"{ overflow: list.length > 10 ? 'auto' : '' }\">\n <li\n v-for=\"(item, key) in list\"\n :key=\"key\"\n :class=\"{ choose: chooseFileKey.indexOf(key) > -1 }\"\n @click=\"chooseAttachment(item, key)\"\n @contextmenu.prevent=\"contextMenuId = item.id\"\n >\n <div class=\"file\">\n <el-image v-if=\"item.type === 1\" class=\"file\" :src=\"item.url\" fit=\"contain\">\n <template #placeholder>\n <div class=\"u-m-t-30\">\n <i class=\"el-icon-loading\"></i>\n <span>加载中</span>\n </div>\n </template>\n </el-image>\n <div v-if=\"item.type === 2\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 3\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 0\">\n <dk-file-icon :file-name=\"item.filename\" />\n </div>\n </div>\n <div class=\"file-name over\">{{ item.name }}</div>\n <div class=\"right\">\n <el-icon>\n <Check />\n </el-icon>\n </div>\n </li>\n </ul>\n <div class=\"block p-10px\">\n <el-pagination\n :current-page=\"page\"\n layout=\"total, prev, pager, next, jumper,sizes\"\n :total=\"count\"\n :page-size=\"size\"\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n />\n </div>\n </div>\n <div v-else style=\"display: flex; align-items: center; justify-content: center; height: 340px\">\n <el-empty description=\"暂无数据\" />\n </div>\n <dk-form ref=\"groupForm\" :key=\"groupId\" :form-url=\"groupFormUrl\" :is-dialog=\"true\" @submit=\"onsubmit()\" />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, reactive, onMounted, computed } from 'vue'\nimport {\n deleteAttachment,\n getAttachmentGroupList,\n getAttachmentList,\n moveAttachment,\n delAttachmentGroup,\n} from '../../api'\n\nimport { ElMessage, ElMessageBox } from 'element-plus'\nimport DkFileIcon from './file-icon.vue'\n\nimport { Search } from '@element-plus/icons-vue'\n\nimport { getAttachmentType, getGlobalConfig } from '@vipl520/utils'\nimport { attachmentProps } from './props'\n\n\n\nconst props = defineProps(attachmentProps)\n\nconst _type = computed(() => {\n return getAttachmentType(props.type)\n})\n\n/** ****************顶部data****************/\n// 搜索的文件名\nconst searchFileName = ref('')\n// 选择文件Key\nconst chooseFileKey = ref<number[]>([])\n// 选中文件列表\nconst chooseFileList = ref<any[]>([])\n// 选中文件ID\nconst chooseFileId = ref<number[]>([])\nconst globalConfig = getGlobalConfig()\n// 上传的地址\nconst uploadUrl = globalConfig.ApiUrl + '/adminapi/attachment/upload'\nconst headers = {\n 'Access-Token': globalConfig.AccessToken,\n}\n// 上传的ref\nconst upload = ref()\n// 上传的数据\nconst data = reactive({\n type: _type.value,\n file: 'file',\n group_id: 0,\n})\n\n/** *****顶部的函数****************/\n\nconst handleMoveAttachment = (groupId: number) => {\n moveAttachment(chooseFileId.value, groupId).then((res) => {\n ElMessage.success(res.msg)\n onGetAttachmentList()\n })\n}\n\nconst handleUploadSuccess = (res: any) => {\n console.log('res', res)\n if (res.code === 0) {\n ElMessage.success(res.msg)\n // upload.value.clearFiles()\n onGetAttachmentList()\n } else {\n ElMessage.error(res.msg)\n }\n}\n\nconst _accept = computed(() => {\n let _accept = ''\n if (props.accept) {\n return props.accept\n } else {\n switch (_type.value) {\n case 0:\n break\n case 1:\n _accept = 'image/*'\n break\n case 2:\n _accept = 'audio/*'\n break\n case 3:\n _accept = 'video/*'\n break\n }\n return _accept\n }\n})\n\nconst onDelete = () => {\n // 改成element-plus\n ElMessageBox.confirm('此操作将永久删除文件, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n }).then(() => {\n try {\n deleteAttachment(chooseFileId.value)\n .then((res) => {\n console.log(res)\n onGetAttachmentList()\n })\n .catch((res) => {\n console.log('deleteAttachment error', res)\n })\n } catch (e) {\n console.log(e)\n }\n })\n}\n/** ****************分组data****************/\n// 分组列表\nconst groupList = ref<any>([])\n// 选中分组\n/** **********分组的函数****************/\n\nconst groupFormUrl = computed(() => {\n if (groupId.value === 0) {\n return {\n url: globalConfig.ApiUrl + '/adminapi/attachment/group/create',\n method: 'get',\n }\n } else {\n return {\n url: globalConfig.ApiUrl + '/adminapi/attachment/group/' + groupId.value + '/edit',\n method: 'get',\n }\n }\n})\n\nconst groupForm = ref()\n\nconst addGroup = () => {\n // TODO 添加文件分组\n groupId.value = 0\n groupForm.value.show()\n}\n\nconst delGroup = (id: number) => {\n // 改为Vue3\n ElMessageBox.confirm('此操作将永久删除该分组, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n }).then(() => {\n try {\n delAttachmentGroup(id)\n .then((res) => {\n ElMessage.success(res.msg)\n onsubmit()\n })\n .catch(() => {})\n } catch (e) {\n console.log(e)\n }\n })\n}\n\nconst editGroup = () => {\n groupForm.value.show()\n}\n\nconst onsubmit = () => {\n getGroupList()\n onGetAttachmentList()\n}\n\nconst selectGroup = (id: number) => {\n groupId.value = id\n page.value = 1\n onGetAttachmentList()\n}\n\nconst getGroupList = async () => {\n try {\n const res = await getAttachmentGroupList(_type.value)\n groupList.value = res.data\n } catch (e) {}\n}\n\n/** ****************附件列表*********************/\nconst loading = ref(true)\nconst list = ref<any>([])\nconst page = ref(1)\nconst count = ref(0)\nconst size = ref(10)\nconst contextMenuId = ref(0)\nconst groupId = ref(0)\n\n/** ***************列表函数*******************/\n\n// const editAttachment = () => {\n// // TODO 编辑附件\n// }\n\nconst handleSizeChange = (val: number) => {\n size.value = val\n onGetAttachmentList()\n}\n\n// 改变页码\nconst handleCurrentChange = (val: number) => {\n page.value = val\n onGetAttachmentList()\n}\nconst onGetAttachmentList = async (search = {}) => {\n clearChoose()\n try {\n const res = await getAttachmentList(page.value, size.value, _type.value, groupId.value, search)\n list.value = res.data\n count.value = res.msg\n loading.value = false\n } catch (e) {}\n}\n\nconst clearChoose = () => {\n chooseFileKey.value = []\n chooseFileId.value = []\n chooseFileList.value = []\n}\n\nconst chooseAttachment = (item: any, key: number) => {\n const index = chooseFileKey.value.indexOf(key)\n if (index > -1) {\n chooseFileKey.value.splice(index, 1)\n chooseFileId.value.splice(index, 1)\n chooseFileList.value.splice(index, 1)\n } else {\n chooseFileKey.value.push(key)\n chooseFileId.value.push(item.id)\n chooseFileList.value.push(item)\n }\n}\n\nonMounted(() => {\n getGroupList()\n onGetAttachmentList()\n})\n\ndefineExpose({\n chooseFileId,\n chooseFileKey,\n chooseFileList,\n clearChoose,\n})\n</script>\n"],"names":["__MACROS_defineComponent","computed","getAttachmentType","ref","getGlobalConfig","reactive","groupId","moveAttachment","ElMessage","_accept","ElMessageBox","deleteAttachment","delAttachmentGroup","getAttachmentGroupList","getAttachmentList","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;AA+JD,IAAM,MAAA,KAAA,GAAQC,aAAS,MAAM;AAC3B,MAAO,OAAAC,uBAAA,CAAkB,MAAM,IAAI,CAAA,CAAA;AAAA,KACpC,CAAA,CAAA;AAID,IAAM,MAAA,cAAA,GAAiBC,QAAI,EAAE,CAAA,CAAA;AAE7B,IAAM,MAAA,aAAA,GAAgBA,OAAc,CAAA,EAAE,CAAA,CAAA;AAEtC,IAAM,MAAA,cAAA,GAAiBA,OAAW,CAAA,EAAE,CAAA,CAAA;AAEpC,IAAM,MAAA,YAAA,GAAeA,OAAc,CAAA,EAAE,CAAA,CAAA;AACrC,IAAA,MAAM,eAAeC,qBAAgB,EAAA,CAAA;AAErC,IAAM,MAAA,SAAA,GAAY,aAAa,MAAS,GAAA,6BAAA,CAAA;AACxC,IAAA,MAAM,OAAU,GAAA;AAAA,MACd,gBAAgB,YAAa,CAAA,WAAA;AAAA,KAC/B,CAAA;AAEA,IAAA,MAAM,SAASD,OAAI,EAAA,CAAA;AAEnB,IAAA,MAAM,OAAOE,YAAS,CAAA;AAAA,MACpB,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,IAAM,EAAA,MAAA;AAAA,MACN,QAAU,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAID,IAAM,MAAA,oBAAA,GAAuB,CAACC,QAAoB,KAAA;AAChD,MAAAC,yBAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"attachment.vue2.js","sources":["../../../src/attachment/src/attachment.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachment',\n});\n</script>\n<template>\n <div class=\"dk-attachment attachment\">\n <!-- 顶部-->\n <div class=\"attachment-header flex justify-between pt-5px pb-5px\">\n <div class=\"header-form z\">\n <el-input\n v-model=\"searchFileName\"\n placeholder=\"请输入附件名称\"\n class=\"input-with-select\"\n >\n <template #append>\n <el-button :icon=\"Search\" />\n </template>\n </el-input>\n </div>\n <div class=\"header-button y\">\n <el-dropdown class=\"mr\" trigger=\"click\" @command=\"handleMoveAttachment\">\n <el-button type=\"info\" :disabled=\"chooseFileKey.length <= 0\">\n 移动\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item\n v-for=\"(item, key) in groupList\"\n :key=\"key\"\n :command=\"item.id\"\n >\n {{ item.name }}\n </el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-button\n type=\"danger\"\n :disabled=\"chooseFileKey.length <= 0\"\n @click=\"onDelete\"\n >删除<i class=\"el-icon-delete el-icon--right\"></i\n ></el-button>\n <el-upload\n ref=\"upload\"\n class=\"dk-upload-button\"\n :action=\"uploadUrl\"\n multiple\n :data=\"data\"\n :show-file-list=\"false\"\n :headers=\"headers\"\n :on-success=\"handleUploadSuccess\"\n :accept=\"_accept\"\n list-type=\"text\"\n >\n <el-button type=\"primary\"\n >上传<i class=\"el-icon-upload el-icon--right\"></i\n ></el-button>\n </el-upload>\n </div>\n </div>\n <!--内部-->\n <div class=\"attachment-content flex\">\n <!-- 分组-->\n <div class=\"attachment-group\">\n <h5\n class=\"cursor-pointer flex items-center content-center\"\n @click=\"addGroup()\"\n >\n 附件分组\n <el-icon class=\"m-l-5px\"><CirclePlusFilled /></el-icon>\n </h5>\n <ul class=\"group_list\">\n <li\n v-for=\"(item, key) in groupList\"\n :key=\"key\"\n :class=\"{ active: groupId === item.id }\"\n @click=\"selectGroup(item.id)\"\n >\n <dk-icon\n v-if=\"item.id === groupId\"\n icon=\"flat-color-icons:opened-folder\"\n />\n <dk-icon v-else icon=\"flat-color-icons:folder\" />\n\n <span class=\"ml-10px\">{{ item.name }}</span>\n\n <el-popover placement=\"right\" trigger=\"click\">\n <template #reference>\n <div class=\"op\">\n <el-icon v-if=\"item.id > 0\">\n <Tools />\n </el-icon>\n </div>\n </template>\n <template #default>\n <el-button size=\"small\" type=\"primary\" @click.stop=\"editGroup()\"\n >编辑\n </el-button>\n <el-button size=\"small\" type=\"danger\" @click=\"delGroup(item.id)\"\n >删除</el-button\n >\n </template>\n </el-popover>\n </li>\n </ul>\n </div>\n <!-- 列表-->\n <div class=\"attachment-container\">\n <div v-if=\"loading || list.length > 0\" v-loading=\"loading\" class=\"p2\">\n <ul\n class=\"attachment-list cl\"\n :style=\"{ overflow: list.length > 10 ? 'auto' : '' }\"\n >\n <li\n v-for=\"(item, key) in list\"\n :key=\"key\"\n :class=\"{ choose: chooseFileKey.indexOf(key) > -1 }\"\n @click=\"chooseAttachment(item, key)\"\n @contextmenu.prevent=\"contextMenuId = item.id\"\n >\n <div class=\"file\">\n <el-image\n v-if=\"item.type === 1\"\n class=\"file\"\n :src=\"item.url\"\n fit=\"contain\"\n >\n <template #placeholder>\n <div class=\"u-m-t-30\">\n <i class=\"el-icon-loading\"></i>\n <span>加载中</span>\n </div>\n </template>\n </el-image>\n <div v-if=\"item.type === 2\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 3\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 0\">\n <dk-file-icon :file-name=\"item.filename\" />\n </div>\n </div>\n <div class=\"file-name over\">{{ item.name }}</div>\n <div class=\"right\">\n <el-icon>\n <Check />\n </el-icon>\n </div>\n </li>\n </ul>\n <div class=\"block p-10px\">\n <el-pagination\n :current-page=\"page\"\n layout=\"total, prev, pager, next, jumper,sizes\"\n :total=\"count\"\n :page-size=\"size\"\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n />\n </div>\n </div>\n <div\n v-else\n style=\"\n display: flex;\n align-items: center;\n justify-content: center;\n height: 340px;\n \"\n >\n <el-empty description=\"暂无数据\" />\n </div>\n <dk-form\n ref=\"groupForm\"\n :key=\"groupId\"\n :form-url=\"groupFormUrl\"\n :is-dialog=\"true\"\n @submit=\"onsubmit()\"\n />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, reactive, onMounted, computed } from 'vue'\nimport {\n deleteAttachment,\n getAttachmentGroupList,\n getAttachmentList,\n moveAttachment,\n delAttachmentGroup,\n} from '../../api'\n\nimport { ElMessage, ElMessageBox } from 'element-plus'\nimport DkFileIcon from './file-icon.vue'\n\nimport { Search } from '@element-plus/icons-vue'\n\nimport { getAttachmentType, getGlobalConfig } from '@vipl520/utils'\nimport { attachmentProps } from './props'\n\n\n\nconst props = defineProps(attachmentProps)\n\nconst _type = computed(() => {\n return getAttachmentType(props.type)\n})\n\n/** ****************顶部data****************/\n// 搜索的文件名\nconst searchFileName = ref('')\n// 选择文件Key\nconst chooseFileKey = ref<number[]>([])\n// 选中文件列表\nconst chooseFileList = ref<any[]>([])\n// 选中文件ID\nconst chooseFileId = ref<number[]>([])\nconst globalConfig = getGlobalConfig()\n// 上传的地址\nconst uploadUrl = globalConfig.ApiUrl + '/adminapi/attachment/upload'\nconst headers = {\n 'Access-Token': globalConfig.AccessToken,\n}\n// 上传的ref\nconst upload = ref()\n// 上传的数据\nconst data = reactive({\n type: _type.value,\n file: 'file',\n group_id: 0,\n})\n\n/** *****顶部的函数****************/\n\nconst handleMoveAttachment = (groupId: number) => {\n moveAttachment(chooseFileId.value, groupId).then((res) => {\n ElMessage.success(res.msg)\n onGetAttachmentList()\n })\n}\n\nconst handleUploadSuccess = (res: any) => {\n console.log('res', res)\n if (res.code === 0) {\n ElMessage.success(res.msg)\n // upload.value.clearFiles()\n onGetAttachmentList()\n } else {\n ElMessage.error(res.msg)\n }\n}\n\nconst _accept = computed(() => {\n let _accept = ''\n if (props.accept) {\n return props.accept\n } else {\n switch (_type.value) {\n case 0:\n break\n case 1:\n _accept = 'image/*'\n break\n case 2:\n _accept = 'audio/*'\n break\n case 3:\n _accept = 'video/*'\n break\n }\n return _accept\n }\n})\n\nconst onDelete = () => {\n // 改成element-plus\n ElMessageBox.confirm('此操作将永久删除文件, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n }).then(() => {\n try {\n deleteAttachment(chooseFileId.value)\n .then((res) => {\n console.log(res)\n onGetAttachmentList()\n })\n .catch((res) => {\n console.log('deleteAttachment error', res)\n })\n } catch (e) {\n console.log(e)\n }\n })\n}\n/** ****************分组data****************/\n// 分组列表\nconst groupList = ref<any>([])\n// 选中分组\n/** **********分组的函数****************/\n\nconst groupFormUrl = computed(() => {\n if (groupId.value === 0) {\n return {\n url: globalConfig.ApiUrl + '/adminapi/attachment/group/create',\n method: 'get',\n }\n } else {\n return {\n url:\n globalConfig.ApiUrl +\n '/adminapi/attachment/group/' +\n groupId.value +\n '/edit',\n method: 'get',\n }\n }\n})\n\nconst groupForm = ref()\n\nconst addGroup = () => {\n // TODO 添加文件分组\n groupId.value = 0\n groupForm.value.show()\n}\n\nconst delGroup = (id: number) => {\n // 改为Vue3\n ElMessageBox.confirm('此操作将永久删除该分组, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n }).then(() => {\n try {\n delAttachmentGroup(id)\n .then((res) => {\n ElMessage.success(res.msg)\n onsubmit()\n })\n .catch(() => {})\n } catch (e) {\n console.log(e)\n }\n })\n}\n\nconst editGroup = () => {\n groupForm.value.show()\n}\n\nconst onsubmit = () => {\n getGroupList()\n onGetAttachmentList()\n}\n\nconst selectGroup = (id: number) => {\n groupId.value = id\n page.value = 1\n onGetAttachmentList()\n}\n\nconst getGroupList = async () => {\n try {\n const res = await getAttachmentGroupList(_type.value)\n groupList.value = res.data\n } catch (e) {}\n}\n\n/** ****************附件列表*********************/\nconst loading = ref(true)\nconst list = ref<any>([])\nconst page = ref(1)\nconst count = ref(0)\nconst size = ref(10)\nconst contextMenuId = ref(0)\nconst groupId = ref(0)\n\n/** ***************列表函数*******************/\n\n// const editAttachment = () => {\n// // TODO 编辑附件\n// }\n\nconst handleSizeChange = (val: number) => {\n size.value = val\n onGetAttachmentList()\n}\n\n// 改变页码\nconst handleCurrentChange = (val: number) => {\n page.value = val\n onGetAttachmentList()\n}\nconst onGetAttachmentList = async (search = {}) => {\n clearChoose()\n try {\n const res = await getAttachmentList(\n page.value,\n size.value,\n _type.value,\n groupId.value,\n search\n )\n list.value = res.data\n count.value = res.msg\n loading.value = false\n } catch (e) {}\n}\n\nconst clearChoose = () => {\n chooseFileKey.value = []\n chooseFileId.value = []\n chooseFileList.value = []\n}\n\nconst chooseAttachment = (item: any, key: number) => {\n const index = chooseFileKey.value.indexOf(key)\n if (index > -1) {\n chooseFileKey.value.splice(index, 1)\n chooseFileId.value.splice(index, 1)\n chooseFileList.value.splice(index, 1)\n } else {\n chooseFileKey.value.push(key)\n chooseFileId.value.push(item.id)\n chooseFileList.value.push(item)\n }\n}\n\nonMounted(() => {\n getGroupList()\n onGetAttachmentList()\n})\n\ndefineExpose({\n chooseFileId,\n chooseFileKey,\n chooseFileList,\n clearChoose,\n})\n</script>\n"],"names":["__MACROS_defineComponent","computed","getAttachmentType","ref","getGlobalConfig","reactive","groupId","moveAttachment","ElMess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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var fileIcon_vue_vue_type_script_setup_true_lang = require('./file-icon.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var DkFileIcon = /* @__PURE__ */ _pluginVue_exportHelper.default(fileIcon_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var DkFileIcon = /* @__PURE__ */ _pluginVue_exportHelper.default(fileIcon_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);
|
9
9
|
|
10
10
|
exports.default = DkFileIcon;
|
11
11
|
//# sourceMappingURL=file-icon.vue.js.map
|
@@ -3,6 +3,10 @@ export declare const AttachmentDialog: import("@vipl520/utils").WithInstall<impo
|
|
3
3
|
type: StringConstructor;
|
4
4
|
default: string;
|
5
5
|
};
|
6
|
+
zIndex: {
|
7
|
+
type: NumberConstructor;
|
8
|
+
default: number;
|
9
|
+
};
|
6
10
|
type: {
|
7
11
|
type: (StringConstructor | NumberConstructor)[];
|
8
12
|
default: number;
|
@@ -21,6 +25,10 @@ export declare const AttachmentDialog: import("@vipl520/utils").WithInstall<impo
|
|
21
25
|
type: StringConstructor;
|
22
26
|
default: string;
|
23
27
|
};
|
28
|
+
zIndex: {
|
29
|
+
type: NumberConstructor;
|
30
|
+
default: number;
|
31
|
+
};
|
24
32
|
type: {
|
25
33
|
type: (StringConstructor | NumberConstructor)[];
|
26
34
|
default: number;
|
@@ -34,6 +42,7 @@ export declare const AttachmentDialog: import("@vipl520/utils").WithInstall<impo
|
|
34
42
|
}, {
|
35
43
|
type: string | number;
|
36
44
|
title: string;
|
45
|
+
zIndex: number;
|
37
46
|
accept: string;
|
38
47
|
}, {}>>;
|
39
48
|
export default AttachmentDialog;
|
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
type: StringConstructor;
|
4
4
|
default: string;
|
5
5
|
};
|
6
|
+
zIndex: {
|
7
|
+
type: NumberConstructor;
|
8
|
+
default: number;
|
9
|
+
};
|
6
10
|
type: {
|
7
11
|
type: (StringConstructor | NumberConstructor)[];
|
8
12
|
default: number;
|
@@ -21,6 +25,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
25
|
type: StringConstructor;
|
22
26
|
default: string;
|
23
27
|
};
|
28
|
+
zIndex: {
|
29
|
+
type: NumberConstructor;
|
30
|
+
default: number;
|
31
|
+
};
|
24
32
|
type: {
|
25
33
|
type: (StringConstructor | NumberConstructor)[];
|
26
34
|
default: number;
|
@@ -34,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
42
|
}, {
|
35
43
|
type: string | number;
|
36
44
|
title: string;
|
45
|
+
zIndex: number;
|
37
46
|
accept: string;
|
38
47
|
}, {}>;
|
39
48
|
export default _default;
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var attachmentDialog_vue_vue_type_script_setup_true_lang = require('./attachment-dialog.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _AttachmentDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(attachmentDialog_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _AttachmentDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(attachmentDialog_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _AttachmentDialog;
|
11
11
|
//# sourceMappingURL=attachment-dialog.vue.js.map
|
@@ -52,7 +52,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
52
52
|
class: vue.normalizeClass(vue.unref(bem)()),
|
53
53
|
title: title.value,
|
54
54
|
width: "1040px",
|
55
|
-
fullscreen: false
|
55
|
+
fullscreen: false,
|
56
|
+
"z-index": _ctx.zIndex
|
56
57
|
}, {
|
57
58
|
default: vue.withCtx(() => [
|
58
59
|
vue.createVNode(_component_dk_attachment, {
|
@@ -84,7 +85,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
84
85
|
]),
|
85
86
|
_: 1
|
86
87
|
/* STABLE */
|
87
|
-
}, 8, ["modelValue", "class", "title"]);
|
88
|
+
}, 8, ["modelValue", "class", "title", "z-index"]);
|
88
89
|
};
|
89
90
|
}
|
90
91
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"attachment-dialog.vue2.js","sources":["../../../src/attachment-dialog/src/attachment-dialog.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachmentDialog',\n});\n</script>\n<template>\n <DkDialog\n v-model=\"dialogVisible\"\n :class=\"bem()\"\n :title=\"title\"\n width=\"1040px\"\n :fullscreen=\"false\"\n >\n <dk-attachment ref=\"attachment\" :type=\"_type\" />\n <div class=\"text-center m2\">\n <el-button type=\"primary\" @click=\"confirm()\">确定</el-button>\n <el-button @click=\"cancel()\">关闭</el-button>\n </div>\n </DkDialog>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n createNamespace,\n getAttachmentTitle,\n getAttachmentType,\n} from '@vipl520/utils'\nimport { attachmentDialogProps } from './props'\nimport { ref } from 'vue'\nimport { ElMessage } from 'element-plus'\nconst [_, bem] = createNamespace('attachment-dialog')\n\n\n\nconst props = defineProps(attachmentDialogProps)\nconst attachment = ref()\nconst dialogVisible = ref(false)\nconst title = ref(props.title || getAttachmentTitle(props.type))\n\nconst _type = ref(getAttachmentType(props.type))\n\nconst emit = defineEmits(['confirm'])\n\nconst confirm = () => {\n if (attachment.value.chooseFileList.length > 0) {\n emit('confirm', attachment.value.chooseFileList || [])\n dialogVisible.value = false\n } else {\n ElMessage.warning({ message: '请先选择文件' })\n }\n}\n\n// 关闭\nconst cancel = () => {\n dialogVisible.value = false\n}\n\nconst open = () => {\n dialogVisible.value = true\n}\n\ndefineExpose({\n dialogVisible,\n attachment,\n cancel,\n open,\n})\n</script>\n"],"names":["__MACROS_defineComponent","createNamespace","ref","getAttachmentTitle","getAttachmentType","ElMessage"],"mappings":";;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;
|
1
|
+
{"version":3,"file":"attachment-dialog.vue2.js","sources":["../../../src/attachment-dialog/src/attachment-dialog.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachmentDialog',\n});\n</script>\n<template>\n <DkDialog\n v-model=\"dialogVisible\"\n :class=\"bem()\"\n :title=\"title\"\n width=\"1040px\"\n :fullscreen=\"false\"\n :z-index=\"zIndex\"\n >\n <dk-attachment ref=\"attachment\" :type=\"_type\" />\n <div class=\"text-center m2\">\n <el-button type=\"primary\" @click=\"confirm()\">确定</el-button>\n <el-button @click=\"cancel()\">关闭</el-button>\n </div>\n </DkDialog>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n createNamespace,\n getAttachmentTitle,\n getAttachmentType,\n} from '@vipl520/utils'\nimport { attachmentDialogProps } from './props'\nimport { ref } from 'vue'\nimport { ElMessage } from 'element-plus'\nconst [_, bem] = createNamespace('attachment-dialog')\n\n\n\nconst props = defineProps(attachmentDialogProps)\nconst attachment = ref()\nconst dialogVisible = ref(false)\nconst title = ref(props.title || getAttachmentTitle(props.type))\n\nconst _type = ref(getAttachmentType(props.type))\n\nconst emit = defineEmits(['confirm'])\n\nconst confirm = () => {\n if (attachment.value.chooseFileList.length > 0) {\n emit('confirm', attachment.value.chooseFileList || [])\n dialogVisible.value = false\n } else {\n ElMessage.warning({ message: '请先选择文件' })\n }\n}\n\n// 关闭\nconst cancel = () => {\n dialogVisible.value = false\n}\n\nconst open = () => {\n dialogVisible.value = true\n}\n\ndefineExpose({\n dialogVisible,\n attachment,\n cancel,\n open,\n})\n</script>\n"],"names":["__MACROS_defineComponent","createNamespace","ref","getAttachmentTitle","getAttachmentType","ElMessage"],"mappings":";;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA4BD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAIC,sBAAgB,mBAAmB,CAAA,CAAA;AAKpD,IAAA,MAAM,aAAaC,OAAI,EAAA,CAAA;AACvB,IAAM,MAAA,aAAA,GAAgBA,QAAI,KAAK,CAAA,CAAA;AAC/B,IAAA,MAAM,QAAQA,OAAI,CAAA,KAAA,CAAM,SAASC,wBAAmB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAE/D,IAAA,MAAM,KAAQ,GAAAD,OAAA,CAAIE,uBAAkB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAI/C,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAI,UAAW,CAAA,KAAA,CAAM,cAAe,CAAA,MAAA,GAAS,CAAG,EAAA;AAC9C,QAAA,IAAA,CAAK,SAAW,EAAA,UAAA,CAAW,KAAM,CAAA,cAAA,IAAkB,EAAE,CAAA,CAAA;AACrD,QAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,OACjB,MAAA;AACL,QAAAC,qBAAA,CAAU,OAAQ,CAAA,EAAE,OAAS,EAAA,sCAAA,EAAU,CAAA,CAAA;AAAA,OACzC;AAAA,KACF,CAAA;AAGA,IAAA,MAAM,SAAS,MAAM;AACnB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,aAAA;AAAA,MACA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,IAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../../src/attachment-dialog/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { attachmentProps } from '../../attachment'\n\nexport const attachmentDialogProps = {\n ...attachmentProps,\n title: {\n type: String,\n default: '',\n },\n}\n\nexport type AttachmentDialogProps = ExtractPropTypes<\n typeof attachmentDialogProps\n>\n"],"names":["attachmentProps"],"mappings":";;;;;AAGO,MAAM,qBAAwB,GAAA;AAAA,EACnC,GAAGA,qBAAA;AAAA,EACH,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF;;;;"}
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../src/attachment-dialog/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { attachmentProps } from '../../attachment'\n\nexport const attachmentDialogProps = {\n ...attachmentProps,\n title: {\n type: String,\n default: '',\n },\n zIndex: {\n type: Number,\n default: 1299,\n },\n}\n\nexport type AttachmentDialogProps = ExtractPropTypes<\n typeof attachmentDialogProps\n>\n"],"names":["attachmentProps"],"mappings":";;;;;AAGO,MAAM,qBAAwB,GAAA;AAAA,EACnC,GAAGA,qBAAA;AAAA,EACH,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF;;;;"}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var audioInput_vue_vue_type_script_setup_true_lang = require('./audio-input.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _AudioInput = /* @__PURE__ */ _pluginVue_exportHelper.default(audioInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _AudioInput = /* @__PURE__ */ _pluginVue_exportHelper.default(audioInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _AudioInput;
|
11
11
|
//# sourceMappingURL=audio-input.vue.js.map
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var audioListInput_vue_vue_type_script_setup_true_lang = require('./audio-list-input.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _AudioListInput = /* @__PURE__ */ _pluginVue_exportHelper.default(audioListInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _AudioListInput = /* @__PURE__ */ _pluginVue_exportHelper.default(audioListInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _AudioListInput;
|
11
11
|
//# sourceMappingURL=audio-list-input.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"audio-list-input.vue2.js","sources":["../../../src/audio-list-input/src/audio-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAudioListInput',\n});\n</script>\n<template>\n <dk-file-list-input
|
1
|
+
{"version":3,"file":"audio-list-input.vue2.js","sources":["../../../src/audio-list-input/src/audio-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAudioListInput',\n});\n</script>\n<template>\n <dk-file-list-input\n v-bind=\"$props\"\n v-model=\"input\"\n :class=\"bem()\"\n :type=\"2\"\n @change=\"handleInput(input)\"\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { audioListInputProps } from './props'\nimport { ref, watch } from 'vue'\nconst [_, bem] = createNamespace('audio-list-input')\n\n\n\nconst props = defineProps(audioListInputProps)\nconst input = ref(props.modelValue)\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n input.value = val\n }\n)\n\nwatch(\n () => input.value,\n (val) => {\n handleInput(val)\n }\n)\n\nconst handleInput = (val: any) => {\n emit('update:modelValue', val)\n emit('input', val)\n emit('change', val)\n}\n</script>\n"],"names":["__MACROS_defineComponent","createNamespace","ref","watch"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAgBD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAIC,sBAAgB,kBAAkB,CAAA,CAAA;AAKnD,IAAM,MAAA,KAAA,GAAQC,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAGlC,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,OAChB;AAAA,KACF,CAAA;AAEA,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAAA,OACjB;AAAA,KACF,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,GAAa,KAAA;AAChC,MAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AACjB,MAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;"}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var boxSizeInput_vue_vue_type_script_setup_true_lang = require('./box-size-input.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _BoxSizeInput = /* @__PURE__ */ _pluginVue_exportHelper.default(boxSizeInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _BoxSizeInput = /* @__PURE__ */ _pluginVue_exportHelper.default(boxSizeInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _BoxSizeInput;
|
11
11
|
//# sourceMappingURL=box-size-input.vue.js.map
|
@@ -7,6 +7,7 @@ var props = require('./props.js');
|
|
7
7
|
var core = require('@vueuse/core');
|
8
8
|
|
9
9
|
const _hoisted_1 = ["onMousedown"];
|
10
|
+
const _hoisted_2 = { style: { "display": "flex" } };
|
10
11
|
const __default__ = vue.defineComponent({
|
11
12
|
name: "DkBoxSizeInput"
|
12
13
|
});
|
@@ -184,8 +185,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
184
185
|
return (_ctx, _cache) => {
|
185
186
|
const _component_dk_icon = vue.resolveComponent("dk-icon");
|
186
187
|
const _component_el_tooltip = vue.resolveComponent("el-tooltip");
|
187
|
-
const _component_el_select_v2 = vue.resolveComponent("el-select-v2");
|
188
188
|
const _component_el_input = vue.resolveComponent("el-input");
|
189
|
+
const _component_el_select_v2 = vue.resolveComponent("el-select-v2");
|
189
190
|
const _component_el_button = vue.resolveComponent("el-button");
|
190
191
|
return vue.openBlock(), vue.createElementBlock(
|
191
192
|
"div",
|
@@ -198,61 +199,63 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
198
199
|
vue.withDirectives(vue.createElementVNode(
|
199
200
|
"div",
|
200
201
|
{
|
201
|
-
class: vue.normalizeClass(vue.unref(width).value
|
202
|
+
class: vue.normalizeClass(vue.unref(width).value > 500 ? "" : "")
|
202
203
|
},
|
203
204
|
[
|
204
205
|
(vue.openBlock(true), vue.createElementBlock(
|
205
206
|
vue.Fragment,
|
206
207
|
null,
|
207
208
|
vue.renderList(inputList.value, (item, key) => {
|
208
|
-
return vue.openBlock(), vue.
|
209
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
209
210
|
key,
|
210
|
-
|
211
|
-
"onUpdate:modelValue": ($event) => positions[item.position] = $event,
|
212
|
-
type: "number",
|
213
|
-
controls: false,
|
214
|
-
disabled: unit[item.position] == "auto"
|
215
|
-
}, vue.createSlots({
|
216
|
-
append: vue.withCtx(() => [
|
217
|
-
vue.createVNode(_component_el_select_v2, {
|
218
|
-
modelValue: unit[item.position],
|
219
|
-
"onUpdate:modelValue": ($event) => unit[item.position] = $event,
|
220
|
-
options: options.value
|
221
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"])
|
222
|
-
]),
|
223
|
-
_: 2
|
224
|
-
/* DYNAMIC */
|
211
|
+
style: { "display": "flex" }
|
225
212
|
}, [
|
226
|
-
vue.
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
213
|
+
vue.createVNode(_component_el_input, {
|
214
|
+
modelValue: positions[item.position],
|
215
|
+
"onUpdate:modelValue": ($event) => positions[item.position] = $event,
|
216
|
+
type: "number",
|
217
|
+
controls: false,
|
218
|
+
disabled: unit[item.position] == "auto"
|
219
|
+
}, vue.createSlots({
|
220
|
+
_: 2
|
221
|
+
/* DYNAMIC */
|
222
|
+
}, [
|
223
|
+
vue.unref(width).value > 600 || vue.unref(width).value < 500 ? {
|
224
|
+
name: "prefix",
|
225
|
+
fn: vue.withCtx(() => [
|
226
|
+
vue.createElementVNode("span", {
|
227
|
+
class: "w-resize",
|
228
|
+
onMousemove: handleMouseMove,
|
229
|
+
onMousedown: ($event) => handleMouseDown(item.position, $event),
|
230
|
+
onMouseup: handleMouseUp
|
231
|
+
}, [
|
232
|
+
vue.createVNode(_component_el_tooltip, {
|
233
|
+
"hide-after": 0,
|
234
|
+
class: "item",
|
235
|
+
effect: "dark",
|
236
|
+
content: item.name,
|
237
|
+
placement: "top-start",
|
238
|
+
disabled: disabledTooltip.value
|
239
|
+
}, {
|
240
|
+
default: vue.withCtx(() => [
|
241
|
+
vue.createVNode(_component_dk_icon, {
|
242
|
+
icon: item.icon
|
243
|
+
}, null, 8, ["icon"])
|
244
|
+
]),
|
245
|
+
_: 2
|
246
|
+
/* DYNAMIC */
|
247
|
+
}, 1032, ["content", "disabled"])
|
248
|
+
], 40, _hoisted_1)
|
249
|
+
]),
|
250
|
+
key: "0"
|
251
|
+
} : void 0
|
252
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
253
|
+
vue.createVNode(_component_el_select_v2, {
|
254
|
+
modelValue: unit[item.position],
|
255
|
+
"onUpdate:modelValue": ($event) => unit[item.position] = $event,
|
256
|
+
options: options.value
|
257
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"])
|
258
|
+
]);
|
256
259
|
}),
|
257
260
|
128
|
258
261
|
/* KEYED_FRAGMENT */
|
@@ -265,11 +268,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
265
268
|
]),
|
266
269
|
vue.withDirectives(vue.createElementVNode(
|
267
270
|
"div",
|
268
|
-
|
271
|
+
_hoisted_2,
|
269
272
|
[
|
270
273
|
vue.createVNode(_component_el_input, {
|
271
274
|
modelValue: positions.all,
|
272
|
-
"onUpdate:modelValue": _cache[
|
275
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => positions.all = $event),
|
273
276
|
type: "number",
|
274
277
|
controls: false,
|
275
278
|
disabled: unit.all === "auto",
|
@@ -291,16 +294,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
291
294
|
/* HYDRATE_EVENTS */
|
292
295
|
)
|
293
296
|
]),
|
294
|
-
append: vue.withCtx(() => [
|
295
|
-
vue.createVNode(_component_el_select_v2, {
|
296
|
-
modelValue: unit.all,
|
297
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unit.all = $event),
|
298
|
-
options: options.value
|
299
|
-
}, null, 8, ["modelValue", "options"])
|
300
|
-
]),
|
301
297
|
_: 1
|
302
298
|
/* STABLE */
|
303
|
-
}, 8, ["modelValue", "disabled", "clearable"])
|
299
|
+
}, 8, ["modelValue", "disabled", "clearable"]),
|
300
|
+
vue.createVNode(_component_el_select_v2, {
|
301
|
+
modelValue: unit.all,
|
302
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unit.all = $event),
|
303
|
+
options: options.value
|
304
|
+
}, null, 8, ["modelValue", "options"])
|
304
305
|
],
|
305
306
|
512
|
306
307
|
/* NEED_PATCH */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"box-size-input.vue2.js","sources":["../../../src/box-size-input/src/box-size-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkBoxSizeInput',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-box-size-input\">\n <div v-show=\"!isMerge\" :class=\"width.value < 500 ? '' : 'flex'\">\n <el-input\n v-for=\"(item, key) in inputList\"\n :key=\"key\"\n v-model=\"positions[item.position]\"\n type=\"number\"\n :controls=\"false\"\n :disabled=\"unit[item.position] == 'auto'\"\n >\n <template v-if=\"width.value > 600 || width.value < 500\" #prefix>\n <span\n class=\"w-resize\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown(item.position, $event)\"\n @mouseup=\"handleMouseUp\"\n >\n <el-tooltip\n :hide-after=\"0\"\n class=\"item\"\n effect=\"dark\"\n :content=\"item.name\"\n placement=\"top-start\"\n :disabled=\"disabledTooltip\"\n >\n <dk-icon :icon=\"item.icon\" />\n </el-tooltip>\n </span>\n </template>\n <template #append>\n <el-select-v2 v-model=\"unit[item.position]\" :options=\"options\"> </el-select-v2>\n </template>\n </el-input>\n </div>\n <div v-show=\"isMerge\">\n <el-input\n v-model=\"positions.all\"\n type=\"number\"\n :controls=\"false\"\n :disabled=\"unit.all === 'auto'\"\n :clearable=\"props.clearable\"\n >\n <template #prefix>\n <span\n class=\"w-resize\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown('all', $event)\"\n @mouseup=\"handleMouseUp\"\n >\n <dk-icon icon=\"Rank\"></dk-icon>\n </span>\n </template>\n <template #append>\n <el-select-v2 v-model=\"unit.all\" :options=\"options\"> </el-select-v2>\n </template>\n </el-input>\n </div>\n <div v-if=\"props.showMerge\" class=\"dk-full\" @click=\"isMerge = !isMerge\">\n <el-tooltip\n class=\"item\"\n effect=\"dark\"\n :content=\"isMerge ? '独立配置' : '批量配置'\"\n placement=\"top\"\n :hide-after=\"0\"\n >\n <el-button v-if=\"isMerge\">\n <dk-icon icon=\"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting\"></dk-icon>\n </el-button>\n <el-button v-else>\n <dk-icon icon=\"streamline:interface-layout-border-full-grid-layout-layouts-module\"></dk-icon>\n </el-button>\n </el-tooltip>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { boxSizeInputProps } from './props'\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { useElementSize } from '@vueuse/core'\n\n\nconst props = defineProps(boxSizeInputProps)\nconst el: any = ref()\nconst { width } = useElementSize(el) // 当前组件宽度\n// First, second, third, fourth\nconst positions: any = reactive({\n all: '',\n // 一般用于padding、margin、border\n first: '',\n second: '',\n third: '',\n fourth: '',\n // 一般用于radius\n})\n\nconst unit: any = reactive({\n all: 'px',\n first: 'rem',\n second: 'px',\n third: 'px',\n fourth: 'px',\n})\n\nconst units = ['px', '%', 'rem', 'rm', 'vh', 'auto']\nconst position = ref('')\nconst isMerge = ref(props.defaultIsMerge)\nconst isDragging = ref(false)\nconst startX = ref(0)\nconst disabledTooltip = ref(false)\nconst trackMouseBound: any = ref(null)\nconst stopChangeBound: any = ref(null)\n\nconst options = computed(() => {\n return units.map((item) => {\n return {\n label: item,\n value: item,\n }\n })\n})\n\nconst inputList = computed(() => {\n let list: any[]\n if (props.type === 'radius') {\n list = [\n {\n position: 'first',\n name: '左上',\n icon: 'ant-design:radius-upleft-outlined',\n },\n {\n position: 'second',\n name: '右上',\n icon: 'ant-design:radius-upright-outlined',\n },\n {\n position: 'fourth',\n name: '左下',\n icon: 'ant-design:radius-bottomleft-outlined',\n },\n {\n position: 'third',\n name: '左下',\n icon: 'ant-design:radius-bottomright-outlined',\n },\n ]\n } else {\n list = [\n { position: 'first', name: '上', icon: 'ArrowUp' },\n { position: 'second', name: '右', icon: 'ArrowRight' },\n { position: 'third', name: '下', icon: 'ArrowDown' },\n { position: 'fourth', name: '左', icon: 'ArrowLeft' },\n ]\n }\n return list\n})\nconst emit = defineEmits(['update:modelValue'])\n\nconst handleMouseDown = (_position: any, event: any) => {\n isDragging.value = true\n startX.value = event.clientX\n position.value = _position\n trackMouseBound.value = handleMouseMove.bind(event)\n stopChangeBound.value = handleMouseUp.bind(event)\n document.addEventListener('mousemove', trackMouseBound.value)\n document.addEventListener('mouseup', stopChangeBound.value)\n document.body.style.cursor = 'ew-resize'\n}\n\nconst handleMouseMove = (event: any) => {\n if (isDragging.value) {\n positions[position.value] = event.clientX - startX.value\n }\n}\n\nconst handleMouseUp = () => {\n document.removeEventListener('mousemove', trackMouseBound.value)\n document.removeEventListener('mouseup', stopChangeBound.value)\n document.body.style.cursor = 'default'\n isDragging.value = false\n position.value = ''\n}\n\nconst initValue = () => {\n const getUnit = (value: string) => {\n let unit = 'px'\n units.forEach((item) => {\n if (value.includes(item)) {\n unit = item\n }\n })\n return unit\n }\n\n const arr = props.modelValue.split(' ') || ['0px']\n let [first, second = first, third = first, fourth = second] = arr\n\n if (arr.length === 4) {\n isMerge.value = false\n } else if (arr.length === 3) {\n isMerge.value = false\n fourth = ''\n } else if (arr.length === 2) {\n isMerge.value = false\n third = first\n fourth = second\n } else {\n isMerge.value = true\n second = third = fourth = first\n }\n\n const positionValues: any = { first, second, third, fourth }\n for (const pos in positionValues) {\n positions[pos] = parseInt(positionValues[pos]) || 0\n unit[pos] = getUnit(positionValues[pos])\n }\n\n if (isMerge.value) {\n positions.all = positions.first\n unit.all = unit.first\n }\n}\n\n// 值的初始化\nwatch(\n () => props.modelValue,\n () => {\n initValue()\n }\n)\n\n// const sizeValue = computed(() => {\n// if (isMerge.value) {\n// if (unit.all === 'auto') {\n// return 'auto'\n// // emit('update:modelValue', 'auto')\n// } else {\n// // emit('update:modelValue', `${positions.all}${unit.all}`)\n// return `${positions.all}${unit.all}`\n// }\n// } else {\n// // 如果有一个值为auto,则为auto\n// let value = ''\n// for (const pos in unit) {\n// if (pos === 'all') continue\n// if (unit[pos] === 'auto') {\n// value += 'auto '\n// } else {\n// value += `${positions[pos]}${unit[pos]} `\n// }\n// }\n// // emit('update:modelValue', value.trim())\n// return value.trim()\n// }\n// })\n\nconst emitValue = () => {\n if (isMerge.value) {\n if (unit.all === 'auto') {\n emit('update:modelValue', 'auto')\n } else {\n emit('update:modelValue', `${positions.all}${unit.all}`)\n }\n } else {\n // 如果有一个值为auto,则为auto\n let value = ''\n for (const pos in unit) {\n if (pos === 'all') continue\n if (unit[pos] === 'auto') {\n value += 'auto '\n } else {\n value += `${positions[pos]}${unit[pos]} `\n }\n }\n emit('update:modelValue', value.trim())\n }\n}\n\nwatch(positions, () => {\n emitValue()\n})\nwatch(isMerge, () => {\n emitValue()\n})\nwatch(unit, () => {\n emitValue()\n})\n\n// watch(sizeValue, () => {\n// console.log('sizeValue', sizeValue)\n// emit('update:modelValue', sizeValue)\n// })\n\nonMounted(() => {\n initValue()\n})\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","reactive","computed","unit","watch","onMounted"],"mappings":";;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,gBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAsFD,IAAA,MAAM,KAAUC,OAAI,EAAA,CAAA;AACpB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAEnC,IAAA,MAAM,YAAiBC,YAAS,CAAA;AAAA,MAC9B,GAAK,EAAA,EAAA;AAAA;AAAA,MAEL,KAAO,EAAA,EAAA;AAAA,MACP,MAAQ,EAA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ChB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAOD,IAAAC,aAAA,CAAU,MAAM;AACd,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"box-size-input.vue2.js","sources":["../../../src/box-size-input/src/box-size-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkBoxSizeInput',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-box-size-input\">\n <div v-show=\"!isMerge\" :class=\"width.value > 500 ? '' : ''\">\n <div v-for=\"(item, key) in inputList\" :key=\"key\" style=\"display: flex\">\n <el-input\n v-model=\"positions[item.position]\"\n type=\"number\"\n :controls=\"false\"\n :disabled=\"unit[item.position] == 'auto'\"\n >\n <template v-if=\"width.value > 600 || width.value < 500\" #prefix>\n <span\n class=\"w-resize\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown(item.position, $event)\"\n @mouseup=\"handleMouseUp\"\n >\n <el-tooltip\n :hide-after=\"0\"\n class=\"item\"\n effect=\"dark\"\n :content=\"item.name\"\n placement=\"top-start\"\n :disabled=\"disabledTooltip\"\n >\n <dk-icon :icon=\"item.icon\" />\n </el-tooltip>\n </span>\n </template>\n <!-- <template #append>-->\n <!-- <el-select-v2 v-model=\"unit[item.position]\" :options=\"options\">-->\n <!-- </el-select-v2>-->\n <!-- </template>-->\n </el-input>\n <el-select-v2 v-model=\"unit[item.position]\" :options=\"options\"> </el-select-v2>\n </div>\n </div>\n <div v-show=\"isMerge\" style=\"display: flex\">\n <el-input\n v-model=\"positions.all\"\n type=\"number\"\n :controls=\"false\"\n :disabled=\"unit.all === 'auto'\"\n :clearable=\"props.clearable\"\n >\n <template #prefix>\n <span\n class=\"w-resize\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown('all', $event)\"\n @mouseup=\"handleMouseUp\"\n >\n <dk-icon icon=\"Rank\"></dk-icon>\n </span>\n </template>\n </el-input>\n <el-select-v2 v-model=\"unit.all\" :options=\"options\"> </el-select-v2>\n </div>\n <div v-if=\"props.showMerge\" class=\"dk-full\" @click=\"isMerge = !isMerge\">\n <el-tooltip\n class=\"item\"\n effect=\"dark\"\n :content=\"isMerge ? '独立配置' : '批量配置'\"\n placement=\"top\"\n :hide-after=\"0\"\n >\n <el-button v-if=\"isMerge\">\n <dk-icon icon=\"streamline:interface-layout-border-horizontal-border-cell-center-format-formatting\"></dk-icon>\n </el-button>\n <el-button v-else>\n <dk-icon icon=\"streamline:interface-layout-border-full-grid-layout-layouts-module\"></dk-icon>\n </el-button>\n </el-tooltip>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { boxSizeInputProps } from './props'\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { useElementSize } from '@vueuse/core'\n\n\nconst props = defineProps(boxSizeInputProps)\nconst el: any = ref()\nconst { width } = useElementSize(el) // 当前组件宽度\n// First, second, third, fourth\nconst positions: any = reactive({\n all: '',\n // 一般用于padding、margin、border\n first: '',\n second: '',\n third: '',\n fourth: '',\n // 一般用于radius\n})\n\nconst unit: any = reactive({\n all: 'px',\n first: 'rem',\n second: 'px',\n third: 'px',\n fourth: 'px',\n})\n\nconst units = ['px', '%', 'rem', 'rm', 'vh', 'auto']\nconst position = ref('')\nconst isMerge = ref(props.defaultIsMerge)\nconst isDragging = ref(false)\nconst startX = ref(0)\nconst disabledTooltip = ref(false)\nconst trackMouseBound: any = ref(null)\nconst stopChangeBound: any = ref(null)\n\nconst options = computed(() => {\n return units.map((item) => {\n return {\n label: item,\n value: item,\n }\n })\n})\n\nconst inputList = computed(() => {\n let list: any[]\n if (props.type === 'radius') {\n list = [\n {\n position: 'first',\n name: '左上',\n icon: 'ant-design:radius-upleft-outlined',\n },\n {\n position: 'second',\n name: '右上',\n icon: 'ant-design:radius-upright-outlined',\n },\n {\n position: 'fourth',\n name: '左下',\n icon: 'ant-design:radius-bottomleft-outlined',\n },\n {\n position: 'third',\n name: '左下',\n icon: 'ant-design:radius-bottomright-outlined',\n },\n ]\n } else {\n list = [\n { position: 'first', name: '上', icon: 'ArrowUp' },\n { position: 'second', name: '右', icon: 'ArrowRight' },\n { position: 'third', name: '下', icon: 'ArrowDown' },\n { position: 'fourth', name: '左', icon: 'ArrowLeft' },\n ]\n }\n return list\n})\nconst emit = defineEmits(['update:modelValue'])\n\nconst handleMouseDown = (_position: any, event: any) => {\n isDragging.value = true\n startX.value = event.clientX\n position.value = _position\n trackMouseBound.value = handleMouseMove.bind(event)\n stopChangeBound.value = handleMouseUp.bind(event)\n document.addEventListener('mousemove', trackMouseBound.value)\n document.addEventListener('mouseup', stopChangeBound.value)\n document.body.style.cursor = 'ew-resize'\n}\n\nconst handleMouseMove = (event: any) => {\n if (isDragging.value) {\n positions[position.value] = event.clientX - startX.value\n }\n}\n\nconst handleMouseUp = () => {\n document.removeEventListener('mousemove', trackMouseBound.value)\n document.removeEventListener('mouseup', stopChangeBound.value)\n document.body.style.cursor = 'default'\n isDragging.value = false\n position.value = ''\n}\n\nconst initValue = () => {\n const getUnit = (value: string) => {\n let unit = 'px'\n units.forEach((item) => {\n if (value.includes(item)) {\n unit = item\n }\n })\n return unit\n }\n\n const arr = props.modelValue.split(' ') || ['0px']\n let [first, second = first, third = first, fourth = second] = arr\n\n if (arr.length === 4) {\n isMerge.value = false\n } else if (arr.length === 3) {\n isMerge.value = false\n fourth = ''\n } else if (arr.length === 2) {\n isMerge.value = false\n third = first\n fourth = second\n } else {\n isMerge.value = true\n second = third = fourth = first\n }\n\n const positionValues: any = { first, second, third, fourth }\n for (const pos in positionValues) {\n positions[pos] = parseInt(positionValues[pos]) || 0\n unit[pos] = getUnit(positionValues[pos])\n }\n\n if (isMerge.value) {\n positions.all = positions.first\n unit.all = unit.first\n }\n}\n\n// 值的初始化\nwatch(\n () => props.modelValue,\n () => {\n initValue()\n }\n)\n\n// const sizeValue = computed(() => {\n// if (isMerge.value) {\n// if (unit.all === 'auto') {\n// return 'auto'\n// // emit('update:modelValue', 'auto')\n// } else {\n// // emit('update:modelValue', `${positions.all}${unit.all}`)\n// return `${positions.all}${unit.all}`\n// }\n// } else {\n// // 如果有一个值为auto,则为auto\n// let value = ''\n// for (const pos in unit) {\n// if (pos === 'all') continue\n// if (unit[pos] === 'auto') {\n// value += 'auto '\n// } else {\n// value += `${positions[pos]}${unit[pos]} `\n// }\n// }\n// // emit('update:modelValue', value.trim())\n// return value.trim()\n// }\n// })\n\nconst emitValue = () => {\n if (isMerge.value) {\n if (unit.all === 'auto') {\n emit('update:modelValue', 'auto')\n } else {\n emit('update:modelValue', `${positions.all}${unit.all}`)\n }\n } else {\n // 如果有一个值为auto,则为auto\n let value = ''\n for (const pos in unit) {\n if (pos === 'all') continue\n if (unit[pos] === 'auto') {\n value += 'auto '\n } else {\n value += `${positions[pos]}${unit[pos]} `\n }\n }\n emit('update:modelValue', value.trim())\n }\n}\n\nwatch(positions, () => {\n emitValue()\n})\nwatch(isMerge, () => {\n emitValue()\n})\nwatch(unit, () => {\n emitValue()\n})\n\n// watch(sizeValue, () => {\n// console.log('sizeValue', sizeValue)\n// emit('update:modelValue', sizeValue)\n// })\n\nonMounted(() => {\n initValue()\n})\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","reactive","computed","unit","watch","onMounted"],"mappings":";;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,gBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAsFD,IAAA,MAAM,KAAUC,OAAI,EAAA,CAAA;AACpB,I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AM,WAAW,MAAM;AACrB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AACD,IAAAA,SAAA,CAAM,SAAS,MAAM;AACnB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AACD,IAAAA,SAAA,CAAM,MAAM,MAAM;AAChB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAOD,IAAAC,aAAA,CAAU,MAAM;AACd,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
.dk-box-size-input{display:flex;
|
1
|
+
.dk-box-size-input{display:flex;align-items:flex-start;justify-content:space-between;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.dk-box-size-input .alone{display:flex}.dk-box-size-input .w-resize{display:flex;align-items:center;cursor:w-resize}.dk-box-size-input .el-input-group__append{padding:0}.dk-box-size-input .el-select-v2__suffix{display:none}.dk-box-size-input .el-select-v2__placeholder{width:100%}.dk-box-size-input .el-virtual-scrollbar{right:0!important;width:2px!important}
|
@@ -1,27 +1,34 @@
|
|
1
1
|
.dk-box-size-input {
|
2
2
|
display: flex;
|
3
|
-
|
4
|
-
|
3
|
+
align-items: flex-start;
|
4
|
+
justify-content: space-between;
|
5
5
|
user-select: none;
|
6
|
+
width: 100%;
|
7
|
+
|
6
8
|
.alone {
|
7
9
|
display: flex;
|
8
10
|
}
|
11
|
+
|
9
12
|
.w-resize {
|
10
|
-
cursor: w-resize;
|
11
13
|
display: flex;
|
12
14
|
align-items: center;
|
15
|
+
cursor: w-resize;
|
13
16
|
}
|
17
|
+
|
14
18
|
.el-input-group__append {
|
15
19
|
padding: 0;
|
16
20
|
}
|
21
|
+
|
17
22
|
.el-select-v2__suffix {
|
18
23
|
display: none;
|
19
24
|
}
|
25
|
+
|
20
26
|
.el-select-v2__placeholder {
|
21
27
|
width: 100%;
|
22
28
|
}
|
29
|
+
|
23
30
|
.el-virtual-scrollbar {
|
24
|
-
width: 2px !important;
|
25
31
|
right: 0 !important;
|
32
|
+
width: 2px !important;
|
26
33
|
}
|
27
34
|
}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var colorInput_vue_vue_type_script_setup_true_lang = require('./color-input.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _ColorInput = /* @__PURE__ */ _pluginVue_exportHelper.default(colorInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _ColorInput = /* @__PURE__ */ _pluginVue_exportHelper.default(colorInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\color-input\\src\\color-input.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _ColorInput;
|
11
11
|
//# sourceMappingURL=color-input.vue.js.map
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var dialog_vue_vue_type_script_setup_true_lang = require('./dialog.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _Dialog = /* @__PURE__ */ _pluginVue_exportHelper.default(dialog_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _Dialog = /* @__PURE__ */ _pluginVue_exportHelper.default(dialog_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\dialog\\src\\dialog.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _Dialog;
|
11
11
|
//# sourceMappingURL=dialog.vue.js.map
|