@vipl520/dk-ui 1.0.12 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (641) hide show
  1. package/dist/attributes.json +8 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +4025 -3202
  4. package/dist/index.min.js +7 -7
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +7 -7
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +4022 -3201
  9. package/dist/tags.json +7 -0
  10. package/dist/web-types.json +35 -1
  11. package/es/attachment/src/attachment.vue.mjs +1 -1
  12. package/es/attachment/src/file-icon.vue.mjs +1 -1
  13. package/es/attachment-dialog/src/attachment-dialog.vue.mjs +1 -1
  14. package/es/audio-input/src/audio-input.vue.mjs +1 -1
  15. package/es/audio-list-input/src/audio-list-input.vue.mjs +1 -1
  16. package/es/box-size-input/src/box-size-input.vue.mjs +1 -1
  17. package/es/color-input/src/color-input.vue.mjs +1 -1
  18. package/es/dialog/src/dialog.vue.mjs +1 -1
  19. package/es/file-input/src/file-input.vue.mjs +1 -1
  20. package/es/file-list-input/src/file-list-input.vue.mjs +1 -1
  21. package/es/file-list-input/style/index.scss +1 -1
  22. package/es/form/src/form.vue.mjs +1 -1
  23. package/es/form/style/index.css +1 -1
  24. package/es/form/style/index.scss +3 -3
  25. package/es/group/src/group.vue.mjs +1 -1
  26. package/es/hot-area-input/index.d.ts +15 -0
  27. package/es/hot-area-input/index.mjs +8 -0
  28. package/es/hot-area-input/index.mjs.map +1 -0
  29. package/es/hot-area-input/src/component/hot-area-content.vue.d.ts +24 -0
  30. package/es/hot-area-input/src/component/hot-area-content.vue.mjs +7 -0
  31. package/es/hot-area-input/src/component/hot-area-content.vue.mjs.map +1 -0
  32. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs +262 -0
  33. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -0
  34. package/es/hot-area-input/src/hot-area-input.vue.d.ts +14 -0
  35. package/es/hot-area-input/src/hot-area-input.vue.mjs +7 -0
  36. package/es/hot-area-input/src/hot-area-input.vue.mjs.map +1 -0
  37. package/es/hot-area-input/src/hot-area-input.vue2.mjs +65 -0
  38. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -0
  39. package/es/hot-area-input/src/props.d.ts +8 -0
  40. package/es/hot-area-input/src/props.mjs +11 -0
  41. package/es/hot-area-input/src/props.mjs.map +1 -0
  42. package/es/hot-area-input/style/index.css +1 -0
  43. package/es/hot-area-input/style/index.scss +39 -0
  44. package/es/icon/src/icon.vue.mjs +1 -1
  45. package/es/icon-input/src/icon-content.vue.mjs +1 -1
  46. package/es/icon-input/src/icon-dialog.vue.mjs +1 -1
  47. package/es/icon-input/src/icon-input.vue.mjs +1 -1
  48. package/es/image-input/src/image-input.vue.mjs +1 -1
  49. package/es/image-list-input/src/image-list-input.vue.mjs +1 -1
  50. package/es/index.d.ts +1 -0
  51. package/es/index.mjs +5 -1
  52. package/es/index.mjs.map +1 -1
  53. package/es/index.scss +1 -62
  54. package/es/page-diy/index.d.ts +77 -23
  55. package/es/page-diy/index.mjs +0 -4
  56. package/es/page-diy/index.mjs.map +1 -1
  57. package/es/page-diy/src/components/DragBox.vue.mjs +2 -1
  58. package/es/page-diy/src/components/DragBox.vue.mjs.map +1 -1
  59. package/es/page-diy/src/components/DragTool.vue.mjs +1 -1
  60. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  61. package/es/page-diy/src/components/PreviewPhone.vue.mjs +1 -1
  62. package/es/page-diy/src/components/PreviewPhone.vue2.mjs +27 -5
  63. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  64. package/es/page-diy/src/config/base/dkPage.mjs +0 -49
  65. package/es/page-diy/src/config/base/dkPage.mjs.map +1 -1
  66. package/es/page-diy/src/config/base/dkSetting.mjs +0 -190
  67. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  68. package/es/page-diy/src/config/rule/min/common/DkMinBlank.d.ts +24 -0
  69. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs +22 -0
  70. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs.map +1 -0
  71. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.d.ts +38 -0
  72. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs +43 -0
  73. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs.map +1 -0
  74. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +115 -0
  75. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs +177 -0
  76. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs.map +1 -0
  77. package/es/page-diy/src/config/rule/min/common/DkMinTextarea.d.ts +33 -0
  78. package/es/page-diy/src/config/rule/min/common/DkMinTextarea.mjs +36 -0
  79. package/es/page-diy/src/config/rule/min/common/DkMinTextarea.mjs.map +1 -0
  80. package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +68 -0
  81. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +78 -0
  82. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -0
  83. package/es/page-diy/src/config/rule/min/common/DkMinVideo.d.ts +54 -0
  84. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +52 -0
  85. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -0
  86. package/es/page-diy/src/config/rule/min/common/index.d.ts +620 -0
  87. package/es/page-diy/src/config/rule/min/common/index.mjs +19 -0
  88. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -0
  89. package/es/page-diy/src/config/rule/min/index.d.ts +624 -0
  90. package/es/page-diy/src/config/rule/min/index.mjs +17 -0
  91. package/es/page-diy/src/config/rule/min/index.mjs.map +1 -0
  92. package/es/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.mjs +1 -3
  93. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -0
  94. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -0
  95. package/es/page-diy/src/config/rule/web/common/DkViewCell.mjs.map +1 -0
  96. package/es/page-diy/src/config/rule/web/common/DkViewCommonBtn.mjs.map +1 -0
  97. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -0
  98. package/es/page-diy/src/config/rule/web/common/DkViewGridCellList.mjs.map +1 -0
  99. package/es/page-diy/src/config/rule/web/common/DkViewImage.mjs.map +1 -0
  100. package/es/page-diy/src/config/rule/web/common/DkViewMusic.mjs.map +1 -0
  101. package/es/page-diy/src/config/rule/web/common/DkViewNavBar.mjs.map +1 -0
  102. package/es/page-diy/src/config/rule/web/common/DkViewNoticeBar.mjs.map +1 -0
  103. package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs.map +1 -0
  104. package/es/page-diy/src/config/rule/web/common/DkViewTabbar.mjs.map +1 -0
  105. package/es/page-diy/src/config/rule/web/common/DkViewTextarea.mjs.map +1 -0
  106. package/es/page-diy/src/config/rule/{common → web/common}/DkViewVideo.mjs +3 -9
  107. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -0
  108. package/es/page-diy/src/config/rule/web/common/index.mjs.map +1 -0
  109. package/es/page-diy/src/config/rule/{index.d.ts → web/index.d.ts} +2 -2
  110. package/es/page-diy/src/config/rule/{index.mjs → web/index.mjs} +3 -3
  111. package/es/page-diy/src/config/rule/web/index.mjs.map +1 -0
  112. package/es/page-diy/src/config/rule/web/layout/DkViewTitle.mjs.map +1 -0
  113. package/es/page-diy/src/config/rule/web/layout/col.mjs.map +1 -0
  114. package/es/page-diy/src/config/rule/web/layout/divider.mjs.map +1 -0
  115. package/es/page-diy/src/config/rule/web/layout/index.mjs.map +1 -0
  116. package/es/page-diy/src/config/rule/web/layout/row.mjs.map +1 -0
  117. package/es/page-diy/src/config/rule/web/layout/space.mjs.map +1 -0
  118. package/es/page-diy/src/config/rule/web/layout/swip-item.mjs.map +1 -0
  119. package/es/page-diy/src/config/rule/web/layout/swipe.mjs.map +1 -0
  120. package/es/page-diy/src/config/rule/web/layout/tab.mjs.map +1 -0
  121. package/es/page-diy/src/config/rule/web/layout/tabs.mjs.map +1 -0
  122. package/es/page-diy/src/config/rule/web/layout/vanEmpty.mjs.map +1 -0
  123. package/es/page-diy/src/page-diy.vue.d.ts +77 -23
  124. package/es/page-diy/src/page-diy.vue.mjs +55 -189
  125. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  126. package/es/page-diy/src/props.d.ts +29 -4
  127. package/es/page-diy/src/props.mjs +36 -6
  128. package/es/page-diy/src/props.mjs.map +1 -1
  129. package/es/page-diy/src/utils/help.mjs.map +1 -1
  130. package/es/page-diy/src/views/min/DkMinBlank.vue.d.ts +14 -0
  131. package/es/page-diy/src/views/min/DkMinBlank.vue.mjs +28 -0
  132. package/es/page-diy/src/views/min/DkMinBlank.vue.mjs.map +1 -0
  133. package/es/page-diy/src/views/min/DkMinHotArea.vue.d.ts +27 -0
  134. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +127 -0
  135. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -0
  136. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +68 -0
  137. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +86 -0
  138. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -0
  139. package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs +28 -0
  140. package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs.map +1 -0
  141. package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +95 -0
  142. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +62 -0
  143. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -0
  144. package/es/page-diy/src/views/min/DkMinVideo.vue.mjs +86 -0
  145. package/es/page-diy/src/views/min/DkMinVideo.vue.mjs.map +1 -0
  146. package/es/page-diy/src/views/min/index.mjs +18 -0
  147. package/es/page-diy/src/views/min/index.mjs.map +1 -0
  148. package/es/page-diy/src/views/{DkViewBulletChat.vue.mjs → web/DkViewBulletChat.vue.mjs} +2 -2
  149. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -0
  150. package/es/page-diy/src/views/{DkViewCell.vue.mjs → web/DkViewCell.vue.mjs} +2 -2
  151. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -0
  152. package/es/page-diy/src/views/{DkViewCommonBtn.vue.mjs → web/DkViewCommonBtn.vue.mjs} +3 -5
  153. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -0
  154. package/es/page-diy/src/views/{DkViewDialog.vue.mjs → web/DkViewDialog.vue.mjs} +2 -2
  155. package/es/page-diy/src/views/web/DkViewDialog.vue.mjs.map +1 -0
  156. package/es/page-diy/src/views/{DkViewGridCellList.vue.mjs → web/DkViewGridCellList.vue.mjs} +2 -2
  157. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -0
  158. package/es/page-diy/src/views/{DkViewImage.vue.mjs → web/DkViewImage.vue.mjs} +2 -2
  159. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -0
  160. package/es/page-diy/src/views/{DkViewMusic.vue.mjs → web/DkViewMusic.vue.mjs} +2 -2
  161. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -0
  162. package/es/page-diy/src/views/{DkViewNavBar.vue.mjs → web/DkViewNavBar.vue.mjs} +2 -2
  163. package/es/page-diy/src/views/web/DkViewNavBar.vue.mjs.map +1 -0
  164. package/es/page-diy/src/views/{DkViewNoticeBar.vue.mjs → web/DkViewNoticeBar.vue.mjs} +2 -2
  165. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -0
  166. package/es/page-diy/src/views/{DkViewSwipe.vue.mjs → web/DkViewSwipe.vue.mjs} +2 -2
  167. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -0
  168. package/es/page-diy/src/views/{DkViewTabbar.vue.mjs → web/DkViewTabbar.vue.mjs} +2 -2
  169. package/es/page-diy/src/views/web/DkViewTabbar.vue.mjs.map +1 -0
  170. package/es/page-diy/src/views/{DkViewTextarea.vue.mjs → web/DkViewTextarea.vue.mjs} +2 -2
  171. package/es/page-diy/src/views/web/DkViewTextarea.vue.mjs.map +1 -0
  172. package/es/page-diy/src/views/{DkViewTitle.vue.mjs → web/DkViewTitle.vue.mjs} +2 -2
  173. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -0
  174. package/es/page-diy/src/views/{DkViewVideo.vue.mjs → web/DkViewVideo.vue.mjs} +2 -2
  175. package/es/page-diy/src/views/web/DkViewVideo.vue.mjs.map +1 -0
  176. package/es/page-diy/src/views/web/index.mjs.map +1 -0
  177. package/es/page-diy/style/drag-tool.css +1 -1
  178. package/es/page-diy/style/drag-tool.scss +4 -3
  179. package/es/page-diy/style/index.css +1 -1
  180. package/es/page-diy/style/index.scss +1 -0
  181. package/es/page-diy/style/minViews/index.scss +26 -0
  182. package/es/page-diy/style/preview-phone.css +1 -1
  183. package/es/page-diy/style/preview-phone.scss +36 -2
  184. package/es/poster-input/src/component/poster.vue.mjs +1 -1
  185. package/es/poster-input/src/component/poster.vue2.mjs +13 -13
  186. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  187. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.mjs +1 -1
  188. package/es/poster-input/src/component/views/DkPosterViewImage.vue.mjs +1 -1
  189. package/es/poster-input/src/component/views/DkPosterViewName.vue.mjs +1 -1
  190. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.mjs +1 -1
  191. package/es/poster-input/src/component/views/DkPosterViewText.vue.mjs +1 -1
  192. package/es/poster-input/src/component/views/quick-action.vue.mjs +1 -1
  193. package/es/poster-input/src/poster-input.vue.mjs +1 -1
  194. package/es/select/src/select.vue.mjs +1 -1
  195. package/es/style-background-input/src/style-background-input.vue.mjs +1 -1
  196. package/es/style-border-input/src/style-border-input.vue.mjs +1 -1
  197. package/es/style-border-input/src/style-border-input.vue2.mjs +49 -45
  198. package/es/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
  199. package/es/style-box-input/src/style-box-input.vue.mjs +1 -1
  200. package/es/style-font-input/src/style-font-input.vue.mjs +1 -1
  201. package/es/style-input/src/style-input.vue.mjs +1 -1
  202. package/es/style-number-input/src/style-number-input.vue.mjs +1 -1
  203. package/es/style-position-input/src/style-position-input.vue.mjs +1 -1
  204. package/es/style-shadow-input/src/style-shadow-content.vue.mjs +1 -1
  205. package/es/style-shadow-input/src/style-shadow-input.vue.mjs +1 -1
  206. package/es/table/src/components/ComSearch.vue.mjs +1 -1
  207. package/es/table/src/components/FieldRender.vue.mjs +1 -1
  208. package/es/table/src/components/RecycleDialog.vue.mjs +1 -1
  209. package/es/table/src/components/header.vue.mjs +1 -1
  210. package/es/table/src/table.vue.mjs +1 -1
  211. package/es/test/src/test.vue.mjs +1 -1
  212. package/es/tiny-editor/src/tiny-editor.vue.mjs +1 -1
  213. package/es/video-input/src/video-input.vue.mjs +1 -1
  214. package/es/video-list-input/src/video-list-input.vue.mjs +1 -1
  215. package/lib/attachment/src/attachment.vue.js +1 -1
  216. package/lib/attachment/src/file-icon.vue.js +1 -1
  217. package/lib/attachment-dialog/src/attachment-dialog.vue.js +1 -1
  218. package/lib/audio-input/src/audio-input.vue.js +1 -1
  219. package/lib/audio-list-input/src/audio-list-input.vue.js +1 -1
  220. package/lib/box-size-input/src/box-size-input.vue.js +1 -1
  221. package/lib/color-input/src/color-input.vue.js +1 -1
  222. package/lib/dialog/src/dialog.vue.js +1 -1
  223. package/lib/file-input/src/file-input.vue.js +1 -1
  224. package/lib/file-list-input/src/file-list-input.vue.js +1 -1
  225. package/lib/file-list-input/style/index.scss +1 -1
  226. package/lib/form/src/form.vue.js +1 -1
  227. package/lib/form/style/index.css +1 -1
  228. package/lib/form/style/index.scss +3 -3
  229. package/lib/group/src/group.vue.js +1 -1
  230. package/lib/hot-area-input/index.d.ts +15 -0
  231. package/lib/hot-area-input/index.js +14 -0
  232. package/lib/hot-area-input/index.js.map +1 -0
  233. package/lib/hot-area-input/src/component/hot-area-content.vue.d.ts +24 -0
  234. package/lib/hot-area-input/src/component/hot-area-content.vue.js +11 -0
  235. package/lib/hot-area-input/src/component/hot-area-content.vue.js.map +1 -0
  236. package/lib/hot-area-input/src/component/hot-area-content.vue2.js +266 -0
  237. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -0
  238. package/lib/hot-area-input/src/hot-area-input.vue.d.ts +14 -0
  239. package/lib/hot-area-input/src/hot-area-input.vue.js +11 -0
  240. package/lib/hot-area-input/src/hot-area-input.vue.js.map +1 -0
  241. package/lib/hot-area-input/src/hot-area-input.vue2.js +69 -0
  242. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -0
  243. package/lib/hot-area-input/src/props.d.ts +8 -0
  244. package/lib/hot-area-input/src/props.js +13 -0
  245. package/lib/hot-area-input/src/props.js.map +1 -0
  246. package/lib/hot-area-input/style/index.css +1 -0
  247. package/lib/hot-area-input/style/index.scss +39 -0
  248. package/lib/icon/src/icon.vue.js +1 -1
  249. package/lib/icon-input/src/icon-content.vue.js +1 -1
  250. package/lib/icon-input/src/icon-dialog.vue.js +1 -1
  251. package/lib/icon-input/src/icon-input.vue.js +1 -1
  252. package/lib/image-input/src/image-input.vue.js +1 -1
  253. package/lib/image-list-input/src/image-list-input.vue.js +1 -1
  254. package/lib/index.d.ts +1 -0
  255. package/lib/index.js +148 -142
  256. package/lib/index.js.map +1 -1
  257. package/lib/index.scss +1 -62
  258. package/lib/page-diy/index.d.ts +77 -23
  259. package/lib/page-diy/index.js +0 -4
  260. package/lib/page-diy/index.js.map +1 -1
  261. package/lib/page-diy/src/components/DragBox.vue.js +2 -1
  262. package/lib/page-diy/src/components/DragBox.vue.js.map +1 -1
  263. package/lib/page-diy/src/components/DragTool.vue.js +1 -1
  264. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  265. package/lib/page-diy/src/components/PreviewPhone.vue.js +1 -1
  266. package/lib/page-diy/src/components/PreviewPhone.vue2.js +27 -5
  267. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  268. package/lib/page-diy/src/config/base/dkPage.js +0 -49
  269. package/lib/page-diy/src/config/base/dkPage.js.map +1 -1
  270. package/lib/page-diy/src/config/base/dkSetting.js +0 -190
  271. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  272. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.d.ts +24 -0
  273. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js +26 -0
  274. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js.map +1 -0
  275. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.d.ts +38 -0
  276. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js +47 -0
  277. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js.map +1 -0
  278. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +115 -0
  279. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js +181 -0
  280. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js.map +1 -0
  281. package/lib/page-diy/src/config/rule/min/common/DkMinTextarea.d.ts +33 -0
  282. package/lib/page-diy/src/config/rule/min/common/DkMinTextarea.js +40 -0
  283. package/lib/page-diy/src/config/rule/min/common/DkMinTextarea.js.map +1 -0
  284. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +68 -0
  285. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +82 -0
  286. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -0
  287. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.d.ts +54 -0
  288. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +56 -0
  289. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -0
  290. package/lib/page-diy/src/config/rule/min/common/index.d.ts +620 -0
  291. package/lib/page-diy/src/config/rule/min/common/index.js +22 -0
  292. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -0
  293. package/lib/page-diy/src/config/rule/min/index.d.ts +624 -0
  294. package/lib/page-diy/src/config/rule/min/index.js +20 -0
  295. package/lib/page-diy/src/config/rule/min/index.js.map +1 -0
  296. package/lib/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.js +1 -3
  297. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -0
  298. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -0
  299. package/lib/page-diy/src/config/rule/web/common/DkViewCell.js.map +1 -0
  300. package/lib/page-diy/src/config/rule/web/common/DkViewCommonBtn.js.map +1 -0
  301. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -0
  302. package/lib/page-diy/src/config/rule/web/common/DkViewGridCellList.js.map +1 -0
  303. package/lib/page-diy/src/config/rule/web/common/DkViewImage.js.map +1 -0
  304. package/lib/page-diy/src/config/rule/web/common/DkViewMusic.js.map +1 -0
  305. package/lib/page-diy/src/config/rule/web/common/DkViewNavBar.js.map +1 -0
  306. package/lib/page-diy/src/config/rule/web/common/DkViewNoticeBar.js.map +1 -0
  307. package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js.map +1 -0
  308. package/lib/page-diy/src/config/rule/web/common/DkViewTabbar.js.map +1 -0
  309. package/lib/page-diy/src/config/rule/web/common/DkViewTextarea.js.map +1 -0
  310. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewVideo.js +3 -9
  311. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -0
  312. package/lib/page-diy/src/config/rule/web/common/index.js.map +1 -0
  313. package/lib/page-diy/src/config/rule/{index.d.ts → web/index.d.ts} +2 -2
  314. package/lib/page-diy/src/config/rule/{index.js → web/index.js} +4 -4
  315. package/lib/page-diy/src/config/rule/web/index.js.map +1 -0
  316. package/lib/page-diy/src/config/rule/web/layout/DkViewTitle.js.map +1 -0
  317. package/lib/page-diy/src/config/rule/web/layout/col.js.map +1 -0
  318. package/lib/page-diy/src/config/rule/web/layout/divider.js.map +1 -0
  319. package/lib/page-diy/src/config/rule/web/layout/index.js.map +1 -0
  320. package/lib/page-diy/src/config/rule/web/layout/row.js.map +1 -0
  321. package/lib/page-diy/src/config/rule/web/layout/space.js.map +1 -0
  322. package/lib/page-diy/src/config/rule/web/layout/swip-item.js.map +1 -0
  323. package/lib/page-diy/src/config/rule/web/layout/swipe.js.map +1 -0
  324. package/lib/page-diy/src/config/rule/web/layout/tab.js.map +1 -0
  325. package/lib/page-diy/src/config/rule/web/layout/tabs.js.map +1 -0
  326. package/lib/page-diy/src/config/rule/web/layout/vanEmpty.js.map +1 -0
  327. package/lib/page-diy/src/page-diy.vue.d.ts +77 -23
  328. package/lib/page-diy/src/page-diy.vue.js +63 -197
  329. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  330. package/lib/page-diy/src/props.d.ts +29 -4
  331. package/lib/page-diy/src/props.js +36 -6
  332. package/lib/page-diy/src/props.js.map +1 -1
  333. package/lib/page-diy/src/utils/help.js.map +1 -1
  334. package/lib/page-diy/src/views/min/DkMinBlank.vue.d.ts +14 -0
  335. package/lib/page-diy/src/views/min/DkMinBlank.vue.js +32 -0
  336. package/lib/page-diy/src/views/min/DkMinBlank.vue.js.map +1 -0
  337. package/lib/page-diy/src/views/min/DkMinHotArea.vue.d.ts +27 -0
  338. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +131 -0
  339. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -0
  340. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +68 -0
  341. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +90 -0
  342. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -0
  343. package/lib/page-diy/src/views/min/DkMinTextarea.vue.d.ts +14 -0
  344. package/lib/page-diy/src/views/min/DkMinTextarea.vue.js +32 -0
  345. package/lib/page-diy/src/views/min/DkMinTextarea.vue.js.map +1 -0
  346. package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +95 -0
  347. package/lib/page-diy/src/views/min/DkMinTitle.vue.js +66 -0
  348. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -0
  349. package/lib/page-diy/src/views/min/DkMinVideo.vue.d.ts +54 -0
  350. package/lib/page-diy/src/views/min/DkMinVideo.vue.js +90 -0
  351. package/lib/page-diy/src/views/min/DkMinVideo.vue.js.map +1 -0
  352. package/lib/page-diy/src/views/min/index.d.ts +2 -0
  353. package/lib/page-diy/src/views/min/index.js +22 -0
  354. package/lib/page-diy/src/views/min/index.js.map +1 -0
  355. package/lib/page-diy/src/views/{DkViewBulletChat.vue.js → web/DkViewBulletChat.vue.js} +2 -2
  356. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -0
  357. package/lib/page-diy/src/views/{DkViewCell.vue.js → web/DkViewCell.vue.js} +2 -2
  358. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -0
  359. package/lib/page-diy/src/views/{DkViewCommonBtn.vue.js → web/DkViewCommonBtn.vue.js} +3 -5
  360. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -0
  361. package/lib/page-diy/src/views/{DkViewDialog.vue.js → web/DkViewDialog.vue.js} +2 -2
  362. package/lib/page-diy/src/views/web/DkViewDialog.vue.js.map +1 -0
  363. package/lib/page-diy/src/views/{DkViewGridCellList.vue.js → web/DkViewGridCellList.vue.js} +2 -2
  364. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -0
  365. package/lib/page-diy/src/views/{DkViewImage.vue.js → web/DkViewImage.vue.js} +2 -2
  366. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -0
  367. package/lib/page-diy/src/views/{DkViewMusic.vue.js → web/DkViewMusic.vue.js} +2 -2
  368. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -0
  369. package/lib/page-diy/src/views/{DkViewNavBar.vue.js → web/DkViewNavBar.vue.js} +2 -2
  370. package/lib/page-diy/src/views/web/DkViewNavBar.vue.js.map +1 -0
  371. package/lib/page-diy/src/views/{DkViewNoticeBar.vue.js → web/DkViewNoticeBar.vue.js} +2 -2
  372. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -0
  373. package/lib/page-diy/src/views/{DkViewSwipe.vue.js → web/DkViewSwipe.vue.js} +2 -2
  374. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -0
  375. package/lib/page-diy/src/views/{DkViewTabbar.vue.js → web/DkViewTabbar.vue.js} +2 -2
  376. package/lib/page-diy/src/views/web/DkViewTabbar.vue.js.map +1 -0
  377. package/lib/page-diy/src/views/web/DkViewTextarea.vue.d.ts +14 -0
  378. package/lib/page-diy/src/views/{DkViewTextarea.vue.js → web/DkViewTextarea.vue.js} +2 -2
  379. package/lib/page-diy/src/views/web/DkViewTextarea.vue.js.map +1 -0
  380. package/lib/page-diy/src/views/{DkViewTitle.vue.js → web/DkViewTitle.vue.js} +2 -2
  381. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -0
  382. package/lib/page-diy/src/views/web/DkViewVideo.vue.d.ts +54 -0
  383. package/lib/page-diy/src/views/{DkViewVideo.vue.js → web/DkViewVideo.vue.js} +2 -2
  384. package/lib/page-diy/src/views/web/DkViewVideo.vue.js.map +1 -0
  385. package/lib/page-diy/src/views/web/index.d.ts +2 -0
  386. package/lib/page-diy/src/views/web/index.js.map +1 -0
  387. package/lib/page-diy/style/drag-tool.css +1 -1
  388. package/lib/page-diy/style/drag-tool.scss +4 -3
  389. package/lib/page-diy/style/index.css +1 -1
  390. package/lib/page-diy/style/index.scss +1 -0
  391. package/lib/page-diy/style/minViews/index.scss +26 -0
  392. package/lib/page-diy/style/preview-phone.css +1 -1
  393. package/lib/page-diy/style/preview-phone.scss +36 -2
  394. package/lib/poster-input/src/component/poster.vue.js +1 -1
  395. package/lib/poster-input/src/component/poster.vue2.js +13 -13
  396. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  397. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.js +1 -1
  398. package/lib/poster-input/src/component/views/DkPosterViewImage.vue.js +1 -1
  399. package/lib/poster-input/src/component/views/DkPosterViewName.vue.js +1 -1
  400. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.js +1 -1
  401. package/lib/poster-input/src/component/views/DkPosterViewText.vue.js +1 -1
  402. package/lib/poster-input/src/component/views/quick-action.vue.js +1 -1
  403. package/lib/poster-input/src/poster-input.vue.js +1 -1
  404. package/lib/select/src/select.vue.js +1 -1
  405. package/lib/style-background-input/src/style-background-input.vue.js +1 -1
  406. package/lib/style-border-input/src/style-border-input.vue.js +1 -1
  407. package/lib/style-border-input/src/style-border-input.vue2.js +49 -45
  408. package/lib/style-border-input/src/style-border-input.vue2.js.map +1 -1
  409. package/lib/style-box-input/src/style-box-input.vue.js +1 -1
  410. package/lib/style-font-input/src/style-font-input.vue.js +1 -1
  411. package/lib/style-input/src/style-input.vue.js +1 -1
  412. package/lib/style-number-input/src/style-number-input.vue.js +1 -1
  413. package/lib/style-position-input/src/style-position-input.vue.js +1 -1
  414. package/lib/style-shadow-input/src/style-shadow-content.vue.js +1 -1
  415. package/lib/style-shadow-input/src/style-shadow-input.vue.js +1 -1
  416. package/lib/table/src/components/ComSearch.vue.js +1 -1
  417. package/lib/table/src/components/FieldRender.vue.js +1 -1
  418. package/lib/table/src/components/RecycleDialog.vue.js +1 -1
  419. package/lib/table/src/components/header.vue.js +1 -1
  420. package/lib/table/src/table.vue.js +1 -1
  421. package/lib/test/src/test.vue.js +1 -1
  422. package/lib/tiny-editor/src/tiny-editor.vue.js +1 -1
  423. package/lib/video-input/src/video-input.vue.js +1 -1
  424. package/lib/video-list-input/src/video-list-input.vue.js +1 -1
  425. package/package.json +1 -1
  426. package/es/page-diy/src/config/rule/common/DkPosterBtn.mjs.map +0 -1
  427. package/es/page-diy/src/config/rule/common/DkViewBulletChat.mjs.map +0 -1
  428. package/es/page-diy/src/config/rule/common/DkViewCell.mjs.map +0 -1
  429. package/es/page-diy/src/config/rule/common/DkViewCommonBtn.mjs.map +0 -1
  430. package/es/page-diy/src/config/rule/common/DkViewDialog.mjs.map +0 -1
  431. package/es/page-diy/src/config/rule/common/DkViewGridCellList.mjs.map +0 -1
  432. package/es/page-diy/src/config/rule/common/DkViewImage.mjs.map +0 -1
  433. package/es/page-diy/src/config/rule/common/DkViewMusic.mjs.map +0 -1
  434. package/es/page-diy/src/config/rule/common/DkViewNavBar.mjs.map +0 -1
  435. package/es/page-diy/src/config/rule/common/DkViewNoticeBar.mjs.map +0 -1
  436. package/es/page-diy/src/config/rule/common/DkViewSwipe.mjs.map +0 -1
  437. package/es/page-diy/src/config/rule/common/DkViewTabbar.mjs.map +0 -1
  438. package/es/page-diy/src/config/rule/common/DkViewTextarea.mjs.map +0 -1
  439. package/es/page-diy/src/config/rule/common/DkViewVideo.mjs.map +0 -1
  440. package/es/page-diy/src/config/rule/common/index.mjs.map +0 -1
  441. package/es/page-diy/src/config/rule/index.mjs.map +0 -1
  442. package/es/page-diy/src/config/rule/layout/DkViewTitle.mjs.map +0 -1
  443. package/es/page-diy/src/config/rule/layout/col.mjs.map +0 -1
  444. package/es/page-diy/src/config/rule/layout/divider.mjs.map +0 -1
  445. package/es/page-diy/src/config/rule/layout/index.mjs.map +0 -1
  446. package/es/page-diy/src/config/rule/layout/row.mjs.map +0 -1
  447. package/es/page-diy/src/config/rule/layout/space.mjs.map +0 -1
  448. package/es/page-diy/src/config/rule/layout/swip-item.mjs.map +0 -1
  449. package/es/page-diy/src/config/rule/layout/swipe.mjs.map +0 -1
  450. package/es/page-diy/src/config/rule/layout/tab.mjs.map +0 -1
  451. package/es/page-diy/src/config/rule/layout/tabs.mjs.map +0 -1
  452. package/es/page-diy/src/config/rule/layout/vanEmpty.mjs.map +0 -1
  453. package/es/page-diy/src/views/DkViewBulletChat.vue.mjs.map +0 -1
  454. package/es/page-diy/src/views/DkViewCell.vue.mjs.map +0 -1
  455. package/es/page-diy/src/views/DkViewCommonBtn.vue.mjs.map +0 -1
  456. package/es/page-diy/src/views/DkViewDialog.vue.mjs.map +0 -1
  457. package/es/page-diy/src/views/DkViewGridCellList.vue.mjs.map +0 -1
  458. package/es/page-diy/src/views/DkViewImage.vue.mjs.map +0 -1
  459. package/es/page-diy/src/views/DkViewMusic.vue.mjs.map +0 -1
  460. package/es/page-diy/src/views/DkViewNavBar.vue.mjs.map +0 -1
  461. package/es/page-diy/src/views/DkViewNoticeBar.vue.mjs.map +0 -1
  462. package/es/page-diy/src/views/DkViewSwipe.vue.mjs.map +0 -1
  463. package/es/page-diy/src/views/DkViewTabbar.vue.mjs.map +0 -1
  464. package/es/page-diy/src/views/DkViewTextarea.vue.mjs.map +0 -1
  465. package/es/page-diy/src/views/DkViewTitle.vue.mjs.map +0 -1
  466. package/es/page-diy/src/views/DkViewVideo.vue.mjs.map +0 -1
  467. package/es/page-diy/src/views/index.mjs.map +0 -1
  468. package/lib/page-diy/src/config/rule/common/DkPosterBtn.js.map +0 -1
  469. package/lib/page-diy/src/config/rule/common/DkViewBulletChat.js.map +0 -1
  470. package/lib/page-diy/src/config/rule/common/DkViewCell.js.map +0 -1
  471. package/lib/page-diy/src/config/rule/common/DkViewCommonBtn.js.map +0 -1
  472. package/lib/page-diy/src/config/rule/common/DkViewDialog.js.map +0 -1
  473. package/lib/page-diy/src/config/rule/common/DkViewGridCellList.js.map +0 -1
  474. package/lib/page-diy/src/config/rule/common/DkViewImage.js.map +0 -1
  475. package/lib/page-diy/src/config/rule/common/DkViewMusic.js.map +0 -1
  476. package/lib/page-diy/src/config/rule/common/DkViewNavBar.js.map +0 -1
  477. package/lib/page-diy/src/config/rule/common/DkViewNoticeBar.js.map +0 -1
  478. package/lib/page-diy/src/config/rule/common/DkViewSwipe.js.map +0 -1
  479. package/lib/page-diy/src/config/rule/common/DkViewTabbar.js.map +0 -1
  480. package/lib/page-diy/src/config/rule/common/DkViewTextarea.js.map +0 -1
  481. package/lib/page-diy/src/config/rule/common/DkViewVideo.js.map +0 -1
  482. package/lib/page-diy/src/config/rule/common/index.js.map +0 -1
  483. package/lib/page-diy/src/config/rule/index.js.map +0 -1
  484. package/lib/page-diy/src/config/rule/layout/DkViewTitle.js.map +0 -1
  485. package/lib/page-diy/src/config/rule/layout/col.js.map +0 -1
  486. package/lib/page-diy/src/config/rule/layout/divider.js.map +0 -1
  487. package/lib/page-diy/src/config/rule/layout/index.js.map +0 -1
  488. package/lib/page-diy/src/config/rule/layout/row.js.map +0 -1
  489. package/lib/page-diy/src/config/rule/layout/space.js.map +0 -1
  490. package/lib/page-diy/src/config/rule/layout/swip-item.js.map +0 -1
  491. package/lib/page-diy/src/config/rule/layout/swipe.js.map +0 -1
  492. package/lib/page-diy/src/config/rule/layout/tab.js.map +0 -1
  493. package/lib/page-diy/src/config/rule/layout/tabs.js.map +0 -1
  494. package/lib/page-diy/src/config/rule/layout/vanEmpty.js.map +0 -1
  495. package/lib/page-diy/src/views/DkViewBulletChat.vue.js.map +0 -1
  496. package/lib/page-diy/src/views/DkViewCell.vue.js.map +0 -1
  497. package/lib/page-diy/src/views/DkViewCommonBtn.vue.js.map +0 -1
  498. package/lib/page-diy/src/views/DkViewDialog.vue.js.map +0 -1
  499. package/lib/page-diy/src/views/DkViewGridCellList.vue.js.map +0 -1
  500. package/lib/page-diy/src/views/DkViewImage.vue.js.map +0 -1
  501. package/lib/page-diy/src/views/DkViewMusic.vue.js.map +0 -1
  502. package/lib/page-diy/src/views/DkViewNavBar.vue.js.map +0 -1
  503. package/lib/page-diy/src/views/DkViewNoticeBar.vue.js.map +0 -1
  504. package/lib/page-diy/src/views/DkViewSwipe.vue.js.map +0 -1
  505. package/lib/page-diy/src/views/DkViewTabbar.vue.js.map +0 -1
  506. package/lib/page-diy/src/views/DkViewTextarea.vue.js.map +0 -1
  507. package/lib/page-diy/src/views/DkViewTitle.vue.js.map +0 -1
  508. package/lib/page-diy/src/views/DkViewVideo.vue.js.map +0 -1
  509. package/lib/page-diy/src/views/index.js.map +0 -1
  510. package/es/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.d.ts +0 -0
  511. package/es/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.d.ts +0 -0
  512. package/es/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.mjs +0 -0
  513. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCell.d.ts +0 -0
  514. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCell.mjs +0 -0
  515. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.d.ts +0 -0
  516. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.mjs +0 -0
  517. package/es/page-diy/src/config/rule/{common → web/common}/DkViewDialog.d.ts +0 -0
  518. package/es/page-diy/src/config/rule/{common → web/common}/DkViewDialog.mjs +0 -0
  519. package/es/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.d.ts +0 -0
  520. package/es/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.mjs +0 -0
  521. package/es/page-diy/src/config/rule/{common → web/common}/DkViewImage.d.ts +0 -0
  522. package/es/page-diy/src/config/rule/{common → web/common}/DkViewImage.mjs +0 -0
  523. package/es/page-diy/src/config/rule/{common → web/common}/DkViewMusic.d.ts +0 -0
  524. package/es/page-diy/src/config/rule/{common → web/common}/DkViewMusic.mjs +0 -0
  525. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.d.ts +0 -0
  526. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.mjs +0 -0
  527. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.d.ts +0 -0
  528. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.mjs +0 -0
  529. package/es/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.d.ts +0 -0
  530. package/es/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.mjs +0 -0
  531. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.d.ts +0 -0
  532. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.mjs +0 -0
  533. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.d.ts +0 -0
  534. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.mjs +0 -0
  535. package/es/page-diy/src/config/rule/{common → web/common}/DkViewVideo.d.ts +0 -0
  536. package/es/page-diy/src/config/rule/{common → web/common}/index.d.ts +0 -0
  537. package/es/page-diy/src/config/rule/{common → web/common}/index.mjs +0 -0
  538. package/es/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.d.ts +0 -0
  539. package/es/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.mjs +0 -0
  540. package/es/page-diy/src/config/rule/{layout → web/layout}/col.d.ts +0 -0
  541. package/es/page-diy/src/config/rule/{layout → web/layout}/col.mjs +0 -0
  542. package/es/page-diy/src/config/rule/{layout → web/layout}/divider.d.ts +0 -0
  543. package/es/page-diy/src/config/rule/{layout → web/layout}/divider.mjs +0 -0
  544. package/es/page-diy/src/config/rule/{layout → web/layout}/index.d.ts +0 -0
  545. package/es/page-diy/src/config/rule/{layout → web/layout}/index.mjs +0 -0
  546. package/es/page-diy/src/config/rule/{layout → web/layout}/row.d.ts +0 -0
  547. package/es/page-diy/src/config/rule/{layout → web/layout}/row.mjs +0 -0
  548. package/es/page-diy/src/config/rule/{layout → web/layout}/space.d.ts +0 -0
  549. package/es/page-diy/src/config/rule/{layout → web/layout}/space.mjs +0 -0
  550. package/es/page-diy/src/config/rule/{layout → web/layout}/swip-item.d.ts +0 -0
  551. package/es/page-diy/src/config/rule/{layout → web/layout}/swip-item.mjs +0 -0
  552. package/es/page-diy/src/config/rule/{layout → web/layout}/swipe.d.ts +0 -0
  553. package/es/page-diy/src/config/rule/{layout → web/layout}/swipe.mjs +0 -0
  554. package/es/page-diy/src/config/rule/{layout → web/layout}/tab.d.ts +0 -0
  555. package/es/page-diy/src/config/rule/{layout → web/layout}/tab.mjs +0 -0
  556. package/es/page-diy/src/config/rule/{layout → web/layout}/tabs.d.ts +0 -0
  557. package/es/page-diy/src/config/rule/{layout → web/layout}/tabs.mjs +0 -0
  558. package/es/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.d.ts +0 -0
  559. package/es/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.mjs +0 -0
  560. package/es/page-diy/src/views/{DkViewTextarea.vue.d.ts → min/DkMinTextarea.vue.d.ts} +0 -0
  561. package/es/page-diy/src/views/{DkViewVideo.vue.d.ts → min/DkMinVideo.vue.d.ts} +0 -0
  562. package/es/page-diy/src/views/{index.d.ts → min/index.d.ts} +0 -0
  563. package/es/page-diy/src/views/{DkViewBulletChat.vue.d.ts → web/DkViewBulletChat.vue.d.ts} +0 -0
  564. package/es/page-diy/src/views/{DkViewCell.vue.d.ts → web/DkViewCell.vue.d.ts} +0 -0
  565. package/es/page-diy/src/views/{DkViewCommonBtn.vue.d.ts → web/DkViewCommonBtn.vue.d.ts} +0 -0
  566. package/es/page-diy/src/views/{DkViewDialog.vue.d.ts → web/DkViewDialog.vue.d.ts} +0 -0
  567. package/es/page-diy/src/views/{DkViewGridCellList.vue.d.ts → web/DkViewGridCellList.vue.d.ts} +0 -0
  568. package/es/page-diy/src/views/{DkViewImage.vue.d.ts → web/DkViewImage.vue.d.ts} +0 -0
  569. package/es/page-diy/src/views/{DkViewMusic.vue.d.ts → web/DkViewMusic.vue.d.ts} +0 -0
  570. package/es/page-diy/src/views/{DkViewNavBar.vue.d.ts → web/DkViewNavBar.vue.d.ts} +0 -0
  571. package/es/page-diy/src/views/{DkViewNoticeBar.vue.d.ts → web/DkViewNoticeBar.vue.d.ts} +0 -0
  572. package/es/page-diy/src/views/{DkViewSwipe.vue.d.ts → web/DkViewSwipe.vue.d.ts} +0 -0
  573. package/es/page-diy/src/views/{DkViewTabbar.vue.d.ts → web/DkViewTabbar.vue.d.ts} +1 -1
  574. package/{lib/page-diy/src/views → es/page-diy/src/views/web}/DkViewTextarea.vue.d.ts +0 -0
  575. package/es/page-diy/src/views/{DkViewTitle.vue.d.ts → web/DkViewTitle.vue.d.ts} +0 -0
  576. package/{lib/page-diy/src/views → es/page-diy/src/views/web}/DkViewVideo.vue.d.ts +0 -0
  577. package/{lib/page-diy/src/views → es/page-diy/src/views/web}/index.d.ts +0 -0
  578. package/es/page-diy/src/views/{index.mjs → web/index.mjs} +0 -0
  579. package/lib/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.d.ts +0 -0
  580. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.d.ts +0 -0
  581. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.js +0 -0
  582. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCell.d.ts +0 -0
  583. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCell.js +0 -0
  584. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.d.ts +0 -0
  585. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.js +0 -0
  586. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewDialog.d.ts +0 -0
  587. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewDialog.js +0 -0
  588. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.d.ts +0 -0
  589. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.js +0 -0
  590. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewImage.d.ts +0 -0
  591. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewImage.js +0 -0
  592. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewMusic.d.ts +0 -0
  593. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewMusic.js +0 -0
  594. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.d.ts +0 -0
  595. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.js +0 -0
  596. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.d.ts +0 -0
  597. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.js +0 -0
  598. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.d.ts +0 -0
  599. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.js +0 -0
  600. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.d.ts +0 -0
  601. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.js +0 -0
  602. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.d.ts +0 -0
  603. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.js +0 -0
  604. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewVideo.d.ts +0 -0
  605. package/lib/page-diy/src/config/rule/{common → web/common}/index.d.ts +0 -0
  606. package/lib/page-diy/src/config/rule/{common → web/common}/index.js +0 -0
  607. package/lib/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.d.ts +0 -0
  608. package/lib/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.js +0 -0
  609. package/lib/page-diy/src/config/rule/{layout → web/layout}/col.d.ts +0 -0
  610. package/lib/page-diy/src/config/rule/{layout → web/layout}/col.js +0 -0
  611. package/lib/page-diy/src/config/rule/{layout → web/layout}/divider.d.ts +0 -0
  612. package/lib/page-diy/src/config/rule/{layout → web/layout}/divider.js +0 -0
  613. package/lib/page-diy/src/config/rule/{layout → web/layout}/index.d.ts +0 -0
  614. package/lib/page-diy/src/config/rule/{layout → web/layout}/index.js +0 -0
  615. package/lib/page-diy/src/config/rule/{layout → web/layout}/row.d.ts +0 -0
  616. package/lib/page-diy/src/config/rule/{layout → web/layout}/row.js +0 -0
  617. package/lib/page-diy/src/config/rule/{layout → web/layout}/space.d.ts +0 -0
  618. package/lib/page-diy/src/config/rule/{layout → web/layout}/space.js +0 -0
  619. package/lib/page-diy/src/config/rule/{layout → web/layout}/swip-item.d.ts +0 -0
  620. package/lib/page-diy/src/config/rule/{layout → web/layout}/swip-item.js +0 -0
  621. package/lib/page-diy/src/config/rule/{layout → web/layout}/swipe.d.ts +0 -0
  622. package/lib/page-diy/src/config/rule/{layout → web/layout}/swipe.js +0 -0
  623. package/lib/page-diy/src/config/rule/{layout → web/layout}/tab.d.ts +0 -0
  624. package/lib/page-diy/src/config/rule/{layout → web/layout}/tab.js +0 -0
  625. package/lib/page-diy/src/config/rule/{layout → web/layout}/tabs.d.ts +0 -0
  626. package/lib/page-diy/src/config/rule/{layout → web/layout}/tabs.js +0 -0
  627. package/lib/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.d.ts +0 -0
  628. package/lib/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.js +0 -0
  629. package/lib/page-diy/src/views/{DkViewBulletChat.vue.d.ts → web/DkViewBulletChat.vue.d.ts} +0 -0
  630. package/lib/page-diy/src/views/{DkViewCell.vue.d.ts → web/DkViewCell.vue.d.ts} +0 -0
  631. package/lib/page-diy/src/views/{DkViewCommonBtn.vue.d.ts → web/DkViewCommonBtn.vue.d.ts} +0 -0
  632. package/lib/page-diy/src/views/{DkViewDialog.vue.d.ts → web/DkViewDialog.vue.d.ts} +0 -0
  633. package/lib/page-diy/src/views/{DkViewGridCellList.vue.d.ts → web/DkViewGridCellList.vue.d.ts} +0 -0
  634. package/lib/page-diy/src/views/{DkViewImage.vue.d.ts → web/DkViewImage.vue.d.ts} +0 -0
  635. package/lib/page-diy/src/views/{DkViewMusic.vue.d.ts → web/DkViewMusic.vue.d.ts} +0 -0
  636. package/lib/page-diy/src/views/{DkViewNavBar.vue.d.ts → web/DkViewNavBar.vue.d.ts} +0 -0
  637. package/lib/page-diy/src/views/{DkViewNoticeBar.vue.d.ts → web/DkViewNoticeBar.vue.d.ts} +0 -0
  638. package/lib/page-diy/src/views/{DkViewSwipe.vue.d.ts → web/DkViewSwipe.vue.d.ts} +0 -0
  639. package/lib/page-diy/src/views/{DkViewTabbar.vue.d.ts → web/DkViewTabbar.vue.d.ts} +1 -1
  640. /package/lib/page-diy/src/views/{DkViewTitle.vue.d.ts → web/DkViewTitle.vue.d.ts} +0 -0
  641. /package/lib/page-diy/src/views/{index.js → web/index.js} +0 -0
