@vipl520/dk-ui 1.0.41 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (435) hide show
  1. package/dist/attributes.json +23 -3
  2. package/dist/index.css +1 -1
  3. package/dist/index.min.js +4 -13
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +4 -13
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/tags.json +7 -2
  8. package/dist/web-types.json +71 -12
  9. package/es/animate-select/src/animate-select.vue.mjs +1 -1
  10. package/es/animate-select/src/animate-select.vue2.mjs +5 -1
  11. package/es/animate-select/src/animate-select.vue2.mjs.map +1 -1
  12. package/es/api/attachment.mjs.map +1 -1
  13. package/es/attachment/src/attachment.vue.mjs +1 -1
  14. package/es/attachment/src/attachment.vue2.mjs +7 -1
  15. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  16. package/es/attachment/src/file-icon.vue.mjs +1 -1
  17. package/es/attachment-dialog/index.d.ts +9 -0
  18. package/es/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
  19. package/es/attachment-dialog/src/attachment-dialog.vue.mjs +1 -1
  20. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +3 -2
  21. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
  22. package/es/attachment-dialog/src/props.d.ts +4 -0
  23. package/es/attachment-dialog/src/props.mjs +4 -0
  24. package/es/attachment-dialog/src/props.mjs.map +1 -1
  25. package/es/audio-input/src/audio-input.vue.mjs +1 -1
  26. package/es/audio-list-input/src/audio-list-input.vue.mjs +1 -1
  27. package/es/audio-list-input/src/audio-list-input.vue2.mjs.map +1 -1
  28. package/es/box-size-input/src/box-size-input.vue.mjs +1 -1
  29. package/es/box-size-input/src/box-size-input.vue2.mjs +60 -59
  30. package/es/box-size-input/src/box-size-input.vue2.mjs.map +1 -1
  31. package/es/box-size-input/style/index.css +1 -1
  32. package/es/box-size-input/style/index.scss +11 -4
  33. package/es/color-input/src/color-input.vue.mjs +1 -1
  34. package/es/dialog/src/dialog.vue.mjs +1 -1
  35. package/es/dialog/src/dialog.vue2.mjs +3 -1
  36. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  37. package/es/dialog/style/index.scss +1 -0
  38. package/es/file-input/src/file-input.vue.mjs +1 -1
  39. package/es/file-input/src/file-input.vue2.mjs.map +1 -1
  40. package/es/file-list-input/src/file-list-input.vue.mjs +1 -1
  41. package/es/file-list-input/src/file-list-input.vue2.mjs.map +1 -1
  42. package/es/file-list-input/style/index.css +1 -1
  43. package/es/file-list-input/style/index.scss +20 -16
  44. package/es/form/src/form.vue.mjs +1 -1
  45. package/es/form/src/form.vue2.mjs.map +1 -1
  46. package/es/group/src/group.vue.mjs +1 -1
  47. package/es/group/src/group.vue2.mjs +3 -3
  48. package/es/group/src/group.vue2.mjs.map +1 -1
  49. package/es/hot-area-input/src/component/hot-area-content.vue.mjs +1 -1
  50. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  51. package/es/hot-area-input/src/hot-area-input.vue.mjs +1 -1
  52. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -1
  53. package/es/icon/src/icon.vue.mjs +1 -1
  54. package/es/icon/src/icon.vue2.mjs.map +1 -1
  55. package/es/icon-input/src/icon-content.vue.mjs +1 -1
  56. package/es/icon-input/src/icon-content.vue2.mjs +1 -1
  57. package/es/icon-input/src/icon-content.vue2.mjs.map +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/icon-input/src/icon-input.vue2.mjs.map +1 -1
  61. package/es/image-input/src/image-input.vue.mjs +1 -1
  62. package/es/image-list-input/src/image-list-input.vue.mjs +1 -1
  63. package/es/image-list-input/src/image-list-input.vue2.mjs.map +1 -1
  64. package/es/index.mjs +0 -10
  65. package/es/index.mjs.map +1 -1
  66. package/es/page-diy/index.mjs +0 -2
  67. package/es/page-diy/index.mjs.map +1 -1
  68. package/es/page-diy/src/components/DiyCloud.vue.mjs +1 -1
  69. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
  70. package/es/page-diy/src/components/DragBox.vue.mjs +7 -3
  71. package/es/page-diy/src/components/DragBox.vue.mjs.map +1 -1
  72. package/es/page-diy/src/components/DragTool.vue.mjs +6 -2
  73. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  74. package/es/page-diy/src/components/PreviewPhone.vue.mjs +1 -1
  75. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  76. package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs +1 -1
  77. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +12 -10
  78. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -1
  79. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  80. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs +9 -1
  81. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs.map +1 -1
  82. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs +3 -1
  83. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs.map +1 -1
  84. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +36 -6
  85. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  86. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +6 -2
  87. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -1
  88. package/es/page-diy/src/config/rule/min/common/index.mjs +8 -1
  89. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  90. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs +3 -1
  91. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -1
  92. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -1
  93. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs +7 -1
  94. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -1
  95. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs +9 -3
  96. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -1
  97. package/es/page-diy/src/page-diy.vue.mjs +101 -34
  98. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  99. package/es/page-diy/src/utils/eventData.mjs.map +1 -1
  100. package/es/page-diy/src/views/min/DkMinBlank.vue.mjs +1 -1
  101. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +24 -7
  102. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -1
  103. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +1 -1
  104. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  105. package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs +1 -1
  106. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +1 -1
  107. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  108. package/es/page-diy/src/views/min/DkMinVideo.vue.mjs +1 -1
  109. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs +1 -1
  110. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -1
  111. package/es/page-diy/src/views/web/DkViewCell.vue.mjs +1 -1
  112. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -1
  113. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +4 -2
  114. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -1
  115. package/es/page-diy/src/views/web/DkViewDialog.vue.mjs +1 -1
  116. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs +1 -1
  117. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -1
  118. package/es/page-diy/src/views/web/DkViewImage.vue.mjs +1 -1
  119. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -1
  120. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs +1 -1
  121. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -1
  122. package/es/page-diy/src/views/web/DkViewNavBar.vue.mjs +1 -1
  123. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs +1 -1
  124. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -1
  125. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs +1 -1
  126. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -1
  127. package/es/page-diy/src/views/web/DkViewTabbar.vue.mjs +1 -1
  128. package/es/page-diy/src/views/web/DkViewTextarea.vue.mjs +1 -1
  129. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs +1 -1
  130. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -1
  131. package/es/page-diy/src/views/web/DkViewVideo.vue.mjs +1 -1
  132. package/es/page-diy/style/dk-page-diy.scss +1 -1
  133. package/es/poster-input/src/component/poster.vue.mjs +1 -1
  134. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  135. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.mjs +1 -1
  136. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue2.mjs.map +1 -1
  137. package/es/poster-input/src/component/views/DkPosterViewImage.vue.mjs +1 -1
  138. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs +5 -2
  139. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs.map +1 -1
  140. package/es/poster-input/src/component/views/DkPosterViewName.vue.mjs +1 -1
  141. package/es/poster-input/src/component/views/DkPosterViewName.vue2.mjs.map +1 -1
  142. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.mjs +1 -1
  143. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue2.mjs.map +1 -1
  144. package/es/poster-input/src/component/views/DkPosterViewText.vue.mjs +1 -1
  145. package/es/poster-input/src/component/views/DkPosterViewText.vue2.mjs.map +1 -1
  146. package/es/poster-input/src/component/views/quick-action.vue.mjs +1 -1
  147. package/es/poster-input/src/component/views/quick-action.vue2.mjs.map +1 -1
  148. package/es/poster-input/src/poster-input.vue.mjs +1 -1
  149. package/es/poster-input/src/poster-input.vue2.mjs.map +1 -1
  150. package/es/poster-input/style/index.scss +4 -2
  151. package/es/select/src/select.vue.mjs +1 -1
  152. package/es/select/src/select.vue2.mjs +9 -1
  153. package/es/select/src/select.vue2.mjs.map +1 -1
  154. package/es/style-animation-input/src/props.mjs.map +1 -1
  155. package/es/style-animation-input/src/style-animation-input.vue.mjs +1 -1
  156. package/es/style-animation-input/src/style-animation-input.vue2.mjs +1 -1
  157. package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -1
  158. package/es/style-background-input/index.d.ts +2 -1
  159. package/es/style-background-input/src/style-background-input.vue.d.ts +2 -1
  160. package/es/style-background-input/src/style-background-input.vue.mjs +1 -1
  161. package/es/style-background-input/src/style-background-input.vue2.mjs +2 -1
  162. package/es/style-background-input/src/style-background-input.vue2.mjs.map +1 -1
  163. package/es/style-border-input/index.d.ts +2 -1
  164. package/es/style-border-input/src/style-border-input.vue.d.ts +2 -1
  165. package/es/style-border-input/src/style-border-input.vue.mjs +1 -1
  166. package/es/style-border-input/src/style-border-input.vue2.mjs +55 -38
  167. package/es/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
  168. package/es/style-box-input/index.d.ts +2 -1
  169. package/es/style-box-input/src/style-box-input.vue.d.ts +2 -1
  170. package/es/style-box-input/src/style-box-input.vue.mjs +1 -1
  171. package/es/style-box-input/src/style-box-input.vue2.mjs +2 -1
  172. package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
  173. package/es/style-font-input/index.d.ts +2 -1
  174. package/es/style-font-input/src/style-font-input.vue.d.ts +2 -1
  175. package/es/style-font-input/src/style-font-input.vue.mjs +1 -1
  176. package/es/style-font-input/src/style-font-input.vue2.mjs +8 -7
  177. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  178. package/es/style-input/src/style-input.vue.mjs +1 -1
  179. package/es/style-input/src/style-input.vue2.mjs +15 -22
  180. package/es/style-input/src/style-input.vue2.mjs.map +1 -1
  181. package/es/style-number-input/src/style-number-input.vue.mjs +1 -1
  182. package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
  183. package/es/style-position-input/src/style-position-input.vue.mjs +1 -1
  184. package/es/style-position-input/src/style-position-input.vue2.mjs +4 -1
  185. package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
  186. package/es/style-shadow-input/index.d.ts +2 -1
  187. package/es/style-shadow-input/src/style-shadow-content.vue.mjs +1 -1
  188. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs +144 -155
  189. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs.map +1 -1
  190. package/es/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
  191. package/es/style-shadow-input/src/style-shadow-input.vue.mjs +1 -1
  192. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +2 -1
  193. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
  194. package/es/table/src/components/ComSearch.vue.mjs +1 -1
  195. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  196. package/es/table/src/components/FieldRender.vue.mjs +1 -1
  197. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  198. package/es/table/src/components/RecycleDialog.vue.mjs +1 -1
  199. package/es/table/src/components/RecycleDialog.vue2.mjs +3 -1
  200. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  201. package/es/table/src/components/header.vue.mjs +1 -1
  202. package/es/table/src/components/header.vue2.mjs +17 -3
  203. package/es/table/src/components/header.vue2.mjs.map +1 -1
  204. package/es/table/src/props.mjs +11 -1
  205. package/es/table/src/props.mjs.map +1 -1
  206. package/es/table/src/table.vue.mjs +1 -1
  207. package/es/table/src/table.vue2.mjs +13 -3
  208. package/es/table/src/table.vue2.mjs.map +1 -1
  209. package/es/table/utils/dkTable.mjs +32 -11
  210. package/es/table/utils/dkTable.mjs.map +1 -1
  211. package/es/table/utils/dkTableApi.mjs.map +1 -1
  212. package/es/test/src/test.vue.mjs +1 -1
  213. package/es/tiny-editor/src/tiny-editor.vue.mjs +1 -1
  214. package/es/tiny-editor/src/tiny-editor.vue2.mjs +7 -3
  215. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  216. package/es/tiny-editor/style/index.css +1 -1
  217. package/es/tiny-editor/style/index.scss +5 -0
  218. package/es/video-input/src/video-input.vue.mjs +1 -1
  219. package/es/video-list-input/src/video-list-input.vue.mjs +1 -1
  220. package/es/video-list-input/src/video-list-input.vue2.mjs.map +1 -1
  221. package/lib/animate-select/src/animate-select.vue.js +1 -1
  222. package/lib/animate-select/src/animate-select.vue2.js +5 -1
  223. package/lib/animate-select/src/animate-select.vue2.js.map +1 -1
  224. package/lib/api/attachment.js.map +1 -1
  225. package/lib/attachment/src/attachment.vue.js +1 -1
  226. package/lib/attachment/src/attachment.vue2.js +7 -1
  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/index.d.ts +9 -0
  230. package/lib/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
  231. package/lib/attachment-dialog/src/attachment-dialog.vue.js +1 -1
  232. package/lib/attachment-dialog/src/attachment-dialog.vue2.js +3 -2
  233. package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
  234. package/lib/attachment-dialog/src/props.d.ts +4 -0
  235. package/lib/attachment-dialog/src/props.js +4 -0
  236. package/lib/attachment-dialog/src/props.js.map +1 -1
  237. package/lib/audio-input/src/audio-input.vue.js +1 -1
  238. package/lib/audio-list-input/src/audio-list-input.vue.js +1 -1
  239. package/lib/audio-list-input/src/audio-list-input.vue2.js.map +1 -1
  240. package/lib/box-size-input/src/box-size-input.vue.js +1 -1
  241. package/lib/box-size-input/src/box-size-input.vue2.js +59 -58
  242. package/lib/box-size-input/src/box-size-input.vue2.js.map +1 -1
  243. package/lib/box-size-input/style/index.css +1 -1
  244. package/lib/box-size-input/style/index.scss +11 -4
  245. package/lib/color-input/src/color-input.vue.js +1 -1
  246. package/lib/dialog/src/dialog.vue.js +1 -1
  247. package/lib/dialog/src/dialog.vue2.js +3 -1
  248. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  249. package/lib/dialog/style/index.scss +1 -0
  250. package/lib/file-input/src/file-input.vue.js +1 -1
  251. package/lib/file-input/src/file-input.vue2.js.map +1 -1
  252. package/lib/file-list-input/src/file-list-input.vue.js +1 -1
  253. package/lib/file-list-input/src/file-list-input.vue2.js.map +1 -1
  254. package/lib/file-list-input/style/index.css +1 -1
  255. package/lib/file-list-input/style/index.scss +20 -16
  256. package/lib/form/src/form.vue.js +1 -1
  257. package/lib/form/src/form.vue2.js.map +1 -1
  258. package/lib/group/src/group.vue.js +1 -1
  259. package/lib/group/src/group.vue2.js +2 -2
  260. package/lib/group/src/group.vue2.js.map +1 -1
  261. package/lib/hot-area-input/src/component/hot-area-content.vue.js +1 -1
  262. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  263. package/lib/hot-area-input/src/hot-area-input.vue.js +1 -1
  264. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -1
  265. package/lib/icon/src/icon.vue.js +1 -1
  266. package/lib/icon/src/icon.vue2.js.map +1 -1
  267. package/lib/icon-input/src/icon-content.vue.js +1 -1
  268. package/lib/icon-input/src/icon-content.vue2.js +1 -1
  269. package/lib/icon-input/src/icon-content.vue2.js.map +1 -1
  270. package/lib/icon-input/src/icon-dialog.vue.js +1 -1
  271. package/lib/icon-input/src/icon-input.vue.js +1 -1
  272. package/lib/icon-input/src/icon-input.vue2.js.map +1 -1
  273. package/lib/image-input/src/image-input.vue.js +1 -1
  274. package/lib/image-list-input/src/image-list-input.vue.js +1 -1
  275. package/lib/image-list-input/src/image-list-input.vue2.js.map +1 -1
  276. package/lib/index.js +0 -10
  277. package/lib/index.js.map +1 -1
  278. package/lib/page-diy/index.js +0 -2
  279. package/lib/page-diy/index.js.map +1 -1
  280. package/lib/page-diy/src/components/DiyCloud.vue.js +1 -1
  281. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
  282. package/lib/page-diy/src/components/DragBox.vue.js +7 -3
  283. package/lib/page-diy/src/components/DragBox.vue.js.map +1 -1
  284. package/lib/page-diy/src/components/DragTool.vue.js +6 -2
  285. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  286. package/lib/page-diy/src/components/PreviewPhone.vue.js +1 -1
  287. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  288. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js +1 -1
  289. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +12 -10
  290. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -1
  291. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  292. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js +9 -1
  293. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js.map +1 -1
  294. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js +3 -1
  295. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js.map +1 -1
  296. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +36 -6
  297. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  298. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +6 -2
  299. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -1
  300. package/lib/page-diy/src/config/rule/min/common/index.js +8 -1
  301. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  302. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js +3 -1
  303. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -1
  304. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -1
  305. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js +7 -1
  306. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -1
  307. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js +9 -3
  308. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -1
  309. package/lib/page-diy/src/page-diy.vue.js +101 -34
  310. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  311. package/lib/page-diy/src/utils/eventData.js.map +1 -1
  312. package/lib/page-diy/src/views/min/DkMinBlank.vue.js +1 -1
  313. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +24 -7
  314. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -1
  315. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +1 -1
  316. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  317. package/lib/page-diy/src/views/min/DkMinTextarea.vue.js +1 -1
  318. package/lib/page-diy/src/views/min/DkMinTitle.vue.js +1 -1
  319. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  320. package/lib/page-diy/src/views/min/DkMinVideo.vue.js +1 -1
  321. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js +1 -1
  322. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -1
  323. package/lib/page-diy/src/views/web/DkViewCell.vue.js +1 -1
  324. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -1
  325. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +4 -2
  326. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -1
  327. package/lib/page-diy/src/views/web/DkViewDialog.vue.js +1 -1
  328. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js +1 -1
  329. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -1
  330. package/lib/page-diy/src/views/web/DkViewImage.vue.js +1 -1
  331. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -1
  332. package/lib/page-diy/src/views/web/DkViewMusic.vue.js +1 -1
  333. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -1
  334. package/lib/page-diy/src/views/web/DkViewNavBar.vue.js +1 -1
  335. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js +1 -1
  336. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -1
  337. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js +1 -1
  338. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -1
  339. package/lib/page-diy/src/views/web/DkViewTabbar.vue.js +1 -1
  340. package/lib/page-diy/src/views/web/DkViewTextarea.vue.js +1 -1
  341. package/lib/page-diy/src/views/web/DkViewTitle.vue.js +1 -1
  342. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -1
  343. package/lib/page-diy/src/views/web/DkViewVideo.vue.js +1 -1
  344. package/lib/page-diy/style/dk-page-diy.scss +1 -1
  345. package/lib/poster-input/src/component/poster.vue.js +1 -1
  346. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  347. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.js +1 -1
  348. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue2.js.map +1 -1
  349. package/lib/poster-input/src/component/views/DkPosterViewImage.vue.js +1 -1
  350. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js +5 -2
  351. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js.map +1 -1
  352. package/lib/poster-input/src/component/views/DkPosterViewName.vue.js +1 -1
  353. package/lib/poster-input/src/component/views/DkPosterViewName.vue2.js.map +1 -1
  354. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.js +1 -1
  355. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue2.js.map +1 -1
  356. package/lib/poster-input/src/component/views/DkPosterViewText.vue.js +1 -1
  357. package/lib/poster-input/src/component/views/DkPosterViewText.vue2.js.map +1 -1
  358. package/lib/poster-input/src/component/views/quick-action.vue.js +1 -1
  359. package/lib/poster-input/src/component/views/quick-action.vue2.js.map +1 -1
  360. package/lib/poster-input/src/poster-input.vue.js +1 -1
  361. package/lib/poster-input/src/poster-input.vue2.js.map +1 -1
  362. package/lib/poster-input/style/index.scss +4 -2
  363. package/lib/select/src/select.vue.js +1 -1
  364. package/lib/select/src/select.vue2.js +9 -1
  365. package/lib/select/src/select.vue2.js.map +1 -1
  366. package/lib/style-animation-input/src/props.js.map +1 -1
  367. package/lib/style-animation-input/src/style-animation-input.vue.js +1 -1
  368. package/lib/style-animation-input/src/style-animation-input.vue2.js +1 -1
  369. package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -1
  370. package/lib/style-background-input/index.d.ts +2 -1
  371. package/lib/style-background-input/src/style-background-input.vue.d.ts +2 -1
  372. package/lib/style-background-input/src/style-background-input.vue.js +1 -1
  373. package/lib/style-background-input/src/style-background-input.vue2.js +2 -1
  374. package/lib/style-background-input/src/style-background-input.vue2.js.map +1 -1
  375. package/lib/style-border-input/index.d.ts +2 -1
  376. package/lib/style-border-input/src/style-border-input.vue.d.ts +2 -1
  377. package/lib/style-border-input/src/style-border-input.vue.js +1 -1
  378. package/lib/style-border-input/src/style-border-input.vue2.js +55 -38
  379. package/lib/style-border-input/src/style-border-input.vue2.js.map +1 -1
  380. package/lib/style-box-input/index.d.ts +2 -1
  381. package/lib/style-box-input/src/style-box-input.vue.d.ts +2 -1
  382. package/lib/style-box-input/src/style-box-input.vue.js +1 -1
  383. package/lib/style-box-input/src/style-box-input.vue2.js +2 -1
  384. package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
  385. package/lib/style-font-input/index.d.ts +2 -1
  386. package/lib/style-font-input/src/style-font-input.vue.d.ts +2 -1
  387. package/lib/style-font-input/src/style-font-input.vue.js +1 -1
  388. package/lib/style-font-input/src/style-font-input.vue2.js +8 -7
  389. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  390. package/lib/style-input/src/style-input.vue.js +1 -1
  391. package/lib/style-input/src/style-input.vue2.js +14 -21
  392. package/lib/style-input/src/style-input.vue2.js.map +1 -1
  393. package/lib/style-number-input/src/style-number-input.vue.js +1 -1
  394. package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
  395. package/lib/style-position-input/src/style-position-input.vue.js +1 -1
  396. package/lib/style-position-input/src/style-position-input.vue2.js +4 -1
  397. package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
  398. package/lib/style-shadow-input/index.d.ts +2 -1
  399. package/lib/style-shadow-input/src/style-shadow-content.vue.js +1 -1
  400. package/lib/style-shadow-input/src/style-shadow-content.vue2.js +144 -155
  401. package/lib/style-shadow-input/src/style-shadow-content.vue2.js.map +1 -1
  402. package/lib/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
  403. package/lib/style-shadow-input/src/style-shadow-input.vue.js +1 -1
  404. package/lib/style-shadow-input/src/style-shadow-input.vue2.js +2 -1
  405. package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
  406. package/lib/table/src/components/ComSearch.vue.js +1 -1
  407. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  408. package/lib/table/src/components/FieldRender.vue.js +1 -1
  409. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  410. package/lib/table/src/components/RecycleDialog.vue.js +1 -1
  411. package/lib/table/src/components/RecycleDialog.vue2.js +3 -1
  412. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  413. package/lib/table/src/components/header.vue.js +1 -1
  414. package/lib/table/src/components/header.vue2.js +17 -3
  415. package/lib/table/src/components/header.vue2.js.map +1 -1
  416. package/lib/table/src/props.js +11 -1
  417. package/lib/table/src/props.js.map +1 -1
  418. package/lib/table/src/table.vue.js +1 -1
  419. package/lib/table/src/table.vue2.js +13 -3
  420. package/lib/table/src/table.vue2.js.map +1 -1
  421. package/lib/table/utils/dkTable.js +32 -11
  422. package/lib/table/utils/dkTable.js.map +1 -1
  423. package/lib/table/utils/dkTableApi.js.map +1 -1
  424. package/lib/test/src/test.vue.js +1 -1
  425. package/lib/tiny-editor/src/tiny-editor.vue.js +1 -1
  426. package/lib/tiny-editor/src/tiny-editor.vue2.js +7 -3
  427. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  428. package/lib/tiny-editor/style/index.css +1 -1
  429. package/lib/tiny-editor/style/index.scss +5 -0
  430. package/lib/video-input/src/video-input.vue.js +1 -1
  431. package/lib/video-list-input/src/video-list-input.vue.js +1 -1
  432. package/lib/video-list-input/src/video-list-input.vue2.js.map +1 -1
  433. package/package.json +3 -2
  434. package/dist/index.js +0 -34319
  435. package/dist/index.mjs +0 -34229
