@vipl520/dk-ui 1.0.42 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +24968 -0
  3. package/dist/index.min.js +4 -4
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +4 -4
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/index.mjs +24879 -0
  8. package/dist/web-types.json +1 -1
  9. package/es/animate-select/src/animate-select.vue.mjs +1 -1
  10. package/es/attachment/src/attachment.vue.mjs +1 -1
  11. package/es/attachment/src/file-icon.vue.mjs +1 -1
  12. package/es/attachment-dialog/src/attachment-dialog.vue.mjs +1 -1
  13. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
  14. package/es/attachment-dialog/src/props.mjs.map +1 -1
  15. package/es/audio-input/src/audio-input.vue.mjs +1 -1
  16. package/es/audio-list-input/src/audio-list-input.vue.mjs +1 -1
  17. package/es/box-size-input/src/box-size-input.vue.mjs +1 -1
  18. package/es/box-size-input/src/box-size-input.vue2.mjs +2 -2
  19. package/es/box-size-input/src/box-size-input.vue2.mjs.map +1 -1
  20. package/es/box-size-input/style/index.css +1 -1
  21. package/es/box-size-input/style/index.scss +1 -1
  22. package/es/color-input/src/color-input.vue.mjs +1 -1
  23. package/es/dialog/src/dialog.vue.mjs +1 -1
  24. package/es/file-input/src/file-input.vue.mjs +1 -1
  25. package/es/file-list-input/src/file-list-input.vue.mjs +1 -1
  26. package/es/form/src/form.vue.mjs +1 -1
  27. package/es/group/src/group.vue.mjs +1 -1
  28. package/es/group/src/group.vue2.mjs +2 -10
  29. package/es/group/src/group.vue2.mjs.map +1 -1
  30. package/es/hot-area-input/src/component/hot-area-content.vue.mjs +1 -1
  31. package/es/hot-area-input/src/hot-area-input.vue.mjs +1 -1
  32. package/es/icon/src/icon.vue.mjs +1 -1
  33. package/es/icon-input/src/icon-content.vue.mjs +1 -1
  34. package/es/icon-input/src/icon-dialog.vue.mjs +1 -1
  35. package/es/icon-input/src/icon-input.vue.mjs +1 -1
  36. package/es/image-input/src/image-input.vue.mjs +1 -1
  37. package/es/image-list-input/src/image-list-input.vue.mjs +1 -1
  38. package/es/index.mjs +7 -2
  39. package/es/index.mjs.map +1 -1
  40. package/es/page-diy/src/components/DiyCloud.vue.mjs +1 -1
  41. package/es/page-diy/src/components/DragBox.vue.mjs +2 -6
  42. package/es/page-diy/src/components/DragBox.vue.mjs.map +1 -1
  43. package/es/page-diy/src/components/DragTool.vue.mjs +1 -1
  44. package/es/page-diy/src/components/PreviewPhone.vue.mjs +1 -1
  45. package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs +1 -1
  46. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +1 -1
  47. package/es/page-diy/src/page-diy.vue.mjs +32 -100
  48. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  49. package/es/page-diy/src/views/min/DkMinBlank.vue.mjs +1 -1
  50. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +1 -1
  51. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +1 -1
  52. package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs +1 -1
  53. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +1 -1
  54. package/es/page-diy/src/views/min/DkMinVideo.vue.mjs +1 -1
  55. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs +1 -1
  56. package/es/page-diy/src/views/web/DkViewCell.vue.mjs +1 -1
  57. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +1 -1
  58. package/es/page-diy/src/views/web/DkViewDialog.vue.mjs +1 -1
  59. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs +1 -1
  60. package/es/page-diy/src/views/web/DkViewImage.vue.mjs +1 -1
  61. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs +1 -1
  62. package/es/page-diy/src/views/web/DkViewNavBar.vue.mjs +1 -1
  63. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs +1 -1
  64. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs +1 -1
  65. package/es/page-diy/src/views/web/DkViewTabbar.vue.mjs +1 -1
  66. package/es/page-diy/src/views/web/DkViewTextarea.vue.mjs +1 -1
  67. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs +1 -1
  68. package/es/page-diy/src/views/web/DkViewVideo.vue.mjs +1 -1
  69. package/es/page-diy/style/dk-page-diy.css +1 -1
  70. package/es/page-diy/style/index.css +1 -1
  71. package/es/poster-input/src/component/poster.vue.mjs +1 -1
  72. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.mjs +1 -1
  73. package/es/poster-input/src/component/views/DkPosterViewImage.vue.mjs +1 -1
  74. package/es/poster-input/src/component/views/DkPosterViewName.vue.mjs +1 -1
  75. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.mjs +1 -1
  76. package/es/poster-input/src/component/views/DkPosterViewText.vue.mjs +1 -1
  77. package/es/poster-input/src/component/views/quick-action.vue.mjs +1 -1
  78. package/es/poster-input/src/poster-input.vue.mjs +1 -1
  79. package/es/select/src/select.vue.mjs +1 -1
  80. package/es/style-animation-input/src/style-animation-input.vue.mjs +1 -1
  81. package/es/style-background-input/src/style-background-input.vue.mjs +1 -1
  82. package/es/style-border-input/src/style-border-input.vue.mjs +1 -1
  83. package/es/style-border-input/src/style-border-input.vue2.mjs +1 -1
  84. package/es/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
  85. package/es/style-border-input/style/index.css +1 -1
  86. package/es/style-box-input/src/style-box-input.vue.mjs +1 -1
  87. package/es/style-box-input/src/style-box-input.vue2.mjs +2 -6
  88. package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
  89. package/es/style-font-input/src/style-font-input.vue.mjs +1 -1
  90. package/es/style-font-input/src/style-font-input.vue2.mjs +2 -20
  91. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  92. package/es/style-input/src/style-input.vue.mjs +1 -1
  93. package/es/style-input/src/style-input.vue2.mjs +1 -6
  94. package/es/style-input/src/style-input.vue2.mjs.map +1 -1
  95. package/es/style-number-input/src/style-number-input.vue.mjs +1 -1
  96. package/es/style-position-input/src/style-position-input.vue.mjs +1 -1
  97. package/es/style-shadow-input/src/style-shadow-content.vue.mjs +1 -1
  98. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs +2 -6
  99. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs.map +1 -1
  100. package/es/style-shadow-input/src/style-shadow-input.vue.mjs +1 -1
  101. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
  102. package/es/table/src/components/ComSearch.vue.mjs +1 -1
  103. package/es/table/src/components/FieldRender.vue.mjs +1 -1
  104. package/es/table/src/components/RecycleDialog.vue.mjs +1 -1
  105. package/es/table/src/components/header.vue.mjs +1 -1
  106. package/es/table/src/table.vue.mjs +1 -1
  107. package/es/test/src/test.vue.mjs +1 -1
  108. package/es/tiny-editor/src/tiny-editor.vue.mjs +1 -1
  109. package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -3
  110. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  111. package/es/tiny-editor/style/index.css +1 -1
  112. package/es/tiny-editor/style/index.scss +3 -2
  113. package/es/video-input/src/video-input.vue.mjs +1 -1
  114. package/es/video-list-input/src/video-list-input.vue.mjs +1 -1
  115. package/lib/animate-select/src/animate-select.vue.js +1 -1
  116. package/lib/attachment/src/attachment.vue.js +1 -1
  117. package/lib/attachment/src/file-icon.vue.js +1 -1
  118. package/lib/attachment-dialog/src/attachment-dialog.vue.js +1 -1
  119. package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
  120. package/lib/attachment-dialog/src/props.js.map +1 -1
  121. package/lib/audio-input/src/audio-input.vue.js +1 -1
  122. package/lib/audio-list-input/src/audio-list-input.vue.js +1 -1
  123. package/lib/box-size-input/src/box-size-input.vue.js +1 -1
  124. package/lib/box-size-input/src/box-size-input.vue2.js +2 -2
  125. package/lib/box-size-input/src/box-size-input.vue2.js.map +1 -1
  126. package/lib/box-size-input/style/index.css +1 -1
  127. package/lib/box-size-input/style/index.scss +1 -1
  128. package/lib/color-input/src/color-input.vue.js +1 -1
  129. package/lib/dialog/src/dialog.vue.js +1 -1
  130. package/lib/file-input/src/file-input.vue.js +1 -1
  131. package/lib/file-list-input/src/file-list-input.vue.js +1 -1
  132. package/lib/form/src/form.vue.js +1 -1
  133. package/lib/group/src/group.vue.js +1 -1
  134. package/lib/group/src/group.vue2.js +2 -10
  135. package/lib/group/src/group.vue2.js.map +1 -1
  136. package/lib/hot-area-input/src/component/hot-area-content.vue.js +1 -1
  137. package/lib/hot-area-input/src/hot-area-input.vue.js +1 -1
  138. package/lib/icon/src/icon.vue.js +1 -1
  139. package/lib/icon-input/src/icon-content.vue.js +1 -1
  140. package/lib/icon-input/src/icon-dialog.vue.js +1 -1
  141. package/lib/icon-input/src/icon-input.vue.js +1 -1
  142. package/lib/image-input/src/image-input.vue.js +1 -1
  143. package/lib/image-list-input/src/image-list-input.vue.js +1 -1
  144. package/lib/index.js +7 -2
  145. package/lib/index.js.map +1 -1
  146. package/lib/page-diy/src/components/DiyCloud.vue.js +1 -1
  147. package/lib/page-diy/src/components/DragBox.vue.js +2 -6
  148. package/lib/page-diy/src/components/DragBox.vue.js.map +1 -1
  149. package/lib/page-diy/src/components/DragTool.vue.js +1 -1
  150. package/lib/page-diy/src/components/PreviewPhone.vue.js +1 -1
  151. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js +1 -1
  152. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +1 -1
  153. package/lib/page-diy/src/page-diy.vue.js +32 -100
  154. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  155. package/lib/page-diy/src/views/min/DkMinBlank.vue.js +1 -1
  156. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +1 -1
  157. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +1 -1
  158. package/lib/page-diy/src/views/min/DkMinTextarea.vue.js +1 -1
  159. package/lib/page-diy/src/views/min/DkMinTitle.vue.js +1 -1
  160. package/lib/page-diy/src/views/min/DkMinVideo.vue.js +1 -1
  161. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js +1 -1
  162. package/lib/page-diy/src/views/web/DkViewCell.vue.js +1 -1
  163. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +1 -1
  164. package/lib/page-diy/src/views/web/DkViewDialog.vue.js +1 -1
  165. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js +1 -1
  166. package/lib/page-diy/src/views/web/DkViewImage.vue.js +1 -1
  167. package/lib/page-diy/src/views/web/DkViewMusic.vue.js +1 -1
  168. package/lib/page-diy/src/views/web/DkViewNavBar.vue.js +1 -1
  169. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js +1 -1
  170. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js +1 -1
  171. package/lib/page-diy/src/views/web/DkViewTabbar.vue.js +1 -1
  172. package/lib/page-diy/src/views/web/DkViewTextarea.vue.js +1 -1
  173. package/lib/page-diy/src/views/web/DkViewTitle.vue.js +1 -1
  174. package/lib/page-diy/src/views/web/DkViewVideo.vue.js +1 -1
  175. package/lib/page-diy/style/dk-page-diy.css +1 -1
  176. package/lib/page-diy/style/index.css +1 -1
  177. package/lib/poster-input/src/component/poster.vue.js +1 -1
  178. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.js +1 -1
  179. package/lib/poster-input/src/component/views/DkPosterViewImage.vue.js +1 -1
  180. package/lib/poster-input/src/component/views/DkPosterViewName.vue.js +1 -1
  181. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.js +1 -1
  182. package/lib/poster-input/src/component/views/DkPosterViewText.vue.js +1 -1
  183. package/lib/poster-input/src/component/views/quick-action.vue.js +1 -1
  184. package/lib/poster-input/src/poster-input.vue.js +1 -1
  185. package/lib/select/src/select.vue.js +1 -1
  186. package/lib/style-animation-input/src/style-animation-input.vue.js +1 -1
  187. package/lib/style-background-input/src/style-background-input.vue.js +1 -1
  188. package/lib/style-border-input/src/style-border-input.vue.js +1 -1
  189. package/lib/style-border-input/src/style-border-input.vue2.js +1 -1
  190. package/lib/style-border-input/src/style-border-input.vue2.js.map +1 -1
  191. package/lib/style-border-input/style/index.css +1 -1
  192. package/lib/style-box-input/src/style-box-input.vue.js +1 -1
  193. package/lib/style-box-input/src/style-box-input.vue2.js +2 -6
  194. package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
  195. package/lib/style-font-input/src/style-font-input.vue.js +1 -1
  196. package/lib/style-font-input/src/style-font-input.vue2.js +2 -20
  197. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  198. package/lib/style-input/src/style-input.vue.js +1 -1
  199. package/lib/style-input/src/style-input.vue2.js +0 -5
  200. package/lib/style-input/src/style-input.vue2.js.map +1 -1
  201. package/lib/style-number-input/src/style-number-input.vue.js +1 -1
  202. package/lib/style-position-input/src/style-position-input.vue.js +1 -1
  203. package/lib/style-shadow-input/src/style-shadow-content.vue.js +1 -1
  204. package/lib/style-shadow-input/src/style-shadow-content.vue2.js +2 -6
  205. package/lib/style-shadow-input/src/style-shadow-content.vue2.js.map +1 -1
  206. package/lib/style-shadow-input/src/style-shadow-input.vue.js +1 -1
  207. package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
  208. package/lib/table/src/components/ComSearch.vue.js +1 -1
  209. package/lib/table/src/components/FieldRender.vue.js +1 -1
  210. package/lib/table/src/components/RecycleDialog.vue.js +1 -1
  211. package/lib/table/src/components/header.vue.js +1 -1
  212. package/lib/table/src/table.vue.js +1 -1
  213. package/lib/test/src/test.vue.js +1 -1
  214. package/lib/tiny-editor/src/tiny-editor.vue.js +1 -1
  215. package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -3
  216. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  217. package/lib/tiny-editor/style/index.css +1 -1
  218. package/lib/tiny-editor/style/index.scss +3 -2
  219. package/lib/video-input/src/video-input.vue.js +1 -1
  220. package/lib/video-list-input/src/video-list-input.vue.js +1 -1
  221. package/package.json +1 -1