@@ -13,7 +13,7 @@
13
13
  box-shadow: 0 5px 10px #0003;
14
14
 
15
15
  .phone-header {
16
- height: 85px;
16
+ height: 75px;
17
17
  margin-bottom: 1px;
18
18
  user-select: none;
19
19
 
@@ -25,7 +25,8 @@
25
25
  display: flex;
26
26
  align-items: flex-start;
27
27
  justify-content: space-between;
28
- height: 40px;
28
+ height: 30px;
29
+ font-size: 12px;
29
30
 
30
31
  .phone-time {
31
32
  margin: 10px;
@@ -66,6 +67,39 @@
66
67
  }
67
68
  }
68
69
  }
70
+ .phone-header-min {
71
+ background-image: url('https://demo-saas.site.niucloud.com/admin/assets/diy_preview_head-8c072698.png');
72
+ background-repeat: no-repeat;
73
+ background-position: center;
74
+ background-size: cover;
75
+ position: relative;
76
+ .close-button {
77
+ position: absolute;
78
+ top: 34px;
79
+ right: 27px;
80
+ &:hover .close-button-mask {
81
+ background: #0001;
82
+ }
83
+ .close-button-mask {
84
+ width: 20px;
85
+ height: 20px;
86
+ border-radius: 100%;
87
+ cursor: pointer;
88
+ }
89
+ }
90
+ .more-button-mask {
91
+ position: absolute;
92
+ top: 34px;
93
+ right: 70px;
94
+ width: 25px;
95
+ cursor: pointer;
96
+ border-radius: 40px;
97
+ height: 20px;
98
+ &:hover {
99
+ background: #0001;
100
+ }
101
+ }
102
+ }
69
103
 
