@vipl520/dk-ui 1.0.40 → 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 +102 -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.css +1 -1
- package/es/page-diy/style/dk-page-diy.scss +3 -3
- package/es/page-diy/style/index.css +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 +102 -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.css +1 -1
- package/lib/page-diy/style/dk-page-diy.scss +3 -3
- package/lib/page-diy/style/index.css +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 -34318
- package/dist/index.mjs +0 -34228
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icon-content.vue2.js","sources":["../../../src/icon-input/src/icon-content.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkIconContent',\n});\n</script>\n<template>\n <div class=\"dk-icon-content\">\n <el-tabs v-model=\"activeName\">\n <el-tab-pane
|
1
|
+
{"version":3,"file":"icon-content.vue2.js","sources":["../../../src/icon-input/src/icon-content.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkIconContent',\n});\n</script>\n<template>\n <div class=\"dk-icon-content\">\n <el-tabs v-model=\"activeName\">\n <el-tab-pane\n v-if=\"props.showTab.el\"\n label=\"element图标\"\n name=\"element\"\n class=\"dk-tab-pane\"\n >\n <dk-icon\n v-for=\"(item, key) in _elIcons\"\n :key=\"key\"\n :size=\"36\"\n :color=\"item == chooseIcon ? 'var(--el-color-primary)' : ''\"\n :class=\"item == chooseIcon ? 'choose-icon' : 'dk-icon'\"\n class=\"cursor-pointer\"\n hover-color=\"var(--el-color-primary)\"\n @click=\"onChooseIcon(item)\"\n >\n <component :is=\"item\" />\n </dk-icon>\n </el-tab-pane>\n <el-tab-pane\n v-if=\"props.showTab.vant\"\n label=\"vant图标\"\n name=\"vant\"\n class=\"dk-tab-pane\"\n >\n <dk-icon\n v-for=\"(item, key) in _vantIcons\"\n :key=\"key\"\n :size=\"36\"\n :color=\"item == chooseIcon ? '#409eff' : ''\"\n :class=\"item == chooseIcon ? 'choose-icon' : 'dk-icon'\"\n class=\"cursor-pointer\"\n hover-color=\"var(--el-color-primary)\"\n :icon=\"item\"\n @click=\"onChooseIcon(item)\"\n >\n </dk-icon>\n </el-tab-pane>\n <el-tab-pane\n v-if=\"props.showTab.cloud\"\n label=\"云端图标\"\n name=\"cloud\"\n class=\"dk-tab-pane\"\n >\n <template v-if=\"_iconifyIcons.length > 0\">\n <dk-icon\n v-for=\"(item, key) in _iconifyIcons\"\n :key=\"key\"\n :icon=\"item\"\n :size=\"36\"\n hover-color=\"var(--el-color-primary)\"\n :color=\"item == chooseIcon ? '#409eff' : ''\"\n :class=\"item == chooseIcon ? 'choose-icon' : 'dk-icon'\"\n class=\"cursor-pointer\"\n @click=\"onChooseIcon(item)\"\n >\n </dk-icon>\n <p\n v-if=\"!searchIcon\"\n class=\"text-center\"\n style=\"font-size: 12px; color: #999\"\n >\n 当前显示已缓存的图标\n </p>\n </template>\n <el-empty v-else description=\"暂无图标,请搜索\"></el-empty>\n </el-tab-pane>\n </el-tabs>\n <div class=\"search-icon\">\n <el-input\n v-model=\"searchIcon\"\n clearable\n :placeholder=\"searchPlaceholder\"\n @clear=\"onClear\"\n >\n <template #append>\n <el-button :icon=\"Search\" @click=\"onSearch()\" />\n </template>\n </el-input>\n </div>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, ref, watch, watchEffect } from 'vue'\nimport * as ElementPlusIconsVue from '@element-plus/icons-vue'\nimport { Search } from '@element-plus/icons-vue'\nimport { listIcons, disableCache } from '@iconify/vue'\nimport { getIcons } from '../../api/common'\nimport icons from '@vant/icons'\nimport { iconContentProps } from './props'\n\n// Disable all caching\ndisableCache('all')\n// List all icons\n\nconst props = defineProps(iconContentProps)\n\nfunction convertIconsToArray(iconsObj: any) {\n let iconArray: any = []\n for (const key in iconsObj) {\n // eslint-disable-next-line no-prototype-builtins\n if (iconsObj.hasOwnProperty(key) && Array.isArray(iconsObj[key])) {\n iconArray = iconArray.concat(iconsObj[key])\n }\n }\n return iconArray\n}\n\n// 获取element-plus所有图标\nconst elIcons = Object.keys(ElementPlusIconsVue).map((key) => {\n return key\n})\n\nconst vantIcons = convertIconsToArray(icons)\n\nconst _elIcons = ref(elIcons)\nconst _vantIcons = ref(vantIcons)\n\nconst iconifyIcons = listIcons()\nconst _iconifyIcons = ref(iconifyIcons)\n\n// 选中的tab\n// const activeName = ref(props.type)\nconst determineActiveName = () => {\n const { el, vant, cloud } = props.showTab\n\n if (el) {\n return 'element'\n } else if (vant) {\n return 'vant'\n } else if (cloud) {\n return 'cloud'\n }\n\n return props.type // 如果所有的选项都是 false,使用 type 的默认值\n}\n\n// 初始化 activeName\nconst activeName = ref(determineActiveName())\n\nconst searchIcon = ref('')\nconst searchPlaceholder = computed(() => {\n if (activeName.value === 'element') {\n return '搜索element-plus图标'\n } else if (activeName.value === 'vant') {\n return '搜索vant图标'\n } else {\n return '搜索云端图标'\n }\n})\n// 选中的图标\nconst chooseIcon = ref('')\nconst emit = defineEmits(['choose'])\n\n// 选择图标\nconst onChooseIcon = (icon: string) => {\n chooseIcon.value = icon\n emit('choose', icon)\n}\nconst onSearch = () => {\n if (activeName.value === 'element') {\n const searchTerm = searchIcon.value.toLowerCase() // 将搜索关键字转换为小写\n console.log(searchTerm)\n _elIcons.value = elIcons.filter((item) => {\n if (searchTerm) {\n const lowerItem = item.toLowerCase() // 将图标名转换为小写\n // 模糊查询匹配\n if (lowerItem.includes(searchTerm)) {\n return true // 匹配成功,返回 true\n }\n }\n return false // 没有匹配,返回 false\n })\n } else if (activeName.value === 'vant') {\n console.log('use')\n _vantIcons.value = vantIcons.filter((item: any) => {\n if (searchIcon.value) {\n const lowerItem = item.toLowerCase() // 将图标名转换为小写\n // 模糊查询匹配\n if (lowerItem.includes(searchIcon.value)) {\n return true // 匹配成功,返回 true\n }\n }\n return false // 没有匹配,返回 false\n })\n } else {\n // 云端\n getIcons(searchIcon.value)\n .then((res) => {\n _iconifyIcons.value = res.data\n })\n .catch((res) => {\n console.log(res)\n })\n }\n}\n\nconst onClear = () => {\n searchIcon.value = ''\n _elIcons.value = elIcons\n _iconifyIcons.value = iconifyIcons\n _vantIcons.value = vantIcons\n}\n\n// 导出ref\ndefineExpose({\n chooseIcon,\n})\n</script>\n"],"names":["__MACROS_defineComponent","disableCache","ElementPlusIconsVue","ref","listIcons","computed","getIcons"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,eAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAiGD,IAAAC,kBAAA,CAAa,KAAK,CAAA,CAAA;AAKlB,IAAA,SAAS,oBAAoB,QAAe,EAAA;AAC1C,MAAA,IAAI,YAAiB,EAAC,CAAA;AACtB,MAAA,KAAA,MAAW,OAAO,QAAU,EAAA;AAE1B,QAAI,IAAA,QAAA,CAAS,eAAe,GAAG,CAAA,IAAK,MAAM,OAAQ,CAAA,QAAA,CAAS,GAAG,CAAC,CAAG,EAAA;AAChE,UAAA,SAAA,GAAY,SAAU,CAAA,MAAA,CAAO,QAAS,CAAA,GAAG,CAAC,CAAA,CAAA;AAAA,SAC5C;AAAA,OACF;AACA,MAAO,OAAA,SAAA,CAAA;AAAA,KACT;AAGA,IAAA,MAAM,UAAU,MAAO,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,GAAQ,KAAA;AACb,UAAA,aAAA,CAAc,QAAQ,GAAI,CAAA,IAAA,CAAA;AAAA,SAC3B,CAAA,CACA,KAAM,CAAA,CAAC,GAAQ,KAAA;AACd,UAAA,OAAA,CAAQ,IAAI,GAAG,CAAA,CAAA;AAAA,SAChB,CAAA,CAAA;AAAA,OACL;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,UAAA,CAAW,KAAQ,GAAA,EAAA,CAAA;AACnB,MAAA,QAAA,CAAS,KAAQ,GAAA,OAAA,CAAA;AACjB,MAAA,aAAA,CAAc,KAAQ,GAAA,YAAA,CAAA;AACtB,MAAA,UAAA,CAAW,KAAQ,GAAA,SAAA,CAAA;AAAA,KACrB,CAAA;AAGA,IAAa,QAAA,CAAA;AAAA,MACX,UAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var iconDialog_vue_vue_type_script_setup_true_lang = require('./icon-dialog.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _IconDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(iconDialog_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _IconDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(iconDialog_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\\icon-input\\src\\icon-dialog.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _IconDialog;
|
11
11
|
//# sourceMappingURL=icon-dialog.vue.js.map
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var iconInput_vue_vue_type_script_setup_true_lang = require('./icon-input.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _IconInput = /* @__PURE__ */ _pluginVue_exportHelper.default(iconInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _IconInput = /* @__PURE__ */ _pluginVue_exportHelper.default(iconInput_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\\icon-input\\src\\icon-input.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _IconInput;
|
11
11
|
//# sourceMappingURL=icon-input.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icon-input.vue2.js","sources":["../../../src/icon-input/src/icon-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkIconInput',\n});\n</script>\n<template>\n <div :class=\"bem()\">\n <!--↓↓↓↓显示input框↓↓↓↓-->\n <el-input v-model=\"input\" :placeholder=\"props.placeholder\" clearable>\n <template #append>\n <el-button @click=\"onClick\">选择</el-button>\n </template>\n </el-input>\n <!--选择的是图片-->\n <div v-if=\"props.preview\" class=\"show m-t-5px\">\n <dk-icon
|
1
|
+
{"version":3,"file":"icon-input.vue2.js","sources":["../../../src/icon-input/src/icon-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkIconInput',\n});\n</script>\n<template>\n <div :class=\"bem()\">\n <!--↓↓↓↓显示input框↓↓↓↓-->\n <el-input v-model=\"input\" :placeholder=\"props.placeholder\" clearable>\n <template #append>\n <el-button @click=\"onClick\">选择</el-button>\n </template>\n </el-input>\n <!--选择的是图片-->\n <div v-if=\"props.preview\" class=\"show m-t-5px\">\n <dk-icon\n :icon=\"input ? input : 'fluent:document-none-24-regular'\"\n class=\"icon rd-4px cursor-pointer\"\n :size=\"50\"\n :color=\"input ? '' : '#ccc'\"\n @click=\"onClick\"\n />\n <em @click=\"input = ''\">\n <el-icon><Close /></el-icon>\n </em>\n </div>\n <!--↓↓↓↓不显示input框↓↓↓↓-->\n <dk-icon-dialog ref=\"iconDialog\" v-bind=\"nextProps\" @confirm=\"onConfirm\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { iconInputProps } from './props'\nimport { ref, watch, computed } from 'vue'\nimport DkIconDialog from './icon-dialog.vue'\n\nconst [_, bem] = createNamespace('icon-input')\n\n\n\nconst props = defineProps(iconInputProps)\nconst input = ref(props.modelValue)\nconst iconDialog = ref()\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 nextProps = computed(() => {\n const { modelValue, ...others } = props\n return others\n})\n\nconst handleInput = (val: string) => {\n emit('update:modelValue', val)\n emit('input', val)\n emit('change', val)\n}\n\nconst onClear = () => {\n input.value = ''\n}\n\nconst onClick = () => {\n iconDialog.value.open()\n}\n// 确认选中附件\nconst onConfirm = (icon: string) => {\n console.log(icon)\n input.value = icon\n}\n</script>\n"],"names":["__MACROS_defineComponent","createNamespace","ref","iconDialog","watch","computed"],"mappings":";;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,aAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAkCD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var imageInput_vue_vue_type_script_setup_true_lang = require('./image-input.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _ImageInput = /* @__PURE__ */ _pluginVue_exportHelper.default(imageInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _ImageInput = /* @__PURE__ */ _pluginVue_exportHelper.default(imageInput_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\\image-input\\src\\image-input.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _ImageInput;
|
11
11
|
//# sourceMappingURL=image-input.vue.js.map
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var imageListInput_vue_vue_type_script_setup_true_lang = require('./image-list-input.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var _ImageListInput = /* @__PURE__ */ _pluginVue_exportHelper.default(imageListInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var _ImageListInput = /* @__PURE__ */ _pluginVue_exportHelper.default(imageListInput_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\\image-list-input\\src\\image-list-input.vue"]]);
|
9
9
|
|
10
10
|
exports.default = _ImageListInput;
|
11
11
|
//# sourceMappingURL=image-list-input.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"image-list-input.vue2.js","sources":["../../../src/image-list-input/src/image-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkImageListInput',\n});\n</script>\n<template>\n <dk-file-list-input
|
1
|
+
{"version":3,"file":"image-list-input.vue2.js","sources":["../../../src/image-list-input/src/image-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkImageListInput',\n});\n</script>\n<template>\n <dk-file-list-input\n v-bind=\"$props\"\n v-model=\"input\"\n :class=\"bem()\"\n :type=\"1\"\n @change=\"handleInput(input)\"\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { imageListInputProps } from './props'\nimport { ref, watch } from 'vue'\nconst [_, bem] = createNamespace('image-list-input')\n\n\n\nconst props = defineProps(imageListInputProps)\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;;;;;;;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
@@ -36,7 +36,6 @@ var index$u = require('./select/index.js');
|
|
36
36
|
var index$v = require('./poster-input/index.js');
|
37
37
|
var index$w = require('./style-animation-input/index.js');
|
38
38
|
var index$x = require('./animate-select/index.js');
|
39
|
-
var utils = require('@vipl520/utils');
|
40
39
|
var Vue3DraggableResizable = require('vue3-draggable-resizable');
|
41
40
|
var props = require('./tiny-editor/src/props.js');
|
42
41
|
var props$1 = require('./icon/src/props.js');
|
@@ -152,13 +151,6 @@ const components = [
|
|
152
151
|
// TODO 普通上传 upload
|
153
152
|
// TODO tag选择器 tag-input
|
154
153
|
// TODO 链接选择器 link-input
|
155
|
-
// TODO 海报编辑器 poster-input
|
156
|
-
// TODO Layout布局组件 layout
|
157
|
-
// TODO 应用信息组件 addon-info
|
158
|
-
// TODO 用户信息组件 user-info
|
159
|
-
// TODO 全局Hook组件 global-hook
|
160
|
-
// TODO 前端DIY匹配
|
161
|
-
// TODO 开发者工具(自动CRUD)
|
162
154
|
// TODO 应用框架
|
163
155
|
];
|
164
156
|
const install = (app, option = {}) => {
|
@@ -169,8 +161,6 @@ const install = (app, option = {}) => {
|
|
169
161
|
app.component(item.name, item);
|
170
162
|
}
|
171
163
|
});
|
172
|
-
utils.directives(app);
|
173
|
-
utils.setGlobalConfig(option);
|
174
164
|
};
|
175
165
|
var index = {
|
176
166
|
install
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { Test } from './test'\nimport { Group } from './group'\nimport { TinyEditor } from './tiny-editor'\nimport { Icon } from './icon'\nimport { ColorInput } from './color-input'\nimport { HotAreaInput } from './hot-area-input'\nimport { Dialog } from './dialog'\nimport { Form } from './form'\nimport { Attachment } from './attachment'\nimport { AttachmentDialog } from './attachment-dialog'\nimport { FileInput } from './file-input'\nimport { ImageInput } from './image-input'\nimport { AudioInput } from './audio-input'\nimport { VideoInput } from './video-input'\nimport { FileListInput } from './file-list-input'\nimport { ImageListInput } from './image-list-input'\nimport { AudioListInput } from './audio-list-input'\nimport { VideoListInput } from './video-list-input'\nimport { IconInput, IconContent, IconDialog } from './icon-input'\nimport { StyleInput } from './style-input'\nimport { BoxSizeInput } from './box-size-input'\nimport { StyleBoxInput } from './style-box-input'\nimport { StyleFontInput } from './style-font-input'\nimport { StyleBorderInput } from './style-border-input'\nimport { StyleBackgroundInput } from './style-background-input'\nimport { StyleShadowContent, StyleShadowInput } from './style-shadow-input'\nimport { StylePositionInput } from './style-position-input'\nimport { StyleNumberInput } from './style-number-input'\nimport { PageDiy } from './page-diy'\nimport { Table } from './table'\nimport { Select } from './select'\nimport { Poster, PosterInput } from './poster-input'\nimport { StyleAnimationInput } from './style-animation-input'\nimport { AnimateSelect } from './animate-select'\nimport { setGlobalConfig, directives } from '@vipl520/utils'\nimport Vue3DraggableResizable from 'vue3-draggable-resizable'\nexport * from './tiny-editor'\nexport * from './icon'\nexport * from './group'\nexport * from './color-input'\nexport * from './hot-area-input'\nexport * from './form'\nexport * from './attachment'\nexport * from './attachment-dialog'\nexport * from './file-input'\nexport * from './image-input'\nexport * from './audio-input'\nexport * from './video-input'\nexport * from './file-list-input'\nexport * from './image-list-input'\nexport * from './audio-list-input'\nexport * from './video-list-input'\nexport * from './icon-input'\nexport * from './page-diy'\nexport * from './box-size-input'\nexport * from './test'\nexport * from './style-input'\nexport * from './style-box-input'\nexport * from './style-font-input'\nexport * from './style-border-input'\nexport * from './style-shadow-input'\nexport * from './style-background-input'\nexport * from './style-position-input'\nexport * from './style-number-input'\nexport * from './table'\nexport * from './select'\nexport * from './poster-input'\nexport * from './style-animation-input'\nexport * from './animate-select'\n\nconst components = [\n Test,\n Group,\n // 富文本编辑器\n TinyEditor,\n // 图标\n Icon,\n // 颜色选择器\n ColorInput,\n // 热区选择器\n HotAreaInput,\n // 对话框\n Dialog,\n // json表单\n Form,\n // 附件\n Attachment,\n // 附件弹窗\n AttachmentDialog,\n // 文件选择器\n FileInput,\n // 图片选择器\n ImageInput,\n // 音频选择器\n AudioInput,\n // 视频选择器\n VideoInput,\n // 多文件选择器\n FileListInput,\n // 多图片选择器\n ImageListInput,\n // 多音频选择器\n AudioListInput,\n // 多视频选择器\n VideoListInput,\n // 图标选择器\n IconInput,\n // 图标展示框\n IconContent,\n // 图片弹出框\n IconDialog,\n // DIY编辑器\n PageDiy,\n // 尺寸输入框(带px/%/rem/等单位)\n BoxSizeInput,\n // DIV盒子编辑器(padding/margin/width/height)\n StyleBoxInput,\n // 文字样式编辑器\n StyleFontInput,\n // 边框样式编辑器\n StyleBorderInput,\n // 阴影编辑器\n StyleShadowInput,\n // 阴影编辑框\n StyleShadowContent,\n // 背景编辑器\n StyleBackgroundInput,\n // 合并样式编辑\n StyleInput,\n // 定位编辑器\n StylePositionInput,\n // 样式文字\n StyleNumberInput,\n // 动画配置\n StyleAnimationInput,\n // 动画class选择\n AnimateSelect,\n // 数据表格\n Table,\n // 选择\n Select,\n // 表单组/对象表单\n // 海报选择器\n PosterInput,\n // 海报\n Poster,\n Vue3DraggableResizable,\n
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { Test } from './test'\n// import draggable from 'vuedraggable'\nimport { Group } from './group'\nimport { TinyEditor } from './tiny-editor'\nimport { Icon } from './icon'\nimport { ColorInput } from './color-input'\nimport { HotAreaInput } from './hot-area-input'\nimport { Dialog } from './dialog'\nimport { Form } from './form'\nimport { Attachment } from './attachment'\nimport { AttachmentDialog } from './attachment-dialog'\nimport { FileInput } from './file-input'\nimport { ImageInput } from './image-input'\nimport { AudioInput } from './audio-input'\nimport { VideoInput } from './video-input'\nimport { FileListInput } from './file-list-input'\nimport { ImageListInput } from './image-list-input'\nimport { AudioListInput } from './audio-list-input'\nimport { VideoListInput } from './video-list-input'\nimport { IconInput, IconContent, IconDialog } from './icon-input'\nimport { StyleInput } from './style-input'\nimport { BoxSizeInput } from './box-size-input'\nimport { StyleBoxInput } from './style-box-input'\nimport { StyleFontInput } from './style-font-input'\nimport { StyleBorderInput } from './style-border-input'\nimport { StyleBackgroundInput } from './style-background-input'\nimport { StyleShadowContent, StyleShadowInput } from './style-shadow-input'\nimport { StylePositionInput } from './style-position-input'\nimport { StyleNumberInput } from './style-number-input'\nimport { PageDiy } from './page-diy'\nimport { Table } from './table'\nimport { Select } from './select'\nimport { Poster, PosterInput } from './poster-input'\nimport { StyleAnimationInput } from './style-animation-input'\nimport { AnimateSelect } from './animate-select'\nimport { setGlobalConfig, directives } from '@vipl520/utils'\nimport Vue3DraggableResizable from 'vue3-draggable-resizable'\nexport * from './tiny-editor'\nexport * from './icon'\nexport * from './group'\nexport * from './color-input'\nexport * from './hot-area-input'\nexport * from './form'\nexport * from './attachment'\nexport * from './attachment-dialog'\nexport * from './file-input'\nexport * from './image-input'\nexport * from './audio-input'\nexport * from './video-input'\nexport * from './file-list-input'\nexport * from './image-list-input'\nexport * from './audio-list-input'\nexport * from './video-list-input'\nexport * from './icon-input'\nexport * from './page-diy'\nexport * from './box-size-input'\nexport * from './test'\nexport * from './style-input'\nexport * from './style-box-input'\nexport * from './style-font-input'\nexport * from './style-border-input'\nexport * from './style-shadow-input'\nexport * from './style-background-input'\nexport * from './style-position-input'\nexport * from './style-number-input'\nexport * from './table'\nexport * from './select'\nexport * from './poster-input'\nexport * from './style-animation-input'\nexport * from './animate-select'\n\nconst components = [\n Test,\n Group,\n // 富文本编辑器\n TinyEditor,\n // 图标\n Icon,\n // 颜色选择器\n ColorInput,\n // 热区选择器\n HotAreaInput,\n // 对话框\n Dialog,\n // json表单\n Form,\n // 附件\n Attachment,\n // 附件弹窗\n AttachmentDialog,\n // 文件选择器\n FileInput,\n // 图片选择器\n ImageInput,\n // 音频选择器\n AudioInput,\n // 视频选择器\n VideoInput,\n // 多文件选择器\n FileListInput,\n // 多图片选择器\n ImageListInput,\n // 多音频选择器\n AudioListInput,\n // 多视频选择器\n VideoListInput,\n // 图标选择器\n IconInput,\n // 图标展示框\n IconContent,\n // 图片弹出框\n IconDialog,\n // DIY编辑器\n PageDiy,\n // 尺寸输入框(带px/%/rem/等单位)\n BoxSizeInput,\n // DIV盒子编辑器(padding/margin/width/height)\n StyleBoxInput,\n // 文字样式编辑器\n StyleFontInput,\n // 边框样式编辑器\n StyleBorderInput,\n // 阴影编辑器\n StyleShadowInput,\n // 阴影编辑框\n StyleShadowContent,\n // 背景编辑器\n StyleBackgroundInput,\n // 合并样式编辑\n StyleInput,\n // 定位编辑器\n StylePositionInput,\n // 样式文字\n StyleNumberInput,\n // 动画配置\n StyleAnimationInput,\n // 动画class选择\n AnimateSelect,\n // 数据表格\n Table,\n // 选择\n Select,\n // 表单组/对象表单\n // 海报选择器\n PosterInput,\n // 海报\n Poster,\n Vue3DraggableResizable,\n // TODO 普通上传 upload\n // TODO tag选择器 tag-input\n // TODO 链接选择器 link-input\n // TODO 应用框架\n]\n\nexport const install = (app: App, option: any = {}) => {\n // app.component(draggable.name, draggable)\n components.forEach((item) => {\n if (item.install!) {\n app.use(item)\n } else if (item.name) {\n app.component(item.name, item)\n }\n })\n // directives(app)\n // setGlobalConfig(option)\n}\n\nexport default {\n install,\n}\n"],"names":["Test","Group","TinyEditor","Icon","ColorInput","HotAreaInput","Dialog","Form","Attachment","AttachmentDialog","FileInput","ImageInput","AudioInput","VideoInput","FileListInput","ImageListInput","AudioListInput","VideoListInput","IconInput","IconContent","IconDialog","PageDiy","BoxSizeInput","StyleBoxInput","StyleFontInput","StyleBorderInput","StyleShadowInput","StyleShadowContent","StyleBackgroundInput","StyleInput","StylePositionInput","StyleNumberInput","StyleAnimationInput","AnimateSelect","Table","Select","PosterInput","Poster"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,MAAM,UAAa,GAAA;AAAA,EACjBA,YAAA;AAAA,EACAC,aAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,YAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,oBAAA;AAAA;AAAA,EAEAC,cAAA;AAAA;AAAA,EAEAC,YAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,iBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,qBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,iBAAA;AAAA;AAAA,EAEAC,mBAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,eAAA;AAAA;AAAA,EAEAC,oBAAA;AAAA;AAAA,EAEAC,qBAAA;AAAA;AAAA,EAEAC,sBAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,0BAAA;AAAA;AAAA,EAEAC,4BAAA;AAAA;AAAA,EAEAC,kBAAA;AAAA;AAAA,EAEAC,0BAAA;AAAA;AAAA,EAEAC,wBAAA;AAAA;AAAA,EAEAC,2BAAA;AAAA;AAAA,EAEAC,qBAAA;AAAA;AAAA,EAEAC,aAAA;AAAA;AAAA,EAEAC,cAAA;AAAA;AAAA;AAAA,EAGAC,mBAAA;AAAA;AAAA,EAEAC,cAAA;AAAA,EACA,sBAAA;AAAA;AAAA;AAAA;AAAA;AAKF,CAAA,CAAA;AAEO,MAAM,OAAU,GAAA,CAAC,GAAU,EAAA,MAAA,GAAc,EAAO,KAAA;AAErD,EAAW,UAAA,CAAA,OAAA,CAAQ,CAAC,IAAS,KAAA;AAC3B,IAAA,IAAI,KAAK,OAAU,EAAA;AACjB,MAAA,GAAA,CAAI,IAAI,IAAI,CAAA,CAAA;AAAA,KACd,MAAA,IAAW,KAAK,IAAM,EAAA;AACpB,MAAI,GAAA,CAAA,SAAA,CAAU,IAAK,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,KAC/B;AAAA,GACD,CAAA,CAAA;AAGH,EAAA;AAEA,YAAe;AAAA,EACb,OAAA;AACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/page-diy/index.js
CHANGED
@@ -9,7 +9,6 @@ var DragBox = require('./src/components/DragBox.vue.js');
|
|
9
9
|
var DkEventCreateInput = require('./src/components/forms/DkEventCreateInput.vue.js');
|
10
10
|
var DkEventSelectInput = require('./src/components/forms/DkEventSelectInput.vue.js');
|
11
11
|
var form = require('./src/utils/form.js');
|
12
|
-
var draggable = require('vuedraggable/src/vuedraggable');
|
13
12
|
require('./src/utils/index.js');
|
14
13
|
var props = require('./src/props.js');
|
15
14
|
var unique = require('./src/utils/unique.js');
|
@@ -18,7 +17,6 @@ const addComponent = (id, component) => {
|
|
18
17
|
form.designerForm.component(id, component);
|
19
18
|
form.viewForm.component(id, component);
|
20
19
|
};
|
21
|
-
form.designerForm.component("Draggable", draggable);
|
22
20
|
form.designerForm.component("DragTool", DragTool.default);
|
23
21
|
form.designerForm.component("DragBox", DragBox.default);
|
24
22
|
form.designerForm.component("DkEventCreateInput", DkEventCreateInput.default);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/page-diy/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _PageDiy from './src/page-diy.vue'\nimport DragTool from './src/components/DragTool.vue'\nimport DragBox from './src/components/DragBox.vue'\nimport DkEventCreateInput from './src/components/forms/DkEventCreateInput.vue'\nimport DkEventSelectInput from './src/components/forms/DkEventSelectInput.vue'\nimport formCreate, { designerForm } from './src/utils/form'\
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/page-diy/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _PageDiy from './src/page-diy.vue'\nimport DragTool from './src/components/DragTool.vue'\nimport DragBox from './src/components/DragBox.vue'\nimport DkEventCreateInput from './src/components/forms/DkEventCreateInput.vue'\nimport DkEventSelectInput from './src/components/forms/DkEventSelectInput.vue'\nimport formCreate, { designerForm } from './src/utils/form'\n// import draggable from 'vuedraggable/src/vuedraggable'\nimport { uniqueId } from './src/utils'\n// import views from './src/views/web'\n\nconst addComponent = (id: any, component: any) => {\n designerForm.component(id, component)\n formCreate.component(id, component)\n}\n\n// designerForm.component('Draggable', draggable)\ndesignerForm.component('DragTool', DragTool)\ndesignerForm.component('DragBox', DragBox)\ndesignerForm.component('DkEventCreateInput', DkEventCreateInput)\ndesignerForm.component('DkEventSelectInput', DkEventSelectInput)\n\n// for (const name in views) {\n// designerForm.component(name, views[name])\n// }\n\ndesignerForm.register('_fc', {\n init(fc: any, rule: any) {\n rule._id = uniqueId()\n if (fc.value) {\n rule.effect._fc = false\n }\n },\n})\n\ndesignerForm.register('_fc_tool', {\n init(_, rule: any) {\n rule.props.unique = uniqueId()\n },\n})\n\n_PageDiy.formCreate = formCreate\n_PageDiy.designerForm = designerForm\n_PageDiy.component = addComponent\nexport const PageDiy = withInstall(_PageDiy)\nexport default PageDiy\n\nexport * from './src/props'\n"],"names":["designerForm","formCreate","DragTool","DragBox","DkEventCreateInput","DkEventSelectInput","uniqueId","_PageDiy","withInstall"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAM,YAAA,GAAe,CAAC,EAAA,EAAS,SAAmB,KAAA;AAChD,EAAaA,iBAAA,CAAA,SAAA,CAAU,IAAI,SAAS,CAAA,CAAA;AACpC,EAAWC,aAAA,CAAA,SAAA,CAAU,IAAI,SAAS,CAAA,CAAA;AACpC,CAAA,CAAA;AAGAD,iBAAa,CAAA,SAAA,CAAU,YAAYE,gBAAQ,CAAA,CAAA;AAC3CF,iBAAa,CAAA,SAAA,CAAU,WAAWG,eAAO,CAAA,CAAA;AACzCH,iBAAa,CAAA,SAAA,CAAU,sBAAsBI,0BAAkB,CAAA,CAAA;AAC/DJ,iBAAa,CAAA,SAAA,CAAU,sBAAsBK,0BAAkB,CAAA,CAAA;AAM/DL,iBAAA,CAAa,SAAS,KAAO,EAAA;AAAA,EAC3B,IAAA,CAAK,IAAS,IAAW,EAAA;AACvB,IAAA,IAAA,CAAK,MAAMM,eAAS,EAAA,CAAA;AACpB,IAAA,IAAI,GAAG,KAAO,EAAA;AACZ,MAAA,IAAA,CAAK,OAAO,GAAM,GAAA,KAAA,CAAA;AAAA,KACpB;AAAA,GACF;AACF,CAAC,CAAA,CAAA;AAEDN,iBAAA,CAAa,SAAS,UAAY,EAAA;AAAA,EAChC,IAAA,CAAK,GAAG,IAAW,EAAA;AACjB,IAAK,IAAA,CAAA,KAAA,CAAM,SAASM,eAAS,EAAA,CAAA;AAAA,GAC/B;AACF,CAAC,CAAA,CAAA;AAEDC,eAAA,CAAS,UAAa,GAAAN,aAAA,CAAA;AACtBM,eAAA,CAAS,YAAe,GAAAP,iBAAA,CAAA;AACxBO,eAAA,CAAS,SAAY,GAAA,YAAA,CAAA;AACR,MAAA,OAAA,GAAUC,kBAAYD,eAAQ;;;;;;"}
|
@@ -411,7 +411,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
411
411
|
}, null, 8 /* PROPS */, ["form-data", "onSubmit"])
|
412
412
|
]))
|
413
413
|
}
|
414
|
-
var DiyCloud = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
414
|
+
var DiyCloud = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\page-diy\\src\\components\\DiyCloud.vue"]]);
|
415
415
|
|
416
416
|
exports.default = DiyCloud;
|
417
417
|
//# sourceMappingURL=DiyCloud.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiyCloud.vue.js","sources":["../../../../src/page-diy/src/components/DiyCloud.vue"],"sourcesContent":["<template>\n <div class=\"diy-cloud\">\n <div class=\"diy-header\">\n <div class=\"diy-search\">\n <el-select v-model=\"search.state\" placeholder=\"状态\">\n <el-option label=\"全部状态\" value=\"\" />\n <el-option v-if=\"site.level > 0\" label=\"未通过\" value=\"-1\" />\n <el-option v-if=\"site.level > 0\" label=\"未审核\" value=\"0\" />\n <el-option label=\"已审核\" value=\"1\" />\n <el-option label=\"已推荐\" value=\"2\" />\n </el-select>\n <el-select v-model=\"search.look\" placeholder=\"查看\" class=\"u-m-l-10\">\n <el-option label=\"全部模板\" value=\"\" />\n <el-option label=\"我的模板\" value=\"me\" />\n <el-option label=\"他人模板\" value=\"other\" />\n </el-select>\n <el-input v-model=\"search['name like']\" placeholder=\"请输入模板名称\" clearable @clear=\"getDiyList(0)\">\n <template #append>\n <el-button icon=\"Search\" @click=\"getDiyList(1)\" />\n </template>\n </el-input>\n </div>\n <div>\n <el-button v-if=\"site.level > 0\" type=\"warning\" :disabled=\"!chooseDiy.id\" @click=\"getCheckForm\"\n >审核\n </el-button>\n <el-button v-if=\"site.level > 1\" type=\"danger\" :disabled=\"!chooseDiy.id\" @click=\"delDiy\">删除</el-button>\n <el-button\n v-if=\"site.level > 0 || site.site_id === chooseDiy.site_id\"\n type=\"info\"\n :disabled=\"!chooseDiy.id\"\n @click=\"getDiyForm(chooseDiy.id)\"\n >编辑\n </el-button>\n <el-button type=\"primary\" icon=\"Upload\" @click=\"getDiyForm()\">上传新模板</el-button>\n </div>\n </div>\n <!---------------模板列表-------------------------->\n <div v-loading=\"loading\" class=\"diy-content\">\n <ul v-if=\"!loading && list.length > 0\" class=\"cl\">\n <li\n v-for=\"(item, key) in list\"\n :key=\"key\"\n :class=\"{ choose: chooseDiy.id === item.id }\"\n @click=\"onChooseDiy(item)\"\n >\n <el-image :src=\"item.cover_image\" class=\"cover\" fit=\"contain\" />\n <div v-if=\"item.state <= 0\" class=\"mask\" />\n <div class=\"type\">\n <el-tag v-if=\"item.state === '0'\" effect=\"dark\">审核中</el-tag>\n <el-tag v-if=\"item.state === '-1'\" type=\"danger\" effect=\"dark\">审核未通过</el-tag>\n </div>\n <div v-if=\"item.state > 0\" class=\"tag-list\">\n <span v-if=\"item.state >= 2\" class=\"tag\"><van-icon name=\"good-job\" />推荐</span>\n <span v-if=\"item.down_count > 100\" class=\"tag\"><van-icon name=\"fire\" />热门</span>\n </div>\n <div class=\"title over\">{{ item.name }}</div>\n </li>\n </ul>\n <div v-else style=\"display: flex; align-items: center; justify-content: center; height: 500px\">\n <el-empty v-if=\"errCode === 0\" description=\"当前还没模板,点击右上角上传自己的模板吧\" />\n <el-empty v-else :description=\"errMsg\" />\n </div>\n <el-pagination\n background\n layout=\"total,prev, pager, next\"\n :total=\"total\"\n :current-page=\"page\"\n :page-size=\"pageSize\"\n hide-on-single-page\n @current-change=\"getDiyList\"\n />\n </div>\n <div class=\"diy-footer\">\n <el-button type=\"primary\" style=\"width: 300px\" :disabled=\"!chooseDiy.id\" @click=\"submit\">确定</el-button>\n </div>\n <dk-form ref=\"formRef\" :is-dialog=\"true\" :form-data=\"formData\" @submit=\"onSubmit\" />\n </div>\n</template>\n\n<script>\nimport { getList, down, getDiyForm, getSiteMsg, getCheckForm, delDiy } from '../../../api/diy'\nexport default {\n name: 'DiyCloud',\n props: {\n pageName: {\n default: '',\n type: String,\n },\n diyData: {\n default: () => {\n return {}\n },\n type: Object,\n },\n },\n emits: ['submit'],\n data() {\n return {\n total: 0,\n pageSize: 12,\n keyword: '',\n search: {\n state: '',\n look: '',\n },\n chooseDiy: {},\n page: 1,\n formData: null,\n site: {},\n width: '800px',\n list: [],\n loading: true,\n errMsg: '',\n errCode: 0,\n }\n },\n computed: {},\n mounted() {\n this.getDiyList()\n this.getSiteMsg()\n },\n methods: {\n submit() {\n this.$confirm('确定选择此diy模板?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n down(this.chooseDiy.id).then((res) => {\n this.$emit('submit', res.data)\n })\n })\n .catch(() => {})\n },\n onChooseDiy(item) {\n this.chooseDiy = item\n },\n getDiyList(page) {\n this.page = page || this.page\n this.loading = true\n getList(this.pageName, this.page, this.search, this.pageSize)\n .then((res) => {\n this.list = res.data\n this.total = res.msg\n this.loading = false\n })\n .catch((res) => {\n this.errMsg = res.msg\n this.errCode = -1\n this.loading = false\n })\n },\n getSiteMsg() {\n getSiteMsg().then((res) => {\n this.site = res.data\n })\n },\n getDiyForm(id = 0) {\n getDiyForm(id, this.pageName, this.diyData)\n .then((res) => {\n console.log('getDiyForm', res)\n this.formData = res.data\n this.width = '600px'\n this.$refs.formRef.show()\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n },\n getCheckForm() {\n getCheckForm(this.chooseDiy.id, this.chooseDiy.state)\n .then((res) => {\n this.formData = res.data\n this.width = '400px'\n this.$refs.formRef.show()\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n },\n delDiy() {\n this.$confirm('确定要删除当前模板,删除后不可恢复?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n delDiy(this.chooseDiy.id)\n .then((res) => {\n this.$message.success(res.msg)\n this.getDiyList(1)\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n })\n .catch(() => {})\n },\n onSubmit() {\n this.getDiyList(0)\n },\n },\n}\n</script>\n"],"names":["down","getList","getSiteMsg","getDiyForm","getCheckForm","delDiy","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_createBlock","_createCommentVNode","_withDirectives","_Fragment","_renderList","_toDisplayString"],"mappings":";;;;;;;;AAkFA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,UAAU;AAChB,EAAA,KAAK,EAAE;AACL,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,MAAM;KACb;GACF;AACD,EAAA,KAAK,EAAE,CAAC,QAAQ,CAAC;AACjB,EAAA,IAAI,GAAG;AACL,IAAA,OAAO;AACL,MAAA,KAAK,EAAE,CAAC;MACR,QAAQ,EAAE,EAAE;MACZ,OAAO,EAAE,EAAE;AACX,MAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,IAAI,EAAE,EAAE;OACT;MACD,SAAS,EAAE,EAAE;AACb,MAAA,IAAI,EAAE,CAAC;MACP,QAAQ,EAAE,IAAI;AACd,MAAA,IAAI,EAAE,EAAE;MACR,KAAK,EAAE,OAAO;AACd,MAAA,IAAI,EAAE,EAAE;MACR,OAAO,EAAE,IAAI;AACb,MAAA,MAAM,EAAE,EAAE;AACV,MAAA,OAAO,EAAE,CAAC;AACZ,KAAA;GACD;EACD,QAAQ,EAAE,EAAE;AACZ,EAAA,OAAO,GAAG;AACR,IAAA,IAAI,CAAC,UAAU,GAAC;AAChB,IAAA,IAAI,CAAC,UAAU,GAAC;GACjB;AACD,EAAA,OAAO,EAAE;AACP,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;6BAAE,MAAE;8BAAF,IAAE,CAAA;;;;;IAE7FA,eAAoF,CAAA,kBAAA,EAAA;AAA3E,MAAA,GAAG,EAAC,SAAS;AAAE,MAAA,WAAS,EAAE,IAAI;AAAG,MAAA,WAAS,EAAE,KAAQ,CAAA,QAAA;AAAG,MAAA,QAAM,EAAE,QAAQ,CAAA,QAAA;;;;;;;;"}
|
1
|
+
{"version":3,"file":"DiyCloud.vue.js","sources":["../../../../src/page-diy/src/components/DiyCloud.vue"],"sourcesContent":["<template>\n <div class=\"diy-cloud\">\n <div class=\"diy-header\">\n <div class=\"diy-search\">\n <el-select v-model=\"search.state\" placeholder=\"状态\">\n <el-option label=\"全部状态\" value=\"\" />\n <el-option v-if=\"site.level > 0\" label=\"未通过\" value=\"-1\" />\n <el-option v-if=\"site.level > 0\" label=\"未审核\" value=\"0\" />\n <el-option label=\"已审核\" value=\"1\" />\n <el-option label=\"已推荐\" value=\"2\" />\n </el-select>\n <el-select v-model=\"search.look\" placeholder=\"查看\" class=\"u-m-l-10\">\n <el-option label=\"全部模板\" value=\"\" />\n <el-option label=\"我的模板\" value=\"me\" />\n <el-option label=\"他人模板\" value=\"other\" />\n </el-select>\n <el-input\n v-model=\"search['name like']\"\n placeholder=\"请输入模板名称\"\n clearable\n @clear=\"getDiyList(0)\"\n >\n <template #append>\n <el-button icon=\"Search\" @click=\"getDiyList(1)\" />\n </template>\n </el-input>\n </div>\n <div>\n <el-button\n v-if=\"site.level > 0\"\n type=\"warning\"\n :disabled=\"!chooseDiy.id\"\n @click=\"getCheckForm\"\n >审核\n </el-button>\n <el-button\n v-if=\"site.level > 1\"\n type=\"danger\"\n :disabled=\"!chooseDiy.id\"\n @click=\"delDiy\"\n >删除</el-button\n >\n <el-button\n v-if=\"site.level > 0 || site.site_id === chooseDiy.site_id\"\n type=\"info\"\n :disabled=\"!chooseDiy.id\"\n @click=\"getDiyForm(chooseDiy.id)\"\n >编辑\n </el-button>\n <el-button type=\"primary\" icon=\"Upload\" @click=\"getDiyForm()\"\n >上传新模板</el-button\n >\n </div>\n </div>\n <!---------------模板列表-------------------------->\n <div v-loading=\"loading\" class=\"diy-content\">\n <ul v-if=\"!loading && list.length > 0\" class=\"cl\">\n <li\n v-for=\"(item, key) in list\"\n :key=\"key\"\n :class=\"{ choose: chooseDiy.id === item.id }\"\n @click=\"onChooseDiy(item)\"\n >\n <el-image :src=\"item.cover_image\" class=\"cover\" fit=\"contain\" />\n <div v-if=\"item.state <= 0\" class=\"mask\" />\n <div class=\"type\">\n <el-tag v-if=\"item.state === '0'\" effect=\"dark\">审核中</el-tag>\n <el-tag v-if=\"item.state === '-1'\" type=\"danger\" effect=\"dark\"\n >审核未通过</el-tag\n >\n </div>\n <div v-if=\"item.state > 0\" class=\"tag-list\">\n <span v-if=\"item.state >= 2\" class=\"tag\"\n ><van-icon name=\"good-job\" />推荐</span\n >\n <span v-if=\"item.down_count > 100\" class=\"tag\"\n ><van-icon name=\"fire\" />热门</span\n >\n </div>\n <div class=\"title over\">{{ item.name }}</div>\n </li>\n </ul>\n <div\n v-else\n style=\"\n display: flex;\n align-items: center;\n justify-content: center;\n height: 500px;\n \"\n >\n <el-empty\n v-if=\"errCode === 0\"\n description=\"当前还没模板,点击右上角上传自己的模板吧\"\n />\n <el-empty v-else :description=\"errMsg\" />\n </div>\n <el-pagination\n background\n layout=\"total,prev, pager, next\"\n :total=\"total\"\n :current-page=\"page\"\n :page-size=\"pageSize\"\n hide-on-single-page\n @current-change=\"getDiyList\"\n />\n </div>\n <div class=\"diy-footer\">\n <el-button\n type=\"primary\"\n style=\"width: 300px\"\n :disabled=\"!chooseDiy.id\"\n @click=\"submit\"\n >确定</el-button\n >\n </div>\n <dk-form\n ref=\"formRef\"\n :is-dialog=\"true\"\n :form-data=\"formData\"\n @submit=\"onSubmit\"\n />\n </div>\n</template>\n\n<script>\nimport {\n getList,\n down,\n getDiyForm,\n getSiteMsg,\n getCheckForm,\n delDiy,\n} from '../../../api/diy'\nexport default {\n name: 'DiyCloud',\n props: {\n pageName: {\n default: '',\n type: String,\n },\n diyData: {\n default: () => {\n return {}\n },\n type: Object,\n },\n },\n emits: ['submit'],\n data() {\n return {\n total: 0,\n pageSize: 12,\n keyword: '',\n search: {\n state: '',\n look: '',\n },\n chooseDiy: {},\n page: 1,\n formData: null,\n site: {},\n width: '800px',\n list: [],\n loading: true,\n errMsg: '',\n errCode: 0,\n }\n },\n computed: {},\n mounted() {\n this.getDiyList()\n this.getSiteMsg()\n },\n methods: {\n submit() {\n this.$confirm('确定选择此diy模板?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n down(this.chooseDiy.id).then((res) => {\n this.$emit('submit', res.data)\n })\n })\n .catch(() => {})\n },\n onChooseDiy(item) {\n this.chooseDiy = item\n },\n getDiyList(page) {\n this.page = page || this.page\n this.loading = true\n getList(this.pageName, this.page, this.search, this.pageSize)\n .then((res) => {\n this.list = res.data\n this.total = res.msg\n this.loading = false\n })\n .catch((res) => {\n this.errMsg = res.msg\n this.errCode = -1\n this.loading = false\n })\n },\n getSiteMsg() {\n getSiteMsg().then((res) => {\n this.site = res.data\n })\n },\n getDiyForm(id = 0) {\n getDiyForm(id, this.pageName, this.diyData)\n .then((res) => {\n console.log('getDiyForm', res)\n this.formData = res.data\n this.width = '600px'\n this.$refs.formRef.show()\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n },\n getCheckForm() {\n getCheckForm(this.chooseDiy.id, this.chooseDiy.state)\n .then((res) => {\n this.formData = res.data\n this.width = '400px'\n this.$refs.formRef.show()\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n },\n delDiy() {\n this.$confirm('确定要删除当前模板,删除后不可恢复?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n delDiy(this.chooseDiy.id)\n .then((res) => {\n this.$message.success(res.msg)\n this.getDiyList(1)\n })\n .catch((res) => {\n this.$message.error(res.msg)\n })\n })\n .catch(() => {})\n },\n onSubmit() {\n this.getDiyList(0)\n },\n },\n}\n</script>\n"],"names":["down","getList","getSiteMsg","getDiyForm","getCheckForm","delDiy","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_createBlock","_createCommentVNode","_withDirectives","_Fragment","_renderList","_toDisplayString"],"mappings":";;;;;;;;AAsIA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,UAAU;AAChB,EAAA,KAAK,EAAE;AACL,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,MAAM;KACb;GACF;AACD,EAAA,KAAK,EAAE,CAAC,QAAQ,CAAC;AACjB,EAAA,IAAI,GAAG;AACL,IAAA,OAAO;AACL,MAAA,KAAK,EAAE,CAAC;MACR,QAAQ,EAAE,EAAE;MACZ,OAAO,EAAE,EAAE;AACX,MAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,IAAI,EAAE,EAAE;OACT;MACD,SAAS,EAAE,EAAE;AACb,MAAA,IAAI,EAAE,CAAC;MACP,QAAQ,EAAE,IAAI;AACd,MAAA,IAAI,EAAE,EAAE;MACR,KAAK,EAAE,OAAO;AACd,MAAA,IAAI,EAAE,EAAE;MACR,OAAO,EAAE,IAAI;AACb,MAAA,MAAM,EAAE,EAAE;AACV,MAAA,OAAO,EAAE,CAAC;AACZ,KAAA;GACD;EACD,QAAQ,EAAE,EAAE;AACZ,EAAA,OAAO,GAAG;AACR,IAAA,IAAI,CAAC,UAAU,GAAC;AAChB,IAAA,IAAI,CAAC,UAAU,GAAC;GACjB;AACD,EAAA,OAAO,EAAE;AACP,IAAA,MAAM,GAAG;AACP,MAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,IAAI,EAAE;QACjC,iBAAiB,EAAE,IAAI;AACvB,QAAA,gBA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A,QAAA;AACnB,MAAA,QAAM,EAAE,QAAQ,CAAA,QAAA;;;;;;;;"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var vue = require('vue');
|
6
|
-
var draggable = require('vuedraggable
|
6
|
+
var draggable = require('vuedraggable');
|
7
7
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
8
8
|
|
9
9
|
const _sfc_main = vue.defineComponent({
|
@@ -31,12 +31,16 @@ const _sfc_main = vue.defineComponent({
|
|
31
31
|
|
32
32
|
return vue.h(draggable, subRule, {
|
33
33
|
item: ({ element }) => {
|
34
|
-
return vue.h(
|
34
|
+
return vue.h(
|
35
|
+
'div',
|
36
|
+
{ class: 'drag-box-item' },
|
37
|
+
keys[element.__fc__.key + 'fc']
|
38
|
+
)
|
35
39
|
},
|
36
40
|
})
|
37
41
|
},
|
38
42
|
});
|
39
|
-
var DragBox = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
43
|
+
var DragBox = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragBox.vue"]]);
|
40
44
|
|
41
45
|
exports.default = DragBox;
|
42
46
|
//# sourceMappingURL=DragBox.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DragBox.vue.js","sources":["../../../../src/page-diy/src/components/DragBox.vue"],"sourcesContent":["<script>\nimport { h, defineComponent } from 'vue'\nimport draggable from 'vuedraggable
|
1
|
+
{"version":3,"file":"DragBox.vue.js","sources":["../../../../src/page-diy/src/components/DragBox.vue"],"sourcesContent":["<script>\nimport { h, defineComponent } from 'vue'\nimport draggable from 'vuedraggable'\n\nexport default defineComponent({\n name: 'DragBox',\n props: ['rule', 'tag', 'formCreateInject'],\n render(ctx) {\n const subRule = { ...ctx.$props.rule.props, ...ctx.$attrs }\n let _class = ctx.tag + '-drag drag-box'\n if (!Object.keys(ctx.$slots).length) {\n _class += ' ' + ctx.tag + '-holder'\n }\n subRule.class = _class\n subRule.modelValue = [...this.$props.formCreateInject.children]\n\n const keys = {}\n if (ctx.$slots.default) {\n // 这里报错 Unhandled error during execution of render function\n const children = ctx.$slots.default()\n children.forEach((v) => {\n if (v.key) {\n keys[v.key] = v\n }\n })\n }\n\n return h(draggable, subRule, {\n item: ({ element }) => {\n return h(\n 'div',\n { class: 'drag-box-item' },\n keys[element.__fc__.key + 'fc']\n )\n },\n })\n },\n})\n</script>\n"],"names":["defineComponent","h"],"mappings":";;;;;;;;AAIA,MAAK,SAAU,GAAGA,mBAAa,CAAA;AAC7B,EAAA,IAAI,EAAE,SAAS;AACf,EAAA,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,kBAAkB,CAAC;EAC1C,MAAM,CAAC,GAAG,EAAE;IACV,MAAM,OAAM,GAAI,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,GAAG,CAAC,MAAO,GAAA;AAC1D,IAAA,IAAI,MAAK,GAAI,GAAG,CAAC,GAAI,GAAE,iBAAe;AACtC,IAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE;MACnC,MAAK,IAAK,GAAI,GAAE,GAAG,CAAC,GAAE,GAAI,UAAQ;AACpC,KAAA;AACA,IAAA,OAAO,CAAC,KAAM,GAAE,OAAK;IACrB,OAAO,CAAC,UAAS,GAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAA;;IAE9D,MAAM,IAAK,GAAE,GAAC;IACd,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE;;AAEtB,MAAA,MAAM,QAAO,GAAI,GAAG,CAAC,MAAM,CAAC,OAAO,GAAC;MACpC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;AACtB,QAAA,IAAI,CAAC,CAAC,GAAG,EAAE;UACT,IAAI,CAAC,CAAC,CAAC,GAAG,CAAA,GAAI,EAAA;AAChB,SAAA;OACD,EAAA;AACH,KAAA;;IAEA,OAAOC,KAAC,CAAC,SAAS,EAAE,OAAO,EAAE;AAC3B,MAAA,IAAI,EAAE,CAAC,EAAE,OAAM,EAAG,KAAK;AACrB,QAAA,OAAOA,KAAC;UACN,KAAK;UACL,EAAE,KAAK,EAAE,eAAc,EAAG;UAC1B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAE,GAAI,IAAI,CAAA;AAChC,SAAA;OACD;KACF,CAAA;GACF;AACH,CAAC,EAAA;;;;;"}
|
@@ -56,7 +56,11 @@ const _sfc_main = vue.defineComponent({
|
|
56
56
|
return style
|
57
57
|
},
|
58
58
|
_animate() {
|
59
|
-
if (
|
59
|
+
if (
|
60
|
+
this.setting.animation_preview !== false &&
|
61
|
+
this.setting.animate &&
|
62
|
+
!this.previewSetting.closeAnimate
|
63
|
+
) {
|
60
64
|
return 'animate__' + this.setting.animate
|
61
65
|
} else {
|
62
66
|
return ''
|
@@ -128,7 +132,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
128
132
|
vue.renderSlot(_ctx.$slots, "default")
|
129
133
|
], 6 /* CLASS, STYLE */))
|
130
134
|
}
|
131
|
-
var DragTool = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
135
|
+
var DragTool = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);
|
132
136
|
|
133
137
|
exports.default = DragTool;
|
134
138
|
//# sourceMappingURL=DragTool.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DragTool.vue.js","sources":["../../../../src/page-diy/src/components/DragTool.vue"],"sourcesContent":["<template>\n <div\n class=\"drag-tool animate__animated\"\n :class=\"[{ active: state.active === id }, _animate]\"\n :style=\"_style\"\n @click.stop=\"active\"\n >\n <div v-if=\"mask\" class=\"drag-mask\"></div>\n <div class=\"drag-r\">\n <div class=\"drag-btn\" title=\"添加当前组件\" @click=\"$emit('create')\">\n <dk-icon icon=\"CirclePlus\"></dk-icon>\n </div>\n <div class=\"drag-btn\" title=\"复制当前组件\" @click=\"$emit('copy')\">\n <dk-icon icon=\"CopyDocument\"></dk-icon>\n </div>\n <div
|
1
|
+
{"version":3,"file":"DragTool.vue.js","sources":["../../../../src/page-diy/src/components/DragTool.vue"],"sourcesContent":["<template>\n <div\n class=\"drag-tool animate__animated\"\n :class=\"[{ active: state.active === id }, _animate]\"\n :style=\"_style\"\n @click.stop=\"active\"\n >\n <div v-if=\"mask\" class=\"drag-mask\"></div>\n <div class=\"drag-r\">\n <div class=\"drag-btn\" title=\"添加当前组件\" @click=\"$emit('create')\">\n <dk-icon icon=\"CirclePlus\"></dk-icon>\n </div>\n <div class=\"drag-btn\" title=\"复制当前组件\" @click=\"$emit('copy')\">\n <dk-icon icon=\"CopyDocument\"></dk-icon>\n </div>\n <div\n v-if=\"children\"\n class=\"drag-btn\"\n title=\"添加子组件\"\n @click=\"$emit('addChild')\"\n >\n <dk-icon icon=\"fluent:tab-add-20-regular\"></dk-icon>\n </div>\n <div\n class=\"drag-btn drag-btn-danger\"\n title=\"删除组件\"\n @click=\"$emit('delete')\"\n >\n <dk-icon icon=\"Close\"></dk-icon>\n </div>\n </div>\n <slot name=\"default\"></slot>\n </div>\n</template>\n\n<script>\nimport { computed, inject, toRefs, defineComponent } from 'vue'\nlet uni = 1\nexport default defineComponent({\n name: 'DragTool',\n props: {\n dragBtn: {\n default: false,\n type: Boolean,\n },\n children: {\n default: '',\n type: String,\n },\n unique: {\n default: '',\n type: String,\n },\n mask: {\n default: false,\n type: Boolean,\n },\n setting: {\n default: () => {},\n type: [Object],\n },\n },\n setup(props) {\n const { unique } = toRefs(props)\n const id = computed(() => unique.value || uni++)\n const state = inject('fcx')\n const previewSetting = inject('previewSetting')\n return {\n id,\n state,\n previewSetting,\n }\n },\n computed: {\n pageConfig() {\n return {}\n },\n _style() {\n let style = { ...this.setting.style, ...this.setting.animation }\n if (this.setting.is_position) {\n style = Object.assign(style, {\n ...this.setting.position,\n position: 'absolute',\n })\n }\n return style\n },\n _animate() {\n if (\n this.setting.animation_preview !== false &&\n this.setting.animate &&\n !this.previewSetting.closeAnimate\n ) {\n return 'animate__' + this.setting.animate\n } else {\n return ''\n }\n },\n },\n beforeUnmount() {\n this.state = {}\n },\n methods: {\n active() {\n if (this.state.active === this.id) return\n this.state.active = this.id\n this.$emit('active')\n },\n },\n})\n</script>\n"],"names":["defineComponent","toRefs","computed","inject","_createElementBlock","_normalizeClass","_openBlock","_createElementVNode","_createVNode","_renderSlot"],"mappings":";;;;;;;AAqCA,IAAI,MAAM,EAAA;AACV,MAAK,SAAU,GAAGA,mBAAa,CAAA;AAC7B,EAAA,IAAI,EAAE,UAAU;AAChB,EAAA,KAAK,EAAE;AACL,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,KAAK;MACd,IAAI,EAAE,OAAO;KACd;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,IAAI,EAAE;MACJ,OAAO,EAAE,KAAK;MACd,IAAI,EAAE,OAAO;KACd;AACD,IAAA,OAAO,EAAE;AACP,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,MAAM,CAAC;KACf;GACF;EACD,KAAK,CAAC,KAAK,EAAE;IACX,MAAM,EAAE,MAA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,CAAA;;OAGtB,IAAQ,CAAA,QAAA;4BADhBJ,sBAOM,CAAA,KAAA,EAAA;;AALJ,YAAA,KAAK,EAAC,UAAU;AAChB,YAAA,KAAK,EAAC,OAAO;AACZ,YAAA,OAAK,uCAAE,IAAK,CAAA,KAAA,CAAA,UAAA,CAAA,CAAA,CAAA;;YAEbI,eAAoD,CAAA,kBAAA,EAAA,EAA3C,IAAI,EAAC,2BAA2B,EAAA,CAAA;;;MAE3CD,sBAMM,CAAA,KAAA,EAAA;AALJ,QAAA,KAAK,EAAC,0BAA0B;AAChC,QAAA,KAAK,EAAC,MAAM;AACX,QAAA,OAAK,uCAAE,IAAK,CAAA,KAAA,CAAA,QAAA,CAAA,CAAA,CAAA;;QAEbC,eAAgC,CAAA,kBAAA,EAAA,EAAvB,IAAI,EAAC,OAAO,EAAA,CAAA;;;IAGzBC,cAA4B,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;;;;;;;"}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var PreviewPhone_vue_vue_type_script_setup_true_lang = require('./PreviewPhone.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var PreviewPhone = /* @__PURE__ */ _pluginVue_exportHelper.default(PreviewPhone_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var PreviewPhone = /* @__PURE__ */ _pluginVue_exportHelper.default(PreviewPhone_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\\page-diy\\src\\components\\PreviewPhone.vue"]]);
|
9
9
|
|
10
10
|
exports.default = PreviewPhone;
|
11
11
|
//# sourceMappingURL=PreviewPhone.vue.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PreviewPhone.vue2.js","sources":["../../../../src/page-diy/src/components/PreviewPhone.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'PreviewPhone',\n});\n</script>\n<template>\n <div class=\"preview-phone\">\n <div class=\"phone\">\n <div class=\"phone-header\">\n <div class=\"phone-header-top\">\n <div class=\"phone-time\">\n <span>{{ time }}</span>\n <van-icon name=\"wechat\" color=\"#2ddd71\" />\n </div>\n <div />\n <div class=\"phone-battery\">\n <span class=\"m-r-4px\">100%</span>\n <dk-icon
|
1
|
+
{"version":3,"file":"PreviewPhone.vue2.js","sources":["../../../../src/page-diy/src/components/PreviewPhone.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'PreviewPhone',\n});\n</script>\n<template>\n <div class=\"preview-phone\">\n <div class=\"phone\">\n <div class=\"phone-header\">\n <div class=\"phone-header-top\">\n <div class=\"phone-time\">\n <span>{{ time }}</span>\n <van-icon name=\"wechat\" color=\"#2ddd71\" />\n </div>\n <div />\n <div class=\"phone-battery\">\n <span class=\"m-r-4px\">100%</span>\n <dk-icon\n icon=\"gg:battery-full\"\n :size=\"18\"\n color=\"#555\"\n hover-color=\"#f00\"\n ></dk-icon>\n </div>\n </div>\n <div class=\"phone-title\">\n <div class=\"phone-title-icon\">\n <el-dropdown trigger=\"click\" placement=\"bottom-start\">\n <dk-icon\n icon=\"Close\"\n hover-color=\"var(--el-color-primary)\"\n :size=\"20\"\n style=\"cursor: pointer\"\n ></dk-icon>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item @click=\"clear('rule')\"\n >清除组件</el-dropdown-item\n >\n <el-dropdown-item @click=\"clear('page')\"\n >清除页面</el-dropdown-item\n >\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n </div>\n <div>页面标题</div>\n <div class=\"phone-title-icon\">\n <el-popover placement=\"bottom\" :width=\"200\" trigger=\"click\">\n <template #reference>\n <dk-icon\n icon=\"MoreFilled\"\n :size=\"20\"\n hover-color=\"var(--el-color-primary)\"\n style=\"cursor: pointer\"\n />\n </template>\n <el-form-item label=\"显示网格\">\n <template #label>\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"显示组件网格线\"\n placement=\"right-start\"\n >\n 显示网格\n </el-tooltip>\n </template>\n <el-switch v-model=\"form.showLine\" @change=\"changeForm()\" />\n </el-form-item>\n <el-form-item label=\"网格间距\">\n <template #label>\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"设置组件之间的网格间距\"\n placement=\"right-start\"\n >\n 网格间距\n </el-tooltip>\n </template>\n <el-slider\n v-model=\"form.margin\"\n :min=\"0\"\n :step=\"1\"\n show-stops\n :max=\"20\"\n @change=\"changeForm()\"\n />\n </el-form-item>\n <el-form-item label=\"效果预览\">\n <template #label>\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"清除所有网格、间距效果,大致和真实差不多\"\n placement=\"right-start\"\n >\n 效果预览\n </el-tooltip>\n </template>\n <el-switch v-model=\"form.preview\" @change=\"changeForm()\" />\n </el-form-item>\n <el-form-item label=\"关闭动画\">\n <template #label>\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"关闭所有预览的动画效果\"\n placement=\"right-start\"\n >\n 关闭动画\n </el-tooltip>\n </template>\n <el-switch v-model=\"form.closeAnimate\" @change=\"changeForm()\" />\n </el-form-item>\n </el-popover>\n </div>\n </div>\n </div>\n <div class=\"phone-body _fc-m-drag\" :style=\"_style\">\n <slot />\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, inject, provide } from 'vue'\nimport { storage } from '@vipl520/utils'\nimport { ElMessage, ElMessageBox } from 'element-plus'\n\nconst diy: any = inject('diy')\nconst props = defineProps({\n value: {\n default: '',\n type: String,\n },\n pageConfig: {\n default: () => {},\n type: [Object],\n },\n})\n\nconst key = 'preview-phone'\nconst cache: any = JSON.parse(storage.get(key) || '{}')\n\nconst form = ref({\n showLine: cache.showLine || true,\n margin: cache.margin || 2,\n preview: cache.preview || false,\n closeAnimate: cache.closeAnimate || false,\n})\n\nprovide('previewSetting', form)\n\nconst changeForm = () => {\n storage.set(key, JSON.stringify(form.value))\n}\nconst clear = (type = '') => {\n const { proxy } = diy\n const typeName: any = {\n rule: '组件',\n config: '配置',\n }\n ElMessageBox.confirm('当前要清除' + typeName[type] + ',是否继续?', '警告', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n proxy.clear(type)\n ElMessage.success('清除成功')\n })\n .catch(() => {})\n}\nconst _style = computed(() => {\n let line: any = {\n '--padding': '0',\n '--overflow': 'initial',\n }\n if (form.value.showLine && !form.value.preview) {\n line = {\n '--margin': form.value.margin + 'px',\n '--showDashed': '1px',\n }\n }\n if (form.value.preview) {\n line['--padding'] = '0'\n line['--overflow'] = 'hidden'\n line['--minHeight'] = '0px'\n } else {\n line['--padding'] = '2px 0'\n line['--overflow'] = 'initial'\n line['--minHeight'] = '30px'\n }\n return {\n ...props.pageConfig.style,\n ...line,\n }\n})\n\nconst time = computed(() => {\n const d = new Date()\n const hour = d.getHours() // 得到小时数\n const minute = d.getMinutes() // 得到分钟数\n return hour + ':' + minute\n})\n</script>\n"],"names":["__MACROS_defineComponent","inject","storage","ref","provide","ElMessageBox","ElMessage","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;AAiID,IAAM,MAAA,GAAA,GAAWC,WAAO,KAAK,CAAA,CAAA;AAY7B,IAAA,MAAM,GAAM,GAAA,eAAA,CAAA;AACZ,IAAA,MAAM,QAAa,IAAK,CAAA,KAAA,CAAMC,cAAQ,GAAI,CAAA,GAAG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var DkEventCreateInput_vue_vue_type_script_setup_true_lang = require('./DkEventCreateInput.vue2.js');
|
6
6
|
var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
|
7
7
|
|
8
|
-
var DkEventCreateInput = /* @__PURE__ */ _pluginVue_exportHelper.default(DkEventCreateInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
8
|
+
var DkEventCreateInput = /* @__PURE__ */ _pluginVue_exportHelper.default(DkEventCreateInput_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\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);
|
9
9
|
|
10
10
|
exports.default = DkEventCreateInput;
|
11
11
|
//# sourceMappingURL=DkEventCreateInput.vue.js.map
|
@@ -77,16 +77,18 @@ const _sfc_main = {
|
|
77
77
|
if (isEvent) {
|
78
78
|
// 表单配置数据
|
79
79
|
const eventProps = config.props();
|
80
|
-
this.findDkEventCreateInput(eventProps, propsData).forEach(
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
80
|
+
this.findDkEventCreateInput(eventProps, propsData).forEach(
|
81
|
+
(item) => {
|
82
|
+
const data = {
|
83
|
+
id: children._id,
|
84
|
+
label: item.props?.label || config.label,
|
85
|
+
value: propsData[item.field],
|
86
|
+
};
|
87
|
+
if (data.value && data.id && data.label) {
|
88
|
+
this.EventData.addEvent(data);
|
89
|
+
}
|
88
90
|
}
|
89
|
-
|
91
|
+
);
|
90
92
|
}
|
91
93
|
}
|
92
94
|
}
|
@@ -161,7 +163,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
161
163
|
}, 8 /* PROPS */, ["loading", "onClick"])
|
162
164
|
]))
|
163
165
|
}
|
164
|
-
var DkEventSelectInput = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
166
|
+
var DkEventSelectInput = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);
|
165
167
|
|
166
168
|
exports.default = DkEventSelectInput;
|
167
169
|
//# sourceMappingURL=DkEventSelectInput.vue.js.map
|