@vipl520/dk-ui 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +13 -26
- package/dist/index.min.js +34 -0
- package/dist/index.min.js.map +1 -0
- package/dist/index.min.mjs +34 -0
- package/dist/index.min.mjs.map +1 -0
- package/dist/index.mjs +13 -26
- package/dist/web-types.json +1 -1
- package/es/api/attachment.d.ts +10 -0
- package/es/api/common.d.ts +1 -0
- package/es/api/index.d.ts +1 -0
- package/es/attachment/index.d.ts +29 -0
- package/es/attachment/src/attachment.vue.d.ts +28 -0
- package/es/attachment/src/file-icon.vue.d.ts +41 -0
- package/es/attachment/src/props.d.ts +12 -0
- package/es/attachment-dialog/index.d.ts +40 -0
- package/es/attachment-dialog/src/attachment-dialog.vue.d.ts +39 -0
- package/es/attachment-dialog/src/props.d.ts +16 -0
- package/es/audio-input/index.d.ts +55 -0
- package/es/audio-input/src/audio-input.vue.d.ts +54 -0
- package/es/audio-input/src/props.d.ts +24 -0
- package/es/audio-list-input/index.d.ts +55 -0
- package/es/audio-list-input/src/audio-list-input.vue.d.ts +54 -0
- package/es/audio-list-input/src/props.d.ts +24 -0
- package/es/box-size-input/index.d.ts +71 -0
- package/es/box-size-input/src/box-size-input.vue.d.ts +70 -0
- package/es/box-size-input/src/props.d.ts +32 -0
- package/es/color-input/index.d.ts +46 -0
- package/es/color-input/src/color-input.vue.d.ts +45 -0
- package/es/color-input/src/props.d.ts +23 -0
- package/es/dialog/index.d.ts +176 -0
- package/es/dialog/src/dialog.vue.d.ts +59 -0
- package/es/dialog/src/props.d.ts +24 -0
- package/es/file-input/index.d.ts +64 -0
- package/es/file-input/src/file-input.vue.d.ts +63 -0
- package/es/file-input/src/props.d.ts +28 -0
- package/es/file-list-input/index.d.ts +64 -0
- package/es/file-list-input/src/file-list-input.vue.d.ts +63 -0
- package/es/file-list-input/src/props.d.ts +28 -0
- package/es/form/index.d.ts +294 -0
- package/es/form/src/config.d.ts +45 -0
- package/es/form/src/form.vue.d.ts +116 -0
- package/es/form/src/props.d.ts +44 -0
- package/es/group/index.d.ts +174 -0
- package/es/group/src/group.vue.d.ts +173 -0
- package/es/group/src/props.d.ts +76 -0
- package/es/group/utils/extend.d.ts +3 -0
- package/es/group/utils/utils.d.ts +4 -0
- package/es/icon/index.d.ts +189 -0
- package/es/icon/src/icon.vue.d.ts +66 -0
- package/es/icon/src/props.d.ts +31 -0
- package/es/icon-input/index.d.ts +143 -0
- package/es/icon-input/src/icon-content.vue.d.ts +44 -0
- package/es/icon-input/src/icon-dialog.vue.d.ts +38 -0
- package/es/icon-input/src/icon-input.vue.d.ts +62 -0
- package/es/icon-input/src/props.d.ts +62 -0
- package/es/image-input/index.d.ts +55 -0
- package/es/image-input/src/image-input.vue.d.ts +54 -0
- package/es/image-input/src/props.d.ts +24 -0
- package/es/image-list-input/index.d.ts +55 -0
- package/es/image-list-input/src/image-list-input.vue.d.ts +54 -0
- package/es/image-list-input/src/props.d.ts +24 -0
- package/es/index.d.ts +35 -0
- package/es/packages/dk-ui/src/box-size-input/src/box-size-input.vue2.mjs +3 -3
- package/es/packages/dk-ui/src/box-size-input/src/box-size-input.vue2.mjs.map +1 -1
- package/es/packages/dk-ui/src/form/src/form.vue2.mjs +2 -2
- package/es/packages/dk-ui/src/form/src/form.vue2.mjs.map +1 -1
- package/es/packages/dk-ui/src/select/index.mjs.map +1 -1
- package/es/packages/dk-ui/src/select/src/props.mjs.map +1 -1
- package/es/packages/dk-ui/src/style-border-input/src/style-border-input.vue2.mjs +3 -7
- package/es/packages/dk-ui/src/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
- package/es/packages/dk-ui/src/style-position-input/src/style-position-input.vue2.mjs +1 -4
- package/es/packages/dk-ui/src/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
- package/es/packages/dk-ui/src/style-shadow-input/src/style-shadow-content.vue2.mjs +2 -6
- package/es/packages/dk-ui/src/style-shadow-input/src/style-shadow-content.vue2.mjs.map +1 -1
- package/es/packages/dk-ui/src/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
- package/es/packages/dk-ui/src/tiny-editor/src/tiny-editor.vue2.mjs +2 -4
- package/es/packages/dk-ui/src/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
- package/es/page-diy/index.d.ts +246 -0
- package/es/page-diy/src/components/DragBox.vue.d.ts +14 -0
- package/es/page-diy/src/components/DragTool.vue.d.ts +59 -0
- package/es/page-diy/src/components/PreviewPhone.vue.d.ts +30 -0
- package/es/page-diy/src/config/base/dkPage.d.ts +7 -0
- package/es/page-diy/src/config/base/dkSetting.d.ts +35 -0
- package/es/page-diy/src/config/base/index.d.ts +3 -0
- package/es/page-diy/src/config/rule/common/DkPosterBtn.d.ts +86 -0
- package/es/page-diy/src/config/rule/common/DkViewBulletChat.d.ts +108 -0
- package/es/page-diy/src/config/rule/common/DkViewCell.d.ts +37 -0
- package/es/page-diy/src/config/rule/common/DkViewCommonBtn.d.ts +264 -0
- package/es/page-diy/src/config/rule/common/DkViewDialog.d.ts +106 -0
- package/es/page-diy/src/config/rule/common/DkViewGridCellList.d.ts +130 -0
- package/es/page-diy/src/config/rule/common/DkViewImage.d.ts +120 -0
- package/es/page-diy/src/config/rule/common/DkViewMusic.d.ts +85 -0
- package/es/page-diy/src/config/rule/common/DkViewNavBar.d.ts +33 -0
- package/es/page-diy/src/config/rule/common/DkViewNoticeBar.d.ts +57 -0
- package/es/page-diy/src/config/rule/common/DkViewSwipe.d.ts +140 -0
- package/es/page-diy/src/config/rule/common/DkViewTabbar.d.ts +101 -0
- package/es/page-diy/src/config/rule/common/DkViewTextarea.d.ts +33 -0
- package/es/page-diy/src/config/rule/common/DkViewVideo.d.ts +73 -0
- package/es/page-diy/src/config/rule/common/index.d.ts +2638 -0
- package/es/page-diy/src/config/rule/index.d.ts +3665 -0
- package/es/page-diy/src/config/rule/layout/DkViewTitle.d.ts +125 -0
- package/es/page-diy/src/config/rule/layout/col.d.ts +36 -0
- package/es/page-diy/src/config/rule/layout/divider.d.ts +39 -0
- package/es/page-diy/src/config/rule/layout/index.d.ts +1023 -0
- package/es/page-diy/src/config/rule/layout/row.d.ts +47 -0
- package/es/page-diy/src/config/rule/layout/space.d.ts +32 -0
- package/es/page-diy/src/config/rule/layout/swip-item.d.ts +27 -0
- package/es/page-diy/src/config/rule/layout/swipe.d.ts +62 -0
- package/es/page-diy/src/config/rule/layout/tab.d.ts +30 -0
- package/es/page-diy/src/config/rule/layout/tabs.d.ts +119 -0
- package/es/page-diy/src/config/rule/layout/vanEmpty.d.ts +66 -0
- package/es/page-diy/src/page-diy.vue.d.ts +245 -0
- package/es/page-diy/src/props.d.ts +11 -0
- package/es/page-diy/src/utils/form.d.ts +4 -0
- package/es/page-diy/src/utils/help.d.ts +2 -0
- package/es/page-diy/src/utils/index.d.ts +3 -0
- package/es/page-diy/src/utils/unique.d.ts +1 -0
- package/es/page-diy/src/views/DkViewBulletChat.vue.d.ts +59 -0
- package/es/page-diy/src/views/DkViewCell.vue.d.ts +14 -0
- package/es/page-diy/src/views/DkViewCommonBtn.vue.d.ts +220 -0
- package/es/page-diy/src/views/DkViewDialog.vue.d.ts +81 -0
- package/es/page-diy/src/views/DkViewGridCellList.vue.d.ts +133 -0
- package/es/page-diy/src/views/DkViewImage.vue.d.ts +120 -0
- package/es/page-diy/src/views/DkViewMusic.vue.d.ts +68 -0
- package/es/page-diy/src/views/DkViewNavBar.vue.d.ts +68 -0
- package/es/page-diy/src/views/DkViewNoticeBar.vue.d.ts +59 -0
- package/es/page-diy/src/views/DkViewSwipe.vue.d.ts +59 -0
- package/es/page-diy/src/views/DkViewTabbar.vue.d.ts +52 -0
- package/es/page-diy/src/views/DkViewTextarea.vue.d.ts +14 -0
- package/es/page-diy/src/views/DkViewTitle.vue.d.ts +167 -0
- package/es/page-diy/src/views/DkViewVideo.vue.d.ts +54 -0
- package/es/page-diy/src/views/index.d.ts +2 -0
- package/es/poster-input/index.d.ts +142 -0
- package/es/poster-input/src/component/config.d.ts +97 -0
- package/es/poster-input/src/component/poster-content.vue.d.ts +46 -0
- package/es/poster-input/src/component/poster.vue.d.ts +31 -0
- package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.d.ts +23 -0
- package/es/poster-input/src/component/views/DkPosterViewImage.vue.d.ts +23 -0
- package/es/poster-input/src/component/views/DkPosterViewName.vue.d.ts +23 -0
- package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.d.ts +23 -0
- package/es/poster-input/src/component/views/DkPosterViewText.vue.d.ts +23 -0
- package/es/poster-input/src/component/views/quick-action.vue.d.ts +14 -0
- package/es/poster-input/src/poster-input.vue.d.ts +112 -0
- package/es/poster-input/src/props.d.ts +54 -0
- package/es/resolver.d.ts +15 -0
- package/es/select/index.d.ts +3 -0
- package/es/select/src/props.d.ts +3 -0
- package/es/select/src/select.vue.d.ts +17 -0
- package/es/style-background-input/index.d.ts +23 -0
- package/es/style-background-input/src/props.d.ts +11 -0
- package/es/style-background-input/src/style-background-input.vue.d.ts +22 -0
- package/es/style-border-input/index.d.ts +17 -0
- package/es/style-border-input/src/props.d.ts +8 -0
- package/es/style-border-input/src/style-border-input.vue.d.ts +16 -0
- package/es/style-box-input/index.d.ts +35 -0
- package/es/style-box-input/src/html.d.ts +33 -0
- package/es/style-box-input/src/props.d.ts +16 -0
- package/es/style-box-input/src/style-box-input.vue.d.ts +34 -0
- package/es/style-font-input/index.d.ts +17 -0
- package/es/style-font-input/src/props.d.ts +8 -0
- package/es/style-font-input/src/style-font-input.vue.d.ts +16 -0
- package/es/style-input/index.d.ts +26 -0
- package/es/style-input/src/default.d.ts +9 -0
- package/es/style-input/src/props.d.ts +16 -0
- package/es/style-input/src/style-input.vue.d.ts +25 -0
- package/es/style-number-input/index.d.ts +62 -0
- package/es/style-number-input/src/props.d.ts +28 -0
- package/es/style-number-input/src/style-number-input.vue.d.ts +61 -0
- package/es/style-position-input/index.d.ts +17 -0
- package/es/style-position-input/src/props.d.ts +8 -0
- package/es/style-position-input/src/style-position-input.vue.d.ts +16 -0
- package/es/style-shadow-input/index.d.ts +83 -0
- package/es/style-shadow-input/src/props.d.ts +12 -0
- package/es/style-shadow-input/src/style-shadow-content.vue.d.ts +58 -0
- package/es/style-shadow-input/src/style-shadow-input.vue.d.ts +25 -0
- package/es/table/index.d.ts +127 -0
- package/es/table/src/components/ComSearch.vue.d.ts +7 -0
- package/es/table/src/components/FieldRender.vue.d.ts +37 -0
- package/es/table/src/components/RecycleDialog.vue.d.ts +2 -0
- package/es/table/src/components/header.vue.d.ts +40 -0
- package/es/table/src/props.d.ts +8 -0
- package/es/table/src/table.vue.d.ts +27 -0
- package/es/table/utils/dkTable.d.ts +85 -0
- package/es/table/utils/dkTableApi.d.ts +59 -0
- package/es/test/index.d.ts +24 -0
- package/es/test/src/props.d.ts +15 -0
- package/es/test/src/test.vue.d.ts +23 -0
- package/es/tiny-editor/index.d.ts +64 -0
- package/es/tiny-editor/src/config.d.ts +19 -0
- package/es/tiny-editor/src/props.d.ts +31 -0
- package/es/tiny-editor/src/tiny-editor.vue.d.ts +63 -0
- package/es/video-input/index.d.ts +55 -0
- package/es/video-input/src/props.d.ts +24 -0
- package/es/video-input/src/video-input.vue.d.ts +54 -0
- package/es/video-list-input/index.d.ts +55 -0
- package/es/video-list-input/src/props.d.ts +24 -0
- package/es/video-list-input/src/video-list-input.vue.d.ts +54 -0
- package/lib/api/attachment.d.ts +10 -0
- package/lib/api/common.d.ts +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/attachment/index.d.ts +29 -0
- package/lib/attachment/src/attachment.vue.d.ts +28 -0
- package/lib/attachment/src/file-icon.vue.d.ts +41 -0
- package/lib/attachment/src/props.d.ts +12 -0
- package/lib/attachment-dialog/index.d.ts +40 -0
- package/lib/attachment-dialog/src/attachment-dialog.vue.d.ts +39 -0
- package/lib/attachment-dialog/src/props.d.ts +16 -0
- package/lib/audio-input/index.d.ts +55 -0
- package/lib/audio-input/src/audio-input.vue.d.ts +54 -0
- package/lib/audio-input/src/props.d.ts +24 -0
- package/lib/audio-list-input/index.d.ts +55 -0
- package/lib/audio-list-input/src/audio-list-input.vue.d.ts +54 -0
- package/lib/audio-list-input/src/props.d.ts +24 -0
- package/lib/box-size-input/index.d.ts +71 -0
- package/lib/box-size-input/src/box-size-input.vue.d.ts +70 -0
- package/lib/box-size-input/src/props.d.ts +32 -0
- package/lib/color-input/index.d.ts +46 -0
- package/lib/color-input/src/color-input.vue.d.ts +45 -0
- package/lib/color-input/src/props.d.ts +23 -0
- package/lib/dialog/index.d.ts +176 -0
- package/lib/dialog/src/dialog.vue.d.ts +59 -0
- package/lib/dialog/src/props.d.ts +24 -0
- package/lib/file-input/index.d.ts +64 -0
- package/lib/file-input/src/file-input.vue.d.ts +63 -0
- package/lib/file-input/src/props.d.ts +28 -0
- package/lib/file-list-input/index.d.ts +64 -0
- package/lib/file-list-input/src/file-list-input.vue.d.ts +63 -0
- package/lib/file-list-input/src/props.d.ts +28 -0
- package/lib/form/index.d.ts +294 -0
- package/lib/form/src/config.d.ts +45 -0
- package/lib/form/src/form.vue.d.ts +116 -0
- package/lib/form/src/props.d.ts +44 -0
- package/lib/group/index.d.ts +174 -0
- package/lib/group/src/group.vue.d.ts +173 -0
- package/lib/group/src/props.d.ts +76 -0
- package/lib/group/utils/extend.d.ts +3 -0
- package/lib/group/utils/utils.d.ts +4 -0
- package/lib/icon/index.d.ts +189 -0
- package/lib/icon/src/icon.vue.d.ts +66 -0
- package/lib/icon/src/props.d.ts +31 -0
- package/lib/icon-input/index.d.ts +143 -0
- package/lib/icon-input/src/icon-content.vue.d.ts +44 -0
- package/lib/icon-input/src/icon-dialog.vue.d.ts +38 -0
- package/lib/icon-input/src/icon-input.vue.d.ts +62 -0
- package/lib/icon-input/src/props.d.ts +62 -0
- package/lib/image-input/index.d.ts +55 -0
- package/lib/image-input/src/image-input.vue.d.ts +54 -0
- package/lib/image-input/src/props.d.ts +24 -0
- package/lib/image-list-input/index.d.ts +55 -0
- package/lib/image-list-input/src/image-list-input.vue.d.ts +54 -0
- package/lib/image-list-input/src/props.d.ts +24 -0
- package/lib/index.d.ts +35 -0
- package/lib/packages/dk-ui/src/box-size-input/src/box-size-input.vue2.js +3 -3
- package/lib/packages/dk-ui/src/box-size-input/src/box-size-input.vue2.js.map +1 -1
- package/lib/packages/dk-ui/src/form/src/form.vue2.js +2 -2
- package/lib/packages/dk-ui/src/form/src/form.vue2.js.map +1 -1
- package/lib/packages/dk-ui/src/select/index.js.map +1 -1
- package/lib/packages/dk-ui/src/select/src/props.js.map +1 -1
- package/lib/packages/dk-ui/src/style-border-input/src/style-border-input.vue2.js +3 -7
- package/lib/packages/dk-ui/src/style-border-input/src/style-border-input.vue2.js.map +1 -1
- package/lib/packages/dk-ui/src/style-position-input/src/style-position-input.vue2.js +1 -4
- package/lib/packages/dk-ui/src/style-position-input/src/style-position-input.vue2.js.map +1 -1
- package/lib/packages/dk-ui/src/style-shadow-input/src/style-shadow-content.vue2.js +2 -6
- package/lib/packages/dk-ui/src/style-shadow-input/src/style-shadow-content.vue2.js.map +1 -1
- package/lib/packages/dk-ui/src/table/src/components/RecycleDialog.vue2.js.map +1 -1
- package/lib/packages/dk-ui/src/tiny-editor/src/tiny-editor.vue2.js +2 -4
- package/lib/packages/dk-ui/src/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
- package/lib/page-diy/index.d.ts +246 -0
- package/lib/page-diy/src/components/DragBox.vue.d.ts +14 -0
- package/lib/page-diy/src/components/DragTool.vue.d.ts +59 -0
- package/lib/page-diy/src/components/PreviewPhone.vue.d.ts +30 -0
- package/lib/page-diy/src/config/base/dkPage.d.ts +7 -0
- package/lib/page-diy/src/config/base/dkSetting.d.ts +35 -0
- package/lib/page-diy/src/config/base/index.d.ts +3 -0
- package/lib/page-diy/src/config/rule/common/DkPosterBtn.d.ts +86 -0
- package/lib/page-diy/src/config/rule/common/DkViewBulletChat.d.ts +108 -0
- package/lib/page-diy/src/config/rule/common/DkViewCell.d.ts +37 -0
- package/lib/page-diy/src/config/rule/common/DkViewCommonBtn.d.ts +264 -0
- package/lib/page-diy/src/config/rule/common/DkViewDialog.d.ts +106 -0
- package/lib/page-diy/src/config/rule/common/DkViewGridCellList.d.ts +130 -0
- package/lib/page-diy/src/config/rule/common/DkViewImage.d.ts +120 -0
- package/lib/page-diy/src/config/rule/common/DkViewMusic.d.ts +85 -0
- package/lib/page-diy/src/config/rule/common/DkViewNavBar.d.ts +33 -0
- package/lib/page-diy/src/config/rule/common/DkViewNoticeBar.d.ts +57 -0
- package/lib/page-diy/src/config/rule/common/DkViewSwipe.d.ts +140 -0
- package/lib/page-diy/src/config/rule/common/DkViewTabbar.d.ts +101 -0
- package/lib/page-diy/src/config/rule/common/DkViewTextarea.d.ts +33 -0
- package/lib/page-diy/src/config/rule/common/DkViewVideo.d.ts +73 -0
- package/lib/page-diy/src/config/rule/common/index.d.ts +2638 -0
- package/lib/page-diy/src/config/rule/index.d.ts +3665 -0
- package/lib/page-diy/src/config/rule/layout/DkViewTitle.d.ts +125 -0
- package/lib/page-diy/src/config/rule/layout/col.d.ts +36 -0
- package/lib/page-diy/src/config/rule/layout/divider.d.ts +39 -0
- package/lib/page-diy/src/config/rule/layout/index.d.ts +1023 -0
- package/lib/page-diy/src/config/rule/layout/row.d.ts +47 -0
- package/lib/page-diy/src/config/rule/layout/space.d.ts +32 -0
- package/lib/page-diy/src/config/rule/layout/swip-item.d.ts +27 -0
- package/lib/page-diy/src/config/rule/layout/swipe.d.ts +62 -0
- package/lib/page-diy/src/config/rule/layout/tab.d.ts +30 -0
- package/lib/page-diy/src/config/rule/layout/tabs.d.ts +119 -0
- package/lib/page-diy/src/config/rule/layout/vanEmpty.d.ts +66 -0
- package/lib/page-diy/src/page-diy.vue.d.ts +245 -0
- package/lib/page-diy/src/props.d.ts +11 -0
- package/lib/page-diy/src/utils/form.d.ts +4 -0
- package/lib/page-diy/src/utils/help.d.ts +2 -0
- package/lib/page-diy/src/utils/index.d.ts +3 -0
- package/lib/page-diy/src/utils/unique.d.ts +1 -0
- package/lib/page-diy/src/views/DkViewBulletChat.vue.d.ts +59 -0
- package/lib/page-diy/src/views/DkViewCell.vue.d.ts +14 -0
- package/lib/page-diy/src/views/DkViewCommonBtn.vue.d.ts +220 -0
- package/lib/page-diy/src/views/DkViewDialog.vue.d.ts +81 -0
- package/lib/page-diy/src/views/DkViewGridCellList.vue.d.ts +133 -0
- package/lib/page-diy/src/views/DkViewImage.vue.d.ts +120 -0
- package/lib/page-diy/src/views/DkViewMusic.vue.d.ts +68 -0
- package/lib/page-diy/src/views/DkViewNavBar.vue.d.ts +68 -0
- package/lib/page-diy/src/views/DkViewNoticeBar.vue.d.ts +59 -0
- package/lib/page-diy/src/views/DkViewSwipe.vue.d.ts +59 -0
- package/lib/page-diy/src/views/DkViewTabbar.vue.d.ts +52 -0
- package/lib/page-diy/src/views/DkViewTextarea.vue.d.ts +14 -0
- package/lib/page-diy/src/views/DkViewTitle.vue.d.ts +167 -0
- package/lib/page-diy/src/views/DkViewVideo.vue.d.ts +54 -0
- package/lib/page-diy/src/views/index.d.ts +2 -0
- package/lib/poster-input/index.d.ts +142 -0
- package/lib/poster-input/src/component/config.d.ts +97 -0
- package/lib/poster-input/src/component/poster-content.vue.d.ts +46 -0
- package/lib/poster-input/src/component/poster.vue.d.ts +31 -0
- package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.d.ts +23 -0
- package/lib/poster-input/src/component/views/DkPosterViewImage.vue.d.ts +23 -0
- package/lib/poster-input/src/component/views/DkPosterViewName.vue.d.ts +23 -0
- package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.d.ts +23 -0
- package/lib/poster-input/src/component/views/DkPosterViewText.vue.d.ts +23 -0
- package/lib/poster-input/src/component/views/quick-action.vue.d.ts +14 -0
- package/lib/poster-input/src/poster-input.vue.d.ts +112 -0
- package/lib/poster-input/src/props.d.ts +54 -0
- package/lib/resolver.d.ts +15 -0
- package/lib/select/index.d.ts +3 -0
- package/lib/select/src/props.d.ts +3 -0
- package/lib/select/src/select.vue.d.ts +17 -0
- package/lib/style-background-input/index.d.ts +23 -0
- package/lib/style-background-input/src/props.d.ts +11 -0
- package/lib/style-background-input/src/style-background-input.vue.d.ts +22 -0
- package/lib/style-border-input/index.d.ts +17 -0
- package/lib/style-border-input/src/props.d.ts +8 -0
- package/lib/style-border-input/src/style-border-input.vue.d.ts +16 -0
- package/lib/style-box-input/index.d.ts +35 -0
- package/lib/style-box-input/src/html.d.ts +33 -0
- package/lib/style-box-input/src/props.d.ts +16 -0
- package/lib/style-box-input/src/style-box-input.vue.d.ts +34 -0
- package/lib/style-font-input/index.d.ts +17 -0
- package/lib/style-font-input/src/props.d.ts +8 -0
- package/lib/style-font-input/src/style-font-input.vue.d.ts +16 -0
- package/lib/style-input/index.d.ts +26 -0
- package/lib/style-input/src/default.d.ts +9 -0
- package/lib/style-input/src/props.d.ts +16 -0
- package/lib/style-input/src/style-input.vue.d.ts +25 -0
- package/lib/style-number-input/index.d.ts +62 -0
- package/lib/style-number-input/src/props.d.ts +28 -0
- package/lib/style-number-input/src/style-number-input.vue.d.ts +61 -0
- package/lib/style-position-input/index.d.ts +17 -0
- package/lib/style-position-input/src/props.d.ts +8 -0
- package/lib/style-position-input/src/style-position-input.vue.d.ts +16 -0
- package/lib/style-shadow-input/index.d.ts +83 -0
- package/lib/style-shadow-input/src/props.d.ts +12 -0
- package/lib/style-shadow-input/src/style-shadow-content.vue.d.ts +58 -0
- package/lib/style-shadow-input/src/style-shadow-input.vue.d.ts +25 -0
- package/lib/table/index.d.ts +127 -0
- package/lib/table/src/components/ComSearch.vue.d.ts +7 -0
- package/lib/table/src/components/FieldRender.vue.d.ts +37 -0
- package/lib/table/src/components/RecycleDialog.vue.d.ts +2 -0
- package/lib/table/src/components/header.vue.d.ts +40 -0
- package/lib/table/src/props.d.ts +8 -0
- package/lib/table/src/table.vue.d.ts +27 -0
- package/lib/table/utils/dkTable.d.ts +85 -0
- package/lib/table/utils/dkTableApi.d.ts +59 -0
- package/lib/test/index.d.ts +24 -0
- package/lib/test/src/props.d.ts +15 -0
- package/lib/test/src/test.vue.d.ts +23 -0
- package/lib/tiny-editor/index.d.ts +64 -0
- package/lib/tiny-editor/src/config.d.ts +19 -0
- package/lib/tiny-editor/src/props.d.ts +31 -0
- package/lib/tiny-editor/src/tiny-editor.vue.d.ts +63 -0
- package/lib/video-input/index.d.ts +55 -0
- package/lib/video-input/src/props.d.ts +24 -0
- package/lib/video-input/src/video-input.vue.d.ts +54 -0
- package/lib/video-list-input/index.d.ts +55 -0
- package/lib/video-list-input/src/props.d.ts +24 -0
- package/lib/video-list-input/src/video-list-input.vue.d.ts +54 -0
- package/package.json +2 -2
@@ -96,12 +96,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
96
96
|
}
|
97
97
|
};
|
98
98
|
vue.watch(position, () => {
|
99
|
-
form.x = parseInt(
|
100
|
-
|
101
|
-
);
|
102
|
-
form.y = parseInt(
|
103
|
-
String((position.top - props.boxSize / 2) / props.boxSize * props.max)
|
104
|
-
);
|
99
|
+
form.x = parseInt(String((position.left - props.boxSize / 2) / props.boxSize * props.max));
|
100
|
+
form.y = parseInt(String((position.top - props.boxSize / 2) / props.boxSize * props.max));
|
105
101
|
});
|
106
102
|
vue.watch(form, () => {
|
107
103
|
let value = `${form.x}${form.x_unit} ${form.y}${form.y_unit} ${form.vague}${form.vague_unit} ${form.extend}${form.extend_unit} ${form.color}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"style-shadow-content.vue2.js","sources":["../../../../../../src/style-shadow-input/src/style-shadow-content.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowContent',\n});\n</script>\n<template>\n <div\n ref=\"el\"\n class=\"dk-style-shadow-content\"\n :style=\"{ '--shadow-box-width': boxSize + 'px' }\"\n >\n <el-form\n label-width=\"60px\"\n label-position=\"left\"\n class=\"shadow-form-content\"\n :size=\"size\"\n >\n <el-form-item label=\"模式\">\n <el-radio-group v-model=\"form.type\">\n <el-radio-button label=\"external\">外部</el-radio-button>\n <el-radio-button label=\"inset\">内部</el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <dk-color-input v-model=\"form.color\" show-alpha></dk-color-input>\n </el-form-item>\n <el-form-item label=\"x轴\">\n <el-input v-model=\"form.x\" type=\"number\">\n <template #append>\n <el-select\n v-model=\"form.x_unit\"\n placeholder=\"请选择\"\n class=\"w-40px\"\n suffix-icon=\"\"\n >\n <el-option\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"y轴\">\n <el-input v-model=\"form.y\" type=\"number\">\n <template #append>\n <el-select\n v-model=\"form.y_unit\"\n placeholder=\"请选择\"\n class=\"w-40px\"\n suffix-icon=\"\"\n >\n <el-option\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"模糊\">\n <el-input v-model=\"form.vague\" type=\"number\">\n <template #append>\n <el-select\n v-model=\"form.vague_unit\"\n placeholder=\"请选择\"\n class=\"w-40px\"\n suffix-icon=\"\"\n >\n <el-option\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"扩展\">\n <el-input v-model=\"form.extend\" type=\"number\">\n <template #append>\n <el-select\n v-model=\"form.extend_unit\"\n placeholder=\"请选择\"\n class=\"w-40px\"\n suffix-icon=\"\"\n >\n <el-option\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n </el-form>\n <div class=\"shadow-content-shortcut\">\n <div class=\"default-css m-b-10px\">\n <div class=\"m-b-10px\">常用样式</div>\n <el-button\n v-for=\"(item, key) in props.defaultStyles\"\n :key=\"key\"\n size=\"small\"\n @click=\"setStyle(item)\"\n >{{ item.label }}</el-button\n >\n </div>\n <div\n ref=\"box\"\n class=\"shadow-content-box\"\n :class=\"down ? 'down' : ''\"\n :style=\"{ height: boxSize + 'px', width: boxSize + 'px' }\"\n @click=\"getMouseXY($event, 1)\"\n @mousedown=\"onMousedown\"\n @mouseup=\"down = false\"\n @mousemove=\"getMouseXY($event, 0)\"\n >\n <span id=\"spot\" :style=\"spotStyle\">\n <i id=\"center\" />\n </span>\n <span\n id=\"center-spot\"\n :style=\"{ top: boxSize / 2 + 'px', left: boxSize / 2 + 'px' }\"\n />\n <div class=\"x-hr\" :style=\"{ top: boxSize / 2 + 'px' }\" />\n <div class=\"y-hr\" :style=\"{ left: boxSize / 2 + 'px' }\" />\n <div class=\"line\" :style=\"lineStyle\" />\n </div>\n </div>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { useElementSize } from '@vueuse/core'\nconst el = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\n// interface StyleOption {\n// label: string\n// value: string\n// }\nconst props = defineProps({\n boxSize: {\n default: 180,\n type: Number,\n },\n size: {\n default: 'small',\n type: String,\n },\n max: {\n default: 24,\n type: Number,\n },\n modelValue: {\n default: '0px 0px 0px rgba(0, 0, 0, 0)',\n type: String,\n },\n defaultStyles: {\n default: () => {\n return [\n { label: '经典', value: '3px 5px 7px 2px #CBCBCBFF' },\n { label: '扁平', value: '4px 4px 3px -2px #E7E5E5FF' },\n { label: '立体', value: '1px 2px 4px 2px #979797FF' },\n ]\n },\n type: Array as () => any,\n },\n})\nconst form = reactive({\n color: '',\n type: 'external',\n x: 0,\n y: 0,\n vague: 0,\n extend: 0,\n x_unit: 'px',\n y_unit: 'px',\n vague_unit: 'px',\n extend_unit: 'px',\n})\n\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst down = ref(false)\nconst position: any = reactive({\n left: 0,\n top: 0,\n})\n\nconst lineStyle = ref('')\nconst box = ref()\nconst spotStyle = computed(() => {\n return {\n left: position.left + 'px',\n top: position.top + 'px',\n }\n})\n\nconst getMouseXY = (e: any, force: any) => {\n if (down.value || force) {\n const _box = box.value.getBoundingClientRect()\n position.left = parseInt(String(e.clientX - _box.x))\n position.top = parseInt(String(e.clientY - _box.y))\n }\n}\n\nwatch(position, () => {\n form.x = parseInt(\n String(((position.left - props.boxSize / 2) / props.boxSize) * props.max)\n )\n form.y = parseInt(\n String(((position.top - props.boxSize / 2) / props.boxSize) * props.max)\n )\n})\nconst emit = defineEmits(['update:modelValue'])\nwatch(form, () => {\n let value = `${form.x}${form.x_unit} ${form.y}${form.y_unit} ${form.vague}${form.vague_unit} ${form.extend}${form.extend_unit} ${form.color}`\n if (form.type === 'inset') {\n value = value + ' inset'\n }\n emit('update:modelValue', value)\n})\nconst onMousedown = (e: any) => {\n getMouseXY(e, 1)\n down.value = true\n}\n\nconst initStyle = (modelValue: any) => {\n if (modelValue?.indexOf(' inset') > -1) {\n form.type = 'inset'\n modelValue = modelValue.replace(' inset', '')\n }\n const shadowData = modelValue.split('rgba')\n let color, shadowValues: any\n\n if (shadowData.length > 1) {\n // 将颜色值和其他阴影值进行分离\n color = 'rgba' + shadowData[1].trim()\n shadowValues = shadowData[0].trim().split(' ')\n } else {\n shadowValues = shadowData[0].trim().split(' ')\n color = shadowValues.pop()\n }\n form.color = color || '#000'\n form.x = parseInt(shadowValues[0]) || 0\n form.y = parseInt(shadowValues[1]) || 0\n form.vague = parseInt(shadowValues[2]) || 0\n form.extend = parseInt(shadowValues[3]) || 0\n\n const getUnit = (value: any) => {\n let unit = value?.replace(/[-\\d.]/g, '') || 'px'\n if (units.indexOf(unit) === -1) {\n unit = 'px'\n }\n return unit\n }\n form.x_unit = getUnit(shadowValues[0])\n form.y_unit = getUnit(shadowValues[1])\n form.vague_unit = getUnit(shadowValues[2])\n form.extend_unit = getUnit(shadowValues[3])\n position.left = props.boxSize / 2 + (form.x / props.max) * props.boxSize || 0\n position.top = props.boxSize / 2 + (form.y / props.max) * props.boxSize || 0\n}\n\nconst setStyle = (item: any) => {\n const style = item.value\n initStyle(style)\n}\n\nonMounted(() => {\n // let modelValue = props.modelValue\n initStyle(props.modelValue)\n})\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","reactive","computed","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,sBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0ID,IAAM,MAAA,EAAA,GAAKC,QAAI,IAAI,CAAA,CAAA;AACnB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAmCnC,IAAA,MAAM,OAAOC,YAAS,CAAA;AAAA,MACpB,KAAO,EAAA,EAAA;AAAA,MACP,IAAM,EAAA,UAAA;AAAA,MACN,CAAG,EAAA,CAAA;AAAA,MACH,CAAG,EAAA,CAAA;AAAA,MACH,KAAO,EAAA,CAAA;AAAA,MACP,MAAQ,EAAA,CAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,UAAY,EAAA,IAAA;AAAA,MACZ,WAAa,EAAA,IAAA;AAAA,KACd,CAAA,CAAA;AAED,IAAA,MAAM,QAAQ,CAAC,IAAA,EAAM,KAAK,KAAO,EAAA,IAAA,EAAM,MAAM,IAAI,CAAA,CAAA;AACjD,IAAM,MAAA,IAAA,GAAOF,QAAI,KAAK,CAAA,CAAA;AACtB,IAAA,MAAM,WAAgBE,YAAS,CAAA;AAAA,MAC7B,IAAM,EAAA,CAAA;AAAA,MACN,GAAK,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAYF,QAAI,EAAE,CAAA,CAAA;AACxB,IAAA,MA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AA;AAC1C,MAAS,QAAA,CAAA,IAAA,GAAO,MAAM,OAAU,GAAA,CAAA,GAAK,KAAK,CAAI,GAAA,KAAA,CAAM,GAAO,GAAA,KAAA,CAAM,OAAW,IAAA,CAAA,CAAA;AAC5E,MAAS,QAAA,CAAA,GAAA,GAAM,MAAM,OAAU,GAAA,CAAA,GAAK,KAAK,CAAI,GAAA,KAAA,CAAM,GAAO,GAAA,KAAA,CAAM,OAAW,IAAA,CAAA,CAAA;AAAA,KAC7E,CAAA;AAEA,IAAM,MAAA,QAAA,GAAW,CAAC,IAAc,KAAA;AAC9B,MAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAA;AACnB,MAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AAAA,KACjB,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AAEd,MAAA,SAAA,CAAU,MAAM,UAAU,CAAA,CAAA;AAAA,KAC3B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"style-shadow-content.vue2.js","sources":["../../../../../../src/style-shadow-input/src/style-shadow-content.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowContent',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-style-shadow-content\" :style=\"{ '--shadow-box-width': boxSize + 'px' }\">\n <el-form label-width=\"60px\" label-position=\"left\" class=\"shadow-form-content\" :size=\"size\">\n <el-form-item label=\"模式\">\n <el-radio-group v-model=\"form.type\">\n <el-radio-button label=\"external\">外部</el-radio-button>\n <el-radio-button label=\"inset\">内部</el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <dk-color-input v-model=\"form.color\" show-alpha></dk-color-input>\n </el-form-item>\n <el-form-item label=\"x轴\">\n <el-input v-model=\"form.x\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.x_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"y轴\">\n <el-input v-model=\"form.y\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.y_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"模糊\">\n <el-input v-model=\"form.vague\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.vague_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"扩展\">\n <el-input v-model=\"form.extend\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.extend_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n </el-form>\n <div class=\"shadow-content-shortcut\">\n <div class=\"default-css m-b-10px\">\n <div class=\"m-b-10px\">常用样式</div>\n <el-button v-for=\"(item, key) in props.defaultStyles\" :key=\"key\" size=\"small\" @click=\"setStyle(item)\">{{\n item.label\n }}</el-button>\n </div>\n <div\n ref=\"box\"\n class=\"shadow-content-box\"\n :class=\"down ? 'down' : ''\"\n :style=\"{ height: boxSize + 'px', width: boxSize + 'px' }\"\n @click=\"getMouseXY($event, 1)\"\n @mousedown=\"onMousedown\"\n @mouseup=\"down = false\"\n @mousemove=\"getMouseXY($event, 0)\"\n >\n <span id=\"spot\" :style=\"spotStyle\">\n <i id=\"center\" />\n </span>\n <span id=\"center-spot\" :style=\"{ top: boxSize / 2 + 'px', left: boxSize / 2 + 'px' }\" />\n <div class=\"x-hr\" :style=\"{ top: boxSize / 2 + 'px' }\" />\n <div class=\"y-hr\" :style=\"{ left: boxSize / 2 + 'px' }\" />\n <div class=\"line\" :style=\"lineStyle\" />\n </div>\n </div>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\n// interface StyleOption {\n// label: string\n// value: string\n// }\nconst props = defineProps({\n boxSize: {\n default: 180,\n type: Number,\n },\n size: {\n default: 'small',\n type: String,\n },\n max: {\n default: 24,\n type: Number,\n },\n modelValue: {\n default: '0px 0px 0px rgba(0, 0, 0, 0)',\n type: String,\n },\n defaultStyles: {\n default: () => {\n return [\n { label: '经典', value: '3px 5px 7px 2px #CBCBCBFF' },\n { label: '扁平', value: '4px 4px 3px -2px #E7E5E5FF' },\n { label: '立体', value: '1px 2px 4px 2px #979797FF' },\n ]\n },\n type: Array as () => any,\n },\n})\nconst form = reactive({\n color: '',\n type: 'external',\n x: 0,\n y: 0,\n vague: 0,\n extend: 0,\n x_unit: 'px',\n y_unit: 'px',\n vague_unit: 'px',\n extend_unit: 'px',\n})\n\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst down = ref(false)\nconst position: any = reactive({\n left: 0,\n top: 0,\n})\n\nconst lineStyle = ref('')\nconst box = ref()\nconst spotStyle = computed(() => {\n return {\n left: position.left + 'px',\n top: position.top + 'px',\n }\n})\n\nconst getMouseXY = (e: any, force: any) => {\n if (down.value || force) {\n const _box = box.value.getBoundingClientRect()\n position.left = parseInt(String(e.clientX - _box.x))\n position.top = parseInt(String(e.clientY - _box.y))\n }\n}\n\nwatch(position, () => {\n form.x = parseInt(String(((position.left - props.boxSize / 2) / props.boxSize) * props.max))\n form.y = parseInt(String(((position.top - props.boxSize / 2) / props.boxSize) * props.max))\n})\nconst emit = defineEmits(['update:modelValue'])\nwatch(form, () => {\n let value = `${form.x}${form.x_unit} ${form.y}${form.y_unit} ${form.vague}${form.vague_unit} ${form.extend}${form.extend_unit} ${form.color}`\n if (form.type === 'inset') {\n value = value + ' inset'\n }\n emit('update:modelValue', value)\n})\nconst onMousedown = (e: any) => {\n getMouseXY(e, 1)\n down.value = true\n}\n\nconst initStyle = (modelValue: any) => {\n if (modelValue?.indexOf(' inset') > -1) {\n form.type = 'inset'\n modelValue = modelValue.replace(' inset', '')\n }\n const shadowData = modelValue.split('rgba')\n let color, shadowValues: any\n\n if (shadowData.length > 1) {\n // 将颜色值和其他阴影值进行分离\n color = 'rgba' + shadowData[1].trim()\n shadowValues = shadowData[0].trim().split(' ')\n } else {\n shadowValues = shadowData[0].trim().split(' ')\n color = shadowValues.pop()\n }\n form.color = color || '#000'\n form.x = parseInt(shadowValues[0]) || 0\n form.y = parseInt(shadowValues[1]) || 0\n form.vague = parseInt(shadowValues[2]) || 0\n form.extend = parseInt(shadowValues[3]) || 0\n\n const getUnit = (value: any) => {\n let unit = value?.replace(/[-\\d.]/g, '') || 'px'\n if (units.indexOf(unit) === -1) {\n unit = 'px'\n }\n return unit\n }\n form.x_unit = getUnit(shadowValues[0])\n form.y_unit = getUnit(shadowValues[1])\n form.vague_unit = getUnit(shadowValues[2])\n form.extend_unit = getUnit(shadowValues[3])\n position.left = props.boxSize / 2 + (form.x / props.max) * props.boxSize || 0\n position.top = props.boxSize / 2 + (form.y / props.max) * props.boxSize || 0\n}\n\nconst setStyle = (item: any) => {\n const style = item.value\n initStyle(style)\n}\n\nonMounted(() => {\n // let modelValue = props.modelValue\n initStyle(props.modelValue)\n})\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","reactive","computed","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,sBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAmCnC,IAAA,MAAM,OAAOC,YAAS,CAAA;AAAA,MACpB,KAAO,EAAA,EAAA;AAAA,MACP,IAAM,EAAA,UAAA;AAAA,MACN,CAAG,EAAA,CAAA;AAAA,MACH,CAAG,EAAA,CAAA;AAAA,MACH,KAAO,EAAA,CAAA;AAAA,MACP,MAAQ,EAAA,CAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,UAAY,EAAA,IAAA;AAAA,MACZ,WAAa,EAAA,IAAA;AAAA,KACd,CAAA,CAAA;AAED,IAAA,MAAM,QAAQ,CAAC,IAAA,EAAM,KAAK,KAAO,EAAA,IAAA,EAAM,MAAM,IAAI,CAAA,CAAA;AACjD,IAAM,MAAA,IAAA,GAAOF,QAAI,KAAK,CAAA,CAAA;AACtB,IAAA,MAAM,WAAgBE,YAAS,CAAA;AAAA,MAC7B,IAAM,EAAA,CAAA;AAAA,MACN,GAAK,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAYF,QAAI,EAAE,CAAA,CAAA;AACxB,IAAA,MAAM,MAAMA,OAAI,EAAA,CAAA;AAChB,I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AAA,GAAO,MAAM,OAAU,GAAA,CAAA,GAAK,KAAK,CAAI,GAAA,KAAA,CAAM,GAAO,GAAA,KAAA,CAAM,OAAW,IAAA,CAAA,CAAA;AAC5E,MAAS,QAAA,CAAA,GAAA,GAAM,MAAM,OAAU,GAAA,CAAA,GAAK,KAAK,CAAI,GAAA,KAAA,CAAM,GAAO,GAAA,KAAA,CAAM,OAAW,IAAA,CAAA,CAAA;AAAA,KAC7E,CAAA;AAEA,IAAM,MAAA,QAAA,GAAW,CAAC,IAAc,KAAA;AAC9B,MAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAA;AACnB,MAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AAAA,KACjB,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AAEd,MAAA,SAAA,CAAU,MAAM,UAAU,CAAA,CAAA;AAAA,KAC3B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RecycleDialog.vue2.js","sources":["../../../../../../../src/table/src/components/RecycleDialog.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'RecycleDialog',\n});\n</script>\n<template>\n <dk-dialog v-model=\"DkTable.recycleTable.showDialog\" title=\"回收站\" width=\"1000px\" class=\"dk-table\">\n <div class=\"dk-table-header\">\n <el-button class=\"table-header-operate\" type=\"info\" @click=\"DkTable.onTableHeaderAction('refreshRecycle')\">\n <dk-icon icon=\"Refresh\"></dk-icon>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"primary\" :disabled=\"!enableBatchOpt\" @click=\"restoreSelect()\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原</span>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"danger\" :disabled=\"!enableBatchOpt\" @click=\"destroySelect()\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">销毁</span>\n </el-button>\n <el-popconfirm\n confirm-button-text=\"还原\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要还原全部?\"\n @confirm=\"restore(null)\"\n >\n <template #reference>\n <div class=\"m-l-6px\">\n <el-button class=\"table-header-operate\" type=\"success\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <el-popconfirm\n confirm-button-text=\"清空\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要清空全部?\"\n @confirm=\"destroy(null)\"\n >\n <template #reference>\n <div class=\"m-l-5px\">\n <el-button class=\"table-header-operate\" type=\"danger\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">清空全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <div class=\"table-search\">\n <el-input\n v-model=\"DkTable.recycleTable.filter!.quickSearch\"\n placeholder=\"请输入\"\n prefix-icon=\"Search\"\n @input=\"debounce(onSearchInput, 500)()\"\n />\n </div>\n </div>\n <!--表格s-->\n <el-table\n v-loading=\"DkTable.recycleTable.loading\"\n :data=\"DkTable.recycleTable.data\"\n class=\"dk-data-table\"\n @selection-change=\"onSelectionChange\"\n >\n <!-- <template v-for=\"(item, key) in DkTable.recycleTable.column\">-->\n <el-table-column\n v-for=\"(item, key) in DkTable.recycleTable.column\"\n v-bind=\"{ ...item }\"\n :key=\"key\"\n ></el-table-column>\n <!-- </template>-->\n <el-table-column label=\"操作\" width=\"100\">\n <template #default=\"{ row }\">\n <el-button icon=\"RefreshLeft\" type=\"primary\" size=\"small\" @click=\"restore([row.id])\"> 还原 </el-button>\n <el-button icon=\"CloseBold\" type=\"danger\" size=\"small\" @click=\"destroy([row.id])\"> 销毁 </el-button>\n </template>\n </el-table-column>\n </el-table>\n <!--表格e-->\n </dk-dialog>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject } from 'vue'\nimport dkTable from '../../utils/dkTable'\nimport { debounce } from '@vipl520/utils'\n\n\nconst DkTable = inject('DkTable') as dkTable\n\nconst onSearchInput = () => {\n DkTable.onTableHeaderAction('quick-recycle-search', {\n keyword: DkTable.recycleTable.filter!.quickSearch,\n })\n}\n\n/*\n * 记录选择的项\n */\nconst onSelectionChange = (selection: TableRow[]) => {\n DkTable.onTableAction('selection-recycle-change', selection)\n}\n\n/**\n * 销毁\n */\nconst destroy = (ids) => {\n DkTable.api.destroy(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\n/**\n * 还原\n */\nconst restore = (ids) => {\n DkTable.api.restore(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\nconst getSelectionIds = () => {\n const ids: string[] = []\n DkTable.recycleTable.selection?.forEach((item) => {\n ids.push(item[DkTable.recycleTable.pk!])\n })\n return ids\n}\n\nconst restoreSelect = () => {\n restore(getSelectionIds())\n}\n\nconst destroySelect = () => {\n destroy(getSelectionIds())\n}\n\nconst enableBatchOpt = computed(() => DkTable.recycleTable.selection!.length > 0)\n</script>\n<style scoped></style>\n"],"names":["__MACROS_defineComponent","inject","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,eAAA;AACR,CAAC,CAAA,CAAA;;;;AAuFD,IAAM,MAAA,OAAA,GAAUC,WAAO,SAAS,CAAA,CAAA;AAEhC,IAAA,MAAM,gBAAgB,MAAM;AAC1B,MAAA,OAAA,CAAQ,oBAAoB,sBAAwB,EAAA;AAAA,QAClD,OAAA,EAAS,OAAQ,CAAA,YAAA,CAAa,MAAQ,CAAA,WAAA;AAAA,OACvC,CAAA,CAAA;AAAA,KACH,CAAA;AAKA,IAAM,MAAA,iBAAA,GAAoB,CAAC,SAA0B,KAAA;AACnD,MAAQ,OAAA,CAAA,aAAA,CAAc,4BAA4B,SAAS,CAAA,CAAA;AAAA,KAC7D,CAAA;AAKA,IAAM,MAAA,OAAA,GAAU,CAAC,
|
1
|
+
{"version":3,"file":"RecycleDialog.vue2.js","sources":["../../../../../../../src/table/src/components/RecycleDialog.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'RecycleDialog',\n});\n</script>\n<template>\n <dk-dialog v-model=\"DkTable.recycleTable.showDialog\" title=\"回收站\" width=\"1000px\" class=\"dk-table\">\n <div class=\"dk-table-header\">\n <el-button class=\"table-header-operate\" type=\"info\" @click=\"DkTable.onTableHeaderAction('refreshRecycle')\">\n <dk-icon icon=\"Refresh\"></dk-icon>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"primary\" :disabled=\"!enableBatchOpt\" @click=\"restoreSelect()\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原</span>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"danger\" :disabled=\"!enableBatchOpt\" @click=\"destroySelect()\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">销毁</span>\n </el-button>\n <el-popconfirm\n confirm-button-text=\"还原\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要还原全部?\"\n @confirm=\"restore(null)\"\n >\n <template #reference>\n <div class=\"m-l-6px\">\n <el-button class=\"table-header-operate\" type=\"success\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <el-popconfirm\n confirm-button-text=\"清空\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要清空全部?\"\n @confirm=\"destroy(null)\"\n >\n <template #reference>\n <div class=\"m-l-5px\">\n <el-button class=\"table-header-operate\" type=\"danger\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">清空全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <div class=\"table-search\">\n <el-input\n v-model=\"DkTable.recycleTable.filter!.quickSearch\"\n placeholder=\"请输入\"\n prefix-icon=\"Search\"\n @input=\"debounce(onSearchInput, 500)()\"\n />\n </div>\n </div>\n <!--表格s-->\n <el-table\n v-loading=\"DkTable.recycleTable.loading\"\n :data=\"DkTable.recycleTable.data\"\n class=\"dk-data-table\"\n @selection-change=\"onSelectionChange\"\n >\n <!-- <template v-for=\"(item, key) in DkTable.recycleTable.column\">-->\n <el-table-column\n v-for=\"(item, key) in DkTable.recycleTable.column\"\n v-bind=\"{ ...item }\"\n :key=\"key\"\n ></el-table-column>\n <!-- </template>-->\n <el-table-column label=\"操作\" width=\"100\">\n <template #default=\"{ row }\">\n <el-button icon=\"RefreshLeft\" type=\"primary\" size=\"small\" @click=\"restore([row.id])\"> 还原 </el-button>\n <el-button icon=\"CloseBold\" type=\"danger\" size=\"small\" @click=\"destroy([row.id])\"> 销毁 </el-button>\n </template>\n </el-table-column>\n </el-table>\n <!--表格e-->\n </dk-dialog>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject } from 'vue'\nimport dkTable from '../../utils/dkTable'\nimport { debounce } from '@vipl520/utils'\n\n\nconst DkTable = inject('DkTable') as dkTable\n\nconst onSearchInput = () => {\n DkTable.onTableHeaderAction('quick-recycle-search', {\n keyword: DkTable.recycleTable.filter!.quickSearch,\n })\n}\n\n/*\n * 记录选择的项\n */\nconst onSelectionChange = (selection: TableRow[]) => {\n DkTable.onTableAction('selection-recycle-change', selection)\n}\n\n/**\n * 销毁\n */\nconst destroy = (ids: any) => {\n DkTable.api.destroy(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\n/**\n * 还原\n */\nconst restore = (ids: any) => {\n DkTable.api.restore(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\nconst getSelectionIds = () => {\n const ids: string[] = []\n DkTable.recycleTable.selection?.forEach((item) => {\n ids.push(item[DkTable.recycleTable.pk!])\n })\n return ids\n}\n\nconst restoreSelect = () => {\n restore(getSelectionIds())\n}\n\nconst destroySelect = () => {\n destroy(getSelectionIds())\n}\n\nconst enableBatchOpt = computed(() => DkTable.recycleTable.selection!.length > 0)\n</script>\n<style scoped></style>\n"],"names":["__MACROS_defineComponent","inject","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,eAAA;AACR,CAAC,CAAA,CAAA;;;;AAuFD,IAAM,MAAA,OAAA,GAAUC,WAAO,SAAS,CAAA,CAAA;AAEhC,IAAA,MAAM,gBAAgB,MAAM;AAC1B,MAAA,OAAA,CAAQ,oBAAoB,sBAAwB,EAAA;AAAA,QAClD,OAAA,EAAS,OAAQ,CAAA,YAAA,CAAa,MAAQ,CAAA,WAAA;AAAA,OACvC,CAAA,CAAA;AAAA,KACH,CAAA;AAKA,IAAM,MAAA,iBAAA,GAAoB,CAAC,SAA0B,KAAA;AACnD,MAAQ,OAAA,CAAA,aAAA,CAAc,4BAA4B,SAAS,CAAA,CAAA;AAAA,KAC7D,CAAA;AAKA,IAAM,MAAA,OAAA,GAAU,CAAC,GAAa,KAAA;AAC5B,MAAA,O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;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -40,9 +40,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
40
40
|
content_css: props.document ? "document" : "",
|
41
41
|
images_upload_handler: handleImageUpload
|
42
42
|
});
|
43
|
-
const tinymceSrc = vue.ref(
|
44
|
-
"https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js"
|
45
|
-
);
|
43
|
+
const tinymceSrc = vue.ref("https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js");
|
46
44
|
const attachmentRef = vue.ref();
|
47
45
|
const editorRef = vue.ref();
|
48
46
|
vue.watch(
|
@@ -108,7 +106,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
108
106
|
class: "dk-tiny-editor"
|
109
107
|
},
|
110
108
|
[
|
111
|
-
vue.unref(width) >= props.showDialogWidth ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
109
|
+
vue.unref(width).value >= props.showDialogWidth ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
112
110
|
vue.createVNode(vue.unref(Editor), {
|
113
111
|
ref_key: "editorRef",
|
114
112
|
ref: editorRef,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tiny-editor.vue2.js","sources":["../../../../../../src/tiny-editor/src/tiny-editor.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTinyEditor',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-tiny-editor\">\n <div v-if=\"width >= props.showDialogWidth\">\n <Editor
|
1
|
+
{"version":3,"file":"tiny-editor.vue2.js","sources":["../../../../../../src/tiny-editor/src/tiny-editor.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTinyEditor',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-tiny-editor\">\n <div v-if=\"width.value >= props.showDialogWidth\">\n <Editor ref=\"editorRef\" v-model=\"content\" :init=\"init\" :tinymce-script-src=\"tinymceSrc\" @dblclick=\"ondblclick\" />\n </div>\n <div v-else>\n <el-button type=\"primary\" plain style=\"width: 100%\" @click=\"showEditor = true\">{{ props.buttonText }}</el-button>\n <dk-dialog v-model=\"showEditor\" title=\"编辑\" width=\"900px\">\n <Editor\n ref=\"editorRef\"\n v-model=\"content\"\n :init=\"init\"\n :tinymce-script-src=\"tinymceSrc\"\n @dblclick=\"ondblclick\"\n />\n <template #footer>\n <div class=\"text-center\">\n <el-button type=\"primary\" style=\"width: 200px\" @click=\"showEditor = false\">确定</el-button>\n </div>\n </template>\n </dk-dialog>\n </div>\n <dk-attachment-dialog ref=\"attachmentRef\" :type=\"1\" @confirm=\"onSubmit\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport config from './config'\nimport Editor from '@tinymce/tinymce-vue'\nimport { nextTick, onMounted, ref, watch } from 'vue'\nimport { UploadAttachment } from '../../api'\nimport { tinyEditorProps } from './props'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\nconst props = defineProps(tinyEditorProps)\nconst content = ref(props.modelValue)\nconst showEditor = ref(false)\n// 上传的地址\nconst handleImageUpload = (blobInfo: any, progress: any) =>\n new Promise((resolve, reject) => {\n UploadAttachment(blobInfo.blob())\n .then((res) => {\n progress(100)\n resolve(res.data.url)\n })\n .catch((err) => {\n reject(err)\n })\n })\n\nconst init = ref({\n ...config,\n height: props.height,\n content_css: props.document ? 'document' : '',\n images_upload_handler: handleImageUpload,\n})\n\nconst tinymceSrc = ref('https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js')\nconst attachmentRef = ref()\nconst editorRef = ref()\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\n\nwatch(\n () => props.modelValue,\n (newValue) => {\n content.value = newValue\n }\n)\n\nwatch(\n () => content.value,\n (newValue) => {\n emit('update:modelValue', newValue)\n emit('input', newValue)\n emit('change', newValue)\n }\n)\n\nonMounted(() => {\n nextTick(() => {\n initShowImage()\n })\n})\n\nwatch(\n () => editorRef.value,\n () => {\n if (editorRef.value?.getEditor()) {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n }\n)\n\nconst initShowImage = () => {\n if (!editorRef.value?.getEditor()) {\n setTimeout(() => {\n initShowImage()\n }, 1000)\n } else {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n}\n\nconst onSubmit = (chooseFileList: any) => {\n const editor = editorRef.value.getEditor()\n let html = ''\n chooseFileList.forEach((item: any) => {\n html += '<img src=\"' + item.url + '\" alt=\"\" width=\"100%\">'\n })\n editor.insertContent(html)\n}\n\nconst ondblclick = (editor: any) => {\n console.log(editor)\n}\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","UploadAttachment","config","watch","onMounted","nextTick"],"mappings":";;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAmCD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAInC,IAAM,MAAA,OAAA,GAAUD,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACpC,IAAM,MAAA,UAAA,GAAaA,QAAI,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,iBAAA,GAAoB,CAAC,QAAe,EAAA,QAAA,KACxC,IAAI,OAAQ,CAAA,CAAC,SAAS,MAAW,KAAA;AAC/B,MAAAE,2BAAA,CAAiB,SAAS,IAAK,EAAC,CAC7B,CAAA,IAAA,CAAK,CAAC,GAAQ,KAAA;AACb,QAAA,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;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,246 @@
|
|
1
|
+
export declare const PageDiy: import("@vipl520/utils").WithInstall<import("vue").DefineComponent<Readonly<{
|
2
|
+
config?: any;
|
3
|
+
loading?: any;
|
4
|
+
menu?: any;
|
5
|
+
mask?: any;
|
6
|
+
height?: any;
|
7
|
+
locale?: any;
|
8
|
+
}>, {
|
9
|
+
countObj: import("vue").ComputedRef<{}>;
|
10
|
+
diyTree: import("vue").ComputedRef<any[]>;
|
11
|
+
clear(type?: string): void;
|
12
|
+
get(): {
|
13
|
+
rule: any;
|
14
|
+
config: {};
|
15
|
+
};
|
16
|
+
set(value: any): void;
|
17
|
+
unWatchActiveRule(): void;
|
18
|
+
watchActiveRule(): void;
|
19
|
+
makeChildren(children: any): any;
|
20
|
+
addMenu(config: any): void;
|
21
|
+
removeMenu(name: any): void;
|
22
|
+
setMenuItem(name: any, list: any): void;
|
23
|
+
appendMenuItem(name: any, item: any): void;
|
24
|
+
removeMenuItem(item: any): void;
|
25
|
+
addComponent(component: any): void;
|
26
|
+
getParent(rule: any): {
|
27
|
+
root: any;
|
28
|
+
parent: any;
|
29
|
+
};
|
30
|
+
makeDrag(group: any, tag: any, children: any, on: any): {
|
31
|
+
type: string;
|
32
|
+
wrap: {
|
33
|
+
show: boolean;
|
34
|
+
};
|
35
|
+
col: {
|
36
|
+
show: boolean;
|
37
|
+
};
|
38
|
+
inject: boolean;
|
39
|
+
props: {
|
40
|
+
rule: {
|
41
|
+
props: {
|
42
|
+
tag: string;
|
43
|
+
group: any;
|
44
|
+
ghostClass: string;
|
45
|
+
animation: number;
|
46
|
+
emptyInsertThreshold: number;
|
47
|
+
direction: string;
|
48
|
+
itemKey: string;
|
49
|
+
};
|
50
|
+
};
|
51
|
+
tag: any;
|
52
|
+
};
|
53
|
+
children: any;
|
54
|
+
on: any;
|
55
|
+
};
|
56
|
+
makeDragRule(children: any): any;
|
57
|
+
previewFc(): void;
|
58
|
+
getPageConfig(): {};
|
59
|
+
setPageConfig(pageConfig: any): void;
|
60
|
+
getRule(): any;
|
61
|
+
getJson(): string;
|
62
|
+
setRule(rules: any): void;
|
63
|
+
clearActiveRule(): void;
|
64
|
+
loadRule(rules: any): any[];
|
65
|
+
parseRule(children: any, isTree?: boolean): any;
|
66
|
+
baseChange(field: any, value: any, _: any, fapi: any): void;
|
67
|
+
dkSettingChange(field: any, value: any, _: any, fapi: any, flag: any): void;
|
68
|
+
propRemoveField(field: any, _: any, fapi: any): void;
|
69
|
+
propChange(field: any, value: any, _: any, fapi: any): void;
|
70
|
+
dkPageChange(field: any, value: any, _: any, fapi: any, flag: any): void;
|
71
|
+
nodeClick(row: any): void;
|
72
|
+
delRule(id: any, children?: null): void;
|
73
|
+
chooseRule(id: any, children?: null): void;
|
74
|
+
toolActive(rule: any): void;
|
75
|
+
updateShowStyle(rule: any): void;
|
76
|
+
updateRuleFormData(): void;
|
77
|
+
dragStart(children: any): void;
|
78
|
+
dragUnchoose(children: any, evt: any): void;
|
79
|
+
dragAdd(children: any, evt: any): false | undefined;
|
80
|
+
dragEnd(children: any, { newIndex, oldIndex }: {
|
81
|
+
newIndex: any;
|
82
|
+
oldIndex: any;
|
83
|
+
}): void;
|
84
|
+
makeRule(config: any, _rule: any): any;
|
85
|
+
onResizerMouseDown(name: any, e: any): void;
|
86
|
+
onResizerMouseUp(): void;
|
87
|
+
onResizerMouseMove(e: any): void;
|
88
|
+
hideAside(name: any): void;
|
89
|
+
allowDrop(draggingNode: any, dropNode: any, type: any): boolean;
|
90
|
+
allowDrag(draggingNode: any): true | undefined;
|
91
|
+
nodeDrop(node: any, dropNode: any, type: any, event: any): void;
|
92
|
+
cacheProps: import("vue").Ref<{}>;
|
93
|
+
moveRule: import("vue").Ref<null>;
|
94
|
+
addRule: import("vue").Ref<null>;
|
95
|
+
added: import("vue").Ref<null>;
|
96
|
+
activeTab: import("vue").Ref<string>;
|
97
|
+
activeRule: import("vue").Ref<null>;
|
98
|
+
children: import("vue").Ref<never[]>;
|
99
|
+
menuList: import("vue").Ref<any>;
|
100
|
+
showBaseRule: import("vue").Ref<boolean>;
|
101
|
+
showDkSettingRule: import("vue").Ref<boolean>;
|
102
|
+
visible: import("vue").Ref<{
|
103
|
+
preview: boolean;
|
104
|
+
}>;
|
105
|
+
preview: import("vue").Ref<{
|
106
|
+
state: boolean;
|
107
|
+
rule: never[];
|
108
|
+
option: {};
|
109
|
+
}>;
|
110
|
+
diyCloud: import("vue").Ref<{
|
111
|
+
pageName: string;
|
112
|
+
show: boolean;
|
113
|
+
}>;
|
114
|
+
dragForm: import("vue").Ref<{
|
115
|
+
rule: never[];
|
116
|
+
api: {};
|
117
|
+
option: {
|
118
|
+
form: {};
|
119
|
+
submitBtn: boolean;
|
120
|
+
};
|
121
|
+
}>;
|
122
|
+
dkSettingForm: import("vue").Ref<{
|
123
|
+
rule: {
|
124
|
+
type: string;
|
125
|
+
props: {
|
126
|
+
modelValue: string;
|
127
|
+
};
|
128
|
+
style: string;
|
129
|
+
children: {
|
130
|
+
type: string;
|
131
|
+
props: {
|
132
|
+
name: string;
|
133
|
+
};
|
134
|
+
children: ({
|
135
|
+
type: string;
|
136
|
+
slot: string;
|
137
|
+
style: string;
|
138
|
+
children: ({
|
139
|
+
type: string;
|
140
|
+
style: string;
|
141
|
+
children?: undefined;
|
142
|
+
} | {
|
143
|
+
type: string;
|
144
|
+
children: any[];
|
145
|
+
style?: undefined;
|
146
|
+
})[];
|
147
|
+
} | {
|
148
|
+
type: string;
|
149
|
+
field: string;
|
150
|
+
value: {};
|
151
|
+
title: string;
|
152
|
+
props: {
|
153
|
+
height: number;
|
154
|
+
};
|
155
|
+
})[];
|
156
|
+
}[];
|
157
|
+
}[];
|
158
|
+
api: {};
|
159
|
+
options: {
|
160
|
+
form: {
|
161
|
+
labelPosition: string;
|
162
|
+
size: string;
|
163
|
+
labelWidth: string;
|
164
|
+
};
|
165
|
+
submitBtn: boolean;
|
166
|
+
mounted: (fapi: any) => void;
|
167
|
+
};
|
168
|
+
}>;
|
169
|
+
dkPageForm: import("vue").Ref<{
|
170
|
+
rule: {
|
171
|
+
type: string;
|
172
|
+
field: string;
|
173
|
+
value: {};
|
174
|
+
title: string;
|
175
|
+
props: {};
|
176
|
+
}[];
|
177
|
+
api: {};
|
178
|
+
options: {
|
179
|
+
formData: {};
|
180
|
+
form: {
|
181
|
+
labelPosition: string;
|
182
|
+
size: string;
|
183
|
+
labelWidth: string;
|
184
|
+
};
|
185
|
+
submitBtn: boolean;
|
186
|
+
mounted: (fapi: any) => void;
|
187
|
+
};
|
188
|
+
}>;
|
189
|
+
propsForm: import("vue").Ref<{
|
190
|
+
rule: never[];
|
191
|
+
api: {};
|
192
|
+
value: {};
|
193
|
+
options: {
|
194
|
+
form: {
|
195
|
+
labelPosition: string;
|
196
|
+
size: string;
|
197
|
+
labelWidth: string;
|
198
|
+
};
|
199
|
+
submitBtn: boolean;
|
200
|
+
mounted: (fapi: any) => void;
|
201
|
+
};
|
202
|
+
}>;
|
203
|
+
isDragging: import("vue").Ref<boolean>;
|
204
|
+
startValue: import("vue").Ref<number>;
|
205
|
+
dragName: import("vue").Ref<string>;
|
206
|
+
asideValue: import("vue").Ref<number>;
|
207
|
+
trackMouseBound: import("vue").Ref<null>;
|
208
|
+
stopChangeBound: import("vue").Ref<null>;
|
209
|
+
rightAside: import("vue").Ref<{
|
210
|
+
style: {
|
211
|
+
width: string;
|
212
|
+
};
|
213
|
+
hide: boolean;
|
214
|
+
}>;
|
215
|
+
leftAside: import("vue").Ref<{
|
216
|
+
style: {
|
217
|
+
width: string;
|
218
|
+
};
|
219
|
+
hide: boolean;
|
220
|
+
}>;
|
221
|
+
treeAside: import("vue").Ref<{
|
222
|
+
style: {
|
223
|
+
height: string;
|
224
|
+
minHeight: string;
|
225
|
+
maxHeight: string;
|
226
|
+
};
|
227
|
+
hide: boolean;
|
228
|
+
treeData: never[];
|
229
|
+
}>;
|
230
|
+
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
231
|
+
config?: any;
|
232
|
+
loading?: any;
|
233
|
+
menu?: any;
|
234
|
+
mask?: any;
|
235
|
+
height?: any;
|
236
|
+
locale?: any;
|
237
|
+
}>>>, {
|
238
|
+
readonly config?: any;
|
239
|
+
readonly loading?: any;
|
240
|
+
readonly menu?: any;
|
241
|
+
readonly mask?: any;
|
242
|
+
readonly height?: any;
|
243
|
+
readonly locale?: any;
|
244
|
+
}, {}>>;
|
245
|
+
export default PageDiy;
|
246
|
+
export * from './src/props';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
2
|
+
tag?: any;
|
3
|
+
rule?: any;
|
4
|
+
formCreateInject?: any;
|
5
|
+
}>, any, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
6
|
+
tag?: any;
|
7
|
+
rule?: any;
|
8
|
+
formCreateInject?: any;
|
9
|
+
}>>>, {
|
10
|
+
readonly tag?: any;
|
11
|
+
readonly rule?: any;
|
12
|
+
readonly formCreateInject?: any;
|
13
|
+
}, {}>;
|
14
|
+
export default _default;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
dragBtn: {
|
3
|
+
default: boolean;
|
4
|
+
type: BooleanConstructor;
|
5
|
+
};
|
6
|
+
children: {
|
7
|
+
default: string;
|
8
|
+
type: StringConstructor;
|
9
|
+
};
|
10
|
+
unique: {
|
11
|
+
default: string;
|
12
|
+
type: StringConstructor;
|
13
|
+
};
|
14
|
+
mask: {
|
15
|
+
default: boolean;
|
16
|
+
type: BooleanConstructor;
|
17
|
+
};
|
18
|
+
setting: {
|
19
|
+
default: () => void;
|
20
|
+
type: ObjectConstructor[];
|
21
|
+
};
|
22
|
+
}, {
|
23
|
+
id: import("vue").ComputedRef<string | number>;
|
24
|
+
state: any;
|
25
|
+
}, any, {
|
26
|
+
pageConfig(): {};
|
27
|
+
_style(): any;
|
28
|
+
_animate(): "";
|
29
|
+
}, {
|
30
|
+
active(): void;
|
31
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
32
|
+
dragBtn: {
|
33
|
+
default: boolean;
|
34
|
+
type: BooleanConstructor;
|
35
|
+
};
|
36
|
+
children: {
|
37
|
+
default: string;
|
38
|
+
type: StringConstructor;
|
39
|
+
};
|
40
|
+
unique: {
|
41
|
+
default: string;
|
42
|
+
type: StringConstructor;
|
43
|
+
};
|
44
|
+
mask: {
|
45
|
+
default: boolean;
|
46
|
+
type: BooleanConstructor;
|
47
|
+
};
|
48
|
+
setting: {
|
49
|
+
default: () => void;
|
50
|
+
type: ObjectConstructor[];
|
51
|
+
};
|
52
|
+
}>>, {
|
53
|
+
mask: boolean;
|
54
|
+
children: string;
|
55
|
+
setting: Record<string, any>;
|
56
|
+
dragBtn: boolean;
|
57
|
+
unique: string;
|
58
|
+
}, {}>;
|
59
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
+
value: {
|
3
|
+
default: string;
|
4
|
+
type: StringConstructor;
|
5
|
+
};
|
6
|
+
pageConfig: {
|
7
|
+
default: () => void;
|
8
|
+
type: ObjectConstructor[];
|
9
|
+
};
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
11
|
+
value: {
|
12
|
+
default: string;
|
13
|
+
type: StringConstructor;
|
14
|
+
};
|
15
|
+
pageConfig: {
|
16
|
+
default: () => void;
|
17
|
+
type: ObjectConstructor[];
|
18
|
+
};
|
19
|
+
}>>, {
|
20
|
+
value: string;
|
21
|
+
pageConfig: Record<string, any>;
|
22
|
+
}, {}>, {
|
23
|
+
default?(_: {}): any;
|
24
|
+
}>;
|
25
|
+
export default _default;
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
27
|
+
new (): {
|
28
|
+
$slots: S;
|
29
|
+
};
|
30
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
export default function dkSetting(rule?: null): {
|
2
|
+
type: string;
|
3
|
+
props: {
|
4
|
+
modelValue: string;
|
5
|
+
};
|
6
|
+
style: string;
|
7
|
+
children: {
|
8
|
+
type: string;
|
9
|
+
props: {
|
10
|
+
name: string;
|
11
|
+
};
|
12
|
+
children: ({
|
13
|
+
type: string;
|
14
|
+
slot: string;
|
15
|
+
style: string;
|
16
|
+
children: ({
|
17
|
+
type: string;
|
18
|
+
style: string;
|
19
|
+
children?: undefined;
|
20
|
+
} | {
|
21
|
+
type: string;
|
22
|
+
children: any[];
|
23
|
+
style?: undefined;
|
24
|
+
})[];
|
25
|
+
} | {
|
26
|
+
type: string;
|
27
|
+
field: string;
|
28
|
+
value: {};
|
29
|
+
title: string;
|
30
|
+
props: {
|
31
|
+
height: number;
|
32
|
+
};
|
33
|
+
})[];
|
34
|
+
}[];
|
35
|
+
}[];
|