@@ -12,14 +12,14 @@ const _hoisted_2 = {
12
12
  style: { "width": "100%" },
13
13
  class: "m-l-20px"
14
14
  };
15
- const _hoisted_3 = { style: { "display": "flex" } };
15
+ const _hoisted_3 = { style: { "display": "flex", "width": "100%" } };
16
16
  const __default__ = vue.defineComponent({
17
17
  name: "DkStyleBorderInput"
18
18
  });
19
19
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
20
20
  ...__default__,
21
21
  props: props.styleBorderInputProps,
22
- emits: ["update:modelValue"],
22
+ emits: ["update:modelValue", "change"],
23
23
  setup(__props, { emit }) {
24
24
  const props = __props;
25
25
  const positions = ["top", "right", "bottom", "left", "all"];
@@ -70,6 +70,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
70
70
  });
71
71
  vue.watch(styles, () => {
72
72
  emit("update:modelValue", styles.value);
73
+ emit("change", styles.value);
73
74
  });
74
75
  const init = () => {
75
76
  const keys = [
@@ -176,9 +177,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
176
177
  const _component_dk_icon = vue.resolveComponent("dk-icon");
177
178
  const _component_el_tooltip = vue.resolveComponent("el-tooltip");
178
179
  const _component_el_slider = vue.resolveComponent("el-slider");
180
+ const _component_el_input = vue.resolveComponent("el-input");
179
181
  const _component_el_option = vue.resolveComponent("el-option");
180
182
  const _component_el_select = vue.resolveComponent("el-select");
181
- const _component_el_input = vue.resolveComponent("el-input");
182
183
  const _component_el_form_item = vue.resolveComponent("el-form-item");
183
184
  const _component_el_radio_button = vue.resolveComponent("el-radio-button");
184
185
  const _component_el_radio_group = vue.resolveComponent("el-radio-group");
@@ -219,7 +220,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
219
220
  size: "small"
220
221
  }, {
221
222
  default: vue.withCtx(() => [
222
- vue.createVNode(_component_el_form_item, { label: "\u5C3A\u5BF8" }, {
223
+ vue.createVNode(_component_el_form_item, { value: "\u5C3A\u5BF8" }, {
223
224
  label: vue.withCtx(() => [
224
225
  vue.createVNode(_component_el_tooltip, {
225
226
  effect: "dark",
@@ -254,39 +255,55 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
254
255
  }, null, 8, ["modelValue"]),
255
256
  vue.createVNode(_component_el_input, {
256
257
  modelValue: form[position.value].borderWidth,
257
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form[position.value].borderWidth = $event),
258
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form[position.value].borderWidth = $event),
258
259
  class: "dk-border-input",
259
260
  type: "number",
261
+ onChange: _cache[4] || (_cache[4] = ($event) => clearOtherBorder())
262
+ }, {
263
+ default: vue.withCtx(() => [
264
+ vue.createCommentVNode(" <template #append>"),
265
+ vue.createCommentVNode(" <el-select"),
266
+ vue.createCommentVNode(' v-model="form[position].unit"'),
267
+ vue.createCommentVNode(' placeholder="px"'),
268
+ vue.createCommentVNode(' class="dk-border-select"'),
269
+ vue.createCommentVNode(' style="width: 50px"'),
270
+ vue.createCommentVNode(' suffix-icon=""'),
271
+ vue.createCommentVNode(' @change="clearOtherBorder()"'),
272
+ vue.createCommentVNode(" >"),
273
+ vue.createCommentVNode(" <el-option"),
274
+ vue.createCommentVNode(' v-for="item in units"'),
275
+ vue.createCommentVNode(' :key="item"'),
276
+ vue.createCommentVNode(' :label="item"'),
277
+ vue.createCommentVNode(' :value="item"'),
278
+ vue.createCommentVNode(" />"),
279
+ vue.createCommentVNode(" </el-select>"),
280
+ vue.createCommentVNode(" </template>")
281
+ ]),
282
+ _: 1
283
+ /* STABLE */
284
+ }, 8, ["modelValue"]),
285
+ vue.createVNode(_component_el_select, {
286
+ modelValue: form[position.value].unit,
287
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form[position.value].unit = $event),
288
+ placeholder: "px",
289
+ class: "dk-border-select",
290
+ style: { "width": "60px" },
260
291
  onChange: _cache[6] || (_cache[6] = ($event) => clearOtherBorder())
261
292
  }, {
262
- append: vue.withCtx(() => [
263
- vue.createVNode(_component_el_select, {
264
- modelValue: form[position.value].unit,
265
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form[position.value].unit = $event),
266
- placeholder: "\u8BF7\u9009\u62E9",
267
- class: "dk-border-select",
268
- style: { "width": "50px" },
269
- "suffix-icon": "",
270
- onChange: _cache[4] || (_cache[4] = ($event) => clearOtherBorder())
271
- }, {
272
- default: vue.withCtx(() => [
273
- (vue.openBlock(), vue.createElementBlock(
274
- vue.Fragment,
275
- null,
276
- vue.renderList(units, (item) => {
277
- return vue.createVNode(_component_el_option, {
278
- key: item,
279
- label: item,
280
- value: item
281
- }, null, 8, ["label", "value"]);
282
- }),
283
- 64
284
- /* STABLE_FRAGMENT */
285
- ))
286
- ]),
287
- _: 1
288
- /* STABLE */
289
- }, 8, ["modelValue"])
293
+ default: vue.withCtx(() => [
294
+ (vue.openBlock(), vue.createElementBlock(
295
+ vue.Fragment,
296
+ null,
297
+ vue.renderList(units, (item) => {
298
+ return vue.createVNode(_component_el_option, {
299
+ key: item,
300
+ label: item,
301
+ value: item
302
+ }, null, 8, ["label", "value"]);
303
+ }),
304
+ 64
305
+ /* STABLE_FRAGMENT */
306
+ ))
290
307
  ]),
291
308
  _: 1
292
309
  /* STABLE */
@@ -296,7 +313,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
296
313
  _: 1
297
314
  /* STABLE */
298
315
  }),
299
- vue.createVNode(_component_el_form_item, { label: "\u6837\u5F0F" }, {
316
+ vue.createVNode(_component_el_form_item, { value: "\u6837\u5F0F" }, {
300
317
  label: vue.withCtx(() => [
301
318
  vue.createVNode(_component_el_tooltip, {
302
319
  effect: "dark",
@@ -328,7 +345,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
328
345
  }, {
329
346
  default: vue.withCtx(() => [
330
347
  vue.createVNode(_component_el_radio_button, {
331
- label: "solid",
348
+ value: "solid",
332
349
  name: "type"
333
350
  }, {
334
351
  default: vue.withCtx(() => [
@@ -338,7 +355,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
338
355
  /* STABLE */
339
356
  }),
340
357
  vue.createVNode(_component_el_radio_button, {
341
- label: "dotted",
358
+ value: "dotted",
342
359
  name: "type"
343
360
  }, {
344
361
  default: vue.withCtx(() => [
@@ -348,7 +365,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
348
365
  /* STABLE */
349
366
  }),
350
367
  vue.createVNode(_component_el_radio_button, {
351
- label: "dashed",
368
+ value: "dashed",
352
369
  name: "type"
353
370
  }, {
354
371
  default: vue.withCtx(() => [
@@ -358,7 +375,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
358
375
  /* STABLE */
359
376
  }),
360
377
  vue.createVNode(_component_el_radio_button, {
361
- label: "double",
378
+ value: "double",
362
379
  name: "type"
363
380
  }, {
364
381
  default: vue.withCtx(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"style-border-input.vue2.js","sources":["../../../src/style-border-input/src/style-border-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBorderInput',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-style-border-input\" :class=\"width.value < 400 ? 'mini' : ''\">\n <div class=\"border-box\">\n <dk-icon\n v-for=\"item in positions\"\n :key=\"item\"\n :icon=\"'gg:border-' + item\"\n :class=\"'border-box-option border-' + item + ' ' + (position == item ? 'selected' : '')\"\n :size=\"24\"\n :style=\"'grid-area: border-' + item + ' / border-' + item + ' / border-' + item + ' / border-' + item + ';'\"\n @click=\"position = item\"\n ></dk-icon>\n </div>\n <div style=\"width: 100%\" class=\"m-l-20px\">\n <!-- 样式、宽度、颜色-->\n <el-form label-width=\"50px\" label-position=\"left\" size=\"small\">\n <el-form-item label=\"尺寸\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderWidth\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderWidth ? 'color-blue' : ''\"\n @click=\"del('borderWidth')\"\n >尺寸</span\n >\n </el-tooltip>\n </template>\n <div style=\"display: flex\">\n <el-slider\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-slider\"\n :max=\"50\"\n @change=\"clearOtherBorder()\"\n />\n <el-input\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-input\"\n type=\"number\"\n @change=\"clearOtherBorder()\"\n >\n <template #append>\n <el-select\n v-model=\"form[position].unit\"\n placeholder=\"请选择\"\n class=\"dk-border-select\"\n style=\"width: 50px\"\n suffix-icon=\"\"\n @change=\"clearOtherBorder()\"\n >\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </div>\n </el-form-item>\n <el-form-item label=\"样式\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderStyle\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderStyle ? 'color-blue' : ''\"\n @click=\"del('borderStyle')\"\n >样式</span\n >\n </el-tooltip>\n </template>\n <el-radio-group v-model=\"form[position].borderStyle\" @change=\"clearOtherBorder()\">\n <el-radio-button label=\"solid\" name=\"type\">\n <dk-icon icon=\"gg:border-style-solid\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"dotted\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dotted\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"dashed\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dashed\"></dk-icon>\n </el-radio-button>\n <el-radio-button label=\"double\" name=\"type\">\n <dk-icon icon=\"memory:box-light-double-horizontal\"></dk-icon>\n </el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderColor\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderColor ? 'color-blue' : ''\"\n @click=\"del('borderColor')\"\n >颜色</span\n >\n </el-tooltip>\n </template>\n <el-color-picker v-model=\"form[position].borderColor\" />\n </el-form-item>\n <el-form-item label=\"弧度\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"form.radius == '0px'\">\n <span class=\"cursor-pointer\" :class=\"form.radius !== '0px' ? 'color-blue' : ''\" @click=\"del('radius')\"\n >弧度</span\n >\n </el-tooltip>\n </template>\n <dk-box-size-input v-model=\"form.radius\" type=\"radius\"></dk-box-size-input>\n </el-form-item>\n </el-form>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBorderInputProps } from './props'\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { upper } from '@vipl520/utils'\nimport { useElementSize, useWindowSize } from '@vueuse/core'\n\n\n\nconst props = defineProps(styleBorderInputProps)\nconst emit = defineEmits(['update:modelValue'])\n\nconst positions = ['top', 'right', 'bottom', 'left', 'all']\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst position = ref('all')\nconst el: any = ref()\nconst { width } = useElementSize(el) // 当前组件宽度\nconst defaultForm = () => ({\n unit: 'px',\n})\n\nconst form: any = reactive({\n top: defaultForm(),\n right: defaultForm(),\n bottom: defaultForm(),\n left: defaultForm(),\n all: defaultForm(),\n radius: props.modelValue.borderRadius || '0px',\n})\n\nconst styles = computed(() => {\n const style: any = {}\n positions.forEach((item) => {\n if (item === 'all') {\n if (form[item].borderWidth) {\n style.borderWidth = form[item].borderWidth + (form[item].unit || 'px')\n }\n if (form[item].borderStyle) {\n style.borderStyle = form[item].borderStyle\n }\n if (form[item].borderColor) {\n style.borderColor = form[item].borderColor\n }\n } else {\n if (form[item].borderWidth) {\n style['border' + upper(item) + 'Width'] = form[item].borderWidth + (form[item].unit || 'px')\n }\n\n if (form[item].borderStyle) {\n style['border' + upper(item) + 'Style'] = form[item].borderStyle\n }\n\n if (form[item].borderColor) {\n style['border' + upper(item) + 'Color'] = form[item].borderColor\n }\n }\n })\n // 把style中的borderWidth、borderStyle、borderColor放到最前面\n if (form.radius !== '0px') {\n style.borderRadius = form.radius\n }\n return style\n})\nwatch(styles, () => {\n emit('update:modelValue', styles.value)\n})\n\nconst init = () => {\n const keys = [\n 'borderWidth',\n 'borderStyle',\n 'borderColor',\n 'borderRightWidth',\n 'borderRightStyle',\n 'borderRightColor',\n 'borderLeftWidth',\n 'borderLeftStyle',\n 'borderLeftColor',\n 'borderTopWidth',\n 'borderTopStyle',\n 'borderTopColor',\n 'borderBottomWidth',\n 'borderBottomStyle',\n 'borderBottomColor',\n 'borderRadius',\n ]\n\n keys.forEach((key) => {\n if (props.modelValue[key]) {\n if (key === 'borderRadius') {\n form.radius = props.modelValue[key]\n } else {\n let [_, position, property] = key.split(/(?=[A-Z])/)\n let _position = position.toLowerCase() // 位置\n const value = props.modelValue[key] // 值\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n if (property === 'Width') {\n const width = parseInt(value) || 0\n const unit = value.replace(width + '', '') || 'px'\n if (units.indexOf(unit) > -1) {\n form[_position].unit = unit\n form[_position].borderWidth = width\n }\n } else {\n form[_position]['border' + property] = value\n }\n }\n } else {\n if (key === 'borderRadius') {\n form.radius = '0px'\n } else {\n // delete form[position.value][key]\n let [_, position, property] = key.split(/(?=[A-Z])/)\n\n let _position = position.toLowerCase() // 位置\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n const value = props.modelValue[key] // 值\n if (property === 'Width') {\n delete form[_position].borderWidth\n delete form[_position].unit\n } else {\n delete form[_position]['border' + property]\n }\n }\n }\n })\n}\n\nconst clearOtherBorder = () => {\n if (position.value === 'all') {\n positions.forEach((item) => {\n if (item !== 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n } else {\n positions.forEach((item) => {\n if (item === 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n }\n}\nconst del = (value: any) => {\n if (value === 'radius') {\n form.radius = '0px'\n } else {\n delete form[position.value][value]\n }\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n {\n deep: true,\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","reactive","computed","upper","watch","position","width","onMounted"],"mappings":";;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA0HD,IAAA,MAAM,YAAY,CAAC,KAAA,EAAO,OAAS,EAAA,QAAA,EAAU,QAAQ,KAAK,CAAA,CAAA;AAC1D,IAAA,MAAM,QAAQ,CAAC,IAAA,EAAM,KAAK,KAAO,EAAA,IAAA,EAAM,MAAM,IAAI,CAAA,CAAA;AACjD,IAAM,MAAA,QAAA,GAAWC,QAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAM,KAAUA,OAAI,EAAA,CAAA;AACpB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AACnC,IAAA,MAAM,cAAc,OAAO;AAAA,MACzB,IAAM,EAAA,IAAA;AAAA,KACR,CAAA,CAAA;AAEA,IAAA,MAAM,OAAYC,YAAS,CAAA;AAAA,MACzB,KAAK,WAAY,EAAA;AAAA,MACjB,OAAO,WAAY,EAAA;AAAA,MACnB,QAAQ,WAAY,EAAA;AAAA,MACpB,MAAM,WAAY,EAAA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IAAK,CAAA,QAAA,CAAS,KAAK,CAAA,CAAE,KAAK,CAAA,CAAA;AAAA,OACnC;AAAA,KACF,CAAA;AAEA,IAAAD,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AAEA,IAAAG,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-border-input.vue2.js","sources":["../../../src/style-border-input/src/style-border-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBorderInput',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-style-border-input\" :class=\"width.value < 400 ? 'mini' : ''\">\n <div class=\"border-box\">\n <dk-icon\n v-for=\"item in positions\"\n :key=\"item\"\n :icon=\"'gg:border-' + item\"\n :class=\"'border-box-option border-' + item + ' ' + (position == item ? 'selected' : '')\"\n :size=\"24\"\n :style=\"'grid-area: border-' + item + ' / border-' + item + ' / border-' + item + ' / border-' + item + ';'\"\n @click=\"position = item\"\n ></dk-icon>\n </div>\n <div style=\"width: 100%\" class=\"m-l-20px\">\n <!-- 样式、宽度、颜色-->\n <el-form label-width=\"50px\" label-position=\"left\" size=\"small\">\n <el-form-item value=\"尺寸\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderWidth\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderWidth ? 'color-blue' : ''\"\n @click=\"del('borderWidth')\"\n >尺寸</span\n >\n </el-tooltip>\n </template>\n <div style=\"display: flex; width: 100%\">\n <el-slider\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-slider\"\n :max=\"50\"\n @change=\"clearOtherBorder()\"\n />\n <el-input\n v-model=\"form[position].borderWidth\"\n class=\"dk-border-input\"\n type=\"number\"\n @change=\"clearOtherBorder()\"\n >\n <!-- <template #append>-->\n <!-- <el-select-->\n <!-- v-model=\"form[position].unit\"-->\n <!-- placeholder=\"px\"-->\n <!-- class=\"dk-border-select\"-->\n <!-- style=\"width: 50px\"-->\n <!-- suffix-icon=\"\"-->\n <!-- @change=\"clearOtherBorder()\"-->\n <!-- >-->\n <!-- <el-option-->\n <!-- v-for=\"item in units\"-->\n <!-- :key=\"item\"-->\n <!-- :label=\"item\"-->\n <!-- :value=\"item\"-->\n <!-- />-->\n <!-- </el-select>-->\n <!-- </template>-->\n </el-input>\n <el-select\n v-model=\"form[position].unit\"\n placeholder=\"px\"\n class=\"dk-border-select\"\n style=\"width: 60px\"\n @change=\"clearOtherBorder()\"\n >\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </div>\n </el-form-item>\n <el-form-item value=\"样式\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderStyle\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderStyle ? 'color-blue' : ''\"\n @click=\"del('borderStyle')\"\n >样式</span\n >\n </el-tooltip>\n </template>\n <el-radio-group v-model=\"form[position].borderStyle\" @change=\"clearOtherBorder()\">\n <el-radio-button value=\"solid\" name=\"type\">\n <dk-icon icon=\"gg:border-style-solid\"></dk-icon>\n </el-radio-button>\n <el-radio-button value=\"dotted\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dotted\"></dk-icon>\n </el-radio-button>\n <el-radio-button value=\"dashed\" name=\"type\">\n <dk-icon icon=\"gg:border-style-dashed\"></dk-icon>\n </el-radio-button>\n <el-radio-button value=\"double\" name=\"type\">\n <dk-icon icon=\"memory:box-light-double-horizontal\"></dk-icon>\n </el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"!form[position].borderColor\">\n <span\n class=\"cursor-pointer\"\n :class=\"form[position].borderColor ? 'color-blue' : ''\"\n @click=\"del('borderColor')\"\n >颜色</span\n >\n </el-tooltip>\n </template>\n <el-color-picker v-model=\"form[position].borderColor\" />\n </el-form-item>\n <el-form-item label=\"弧度\">\n <template #label>\n <el-tooltip effect=\"dark\" content=\"点击清除\" placement=\"top-start\" :disabled=\"form.radius == '0px'\">\n <span class=\"cursor-pointer\" :class=\"form.radius !== '0px' ? 'color-blue' : ''\" @click=\"del('radius')\"\n >弧度</span\n >\n </el-tooltip>\n </template>\n <dk-box-size-input v-model=\"form.radius\" type=\"radius\"></dk-box-size-input>\n </el-form-item>\n </el-form>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBorderInputProps } from './props'\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { upper } from '@vipl520/utils'\nimport { useElementSize, useWindowSize } from '@vueuse/core'\n\n\n\nconst props = defineProps(styleBorderInputProps)\nconst emit = defineEmits(['update:modelValue', 'change'])\n\nconst positions = ['top', 'right', 'bottom', 'left', 'all']\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst position = ref('all')\nconst el: any = ref()\nconst { width } = useElementSize(el) // 当前组件宽度\nconst defaultForm = () => ({\n unit: 'px',\n})\n\nconst form: any = reactive({\n top: defaultForm(),\n right: defaultForm(),\n bottom: defaultForm(),\n left: defaultForm(),\n all: defaultForm(),\n radius: props.modelValue.borderRadius || '0px',\n})\n\nconst styles = computed(() => {\n const style: any = {}\n positions.forEach((item) => {\n if (item === 'all') {\n if (form[item].borderWidth) {\n style.borderWidth = form[item].borderWidth + (form[item].unit || 'px')\n }\n if (form[item].borderStyle) {\n style.borderStyle = form[item].borderStyle\n }\n if (form[item].borderColor) {\n style.borderColor = form[item].borderColor\n }\n } else {\n if (form[item].borderWidth) {\n style['border' + upper(item) + 'Width'] = form[item].borderWidth + (form[item].unit || 'px')\n }\n\n if (form[item].borderStyle) {\n style['border' + upper(item) + 'Style'] = form[item].borderStyle\n }\n\n if (form[item].borderColor) {\n style['border' + upper(item) + 'Color'] = form[item].borderColor\n }\n }\n })\n // 把style中的borderWidth、borderStyle、borderColor放到最前面\n if (form.radius !== '0px') {\n style.borderRadius = form.radius\n }\n return style\n})\nwatch(styles, () => {\n emit('update:modelValue', styles.value)\n emit('change', styles.value)\n})\n\nconst init = () => {\n const keys = [\n 'borderWidth',\n 'borderStyle',\n 'borderColor',\n 'borderRightWidth',\n 'borderRightStyle',\n 'borderRightColor',\n 'borderLeftWidth',\n 'borderLeftStyle',\n 'borderLeftColor',\n 'borderTopWidth',\n 'borderTopStyle',\n 'borderTopColor',\n 'borderBottomWidth',\n 'borderBottomStyle',\n 'borderBottomColor',\n 'borderRadius',\n ]\n\n keys.forEach((key) => {\n if (props.modelValue[key]) {\n if (key === 'borderRadius') {\n form.radius = props.modelValue[key]\n } else {\n let [_, position, property] = key.split(/(?=[A-Z])/)\n let _position = position.toLowerCase() // 位置\n const value = props.modelValue[key] // 值\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n if (property === 'Width') {\n const width = parseInt(value) || 0\n const unit = value.replace(width + '', '') || 'px'\n if (units.indexOf(unit) > -1) {\n form[_position].unit = unit\n form[_position].borderWidth = width\n }\n } else {\n form[_position]['border' + property] = value\n }\n }\n } else {\n if (key === 'borderRadius') {\n form.radius = '0px'\n } else {\n // delete form[position.value][key]\n let [_, position, property] = key.split(/(?=[A-Z])/)\n\n let _position = position.toLowerCase() // 位置\n if (positions.indexOf(_position) === -1) {\n _position = 'all'\n property = position\n }\n const value = props.modelValue[key] // 值\n if (property === 'Width') {\n delete form[_position].borderWidth\n delete form[_position].unit\n } else {\n delete form[_position]['border' + property]\n }\n }\n }\n })\n}\n\nconst clearOtherBorder = () => {\n if (position.value === 'all') {\n positions.forEach((item) => {\n if (item !== 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n } else {\n positions.forEach((item) => {\n if (item === 'all') {\n form[item] = {\n unit: 'px',\n }\n }\n })\n }\n}\nconst del = (value: any) => {\n if (value === 'radius') {\n form.radius = '0px'\n } else {\n delete form[position.value][value]\n }\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n {\n deep: true,\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","reactive","computed","upper","watch","position","width","onMounted"],"mappings":";;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAwID,IAAA,MAAM,YAAY,CAAC,KAAA,EAAO,OAAS,EAAA,QAAA,EAAU,QAAQ,KAAK,CAAA,CAAA;AAC1D,IAAA,MAAM,QAAQ,CAAC,IAAA,EAAM,KAAK,KAAO,EAAA,IAAA,EAAM,MAAM,IAAI,CAAA,CAAA;AACjD,IAAM,MAAA,QAAA,GAAWC,QAAI,KAAK,CAAA,CAAA;AAC1B,IAAA,MAAM,KAAUA,OAAI,EAAA,CAAA;AACpB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AACnC,IAAA,MAAM,cAAc,OAAO;AAAA,MACzB,IAAM,EAAA,IAAA;AAAA,KACR,CAAA,CAAA;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F;AAAA,SACD,CAAA,CAAA;AAAA,OACH;AAAA,KACF,CAAA;AACA,IAAM,MAAA,GAAA,GAAM,CAAC,KAAe,KAAA;AAC1B,MAAA,IAAI,UAAU,QAAU,EAAA;AACtB,QAAA,IAAA,CAAK,MAAS,GAAA,KAAA,CAAA;AAAA,OACT,MAAA;AACL,QAAA,OAAO,IAAK,CAAA,QAAA,CAAS,KAAK,CAAA,CAAE,KAAK,CAAA,CAAA;AAAA,OACnC;AAAA,KACF,CAAA;AAEA,IAAAD,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AAEA,IAAAG,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -11,7 +11,7 @@ export declare const StyleBoxInput: import("@vipl520/utils").WithInstall<import(
11
11
  type: StringConstructor;
12
12
  default: string;
13
13
  };
14
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  modelValue: {
16
16
  type: ObjectConstructor;
17
17
  default: () => {};
@@ -26,6 +26,7 @@ export declare const StyleBoxInput: import("@vipl520/utils").WithInstall<import(
26
26
  };
27
27
  }>> & {
28
28
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
+ onChange?: ((...args: any[]) => any) | undefined;
29
30
  }, {
30
31
  modelValue: Record<string, any>;
31
32
  height: number;
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: StringConstructor;
12
12
  default: string;
13
13
  };
14
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  modelValue: {
16
16
  type: ObjectConstructor;
17
17
  default: () => {};
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  };
27
27
  }>> & {
28
28
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
+ onChange?: ((...args: any[]) => any) | undefined;
29
30
  }, {
30
31
  modelValue: Record<string, any>;
31
32
  height: number;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var styleBoxInput_vue_vue_type_script_setup_true_lang = require('./style-box-input.vue2.js');
6
6
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
7
7
 
8
- var _StyleBoxInput = /* @__PURE__ */ _pluginVue_exportHelper.default(styleBoxInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);
8
+ var _StyleBoxInput = /* @__PURE__ */ _pluginVue_exportHelper.default(styleBoxInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\style-box-input\\src\\style-box-input.vue"]]);
9
9
 
10
10
  exports.default = _StyleBoxInput;
11
11
  //# sourceMappingURL=style-box-input.vue.js.map
@@ -60,7 +60,7 @@ const __default__ = vue.defineComponent({
60
60
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
61
61
  ...__default__,
62
62
  props: props.styleBoxInputProps,
63
- emits: ["update:modelValue"],
63
+ emits: ["update:modelValue", "change"],
64
64
  setup(__props, { emit }) {
65
65
  const props = __props;
66
66
  const moves = vue.reactive({
@@ -121,6 +121,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
121
121
  return acc;
122
122
  }, {});
123
123
  emit("update:modelValue", _styles);
124
+ emit("change", _styles);
124
125
  });
125
126
  const showStyles = vue.reactive({
126
127
  marginLeft: false,
@@ -1 +1 @@
1
- {"version":3,"file":"style-box-input.vue2.js","sources":["../../../src/style-box-input/src/style-box-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBoxInput',\n});\n</script>\n<template>\n <div class=\"dk-style-box-input\">\n <div class=\"position-line\" :style=\"positionStyle\"></div>\n <div class=\"header\">\n <label class=\"items-center\">\n 内外边距 | 高宽\n <el-popover\n ref=\"popover\"\n placement=\"bottom\"\n title=\"说明\"\n :width=\"280\"\n trigger=\"hover\"\n :content=\"props.help\"\n >\n <template #reference>\n <dk-icon\n icon=\"QuestionFilled\"\n class=\"m-l-5px vertical-text-top\"\n ></dk-icon>\n </template>\n </el-popover>\n </label>\n <div class=\"float-right cursor-pointer\">\n <div class=\"name-header-operations\">\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"重置高宽\"\n placement=\"top-start\"\n >\n <dk-icon\n icon=\"Refresh\"\n color=\"var(--el-color-primary)\"\n @click=\"onRefresh('widthHeight')\"\n ></dk-icon>\n </el-tooltip>\n </div>\n <div class=\"name-header-operations\">\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"重置内边距\"\n placement=\"top-start\"\n >\n <dk-icon\n icon=\"Refresh\"\n color=\"var(--el-color-success)\"\n @click=\"onRefresh('padding')\"\n ></dk-icon>\n </el-tooltip>\n </div>\n <div class=\"name-header-operations\">\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"重置外边距\"\n placement=\"top-start\"\n >\n <dk-icon\n icon=\"Refresh\"\n color=\"var(--el-color-warning)\"\n @click=\"onRefresh('margin')\"\n ></dk-icon>\n </el-tooltip>\n </div>\n </div>\n\n <div\n tabindex=\"0\"\n class=\"wrapper\"\n style=\"margin-top: 10px\"\n :style=\"{ height: props.height + 'px' }\"\n >\n <div\n class=\"thumnail margin\"\n :class=\"moves.margin ? 'thumnail-heightlight' : ''\"\n @mousemove=\"onMouseMove('margin', 'move', $event)\"\n @mouseleave=\"onMouseMove('margin', 'leave', $event)\"\n >\n <!--外边距 Margin-->\n <div>\n <div v-for=\"(item, key) in margins\" :key=\"key\">\n <span\n :title=\"item.title\"\n :class=\"`anchor-tip-${item.position} value-indicator`\"\n @dblclick=\"onDblclick(item.value, key)\"\n >\n {{ getValue(styles[item.value]) }}\n </span>\n <input\n ref=\"inputField\"\n v-model=\"styles[item.value]\"\n :class=\"\n 'input-box anchor-tip-' +\n item.position +\n (showStyles[item.value] ? ' show' : '')\n \"\n @blur=\"onBlur(item.value)\"\n />\n <svg\n :width=\"item.svg.width\"\n :height=\"item.svg.height\"\n :viewBox=\"item.svg.viewBox\"\n preserveAspectRatio=\"none\"\n :data-link-anchor=\"item.value\"\n :style=\"item.svg.style\"\n class=\"esm-modal-svg\"\n v-html=\"item.svg.content\"\n ></svg>\n </div>\n </div>\n <div\n style=\"position: absolute; display: none; width: 100%; height: 100%\"\n ></div>\n <div class=\"anchor-wrapper\">\n <div\n v-for=\"(item, key) in ['left', 'right', 'top', 'bottom']\"\n :key=\"key\"\n class=\"anchor\"\n :class=\"'anchor-' + item\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown('margin', item, $event)\"\n @mouseup=\"handleMouseUp\"\n ></div>\n </div>\n <span class=\"title\"> 外边距 </span>\n <!--外边距 Margin END-->\n\n <!--内边距 Padding-->\n <div class=\"thumnail border\">\n <div\n class=\"thumnail padding\"\n :class=\"moves.padding ? 'thumnail-heightlight' : ''\"\n @mousemove=\"onMouseMove('padding', 'move', $event)\"\n @mouseleave=\"onMouseMove('padding', 'leave', $event)\"\n >\n <div>\n <div v-for=\"(item, key) in paddings\" :key=\"key\">\n <span\n :title=\"item.title\"\n :class=\"`anchor-tip-${item.position} value-indicator`\"\n @dblclick=\"onDblclick(item.value, key + 4)\"\n >\n {{ getValue(styles[item.value]) }}\n </span>\n <input\n ref=\"inputField\"\n v-model=\"styles[item.value]\"\n :class=\"\n 'input-box anchor-tip-' +\n item.position +\n (showStyles[item.value] ? ' show' : '')\n \"\n @blur=\"onBlur(item.value)\"\n />\n <svg\n :width=\"item.svg.width\"\n :height=\"item.svg.height\"\n :viewBox=\"item.svg.viewBox\"\n preserveAspectRatio=\"none\"\n :data-link-anchor=\"item.value\"\n :style=\"item.svg.style\"\n class=\"esm-modal-svg\"\n v-html=\"item.svg.content\"\n ></svg>\n </div>\n </div>\n <div class=\"anchor-wrapper\">\n <div\n v-for=\"(item, key) in ['left', 'right', 'top', 'bottom']\"\n :key=\"key\"\n class=\"anchor\"\n :class=\"'anchor-' + item\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown('padding', item, $event)\"\n @mouseup=\"handleMouseUp\"\n ></div>\n </div>\n <span class=\"title\"> 内边距 </span>\n <!--内边距 END-->\n <div\n class=\"thumnail width-height\"\n :class=\"moves.widthHeight ? 'thumnail-heightlight' : ''\"\n @mousemove=\"onMouseMove('widthHeight', 'move', $event)\"\n @mouseleave=\"onMouseMove('widthHeight', 'leave', $event)\"\n >\n <span class=\"title\">\n <span\n class=\"content-unit left-0\"\n @dblclick=\"onDblclick('width', 9)\"\n >\n {{ getValue(styles['width']) }}\n </span>\n <input\n ref=\"inputWidth\"\n v-model=\"styles.width\"\n class=\"input-box absolute left-5% top-10px\"\n :class=\"showStyles['width'] ? ' show' : ''\"\n @blur=\"onBlur('width')\"\n />\n <span> x </span>\n <span\n class=\"content-unit right-0\"\n @dblclick=\"onDblclick('height', 9)\"\n >\n {{ getValue(styles['height']) }}\n </span>\n <input\n ref=\"inputHeight\"\n v-model=\"styles.height\"\n class=\"input-box absolute right-5% top-10px\"\n :class=\"showStyles['height'] ? ' show' : ''\"\n @blur=\"onBlur('height')\"\n />\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBoxInputProps } from './props'\nimport { nextTick, reactive, ref, watch } from 'vue'\nimport { margins, paddings } from './html'\nimport { upper } from '@vipl520/utils'\n\n\n\nconst props = defineProps(styleBoxInputProps)\n\nconst moves: any = reactive({\n margin: false,\n padding: false,\n widthHeight: false,\n})\n\nconst inputField = ref()\nconst inputWidth = ref()\nconst inputHeight = ref()\n\nconst styles: any = reactive({\n marginLeft: props.modelValue.marginLeft || '',\n marginRight: props.modelValue.marginRight || '',\n marginTop: props.modelValue.marginTop || '',\n marginBottom: props.modelValue.marginBottom || '',\n paddingLeft: props.modelValue.paddingLeft || '',\n paddingRight: props.modelValue.paddingRight || '',\n paddingTop: props.modelValue.paddingTop || '',\n paddingBottom: props.modelValue.paddingBottom || '',\n width: props.modelValue.width || '',\n height: props.modelValue.height || '',\n})\nconst emit = defineEmits(['update:modelValue'])\n\nconst height = ref(props.height)\n\nwatch(\n () => props.height,\n () => {\n console.log('height', props.height)\n }\n)\n\nwatch(\n () => props.modelValue,\n (newVal, oldVal) => {\n const propertiesToWatch = [\n 'marginLeft',\n 'marginRight',\n 'marginTop',\n 'marginBottom',\n 'paddingLeft',\n 'paddingRight',\n 'paddingTop',\n 'paddingBottom',\n 'width',\n 'height',\n ]\n propertiesToWatch.forEach((property) => {\n if (newVal[property] !== oldVal[property]) {\n styles[property] = newVal[property] || ''\n }\n })\n },\n { deep: true }\n)\n\nwatch(styles, () => {\n // 过滤 styles 中值为''\n const _styles = Object.keys(styles).reduce((acc: any, key) => {\n if (styles[key] !== '') {\n acc[key] = styles[key]\n }\n return acc\n }, {})\n emit('update:modelValue', _styles)\n})\n\nconst showStyles: any = reactive({\n marginLeft: false,\n marginRight: false,\n marginTop: false,\n marginBottom: false,\n paddingLeft: false,\n paddingRight: false,\n paddingTop: false,\n paddingBottom: false,\n width: false,\n height: false,\n})\n\nconst dragging = ref(false)\nconst startPosition: any = reactive({\n x: 0,\n y: 0,\n})\n\nconst trackMouseBound: any = ref(null)\nconst stopChangeBound: any = ref(null)\nconst dragPosition = reactive({\n type: '',\n position: '',\n})\nconst positionStyle: any = reactive({\n display: 'none',\n width: '0px',\n height: '0px',\n left: '0px',\n top: '0px',\n})\n// const handleMouseMove = (event: any) => {\n// // 处理鼠标移动事件\n// if (dragging.value) {\n// const p = dragPosition.position\n// const type = dragPosition.type\n// const value = type + upper(p)\n// if (p === 'left' || p === 'right') {\n// // 说明是左右移动\n// positionStyle.left = event.clientX + 'px'\n// // 根据移动的距离,增加或者减少margin/padding-left/right 的大小\n// let difference = event.clientX - startPosition.x\n// if (p === 'left') {\n// difference = -difference\n// }\n// styles[value] = (parseInt(styles[value]) || 0) + difference + 'px'\n// startPosition.x = event.clientX\n// } else if (p === 'top' || p === 'bottom') {\n// positionStyle.top = event.clientY + 'px'\n// let difference = event.clientY - startPosition.y\n// if (p === 'top') {\n// difference = -difference\n// }\n// styles[value] = (parseInt(styles[value]) || 0) + difference + 'px'\n// startPosition.y = event.clientY\n// }\n// }\n// }\n\nconst handleMouseMove = (event: any) => {\n // 处理鼠标移动事件\n if (!dragging.value) return\n\n const p = dragPosition.position\n const type = dragPosition.type\n const value = type + upper(p)\n\n const updateStyle = (\n axis: 'x' | 'y',\n position: 'top' | 'bottom' | 'left' | 'right'\n ) => {\n const clientAxis = axis === 'x' ? 'clientX' : 'clientY'\n positionStyle[position] = event[clientAxis] + 'px'\n\n let difference = event[clientAxis] - startPosition[axis]\n if (p === 'top' || p === 'left') {\n difference = -difference\n }\n styles[value] = (parseInt(styles[value]) || 0) + difference + 'px'\n startPosition[axis] = event[clientAxis]\n }\n\n if (p === 'left' || p === 'right') {\n // 说明是左右移动\n updateStyle('x', 'left')\n } else if (p === 'top' || p === 'bottom') {\n updateStyle('y', 'top')\n }\n}\n\n// const handleMouseDown = (type: string, position: string, event: any) => {\n// // 处理鼠标按下事件\n// console.log('handleMouseDown', event)\n// dragPosition.position = position\n// dragPosition.type = type\n// trackMouseBound.value = handleMouseMove.bind(this)\n// document.addEventListener('mousemove', trackMouseBound.value)\n// stopChangeBound.value = handleMouseUp.bind(this)\n// document.addEventListener('mouseup', stopChangeBound.value)\n// dragging.value = true\n// const height = props.height\n// // 宽度 为.wrapper的宽度\n// const wrapperElement: any = document.querySelector('.wrapper')\n// const width = wrapperElement ? wrapperElement.offsetWidth : 0\n// const multiples: any = {\n// margin: 0.9,\n// padding: 0.9 * 0.7,\n// }\n// positionStyle.display = 'block'\n// startPosition.x = event.clientX\n// startPosition.y = event.clientY\n// if (position === 'left' || position === 'right') {\n// document.body.style.cursor = 'ew-resize'\n// positionStyle.left = event.clientX + 'px'\n// positionStyle.top = event.clientY - height * 0.5 * multiples[type] + 'px'\n// positionStyle.width = '0.1px'\n// positionStyle.height = height * multiples[type] + 'px'\n// } else {\n// document.body.style.cursor = 'ns-resize'\n// positionStyle.left = event.clientX - width * 0.5 * multiples[type] + 'px'\n// positionStyle.top = event.clientY + 'px'\n// positionStyle.width = width * multiples[type] + 'px'\n// positionStyle.height = '0.1px'\n// }\n// }\n\nconst handleMouseDown = (type: string, position: string, event: any) => {\n // 处理鼠标按下事件\n Object.assign(dragPosition, { position, type })\n trackMouseBound.value = handleMouseMove.bind(event)\n document.addEventListener('mousemove', trackMouseBound.value)\n stopChangeBound.value = handleMouseUp.bind(event)\n document.addEventListener('mouseup', stopChangeBound.value)\n dragging.value = true\n\n const height = props.height\n const wrapperElement: any = document.querySelector('.wrapper')\n const width = wrapperElement ? wrapperElement.offsetWidth : 0\n const multiples: any = {\n margin: 0.9,\n padding: 0.9 * 0.7,\n }\n\n const { clientX, clientY } = event\n\n const setCursorAndDimensions = (\n cursor: string,\n left: string,\n top: string,\n width: string,\n height: string\n ) => {\n document.body.style.cursor = cursor\n Object.assign(positionStyle, { left, top, width, height, display: 'block' })\n }\n\n startPosition.x = clientX\n startPosition.y = clientY\n\n if (position === 'left' || position === 'right') {\n setCursorAndDimensions(\n 'ew-resize',\n clientX + 'px',\n clientY - height * 0.5 * multiples[type] + 'px',\n '0.1px',\n height * multiples[type] + 'px'\n )\n } else {\n setCursorAndDimensions(\n 'ns-resize',\n clientX - width * 0.5 * multiples[type] + 'px',\n clientY + 'px',\n width * multiples[type] + 'px',\n '0.1px'\n )\n }\n}\n\nconst handleMouseUp = () => {\n // 处理鼠标抬起事件\n document.removeEventListener('mousemove', trackMouseBound.value)\n document.removeEventListener('mouseup', stopChangeBound.value)\n dragging.value = false\n positionStyle.display = 'none'\n document.body.style.cursor = 'default'\n startPosition.x = null\n startPosition.y = null\n}\n\nconst onMouseMove = (value: string, type: string = 'move', event: any) => {\n if (!dragging.value) {\n event.stopPropagation()\n }\n if (type !== 'move') {\n moves[value] = false\n } else {\n // 其他的为false\n Object.keys(moves).forEach((key) => {\n if (key !== value) {\n moves[key] = false\n }\n })\n // 当前的为true\n moves[value] = true\n }\n}\n\nconst onDblclick = (value: any, key: number) => {\n showStyles[value] = true\n nextTick(() => {\n if (value === 'width') {\n inputWidth.value.focus()\n } else if (value === 'height') {\n inputHeight.value.focus()\n } else {\n inputField.value[key].focus()\n }\n })\n}\n\nconst getValue = (value: any) => {\n // 判断value结尾是否存在px、vh、%、rem等\n if (value === 'auto') {\n return value\n }\n if (value === '0' || value === 0) {\n return 0\n }\n if (value === '') {\n return '-'\n }\n return value\n}\n\nconst onBlur = (value: any) => {\n showStyles[value] = false\n // styles[value] 这是一个css的值,用户会自己填写,内容不确定,但是我希望是:数字+单位,单位为:px/rem/%/vh这些,如果不是的话,则默认为px\n if (styles[value] === '' || styles[value] === 'auto') {\n return\n }\n const validValueRegex = /^(\\d*\\.?\\d+)(px|rem|%|vh)$/\n // 检查value是否匹配有效单位,如果不匹配则默认为px\n if (!validValueRegex.test(styles[value])) {\n const number = parseInt(styles[value])\n if (isNaN(number)) {\n styles[value] = ''\n } else {\n styles[value] = number + 'px'\n }\n }\n}\n\nconst onRefresh = (type: string) => {\n if (type === 'widthHeight') {\n styles.width = ''\n styles.height = ''\n } else if (type === 'margin') {\n styles.marginLeft = ''\n styles.marginRight = ''\n styles.marginTop = ''\n styles.marginBottom = ''\n } else if (type === 'padding') {\n styles.paddingLeft = ''\n styles.paddingRight = ''\n styles.paddingTop = ''\n styles.paddingBottom = ''\n }\n}\n</script>\n"],"names":["__MACROS_defineComponent","reactive","ref","watch","upper","height","width","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,iBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA4OD,IAAA,MAAM,QAAaC,YAAS,CAAA;AAAA,MAC1B,MAAQ,EAAA,KAAA;AAAA,MACR,OAAS,EAAA,KAAA;AAAA,MACT,WAAa,EAAA,KAAA;AAAA,KACd,CAAA,CAAA;AAED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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-box-input.vue2.js","sources":["../../../src/style-box-input/src/style-box-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBoxInput',\n});\n</script>\n<template>\n <div class=\"dk-style-box-input\">\n <div class=\"position-line\" :style=\"positionStyle\"></div>\n <div class=\"header\">\n <label class=\"items-center\">\n 内外边距 | 高宽\n <el-popover\n ref=\"popover\"\n placement=\"bottom\"\n title=\"说明\"\n :width=\"280\"\n trigger=\"hover\"\n :content=\"props.help\"\n >\n <template #reference>\n <dk-icon\n icon=\"QuestionFilled\"\n class=\"m-l-5px vertical-text-top\"\n ></dk-icon>\n </template>\n </el-popover>\n </label>\n <div class=\"float-right cursor-pointer\">\n <div class=\"name-header-operations\">\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"重置高宽\"\n placement=\"top-start\"\n >\n <dk-icon\n icon=\"Refresh\"\n color=\"var(--el-color-primary)\"\n @click=\"onRefresh('widthHeight')\"\n ></dk-icon>\n </el-tooltip>\n </div>\n <div class=\"name-header-operations\">\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"重置内边距\"\n placement=\"top-start\"\n >\n <dk-icon\n icon=\"Refresh\"\n color=\"var(--el-color-success)\"\n @click=\"onRefresh('padding')\"\n ></dk-icon>\n </el-tooltip>\n </div>\n <div class=\"name-header-operations\">\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"重置外边距\"\n placement=\"top-start\"\n >\n <dk-icon\n icon=\"Refresh\"\n color=\"var(--el-color-warning)\"\n @click=\"onRefresh('margin')\"\n ></dk-icon>\n </el-tooltip>\n </div>\n </div>\n\n <div\n tabindex=\"0\"\n class=\"wrapper\"\n style=\"margin-top: 10px\"\n :style=\"{ height: props.height + 'px' }\"\n >\n <div\n class=\"thumnail margin\"\n :class=\"moves.margin ? 'thumnail-heightlight' : ''\"\n @mousemove=\"onMouseMove('margin', 'move', $event)\"\n @mouseleave=\"onMouseMove('margin', 'leave', $event)\"\n >\n <!--外边距 Margin-->\n <div>\n <div v-for=\"(item, key) in margins\" :key=\"key\">\n <span\n :title=\"item.title\"\n :class=\"`anchor-tip-${item.position} value-indicator`\"\n @dblclick=\"onDblclick(item.value, key)\"\n >\n {{ getValue(styles[item.value]) }}\n </span>\n <input\n ref=\"inputField\"\n v-model=\"styles[item.value]\"\n :class=\"\n 'input-box anchor-tip-' +\n item.position +\n (showStyles[item.value] ? ' show' : '')\n \"\n @blur=\"onBlur(item.value)\"\n />\n <svg\n :width=\"item.svg.width\"\n :height=\"item.svg.height\"\n :viewBox=\"item.svg.viewBox\"\n preserveAspectRatio=\"none\"\n :data-link-anchor=\"item.value\"\n :style=\"item.svg.style\"\n class=\"esm-modal-svg\"\n v-html=\"item.svg.content\"\n ></svg>\n </div>\n </div>\n <div\n style=\"position: absolute; display: none; width: 100%; height: 100%\"\n ></div>\n <div class=\"anchor-wrapper\">\n <div\n v-for=\"(item, key) in ['left', 'right', 'top', 'bottom']\"\n :key=\"key\"\n class=\"anchor\"\n :class=\"'anchor-' + item\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown('margin', item, $event)\"\n @mouseup=\"handleMouseUp\"\n ></div>\n </div>\n <span class=\"title\"> 外边距 </span>\n <!--外边距 Margin END-->\n\n <!--内边距 Padding-->\n <div class=\"thumnail border\">\n <div\n class=\"thumnail padding\"\n :class=\"moves.padding ? 'thumnail-heightlight' : ''\"\n @mousemove=\"onMouseMove('padding', 'move', $event)\"\n @mouseleave=\"onMouseMove('padding', 'leave', $event)\"\n >\n <div>\n <div v-for=\"(item, key) in paddings\" :key=\"key\">\n <span\n :title=\"item.title\"\n :class=\"`anchor-tip-${item.position} value-indicator`\"\n @dblclick=\"onDblclick(item.value, key + 4)\"\n >\n {{ getValue(styles[item.value]) }}\n </span>\n <input\n ref=\"inputField\"\n v-model=\"styles[item.value]\"\n :class=\"\n 'input-box anchor-tip-' +\n item.position +\n (showStyles[item.value] ? ' show' : '')\n \"\n @blur=\"onBlur(item.value)\"\n />\n <svg\n :width=\"item.svg.width\"\n :height=\"item.svg.height\"\n :viewBox=\"item.svg.viewBox\"\n preserveAspectRatio=\"none\"\n :data-link-anchor=\"item.value\"\n :style=\"item.svg.style\"\n class=\"esm-modal-svg\"\n v-html=\"item.svg.content\"\n ></svg>\n </div>\n </div>\n <div class=\"anchor-wrapper\">\n <div\n v-for=\"(item, key) in ['left', 'right', 'top', 'bottom']\"\n :key=\"key\"\n class=\"anchor\"\n :class=\"'anchor-' + item\"\n @mousemove=\"handleMouseMove\"\n @mousedown=\"handleMouseDown('padding', item, $event)\"\n @mouseup=\"handleMouseUp\"\n ></div>\n </div>\n <span class=\"title\"> 内边距 </span>\n <!--内边距 END-->\n <div\n class=\"thumnail width-height\"\n :class=\"moves.widthHeight ? 'thumnail-heightlight' : ''\"\n @mousemove=\"onMouseMove('widthHeight', 'move', $event)\"\n @mouseleave=\"onMouseMove('widthHeight', 'leave', $event)\"\n >\n <span class=\"title\">\n <span\n class=\"content-unit left-0\"\n @dblclick=\"onDblclick('width', 9)\"\n >\n {{ getValue(styles['width']) }}\n </span>\n <input\n ref=\"inputWidth\"\n v-model=\"styles.width\"\n class=\"input-box absolute left-5% top-10px\"\n :class=\"showStyles['width'] ? ' show' : ''\"\n @blur=\"onBlur('width')\"\n />\n <span> x </span>\n <span\n class=\"content-unit right-0\"\n @dblclick=\"onDblclick('height', 9)\"\n >\n {{ getValue(styles['height']) }}\n </span>\n <input\n ref=\"inputHeight\"\n v-model=\"styles.height\"\n class=\"input-box absolute right-5% top-10px\"\n :class=\"showStyles['height'] ? ' show' : ''\"\n @blur=\"onBlur('height')\"\n />\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBoxInputProps } from './props'\nimport { nextTick, reactive, ref, watch } from 'vue'\nimport { margins, paddings } from './html'\nimport { upper } from '@vipl520/utils'\n\n\n\nconst props = defineProps(styleBoxInputProps)\n\nconst moves: any = reactive({\n margin: false,\n padding: false,\n widthHeight: false,\n})\n\nconst inputField = ref()\nconst inputWidth = ref()\nconst inputHeight = ref()\n\nconst styles: any = reactive({\n marginLeft: props.modelValue.marginLeft || '',\n marginRight: props.modelValue.marginRight || '',\n marginTop: props.modelValue.marginTop || '',\n marginBottom: props.modelValue.marginBottom || '',\n paddingLeft: props.modelValue.paddingLeft || '',\n paddingRight: props.modelValue.paddingRight || '',\n paddingTop: props.modelValue.paddingTop || '',\n paddingBottom: props.modelValue.paddingBottom || '',\n width: props.modelValue.width || '',\n height: props.modelValue.height || '',\n})\nconst emit = defineEmits(['update:modelValue', 'change'])\n\nconst height = ref(props.height)\n\nwatch(\n () => props.height,\n () => {\n console.log('height', props.height)\n }\n)\n\nwatch(\n () => props.modelValue,\n (newVal, oldVal) => {\n const propertiesToWatch = [\n 'marginLeft',\n 'marginRight',\n 'marginTop',\n 'marginBottom',\n 'paddingLeft',\n 'paddingRight',\n 'paddingTop',\n 'paddingBottom',\n 'width',\n 'height',\n ]\n propertiesToWatch.forEach((property) => {\n if (newVal[property] !== oldVal[property]) {\n styles[property] = newVal[property] || ''\n }\n })\n },\n { deep: true }\n)\n\nwatch(styles, () => {\n // 过滤 styles 中值为''\n const _styles = Object.keys(styles).reduce((acc: any, key) => {\n if (styles[key] !== '') {\n acc[key] = styles[key]\n }\n return acc\n }, {})\n emit('update:modelValue', _styles)\n emit('change', _styles)\n})\n\nconst showStyles: any = reactive({\n marginLeft: false,\n marginRight: false,\n marginTop: false,\n marginBottom: false,\n paddingLeft: false,\n paddingRight: false,\n paddingTop: false,\n paddingBottom: false,\n width: false,\n height: false,\n})\n\nconst dragging = ref(false)\nconst startPosition: any = reactive({\n x: 0,\n y: 0,\n})\n\nconst trackMouseBound: any = ref(null)\nconst stopChangeBound: any = ref(null)\nconst dragPosition = reactive({\n type: '',\n position: '',\n})\nconst positionStyle: any = reactive({\n display: 'none',\n width: '0px',\n height: '0px',\n left: '0px',\n top: '0px',\n})\n// const handleMouseMove = (event: any) => {\n// // 处理鼠标移动事件\n// if (dragging.value) {\n// const p = dragPosition.position\n// const type = dragPosition.type\n// const value = type + upper(p)\n// if (p === 'left' || p === 'right') {\n// // 说明是左右移动\n// positionStyle.left = event.clientX + 'px'\n// // 根据移动的距离,增加或者减少margin/padding-left/right 的大小\n// let difference = event.clientX - startPosition.x\n// if (p === 'left') {\n// difference = -difference\n// }\n// styles[value] = (parseInt(styles[value]) || 0) + difference + 'px'\n// startPosition.x = event.clientX\n// } else if (p === 'top' || p === 'bottom') {\n// positionStyle.top = event.clientY + 'px'\n// let difference = event.clientY - startPosition.y\n// if (p === 'top') {\n// difference = -difference\n// }\n// styles[value] = (parseInt(styles[value]) || 0) + difference + 'px'\n// startPosition.y = event.clientY\n// }\n// }\n// }\n\nconst handleMouseMove = (event: any) => {\n // 处理鼠标移动事件\n if (!dragging.value) return\n\n const p = dragPosition.position\n const type = dragPosition.type\n const value = type + upper(p)\n\n const updateStyle = (\n axis: 'x' | 'y',\n position: 'top' | 'bottom' | 'left' | 'right'\n ) => {\n const clientAxis = axis === 'x' ? 'clientX' : 'clientY'\n positionStyle[position] = event[clientAxis] + 'px'\n\n let difference = event[clientAxis] - startPosition[axis]\n if (p === 'top' || p === 'left') {\n difference = -difference\n }\n styles[value] = (parseInt(styles[value]) || 0) + difference + 'px'\n startPosition[axis] = event[clientAxis]\n }\n\n if (p === 'left' || p === 'right') {\n // 说明是左右移动\n updateStyle('x', 'left')\n } else if (p === 'top' || p === 'bottom') {\n updateStyle('y', 'top')\n }\n}\n\n// const handleMouseDown = (type: string, position: string, event: any) => {\n// // 处理鼠标按下事件\n// console.log('handleMouseDown', event)\n// dragPosition.position = position\n// dragPosition.type = type\n// trackMouseBound.value = handleMouseMove.bind(this)\n// document.addEventListener('mousemove', trackMouseBound.value)\n// stopChangeBound.value = handleMouseUp.bind(this)\n// document.addEventListener('mouseup', stopChangeBound.value)\n// dragging.value = true\n// const height = props.height\n// // 宽度 为.wrapper的宽度\n// const wrapperElement: any = document.querySelector('.wrapper')\n// const width = wrapperElement ? wrapperElement.offsetWidth : 0\n// const multiples: any = {\n// margin: 0.9,\n// padding: 0.9 * 0.7,\n// }\n// positionStyle.display = 'block'\n// startPosition.x = event.clientX\n// startPosition.y = event.clientY\n// if (position === 'left' || position === 'right') {\n// document.body.style.cursor = 'ew-resize'\n// positionStyle.left = event.clientX + 'px'\n// positionStyle.top = event.clientY - height * 0.5 * multiples[type] + 'px'\n// positionStyle.width = '0.1px'\n// positionStyle.height = height * multiples[type] + 'px'\n// } else {\n// document.body.style.cursor = 'ns-resize'\n// positionStyle.left = event.clientX - width * 0.5 * multiples[type] + 'px'\n// positionStyle.top = event.clientY + 'px'\n// positionStyle.width = width * multiples[type] + 'px'\n// positionStyle.height = '0.1px'\n// }\n// }\n\nconst handleMouseDown = (type: string, position: string, event: any) => {\n // 处理鼠标按下事件\n Object.assign(dragPosition, { position, type })\n trackMouseBound.value = handleMouseMove.bind(event)\n document.addEventListener('mousemove', trackMouseBound.value)\n stopChangeBound.value = handleMouseUp.bind(event)\n document.addEventListener('mouseup', stopChangeBound.value)\n dragging.value = true\n\n const height = props.height\n const wrapperElement: any = document.querySelector('.wrapper')\n const width = wrapperElement ? wrapperElement.offsetWidth : 0\n const multiples: any = {\n margin: 0.9,\n padding: 0.9 * 0.7,\n }\n\n const { clientX, clientY } = event\n\n const setCursorAndDimensions = (\n cursor: string,\n left: string,\n top: string,\n width: string,\n height: string\n ) => {\n document.body.style.cursor = cursor\n Object.assign(positionStyle, { left, top, width, height, display: 'block' })\n }\n\n startPosition.x = clientX\n startPosition.y = clientY\n\n if (position === 'left' || position === 'right') {\n setCursorAndDimensions(\n 'ew-resize',\n clientX + 'px',\n clientY - height * 0.5 * multiples[type] + 'px',\n '0.1px',\n height * multiples[type] + 'px'\n )\n } else {\n setCursorAndDimensions(\n 'ns-resize',\n clientX - width * 0.5 * multiples[type] + 'px',\n clientY + 'px',\n width * multiples[type] + 'px',\n '0.1px'\n )\n }\n}\n\nconst handleMouseUp = () => {\n // 处理鼠标抬起事件\n document.removeEventListener('mousemove', trackMouseBound.value)\n document.removeEventListener('mouseup', stopChangeBound.value)\n dragging.value = false\n positionStyle.display = 'none'\n document.body.style.cursor = 'default'\n startPosition.x = null\n startPosition.y = null\n}\n\nconst onMouseMove = (value: string, type: string = 'move', event: any) => {\n if (!dragging.value) {\n event.stopPropagation()\n }\n if (type !== 'move') {\n moves[value] = false\n } else {\n // 其他的为false\n Object.keys(moves).forEach((key) => {\n if (key !== value) {\n moves[key] = false\n }\n })\n // 当前的为true\n moves[value] = true\n }\n}\n\nconst onDblclick = (value: any, key: number) => {\n showStyles[value] = true\n nextTick(() => {\n if (value === 'width') {\n inputWidth.value.focus()\n } else if (value === 'height') {\n inputHeight.value.focus()\n } else {\n inputField.value[key].focus()\n }\n })\n}\n\nconst getValue = (value: any) => {\n // 判断value结尾是否存在px、vh、%、rem等\n if (value === 'auto') {\n return value\n }\n if (value === '0' || value === 0) {\n return 0\n }\n if (value === '') {\n return '-'\n }\n return value\n}\n\nconst onBlur = (value: any) => {\n showStyles[value] = false\n // styles[value] 这是一个css的值,用户会自己填写,内容不确定,但是我希望是:数字+单位,单位为:px/rem/%/vh这些,如果不是的话,则默认为px\n if (styles[value] === '' || styles[value] === 'auto') {\n return\n }\n const validValueRegex = /^(\\d*\\.?\\d+)(px|rem|%|vh)$/\n // 检查value是否匹配有效单位,如果不匹配则默认为px\n if (!validValueRegex.test(styles[value])) {\n const number = parseInt(styles[value])\n if (isNaN(number)) {\n styles[value] = ''\n } else {\n styles[value] = number + 'px'\n }\n }\n}\n\nconst onRefresh = (type: string) => {\n if (type === 'widthHeight') {\n styles.width = ''\n styles.height = ''\n } else if (type === 'margin') {\n styles.marginLeft = ''\n styles.marginRight = ''\n styles.marginTop = ''\n styles.marginBottom = ''\n } else if (type === 'padding') {\n styles.paddingLeft = ''\n styles.paddingRight = ''\n styles.paddingTop = ''\n styles.paddingBottom = ''\n }\n}\n</script>\n"],"names":["__MACROS_defineComponent","reactive","ref","watch","upper","height","width","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,iBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA4OD,IAAA,MAAM,QAAaC,YAAS,CAAA;AAAA,MAC1B,MAAQ,EAAA,KAAA;AAAA,MACR,OAAS,EAAA,KAAA;AAAA,MACT,WAAa,EAAA,KAAA;AAAA,KACd,CAAA,CAAA;AAED,IAAA,MAAM,aAAaC,OAAI,EAAA,CAAA;AACvB,IAAA,MAAM,aAAaA,OAAI,EAAA,CAAA;AACvB,IAAA,MAAM,cAAcA,OAAI,EAAA,CAAA;AAExB,IAAA,MAAM,SAAcD,YAAS,CAAA;AAAA,MAC3B,UAAA,EAAY,KAAM,CAAA,UAAA,CAAW,UAAc,IAAA,EAAA;AAAA,MAC3C,WAAA,EAAa,KAAM,CAAA,UAAA,CAAW,WAAe,IAAA,EAAA;AAAA,MAC7C,SAAA,EAAW,KAAM,CAAA,UAAA,CAAW,SAAa,IAAA,EAAA;AAAA,MACzC,YAAA,EAAc,KAAM,CAAA,UAAA,CAAW,YAAgB,IAAA,EAAA;AAAA,MAC/C,WAAA,EAAa,KAAM,CAAA,UAAA,CAAW,WAAe,IAAA,EAAA;AAAA,MAC7C,YAAA,EAAc,KAAM,CAAA,UAAA,CAAW,YAAgB,IAAA,EAAA;AAAA,MAC/C,UAAA,EAAY,KAAM,CAAA,UAAA,CAAW,UAAc,IAAA,EAAA;AAAA,MAC3C,aAAA,EAAe,KAAM,CAAA,UAAA,CAAW,aAAiB,IAAA,EAAA;AAAA,MACjD,KAAA,EAAO,KAAM,CAAA,UAAA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A,CAAA;AACrB,QAAA,MAAA,CAAO,YAAe,GAAA,EAAA,CAAA;AACtB,QAAA,MAAA,CAAO,UAAa,GAAA,EAAA,CAAA;AACpB,QAAA,MAAA,CAAO,aAAgB,GAAA,EAAA,CAAA;AAAA,OACzB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,13 +3,14 @@ export declare const StyleFontInput: import("@vipl520/utils").WithInstall<import
3
3
  type: ObjectConstructor;
4
4
  default: () => {};
5
5
  };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
7
  modelValue: {
8
8
  type: ObjectConstructor;
9
9
  default: () => {};
10
10
  };
11
11
  }>> & {
12
12
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
13
+ onChange?: ((...args: any[]) => any) | undefined;
13
14
  }, {
14
15
  modelValue: Record<string, any>;
15
16
  }, {}>>;
@@ -3,13 +3,14 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: ObjectConstructor;
4
4
  default: () => {};
5
5
  };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
7
  modelValue: {
8
8
  type: ObjectConstructor;
9
9
  default: () => {};
10
10
  };
11
11
  }>> & {
12
12
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
13
+ onChange?: ((...args: any[]) => any) | undefined;
13
14
  }, {
14
15
  modelValue: Record<string, any>;
15
16
  }, {}>;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var styleFontInput_vue_vue_type_script_setup_true_lang = require('./style-font-input.vue2.js');
6
6
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
7
7
 
8
- var _StyleFontInput = /* @__PURE__ */ _pluginVue_exportHelper.default(styleFontInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);
8
+ var _StyleFontInput = /* @__PURE__ */ _pluginVue_exportHelper.default(styleFontInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\style-font-input\\src\\style-font-input.vue"]]);
9
9
 
10
10
  exports.default = _StyleFontInput;
11
11
  //# sourceMappingURL=style-font-input.vue.js.map
@@ -25,7 +25,7 @@ const __default__ = vue.defineComponent({
25
25
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
26
26
  ...__default__,
27
27
  props: props.styleFontInputProps,
28
- emits: ["update:modelValue"],
28
+ emits: ["update:modelValue", "change"],
29
29
  setup(__props, { emit }) {
30
30
  const props = __props;
31
31
  const showAfter = 400;
@@ -45,6 +45,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
45
45
  return acc;
46
46
  }, {});
47
47
  emit("update:modelValue", _styles);
48
+ emit("change", _styles);
48
49
  });
49
50
  vue.watch(
50
51
  () => props.modelValue,
@@ -282,7 +283,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
282
283
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => styles.fontWeight = $event)
283
284
  }, {
284
285
  default: vue.withCtx(() => [
285
- vue.createVNode(_component_el_radio_button, { label: "bold" }, {
286
+ vue.createVNode(_component_el_radio_button, { value: "bold" }, {
286
287
  default: vue.withCtx(() => [
287
288
  vue.createVNode(_component_dk_icon, {
288
289
  icon: "radix-icons:font-bold",
@@ -292,7 +293,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
292
293
  _: 1
293
294
  /* STABLE */
294
295
  }),
295
- vue.createVNode(_component_el_radio_button, { label: "lighter" }, {
296
+ vue.createVNode(_component_el_radio_button, { value: "lighter" }, {
296
297
  default: vue.withCtx(() => [
297
298
  vue.createVNode(_component_dk_icon, {
298
299
  icon: "clarity:font-size-line",
@@ -341,7 +342,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
341
342
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => styles.fontStyle = $event)
342
343
  }, {
343
344
  default: vue.withCtx(() => [
344
- vue.createVNode(_component_el_radio_button, { label: "italic" }, {
345
+ vue.createVNode(_component_el_radio_button, { value: "italic" }, {
345
346
  default: vue.withCtx(() => [
346
347
  vue.createVNode(_component_dk_icon, {
347
348
  icon: "radix-icons:font-italic",
@@ -389,7 +390,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
389
390
  "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => styles.textDecoration = $event)
390
391
  }, {
391
392
  default: vue.withCtx(() => [
392
- vue.createVNode(_component_el_radio_button, { label: "underline" }, {
393
+ vue.createVNode(_component_el_radio_button, { value: "underline" }, {
393
394
  default: vue.withCtx(() => [
394
395
  vue.createVNode(_component_dk_icon, {
395
396
  icon: "radix-icons:underline",
@@ -399,7 +400,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
399
400
  _: 1
400
401
  /* STABLE */
401
402
  }),
402
- vue.createVNode(_component_el_radio_button, { label: "line-through" }, {
403
+ vue.createVNode(_component_el_radio_button, { value: "line-through" }, {
403
404
  default: vue.withCtx(() => [
404
405
  vue.createVNode(_component_dk_icon, {
405
406
  icon: "radix-icons:strikethrough",
@@ -409,7 +410,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
409
410
  _: 1
410
411
  /* STABLE */
411
412
  }),
412
- vue.createVNode(_component_el_radio_button, { label: "wavy underline" }, {
413
+ vue.createVNode(_component_el_radio_button, { value: "wavy underline" }, {
413
414
  default: vue.withCtx(() => [
414
415
  vue.createVNode(_component_dk_icon, {
415
416
  icon: "mdi:format-underline-wavy",