@vipl520/dk-ui 1.0.42 → 1.0.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/index.js +24968 -0
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +4 -4
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +24879 -0
- package/dist/web-types.json +1 -1
- package/es/animate-select/src/animate-select.vue.mjs +1 -1
- package/es/attachment/src/attachment.vue.mjs +1 -1
- package/es/attachment/src/file-icon.vue.mjs +1 -1
- package/es/attachment-dialog/src/attachment-dialog.vue.mjs +1 -1
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
- 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/box-size-input/src/box-size-input.vue.mjs +1 -1
- package/es/box-size-input/src/box-size-input.vue2.mjs +2 -2
- 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 +1 -1
- package/es/color-input/src/color-input.vue.mjs +1 -1
- package/es/dialog/src/dialog.vue.mjs +1 -1
- package/es/file-input/src/file-input.vue.mjs +1 -1
- package/es/file-list-input/src/file-list-input.vue.mjs +1 -1
- package/es/form/src/form.vue.mjs +1 -1
- package/es/group/src/group.vue.mjs +1 -1
- package/es/group/src/group.vue2.mjs +2 -10
- 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/hot-area-input.vue.mjs +1 -1
- package/es/icon/src/icon.vue.mjs +1 -1
- package/es/icon-input/src/icon-content.vue.mjs +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/image-input/src/image-input.vue.mjs +1 -1
- package/es/image-list-input/src/image-list-input.vue.mjs +1 -1
- package/es/index.mjs +7 -2
- package/es/index.mjs.map +1 -1
- package/es/page-diy/src/components/DiyCloud.vue.mjs +1 -1
- package/es/page-diy/src/components/DragBox.vue.mjs +2 -6
- package/es/page-diy/src/components/DragBox.vue.mjs.map +1 -1
- package/es/page-diy/src/components/DragTool.vue.mjs +1 -1
- package/es/page-diy/src/components/PreviewPhone.vue.mjs +1 -1
- package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs +1 -1
- package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +1 -1
- package/es/page-diy/src/page-diy.vue.mjs +32 -100
- package/es/page-diy/src/page-diy.vue.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 +1 -1
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +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/DkMinVideo.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewCell.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +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/DkViewImage.vue.mjs +1 -1
- package/es/page-diy/src/views/web/DkViewMusic.vue.mjs +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/DkViewSwipe.vue.mjs +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/DkViewVideo.vue.mjs +1 -1
- package/es/page-diy/style/dk-page-diy.css +1 -1
- package/es/page-diy/style/index.css +1 -1
- package/es/poster-input/src/component/poster.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewImage.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewName.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.mjs +1 -1
- package/es/poster-input/src/component/views/DkPosterViewText.vue.mjs +1 -1
- package/es/poster-input/src/component/views/quick-action.vue.mjs +1 -1
- package/es/poster-input/src/poster-input.vue.mjs +1 -1
- package/es/select/src/select.vue.mjs +1 -1
- package/es/style-animation-input/src/style-animation-input.vue.mjs +1 -1
- package/es/style-background-input/src/style-background-input.vue.mjs +1 -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 +1 -1
- package/es/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
- package/es/style-border-input/style/index.css +1 -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 -6
- package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -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 +2 -20
- 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 +1 -6
- 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-position-input/src/style-position-input.vue.mjs +1 -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 +2 -6
- package/es/style-shadow-input/src/style-shadow-content.vue2.mjs.map +1 -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.map +1 -1
- package/es/table/src/components/ComSearch.vue.mjs +1 -1
- package/es/table/src/components/FieldRender.vue.mjs +1 -1
- package/es/table/src/components/RecycleDialog.vue.mjs +1 -1
- package/es/table/src/components/header.vue.mjs +1 -1
- package/es/table/src/table.vue.mjs +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 +1 -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 +3 -2
- 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/lib/animate-select/src/animate-select.vue.js +1 -1
- package/lib/attachment/src/attachment.vue.js +1 -1
- package/lib/attachment/src/file-icon.vue.js +1 -1
- package/lib/attachment-dialog/src/attachment-dialog.vue.js +1 -1
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
- 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/box-size-input/src/box-size-input.vue.js +1 -1
- package/lib/box-size-input/src/box-size-input.vue2.js +2 -2
- 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 +1 -1
- package/lib/color-input/src/color-input.vue.js +1 -1
- package/lib/dialog/src/dialog.vue.js +1 -1
- package/lib/file-input/src/file-input.vue.js +1 -1
- package/lib/file-list-input/src/file-list-input.vue.js +1 -1
- package/lib/form/src/form.vue.js +1 -1
- package/lib/group/src/group.vue.js +1 -1
- package/lib/group/src/group.vue2.js +2 -10
- 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/hot-area-input.vue.js +1 -1
- package/lib/icon/src/icon.vue.js +1 -1
- package/lib/icon-input/src/icon-content.vue.js +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/image-input/src/image-input.vue.js +1 -1
- package/lib/image-list-input/src/image-list-input.vue.js +1 -1
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/lib/page-diy/src/components/DiyCloud.vue.js +1 -1
- package/lib/page-diy/src/components/DragBox.vue.js +2 -6
- package/lib/page-diy/src/components/DragBox.vue.js.map +1 -1
- package/lib/page-diy/src/components/DragTool.vue.js +1 -1
- package/lib/page-diy/src/components/PreviewPhone.vue.js +1 -1
- package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js +1 -1
- package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +1 -1
- package/lib/page-diy/src/page-diy.vue.js +32 -100
- package/lib/page-diy/src/page-diy.vue.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 +1 -1
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +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/DkMinVideo.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewCell.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +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/DkViewImage.vue.js +1 -1
- package/lib/page-diy/src/views/web/DkViewMusic.vue.js +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/DkViewSwipe.vue.js +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/DkViewVideo.vue.js +1 -1
- package/lib/page-diy/style/dk-page-diy.css +1 -1
- package/lib/page-diy/style/index.css +1 -1
- package/lib/poster-input/src/component/poster.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewImage.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewName.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.js +1 -1
- package/lib/poster-input/src/component/views/DkPosterViewText.vue.js +1 -1
- package/lib/poster-input/src/component/views/quick-action.vue.js +1 -1
- package/lib/poster-input/src/poster-input.vue.js +1 -1
- package/lib/select/src/select.vue.js +1 -1
- package/lib/style-animation-input/src/style-animation-input.vue.js +1 -1
- package/lib/style-background-input/src/style-background-input.vue.js +1 -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 +1 -1
- package/lib/style-border-input/src/style-border-input.vue2.js.map +1 -1
- package/lib/style-border-input/style/index.css +1 -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 -6
- package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -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 +2 -20
- 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 +0 -5
- 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-position-input/src/style-position-input.vue.js +1 -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 +2 -6
- package/lib/style-shadow-input/src/style-shadow-content.vue2.js.map +1 -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.map +1 -1
- package/lib/table/src/components/ComSearch.vue.js +1 -1
- package/lib/table/src/components/FieldRender.vue.js +1 -1
- package/lib/table/src/components/RecycleDialog.vue.js +1 -1
- package/lib/table/src/components/header.vue.js +1 -1
- package/lib/table/src/table.vue.js +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 +1 -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 +3 -2
- 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/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DragBox.vue.mjs","sources":["../../../../src/page-diy/src/components/DragBox.vue"],"sourcesContent":["<script>\nimport { h, defineComponent } from 'vue'\nimport draggable from 'vuedraggable'\n\nexport default defineComponent({\n name: 'DragBox',\n props: ['rule', 'tag', 'formCreateInject'],\n render(ctx) {\n const subRule = { ...ctx.$props.rule.props, ...ctx.$attrs }\n let _class = ctx.tag + '-drag drag-box'\n if (!Object.keys(ctx.$slots).length) {\n _class += ' ' + ctx.tag + '-holder'\n }\n subRule.class = _class\n subRule.modelValue = [...this.$props.formCreateInject.children]\n\n const keys = {}\n if (ctx.$slots.default) {\n // 这里报错 Unhandled error during execution of render function\n const children = ctx.$slots.default()\n children.forEach((v) => {\n if (v.key) {\n keys[v.key] = v\n }\n })\n }\n\n return h(draggable, subRule, {\n item: ({ element }) => {\n return h(
|
1
|
+
{"version":3,"file":"DragBox.vue.mjs","sources":["../../../../src/page-diy/src/components/DragBox.vue"],"sourcesContent":["<script>\nimport { h, defineComponent } from 'vue'\nimport draggable from 'vuedraggable'\n\nexport default defineComponent({\n name: 'DragBox',\n props: ['rule', 'tag', 'formCreateInject'],\n render(ctx) {\n const subRule = { ...ctx.$props.rule.props, ...ctx.$attrs }\n let _class = ctx.tag + '-drag drag-box'\n if (!Object.keys(ctx.$slots).length) {\n _class += ' ' + ctx.tag + '-holder'\n }\n subRule.class = _class\n subRule.modelValue = [...this.$props.formCreateInject.children]\n\n const keys = {}\n if (ctx.$slots.default) {\n // 这里报错 Unhandled error during execution of render function\n const children = ctx.$slots.default()\n children.forEach((v) => {\n if (v.key) {\n keys[v.key] = v\n }\n })\n }\n\n return h(draggable, subRule, {\n item: ({ element }) => {\n return h('div', { class: 'drag-box-item' }, keys[element.__fc__.key + 'fc'])\n },\n })\n },\n})\n</script>\n"],"names":[],"mappings":";;;;AAIA,MAAK,SAAU,GAAG,eAAa,CAAA;AAC7B,EAAA,IAAI,EAAE,SAAS;AACf,EAAA,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,kBAAkB,CAAC;EAC1C,MAAM,CAAC,GAAG,EAAE;IACV,MAAM,OAAM,GAAI,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,GAAG,CAAC,MAAO,GAAA;AAC1D,IAAA,IAAI,MAAK,GAAI,GAAG,CAAC,GAAI,GAAE,iBAAe;AACtC,IAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE;MACnC,MAAK,IAAK,GAAI,GAAE,GAAG,CAAC,GAAE,GAAI,UAAQ;AACpC,KAAA;AACA,IAAA,OAAO,CAAC,KAAM,GAAE,OAAK;IACrB,OAAO,CAAC,UAAS,GAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAA;;IAE9D,MAAM,IAAK,GAAE,GAAC;IACd,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE;;AAEtB,MAAA,MAAM,QAAO,GAAI,GAAG,CAAC,MAAM,CAAC,OAAO,GAAC;MACpC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;AACtB,QAAA,IAAI,CAAC,CAAC,GAAG,EAAE;UACT,IAAI,CAAC,CAAC,CAAC,GAAG,CAAA,GAAI,EAAA;AAChB,SAAA;OACD,EAAA;AACH,KAAA;;IAEA,OAAO,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE;AAC3B,MAAA,IAAI,EAAE,CAAC,EAAE,OAAM,EAAG,KAAK;AACrB,QAAA,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,eAAgB,EAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAE,GAAI,IAAI,CAAC,CAAA;OAC5E;KACF,CAAA;GACF;AACH,CAAC,EAAA;;;;;"}
|
@@ -128,7 +128,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
128
128
|
renderSlot(_ctx.$slots, "default")
|
129
129
|
], 6 /* CLASS, STYLE */))
|
130
130
|
}
|
131
|
-
var DragTool = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
131
|
+
var DragTool = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\DragTool.vue"]]);
|
132
132
|
|
133
133
|
export { DragTool as default };
|
134
134
|
//# sourceMappingURL=DragTool.vue.mjs.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from './PreviewPhone.vue2.mjs';
|
2
2
|
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
3
3
|
|
4
|
-
var PreviewPhone = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
4
|
+
var PreviewPhone = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\PreviewPhone.vue"]]);
|
5
5
|
|
6
6
|
export { PreviewPhone as default };
|
7
7
|
//# sourceMappingURL=PreviewPhone.vue.mjs.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from './DkEventCreateInput.vue2.mjs';
|
2
2
|
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
3
3
|
|
4
|
-
var DkEventCreateInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-
|
4
|
+
var DkEventCreateInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventCreateInput.vue"]]);
|
5
5
|
|
6
6
|
export { DkEventCreateInput as default };
|
7
7
|
//# sourceMappingURL=DkEventCreateInput.vue.mjs.map
|
@@ -159,7 +159,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
159
159
|
}, 8 /* PROPS */, ["loading", "onClick"])
|
160
160
|
]))
|
161
161
|
}
|
162
|
-
var DkEventSelectInput = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
162
|
+
var DkEventSelectInput = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\components\\forms\\DkEventSelectInput.vue"]]);
|
163
163
|
|
164
164
|
export { DkEventSelectInput as default };
|
165
165
|
//# sourceMappingURL=DkEventSelectInput.vue.mjs.map
|
@@ -240,9 +240,7 @@ const _sfc_main = defineComponent({
|
|
240
240
|
// 处理对象节点
|
241
241
|
if (Array.isArray(node.children)) {
|
242
242
|
// 只保留 children 数组中的对象类型元素
|
243
|
-
node.children = node.children.filter(
|
244
|
-
(child) => typeof child === 'object' && child !== null
|
245
|
-
);
|
243
|
+
node.children = node.children.filter((child) => typeof child === 'object' && child !== null);
|
246
244
|
// 递归处理每个子节点
|
247
245
|
node.children = cleanTreeData(node.children);
|
248
246
|
}
|
@@ -255,10 +253,7 @@ const _sfc_main = defineComponent({
|
|
255
253
|
watch(
|
256
254
|
() => data.dragForm,
|
257
255
|
() => {
|
258
|
-
data.treeAside.treeData = methods.parseRule(
|
259
|
-
deepCopy(data.dragForm.api.rule[0].children),
|
260
|
-
true
|
261
|
-
);
|
256
|
+
data.treeAside.treeData = methods.parseRule(deepCopy(data.dragForm.api.rule[0].children), true);
|
262
257
|
data.treeAside.treeData = cleanTreeData(data.treeAside.treeData);
|
263
258
|
},
|
264
259
|
{
|
@@ -466,9 +461,7 @@ const _sfc_main = defineComponent({
|
|
466
461
|
rules = [];
|
467
462
|
}
|
468
463
|
data.children = methods.makeChildren(
|
469
|
-
methods.loadRule(
|
470
|
-
is.String(rules) ? designerForm.parseJson(rules) : deepCopy(rules)
|
471
|
-
)
|
464
|
+
methods.loadRule(is.String(rules) ? designerForm.parseJson(rules) : deepCopy(rules))
|
472
465
|
);
|
473
466
|
methods.clearActiveRule();
|
474
467
|
data.dragForm.rule = methods.makeDragRule(data.children);
|
@@ -587,15 +580,9 @@ const _sfc_main = defineComponent({
|
|
587
580
|
field = lower(field);
|
588
581
|
if (field.indexOf('effect') === 0 && field.indexOf('>') > -1) {
|
589
582
|
delete data.activeRule.effect[field.split('>')[1]];
|
590
|
-
} else if (
|
591
|
-
field.indexOf('props') === 0 &&
|
592
|
-
field.indexOf('>') > -1
|
593
|
-
) {
|
583
|
+
} else if (field.indexOf('props') === 0 && field.indexOf('>') > -1) {
|
594
584
|
delete data.activeRule.props[field.split('>')[1]];
|
595
|
-
} else if (
|
596
|
-
field.indexOf('attrs') === 0 &&
|
597
|
-
field.indexOf('>') > -1
|
598
|
-
) {
|
585
|
+
} else if (field.indexOf('attrs') === 0 && field.indexOf('>') > -1) {
|
599
586
|
data.activeRule.attrs[field.split('>')[1]] = value;
|
600
587
|
} else if (field === 'child') {
|
601
588
|
delete data.activeRule.children[0];
|
@@ -624,15 +611,9 @@ const _sfc_main = defineComponent({
|
|
624
611
|
field = lower(field);
|
625
612
|
if (field.indexOf('effect') === 0 && field.indexOf('>') > -1) {
|
626
613
|
data.activeRule.effect[field.split('>')[1]] = value;
|
627
|
-
} else if (
|
628
|
-
field.indexOf('props') === 0 &&
|
629
|
-
field.indexOf('>') > -1
|
630
|
-
) {
|
614
|
+
} else if (field.indexOf('props') === 0 && field.indexOf('>') > -1) {
|
631
615
|
data.activeRule.props[field.split('>')[1]] = value;
|
632
|
-
} else if (
|
633
|
-
field.indexOf('attrs') === 0 &&
|
634
|
-
field.indexOf('>') > -1
|
635
|
-
) {
|
616
|
+
} else if (field.indexOf('attrs') === 0 && field.indexOf('>') > -1) {
|
636
617
|
data.activeRule.attrs[field.split('>')[1]] = value;
|
637
618
|
} else if (field === 'child') {
|
638
619
|
data.activeRule.children[0] = value;
|
@@ -744,18 +725,14 @@ const _sfc_main = defineComponent({
|
|
744
725
|
;['props', 'effect', 'attrs'].forEach((name) => {
|
745
726
|
rule[name] &&
|
746
727
|
Object.keys(rule[name]).forEach((k) => {
|
747
|
-
formData['formCreate' + upper(name) + '>' + k] = deepCopy(
|
748
|
-
rule[name][k]
|
749
|
-
);
|
728
|
+
formData['formCreate' + upper(name) + '>' + k] = deepCopy(rule[name][k]);
|
750
729
|
});
|
751
730
|
});
|
752
731
|
// console.log('formData', formData)
|
753
732
|
data.propsForm.value = formData;
|
754
733
|
|
755
734
|
data.showBaseRule =
|
756
|
-
hasProperty(rule, 'field') &&
|
757
|
-
rule.input !== false &&
|
758
|
-
(!config.value || config.value.showBaseForm !== false);
|
735
|
+
hasProperty(rule, 'field') && rule.input !== false && (!config.value || config.value.showBaseForm !== false);
|
759
736
|
if (data.showBaseRule) {
|
760
737
|
data.dragForm.api.refreshValidate();
|
761
738
|
}
|
@@ -782,9 +759,7 @@ const _sfc_main = defineComponent({
|
|
782
759
|
const rule = methods.makeRule(ruleList[menu.name]);
|
783
760
|
const config = rule.children[0].config.config;
|
784
761
|
const count = config.count ? config.count : 99;
|
785
|
-
const _count = countObj.value[config.name]
|
786
|
-
? countObj.value[config.name]
|
787
|
-
: 0;
|
762
|
+
const _count = countObj.value[config.name] ? countObj.value[config.name] : 0;
|
788
763
|
if (_count >= count) {
|
789
764
|
ElNotification({
|
790
765
|
title: '警告',
|
@@ -798,10 +773,7 @@ const _sfc_main = defineComponent({
|
|
798
773
|
data.added = true;
|
799
774
|
},
|
800
775
|
dragEnd(children, { newIndex, oldIndex }) {
|
801
|
-
if (
|
802
|
-
!data.added &&
|
803
|
-
!(data.moveRule === children && newIndex === oldIndex)
|
804
|
-
) {
|
776
|
+
if (!data.added && !(data.moveRule === children && newIndex === oldIndex)) {
|
805
777
|
const rule = data.moveRule.splice(oldIndex, 1);
|
806
778
|
children.splice(newIndex, 0, rule[0]);
|
807
779
|
}
|
@@ -823,21 +795,12 @@ const _sfc_main = defineComponent({
|
|
823
795
|
let drag;
|
824
796
|
if (config.drag) {
|
825
797
|
rule.children.push(
|
826
|
-
(drag = methods.makeDrag(
|
827
|
-
|
828
|
-
|
829
|
-
methods.
|
830
|
-
|
831
|
-
|
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
|
-
))
|
798
|
+
(drag = methods.makeDrag(config.drag, rule.type, methods.makeChildren([]), {
|
799
|
+
end: (inject, evt) => methods.dragEnd(inject.self.children, evt),
|
800
|
+
add: (inject, evt) => methods.dragAdd(inject.self.children, evt),
|
801
|
+
start: (inject, evt) => methods.dragStart(inject.self.children, evt),
|
802
|
+
unchoose: (inject, evt) => methods.dragUnchoose(inject.self.children, evt),
|
803
|
+
}))
|
841
804
|
);
|
842
805
|
}
|
843
806
|
if (config.children && !_rule) {
|
@@ -847,10 +810,7 @@ const _sfc_main = defineComponent({
|
|
847
810
|
}
|
848
811
|
}
|
849
812
|
|
850
|
-
const dragMask =
|
851
|
-
mask.value !== undefined
|
852
|
-
? mask.value !== false
|
853
|
-
: config.mask !== false;
|
813
|
+
const dragMask = mask.value !== undefined ? mask.value !== false : config.mask !== false;
|
854
814
|
if (config.inside) {
|
855
815
|
rule.children = methods.makeChildren([
|
856
816
|
{
|
@@ -886,10 +846,9 @@ const _sfc_main = defineComponent({
|
|
886
846
|
const config = top.parent.config.config;
|
887
847
|
const item = ruleList[config.children];
|
888
848
|
if (!item) return
|
889
|
-
;(!config.drag
|
890
|
-
|
891
|
-
|
892
|
-
).children[0].children.push(methods.makeRule(item));
|
849
|
+
;(!config.drag ? top.parent : top.parent.children[0]).children[0].children.push(
|
850
|
+
methods.makeRule(item)
|
851
|
+
);
|
893
852
|
},
|
894
853
|
copy: ({ self }) => {
|
895
854
|
const top = methods.getParent(self);
|
@@ -942,10 +901,7 @@ const _sfc_main = defineComponent({
|
|
942
901
|
const config = self.children[0].config.config;
|
943
902
|
const item = ruleList[config.children];
|
944
903
|
if (!item) return
|
945
|
-
;(!config.drag
|
946
|
-
? self
|
947
|
-
: self.children[0]
|
948
|
-
).children[0].children.push(methods.makeRule(item));
|
904
|
+
;(!config.drag ? self : self.children[0]).children[0].children.push(methods.makeRule(item));
|
949
905
|
},
|
950
906
|
copy: ({ self }) => {
|
951
907
|
vm.emit('copy', self.children[0]);
|
@@ -953,11 +909,7 @@ const _sfc_main = defineComponent({
|
|
953
909
|
const copyRule = designerForm.copyRule(top.parent);
|
954
910
|
// 解决复制后,组件的setting配置失效
|
955
911
|
copyRule.props.setting = copyRule.children[0].setting;
|
956
|
-
top.root.children.splice(
|
957
|
-
top.root.children.indexOf(top.parent) + 1,
|
958
|
-
0,
|
959
|
-
copyRule
|
960
|
-
);
|
912
|
+
top.root.children.splice(top.root.children.indexOf(top.parent) + 1, 0, copyRule);
|
961
913
|
},
|
962
914
|
active: ({ self }) => {
|
963
915
|
vm.emit('active', self.children[0]);
|
@@ -975,18 +927,15 @@ const _sfc_main = defineComponent({
|
|
975
927
|
data.dragName = name;
|
976
928
|
if (name === 'left') {
|
977
929
|
// 获取._fc-l的宽度
|
978
|
-
data.asideValue =
|
979
|
-
document.getElementsByClassName('_fc-l')[0].offsetWidth;
|
930
|
+
data.asideValue = document.getElementsByClassName('_fc-l')[0].offsetWidth;
|
980
931
|
}
|
981
932
|
if (name === 'right') {
|
982
|
-
data.asideValue =
|
983
|
-
document.getElementsByClassName('_fc-r')[0].offsetWidth;
|
933
|
+
data.asideValue = document.getElementsByClassName('_fc-r')[0].offsetWidth;
|
984
934
|
}
|
985
935
|
document.body.style.cursor = 'ew-resize';
|
986
936
|
if (name === 'tree') {
|
987
937
|
data.startValue = e.clientY;
|
988
|
-
data.asideValue =
|
989
|
-
document.getElementsByClassName('children-list')[0].offsetHeight;
|
938
|
+
data.asideValue = document.getElementsByClassName('children-list')[0].offsetHeight;
|
990
939
|
console.log('data.startValue', data.startValue);
|
991
940
|
console.log('data.asideValue', data.asideValue);
|
992
941
|
document.body.style.cursor = 'n-resize';
|
@@ -1078,20 +1027,11 @@ const _sfc_main = defineComponent({
|
|
1078
1027
|
const draggingRule = draggingNode.data.config.config;
|
1079
1028
|
const dropRule = dropNode.data.config.config;
|
1080
1029
|
// 内部元素放到指定的外部才可以放置
|
1081
|
-
if (
|
1082
|
-
type === 'inner' &&
|
1083
|
-
draggingRule.inside &&
|
1084
|
-
draggingRule.name === dropRule.children
|
1085
|
-
) {
|
1030
|
+
if (type === 'inner' && draggingRule.inside && draggingRule.name === dropRule.children) {
|
1086
1031
|
return true
|
1087
1032
|
}
|
1088
1033
|
// 同样父级
|
1089
|
-
if (
|
1090
|
-
type !== 'inner' &&
|
1091
|
-
draggingRule.name === dropRule.name &&
|
1092
|
-
draggingRule.inside &&
|
1093
|
-
dropRule.inside
|
1094
|
-
) {
|
1034
|
+
if (type !== 'inner' && draggingRule.name === dropRule.name && draggingRule.inside && dropRule.inside) {
|
1095
1035
|
return true
|
1096
1036
|
}
|
1097
1037
|
|
@@ -1117,9 +1057,7 @@ const _sfc_main = defineComponent({
|
|
1117
1057
|
methods.setRule(data.treeAside.treeData);
|
1118
1058
|
},
|
1119
1059
|
};
|
1120
|
-
data.dragForm.rule = methods.makeDragRule(
|
1121
|
-
methods.makeChildren(data.children)
|
1122
|
-
);
|
1060
|
+
data.dragForm.rule = methods.makeDragRule(methods.makeChildren(data.children));
|
1123
1061
|
return {
|
1124
1062
|
...toRefs(data),
|
1125
1063
|
...methods,
|
@@ -1190,11 +1128,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1190
1128
|
item: withCtx(({ element }) => [
|
1191
1129
|
(openBlock(), createElementBlock("div", {
|
1192
1130
|
key: element.id,
|
1193
|
-
class: normalizeClass(["_fc-l-item",
|
1194
|
-
element.count - (_ctx.countObj[element.name] || 0) <= 0
|
1195
|
-
? 'not-drag'
|
1196
|
-
: ''
|
1197
|
-
])
|
1131
|
+
class: normalizeClass(["_fc-l-item", element.count - (_ctx.countObj[element.name] || 0) <= 0 ? 'not-drag' : ''])
|
1198
1132
|
}, [
|
1199
1133
|
createElementVNode("div", _hoisted_3, [
|
1200
1134
|
createVNode(_component_dk_icon, {
|
@@ -1240,9 +1174,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1240
1174
|
default: withCtx(({ data }) => [
|
1241
1175
|
createElementVNode("div", {
|
1242
1176
|
class: "el-tree-node-content",
|
1243
|
-
style: normalizeStyle(
|
1244
|
-
_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:red' : ''
|
1245
|
-
)
|
1177
|
+
style: normalizeStyle(_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:red' : '')
|
1246
1178
|
}, [
|
1247
1179
|
createTextVNode(toDisplayString(data.type) + " ", 1 /* TEXT */),
|
1248
1180
|
(data.config?.config.label)
|
@@ -1454,7 +1386,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1454
1386
|
_: 3 /* FORWARDED */
|
1455
1387
|
}))
|
1456
1388
|
}
|
1457
|
-
var _PageDiy = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-
|
1389
|
+
var _PageDiy = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);
|
1458
1390
|
|
1459
1391
|
export { _PageDiy as default };
|
1460
1392
|
//# sourceMappingURL=page-diy.vue.mjs.map
|