70
104
  min-height: 700px;
71
105
 
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './poster.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _Poster = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\component\\poster.vue"]]);
4
+ var _Poster = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\component\\poster.vue"]]);
5
5
 
6
6
  export { _Poster as default };
7
7
  //# sourceMappingURL=poster.vue.mjs.map
@@ -129,19 +129,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
129
129
  });
130
130
  }
131
131
  };
132
- const addView = (name) => {
133
- add(name);
134
- };
135
- const viewNumber = (name) => {
136
- const views = posterData.views;
137
- let count = 1;
138
- for (let i = 0; i < views.length; i++) {
139
- if (views[i].name == name) {
140
- count++;
141
- }
142
- }
143
- return count;
144
- };
145
132
  const getImageSize = (url) => {
146
133
  return new Promise(function(resolve, reject) {
147
134
  const image = new Image();
@@ -157,6 +144,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
157
144
  image.src = url;
158
145
  });
159
146
  };
147
+ const addView = (name) => {
148
+ add(name);
149
+ };
150
+ const viewNumber = (name) => {
151
+ const views = posterData.views;
152
+ let count = 1;
153
+ for (let i = 0; i < views.length; i++) {
154
+ if (views[i].name == name) {
155
+ count++;
156
+ }
157
+ }
158
+ return count;
159
+ };
160
160
  const draggables = ref();
