@vipl520/dk-ui 1.0.11 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (661) hide show
  1. package/dist/attributes.json +8 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +3949 -3158
  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 +3961 -3172
  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/attachment.vue2.mjs +7 -6
  13. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  14. package/es/attachment/src/file-icon.vue.mjs +1 -1
  15. package/es/attachment-dialog/src/attachment-dialog.vue.mjs +1 -1
  16. package/es/audio-input/src/audio-input.vue.mjs +1 -1
  17. package/es/audio-list-input/src/audio-list-input.vue.mjs +1 -1
  18. package/es/box-size-input/src/box-size-input.vue.mjs +1 -1
  19. package/es/color-input/src/color-input.vue.mjs +1 -1
  20. package/es/dialog/index.d.ts +15 -0
  21. package/es/dialog/src/dialog.vue.d.ts +9 -0
  22. package/es/dialog/src/dialog.vue.mjs +1 -1
  23. package/es/dialog/src/dialog.vue2.mjs +3 -2
  24. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  25. package/es/dialog/src/props.d.ts +4 -0
  26. package/es/dialog/src/props.mjs +4 -0
  27. package/es/dialog/src/props.mjs.map +1 -1
  28. package/es/file-input/src/file-input.vue.mjs +1 -1
  29. package/es/file-input/style/index.css +1 -1
  30. package/es/file-input/style/index.scss +2 -0
  31. package/es/file-list-input/src/file-list-input.vue.mjs +1 -1
  32. package/es/file-list-input/style/index.css +1 -1
  33. package/es/file-list-input/style/index.scss +1 -0
  34. package/es/form/src/form.vue.mjs +1 -1
  35. package/es/form/style/index.css +1 -1
  36. package/es/form/style/index.scss +7 -3
  37. package/es/group/src/group.vue.mjs +1 -1
  38. package/es/hot-area-input/index.d.ts +15 -0
  39. package/es/hot-area-input/index.mjs +8 -0
  40. package/es/hot-area-input/index.mjs.map +1 -0
  41. package/es/hot-area-input/src/component/hot-area-content.vue.d.ts +24 -0
  42. package/es/hot-area-input/src/component/hot-area-content.vue.mjs +7 -0
  43. package/es/hot-area-input/src/component/hot-area-content.vue.mjs.map +1 -0
  44. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs +262 -0
  45. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -0
  46. package/es/hot-area-input/src/hot-area-input.vue.d.ts +14 -0
  47. package/es/hot-area-input/src/hot-area-input.vue.mjs +7 -0
  48. package/es/hot-area-input/src/hot-area-input.vue.mjs.map +1 -0
  49. package/es/hot-area-input/src/hot-area-input.vue2.mjs +65 -0
  50. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -0
  51. package/es/hot-area-input/src/props.d.ts +8 -0
  52. package/es/hot-area-input/src/props.mjs +11 -0
  53. package/es/hot-area-input/src/props.mjs.map +1 -0
  54. package/es/hot-area-input/style/index.css +1 -0
  55. package/es/hot-area-input/style/index.scss +40 -0
  56. package/es/icon/src/icon.vue.mjs +1 -1
  57. package/es/icon-input/src/icon-content.vue.mjs +1 -1
  58. package/es/icon-input/src/icon-dialog.vue.mjs +1 -1
  59. package/es/icon-input/src/icon-input.vue.mjs +1 -1
  60. package/es/image-input/src/image-input.vue.mjs +1 -1
  61. package/es/image-list-input/src/image-list-input.vue.mjs +1 -1
  62. package/es/index.d.ts +1 -0
  63. package/es/index.mjs +5 -1
  64. package/es/index.mjs.map +1 -1
  65. package/es/index.scss +1 -62
  66. package/es/page-diy/index.d.ts +59 -23
  67. package/es/page-diy/index.mjs +0 -4
  68. package/es/page-diy/index.mjs.map +1 -1
  69. package/es/page-diy/src/components/DragBox.vue.mjs +1 -1
  70. package/es/page-diy/src/components/DragTool.vue.mjs +1 -1
  71. package/es/page-diy/src/components/PreviewPhone.vue.mjs +1 -1
  72. package/es/page-diy/src/components/PreviewPhone.vue2.mjs +1 -1
  73. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  74. package/es/page-diy/src/config/base/dkPage.mjs +0 -49
  75. package/es/page-diy/src/config/base/dkPage.mjs.map +1 -1
  76. package/es/page-diy/src/config/base/dkSetting.mjs +0 -190
  77. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  78. package/es/page-diy/src/config/rule/min/common/DkMinBlank.d.ts +24 -0
  79. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs +22 -0
  80. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs.map +1 -0
  81. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.d.ts +38 -0
  82. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs +43 -0
  83. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs.map +1 -0
  84. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +115 -0
  85. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs +177 -0
  86. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs.map +1 -0
  87. package/es/page-diy/src/config/rule/min/common/DkMinTextarea.d.ts +33 -0
  88. package/es/page-diy/src/config/rule/min/common/DkMinTextarea.mjs +36 -0
  89. package/es/page-diy/src/config/rule/min/common/DkMinTextarea.mjs.map +1 -0
  90. package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +68 -0
  91. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +78 -0
  92. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -0
  93. package/es/page-diy/src/config/rule/min/common/DkMinVideo.d.ts +54 -0
  94. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +52 -0
  95. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -0
  96. package/es/page-diy/src/config/rule/min/common/index.d.ts +620 -0
  97. package/es/page-diy/src/config/rule/min/common/index.mjs +19 -0
  98. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -0
  99. package/es/page-diy/src/config/rule/min/index.d.ts +624 -0
  100. package/es/page-diy/src/config/rule/min/index.mjs +17 -0
  101. package/es/page-diy/src/config/rule/min/index.mjs.map +1 -0
  102. package/es/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.mjs +1 -3
  103. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -0
  104. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -0
  105. package/es/page-diy/src/config/rule/web/common/DkViewCell.mjs.map +1 -0
  106. package/es/page-diy/src/config/rule/web/common/DkViewCommonBtn.mjs.map +1 -0
  107. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -0
  108. package/es/page-diy/src/config/rule/web/common/DkViewGridCellList.mjs.map +1 -0
  109. package/es/page-diy/src/config/rule/web/common/DkViewImage.mjs.map +1 -0
  110. package/es/page-diy/src/config/rule/web/common/DkViewMusic.mjs.map +1 -0
  111. package/es/page-diy/src/config/rule/web/common/DkViewNavBar.mjs.map +1 -0
  112. package/es/page-diy/src/config/rule/web/common/DkViewNoticeBar.mjs.map +1 -0
  113. package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs.map +1 -0
  114. package/es/page-diy/src/config/rule/web/common/DkViewTabbar.mjs.map +1 -0
  115. package/es/page-diy/src/config/rule/web/common/DkViewTextarea.mjs.map +1 -0
  116. package/es/page-diy/src/config/rule/{common → web/common}/DkViewVideo.mjs +3 -9
  117. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -0
  118. package/es/page-diy/src/config/rule/web/common/index.mjs.map +1 -0
  119. package/es/page-diy/src/config/rule/{index.d.ts → web/index.d.ts} +2 -2
  120. package/es/page-diy/src/config/rule/{index.mjs → web/index.mjs} +3 -3
  121. package/es/page-diy/src/config/rule/web/index.mjs.map +1 -0
  122. package/es/page-diy/src/config/rule/web/layout/DkViewTitle.mjs.map +1 -0
  123. package/es/page-diy/src/config/rule/web/layout/col.mjs.map +1 -0
  124. package/es/page-diy/src/config/rule/web/layout/divider.mjs.map +1 -0
  125. package/es/page-diy/src/config/rule/web/layout/index.mjs.map +1 -0
  126. package/es/page-diy/src/config/rule/web/layout/row.mjs.map +1 -0
  127. package/es/page-diy/src/config/rule/web/layout/space.mjs.map +1 -0
  128. package/es/page-diy/src/config/rule/web/layout/swip-item.mjs.map +1 -0
  129. package/es/page-diy/src/config/rule/web/layout/swipe.mjs.map +1 -0
  130. package/es/page-diy/src/config/rule/web/layout/tab.mjs.map +1 -0
  131. package/es/page-diy/src/config/rule/web/layout/tabs.mjs.map +1 -0
  132. package/es/page-diy/src/config/rule/web/layout/vanEmpty.mjs.map +1 -0
  133. package/es/page-diy/src/page-diy.vue.d.ts +59 -23
  134. package/es/page-diy/src/page-diy.vue.mjs +53 -187
  135. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  136. package/es/page-diy/src/props.d.ts +21 -4
  137. package/es/page-diy/src/props.mjs +28 -6
  138. package/es/page-diy/src/props.mjs.map +1 -1
  139. package/es/page-diy/src/utils/help.mjs.map +1 -1
  140. package/es/page-diy/src/views/min/DkMinBlank.vue.d.ts +14 -0
  141. package/es/page-diy/src/views/min/DkMinBlank.vue.mjs +28 -0
  142. package/es/page-diy/src/views/min/DkMinBlank.vue.mjs.map +1 -0
  143. package/es/page-diy/src/views/min/DkMinHotArea.vue.d.ts +27 -0
  144. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +126 -0
  145. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -0
  146. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +68 -0
  147. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +86 -0
  148. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -0
  149. package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs +28 -0
  150. package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs.map +1 -0
  151. package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +95 -0
  152. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +62 -0
  153. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -0
  154. package/es/page-diy/src/views/min/DkMinVideo.vue.mjs +86 -0
  155. package/es/page-diy/src/views/min/DkMinVideo.vue.mjs.map +1 -0
  156. package/es/page-diy/src/views/min/index.mjs +18 -0
  157. package/es/page-diy/src/views/min/index.mjs.map +1 -0
  158. package/es/page-diy/src/views/{DkViewBulletChat.vue.mjs → web/DkViewBulletChat.vue.mjs} +2 -2
  159. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -0
  160. package/es/page-diy/src/views/{DkViewCell.vue.mjs → web/DkViewCell.vue.mjs} +2 -2
  161. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -0
  162. package/es/page-diy/src/views/{DkViewCommonBtn.vue.mjs → web/DkViewCommonBtn.vue.mjs} +3 -5
  163. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -0
  164. package/es/page-diy/src/views/{DkViewDialog.vue.mjs → web/DkViewDialog.vue.mjs} +2 -2
  165. package/es/page-diy/src/views/web/DkViewDialog.vue.mjs.map +1 -0
  166. package/es/page-diy/src/views/{DkViewGridCellList.vue.mjs → web/DkViewGridCellList.vue.mjs} +2 -2
  167. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -0
  168. package/es/page-diy/src/views/{DkViewImage.vue.mjs → web/DkViewImage.vue.mjs} +2 -2
  169. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -0
  170. package/es/page-diy/src/views/{DkViewMusic.vue.mjs → web/DkViewMusic.vue.mjs} +2 -2
  171. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -0
  172. package/es/page-diy/src/views/{DkViewNavBar.vue.mjs → web/DkViewNavBar.vue.mjs} +2 -2
  173. package/es/page-diy/src/views/web/DkViewNavBar.vue.mjs.map +1 -0
  174. package/es/page-diy/src/views/{DkViewNoticeBar.vue.mjs → web/DkViewNoticeBar.vue.mjs} +2 -2
  175. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -0
  176. package/es/page-diy/src/views/{DkViewSwipe.vue.mjs → web/DkViewSwipe.vue.mjs} +2 -2
  177. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -0
  178. package/es/page-diy/src/views/{DkViewTabbar.vue.mjs → web/DkViewTabbar.vue.mjs} +2 -2
  179. package/es/page-diy/src/views/web/DkViewTabbar.vue.mjs.map +1 -0
  180. package/es/page-diy/src/views/{DkViewTextarea.vue.mjs → web/DkViewTextarea.vue.mjs} +2 -2
  181. package/es/page-diy/src/views/web/DkViewTextarea.vue.mjs.map +1 -0
  182. package/es/page-diy/src/views/{DkViewTitle.vue.mjs → web/DkViewTitle.vue.mjs} +2 -2
  183. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -0
  184. package/es/page-diy/src/views/{DkViewVideo.vue.mjs → web/DkViewVideo.vue.mjs} +2 -2
  185. package/es/page-diy/src/views/web/DkViewVideo.vue.mjs.map +1 -0
  186. package/es/page-diy/src/views/web/index.mjs.map +1 -0
  187. package/es/page-diy/style/drag-tool.css +1 -1
  188. package/es/page-diy/style/drag-tool.scss +2 -2
  189. package/es/page-diy/style/index.css +1 -1
  190. package/es/page-diy/style/index.scss +1 -0
  191. package/es/page-diy/style/minViews/index.scss +26 -0
  192. package/es/page-diy/style/preview-phone.css +1 -1
  193. package/es/page-diy/style/preview-phone.scss +36 -2
  194. package/es/poster-input/src/component/poster.vue.mjs +1 -1
  195. package/es/poster-input/src/component/poster.vue2.mjs +13 -13
  196. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  197. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.mjs +1 -1
  198. package/es/poster-input/src/component/views/DkPosterViewImage.vue.mjs +1 -1
  199. package/es/poster-input/src/component/views/DkPosterViewName.vue.mjs +1 -1
  200. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.mjs +1 -1
  201. package/es/poster-input/src/component/views/DkPosterViewText.vue.mjs +1 -1
  202. package/es/poster-input/src/component/views/quick-action.vue.mjs +1 -1
  203. package/es/poster-input/src/poster-input.vue.mjs +1 -1
  204. package/es/select/src/select.vue.mjs +1 -1
  205. package/es/style-background-input/src/style-background-input.vue.mjs +1 -1
  206. package/es/style-border-input/src/style-border-input.vue.mjs +1 -1
  207. package/es/style-box-input/src/style-box-input.vue.mjs +1 -1
  208. package/es/style-font-input/src/style-font-input.vue.mjs +1 -1
  209. package/es/style-input/src/style-input.vue.mjs +1 -1
  210. package/es/style-number-input/src/style-number-input.vue.mjs +1 -1
  211. package/es/style-position-input/src/style-position-input.vue.mjs +1 -1
  212. package/es/style-shadow-input/src/style-shadow-content.vue.mjs +1 -1
  213. package/es/style-shadow-input/src/style-shadow-input.vue.mjs +1 -1
  214. package/es/table/src/components/ComSearch.vue.mjs +1 -1
  215. package/es/table/src/components/FieldRender.vue.mjs +1 -1
  216. package/es/table/src/components/RecycleDialog.vue.mjs +1 -1
  217. package/es/table/src/components/RecycleDialog.vue2.mjs +1 -2
  218. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  219. package/es/table/src/components/header.vue.mjs +1 -1
  220. package/es/table/src/table.vue.mjs +1 -1
  221. package/es/test/src/test.vue.mjs +1 -1
  222. package/es/tiny-editor/src/tiny-editor.vue.mjs +1 -1
  223. package/es/video-input/src/video-input.vue.mjs +1 -1
  224. package/es/video-list-input/src/video-list-input.vue.mjs +1 -1
  225. package/lib/attachment/src/attachment.vue.js +1 -1
  226. package/lib/attachment/src/attachment.vue2.js +7 -6
  227. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  228. package/lib/attachment/src/file-icon.vue.js +1 -1
  229. package/lib/attachment-dialog/src/attachment-dialog.vue.js +1 -1
  230. package/lib/audio-input/src/audio-input.vue.js +1 -1
  231. package/lib/audio-list-input/src/audio-list-input.vue.js +1 -1
  232. package/lib/box-size-input/src/box-size-input.vue.js +1 -1
  233. package/lib/color-input/src/color-input.vue.js +1 -1
  234. package/lib/dialog/index.d.ts +15 -0
  235. package/lib/dialog/src/dialog.vue.d.ts +9 -0
  236. package/lib/dialog/src/dialog.vue.js +1 -1
  237. package/lib/dialog/src/dialog.vue2.js +3 -2
  238. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  239. package/lib/dialog/src/props.d.ts +4 -0
  240. package/lib/dialog/src/props.js +4 -0
  241. package/lib/dialog/src/props.js.map +1 -1
  242. package/lib/file-input/src/file-input.vue.js +1 -1
  243. package/lib/file-input/style/index.css +1 -1
  244. package/lib/file-input/style/index.scss +2 -0
  245. package/lib/file-list-input/src/file-list-input.vue.js +1 -1
  246. package/lib/file-list-input/style/index.css +1 -1
  247. package/lib/file-list-input/style/index.scss +1 -0
  248. package/lib/form/src/form.vue.js +1 -1
  249. package/lib/form/style/index.css +1 -1
  250. package/lib/form/style/index.scss +7 -3
  251. package/lib/group/src/group.vue.js +1 -1
  252. package/lib/hot-area-input/index.d.ts +15 -0
  253. package/lib/hot-area-input/index.js +14 -0
  254. package/lib/hot-area-input/index.js.map +1 -0
  255. package/lib/hot-area-input/src/component/hot-area-content.vue.d.ts +24 -0
  256. package/lib/hot-area-input/src/component/hot-area-content.vue.js +11 -0
  257. package/lib/hot-area-input/src/component/hot-area-content.vue.js.map +1 -0
  258. package/lib/hot-area-input/src/component/hot-area-content.vue2.js +266 -0
  259. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -0
  260. package/lib/hot-area-input/src/hot-area-input.vue.d.ts +14 -0
  261. package/lib/hot-area-input/src/hot-area-input.vue.js +11 -0
  262. package/lib/hot-area-input/src/hot-area-input.vue.js.map +1 -0
  263. package/lib/hot-area-input/src/hot-area-input.vue2.js +69 -0
  264. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -0
  265. package/lib/hot-area-input/src/props.d.ts +8 -0
  266. package/lib/hot-area-input/src/props.js +13 -0
  267. package/lib/hot-area-input/src/props.js.map +1 -0
  268. package/lib/hot-area-input/style/index.css +1 -0
  269. package/lib/hot-area-input/style/index.scss +40 -0
  270. package/lib/icon/src/icon.vue.js +1 -1
  271. package/lib/icon-input/src/icon-content.vue.js +1 -1
  272. package/lib/icon-input/src/icon-dialog.vue.js +1 -1
  273. package/lib/icon-input/src/icon-input.vue.js +1 -1
  274. package/lib/image-input/src/image-input.vue.js +1 -1
  275. package/lib/image-list-input/src/image-list-input.vue.js +1 -1
  276. package/lib/index.d.ts +1 -0
  277. package/lib/index.js +148 -142
  278. package/lib/index.js.map +1 -1
  279. package/lib/index.scss +1 -62
  280. package/lib/page-diy/index.d.ts +59 -23
  281. package/lib/page-diy/index.js +0 -4
  282. package/lib/page-diy/index.js.map +1 -1
  283. package/lib/page-diy/src/components/DragBox.vue.js +1 -1
  284. package/lib/page-diy/src/components/DragTool.vue.js +1 -1
  285. package/lib/page-diy/src/components/PreviewPhone.vue.js +1 -1
  286. package/lib/page-diy/src/components/PreviewPhone.vue2.js +1 -1
  287. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  288. package/lib/page-diy/src/config/base/dkPage.js +0 -49
  289. package/lib/page-diy/src/config/base/dkPage.js.map +1 -1
  290. package/lib/page-diy/src/config/base/dkSetting.js +0 -190
  291. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  292. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.d.ts +24 -0
  293. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js +26 -0
  294. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js.map +1 -0
  295. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.d.ts +38 -0
  296. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js +47 -0
  297. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js.map +1 -0
  298. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +115 -0
  299. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js +181 -0
  300. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js.map +1 -0
  301. package/lib/page-diy/src/config/rule/min/common/DkMinTextarea.d.ts +33 -0
  302. package/lib/page-diy/src/config/rule/min/common/DkMinTextarea.js +40 -0
  303. package/lib/page-diy/src/config/rule/min/common/DkMinTextarea.js.map +1 -0
  304. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +68 -0
  305. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +82 -0
  306. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -0
  307. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.d.ts +54 -0
  308. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +56 -0
  309. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -0
  310. package/lib/page-diy/src/config/rule/min/common/index.d.ts +620 -0
  311. package/lib/page-diy/src/config/rule/min/common/index.js +22 -0
  312. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -0
  313. package/lib/page-diy/src/config/rule/min/index.d.ts +624 -0
  314. package/lib/page-diy/src/config/rule/min/index.js +20 -0
  315. package/lib/page-diy/src/config/rule/min/index.js.map +1 -0
  316. package/lib/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.js +1 -3
  317. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -0
  318. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -0
  319. package/lib/page-diy/src/config/rule/web/common/DkViewCell.js.map +1 -0
  320. package/lib/page-diy/src/config/rule/web/common/DkViewCommonBtn.js.map +1 -0
  321. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -0
  322. package/lib/page-diy/src/config/rule/web/common/DkViewGridCellList.js.map +1 -0
  323. package/lib/page-diy/src/config/rule/web/common/DkViewImage.js.map +1 -0
  324. package/lib/page-diy/src/config/rule/web/common/DkViewMusic.js.map +1 -0
  325. package/lib/page-diy/src/config/rule/web/common/DkViewNavBar.js.map +1 -0
  326. package/lib/page-diy/src/config/rule/web/common/DkViewNoticeBar.js.map +1 -0
  327. package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js.map +1 -0
  328. package/lib/page-diy/src/config/rule/web/common/DkViewTabbar.js.map +1 -0
  329. package/lib/page-diy/src/config/rule/web/common/DkViewTextarea.js.map +1 -0
  330. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewVideo.js +3 -9
  331. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -0
  332. package/lib/page-diy/src/config/rule/web/common/index.js.map +1 -0
  333. package/lib/page-diy/src/config/rule/{index.d.ts → web/index.d.ts} +2 -2
  334. package/lib/page-diy/src/config/rule/{index.js → web/index.js} +4 -4
  335. package/lib/page-diy/src/config/rule/web/index.js.map +1 -0
  336. package/lib/page-diy/src/config/rule/web/layout/DkViewTitle.js.map +1 -0
  337. package/lib/page-diy/src/config/rule/web/layout/col.js.map +1 -0
  338. package/lib/page-diy/src/config/rule/web/layout/divider.js.map +1 -0
  339. package/lib/page-diy/src/config/rule/web/layout/index.js.map +1 -0
  340. package/lib/page-diy/src/config/rule/web/layout/row.js.map +1 -0
  341. package/lib/page-diy/src/config/rule/web/layout/space.js.map +1 -0
  342. package/lib/page-diy/src/config/rule/web/layout/swip-item.js.map +1 -0
  343. package/lib/page-diy/src/config/rule/web/layout/swipe.js.map +1 -0
  344. package/lib/page-diy/src/config/rule/web/layout/tab.js.map +1 -0
  345. package/lib/page-diy/src/config/rule/web/layout/tabs.js.map +1 -0
  346. package/lib/page-diy/src/config/rule/web/layout/vanEmpty.js.map +1 -0
  347. package/lib/page-diy/src/page-diy.vue.d.ts +59 -23
  348. package/lib/page-diy/src/page-diy.vue.js +61 -195
  349. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  350. package/lib/page-diy/src/props.d.ts +21 -4
  351. package/lib/page-diy/src/props.js +28 -6
  352. package/lib/page-diy/src/props.js.map +1 -1
  353. package/lib/page-diy/src/utils/help.js.map +1 -1
  354. package/lib/page-diy/src/views/min/DkMinBlank.vue.d.ts +14 -0
  355. package/lib/page-diy/src/views/min/DkMinBlank.vue.js +32 -0
  356. package/lib/page-diy/src/views/min/DkMinBlank.vue.js.map +1 -0
  357. package/lib/page-diy/src/views/min/DkMinHotArea.vue.d.ts +27 -0
  358. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +130 -0
  359. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -0
  360. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +68 -0
  361. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +90 -0
  362. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -0
  363. package/lib/page-diy/src/views/min/DkMinTextarea.vue.d.ts +14 -0
  364. package/lib/page-diy/src/views/min/DkMinTextarea.vue.js +32 -0
  365. package/lib/page-diy/src/views/min/DkMinTextarea.vue.js.map +1 -0
  366. package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +95 -0
  367. package/lib/page-diy/src/views/min/DkMinTitle.vue.js +66 -0
  368. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -0
  369. package/lib/page-diy/src/views/min/DkMinVideo.vue.d.ts +54 -0
  370. package/lib/page-diy/src/views/min/DkMinVideo.vue.js +90 -0
  371. package/lib/page-diy/src/views/min/DkMinVideo.vue.js.map +1 -0
  372. package/lib/page-diy/src/views/min/index.d.ts +2 -0
  373. package/lib/page-diy/src/views/min/index.js +22 -0
  374. package/lib/page-diy/src/views/min/index.js.map +1 -0
  375. package/lib/page-diy/src/views/{DkViewBulletChat.vue.js → web/DkViewBulletChat.vue.js} +2 -2
  376. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -0
  377. package/lib/page-diy/src/views/{DkViewCell.vue.js → web/DkViewCell.vue.js} +2 -2
  378. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -0
  379. package/lib/page-diy/src/views/{DkViewCommonBtn.vue.js → web/DkViewCommonBtn.vue.js} +3 -5
  380. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -0
  381. package/lib/page-diy/src/views/{DkViewDialog.vue.js → web/DkViewDialog.vue.js} +2 -2
  382. package/lib/page-diy/src/views/web/DkViewDialog.vue.js.map +1 -0
  383. package/lib/page-diy/src/views/{DkViewGridCellList.vue.js → web/DkViewGridCellList.vue.js} +2 -2
  384. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -0
  385. package/lib/page-diy/src/views/{DkViewImage.vue.js → web/DkViewImage.vue.js} +2 -2
  386. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -0
  387. package/lib/page-diy/src/views/{DkViewMusic.vue.js → web/DkViewMusic.vue.js} +2 -2
  388. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -0
  389. package/lib/page-diy/src/views/{DkViewNavBar.vue.js → web/DkViewNavBar.vue.js} +2 -2
  390. package/lib/page-diy/src/views/web/DkViewNavBar.vue.js.map +1 -0
  391. package/lib/page-diy/src/views/{DkViewNoticeBar.vue.js → web/DkViewNoticeBar.vue.js} +2 -2
  392. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -0
  393. package/lib/page-diy/src/views/{DkViewSwipe.vue.js → web/DkViewSwipe.vue.js} +2 -2
  394. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -0
  395. package/lib/page-diy/src/views/{DkViewTabbar.vue.js → web/DkViewTabbar.vue.js} +2 -2
  396. package/lib/page-diy/src/views/web/DkViewTabbar.vue.js.map +1 -0
  397. package/lib/page-diy/src/views/web/DkViewTextarea.vue.d.ts +14 -0
  398. package/lib/page-diy/src/views/{DkViewTextarea.vue.js → web/DkViewTextarea.vue.js} +2 -2
  399. package/lib/page-diy/src/views/web/DkViewTextarea.vue.js.map +1 -0
  400. package/lib/page-diy/src/views/{DkViewTitle.vue.js → web/DkViewTitle.vue.js} +2 -2
  401. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -0
  402. package/lib/page-diy/src/views/web/DkViewVideo.vue.d.ts +54 -0
  403. package/lib/page-diy/src/views/{DkViewVideo.vue.js → web/DkViewVideo.vue.js} +2 -2
  404. package/lib/page-diy/src/views/web/DkViewVideo.vue.js.map +1 -0
  405. package/lib/page-diy/src/views/web/index.d.ts +2 -0
  406. package/lib/page-diy/src/views/web/index.js.map +1 -0
  407. package/lib/page-diy/style/drag-tool.css +1 -1
  408. package/lib/page-diy/style/drag-tool.scss +2 -2
  409. package/lib/page-diy/style/index.css +1 -1
  410. package/lib/page-diy/style/index.scss +1 -0
  411. package/lib/page-diy/style/minViews/index.scss +26 -0
  412. package/lib/page-diy/style/preview-phone.css +1 -1
  413. package/lib/page-diy/style/preview-phone.scss +36 -2
  414. package/lib/poster-input/src/component/poster.vue.js +1 -1
  415. package/lib/poster-input/src/component/poster.vue2.js +13 -13
  416. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  417. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.js +1 -1
  418. package/lib/poster-input/src/component/views/DkPosterViewImage.vue.js +1 -1
  419. package/lib/poster-input/src/component/views/DkPosterViewName.vue.js +1 -1
  420. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.js +1 -1
  421. package/lib/poster-input/src/component/views/DkPosterViewText.vue.js +1 -1
  422. package/lib/poster-input/src/component/views/quick-action.vue.js +1 -1
  423. package/lib/poster-input/src/poster-input.vue.js +1 -1
  424. package/lib/select/src/select.vue.js +1 -1
  425. package/lib/style-background-input/src/style-background-input.vue.js +1 -1
  426. package/lib/style-border-input/src/style-border-input.vue.js +1 -1
  427. package/lib/style-box-input/src/style-box-input.vue.js +1 -1
  428. package/lib/style-font-input/src/style-font-input.vue.js +1 -1
  429. package/lib/style-input/src/style-input.vue.js +1 -1
  430. package/lib/style-number-input/src/style-number-input.vue.js +1 -1
  431. package/lib/style-position-input/src/style-position-input.vue.js +1 -1
  432. package/lib/style-shadow-input/src/style-shadow-content.vue.js +1 -1
  433. package/lib/style-shadow-input/src/style-shadow-input.vue.js +1 -1
  434. package/lib/table/src/components/ComSearch.vue.js +1 -1
  435. package/lib/table/src/components/FieldRender.vue.js +1 -1
  436. package/lib/table/src/components/RecycleDialog.vue.js +1 -1
  437. package/lib/table/src/components/RecycleDialog.vue2.js +1 -2
  438. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  439. package/lib/table/src/components/header.vue.js +1 -1
  440. package/lib/table/src/table.vue.js +1 -1
  441. package/lib/test/src/test.vue.js +1 -1
  442. package/lib/tiny-editor/src/tiny-editor.vue.js +1 -1
  443. package/lib/video-input/src/video-input.vue.js +1 -1
  444. package/lib/video-list-input/src/video-list-input.vue.js +1 -1
  445. package/package.json +1 -1
  446. package/es/page-diy/src/config/rule/common/DkPosterBtn.mjs.map +0 -1
  447. package/es/page-diy/src/config/rule/common/DkViewBulletChat.mjs.map +0 -1
  448. package/es/page-diy/src/config/rule/common/DkViewCell.mjs.map +0 -1
  449. package/es/page-diy/src/config/rule/common/DkViewCommonBtn.mjs.map +0 -1
  450. package/es/page-diy/src/config/rule/common/DkViewDialog.mjs.map +0 -1
  451. package/es/page-diy/src/config/rule/common/DkViewGridCellList.mjs.map +0 -1
  452. package/es/page-diy/src/config/rule/common/DkViewImage.mjs.map +0 -1
  453. package/es/page-diy/src/config/rule/common/DkViewMusic.mjs.map +0 -1
  454. package/es/page-diy/src/config/rule/common/DkViewNavBar.mjs.map +0 -1
  455. package/es/page-diy/src/config/rule/common/DkViewNoticeBar.mjs.map +0 -1
  456. package/es/page-diy/src/config/rule/common/DkViewSwipe.mjs.map +0 -1
  457. package/es/page-diy/src/config/rule/common/DkViewTabbar.mjs.map +0 -1
  458. package/es/page-diy/src/config/rule/common/DkViewTextarea.mjs.map +0 -1
  459. package/es/page-diy/src/config/rule/common/DkViewVideo.mjs.map +0 -1
  460. package/es/page-diy/src/config/rule/common/index.mjs.map +0 -1
  461. package/es/page-diy/src/config/rule/index.mjs.map +0 -1
  462. package/es/page-diy/src/config/rule/layout/DkViewTitle.mjs.map +0 -1
  463. package/es/page-diy/src/config/rule/layout/col.mjs.map +0 -1
  464. package/es/page-diy/src/config/rule/layout/divider.mjs.map +0 -1
  465. package/es/page-diy/src/config/rule/layout/index.mjs.map +0 -1
  466. package/es/page-diy/src/config/rule/layout/row.mjs.map +0 -1
  467. package/es/page-diy/src/config/rule/layout/space.mjs.map +0 -1
  468. package/es/page-diy/src/config/rule/layout/swip-item.mjs.map +0 -1
  469. package/es/page-diy/src/config/rule/layout/swipe.mjs.map +0 -1
  470. package/es/page-diy/src/config/rule/layout/tab.mjs.map +0 -1
  471. package/es/page-diy/src/config/rule/layout/tabs.mjs.map +0 -1
  472. package/es/page-diy/src/config/rule/layout/vanEmpty.mjs.map +0 -1
  473. package/es/page-diy/src/views/DkViewBulletChat.vue.mjs.map +0 -1
  474. package/es/page-diy/src/views/DkViewCell.vue.mjs.map +0 -1
  475. package/es/page-diy/src/views/DkViewCommonBtn.vue.mjs.map +0 -1
  476. package/es/page-diy/src/views/DkViewDialog.vue.mjs.map +0 -1
  477. package/es/page-diy/src/views/DkViewGridCellList.vue.mjs.map +0 -1
  478. package/es/page-diy/src/views/DkViewImage.vue.mjs.map +0 -1
  479. package/es/page-diy/src/views/DkViewMusic.vue.mjs.map +0 -1
  480. package/es/page-diy/src/views/DkViewNavBar.vue.mjs.map +0 -1
  481. package/es/page-diy/src/views/DkViewNoticeBar.vue.mjs.map +0 -1
  482. package/es/page-diy/src/views/DkViewSwipe.vue.mjs.map +0 -1
  483. package/es/page-diy/src/views/DkViewTabbar.vue.mjs.map +0 -1
  484. package/es/page-diy/src/views/DkViewTextarea.vue.mjs.map +0 -1
  485. package/es/page-diy/src/views/DkViewTitle.vue.mjs.map +0 -1
  486. package/es/page-diy/src/views/DkViewVideo.vue.mjs.map +0 -1
  487. package/es/page-diy/src/views/index.mjs.map +0 -1
  488. package/lib/page-diy/src/config/rule/common/DkPosterBtn.js.map +0 -1
  489. package/lib/page-diy/src/config/rule/common/DkViewBulletChat.js.map +0 -1
  490. package/lib/page-diy/src/config/rule/common/DkViewCell.js.map +0 -1
  491. package/lib/page-diy/src/config/rule/common/DkViewCommonBtn.js.map +0 -1
  492. package/lib/page-diy/src/config/rule/common/DkViewDialog.js.map +0 -1
  493. package/lib/page-diy/src/config/rule/common/DkViewGridCellList.js.map +0 -1
  494. package/lib/page-diy/src/config/rule/common/DkViewImage.js.map +0 -1
  495. package/lib/page-diy/src/config/rule/common/DkViewMusic.js.map +0 -1
  496. package/lib/page-diy/src/config/rule/common/DkViewNavBar.js.map +0 -1
  497. package/lib/page-diy/src/config/rule/common/DkViewNoticeBar.js.map +0 -1
  498. package/lib/page-diy/src/config/rule/common/DkViewSwipe.js.map +0 -1
  499. package/lib/page-diy/src/config/rule/common/DkViewTabbar.js.map +0 -1
  500. package/lib/page-diy/src/config/rule/common/DkViewTextarea.js.map +0 -1
  501. package/lib/page-diy/src/config/rule/common/DkViewVideo.js.map +0 -1
  502. package/lib/page-diy/src/config/rule/common/index.js.map +0 -1
  503. package/lib/page-diy/src/config/rule/index.js.map +0 -1
  504. package/lib/page-diy/src/config/rule/layout/DkViewTitle.js.map +0 -1
  505. package/lib/page-diy/src/config/rule/layout/col.js.map +0 -1
  506. package/lib/page-diy/src/config/rule/layout/divider.js.map +0 -1
  507. package/lib/page-diy/src/config/rule/layout/index.js.map +0 -1
  508. package/lib/page-diy/src/config/rule/layout/row.js.map +0 -1
  509. package/lib/page-diy/src/config/rule/layout/space.js.map +0 -1
  510. package/lib/page-diy/src/config/rule/layout/swip-item.js.map +0 -1
  511. package/lib/page-diy/src/config/rule/layout/swipe.js.map +0 -1
  512. package/lib/page-diy/src/config/rule/layout/tab.js.map +0 -1
  513. package/lib/page-diy/src/config/rule/layout/tabs.js.map +0 -1
  514. package/lib/page-diy/src/config/rule/layout/vanEmpty.js.map +0 -1
  515. package/lib/page-diy/src/views/DkViewBulletChat.vue.js.map +0 -1
  516. package/lib/page-diy/src/views/DkViewCell.vue.js.map +0 -1
  517. package/lib/page-diy/src/views/DkViewCommonBtn.vue.js.map +0 -1
  518. package/lib/page-diy/src/views/DkViewDialog.vue.js.map +0 -1
  519. package/lib/page-diy/src/views/DkViewGridCellList.vue.js.map +0 -1
  520. package/lib/page-diy/src/views/DkViewImage.vue.js.map +0 -1
  521. package/lib/page-diy/src/views/DkViewMusic.vue.js.map +0 -1
  522. package/lib/page-diy/src/views/DkViewNavBar.vue.js.map +0 -1
  523. package/lib/page-diy/src/views/DkViewNoticeBar.vue.js.map +0 -1
  524. package/lib/page-diy/src/views/DkViewSwipe.vue.js.map +0 -1
  525. package/lib/page-diy/src/views/DkViewTabbar.vue.js.map +0 -1
  526. package/lib/page-diy/src/views/DkViewTextarea.vue.js.map +0 -1
  527. package/lib/page-diy/src/views/DkViewTitle.vue.js.map +0 -1
  528. package/lib/page-diy/src/views/DkViewVideo.vue.js.map +0 -1
  529. package/lib/page-diy/src/views/index.js.map +0 -1
  530. package/es/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.d.ts +0 -0
  531. package/es/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.d.ts +0 -0
  532. package/es/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.mjs +0 -0
  533. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCell.d.ts +0 -0
  534. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCell.mjs +0 -0
  535. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.d.ts +0 -0
  536. package/es/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.mjs +0 -0
  537. package/es/page-diy/src/config/rule/{common → web/common}/DkViewDialog.d.ts +0 -0
  538. package/es/page-diy/src/config/rule/{common → web/common}/DkViewDialog.mjs +0 -0
  539. package/es/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.d.ts +0 -0
  540. package/es/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.mjs +0 -0
  541. package/es/page-diy/src/config/rule/{common → web/common}/DkViewImage.d.ts +0 -0
  542. package/es/page-diy/src/config/rule/{common → web/common}/DkViewImage.mjs +0 -0
  543. package/es/page-diy/src/config/rule/{common → web/common}/DkViewMusic.d.ts +0 -0
  544. package/es/page-diy/src/config/rule/{common → web/common}/DkViewMusic.mjs +0 -0
  545. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.d.ts +0 -0
  546. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.mjs +0 -0
  547. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.d.ts +0 -0
  548. package/es/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.mjs +0 -0
  549. package/es/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.d.ts +0 -0
  550. package/es/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.mjs +0 -0
  551. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.d.ts +0 -0
  552. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.mjs +0 -0
  553. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.d.ts +0 -0
  554. package/es/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.mjs +0 -0
  555. package/es/page-diy/src/config/rule/{common → web/common}/DkViewVideo.d.ts +0 -0
  556. package/es/page-diy/src/config/rule/{common → web/common}/index.d.ts +0 -0
  557. package/es/page-diy/src/config/rule/{common → web/common}/index.mjs +0 -0
  558. package/es/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.d.ts +0 -0
  559. package/es/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.mjs +0 -0
  560. package/es/page-diy/src/config/rule/{layout → web/layout}/col.d.ts +0 -0
  561. package/es/page-diy/src/config/rule/{layout → web/layout}/col.mjs +0 -0
  562. package/es/page-diy/src/config/rule/{layout → web/layout}/divider.d.ts +0 -0
  563. package/es/page-diy/src/config/rule/{layout → web/layout}/divider.mjs +0 -0
  564. package/es/page-diy/src/config/rule/{layout → web/layout}/index.d.ts +0 -0
  565. package/es/page-diy/src/config/rule/{layout → web/layout}/index.mjs +0 -0
  566. package/es/page-diy/src/config/rule/{layout → web/layout}/row.d.ts +0 -0
  567. package/es/page-diy/src/config/rule/{layout → web/layout}/row.mjs +0 -0
  568. package/es/page-diy/src/config/rule/{layout → web/layout}/space.d.ts +0 -0
  569. package/es/page-diy/src/config/rule/{layout → web/layout}/space.mjs +0 -0
  570. package/es/page-diy/src/config/rule/{layout → web/layout}/swip-item.d.ts +0 -0
  571. package/es/page-diy/src/config/rule/{layout → web/layout}/swip-item.mjs +0 -0
  572. package/es/page-diy/src/config/rule/{layout → web/layout}/swipe.d.ts +0 -0
  573. package/es/page-diy/src/config/rule/{layout → web/layout}/swipe.mjs +0 -0
  574. package/es/page-diy/src/config/rule/{layout → web/layout}/tab.d.ts +0 -0
  575. package/es/page-diy/src/config/rule/{layout → web/layout}/tab.mjs +0 -0
  576. package/es/page-diy/src/config/rule/{layout → web/layout}/tabs.d.ts +0 -0
  577. package/es/page-diy/src/config/rule/{layout → web/layout}/tabs.mjs +0 -0
  578. package/es/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.d.ts +0 -0
  579. package/es/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.mjs +0 -0
  580. package/es/page-diy/src/views/{DkViewTextarea.vue.d.ts → min/DkMinTextarea.vue.d.ts} +0 -0
  581. package/es/page-diy/src/views/{DkViewVideo.vue.d.ts → min/DkMinVideo.vue.d.ts} +0 -0
  582. package/es/page-diy/src/views/{index.d.ts → min/index.d.ts} +0 -0
  583. package/es/page-diy/src/views/{DkViewBulletChat.vue.d.ts → web/DkViewBulletChat.vue.d.ts} +0 -0
  584. package/es/page-diy/src/views/{DkViewCell.vue.d.ts → web/DkViewCell.vue.d.ts} +0 -0
  585. package/es/page-diy/src/views/{DkViewCommonBtn.vue.d.ts → web/DkViewCommonBtn.vue.d.ts} +0 -0
  586. package/es/page-diy/src/views/{DkViewDialog.vue.d.ts → web/DkViewDialog.vue.d.ts} +0 -0
  587. package/es/page-diy/src/views/{DkViewGridCellList.vue.d.ts → web/DkViewGridCellList.vue.d.ts} +0 -0
  588. package/es/page-diy/src/views/{DkViewImage.vue.d.ts → web/DkViewImage.vue.d.ts} +0 -0
  589. package/es/page-diy/src/views/{DkViewMusic.vue.d.ts → web/DkViewMusic.vue.d.ts} +0 -0
  590. package/es/page-diy/src/views/{DkViewNavBar.vue.d.ts → web/DkViewNavBar.vue.d.ts} +0 -0
  591. package/es/page-diy/src/views/{DkViewNoticeBar.vue.d.ts → web/DkViewNoticeBar.vue.d.ts} +0 -0
  592. package/es/page-diy/src/views/{DkViewSwipe.vue.d.ts → web/DkViewSwipe.vue.d.ts} +0 -0
  593. package/es/page-diy/src/views/{DkViewTabbar.vue.d.ts → web/DkViewTabbar.vue.d.ts} +1 -1
  594. package/{lib/page-diy/src/views → es/page-diy/src/views/web}/DkViewTextarea.vue.d.ts +0 -0
  595. package/es/page-diy/src/views/{DkViewTitle.vue.d.ts → web/DkViewTitle.vue.d.ts} +0 -0
  596. package/{lib/page-diy/src/views → es/page-diy/src/views/web}/DkViewVideo.vue.d.ts +0 -0
  597. package/{lib/page-diy/src/views → es/page-diy/src/views/web}/index.d.ts +0 -0
  598. package/es/page-diy/src/views/{index.mjs → web/index.mjs} +0 -0
  599. package/lib/page-diy/src/config/rule/{common → web/common}/DkPosterBtn.d.ts +0 -0
  600. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.d.ts +0 -0
  601. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewBulletChat.js +0 -0
  602. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCell.d.ts +0 -0
  603. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCell.js +0 -0
  604. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.d.ts +0 -0
  605. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewCommonBtn.js +0 -0
  606. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewDialog.d.ts +0 -0
  607. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewDialog.js +0 -0
  608. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.d.ts +0 -0
  609. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewGridCellList.js +0 -0
  610. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewImage.d.ts +0 -0
  611. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewImage.js +0 -0
  612. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewMusic.d.ts +0 -0
  613. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewMusic.js +0 -0
  614. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.d.ts +0 -0
  615. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNavBar.js +0 -0
  616. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.d.ts +0 -0
  617. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewNoticeBar.js +0 -0
  618. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.d.ts +0 -0
  619. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewSwipe.js +0 -0
  620. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.d.ts +0 -0
  621. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTabbar.js +0 -0
  622. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.d.ts +0 -0
  623. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewTextarea.js +0 -0
  624. package/lib/page-diy/src/config/rule/{common → web/common}/DkViewVideo.d.ts +0 -0
  625. package/lib/page-diy/src/config/rule/{common → web/common}/index.d.ts +0 -0
  626. package/lib/page-diy/src/config/rule/{common → web/common}/index.js +0 -0
  627. package/lib/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.d.ts +0 -0
  628. package/lib/page-diy/src/config/rule/{layout → web/layout}/DkViewTitle.js +0 -0
  629. package/lib/page-diy/src/config/rule/{layout → web/layout}/col.d.ts +0 -0
  630. package/lib/page-diy/src/config/rule/{layout → web/layout}/col.js +0 -0
  631. package/lib/page-diy/src/config/rule/{layout → web/layout}/divider.d.ts +0 -0
  632. package/lib/page-diy/src/config/rule/{layout → web/layout}/divider.js +0 -0
  633. package/lib/page-diy/src/config/rule/{layout → web/layout}/index.d.ts +0 -0
  634. package/lib/page-diy/src/config/rule/{layout → web/layout}/index.js +0 -0
  635. package/lib/page-diy/src/config/rule/{layout → web/layout}/row.d.ts +0 -0
  636. package/lib/page-diy/src/config/rule/{layout → web/layout}/row.js +0 -0
  637. package/lib/page-diy/src/config/rule/{layout → web/layout}/space.d.ts +0 -0
  638. package/lib/page-diy/src/config/rule/{layout → web/layout}/space.js +0 -0
  639. package/lib/page-diy/src/config/rule/{layout → web/layout}/swip-item.d.ts +0 -0
  640. package/lib/page-diy/src/config/rule/{layout → web/layout}/swip-item.js +0 -0
  641. package/lib/page-diy/src/config/rule/{layout → web/layout}/swipe.d.ts +0 -0
  642. package/lib/page-diy/src/config/rule/{layout → web/layout}/swipe.js +0 -0
  643. package/lib/page-diy/src/config/rule/{layout → web/layout}/tab.d.ts +0 -0
  644. package/lib/page-diy/src/config/rule/{layout → web/layout}/tab.js +0 -0
  645. package/lib/page-diy/src/config/rule/{layout → web/layout}/tabs.d.ts +0 -0
  646. package/lib/page-diy/src/config/rule/{layout → web/layout}/tabs.js +0 -0
  647. package/lib/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.d.ts +0 -0
  648. package/lib/page-diy/src/config/rule/{layout → web/layout}/vanEmpty.js +0 -0
  649. package/lib/page-diy/src/views/{DkViewBulletChat.vue.d.ts → web/DkViewBulletChat.vue.d.ts} +0 -0
  650. package/lib/page-diy/src/views/{DkViewCell.vue.d.ts → web/DkViewCell.vue.d.ts} +0 -0
  651. package/lib/page-diy/src/views/{DkViewCommonBtn.vue.d.ts → web/DkViewCommonBtn.vue.d.ts} +0 -0
  652. package/lib/page-diy/src/views/{DkViewDialog.vue.d.ts → web/DkViewDialog.vue.d.ts} +0 -0
  653. package/lib/page-diy/src/views/{DkViewGridCellList.vue.d.ts → web/DkViewGridCellList.vue.d.ts} +0 -0
  654. package/lib/page-diy/src/views/{DkViewImage.vue.d.ts → web/DkViewImage.vue.d.ts} +0 -0
  655. package/lib/page-diy/src/views/{DkViewMusic.vue.d.ts → web/DkViewMusic.vue.d.ts} +0 -0
  656. package/lib/page-diy/src/views/{DkViewNavBar.vue.d.ts → web/DkViewNavBar.vue.d.ts} +0 -0
  657. package/lib/page-diy/src/views/{DkViewNoticeBar.vue.d.ts → web/DkViewNoticeBar.vue.d.ts} +0 -0
  658. package/lib/page-diy/src/views/{DkViewSwipe.vue.d.ts → web/DkViewSwipe.vue.d.ts} +0 -0
  659. package/lib/page-diy/src/views/{DkViewTabbar.vue.d.ts → web/DkViewTabbar.vue.d.ts} +1 -1
  660. /package/lib/page-diy/src/views/{DkViewTitle.vue.d.ts → web/DkViewTitle.vue.d.ts} +0 -0
  661. /package/lib/page-diy/src/views/{index.js → web/index.js} +0 -0
