@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":"index.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/index.js"],"sourcesContent":["import DkMinVideo from './DkMinVideo'\nimport DkMinSwiperImage from './DkMinSwiperImage'\nimport DkMinTitle from './DkMinTitle'\nimport DkMinBlank from './DkMinBlank'\nimport DkMinTextarea from './DkMinTextarea'\nimport DkMinHotArea from './DkMinHotArea'\n\nconst commonMenu = [DkMinVideo
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/index.js"],"sourcesContent":["import DkMinVideo from './DkMinVideo'\nimport DkMinSwiperImage from './DkMinSwiperImage'\nimport DkMinTitle from './DkMinTitle'\nimport DkMinBlank from './DkMinBlank'\nimport DkMinTextarea from './DkMinTextarea'\nimport DkMinHotArea from './DkMinHotArea'\n\nconst commonMenu = [\n DkMinVideo,\n DkMinSwiperImage,\n DkMinTitle,\n DkMinBlank,\n DkMinTextarea,\n DkMinHotArea,\n]\n\nconst commonRuleList = {\n [DkMinVideo.name]: DkMinVideo,\n [DkMinSwiperImage.name]: DkMinSwiperImage,\n [DkMinTitle.name]: DkMinTitle,\n [DkMinBlank.name]: DkMinBlank,\n [DkMinTextarea.name]: DkMinTextarea,\n [DkMinHotArea.name]: DkMinHotArea,\n}\n\nexport { commonMenu, commonRuleList }\n"],"names":[],"mappings":";;;;;;;AAOA,MAAM,UAAa,GAAA;AAAA,EACjB,UAAA;AAAA,EACA,gBAAA;AAAA,EACA,UAAA;AAAA,EACA,UAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AACF,EAAA;AAEA,MAAM,cAAiB,GAAA;AAAA,EACrB,CAAC,UAAW,CAAA,IAAI,GAAG,UAAA;AAAA,EACnB,CAAC,gBAAiB,CAAA,IAAI,GAAG,gBAAA;AAAA,EACzB,CAAC,UAAW,CAAA,IAAI,GAAG,UAAA;AAAA,EACnB,CAAC,UAAW,CAAA,IAAI,GAAG,UAAA;AAAA,EACnB,CAAC,aAAc,CAAA,IAAI,GAAG,aAAA;AAAA,EACtB,CAAC,YAAa,CAAA,IAAI,GAAG,YAAA;AACvB;;;;"}
|
@@ -125,7 +125,9 @@ var DkPosterBtn = {
|
|
125
125
|
},
|
126
126
|
{
|
127
127
|
value: "event",
|
128
|
-
rule: [
|
128
|
+
rule: [
|
129
|
+
{ type: "input", field: "listen", title: "\u76D1\u542C\u4E8B\u4EF6", value: "" }
|
130
|
+
]
|
129
131
|
}
|
130
132
|
],
|
131
133
|
effect: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DkPosterBtn.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkPosterBtn.js"],"sourcesContent":["const label = '海报'\nconst name = 'dk-poster-btn'\nexport default {\n icon: 'icon-park-outline:mark',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {},\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n {\n type: 'DkPosterInput',\n field: 'posterData',\n title: '海报数据',\n value: {},\n },\n {\n type: 'input',\n field: 'footerText',\n title: '底部',\n value: '长按海报图片分享或保存!',\n },\n {\n type: 'select',\n field: 'type',\n title: '样式',\n value: 'btn',\n options: [\n { label: '普通按钮', value: 'btn' },\n { label: '悬浮按钮', value: 'fixed_btn' },\n { label: '图片按钮', value: 'image' },\n { label: '事件触发', value: 'event' },\n ],\n control: [\n {\n value: 'btn',\n rule: [\n {\n type: 'input',\n field: 'btnText',\n title: '按钮文字',\n value: '获取推广海报',\n },\n {\n type: 'switch',\n field: 'block',\n title: '块状按钮',\n value: true,\n },\n { type: 'switch', field: 'round', title: '圆弧', value: true },\n {\n type: 'select',\n field: 'size',\n title: '尺寸',\n value: 'normal',\n options: [\n { label: '迷你按钮', value: 'mini' },\n { label: '小型按钮', value: 'small' },\n { label: '中型按钮', value: 'normal' },\n { label: '大型按钮', value: 'large' },\n ],\n },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '颜色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'color2',\n title: '渐变色',\n value: '',\n },\n ],\n },\n {\n value: 'fixed_btn',\n rule: [\n {\n type: 'input',\n field: 'fBtnText',\n title: '悬浮文字',\n value: '海报',\n },\n {\n type: 'DkColorInput',\n field: 'fBgColor',\n title: '背景色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'fColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'slider',\n field: 'fSize',\n title: '尺寸',\n value: 30,\n props: { min: 30, max: 100 },\n },\n ],\n },\n {\n value: 'image',\n rule: [\n { type: 'DkImageInput', field: 'img', title: '图片', value: '' },\n {\n type: 'slider',\n field: 'imgSize',\n title: '尺寸',\n value: 20,\n props: { min: 20, max: 100 },\n },\n ],\n },\n {\n value: 'event',\n rule: [{ type: 'input', field: 'listen', title: '监听事件', value: '' }],\n },\n ],\n effect: {\n help: '配置后可以点击下方【样式设置】->【组件悬浮】对按钮进行悬浮',\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,eAAA,CAAA;AACb,kBAAe;AAAA,EACb,IAAM,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A,gBACN,KAAO,EAAA,UAAA;AAAA,gBACP,KAAO,EAAA,oBAAA;AAAA,gBACP,KAAO,EAAA,SAAA;AAAA,eACT;AAAA,cACA;AAAA,gBACE,IAAM,EAAA,cAAA;AAAA,gBACN,KAAO,EAAA,QAAA;AAAA,gBACP,KAAO,EAAA,oBAAA;AAAA,gBACP,KAAO,EAAA,MAAA;AAAA,eACT;AAAA,cACA;AAAA,gBACE,IAAM,EAAA,QAAA;AAAA,gBACN,KAAO,EAAA,OAAA;AAAA,gBACP,KAAO,EAAA,cAAA;AAAA,gBACP,KAAO,EAAA,EAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,EAAA,EAAI,KAAK,GAAI,EAAA;AAAA,eAC7B;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ,EAAE,MAAM,cAAgB,EAAA,KAAA,EAAO,OAAO,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,cAC7D;AAAA,gBACE,IAAM,EAAA,QAAA;AAAA,gBACN,KAAO,EAAA,SAAA;AAAA,gBACP,KAAO,EAAA,cAAA;AAAA,gBACP,KAAO,EAAA,EAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,EAAA,EAAI,KAAK,GAAI,EAAA;AAAA,eAC7B;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,
|
1
|
+
{"version":3,"file":"DkPosterBtn.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkPosterBtn.js"],"sourcesContent":["const label = '海报'\nconst name = 'dk-poster-btn'\nexport default {\n icon: 'icon-park-outline:mark',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {},\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n {\n type: 'DkPosterInput',\n field: 'posterData',\n title: '海报数据',\n value: {},\n },\n {\n type: 'input',\n field: 'footerText',\n title: '底部',\n value: '长按海报图片分享或保存!',\n },\n {\n type: 'select',\n field: 'type',\n title: '样式',\n value: 'btn',\n options: [\n { label: '普通按钮', value: 'btn' },\n { label: '悬浮按钮', value: 'fixed_btn' },\n { label: '图片按钮', value: 'image' },\n { label: '事件触发', value: 'event' },\n ],\n control: [\n {\n value: 'btn',\n rule: [\n {\n type: 'input',\n field: 'btnText',\n title: '按钮文字',\n value: '获取推广海报',\n },\n {\n type: 'switch',\n field: 'block',\n title: '块状按钮',\n value: true,\n },\n { type: 'switch', field: 'round', title: '圆弧', value: true },\n {\n type: 'select',\n field: 'size',\n title: '尺寸',\n value: 'normal',\n options: [\n { label: '迷你按钮', value: 'mini' },\n { label: '小型按钮', value: 'small' },\n { label: '中型按钮', value: 'normal' },\n { label: '大型按钮', value: 'large' },\n ],\n },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '颜色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'color2',\n title: '渐变色',\n value: '',\n },\n ],\n },\n {\n value: 'fixed_btn',\n rule: [\n {\n type: 'input',\n field: 'fBtnText',\n title: '悬浮文字',\n value: '海报',\n },\n {\n type: 'DkColorInput',\n field: 'fBgColor',\n title: '背景色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'fColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'slider',\n field: 'fSize',\n title: '尺寸',\n value: 30,\n props: { min: 30, max: 100 },\n },\n ],\n },\n {\n value: 'image',\n rule: [\n { type: 'DkImageInput', field: 'img', title: '图片', value: '' },\n {\n type: 'slider',\n field: 'imgSize',\n title: '尺寸',\n value: 20,\n props: { min: 20, max: 100 },\n },\n ],\n },\n {\n value: 'event',\n rule: [\n { type: 'input', field: 'listen', title: '监听事件', value: '' },\n ],\n },\n ],\n effect: {\n help: '配置后可以点击下方【样式设置】->【组件悬浮】对按钮进行悬浮',\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,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AAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DkViewBulletChat.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewBulletChat.js"],"sourcesContent":["const label = '弹幕组件'\nconst name = 'DkViewBulletChat'\nexport default {\n icon: 'mingcute:chat-1-line',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n dataType: 'default',\n bulletData: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar: 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',\n },\n ],\n },\n fixed: true,\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'DkColorInput',\n field: 'bgColor',\n title: '背景色',\n props: { showAlpha: true },\n value: 'rgb(0 0 0 / 30%)',\n },\n {\n type: 'DkColorInput',\n field: 'textColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'inputNumber',\n field: 'autoplay',\n title: '滚动频率',\n value: 3000,\n props: { min: 1000, max: 10000, step: 500 },\n },\n {\n type: 'select',\n field: 'dataType',\n title: '内容来源',\n value: 'default',\n options: [\n { label: '手动填写', value: 'default' },\n { label: '事件传参', value: 'event' },\n ],\n control: [\n {\n value: 'default',\n rule: [\n {\n type: 'dk-group',\n field: 'bulletData',\n // title: '弹幕数据',\n value: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar
|
1
|
+
{"version":3,"file":"DkViewBulletChat.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewBulletChat.js"],"sourcesContent":["const label = '弹幕组件'\nconst name = 'DkViewBulletChat'\nexport default {\n icon: 'mingcute:chat-1-line',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n dataType: 'default',\n bulletData: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar: 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',\n },\n ],\n },\n fixed: true,\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'DkColorInput',\n field: 'bgColor',\n title: '背景色',\n props: { showAlpha: true },\n value: 'rgb(0 0 0 / 30%)',\n },\n {\n type: 'DkColorInput',\n field: 'textColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'inputNumber',\n field: 'autoplay',\n title: '滚动频率',\n value: 3000,\n props: { min: 1000, max: 10000, step: 500 },\n },\n {\n type: 'select',\n field: 'dataType',\n title: '内容来源',\n value: 'default',\n options: [\n { label: '手动填写', value: 'default' },\n { label: '事件传参', value: 'event' },\n ],\n control: [\n {\n value: 'default',\n rule: [\n {\n type: 'dk-group',\n field: 'bulletData',\n // title: '弹幕数据',\n value: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar:\n 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',\n },\n ],\n props: {\n titleField: 'text',\n defaultValue: {\n avatar: '',\n text: '',\n },\n rule: [\n { type: 'input', field: 'text', title: '描述' },\n {\n type: 'dkImageInput',\n field: 'avatar',\n title: '头像',\n value: '',\n },\n ],\n },\n },\n ],\n },\n {\n value: 'event',\n rule: [\n {\n type: 'DkEventSelectInput',\n field: 'eventName',\n title: '事件名称',\n value: '',\n props: { label: '弹幕事件' },\n effect: { help: '选择支持弹幕的事件,内容将由该事件传递参数' },\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,0BAAA,CAAA;AACd,MAAM,IAAO,GAAA,kBAAA,CAAA;AACb,uBAAe;AAAA,EACb,IAAM,EAAA,sBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,QAAU,EAAA,SAAA;AAAA,QACV,UAAY,EAAA;AAAA,UACV;AAAA,YACE,IAAM,EAAA,sEAAA;AAAA,YACN,MAAQ,EAAA,uDAAA;AAAA,WACV;AAAA,SACF;AAAA,OACF;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AAA,uDAAA;AAAA,mBACJ;AAAA,iBACF;AAAA,gBACA,KAAO,EAAA;AAAA,kBACL,UAAY,EAAA,MAAA;AAAA,kBACZ,YAAc,EAAA;AAAA,oBACZ,MAAQ,EAAA,EAAA;AAAA,oBACR,IAAM,EAAA,EAAA;AAAA,mBACR;AAAA,kBACA,IAAM,EAAA;AAAA,oBACJ,EAAE,IAAM,EAAA,OAAA,EAAS,KAAO,EAAA,MAAA,EAAQ,OAAO,cAAK,EAAA;AAAA,oBAC5C;AAAA,sBACE,IAAM,EAAA,cAAA;AAAA,sBACN,KAAO,EAAA,QAAA;AAAA,sBACP,KAAO,EAAA,cAAA;AAAA,sBACP,KAAO,EAAA,EAAA;AAAA,qBACT;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,oBAAA;AAAA,gBACN,KAAO,EAAA,WAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,EAAA;AAAA,gBACP,KAAA,EAAO,EAAE,KAAA,EAAO,0BAAO,EAAA;AAAA,gBACvB,MAAA,EAAQ,EAAE,IAAA,EAAM,gIAAwB,EAAA;AAAA,eAC1C;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
|
@@ -18,7 +18,13 @@ var DkViewDialog = {
|
|
18
18
|
},
|
19
19
|
props() {
|
20
20
|
return [
|
21
|
-
{
|
21
|
+
{
|
22
|
+
type: "DkEventCreateInput",
|
23
|
+
field: "listen",
|
24
|
+
title: "\u76D1\u542C\u4E8B\u4EF6",
|
25
|
+
value: "",
|
26
|
+
props: { label: "\u5F39\u7A97\u7EC4\u4EF6" }
|
27
|
+
},
|
22
28
|
{ type: "input", field: "title", title: "\u5F39\u7A97\u6807\u9898", value: "\u901A\u77E5" },
|
23
29
|
{
|
24
30
|
type: "dk-tiny-editor",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DkViewDialog.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewDialog.js"],"sourcesContent":["const label = '弹窗组件'\nconst name = 'DkViewDialog'\nexport default {\n icon: 'mi:window',\n label,\n name,\n event: true,\n rule() {\n return {\n type: name,\n props: {\n title: '通知',\n listen: '',\n },\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n {
|
1
|
+
{"version":3,"file":"DkViewDialog.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewDialog.js"],"sourcesContent":["const label = '弹窗组件'\nconst name = 'DkViewDialog'\nexport default {\n icon: 'mi:window',\n label,\n name,\n event: true,\n rule() {\n return {\n type: name,\n props: {\n title: '通知',\n listen: '',\n },\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n {\n type: 'DkEventCreateInput',\n field: 'listen',\n title: '监听事件',\n value: '',\n props: { label: '弹窗组件' },\n },\n { type: 'input', field: 'title', title: '弹窗标题', value: '通知' },\n {\n type: 'dk-tiny-editor',\n field: 'content',\n title: '弹窗内容',\n props: {\n buttonText: '编辑弹窗内容',\n },\n value: '',\n },\n { type: 'input', field: 'confirmText', title: '按钮文字', value: '确定' },\n {\n type: 'switch',\n field: 'show',\n title: '预览',\n value: false,\n effect: {\n help: '当前为预览按钮,不影响实际显示,点击后在预览窗口点确定即可关闭',\n },\n },\n {\n type: 'radio',\n field: 'copy',\n title: '复制内容',\n value: '0',\n options: [\n { label: '不复制', value: '0' },\n { label: '复制弹窗内容', value: '1' },\n {\n label: '复制自定义内容',\n value: '2',\n },\n ],\n control: [\n {\n value: '2',\n rule: [\n {\n type: 'select',\n field: 'copyType',\n title: '复制类型',\n value: 'text',\n options: [\n { label: '纯文本', value: 'text' },\n { label: '富文本', value: 'html' },\n ],\n control: [\n {\n value: 'text',\n rule: [\n {\n type: 'input',\n field: 'copyText',\n title: '复制内容',\n value: '',\n props: { type: 'textarea' },\n },\n ],\n },\n {\n value: 'html',\n rule: [\n {\n type: 'dk-tiny-editor',\n field: 'copyHtml',\n title: '复制内容',\n value: '',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n handle: function (val) {\n return val !== ''\n },\n rule: [\n {\n type: 'input',\n field: 'copySuccessToast',\n title: '复制提示',\n value: '复制成功',\n effect: { help: '复制成功后的提示,不填则不显示' },\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,0BAAA,CAAA;AACd,MAAM,IAAO,GAAA,cAAA,CAAA;AACb,mBAAe;AAAA,EACb,IAAM,EAAA,WAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAO,EAAA,IAAA;AAAA,EACP,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,cAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL;AAAA,QACE,IAAM,EAAA,oBAAA;AAAA,QACN,KAAO,EAAA,QAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA,EAAA;AAAA,QACP,KAAA,EAAO,EAAE,KAAA,EAAO,0BAAO,EAAA;AAAA,OACzB;AAAA,MACA,EAAE,MAAM,OAAS,EAAA,KAAA,EAAO,SAAS,KAAO,EAAA,0BAAA,EAAQ,OAAO,cAAK,EAAA;AAAA,MAC5D;AAAA,QACE,IAAM,EAAA,gBAAA;AAAA,QACN,KAAO,EAAA,SAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA;AAAA,UACL,UAAY,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,sBACJ;AAAA,wBACE,IAAM,EAAA,OAAA;AAAA,wBACN,KAAO,EAAA,UAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,EAAA;AAAA,wBACP,KAAA,EAAO,EAAE,IAAA,EAAM,UAAW,EAAA;AAAA,uBAC5B;AAAA,qBACF;AAAA,mBACF;AAAA,kBACA;AAAA,oBACE,KAAO,EAAA,MAAA;AAAA,oBACP,IAAM,EAAA;AAAA,sBACJ;AAAA,wBACE,IAAM,EAAA,gBAAA;AAAA,wBACN,KAAO,EAAA,UAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,EAAA;AAAA,uBACT;AAAA,qBACF;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,MAAA,EAAQ,SAAU,GAAK,EAAA;AACrB,cAAA,OAAO,GAAQ,KAAA,EAAA,CAAA;AAAA,aACjB;AAAA,YACA,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,OAAA;AAAA,gBACN,KAAO,EAAA,kBAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,MAAA,EAAQ,EAAE,IAAA,EAAM,uFAAkB,EAAA;AAAA,eACpC;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
|
@@ -37,7 +37,9 @@ var DkViewVideo = {
|
|
37
37
|
suffix: {
|
38
38
|
type: "p",
|
39
39
|
style: { fontSize: "12px", color: "#888" },
|
40
|
-
children: [
|
40
|
+
children: [
|
41
|
+
"\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"
|
42
|
+
]
|
41
43
|
}
|
42
44
|
}
|
43
45
|
]
|
@@ -46,7 +48,9 @@ var DkViewVideo = {
|
|
46
48
|
suffix: {
|
47
49
|
type: "p",
|
48
50
|
style: { fontSize: "12px", color: "#888" },
|
49
|
-
children: [
|
51
|
+
children: [
|
52
|
+
"\u89C6\u9891\u5BBD\u5EA6\u9ED8\u8BA4\u4E3A100%\uFF0C\u9AD8\u5EA6\u4E3A\u81EA\u52A8\u5339\u914D\u89C6\u9891\uFF0C\u52FE\u9009\u540E\u53EF\u4EE5\u4F7F\u7528\u56FA\u5B9A\u9AD8\u5EA6"
|
53
|
+
]
|
50
54
|
}
|
51
55
|
},
|
52
56
|
{
|
@@ -56,7 +60,9 @@ var DkViewVideo = {
|
|
56
60
|
suffix: {
|
57
61
|
type: "p",
|
58
62
|
style: { fontSize: "12px", color: "#888" },
|
59
|
-
children: [
|
63
|
+
children: [
|
64
|
+
"\u8BBE\u7F6E\u5F00\u542F\u5F00\u5408\u6A21\u5F0F\u540E\uFF0C\u89C6\u9891\u652F\u6301\u4E0A\u6ED1\u7F29\u653E\u5173\u95ED\u4E0B\u6ED1\u7F29\u653E\u6253\u5F00,\u5C3D\u91CF\u5C06\u89C6\u9891\u6A21\u5757\u653E\u7F6E\u9876\u90E8"
|
65
|
+
]
|
60
66
|
}
|
61
67
|
}
|
62
68
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DkViewVideo.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewVideo.js"],"sourcesContent":["const label = '视频'\nconst name = 'DkViewVideo'\n\nexport default {\n icon: 'icon-park-twotone:video-two',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n videoPath: '',\n isHeight: false,\n isOpenClose: false,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n { type: 'dk-image-input', field: 'poster', title: '封面', value: '' },\n { type: 'dk-video-input', field: 'videoPath', title: '视频', value: '' },\n {\n type: 'switch',\n field: 'isHeight',\n title: '固定高度',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '固定高度',\n value: 240,\n props: { min: 240, height: 1000 },\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: ['设置视频的高度固定,高度固定后可能会出现视频畸形,视频本身固定最小高度为240px'],\n },\n },\n ],\n },\n ],\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: ['视频宽度默认为100%,高度为自动匹配视频,勾选后可以使用固定高度'],\n },\n },\n {\n type: 'switch',\n field: 'isOpenClose',\n title: '开合模式',\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: ['设置开启开合模式后,视频支持上滑缩放关闭下滑缩放打开,尽量将视频模块放置顶部'],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,aAAA,CAAA;AAEb,kBAAe;AAAA,EACb,IAAM,EAAA,6BAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA,EAAA;AAAA,QACX,QAAU,EAAA,KAAA;AAAA,QACV,WAAa,EAAA,KAAA;AAAA,OACf;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,KACb,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,UAAU,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MAClE,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,aAAa,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MACrE;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,UAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA,IAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP;AAAA,YACE,KAAO,EAAA,IAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,aAAA;AAAA,gBACN,KAAO,EAAA,QAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,GAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,GAAA,EAAK,QAAQ,GAAK,EAAA;AAAA,gBAChC,MAAQ,EAAA;AAAA,kBACN,IAAM,EAAA,GAAA;AAAA,kBACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,kBACzC,
|
1
|
+
{"version":3,"file":"DkViewVideo.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewVideo.js"],"sourcesContent":["const label = '视频'\nconst name = 'DkViewVideo'\n\nexport default {\n icon: 'icon-park-twotone:video-two',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n videoPath: '',\n isHeight: false,\n isOpenClose: false,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n { type: 'dk-image-input', field: 'poster', title: '封面', value: '' },\n { type: 'dk-video-input', field: 'videoPath', title: '视频', value: '' },\n {\n type: 'switch',\n field: 'isHeight',\n title: '固定高度',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '固定高度',\n value: 240,\n props: { min: 240, height: 1000 },\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: [\n '设置视频的高度固定,高度固定后可能会出现视频畸形,视频本身固定最小高度为240px',\n ],\n },\n },\n ],\n },\n ],\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: [\n '视频宽度默认为100%,高度为自动匹配视频,勾选后可以使用固定高度',\n ],\n },\n },\n {\n type: 'switch',\n field: 'isOpenClose',\n title: '开合模式',\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: [\n '设置开启开合模式后,视频支持上滑缩放关闭下滑缩放打开,尽量将视频模块放置顶部',\n ],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,aAAA,CAAA;AAEb,kBAAe;AAAA,EACb,IAAM,EAAA,6BAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA,EAAA;AAAA,QACX,QAAU,EAAA,KAAA;AAAA,QACV,WAAa,EAAA,KAAA;AAAA,OACf;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,KACb,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,UAAU,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MAClE,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,aAAa,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MACrE;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,UAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA,IAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP;AAAA,YACE,KAAO,EAAA,IAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,aAAA;AAAA,gBACN,KAAO,EAAA,QAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,GAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,GAAA,EAAK,QAAQ,GAAK,EAAA;AAAA,gBAChC,MAAQ,EAAA;AAAA,kBACN,IAAM,EAAA,GAAA;AAAA,kBACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,kBACzC,QAAU,EAAA;AAAA,oBACR,0NAAA;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,QACA,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,GAAA;AAAA,UACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,UACzC,QAAU,EAAA;AAAA,YACR,oLAAA;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,aAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,GAAA;AAAA,UACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,UACzC,QAAU,EAAA;AAAA,YACR,iOAAA;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { deepCopy } from '@form-create/utils/lib/deepextend';
|
2
2
|
import is, { hasProperty } from '@form-create/utils/lib/type';
|
3
3
|
import { lower } from '@form-create/utils/lib/tocase';
|
4
|
-
import draggable from 'vuedraggable/src/vuedraggable';
|
5
4
|
import PreviewPhone from './components/PreviewPhone.vue.mjs';
|
6
5
|
import { webRuleList, createWebMenu } from './config/rule/web/index.mjs';
|
7
6
|
import { minRuleList, createMinMenu } from './config/rule/min/index.mjs';
|
@@ -40,7 +39,7 @@ const _sfc_main = defineComponent({
|
|
40
39
|
name: 'DkPageDiy',
|
41
40
|
components: {
|
42
41
|
DiyCloud,
|
43
|
-
draggable,
|
42
|
+
// draggable,
|
44
43
|
PreviewPhone,
|
45
44
|
DragForm: designerForm.$form(),
|
46
45
|
},
|
@@ -241,7 +240,9 @@ const _sfc_main = defineComponent({
|
|
241
240
|
// 处理对象节点
|
242
241
|
if (Array.isArray(node.children)) {
|
243
242
|
// 只保留 children 数组中的对象类型元素
|
244
|
-
node.children = node.children.filter(
|
243
|
+
node.children = node.children.filter(
|
244
|
+
(child) => typeof child === 'object' && child !== null
|
245
|
+
);
|
245
246
|
// 递归处理每个子节点
|
246
247
|
node.children = cleanTreeData(node.children);
|
247
248
|
}
|
@@ -254,7 +255,10 @@ const _sfc_main = defineComponent({
|
|
254
255
|
watch(
|
255
256
|
() => data.dragForm,
|
256
257
|
() => {
|
257
|
-
data.treeAside.treeData = methods.parseRule(
|
258
|
+
data.treeAside.treeData = methods.parseRule(
|
259
|
+
deepCopy(data.dragForm.api.rule[0].children),
|
260
|
+
true
|
261
|
+
);
|
258
262
|
data.treeAside.treeData = cleanTreeData(data.treeAside.treeData);
|
259
263
|
},
|
260
264
|
{
|
@@ -462,7 +466,9 @@ const _sfc_main = defineComponent({
|
|
462
466
|
rules = [];
|
463
467
|
}
|
464
468
|
data.children = methods.makeChildren(
|
465
|
-
methods.loadRule(
|
469
|
+
methods.loadRule(
|
470
|
+
is.String(rules) ? designerForm.parseJson(rules) : deepCopy(rules)
|
471
|
+
)
|
466
472
|
);
|
467
473
|
methods.clearActiveRule();
|
468
474
|
data.dragForm.rule = methods.makeDragRule(data.children);
|
@@ -581,9 +587,15 @@ const _sfc_main = defineComponent({
|
|
581
587
|
field = lower(field);
|
582
588
|
if (field.indexOf('effect') === 0 && field.indexOf('>') > -1) {
|
583
589
|
delete data.activeRule.effect[field.split('>')[1]];
|
584
|
-
} else if (
|
590
|
+
} else if (
|
591
|
+
field.indexOf('props') === 0 &&
|
592
|
+
field.indexOf('>') > -1
|
593
|
+
) {
|
585
594
|
delete data.activeRule.props[field.split('>')[1]];
|
586
|
-
} else if (
|
595
|
+
} else if (
|
596
|
+
field.indexOf('attrs') === 0 &&
|
597
|
+
field.indexOf('>') > -1
|
598
|
+
) {
|
587
599
|
data.activeRule.attrs[field.split('>')[1]] = value;
|
588
600
|
} else if (field === 'child') {
|
589
601
|
delete data.activeRule.children[0];
|
@@ -612,9 +624,15 @@ const _sfc_main = defineComponent({
|
|
612
624
|
field = lower(field);
|
613
625
|
if (field.indexOf('effect') === 0 && field.indexOf('>') > -1) {
|
614
626
|
data.activeRule.effect[field.split('>')[1]] = value;
|
615
|
-
} else if (
|
627
|
+
} else if (
|
628
|
+
field.indexOf('props') === 0 &&
|
629
|
+
field.indexOf('>') > -1
|
630
|
+
) {
|
616
631
|
data.activeRule.props[field.split('>')[1]] = value;
|
617
|
-
} else if (
|
632
|
+
} else if (
|
633
|
+
field.indexOf('attrs') === 0 &&
|
634
|
+
field.indexOf('>') > -1
|
635
|
+
) {
|
618
636
|
data.activeRule.attrs[field.split('>')[1]] = value;
|
619
637
|
} else if (field === 'child') {
|
620
638
|
data.activeRule.children[0] = value;
|
@@ -726,14 +744,18 @@ const _sfc_main = defineComponent({
|
|
726
744
|
;['props', 'effect', 'attrs'].forEach((name) => {
|
727
745
|
rule[name] &&
|
728
746
|
Object.keys(rule[name]).forEach((k) => {
|
729
|
-
formData['formCreate' + upper(name) + '>' + k] = deepCopy(
|
747
|
+
formData['formCreate' + upper(name) + '>' + k] = deepCopy(
|
748
|
+
rule[name][k]
|
749
|
+
);
|
730
750
|
});
|
731
751
|
});
|
732
752
|
// console.log('formData', formData)
|
733
753
|
data.propsForm.value = formData;
|
734
754
|
|
735
755
|
data.showBaseRule =
|
736
|
-
hasProperty(rule, 'field') &&
|
756
|
+
hasProperty(rule, 'field') &&
|
757
|
+
rule.input !== false &&
|
758
|
+
(!config.value || config.value.showBaseForm !== false);
|
737
759
|
if (data.showBaseRule) {
|
738
760
|
data.dragForm.api.refreshValidate();
|
739
761
|
}
|
@@ -760,7 +782,9 @@ const _sfc_main = defineComponent({
|
|
760
782
|
const rule = methods.makeRule(ruleList[menu.name]);
|
761
783
|
const config = rule.children[0].config.config;
|
762
784
|
const count = config.count ? config.count : 99;
|
763
|
-
const _count = countObj.value[config.name]
|
785
|
+
const _count = countObj.value[config.name]
|
786
|
+
? countObj.value[config.name]
|
787
|
+
: 0;
|
764
788
|
if (_count >= count) {
|
765
789
|
ElNotification({
|
766
790
|
title: '警告',
|
@@ -774,7 +798,10 @@ const _sfc_main = defineComponent({
|
|
774
798
|
data.added = true;
|
775
799
|
},
|
776
800
|
dragEnd(children, { newIndex, oldIndex }) {
|
777
|
-
if (
|
801
|
+
if (
|
802
|
+
!data.added &&
|
803
|
+
!(data.moveRule === children && newIndex === oldIndex)
|
804
|
+
) {
|
778
805
|
const rule = data.moveRule.splice(oldIndex, 1);
|
779
806
|
children.splice(newIndex, 0, rule[0]);
|
780
807
|
}
|
@@ -796,12 +823,21 @@ const _sfc_main = defineComponent({
|
|
796
823
|
let drag;
|
797
824
|
if (config.drag) {
|
798
825
|
rule.children.push(
|
799
|
-
(drag = methods.makeDrag(
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
826
|
+
(drag = methods.makeDrag(
|
827
|
+
config.drag,
|
828
|
+
rule.type,
|
829
|
+
methods.makeChildren([]),
|
830
|
+
{
|
831
|
+
end: (inject, evt) =>
|
832
|
+
methods.dragEnd(inject.self.children, evt),
|
833
|
+
add: (inject, evt) =>
|
834
|
+
methods.dragAdd(inject.self.children, evt),
|
835
|
+
start: (inject, evt) =>
|
836
|
+
methods.dragStart(inject.self.children, evt),
|
837
|
+
unchoose: (inject, evt) =>
|
838
|
+
methods.dragUnchoose(inject.self.children, evt),
|
839
|
+
}
|
840
|
+
))
|
805
841
|
);
|
806
842
|
}
|
807
843
|
if (config.children && !_rule) {
|
@@ -811,7 +847,10 @@ const _sfc_main = defineComponent({
|
|
811
847
|
}
|
812
848
|
}
|
813
849
|
|
814
|
-
const dragMask =
|
850
|
+
const dragMask =
|
851
|
+
mask.value !== undefined
|
852
|
+
? mask.value !== false
|
853
|
+
: config.mask !== false;
|
815
854
|
if (config.inside) {
|
816
855
|
rule.children = methods.makeChildren([
|
817
856
|
{
|
@@ -847,9 +886,10 @@ const _sfc_main = defineComponent({
|
|
847
886
|
const config = top.parent.config.config;
|
848
887
|
const item = ruleList[config.children];
|
849
888
|
if (!item) return
|
850
|
-
;(!config.drag
|
851
|
-
|
852
|
-
|
889
|
+
;(!config.drag
|
890
|
+
? top.parent
|
891
|
+
: top.parent.children[0]
|
892
|
+
).children[0].children.push(methods.makeRule(item));
|
853
893
|
},
|
854
894
|
copy: ({ self }) => {
|
855
895
|
const top = methods.getParent(self);
|
@@ -902,7 +942,10 @@ const _sfc_main = defineComponent({
|
|
902
942
|
const config = self.children[0].config.config;
|
903
943
|
const item = ruleList[config.children];
|
904
944
|
if (!item) return
|
905
|
-
;(!config.drag
|
945
|
+
;(!config.drag
|
946
|
+
? self
|
947
|
+
: self.children[0]
|
948
|
+
).children[0].children.push(methods.makeRule(item));
|
906
949
|
},
|
907
950
|
copy: ({ self }) => {
|
908
951
|
vm.emit('copy', self.children[0]);
|
@@ -910,7 +953,11 @@ const _sfc_main = defineComponent({
|
|
910
953
|
const copyRule = designerForm.copyRule(top.parent);
|
911
954
|
// 解决复制后,组件的setting配置失效
|
912
955
|
copyRule.props.setting = copyRule.children[0].setting;
|
913
|
-
top.root.children.splice(
|
956
|
+
top.root.children.splice(
|
957
|
+
top.root.children.indexOf(top.parent) + 1,
|
958
|
+
0,
|
959
|
+
copyRule
|
960
|
+
);
|
914
961
|
},
|
915
962
|
active: ({ self }) => {
|
916
963
|
vm.emit('active', self.children[0]);
|
@@ -928,15 +975,18 @@ const _sfc_main = defineComponent({
|
|
928
975
|
data.dragName = name;
|
929
976
|
if (name === 'left') {
|
930
977
|
// 获取._fc-l的宽度
|
931
|
-
data.asideValue =
|
978
|
+
data.asideValue =
|
979
|
+
document.getElementsByClassName('_fc-l')[0].offsetWidth;
|
932
980
|
}
|
933
981
|
if (name === 'right') {
|
934
|
-
data.asideValue =
|
982
|
+
data.asideValue =
|
983
|
+
document.getElementsByClassName('_fc-r')[0].offsetWidth;
|
935
984
|
}
|
936
985
|
document.body.style.cursor = 'ew-resize';
|
937
986
|
if (name === 'tree') {
|
938
987
|
data.startValue = e.clientY;
|
939
|
-
data.asideValue =
|
988
|
+
data.asideValue =
|
989
|
+
document.getElementsByClassName('children-list')[0].offsetHeight;
|
940
990
|
console.log('data.startValue', data.startValue);
|
941
991
|
console.log('data.asideValue', data.asideValue);
|
942
992
|
document.body.style.cursor = 'n-resize';
|
@@ -1028,11 +1078,20 @@ const _sfc_main = defineComponent({
|
|
1028
1078
|
const draggingRule = draggingNode.data.config.config;
|
1029
1079
|
const dropRule = dropNode.data.config.config;
|
1030
1080
|
// 内部元素放到指定的外部才可以放置
|
1031
|
-
if (
|
1081
|
+
if (
|
1082
|
+
type === 'inner' &&
|
1083
|
+
draggingRule.inside &&
|
1084
|
+
draggingRule.name === dropRule.children
|
1085
|
+
) {
|
1032
1086
|
return true
|
1033
1087
|
}
|
1034
1088
|
// 同样父级
|
1035
|
-
if (
|
1089
|
+
if (
|
1090
|
+
type !== 'inner' &&
|
1091
|
+
draggingRule.name === dropRule.name &&
|
1092
|
+
draggingRule.inside &&
|
1093
|
+
dropRule.inside
|
1094
|
+
) {
|
1036
1095
|
return true
|
1037
1096
|
}
|
1038
1097
|
|
@@ -1058,7 +1117,9 @@ const _sfc_main = defineComponent({
|
|
1058
1117
|
methods.setRule(data.treeAside.treeData);
|
1059
1118
|
},
|
1060
1119
|
};
|
1061
|
-
data.dragForm.rule = methods.makeDragRule(
|
1120
|
+
data.dragForm.rule = methods.makeDragRule(
|
1121
|
+
methods.makeChildren(data.children)
|
1122
|
+
);
|
1062
1123
|
return {
|
1063
1124
|
...toRefs(data),
|
1064
1125
|
...methods,
|
@@ -1129,7 +1190,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1129
1190
|
item: withCtx(({ element }) => [
|
1130
1191
|
(openBlock(), createElementBlock("div", {
|
1131
1192
|
key: element.id,
|
1132
|
-
class: normalizeClass(["_fc-l-item",
|
1193
|
+
class: normalizeClass(["_fc-l-item",
|
1194
|
+
element.count - (_ctx.countObj[element.name] || 0) <= 0
|
1195
|
+
? 'not-drag'
|
1196
|
+
: ''
|
1197
|
+
])
|
1133
1198
|
}, [
|
1134
1199
|
createElementVNode("div", _hoisted_3, [
|
1135
1200
|
createVNode(_component_dk_icon, {
|
@@ -1175,7 +1240,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1175
1240
|
default: withCtx(({ data }) => [
|
1176
1241
|
createElementVNode("div", {
|
1177
1242
|
class: "el-tree-node-content",
|
1178
|
-
style: normalizeStyle(
|
1243
|
+
style: normalizeStyle(
|
1244
|
+
_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:red' : ''
|
1245
|
+
)
|
1179
1246
|
}, [
|
1180
1247
|
createTextVNode(toDisplayString(data.type) + " ", 1 /* TEXT */),
|
1181
1248
|
(data.config?.config.label)
|
@@ -1387,7 +1454,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1387
1454
|
_: 3 /* FORWARDED */
|
1388
1455
|
}))
|
1389
1456
|
}
|
1390
|
-
var _PageDiy = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
1457
|
+
var _PageDiy = /*#__PURE__*/_export_sfc(_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\\page-diy.vue"]]);
|
1391
1458
|
|
1392
1459
|
export { _PageDiy as default };
|
1393
1460
|
//# sourceMappingURL=page-diy.vue.mjs.map
|