161
161
  const draggableContainer = ref();
162
162
  const index = ref(0);
@@ -1 +1 @@
1
- {"version":3,"file":"poster.vue2.mjs","sources":["../../../../src/poster-input/src/component/poster.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPoster',\n components: {\n DkPosterViewName,\n DkPosterViewImage,\n DkPosterViewText,\n DkPosterViewAvatar,\n DkPosterViewQrcode,\n },\n});\n</script>\n<template>\n <div class=\"dk-poster\">\n <div class=\"poster-draw\">\n <div class=\"poster-body\">\n <div\n class=\"poster-content\"\n :style=\"{\n width: posterData.width + 'px',\n height: posterData.height + 'px',\n borderRadius: posterData.borderRadius + 'px',\n backgroundImage: 'url(' + posterData.background + ')',\n }\"\n style=\"background-size: 100% 100%\"\n @contextmenu.prevent\n >\n <el-empty\n v-if=\"!posterData.background\"\n description=\"请上传一张背景图\"\n style=\"position: absolute; width: 100%; height: 80%; user-select: none\"\n />\n <DraggableContainer\n ref=\"draggableContainer\"\n :reference-line-visible=\"formTools.refLine\"\n :disabled=\"!formTools.snap\"\n :adsorb-cols=\"adsorb.cols\"\n :adsorb-rows=\"adsorb.rows\"\n >\n <vue3-draggable-resizable\n v-for=\"(item, key) in posterData.views\"\n :key=\"key\"\n ref=\"draggables\"\n v-model:h=\"item.css.height\"\n v-model:x=\"item.css.left\"\n v-model:y=\"item.css.top\"\n v-model:w=\"item.css.width\"\n :init-w=\"item.css.width\"\n :init-h=\"item.css.height\"\n :parent=\"true\"\n style=\"cursor: move\"\n :is-conflict-check=\"formTools.isConflictCheck\"\n :snap=\"formTools.snap\"\n :snap-tolerance=\"formTools.snapTolerance\"\n :min-width=\"20\"\n :min-height=\"20\"\n :lock-aspect-ratio=\"item.lockAspectRatio\"\n @resizing=\"onResize\"\n @mousedown=\"index = key\"\n >\n <div style=\"position: relative\">\n <component :is=\"item.component\" :key=\"key\" :item=\"item\" :style=\"getBgStyle(item)\" :index=\"index\" />\n </div>\n </vue3-draggable-resizable>\n </DraggableContainer>\n </div>\n </div>\n <!--悬浮控件-->\n <div class=\"snap-tolerance\">\n <el-form :inline=\"true\" :model=\"formTools\" class=\"form-inline\" size=\"small\">\n <el-form-item label=\"对齐检测\">\n <el-switch v-model=\"formTools.snap\" />\n </el-form-item>\n <el-form-item v-if=\"formTools.snap\" label=\"辅助线\">\n <el-switch v-model=\"formTools.refLine\" />\n </el-form-item>\n </el-form>\n </div>\n <!--悬浮控件-->\n </div>\n <!-- 海报组件-->\n <el-form ref=\"form\" label-width=\"50px\" label-position=\"left\">\n <h2 style=\"padding: 10px; margin: 10px; font-size: 20px\">海报配置</h2>\n <el-row :gutter=\"20\" style=\"width: 100%; height: 600px; padding: 0 20px\">\n <el-col :sm=\"24\">\n <el-form-item label=\"元素\">\n <div class=\"view-buttons\">\n <el-button type=\"primary\" size=\"small\" :disabled=\"viewCount['avatar'] >= 1\" @click=\"addView('avatar')\">\n 用户头像\n </el-button>\n <el-button type=\"warning\" size=\"small\" :disabled=\"viewCount['qrcode'] >= 1\" @click=\"addView('qrcode')\">\n 二维码\n </el-button>\n <el-button type=\"danger\" size=\"small\" :disabled=\"viewCount['name'] >= 1\" @click=\"addView('name')\">\n 用户昵称\n </el-button>\n <el-button\n v-for=\"(item, key) in props.views\"\n :key=\"key\"\n type=\"primary\"\n :disabled=\"viewCount[item.name] >= item.count\"\n size=\"small\"\n @click=\"addView(item.name)\"\n >{{ item.text }}\n </el-button>\n </div>\n <div style=\"font-size: 12px; color: #999\">\n 点击元素添加到左侧拖拽框中,<b style=\"color: #000\">右键</b>即可编辑模块\n </div>\n </el-form-item>\n </el-col>\n <el-col :sm=\"24\">\n <el-form-item label=\"背景\">\n <dk-image-input v-model=\"posterData.background\" @input=\"resetSize()\" />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"宽度\">\n <el-slider v-model=\"posterData.width\" :min=\"100\" :max=\"600\" show-input @change=\"checkParentSize()\">\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"高度\">\n <el-slider v-model=\"posterData.height\" :min=\"100\" :max=\"600\" show-input @change=\"checkParentSize()\">\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"弧度\">\n <el-slider v-model=\"posterData.borderRadius\" :min=\"0\" :max=\"20\" show-input />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <div style=\"width: 100%; text-align: center\">\n <el-button style=\"width: 30%\" @click=\"resetSize()\">重置</el-button>\n <el-button type=\"primary\" style=\"width: 50%\" @click=\"submit\">确定</el-button>\n </div>\n </el-col>\n </el-row>\n </el-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { reactive, ref, computed, watch, provide, onMounted } from 'vue'\nimport { defaultViews } from './config'\nimport Vue3DraggableResizable, { DraggableContainer } from 'vue3-draggable-resizable'\nimport 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'\nimport DkPosterViewName from './views/DkPosterViewName.vue'\nimport DkPosterViewText from './views/DkPosterViewText.vue'\nimport DkPosterViewImage from './views/DkPosterViewImage.vue'\nimport DkPosterViewAvatar from './views/DkPosterViewAvatar.vue'\nimport DkPosterViewQrcode from './views/DkPosterViewQrcode.vue'\n\n\nconst props = defineProps({\n modelValue: {\n default: () => {\n return {}\n },\n type: Object,\n },\n views: {\n default: () => {\n return []\n },\n type: Array as any,\n },\n})\nconst posterRef = ref()\n// const posterData = ref(props.modelValue)\nconst posterData: any = reactive({\n background: '',\n width: 320,\n height: 500,\n borderRadius: 0,\n views: [],\n})\nconst formTools: any = reactive({\n refLine: true,\n snap: true,\n edit: true,\n border: 10,\n})\n\nconst viewCount = computed(() => {\n const count: any = {}\n const views: any = posterData.views\n if (views) {\n for (let i = 0; i < views.length; i++) {\n if (!count[views[i].name]) {\n count[views[i].name] = 1\n } else {\n count[views[i].name]++\n }\n }\n }\n return count\n})\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change', 'submit'])\n\nconst submit = () => {\n emit('input', posterData)\n emit('update:modelValue', posterData)\n emit('submit', posterData)\n emit('change', posterData)\n}\nconst resetSize = () => {\n if (posterData.background) {\n getImageSize(posterData.background)\n .then((image: any) => {\n let tempWidth\n let tempHeight\n const maxHeight = 600\n const maxWidth = 600\n if (image.width / image.height >= maxWidth / maxHeight) {\n if (image.width > maxWidth) {\n tempWidth = maxWidth\n // 按原图片的比例进行缩放\n tempHeight = (image.height * maxWidth) / image.width\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n } else {\n if (image.height > maxHeight) {\n tempHeight = maxHeight\n // 按原图片的比例进行缩放\n tempWidth = (image.width * maxHeight) / image.height\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n }\n posterData.width = parseInt(tempWidth)\n posterData.height = parseInt(tempHeight)\n setTimeout(() => {\n checkParentSize()\n }, 200)\n })\n .catch(() => {})\n }\n}\n\n// const checkParentSize = () => {\n// posterRef.value.checkParentSize()\n// }\n\nconst addView = (name: string) => {\n // if (name == 'text' || name == 'image') {\n // posterRef.value.add(name, viewNumber(name))\n // } else {\n // posterData.value.add(name)\n // }\n\n add(name)\n}\n\nconst viewNumber = (name: any) => {\n const views = posterData.views\n let count = 1\n for (let i = 0; i < views.length; i++) {\n if (views[i].name == name) {\n count++\n }\n }\n return count\n}\n\nconst getImageSize = (url: any) => {\n return new Promise(function (resolve, reject) {\n const image = new Image()\n image.onload = function () {\n resolve({\n width: image.width,\n height: image.height,\n })\n }\n image.onerror = function () {\n reject(new Error('error'))\n }\n image.src = url\n })\n}\n// watch(\n// () => props.modelValue,\n// (n, o) => {\n// posterData = props.modelValue\n// }\n// )\n\n// content的\n\nconst draggables = ref()\nconst draggableContainer = ref()\n\nconst index = ref(0)\nprovide('posterData', posterData)\nconst test = () => {\n console.log(posterData.views)\n}\n\nconst onDrag = (p: any) => {\n const css = posterData.views[index.value].css\n console.log('onDrag', p)\n css.left = p.x\n css.top = p.y\n}\nconst onResize = (p: any) => {\n const css = posterData.views[index.value].css\n css.left = p.x\n css.top = p.y\n css.width = p.w\n css.height = p.h\n}\nconst getBgStyle = (item: any) => {\n if (item.type == 'image') {\n return {\n width: item.css.width + 'px',\n height: item.css.height + 'px',\n borderColor: item.css.borderColor || '#fff',\n borderStyle: 'solid',\n borderWidth: item.css.borderWidth + 'px',\n borderRadius: item.css.borderRadius + 'px',\n top: -parseInt(item.css.borderWidth) + 'px',\n left: -parseInt(item.css.borderWidth) + 'px',\n }\n } else {\n return {}\n }\n}\n\nconst add = (name = 'avatar') => {\n const allViews = defaultViews.concat(props.views as any)\n for (let i = 0; i < allViews.length; i++) {\n if (allViews[i].name == name) {\n // view\n const view = JSON.parse(JSON.stringify(allViews[i]))\n posterData.views.push(view)\n }\n }\n}\n\nconst checkParentSize = () => {\n // 刷新大小检测\n if (draggables.value) {\n console.log('draggables', draggables)\n for (let i = 0; i < draggables.value.length; i++) {\n const draggable = draggables.value[i]\n draggable.parentHeight = posterData.height\n draggable.parentWidth = posterData.width\n\n if (posterData.width < draggable.left + draggable.initW) {\n draggable.left = posterData.width\n }\n if (posterData.height < draggable.top + draggable.initH) {\n draggable.top = posterData.height\n }\n }\n }\n}\n\nconst adsorb = computed(() => {\n const border = formTools?.border\n const height = posterData.height\n const width = posterData.width\n return {\n cols: [border, width - border],\n rows: [border, height - border],\n }\n})\n\nwatch(\n () => props.modelValue,\n (n, o) => {\n console.log('1111')\n // initPosterDraggable()\n }\n)\n\nconst initPosterDraggable = () => {\n console.log('initPosterDraggable')\n posterData.background = props.modelValue.background\n posterData.width = props.modelValue.width\n posterData.height = props.modelValue.height\n posterData.borderRadius = props.modelValue.borderRadius\n posterData.views = []\n for (let i = 0; i < props.modelValue.views.length; i++) {\n posterData.views.push(props.modelValue.views[i])\n }\n}\n\nonMounted(() => {\n initPosterDraggable()\n})\n\ndefineExpose({\n checkParentSize,\n})\n</script>\n<style scoped></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,gBAAA;AAAA,IACA,iBAAA;AAAA,IACA,gBAAA;AAAA,IACA,kBAAA;AAAA,IACA,kBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAiKD,IAAA,MAAM,YAAY,GAAI,EAAA,CAAA;AAEtB,IAAA,MAAM,aAAkB,QAAS,CAAA;AAAA,MAC/B,UAAY,EAAA,EAAA;AAAA,MACZ,KAAO,EAAA,GAAA;AAAA,MACP,MAAQ,EAAA,GAAA;AAAA,MACR,YAAc,EAAA,CAAA;AAAA,MACd,OAAO,EAAC;AAAA,KACT,CAAA,CAAA;AACD,IAAA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AS,IAAI,CAAG,EAAA,CAAA,GAAI,MAAM,UAAW,CAAA,KAAA,CAAM,QAAQ,CAAK,EAAA,EAAA;AACtD,QAAA,UAAA,CAAW,MAAM,IAAK,CAAA,KAAA,CAAM,UAAW,CAAA,KAAA,CAAM,CAAC,CAAC,CAAA,CAAA;AAAA,OACjD;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAoB,mBAAA,EAAA,CAAA;AAAA,KACrB,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,eAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"poster.vue2.mjs","sources":["../../../../src/poster-input/src/component/poster.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPoster',\n components: {\n DkPosterViewName,\n DkPosterViewImage,\n DkPosterViewText,\n DkPosterViewAvatar,\n DkPosterViewQrcode,\n },\n});\n</script>\n<template>\n <div class=\"dk-poster\">\n <div class=\"poster-draw\">\n <div class=\"poster-body\">\n <div\n class=\"poster-content\"\n :style=\"{\n width: posterData.width + 'px',\n height: posterData.height + 'px',\n borderRadius: posterData.borderRadius + 'px',\n backgroundImage: 'url(' + posterData.background + ')',\n }\"\n style=\"background-size: 100% 100%\"\n @contextmenu.prevent\n >\n <el-empty\n v-if=\"!posterData.background\"\n description=\"请上传一张背景图\"\n style=\"position: absolute; width: 100%; height: 80%; user-select: none\"\n />\n <DraggableContainer\n ref=\"draggableContainer\"\n :reference-line-visible=\"formTools.refLine\"\n :disabled=\"!formTools.snap\"\n :adsorb-cols=\"adsorb.cols\"\n :adsorb-rows=\"adsorb.rows\"\n >\n <vue3-draggable-resizable\n v-for=\"(item, key) in posterData.views\"\n :key=\"key\"\n ref=\"draggables\"\n v-model:h=\"item.css.height\"\n v-model:x=\"item.css.left\"\n v-model:y=\"item.css.top\"\n v-model:w=\"item.css.width\"\n :init-w=\"item.css.width\"\n :init-h=\"item.css.height\"\n :parent=\"true\"\n style=\"cursor: move\"\n :is-conflict-check=\"formTools.isConflictCheck\"\n :snap=\"formTools.snap\"\n :snap-tolerance=\"formTools.snapTolerance\"\n :min-width=\"20\"\n :min-height=\"20\"\n :lock-aspect-ratio=\"item.lockAspectRatio\"\n @resizing=\"onResize\"\n @mousedown=\"index = key\"\n >\n <div style=\"position: relative\">\n <component :is=\"item.component\" :key=\"key\" :item=\"item\" :style=\"getBgStyle(item)\" :index=\"index\" />\n </div>\n </vue3-draggable-resizable>\n </DraggableContainer>\n </div>\n </div>\n <!--悬浮控件-->\n <div class=\"snap-tolerance\">\n <el-form :inline=\"true\" :model=\"formTools\" class=\"form-inline\" size=\"small\">\n <el-form-item label=\"对齐检测\">\n <el-switch v-model=\"formTools.snap\" />\n </el-form-item>\n <el-form-item v-if=\"formTools.snap\" label=\"辅助线\">\n <el-switch v-model=\"formTools.refLine\" />\n </el-form-item>\n </el-form>\n </div>\n <!--悬浮控件-->\n </div>\n <!-- 海报组件-->\n <el-form ref=\"form\" label-width=\"50px\" label-position=\"left\">\n <h2 style=\"padding: 10px; margin: 10px; font-size: 20px\">海报配置</h2>\n <el-row :gutter=\"20\" style=\"width: 100%; height: 600px; padding: 0 20px\">\n <el-col :sm=\"24\">\n <el-form-item label=\"元素\">\n <div class=\"view-buttons\">\n <el-button type=\"primary\" size=\"small\" :disabled=\"viewCount['avatar'] >= 1\" @click=\"addView('avatar')\">\n 用户头像\n </el-button>\n <el-button type=\"warning\" size=\"small\" :disabled=\"viewCount['qrcode'] >= 1\" @click=\"addView('qrcode')\">\n 二维码\n </el-button>\n <el-button type=\"danger\" size=\"small\" :disabled=\"viewCount['name'] >= 1\" @click=\"addView('name')\">\n 用户昵称\n </el-button>\n <el-button\n v-for=\"(item, key) in props.views\"\n :key=\"key\"\n type=\"primary\"\n :disabled=\"viewCount[item.name] >= item.count\"\n size=\"small\"\n @click=\"addView(item.name)\"\n >{{ item.text }}\n </el-button>\n </div>\n <div style=\"font-size: 12px; color: #999\">\n 点击元素添加到左侧拖拽框中,<b style=\"color: #000\">右键</b>即可编辑模块\n </div>\n </el-form-item>\n </el-col>\n <el-col :sm=\"24\">\n <el-form-item label=\"背景\">\n <dk-image-input v-model=\"posterData.background\" @input=\"resetSize()\" />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"宽度\">\n <el-slider v-model=\"posterData.width\" :min=\"100\" :max=\"600\" show-input @change=\"checkParentSize()\">\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"高度\">\n <el-slider v-model=\"posterData.height\" :min=\"100\" :max=\"600\" show-input @change=\"checkParentSize()\">\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"弧度\">\n <el-slider v-model=\"posterData.borderRadius\" :min=\"0\" :max=\"20\" show-input />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <div style=\"width: 100%; text-align: center\">\n <el-button style=\"width: 30%\" @click=\"resetSize()\">重置</el-button>\n <el-button type=\"primary\" style=\"width: 50%\" @click=\"submit\">确定</el-button>\n </div>\n </el-col>\n </el-row>\n </el-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { reactive, ref, computed, watch, provide, onMounted } from 'vue'\nimport { defaultViews } from './config'\nimport Vue3DraggableResizable, { DraggableContainer } from 'vue3-draggable-resizable'\nimport 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'\nimport DkPosterViewName from './views/DkPosterViewName.vue'\nimport DkPosterViewText from './views/DkPosterViewText.vue'\nimport DkPosterViewImage from './views/DkPosterViewImage.vue'\nimport DkPosterViewAvatar from './views/DkPosterViewAvatar.vue'\nimport DkPosterViewQrcode from './views/DkPosterViewQrcode.vue'\n\n\nconst props = defineProps({\n modelValue: {\n default: () => {\n return {}\n },\n type: Object,\n },\n views: {\n default: () => {\n return []\n },\n type: Array as any,\n },\n})\nconst posterRef = ref()\n// const posterData = ref(props.modelValue)\nconst posterData: any = reactive({\n background: '',\n width: 320,\n height: 500,\n borderRadius: 0,\n views: [],\n})\nconst formTools: any = reactive({\n refLine: true,\n snap: true,\n edit: true,\n border: 10,\n})\n\nconst viewCount = computed(() => {\n const count: any = {}\n const views: any = posterData.views\n if (views) {\n for (let i = 0; i < views.length; i++) {\n if (!count[views[i].name]) {\n count[views[i].name] = 1\n } else {\n count[views[i].name]++\n }\n }\n }\n return count\n})\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change', 'submit'])\n\nconst submit = () => {\n emit('input', posterData)\n emit('update:modelValue', posterData)\n emit('submit', posterData)\n emit('change', posterData)\n}\nconst resetSize = () => {\n if (posterData.background) {\n getImageSize(posterData.background)\n .then((image: any) => {\n let tempWidth\n let tempHeight\n const maxHeight = 600\n const maxWidth = 600\n if (image.width / image.height >= maxWidth / maxHeight) {\n if (image.width > maxWidth) {\n tempWidth = maxWidth\n // 按原图片的比例进行缩放\n tempHeight = (image.height * maxWidth) / image.width\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n } else {\n if (image.height > maxHeight) {\n tempHeight = maxHeight\n // 按原图片的比例进行缩放\n tempWidth = (image.width * maxHeight) / image.height\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n }\n posterData.width = parseInt(tempWidth)\n posterData.height = parseInt(tempHeight)\n setTimeout(() => {\n checkParentSize()\n }, 200)\n })\n .catch(() => {})\n }\n}\n\nconst getImageSize = (url: any) => {\n return new Promise(function (resolve, reject) {\n const image = new Image()\n image.onload = function () {\n resolve({\n width: image.width,\n height: image.height,\n })\n }\n image.onerror = function () {\n reject(new Error('error'))\n }\n image.src = url\n })\n}\n// const checkParentSize = () => {\n// posterRef.value.checkParentSize()\n// }\n\nconst addView = (name: string) => {\n // if (name == 'text' || name == 'image') {\n // posterRef.value.add(name, viewNumber(name))\n // } else {\n // posterData.value.add(name)\n // }\n\n add(name)\n}\n\nconst viewNumber = (name: any) => {\n const views = posterData.views\n let count = 1\n for (let i = 0; i < views.length; i++) {\n if (views[i].name == name) {\n count++\n }\n }\n return count\n}\n\n// watch(\n// () => props.modelValue,\n// (n, o) => {\n// posterData = props.modelValue\n// }\n// )\n\n// content的\n\nconst draggables = ref()\nconst draggableContainer = ref()\n\nconst index = ref(0)\nprovide('posterData', posterData)\nconst test = () => {\n console.log(posterData.views)\n}\n\nconst onDrag = (p: any) => {\n const css = posterData.views[index.value].css\n console.log('onDrag', p)\n css.left = p.x\n css.top = p.y\n}\nconst onResize = (p: any) => {\n const css = posterData.views[index.value].css\n css.left = p.x\n css.top = p.y\n css.width = p.w\n css.height = p.h\n}\nconst getBgStyle = (item: any) => {\n if (item.type == 'image') {\n return {\n width: item.css.width + 'px',\n height: item.css.height + 'px',\n borderColor: item.css.borderColor || '#fff',\n borderStyle: 'solid',\n borderWidth: item.css.borderWidth + 'px',\n borderRadius: item.css.borderRadius + 'px',\n top: -parseInt(item.css.borderWidth) + 'px',\n left: -parseInt(item.css.borderWidth) + 'px',\n }\n } else {\n return {}\n }\n}\n\nconst add = (name = 'avatar') => {\n const allViews = defaultViews.concat(props.views as any)\n for (let i = 0; i < allViews.length; i++) {\n if (allViews[i].name == name) {\n // view\n const view = JSON.parse(JSON.stringify(allViews[i]))\n posterData.views.push(view)\n }\n }\n}\n\nconst checkParentSize = () => {\n // 刷新大小检测\n if (draggables.value) {\n console.log('draggables', draggables)\n for (let i = 0; i < draggables.value.length; i++) {\n const draggable = draggables.value[i]\n draggable.parentHeight = posterData.height\n draggable.parentWidth = posterData.width\n\n if (posterData.width < draggable.left + draggable.initW) {\n draggable.left = posterData.width\n }\n if (posterData.height < draggable.top + draggable.initH) {\n draggable.top = posterData.height\n }\n }\n }\n}\n\nconst adsorb = computed(() => {\n const border = formTools?.border\n const height = posterData.height\n const width = posterData.width\n return {\n cols: [border, width - border],\n rows: [border, height - border],\n }\n})\n\nwatch(\n () => props.modelValue,\n (n, o) => {\n console.log('1111')\n // initPosterDraggable()\n }\n)\n\nconst initPosterDraggable = () => {\n console.log('initPosterDraggable')\n posterData.background = props.modelValue.background\n posterData.width = props.modelValue.width\n posterData.height = props.modelValue.height\n posterData.borderRadius = props.modelValue.borderRadius\n posterData.views = []\n for (let i = 0; i < props.modelValue.views.length; i++) {\n posterData.views.push(props.modelValue.views[i])\n }\n}\n\nonMounted(() => {\n initPosterDraggable()\n})\n\ndefineExpose({\n checkParentSize,\n})\n</script>\n<style scoped></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,gBAAA;AAAA,IACA,iBAAA;AAAA,IACA,gBAAA;AAAA,IACA,kBAAA;AAAA,IACA,kBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAiKD,IAAA,MAAM,YAAY,GAAI,EAAA,CAAA;AAEtB,IAAA,MAAM,aAAkB,QAAS,CAAA;AAAA,MAC/B,UAAY,EAAA,EAAA;AAAA,MACZ,KAAO,EAAA,GAAA;AAAA,MACP,MAAQ,EAAA,GAAA;AAAA,MACR,YAA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AAA;AAC3C,MAAA,UAAA,CAAW,QAAQ,EAAC,CAAA;AACpB,MAAA,KAAA,IAAS,IAAI,CAAG,EAAA,CAAA,GAAI,MAAM,UAAW,CAAA,KAAA,CAAM,QAAQ,CAAK,EAAA,EAAA;AACtD,QAAA,UAAA,CAAW,MAAM,IAAK,CAAA,KAAA,CAAM,UAAW,CAAA,KAAA,CAAM,CAAC,CAAC,CAAA,CAAA;AAAA,OACjD;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAoB,mBAAA,EAAA,CAAA;AAAA,KACrB,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,eAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './DkPosterViewAvatar.vue2.mjs';
2
2
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkPosterViewAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewAvatar.vue"]]);
4
+ var DkPosterViewAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewAvatar.vue"]]);
5
5
 
6
6
  export { DkPosterViewAvatar as default };
7
7
  //# sourceMappingURL=DkPosterViewAvatar.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './DkPosterViewImage.vue2.mjs';
2
2
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkPosterViewImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewImage.vue"]]);
4
+ var DkPosterViewImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewImage.vue"]]);
5
5
 
6
6
  export { DkPosterViewImage as default };
7
7
  //# sourceMappingURL=DkPosterViewImage.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './DkPosterViewName.vue2.mjs';
2
2
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkPosterViewName = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewName.vue"]]);
4
+ var DkPosterViewName = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewName.vue"]]);
5
5
 
6
6
  export { DkPosterViewName as default };
7
7
  //# sourceMappingURL=DkPosterViewName.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './DkPosterViewQrcode.vue2.mjs';
2
2
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkPosterViewQrcode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewQrcode.vue"]]);
4
+ var DkPosterViewQrcode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewQrcode.vue"]]);
5
5
 
6
6
  export { DkPosterViewQrcode as default };
7
7
  //# sourceMappingURL=DkPosterViewQrcode.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './DkPosterViewText.vue2.mjs';
2
2
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkPosterViewText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewText.vue"]]);
4
+ var DkPosterViewText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\DkPosterViewText.vue"]]);
5
5
 
6
6
  export { DkPosterViewText as default };
7
7
  //# sourceMappingURL=DkPosterViewText.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './quick-action.vue2.mjs';
2
2
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var QuickAction = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\quick-action.vue"]]);
4
+ var QuickAction = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\component\\views\\quick-action.vue"]]);
5
5
 
6
6
  export { QuickAction as default };
7
7
  //# sourceMappingURL=quick-action.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './poster-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _PosterInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\poster-input\\src\\poster-input.vue"]]);
4
+ var _PosterInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\poster-input\\src\\poster-input.vue"]]);
5
5
 
6
6
  export { _PosterInput as default };
7
7
  //# sourceMappingURL=poster-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './select.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\select\\src\\select.vue"]]);
4
+ var _Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\select\\src\\select.vue"]]);
5
5
 
6
6
  export { _Select as default };
7
7
  //# sourceMappingURL=select.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-background-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleBackgroundInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);
4
+ var _StyleBackgroundInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-background-input\\src\\style-background-input.vue"]]);
5
5
 
6
6
  export { _StyleBackgroundInput as default };
7
7
  //# sourceMappingURL=style-background-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-border-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleBorderInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);
4
+ var _StyleBorderInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-border-input\\src\\style-border-input.vue"]]);
5
5
 
6
6
  export { _StyleBorderInput as default };
7
7
  //# sourceMappingURL=style-border-input.vue.mjs.map
@@ -8,6 +8,7 @@ const _hoisted_2 = {
8
8
  style: { "width": "100%" },
9
9
  class: "m-l-20px"
10
10
  };
11
+ const _hoisted_3 = { style: { "display": "flex" } };
11
12
  const __default__ = defineComponent({
12
13
  name: "DkStyleBorderInput"
13
14
  });
@@ -239,51 +240,54 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
239
240
  }, 8, ["disabled"])