@@ -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,MAAM,YAAiB,QAAS,CAAA;AAAA,MAC9B,OAAS,EAAA,IAAA;AAAA,MACT,IAAM,EAAA,IAAA;AAAA,MACN,IAAM,EAAA,IAAA;AAAA,MACN,MAAQ,EAAA,EAAA;AAAA,KACT,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAA,MAAM,QA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,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,YAAc,EAAA,CAAA;AAAA,MACd,OAAO,EAAC;AAAA,KACT,CAAA,CAAA;AACD,IAAA,MAAM,YAAiB,QAAS,CAAA;AAAA,MAC9B,OAAS,EAAA,IAAA;AAAA,MACT,IAAM,EAAA,IAAA;AAAA,MACN,IAAM,EAAA,IAAA;AAAA,MACN,MAAQ,EAAA,EAAA;AAAA,KACT,CAAA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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
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './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
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './RecycleDialog.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var RecycleDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\table\\src\\components\\RecycleDialog.vue"]]);
4
+ var RecycleDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\table\\src\\components\\RecycleDialog.vue"]]);
5
5
 
6
6
  export { RecycleDialog as default };
7
7
  //# sourceMappingURL=RecycleDialog.vue.mjs.map
@@ -194,7 +194,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
194
194
  onSelectionChange