@@ -244,9 +244,7 @@ const _sfc_main = vue.defineComponent({
244
244
  // 处理对象节点
245
245
  if (Array.isArray(node.children)) {
246
246
  // 只保留 children 数组中的对象类型元素
247
- node.children = node.children.filter(
248
- (child) => typeof child === 'object' && child !== null
249
- );
247
+ node.children = node.children.filter((child) => typeof child === 'object' && child !== null);
250
248
  // 递归处理每个子节点
251
249
  node.children = cleanTreeData(node.children);
252
250
  }
@@ -259,10 +257,7 @@ const _sfc_main = vue.defineComponent({
259
257
  vue.watch(
260
258
  () => data.dragForm,
261
259
  () => {
262
- data.treeAside.treeData = methods.parseRule(
263
- deepextend.deepCopy(data.dragForm.api.rule[0].children),
264
- true
265
- );
260
+ data.treeAside.treeData = methods.parseRule(deepextend.deepCopy(data.dragForm.api.rule[0].children), true);
266
261
  data.treeAside.treeData = cleanTreeData(data.treeAside.treeData);
267
262
  },
268
263
  {
@@ -470,9 +465,7 @@ const _sfc_main = vue.defineComponent({
470
465
  rules = [];
471
466
  }
472
467
  data.children = methods.makeChildren(
473
- methods.loadRule(
474
- is.String(rules) ? form.designerForm.parseJson(rules) : deepextend.deepCopy(rules)
475
- )
468
+ methods.loadRule(is.String(rules) ? form.designerForm.parseJson(rules) : deepextend.deepCopy(rules))
476
469
  );
477
470
  methods.clearActiveRule();
478
471
  data.dragForm.rule = methods.makeDragRule(data.children);
@@ -591,15 +584,9 @@ const _sfc_main = vue.defineComponent({
591
584
  field = tocase.lower(field);
592
585
  if (field.indexOf('effect') === 0 && field.indexOf('>') > -1) {
593
586
  delete data.activeRule.effect[field.split('>')[1]];
594
- } else if (
595
- field.indexOf('props') === 0 &&
596
- field.indexOf('>') > -1
597
- ) {
587
+ } else if (field.indexOf('props') === 0 && field.indexOf('>') > -1) {
598
588
  delete data.activeRule.props[field.split('>')[1]];
599
- } else if (
600
- field.indexOf('attrs') === 0 &&
601
- field.indexOf('>') > -1
602
- ) {
589
+ } else if (field.indexOf('attrs') === 0 && field.indexOf('>') > -1) {
603
590
  data.activeRule.attrs[field.split('>')[1]] = value;
604
591
  } else if (field === 'child') {
605
592
  delete data.activeRule.children[0];
@@ -628,15 +615,9 @@ const _sfc_main = vue.defineComponent({
628
615
  field = tocase.lower(field);
629
616
  if (field.indexOf('effect') === 0 && field.indexOf('>') > -1) {
630
617
  data.activeRule.effect[field.split('>')[1]] = value;
631
- } else if (
632
- field.indexOf('props') === 0 &&
633
- field.indexOf('>') > -1
634
- ) {
618
+ } else if (field.indexOf('props') === 0 && field.indexOf('>') > -1) {
635
619
  data.activeRule.props[field.split('>')[1]] = value;
636
- } else if (
637
- field.indexOf('attrs') === 0 &&
638
- field.indexOf('>') > -1
639
- ) {
620
+ } else if (field.indexOf('attrs') === 0 && field.indexOf('>') > -1) {
640
621
  data.activeRule.attrs[field.split('>')[1]] = value;
641
622
  } else if (field === 'child') {
642
623
  data.activeRule.children[0] = value;
@@ -748,18 +729,14 @@ const _sfc_main = vue.defineComponent({
748
729
  ;['props', 'effect', 'attrs'].forEach((name) => {
749
730
  rule[name] &&
750
731
  Object.keys(rule[name]).forEach((k) => {
751
- formData['formCreate' + help.upper(name) + '>' + k] = deepextend.deepCopy(
752
- rule[name][k]
753
- );
732
+ formData['formCreate' + help.upper(name) + '>' + k] = deepextend.deepCopy(rule[name][k]);
754
733
  });
755
734
  });
756
735
  // console.log('formData', formData)
757
736
  data.propsForm.value = formData;
758
737
 
759
738
  data.showBaseRule =
760
- is.hasProperty(rule, 'field') &&
761
- rule.input !== false &&
762
- (!config.value || config.value.showBaseForm !== false);
739
+ is.hasProperty(rule, 'field') && rule.input !== false && (!config.value || config.value.showBaseForm !== false);
763
740
  if (data.showBaseRule) {
764
741
  data.dragForm.api.refreshValidate();
765
742
  }
@@ -786,9 +763,7 @@ const _sfc_main = vue.defineComponent({
786
763
  const rule = methods.makeRule(ruleList[menu.name]);
787
764
  const config = rule.children[0].config.config;
788
765
  const count = config.count ? config.count : 99;
789
- const _count = countObj.value[config.name]
790
- ? countObj.value[config.name]
791
- : 0;
766
+ const _count = countObj.value[config.name] ? countObj.value[config.name] : 0;
792
767
  if (_count >= count) {
793
768
  elementPlus.ElNotification({
794
769
  title: '警告',
@@ -802,10 +777,7 @@ const _sfc_main = vue.defineComponent({
802
777
  data.added = true;
803
778
  },
804
779
  dragEnd(children, { newIndex, oldIndex }) {
805
- if (
806
- !data.added &&
807
- !(data.moveRule === children && newIndex === oldIndex)
808
- ) {
780
+ if (!data.added && !(data.moveRule === children && newIndex === oldIndex)) {
809
781
  const rule = data.moveRule.splice(oldIndex, 1);
810
782
  children.splice(newIndex, 0, rule[0]);
811
783
  }
@@ -827,21 +799,12 @@ const _sfc_main = vue.defineComponent({
827
799
  let drag;
828
800
  if (config.drag) {
829
801
  rule.children.push(
830
- (drag = methods.makeDrag(
831
- config.drag,
832
- rule.type,
833
- methods.makeChildren([]),
834
- {
835
- end: (inject, evt) =>
836
- methods.dragEnd(inject.self.children, evt),
837
- add: (inject, evt) =>
838
- methods.dragAdd(inject.self.children, evt),
839
- start: (inject, evt) =>
840
- methods.dragStart(inject.self.children, evt),
841
- unchoose: (inject, evt) =>
842
- methods.dragUnchoose(inject.self.children, evt),
843
- }
844
- ))
802
+ (drag = methods.makeDrag(config.drag, rule.type, methods.makeChildren([]), {
803
+ end: (inject, evt) => methods.dragEnd(inject.self.children, evt),
804
+ add: (inject, evt) => methods.dragAdd(inject.self.children, evt),
805
+ start: (inject, evt) => methods.dragStart(inject.self.children, evt),
806
+ unchoose: (inject, evt) => methods.dragUnchoose(inject.self.children, evt),
807
+ }))
845
808
  );
846
809
  }
847
810
  if (config.children && !_rule) {
@@ -851,10 +814,7 @@ const _sfc_main = vue.defineComponent({
851
814
  }
852
815
  }
853
816
 
854
- const dragMask =
855
- mask.value !== undefined
856
- ? mask.value !== false
857
- : config.mask !== false;
817
+ const dragMask = mask.value !== undefined ? mask.value !== false : config.mask !== false;
858
818
  if (config.inside) {
859
819
  rule.children = methods.makeChildren([
860
820
  {
@@ -890,10 +850,9 @@ const _sfc_main = vue.defineComponent({
890
850
  const config = top.parent.config.config;
891
851
  const item = ruleList[config.children];
892
852
  if (!item) return
893
- ;(!config.drag
894
- ? top.parent
895
- : top.parent.children[0]
896
- ).children[0].children.push(methods.makeRule(item));
853
+ ;(!config.drag ? top.parent : top.parent.children[0]).children[0].children.push(
854
+ methods.makeRule(item)
855
+ );
897
856
  },
898
857
  copy: ({ self }) => {
899
858
  const top = methods.getParent(self);
@@ -946,10 +905,7 @@ const _sfc_main = vue.defineComponent({
946
905
  const config = self.children[0].config.config;
947
906
  const item = ruleList[config.children];
948
907
  if (!item) return
949
- ;(!config.drag
950
- ? self
951
- : self.children[0]
952
- ).children[0].children.push(methods.makeRule(item));
908
+ ;(!config.drag ? self : self.children[0]).children[0].children.push(methods.makeRule(item));
953
909
  },
954
910
  copy: ({ self }) => {
955
911
  vm.emit('copy', self.children[0]);
@@ -957,11 +913,7 @@ const _sfc_main = vue.defineComponent({
957
913
  const copyRule = form.designerForm.copyRule(top.parent);
958
914
  // 解决复制后,组件的setting配置失效
959
915
  copyRule.props.setting = copyRule.children[0].setting;
960
- top.root.children.splice(
961
- top.root.children.indexOf(top.parent) + 1,
962
- 0,
963
- copyRule
964
- );
916
+ top.root.children.splice(top.root.children.indexOf(top.parent) + 1, 0, copyRule);
965
917
  },
966
918
  active: ({ self }) => {
967
919
  vm.emit('active', self.children[0]);
@@ -979,18 +931,15 @@ const _sfc_main = vue.defineComponent({
979
931
  data.dragName = name;
980
932
  if (name === 'left') {
981
933
  // 获取._fc-l的宽度
982
- data.asideValue =
983
- document.getElementsByClassName('_fc-l')[0].offsetWidth;
934
+ data.asideValue = document.getElementsByClassName('_fc-l')[0].offsetWidth;
984
935
  }
985
936
  if (name === 'right') {
986
- data.asideValue =
987
- document.getElementsByClassName('_fc-r')[0].offsetWidth;
937
+ data.asideValue = document.getElementsByClassName('_fc-r')[0].offsetWidth;
988
938
  }
989
939
  document.body.style.cursor = 'ew-resize';
990
940
  if (name === 'tree') {
991
941
  data.startValue = e.clientY;
992
- data.asideValue =
993
- document.getElementsByClassName('children-list')[0].offsetHeight;
942
+ data.asideValue = document.getElementsByClassName('children-list')[0].offsetHeight;
994
943
  console.log('data.startValue', data.startValue);
995
944
  console.log('data.asideValue', data.asideValue);
996
945
  document.body.style.cursor = 'n-resize';
@@ -1082,20 +1031,11 @@ const _sfc_main = vue.defineComponent({
1082
1031
  const draggingRule = draggingNode.data.config.config;
1083
1032
  const dropRule = dropNode.data.config.config;
1084
1033
  // 内部元素放到指定的外部才可以放置
1085
- if (
1086
- type === 'inner' &&
1087
- draggingRule.inside &&
1088
- draggingRule.name === dropRule.children
1089
- ) {
1034
+ if (type === 'inner' && draggingRule.inside && draggingRule.name === dropRule.children) {
1090
1035
  return true
1091
1036
  }
1092
1037
  // 同样父级
1093
- if (
1094
- type !== 'inner' &&
1095
- draggingRule.name === dropRule.name &&
1096
- draggingRule.inside &&
1097
- dropRule.inside
1098
- ) {
1038
+ if (type !== 'inner' && draggingRule.name === dropRule.name && draggingRule.inside && dropRule.inside) {
1099
1039
  return true
1100
1040
  }
1101
1041
 
@@ -1121,9 +1061,7 @@ const _sfc_main = vue.defineComponent({
1121
1061
  methods.setRule(data.treeAside.treeData);
1122
1062
  },
1123
1063
  };
1124
- data.dragForm.rule = methods.makeDragRule(
1125
- methods.makeChildren(data.children)
1126
- );
1064
+ data.dragForm.rule = methods.makeDragRule(methods.makeChildren(data.children));
1127
1065
  return {
1128
1066
  ...vue.toRefs(data),
1129
1067
  ...methods,
@@ -1194,11 +1132,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1194
1132
  item: vue.withCtx(({ element }) => [
1195
1133
  (vue.openBlock(), vue.createElementBlock("div", {
1196
1134
  key: element.id,
1197
- class: vue.normalizeClass(["_fc-l-item",
1198
- element.count - (_ctx.countObj[element.name] || 0) <= 0
1199
- ? 'not-drag'
1200
- : ''
1201
- ])
1135
+ class: vue.normalizeClass(["_fc-l-item", element.count - (_ctx.countObj[element.name] || 0) <= 0 ? 'not-drag' : ''])
1202
1136
  }, [
1203
1137
  vue.createElementVNode("div", _hoisted_3, [
1204
1138
  vue.createVNode(_component_dk_icon, {
@@ -1244,9 +1178,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1244
1178
  default: vue.withCtx(({ data }) => [
1245
1179
  vue.createElementVNode("div", {
1246
1180
  class: "el-tree-node-content",
1247
- style: vue.normalizeStyle(
1248
- _ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:red' : ''
1249
- )
1181
+ style: vue.normalizeStyle(_ctx.activeRule && _ctx.activeRule._id === data._id ? 'color:red' : '')
1250
1182
  }, [
1251
1183
  vue.createTextVNode(vue.toDisplayString(data.type) + " ", 1 /* TEXT */),
1252
1184
  (data.config?.config.label)
@@ -1458,7 +1390,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1458
1390
  _: 3 /* FORWARDED */
1459
1391
  }))
1460
1392
  }
1461
- var _PageDiy = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);
1393
+ var _PageDiy = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\page-diy.vue"]]);
1462
1394
 
1463
1395
  exports.default = _PageDiy;
1464
1396
  //# sourceMappingURL=page-diy.vue.js.map