240
241
  ]),
241
242
  default: withCtx(() => [
242
- createVNode(_component_el_slider, {
243
- modelValue: form[position.value].borderWidth,
244
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form[position.value].borderWidth = $event),
245
- class: "dk-border-slider",
246
- max: 50,
247
- onChange: _cache[2] || (_cache[2] = ($event) => clearOtherBorder())
248
- }, null, 8, ["modelValue"]),
249
- createVNode(_component_el_input, {
250
- modelValue: form[position.value].borderWidth,
251
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form[position.value].borderWidth = $event),
252
- class: "dk-border-input",
253
- type: "number",
254
- onChange: _cache[6] || (_cache[6] = ($event) => clearOtherBorder())
255
- }, {
256
- append: withCtx(() => [
257
- createVNode(_component_el_select, {
258
- modelValue: form[position.value].unit,
259
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form[position.value].unit = $event),
260
- placeholder: "\u8BF7\u9009\u62E9",
261
- class: "dk-border-select",
262
- "suffix-icon": "",
263
- onChange: _cache[4] || (_cache[4] = ($event) => clearOtherBorder())
264
- }, {
265
- default: withCtx(() => [
266
- (openBlock(), createElementBlock(
267
- Fragment,
268
- null,
269
- renderList(units, (item) => {
270
- return createVNode(_component_el_option, {
271
- key: item,
272
- label: item,
273
- value: item
274
- }, null, 8, ["label", "value"]);
275
- }),
276
- 64
277
- /* STABLE_FRAGMENT */
278
- ))
279
- ]),
280
- _: 1
281
- /* STABLE */
282
- }, 8, ["modelValue"])
283
- ]),
284
- _: 1
285
- /* STABLE */
286
- }, 8, ["modelValue"])
243
+ createElementVNode("div", _hoisted_3, [
244
+ createVNode(_component_el_slider, {
245
+ modelValue: form[position.value].borderWidth,
246
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form[position.value].borderWidth = $event),
247
+ class: "dk-border-slider",
248
+ max: 50,
249
+ onChange: _cache[2] || (_cache[2] = ($event) => clearOtherBorder())
250
+ }, null, 8, ["modelValue"]),
251
+ createVNode(_component_el_input, {
252
+ modelValue: form[position.value].borderWidth,
253
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form[position.value].borderWidth = $event),
254
+ class: "dk-border-input",
255
+ type: "number",
256
+ onChange: _cache[6] || (_cache[6] = ($event) => clearOtherBorder())
257
+ }, {
258
+ append: withCtx(() => [
259
+ createVNode(_component_el_select, {
260
+ modelValue: form[position.value].unit,
261
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form[position.value].unit = $event),
262
+ placeholder: "\u8BF7\u9009\u62E9",
263
+ class: "dk-border-select",
264
+ style: { "width": "50px" },
265
+ "suffix-icon": "",
266
+ onChange: _cache[4] || (_cache[4] = ($event) => clearOtherBorder())
267
+ }, {
268
+ default: withCtx(() => [
269
+ (openBlock(), createElementBlock(
270
+ Fragment,
271
+ null,
272
+ renderList(units, (item) => {
273
+ return createVNode(_component_el_option, {
274
+ key: item,
275
+ label: item,
276
+ value: item
277
+ }, null, 8, ["label", "value"]);
278
+ }),
279
+ 64
280
+ /* STABLE_FRAGMENT */
281
+ ))
282
+ ]),
283
+ _: 1
284
+ /* STABLE */
285
+ }, 8, ["modelValue"])
286
+ ]),
287
+ _: 1
288
+ /* STABLE */
289
+ }, 8, ["modelValue"])
290
+ ])
287
291
  ]),