195
195
  }, {
196
196
  default: withCtx(() => [
197
- createCommentVNode(' <template v-for="(item, key) in DkTable.recycleTable.column">'),
198
197
  (openBlock(true), createElementBlock(
199
198
  Fragment,
200
199
  null,
@@ -213,7 +212,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
213
212
  createCommentVNode(" </template>"),
214
213
  createVNode(_component_el_table_column, {
215
214
  label: "\u64CD\u4F5C",
216
- width: "100"
215
+ align: "right"
217
216
  }, {
218
217
  default: withCtx(({ row }) => [
219
218
  createVNode(_component_el_button, {
@@ -1 +1 @@
1
- {"version":3,"file":"RecycleDialog.vue2.mjs","sources":["../../../../src/table/src/components/RecycleDialog.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'RecycleDialog',\n});\n</script>\n<template>\n <dk-dialog v-model=\"DkTable.recycleTable.showDialog\" title=\"回收站\" width=\"1000px\" class=\"dk-table\">\n <div class=\"dk-table-header\">\n <el-button class=\"table-header-operate\" type=\"info\" @click=\"DkTable.onTableHeaderAction('refreshRecycle')\">\n <dk-icon icon=\"Refresh\"></dk-icon>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"primary\" :disabled=\"!enableBatchOpt\" @click=\"restoreSelect()\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原</span>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"danger\" :disabled=\"!enableBatchOpt\" @click=\"destroySelect()\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">销毁</span>\n </el-button>\n <el-popconfirm\n confirm-button-text=\"还原\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要还原全部?\"\n @confirm=\"restore(null)\"\n >\n <template #reference>\n <div class=\"m-l-6px\">\n <el-button class=\"table-header-operate\" type=\"success\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <el-popconfirm\n confirm-button-text=\"清空\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要清空全部?\"\n @confirm=\"destroy(null)\"\n >\n <template #reference>\n <div class=\"m-l-5px\">\n <el-button class=\"table-header-operate\" type=\"danger\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">清空全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <div class=\"table-search\">\n <el-input\n v-model=\"DkTable.recycleTable.filter!.quickSearch\"\n placeholder=\"请输入\"\n prefix-icon=\"Search\"\n @input=\"debounce(onSearchInput, 500)()\"\n />\n </div>\n </div>\n <!--表格s-->\n <el-table\n v-loading=\"DkTable.recycleTable.loading\"\n :data=\"DkTable.recycleTable.data\"\n class=\"dk-data-table\"\n @selection-change=\"onSelectionChange\"\n >\n <!-- <template v-for=\"(item, key) in DkTable.recycleTable.column\">-->\n <el-table-column\n v-for=\"(item, key) in DkTable.recycleTable.column\"\n v-bind=\"{ ...item }\"\n :key=\"key\"\n ></el-table-column>\n <!-- </template>-->\n <el-table-column label=\"操作\" width=\"100\">\n <template #default=\"{ row }\">\n <el-button icon=\"RefreshLeft\" type=\"primary\" size=\"small\" @click=\"restore([row.id])\"> 还原 </el-button>\n <el-button icon=\"CloseBold\" type=\"danger\" size=\"small\" @click=\"destroy([row.id])\"> 销毁 </el-button>\n </template>\n </el-table-column>\n </el-table>\n <!--表格e-->\n </dk-dialog>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject } from 'vue'\nimport dkTable from '../../utils/dkTable'\nimport { debounce } from '@vipl520/utils'\n\n\nconst DkTable = inject('DkTable') as dkTable\n\nconst onSearchInput = () => {\n DkTable.onTableHeaderAction('quick-recycle-search', {\n keyword: DkTable.recycleTable.filter!.quickSearch,\n })\n}\n\n/*\n * 记录选择的项\n */\nconst onSelectionChange = (selection: TableRow[]) => {\n DkTable.onTableAction('selection-recycle-change', selection)\n}\n\n/**\n * 销毁\n */\nconst destroy = (ids: any) => {\n DkTable.api.destroy(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\n/**\n * 还原\n */\nconst restore = (ids: any) => {\n DkTable.api.restore(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\nconst getSelectionIds = () => {\n const ids: string[] = []\n DkTable.recycleTable.selection?.forEach((item) => {\n ids.push(item[DkTable.recycleTable.pk!])\n })\n return ids\n}\n\nconst restoreSelect = () => {\n restore(getSelectionIds())\n}\n\nconst destroySelect = () => {\n destroy(getSelectionIds())\n}\n\nconst enableBatchOpt = computed(() => DkTable.recycleTable.selection!.length > 0)\n</script>\n<style scoped></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,eAAA;AACR,CAAC,CAAA,CAAA;;;;AAuFD,IAAM,MAAA,OAAA,GAAU,OAAO,SAAS,CAAA,CAAA;AAEhC,IAAA,MAAM,gBAAgB,MAAM;AAC1B,MAAA,OAAA,CAAQ,oBAAoB,sBAAwB,EAAA;AAAA,QAClD,OAAA,EAAS,OAAQ,CAAA,YAAA,CAAa,MAAQ,CAAA,WAAA;AAAA,OACvC,CAAA,CAAA;AAAA,KACH,CAAA;AAKA,IAAM,MAAA,iBAAA,GAAoB,CAAC,SAA0B,KAAA;AACnD,MAAQ,OAAA,CAAA,aAAA,CAAc,4BAA4B,SAAS,CAAA,CAAA;AAAA,KAC7D,CAAA;AAKA,IAAM,MAAA,OAAA,GAAU,CAAC,GAAa,KAAA;AAC5B,MAAA,OAAA,CAAQ,IAAI,OAAQ,CAAA,GAAG,CAAE,CAAA,IAAA,CAAK,CAAC,GAAQ,KAAA;AACrC,QAAA,OAAA,CAAQ,oBAAoB,gBAAgB,CAAA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import { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'RecycleDialog',\n});\n</script>\n<template>\n <dk-dialog v-model=\"DkTable.recycleTable.showDialog\" title=\"回收站\" width=\"1000px\" class=\"dk-table\">\n <div class=\"dk-table-header\">\n <el-button class=\"table-header-operate\" type=\"info\" @click=\"DkTable.onTableHeaderAction('refreshRecycle')\">\n <dk-icon icon=\"Refresh\"></dk-icon>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"primary\" :disabled=\"!enableBatchOpt\" @click=\"restoreSelect()\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原</span>\n </el-button>\n <el-button class=\"table-header-operate\" type=\"danger\" :disabled=\"!enableBatchOpt\" @click=\"destroySelect()\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">销毁</span>\n </el-button>\n <el-popconfirm\n confirm-button-text=\"还原\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要还原全部?\"\n @confirm=\"restore(null)\"\n >\n <template #reference>\n <div class=\"m-l-6px\">\n <el-button class=\"table-header-operate\" type=\"success\">\n <dk-icon icon=\"RefreshLeft\"></dk-icon>\n <span class=\"m-l-5px\">还原全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <el-popconfirm\n confirm-button-text=\"清空\"\n cancel-button-text=\"取消\"\n confirm-button-type=\"danger\"\n title=\"您确定要清空全部?\"\n @confirm=\"destroy(null)\"\n >\n <template #reference>\n <div class=\"m-l-5px\">\n <el-button class=\"table-header-operate\" type=\"danger\">\n <dk-icon icon=\"CloseBold\"></dk-icon>\n <span class=\"m-l-5px\">清空全部</span>\n </el-button>\n </div>\n </template>\n </el-popconfirm>\n <div class=\"table-search\">\n <el-input\n v-model=\"DkTable.recycleTable.filter!.quickSearch\"\n placeholder=\"请输入\"\n prefix-icon=\"Search\"\n @input=\"debounce(onSearchInput, 500)()\"\n />\n </div>\n </div>\n <!--表格s-->\n <el-table\n v-loading=\"DkTable.recycleTable.loading\"\n :data=\"DkTable.recycleTable.data\"\n class=\"dk-data-table\"\n @selection-change=\"onSelectionChange\"\n >\n <el-table-column\n v-for=\"(item, key) in DkTable.recycleTable.column\"\n v-bind=\"{ ...item }\"\n :key=\"key\"\n ></el-table-column>\n <!-- </template>-->\n <el-table-column label=\"操作\" align=\"right\">\n <template #default=\"{ row }\">\n <el-button icon=\"RefreshLeft\" type=\"primary\" size=\"small\" @click=\"restore([row.id])\"> 还原 </el-button>\n <el-button icon=\"CloseBold\" type=\"danger\" size=\"small\" @click=\"destroy([row.id])\"> 销毁 </el-button>\n </template>\n </el-table-column>\n </el-table>\n <!--表格e-->\n </dk-dialog>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject } from 'vue'\nimport dkTable from '../../utils/dkTable'\nimport { debounce } from '@vipl520/utils'\n\n\nconst DkTable = inject('DkTable') as dkTable\n\nconst onSearchInput = () => {\n DkTable.onTableHeaderAction('quick-recycle-search', {\n keyword: DkTable.recycleTable.filter!.quickSearch,\n })\n}\n\n/*\n * 记录选择的项\n */\nconst onSelectionChange = (selection: TableRow[]) => {\n DkTable.onTableAction('selection-recycle-change', selection)\n}\n\n/**\n * 销毁\n */\nconst destroy = (ids: any) => {\n DkTable.api.destroy(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\n/**\n * 还原\n */\nconst restore = (ids: any) => {\n DkTable.api.restore(ids).then((res) => {\n DkTable.onTableHeaderAction('refreshRecycle')\n })\n}\n\nconst getSelectionIds = () => {\n const ids: string[] = []\n DkTable.recycleTable.selection?.forEach((item) => {\n ids.push(item[DkTable.recycleTable.pk!])\n })\n return ids\n}\n\nconst restoreSelect = () => {\n restore(getSelectionIds())\n}\n\nconst destroySelect = () => {\n destroy(getSelectionIds())\n}\n\nconst enableBatchOpt = computed(() => DkTable.recycleTable.selection!.length > 0)\n</script>\n<style scoped></style>\n"],"names":["__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,CAAa,EAAG,CAAC,CAAA,CAAA;AAAA,OACxC,CAAA,CAAA;AACD,MAAO,OAAA,GAAA,CAAA;AAAA,KACT,CAAA;AAEA,IAAA,MAAM,gBAAgB,MAAM;AAC1B,MAAA,OAAA,CAAQ,iBAAiB,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAA,MAAM,gBAAgB,MAAM;AAC1B,MAAA,OAAA,CAAQ,iBAAiB,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAA,MAAM,iBAAiB,QAAS,CAAA,MAAM,QAAQ,YAAa,CAAA,SAAA,CAAW,SAAS,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './header.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkTableHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\table\\src\\components\\header.vue"]]);
4
+ var DkTableHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\table\\src\\components\\header.vue"]]);
5
5
 
6
6
  export { DkTableHeader as default };
7
7
  //# sourceMappingURL=header.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './table.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\table\\src\\table.vue"]]);
4
+ var _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\table\\src\\table.vue"]]);
5
5
 
6
6
  export { _Table as default };
7
7
  //# sourceMappingURL=table.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './test.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _Test = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);
4
+ var _Test = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\test\\src\\test.vue"]]);
5
5
 
6
6
  export { _Test as default };
7
7
  //# sourceMappingURL=test.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './tiny-editor.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _TinyEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);
4
+ var _TinyEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\tiny-editor\\src\\tiny-editor.vue"]]);
5
5
 
6
6
  export { _TinyEditor as default };
7
7
  //# sourceMappingURL=tiny-editor.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './video-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _VideoInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);
4
+ var _VideoInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-input\\src\\video-input.vue"]]);
5
5
 
6
6
  export { _VideoInput as default };
7
7
  //# sourceMappingURL=video-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './video-list-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _VideoListInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);
4
+ var _VideoListInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\video-list-input\\src\\video-list-input.vue"]]);
5
5
 
6
6
  export { _VideoListInput as default };
7
7
  //# sourceMappingURL=video-list-input.vue.mjs.map
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var attachment_vue_vue_type_script_setup_true_lang = require('./attachment.vue2.js');
6
6
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
7
7
 
8
- var _Attachment = /* @__PURE__ */ _pluginVue_exportHelper.default(attachment_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui_test\\dk-ui-all\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);
8
+ var _Attachment = /* @__PURE__ */ _pluginVue_exportHelper.default(attachment_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);
9
9
 
10
10
  exports.default = _Attachment;
11
11
  //# sourceMappingURL=attachment.vue.js.map
@@ -78,10 +78,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
78
78
  const chooseFileList = vue.ref([]);
79
79
  const chooseFileId = vue.ref([]);
80
80
  const globalConfig = utils.getGlobalConfig();
81
- const uploadUrl = vue.ref(globalConfig.ApiUrl);
82
- const headers = vue.ref({
81
+ const uploadUrl = globalConfig.ApiUrl + "/adminapi/attachment/upload";
82
+ const headers = {
83
83
  "Access-Token": globalConfig.AccessToken
84
- });
84
+ };
85
85
  const upload = vue.ref();
86
86
  const data = vue.reactive({
87
87
  type: _type.value,
@@ -95,6 +95,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
95
95
  });
96
96
  };
97
97
  const handleUploadSuccess = (res) => {
98
+ console.log("res", res);
98
99
  if (res.code === 0) {
99
100
  elementPlus.ElMessage.success(res.msg);
100
101
  onGetAttachmentList();
@@ -349,11 +350,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
349
350
  ref_key: "upload",
350
351
  ref: upload,
351
352
  class: "dk-upload-button",
352
- action: uploadUrl.value,
353
+ action: uploadUrl,
353
354
  multiple: "",
354
355
  data,
355
356
  "show-file-list": false,
356
- headers: headers.value,
357
+ headers,
357
358
  "on-success": handleUploadSuccess,
358
359
  accept: _accept.value,
359
360
  "list-type": "text"
@@ -370,7 +371,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
370
371
  ]),
371
372
  _: 1
372
373
  /* STABLE */
373
- }, 8, ["action", "data", "headers", "accept"])
374
+ }, 8, ["data", "accept"])
374
375
  ])
375
376
  ]),
376
377
  vue.createCommentVNode("\u5185\u90E8"),