288
292
  _: 1
289
293
  /* STABLE */
@@ -1 +1 @@
1
- {"version":3,"file":"style-border-input.vue2.mjs","sources":["../../../src/style-border-input/src/style-border-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBorderInput',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-style-border-input\" :class=\"width.value < 400 ? 'mini' : ''\">\n <div class=\"border-box\">\n <dk-icon\n v-for=\"item in positions\"\n :key=\"item\"\n :icon=\"'gg:border-' + item\"\n :class=\"'border-box-option border-' + item + ' ' + (position == item ? 'selected' : '')\"\n :size=\"24\"\n :style=\"'grid-area: border-' + item + ' / border-' + item + ' / border-' + item + ' / border-' + item + ';'\"\n @click=\"position = item\"\n ></dk-icon>\n </div>\n <div style=\"width: 100%\" class=\"m-l-20px\">\n <!-- 样式、宽度、颜色-->\n <el-form label-width=\"50px\" label-position=\"left\" size=\"small\">\n <el-form-item label=\"尺寸\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderWidth\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderWidth ? 'color-blue' : ''\"\n @click=\"del('borderWidth')\"\n >尺寸</span\n >\n </el-tooltip>\n </template>\n <el-slider\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-slider\"\n :max=\"50\"\n @change=\"clearOtherBorder()\"\n />\n <el-input\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-input\"\n type=\"number\"\n @change=\"clearOtherBorder()\"\n >\n <template #append>\n <el-select\n v-model=\"form[position].unit\"\n placeholder=\"请选择\"\n class=\"dk-border-select\"\n suffix-icon=\"\"\n @change=\"clearOtherBorder()\"\n >\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 <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderStyle\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderStyle ? 'color-blue' : ''\"\n @click=\"del('borderStyle')\"\n >样式</span\n >\n </el-tooltip>\n </template>\n <el-radio-group v-model=\"form[position].borderStyle\" @change=\"clearOtherBorder()\">\n <el-radio-button label=\"solid\" name=\"type\">\n <dk-icon icon=\"gg:border-style-solid\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"dotted\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dotted\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"dashed\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dashed\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"double\" name=\"type\">\n <dk-icon icon=\"memory:box-light-double-horizontal\"></dk-icon>\n </el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderColor\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderColor ? 'color-blue' : ''\"\n @click=\"del('borderColor')\"\n >颜色</span\n >\n </el-tooltip>\n </template>\n <el-color-picker v-model=\"form[position].borderColor\" />\n </el-form-item>\n <el-form-item label=\"弧度\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"form.radius == '0px'\">\n <span class=\"cursor-pointer\" :class=\"form.radius !== '0px' ? 'color-blue' : ''\" @click=\"del('radius')\"\n >弧度</span\n >\n </el-tooltip>\n </template>\n <dk-box-size-input v-model=\"form.radius\" type=\"radius\"></dk-box-size-input>\n </el-form-item>\n </el-form>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBorderInputProps } from './props'\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { upper } from '@vipl520/utils'\nimport { useElementSize, useWindowSize } from '@vueuse/core'\n\n\n\nconst props = defineProps(styleBorderInputProps)\nconst emit = defineEmits(['update:modelValue'])\n\nconst positions = ['top', 'right', 'bottom', 'left', 'all']\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst position = ref('all')\nconst el: any = ref()\nconst { width } = useElementSize(el) // 当前组件宽度\nconst defaultForm = () => ({\n unit: 'px',\n})\n\nconst form: any = reactive({\n top: defaultForm(),\n right: defaultForm(),\n bottom: defaultForm(),\n left: defaultForm(),\n all: defaultForm(),\n radius: props.modelValue.borderRadius || '0px',\n})\n\nconst styles = computed(() => {\n const style: any = {}\n positions.forEach((item) => {\n if (item === 'all') {\n if (form[item].borderWidth) {\n style.borderWidth = form[item].borderWidth + (form[item].unit || 'px')\n }\n if (form[item].borderStyle) {\n style.borderStyle = form[item].borderStyle\n }\n if (form[item].borderColor) {\n style.borderColor = form[item].borderColor\n }\n } else {\n if (form[item].borderWidth) {\n style['border' + upper(item) + 'Width'] = form[item].borderWidth + (form[item].unit || 'px')\n }\n\n if (form[item].borderStyle) {\n style['border' + upper(item) + 'Style'] = form[item].borderStyle\n }\n\n if (form[item].borderColor) {\n style['border' + upper(item) + 'Color'] = form[item].borderColor\n }\n }\n })\n // 把style中的borderWidth、borderStyle、borderColor放到最前面\n if (form.radius !== '0px') {\n style.borderRadius = form.radius\n }\n return style\n})\nwatch(styles, () => {\n emit('update:modelValue', styles.value)\n})\n\nconst init = () => {\n const keys = [\n 'borderWidth',\n 'borderStyle',\n 'borderColor',\n 'borderRightWidth',\n 'borderRightStyle',\n 'borderRightColor',\n 'borderLeftWidth',\n 'borderLeftStyle',\n 'borderLeftColor',\n 'borderTopWidth',\n 'borderTopStyle',\n 'borderTopColor',\n 'borderBottomWidth',\n 'borderBottomStyle',\n 'borderBottomColor',\n 'borderRadius',\n ]\n\n keys.forEach((key) => {\n if (props.modelValue[key]) {\n if (key === 'borderRadius') {\n form.radius = props.modelValue[key]\n } else {\n let [_, position, property] = key.split(/(?=[A-Z])/)\n let _position = position.toLowerCase() // 位置\n const value = props.modelValue[key] // 值\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n if (property === 'Width') {\n const width = parseInt(value) || 0\n const unit = value.replace(width + '', '') || 'px'\n if (units.indexOf(unit) > -1) {\n form[_position].unit = unit\n form[_position].borderWidth = width\n }\n } else {\n form[_position]['border' + property] = value\n }\n }\n } else {\n if (key === 'borderRadius') {\n form.radius = '0px'\n } else {\n // delete form[position.value][key]\n let [_, position, property] = key.split(/(?=[A-Z])/)\n\n let _position = position.toLowerCase() // 位置\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n const value = props.modelValue[key] // 值\n if (property === 'Width') {\n delete form[_position].borderWidth\n delete form[_position].unit\n } else {\n delete form[_position]['border' + property]\n }\n }\n }\n })\n}\n\nconst clearOtherBorder = () => {\n if (position.value === 'all') {\n positions.forEach((item) => {\n if (item !== 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n } else {\n positions.forEach((item) => {\n if (item === 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n }\n}\nconst del = (value: any) => {\n if (value === 'radius') {\n form.radius = '0px'\n } else {\n delete form[position.value][value]\n }\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n {\n deep: true,\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","position","width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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-border-input.vue2.mjs","sources":["../../../src/style-border-input/src/style-border-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBorderInput',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-style-border-input\" :class=\"width.value < 400 ? 'mini' : ''\">\n <div class=\"border-box\">\n <dk-icon\n v-for=\"item in positions\"\n :key=\"item\"\n :icon=\"'gg:border-' + item\"\n :class=\"'border-box-option border-' + item + ' ' + (position == item ? 'selected' : '')\"\n :size=\"24\"\n :style=\"'grid-area: border-' + item + ' / border-' + item + ' / border-' + item + ' / border-' + item + ';'\"\n @click=\"position = item\"\n ></dk-icon>\n </div>\n <div style=\"width: 100%\" class=\"m-l-20px\">\n <!-- 样式、宽度、颜色-->\n <el-form label-width=\"50px\" label-position=\"left\" size=\"small\">\n <el-form-item label=\"尺寸\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderWidth\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderWidth ? 'color-blue' : ''\"\n @click=\"del('borderWidth')\"\n >尺寸</span\n >\n </el-tooltip>\n </template>\n <div style=\"display: flex\">\n <el-slider\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-slider\"\n :max=\"50\"\n @change=\"clearOtherBorder()\"\n />\n <el-input\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-input\"\n type=\"number\"\n @change=\"clearOtherBorder()\"\n >\n <template #append>\n <el-select\n v-model=\"form[position].unit\"\n placeholder=\"请选择\"\n class=\"dk-border-select\"\n style=\"width: 50px\"\n suffix-icon=\"\"\n @change=\"clearOtherBorder()\"\n >\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </div>\n </el-form-item>\n <el-form-item label=\"样式\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderStyle\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderStyle ? 'color-blue' : ''\"\n @click=\"del('borderStyle')\"\n >样式</span\n >\n </el-tooltip>\n </template>\n <el-radio-group v-model=\"form[position].borderStyle\" @change=\"clearOtherBorder()\">\n <el-radio-button label=\"solid\" name=\"type\">\n <dk-icon icon=\"gg:border-style-solid\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"dotted\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dotted\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"dashed\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dashed\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"double\" name=\"type\">\n <dk-icon icon=\"memory:box-light-double-horizontal\"></dk-icon>\n </el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderColor\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderColor ? 'color-blue' : ''\"\n @click=\"del('borderColor')\"\n >颜色</span\n >\n </el-tooltip>\n </template>\n <el-color-picker v-model=\"form[position].borderColor\" />\n </el-form-item>\n <el-form-item label=\"弧度\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"form.radius == '0px'\">\n <span class=\"cursor-pointer\" :class=\"form.radius !== '0px' ? 'color-blue' : ''\" @click=\"del('radius')\"\n >弧度</span\n >\n </el-tooltip>\n </template>\n <dk-box-size-input v-model=\"form.radius\" type=\"radius\"></dk-box-size-input>\n </el-form-item>\n </el-form>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBorderInputProps } from './props'\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { upper } from '@vipl520/utils'\nimport { useElementSize, useWindowSize } from '@vueuse/core'\n\n\n\nconst props = defineProps(styleBorderInputProps)\nconst emit = defineEmits(['update:modelValue'])\n\nconst positions = ['top', 'right', 'bottom', 'left', 'all']\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst position = ref('all')\nconst el: any = ref()\nconst { width } = useElementSize(el) // 当前组件宽度\nconst defaultForm = () => ({\n unit: 'px',\n})\n\nconst form: any = reactive({\n top: defaultForm(),\n right: defaultForm(),\n bottom: defaultForm(),\n left: defaultForm(),\n all: defaultForm(),\n radius: props.modelValue.borderRadius || '0px',\n})\n\nconst styles = computed(() => {\n const style: any = {}\n positions.forEach((item) => {\n if (item === 'all') {\n if (form[item].borderWidth) {\n style.borderWidth = form[item].borderWidth + (form[item].unit || 'px')\n }\n if (form[item].borderStyle) {\n style.borderStyle = form[item].borderStyle\n }\n if (form[item].borderColor) {\n style.borderColor = form[item].borderColor\n }\n } else {\n if (form[item].borderWidth) {\n style['border' + upper(item) + 'Width'] = form[item].borderWidth + (form[item].unit || 'px')\n }\n\n if (form[item].borderStyle) {\n style['border' + upper(item) + 'Style'] = form[item].borderStyle\n }\n\n if (form[item].borderColor) {\n style['border' + upper(item) + 'Color'] = form[item].borderColor\n }\n }\n })\n // 把style中的borderWidth、borderStyle、borderColor放到最前面\n if (form.radius !== '0px') {\n style.borderRadius = form.radius\n }\n return style\n})\nwatch(styles, () => {\n emit('update:modelValue', styles.value)\n})\n\nconst init = () => {\n const keys = [\n 'borderWidth',\n 'borderStyle',\n 'borderColor',\n 'borderRightWidth',\n 'borderRightStyle',\n 'borderRightColor',\n 'borderLeftWidth',\n 'borderLeftStyle',\n 'borderLeftColor',\n 'borderTopWidth',\n 'borderTopStyle',\n 'borderTopColor',\n 'borderBottomWidth',\n 'borderBottomStyle',\n 'borderBottomColor',\n 'borderRadius',\n ]\n\n keys.forEach((key) => {\n if (props.modelValue[key]) {\n if (key === 'borderRadius') {\n form.radius = props.modelValue[key]\n } else {\n let [_, position, property] = key.split(/(?=[A-Z])/)\n let _position = position.toLowerCase() // 位置\n const value = props.modelValue[key] // 值\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n if (property === 'Width') {\n const width = parseInt(value) || 0\n const unit = value.replace(width + '', '') || 'px'\n if (units.indexOf(unit) > -1) {\n form[_position].unit = unit\n form[_position].borderWidth = width\n }\n } else {\n form[_position]['border' + property] = value\n }\n }\n } else {\n if (key === 'borderRadius') {\n form.radius = '0px'\n } else {\n // delete form[position.value][key]\n let [_, position, property] = key.split(/(?=[A-Z])/)\n\n let _position = position.toLowerCase() // 位置\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n const value = props.modelValue[key] // 值\n if (property === 'Width') {\n delete form[_position].borderWidth\n delete form[_position].unit\n } else {\n delete form[_position]['border' + property]\n }\n }\n }\n })\n}\n\nconst clearOtherBorder = () => {\n if (position.value === 'all') {\n positions.forEach((item) => {\n if (item !== 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n } else {\n positions.forEach((item) => {\n if (item === 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n }\n}\nconst del = (value: any) => {\n if (value === 'radius') {\n form.radius = '0px'\n } else {\n delete form[position.value][value]\n }\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n {\n deep: true,\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","position","width"],"mappings":";;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA0HD,IAAA,MAAM,YAAY,CAAC,KAAA,EAAO,OAAS,EAAA,QAAA,EAAU,QAAQ,KAAK,CAAA,CAAA;AA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'./style-box-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleBoxInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);
4
+ var _StyleBoxInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);
5
5
 
6
6
  export { _StyleBoxInput as default };
7
7
  //# sourceMappingURL=style-box-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-font-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleFontInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);
4
+ var _StyleFontInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);
5
5
 
6
6
  export { _StyleFontInput as default };
7
7
  //# sourceMappingURL=style-font-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);
4
+ var _StyleInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-input\\src\\style-input.vue"]]);
5
5
 
6
6
  export { _StyleInput as default };
7
7
  //# sourceMappingURL=style-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-number-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);
4
+ var _StyleNumberInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-number-input\\src\\style-number-input.vue"]]);
5
5
 
6
6
  export { _StyleNumberInput as default };
7
7
  //# sourceMappingURL=style-number-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-position-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StylePositionInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);
4
+ var _StylePositionInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-position-input\\src\\style-position-input.vue"]]);
5
5
 
6
6
  export { _StylePositionInput as default };
7
7
  //# sourceMappingURL=style-position-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-shadow-content.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleShadowContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);
4
+ var _StyleShadowContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-content.vue"]]);
5
5
 
6
6
  export { _StyleShadowContent as default };
7
7
  //# sourceMappingURL=style-shadow-content.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-shadow-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleShadowInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);
4
+ var _StyleShadowInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);
5
5
 
6
6
  export { _StyleShadowInput as default };
7
7
  //# sourceMappingURL=style-shadow-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './ComSearch.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var ComSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\table\\src\\components\\ComSearch.vue"]]);
4
+ var ComSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\table\\src\\components\\ComSearch.vue"]]);
5
5
 
6
6
  export { ComSearch as default };
7
7
  //# sourceMappingURL=ComSearch.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './FieldRender.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkFieldRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\table\\src\\components\\FieldRender.vue"]]);
4
+ var DkFieldRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\table\\src\\components\\FieldRender.vue"]]);
5
5
 
6
6
  export { DkFieldRender as default };
7
7
  //# sourceMappingURL=FieldRender.vue.mjs.map