@vipl520/dk-ui 1.0.41 → 1.0.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. package/dist/attributes.json +23 -3
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +3634 -12985
  4. package/dist/index.min.js +4 -13
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +4 -13
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +785 -10135
  9. package/dist/tags.json +7 -2
  10. package/dist/web-types.json +71 -12
  11. package/es/animate-select/src/animate-select.vue2.mjs +5 -1
  12. package/es/animate-select/src/animate-select.vue2.mjs.map +1 -1
  13. package/es/api/attachment.mjs.map +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-dialog/index.d.ts +9 -0
  17. package/es/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
  18. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +3 -2
  19. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
  20. package/es/attachment-dialog/src/props.d.ts +4 -0
  21. package/es/attachment-dialog/src/props.mjs +4 -0
  22. package/es/attachment-dialog/src/props.mjs.map +1 -1
  23. package/es/audio-list-input/src/audio-list-input.vue2.mjs.map +1 -1
  24. package/es/box-size-input/src/box-size-input.vue2.mjs +60 -59
  25. package/es/box-size-input/src/box-size-input.vue2.mjs.map +1 -1
  26. package/es/box-size-input/style/index.css +1 -1
  27. package/es/box-size-input/style/index.scss +11 -4
  28. package/es/dialog/src/dialog.vue2.mjs +3 -1
  29. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  30. package/es/dialog/style/index.scss +1 -0
  31. package/es/file-input/src/file-input.vue2.mjs.map +1 -1
  32. package/es/file-list-input/src/file-list-input.vue2.mjs.map +1 -1
  33. package/es/file-list-input/style/index.css +1 -1
  34. package/es/file-list-input/style/index.scss +20 -16
  35. package/es/form/src/form.vue2.mjs.map +1 -1
  36. package/es/group/src/group.vue2.mjs +5 -13
  37. package/es/group/src/group.vue2.mjs.map +1 -1
  38. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  39. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -1
  40. package/es/icon/src/icon.vue2.mjs.map +1 -1
  41. package/es/icon-input/src/icon-content.vue2.mjs +1 -1
  42. package/es/icon-input/src/icon-content.vue2.mjs.map +1 -1
  43. package/es/icon-input/src/icon-input.vue2.mjs.map +1 -1
  44. package/es/image-list-input/src/image-list-input.vue2.mjs.map +1 -1
  45. package/es/index.mjs +4 -9
  46. package/es/index.mjs.map +1 -1
  47. package/es/page-diy/index.mjs +0 -2
  48. package/es/page-diy/index.mjs.map +1 -1
  49. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
  50. package/es/page-diy/src/components/DragBox.vue.mjs +1 -1
  51. package/es/page-diy/src/components/DragBox.vue.mjs.map +1 -1
  52. package/es/page-diy/src/components/DragTool.vue.mjs +5 -1
  53. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  54. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  55. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +11 -9
  56. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -1
  57. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  58. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs +9 -1
  59. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs.map +1 -1
  60. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs +3 -1
  61. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs.map +1 -1
  62. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +36 -6
  63. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  64. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +6 -2
  65. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -1
  66. package/es/page-diy/src/config/rule/min/common/index.mjs +8 -1
  67. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  68. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs +3 -1
  69. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -1
  70. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -1
  71. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs +7 -1
  72. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -1
  73. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs +9 -3
  74. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -1
  75. package/es/page-diy/src/page-diy.vue.mjs +1 -2
  76. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  77. package/es/page-diy/src/utils/eventData.mjs.map +1 -1
  78. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +23 -6
  79. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -1
  80. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  81. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  82. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -1
  83. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -1
  84. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +3 -1
  85. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -1
  86. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -1
  87. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -1
  88. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -1
  89. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -1
  90. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -1
  91. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -1
  92. package/es/page-diy/style/dk-page-diy.css +1 -1
  93. package/es/page-diy/style/dk-page-diy.scss +1 -1
  94. package/es/page-diy/style/index.css +1 -1
  95. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  96. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue2.mjs.map +1 -1
  97. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs +5 -2
  98. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs.map +1 -1
  99. package/es/poster-input/src/component/views/DkPosterViewName.vue2.mjs.map +1 -1
  100. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue2.mjs.map +1 -1
  101. package/es/poster-input/src/component/views/DkPosterViewText.vue2.mjs.map +1 -1
  102. package/es/poster-input/src/component/views/quick-action.vue2.mjs.map +1 -1
  103. package/es/poster-input/src/poster-input.vue2.mjs.map +1 -1
  104. package/es/poster-input/style/index.scss +4 -2
  105. package/es/select/src/select.vue2.mjs +9 -1
  106. package/es/select/src/select.vue2.mjs.map +1 -1
  107. package/es/style-animation-input/src/props.mjs.map +1 -1
  108. package/es/style-animation-input/src/style-animation-input.vue2.mjs +1 -1
  109. package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -1
  110. package/es/style-background-input/index.d.ts +2 -1
  111. package/es/style-background-input/src/style-background-input.vue.d.ts +2 -1
  112. package/es/style-background-input/src/style-background-input.vue2.mjs +2 -1
  113. package/es/style-background-input/src/style-background-input.vue2.mjs.map +1 -1
  114. package/es/style-border-input/index.d.ts +2 -1
  115. package/es/style-border-input/src/style-border-input.vue.d.ts +2 -1
  116. package/es/style-border-input/src/style-border-input.vue2.mjs +56 -39
  117. package/es/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
  118. package/es/style-border-input/style/index.css +1 -1
  119. package/es/style-box-input/index.d.ts +2 -1
  120. package/es/style-box-input/src/style-box-input.vue.d.ts +2 -1
  121. package/es/style-box-input/src/style-box-input.vue2.mjs +4 -7
  122. package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
  123. package/es/style-font-input/index.d.ts +2 -1
  124. package/es/style-font-input/src/style-font-input.vue.d.ts +2 -1
  125. package/es/style-font-input/src/style-font-input.vue2.mjs +10 -27
  126. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  127. package/es/style-input/src/style-input.vue2.mjs +10 -22
  128. package/es/style-input/src/style-input.vue2.mjs.map +1 -1
  129. package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
  130. package/es/style-position-input/src/style-position-input.vue2.mjs +4 -1
  131. package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
  132. package/es/style-shadow-input/index.d.ts +2 -1
  133. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs +138 -153
  134. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs.map +1 -1
  135. package/es/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
  136. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +2 -1
  137. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
  138. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  139. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  140. package/es/table/src/components/RecycleDialog.vue2.mjs +3 -1
  141. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  142. package/es/table/src/components/header.vue2.mjs +17 -3
  143. package/es/table/src/components/header.vue2.mjs.map +1 -1
  144. package/es/table/src/props.mjs +11 -1
  145. package/es/table/src/props.mjs.map +1 -1
  146. package/es/table/src/table.vue2.mjs +13 -3
  147. package/es/table/src/table.vue2.mjs.map +1 -1
  148. package/es/table/utils/dkTable.mjs +32 -11
  149. package/es/table/utils/dkTable.mjs.map +1 -1
  150. package/es/table/utils/dkTableApi.mjs.map +1 -1
  151. package/es/tiny-editor/src/tiny-editor.vue2.mjs +4 -2
  152. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  153. package/es/tiny-editor/style/index.css +1 -1
  154. package/es/tiny-editor/style/index.scss +6 -0
  155. package/es/video-list-input/src/video-list-input.vue2.mjs.map +1 -1
  156. package/lib/animate-select/src/animate-select.vue2.js +5 -1
  157. package/lib/animate-select/src/animate-select.vue2.js.map +1 -1
  158. package/lib/api/attachment.js.map +1 -1
  159. package/lib/attachment/src/attachment.vue2.js +7 -1
  160. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  161. package/lib/attachment-dialog/index.d.ts +9 -0
  162. package/lib/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
  163. package/lib/attachment-dialog/src/attachment-dialog.vue2.js +3 -2
  164. package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
  165. package/lib/attachment-dialog/src/props.d.ts +4 -0
  166. package/lib/attachment-dialog/src/props.js +4 -0
  167. package/lib/attachment-dialog/src/props.js.map +1 -1
  168. package/lib/audio-list-input/src/audio-list-input.vue2.js.map +1 -1
  169. package/lib/box-size-input/src/box-size-input.vue2.js +59 -58
  170. package/lib/box-size-input/src/box-size-input.vue2.js.map +1 -1
  171. package/lib/box-size-input/style/index.css +1 -1
  172. package/lib/box-size-input/style/index.scss +11 -4
  173. package/lib/dialog/src/dialog.vue2.js +3 -1
  174. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  175. package/lib/dialog/style/index.scss +1 -0
  176. package/lib/file-input/src/file-input.vue2.js.map +1 -1
  177. package/lib/file-list-input/src/file-list-input.vue2.js.map +1 -1
  178. package/lib/file-list-input/style/index.css +1 -1
  179. package/lib/file-list-input/style/index.scss +20 -16
  180. package/lib/form/src/form.vue2.js.map +1 -1
  181. package/lib/group/src/group.vue2.js +4 -12
  182. package/lib/group/src/group.vue2.js.map +1 -1
  183. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  184. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -1
  185. package/lib/icon/src/icon.vue2.js.map +1 -1
  186. package/lib/icon-input/src/icon-content.vue2.js +1 -1
  187. package/lib/icon-input/src/icon-content.vue2.js.map +1 -1
  188. package/lib/icon-input/src/icon-input.vue2.js.map +1 -1
  189. package/lib/image-list-input/src/image-list-input.vue2.js.map +1 -1
  190. package/lib/index.js +4 -9
  191. package/lib/index.js.map +1 -1
  192. package/lib/page-diy/index.js +0 -2
  193. package/lib/page-diy/index.js.map +1 -1
  194. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
  195. package/lib/page-diy/src/components/DragBox.vue.js +1 -1
  196. package/lib/page-diy/src/components/DragBox.vue.js.map +1 -1
  197. package/lib/page-diy/src/components/DragTool.vue.js +5 -1
  198. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  199. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  200. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +11 -9
  201. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -1
  202. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  203. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js +9 -1
  204. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js.map +1 -1
  205. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js +3 -1
  206. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js.map +1 -1
  207. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +36 -6
  208. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  209. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +6 -2
  210. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -1
  211. package/lib/page-diy/src/config/rule/min/common/index.js +8 -1
  212. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  213. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js +3 -1
  214. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -1
  215. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -1
  216. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js +7 -1
  217. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -1
  218. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js +9 -3
  219. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -1
  220. package/lib/page-diy/src/page-diy.vue.js +1 -2
  221. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  222. package/lib/page-diy/src/utils/eventData.js.map +1 -1
  223. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +23 -6
  224. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -1
  225. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  226. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  227. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -1
  228. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -1
  229. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +3 -1
  230. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -1
  231. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -1
  232. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -1
  233. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -1
  234. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -1
  235. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -1
  236. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -1
  237. package/lib/page-diy/style/dk-page-diy.css +1 -1
  238. package/lib/page-diy/style/dk-page-diy.scss +1 -1
  239. package/lib/page-diy/style/index.css +1 -1
  240. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  241. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue2.js.map +1 -1
  242. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js +5 -2
  243. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js.map +1 -1
  244. package/lib/poster-input/src/component/views/DkPosterViewName.vue2.js.map +1 -1
  245. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue2.js.map +1 -1
  246. package/lib/poster-input/src/component/views/DkPosterViewText.vue2.js.map +1 -1
  247. package/lib/poster-input/src/component/views/quick-action.vue2.js.map +1 -1
  248. package/lib/poster-input/src/poster-input.vue2.js.map +1 -1
  249. package/lib/poster-input/style/index.scss +4 -2
  250. package/lib/select/src/select.vue2.js +9 -1
  251. package/lib/select/src/select.vue2.js.map +1 -1
  252. package/lib/style-animation-input/src/props.js.map +1 -1
  253. package/lib/style-animation-input/src/style-animation-input.vue2.js +1 -1
  254. package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -1
  255. package/lib/style-background-input/index.d.ts +2 -1
  256. package/lib/style-background-input/src/style-background-input.vue.d.ts +2 -1
  257. package/lib/style-background-input/src/style-background-input.vue2.js +2 -1
  258. package/lib/style-background-input/src/style-background-input.vue2.js.map +1 -1
  259. package/lib/style-border-input/index.d.ts +2 -1
  260. package/lib/style-border-input/src/style-border-input.vue.d.ts +2 -1
  261. package/lib/style-border-input/src/style-border-input.vue2.js +56 -39
  262. package/lib/style-border-input/src/style-border-input.vue2.js.map +1 -1
  263. package/lib/style-border-input/style/index.css +1 -1
  264. package/lib/style-box-input/index.d.ts +2 -1
  265. package/lib/style-box-input/src/style-box-input.vue.d.ts +2 -1
  266. package/lib/style-box-input/src/style-box-input.vue2.js +4 -7
  267. package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
  268. package/lib/style-font-input/index.d.ts +2 -1
  269. package/lib/style-font-input/src/style-font-input.vue.d.ts +2 -1
  270. package/lib/style-font-input/src/style-font-input.vue2.js +10 -27
  271. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  272. package/lib/style-input/src/style-input.vue2.js +9 -21
  273. package/lib/style-input/src/style-input.vue2.js.map +1 -1
  274. package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
  275. package/lib/style-position-input/src/style-position-input.vue2.js +4 -1
  276. package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
  277. package/lib/style-shadow-input/index.d.ts +2 -1
  278. package/lib/style-shadow-input/src/style-shadow-content.vue2.js +138 -153
  279. package/lib/style-shadow-input/src/style-shadow-content.vue2.js.map +1 -1
  280. package/lib/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
  281. package/lib/style-shadow-input/src/style-shadow-input.vue2.js +2 -1
  282. package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
  283. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  284. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  285. package/lib/table/src/components/RecycleDialog.vue2.js +3 -1
  286. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  287. package/lib/table/src/components/header.vue2.js +17 -3
  288. package/lib/table/src/components/header.vue2.js.map +1 -1
  289. package/lib/table/src/props.js +11 -1
  290. package/lib/table/src/props.js.map +1 -1
  291. package/lib/table/src/table.vue2.js +13 -3
  292. package/lib/table/src/table.vue2.js.map +1 -1
  293. package/lib/table/utils/dkTable.js +32 -11
  294. package/lib/table/utils/dkTable.js.map +1 -1
  295. package/lib/table/utils/dkTableApi.js.map +1 -1
  296. package/lib/tiny-editor/src/tiny-editor.vue2.js +4 -2
  297. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  298. package/lib/tiny-editor/style/index.css +1 -1
  299. package/lib/tiny-editor/style/index.scss +6 -0
  300. package/lib/video-list-input/src/video-list-input.vue2.js.map +1 -1
  301. package/package.json +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"quick-action.vue2.js","sources":["../../../../../src/poster-input/src/component/views/quick-action.vue"],"sourcesContent":["<template>\n <el-form-item label=\"快捷操作\">\n <el-dropdown>\n <el-button size=\"small\" type=\"primary\">\n 居中\n <dk-icon icon=\"ArrowDown\"></dk-icon>\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item @click=\"handleAction('top-down-center')\">上下</el-dropdown-item>\n <el-dropdown-item @click=\"handleAction('left-right-center')\">左右</el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-dropdown class=\"m-l-5px\">\n <el-button size=\"small\" type=\"primary\">\n 排序\n <dk-icon icon=\"ArrowDown\"></dk-icon>\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item @click=\"handleAction('move-one-top')\">移动到上一层</el-dropdown-item>\n <el-dropdown-item @click=\"handleAction('move-one-down')\">移动到下一层</el-dropdown-item>\n <el-dropdown-item @click=\"handleAction('move-top')\">移动到最顶层</el-dropdown-item>\n <el-dropdown-item @click=\"handleAction('move-down')\">移动到最底层</el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-button class=\"m-l-5px\" type=\"danger\" size=\"small\" @click=\"handleAction('del')\">删除</el-button>\n </el-form-item>\n</template>\n<script setup lang=\"ts\">\nimport { inject, ref } from 'vue'\nconst props = defineProps({\n index: {\n default: 0,\n type: Number,\n },\n})\nconst posterData: any = inject('posterData')\nconst _index = ref(props.index)\n\nconst handleAction = (type = '') => {\n const index = props.index\n let views = posterData.views\n const maxIndex = views.length - 1\n switch (type) {\n case 'move-one-top':\n if (props.index >= maxIndex) {\n return false\n }\n views = swapItems(views, index, index + 1)\n _index.value = index + 1\n break\n case 'move-one-down':\n if (props.index <= 0) {\n return false\n }\n views = swapItems(views, index, index - 1)\n _index.value = index - 1\n break\n case 'move-top':\n if (index >= maxIndex) {\n return false\n }\n views = swapItems(views, index, maxIndex)\n _index.value = maxIndex\n break\n case 'move-down':\n if (index <= 0) {\n return false\n }\n views = swapItems(views, index, 0)\n _index.value = 0\n break\n case 'del':\n views.splice(index, 1)\n break\n case 'top-down-center':\n views[index].css.top = posterData.height / 2 - views[index].css.height / 2\n break\n case 'left-right-center':\n views[index].css.left = posterData.width / 2 - views[index].css.width / 2\n break\n }\n}\n\nconst swapItems = (arr: any, index1: any, index2: any) => {\n arr[index1] = arr.splice(index2, 1, arr[index1])[0]\n return arr\n}\n</script>\n"],"names":["inject","ref"],"mappings":";;;;;;;;;;;;;;;;AAuCA,IAAM,MAAA,UAAA,GAAkBA,WAAO,YAAY,CAAA,CAAA;AAC3C,IAAM,MAAA,MAAA,GAASC,OAAI,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AAE9B,IAAM,MAAA,YAAA,GAAe,CAAC,IAAA,GAAO,EAAO,KAAA;AAClC,MAAA,MAAM,QAAQ,KAAM,CAAA,KAAA,CAAA;AACpB,MAAA,IAAI,QAAQ,UAAW,CAAA,KAAA,CAAA;AACvB,MAAM,MAAA,QAAA,GAAW,MAAM,MAAS,GAAA,CAAA,CAAA;AAChC,MAAA,QAAQ,IAAM;AAAA,QACZ,KAAK,cAAA;AACH,UAAI,IAAA,KAAA,CAAM,SAAS,QAAU,EAAA;AAC3B,YAAO,OAAA,KAAA,CAAA;AAAA,WACT;AACA,UAAA,KAAA,GAAQ,SAAU,CAAA,KAAA,EAAO,KAAO,EAAA,KAAA,GAAQ,CAAC,CAAA,CAAA;AACzC,UAAA,MAAA,CAAO,QAAQ,KAAQ,GAAA,CAAA,CAAA;AACvB,UAAA,MAAA;AAAA,QACF,KAAK,eAAA;AACH,UAAI,IAAA,KAAA,CAAM,SAAS,CAAG,EAAA;AACpB,YAAO,OAAA,KAAA,CAAA;AAAA,WACT;AACA,UAAA,KAAA,GAAQ,SAAU,CAAA,KAAA,EAAO,KAAO,EAAA,KAAA,GAAQ,CAAC,CAAA,CAAA;AACzC,UAAA,MAAA,CAAO,QAAQ,KAAQ,GAAA,CAAA,CAAA;AACvB,UAAA,MAAA;AAAA,QACF,KAAK,UAAA;AACH,UAAA,IAAI,SAAS,QAAU,EAAA;AACrB,YAAO,OAAA,KAAA,CAAA;AAAA,WACT;AACA,UAAQ,KAAA,GAAA,SAAA,CAAU,KAAO,EAAA,KAAA,EAAO,QAAQ,CAAA,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"quick-action.vue2.js","sources":["../../../../../src/poster-input/src/component/views/quick-action.vue"],"sourcesContent":["<template>\n <el-form-item label=\"快捷操作\">\n <el-dropdown>\n <el-button size=\"small\" type=\"primary\">\n 居中\n <dk-icon icon=\"ArrowDown\"></dk-icon>\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item @click=\"handleAction('top-down-center')\"\n >上下</el-dropdown-item\n >\n <el-dropdown-item @click=\"handleAction('left-right-center')\"\n >左右</el-dropdown-item\n >\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-dropdown class=\"m-l-5px\">\n <el-button size=\"small\" type=\"primary\">\n 排序\n <dk-icon icon=\"ArrowDown\"></dk-icon>\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item @click=\"handleAction('move-one-top')\"\n >移动到上一层</el-dropdown-item\n >\n <el-dropdown-item @click=\"handleAction('move-one-down')\"\n >移动到下一层</el-dropdown-item\n >\n <el-dropdown-item @click=\"handleAction('move-top')\"\n >移动到最顶层</el-dropdown-item\n >\n <el-dropdown-item @click=\"handleAction('move-down')\"\n >移动到最底层</el-dropdown-item\n >\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-button\n class=\"m-l-5px\"\n type=\"danger\"\n size=\"small\"\n @click=\"handleAction('del')\"\n >删除</el-button\n >\n </el-form-item>\n</template>\n<script setup lang=\"ts\">\nimport { inject, ref } from 'vue'\nconst props = defineProps({\n index: {\n default: 0,\n type: Number,\n },\n})\nconst posterData: any = inject('posterData')\nconst _index = ref(props.index)\n\nconst handleAction = (type = '') => {\n const index = props.index\n let views = posterData.views\n const maxIndex = views.length - 1\n switch (type) {\n case 'move-one-top':\n if (props.index >= maxIndex) {\n return false\n }\n views = swapItems(views, index, index + 1)\n _index.value = index + 1\n break\n case 'move-one-down':\n if (props.index <= 0) {\n return false\n }\n views = swapItems(views, index, index - 1)\n _index.value = index - 1\n break\n case 'move-top':\n if (index >= maxIndex) {\n return false\n }\n views = swapItems(views, index, maxIndex)\n _index.value = maxIndex\n break\n case 'move-down':\n if (index <= 0) {\n return false\n }\n views = swapItems(views, index, 0)\n _index.value = 0\n break\n case 'del':\n views.splice(index, 1)\n break\n case 'top-down-center':\n views[index].css.top = posterData.height / 2 - views[index].css.height / 2\n break\n case 'left-right-center':\n views[index].css.left = posterData.width / 2 - views[index].css.width / 2\n break\n }\n}\n\nconst swapItems = (arr: any, index1: any, index2: any) => {\n arr[index1] = arr.splice(index2, 1, arr[index1])[0]\n return arr\n}\n</script>\n"],"names":["inject","ref"],"mappings":";;;;;;;;;;;;;;;;AAyDA,IAAM,MAAA,UAAA,GAAkBA,WAAO,YAAY,CAAA,CAAA;AAC3C,IAAM,MAAA,MAAA,GAASC,OAAI,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AAE9B,IAAM,MAAA,YAAA,GAAe,CAAC,IAAA,GAAO,EAAO,KAAA;AAClC,MAAA,MAAM,QAAQ,KAAM,CAAA,KAAA,CAAA;AACpB,MAAA,IAAI,QAAQ,UAAW,CAAA,KAAA,CAAA;AACvB,MAAM,MAAA,QAAA,GAAW,MAAM,MAAS,GAAA,CAAA,CAAA;AAChC,MAAA,QAAQ,IAAM;AAAA,QACZ,KAAK,cAAA;AACH,UAAI,IAAA,KAAA,CAAM,SAAS,QAAU,EAAA;AAC3B,YAAO,OAAA,KAAA,CAAA;AAAA,WACT;AACA,UAAA,KAAA,GAAQ,SAAU,CAAA,KAAA,EAAO,KAAO,EAAA,KAAA,GAAQ,CAAC,CAAA,CAAA;AACzC,UAAA,MAAA,CAAO,QAAQ,KAAQ,GAAA,CAAA,CAAA;AACvB,UAAA,MAAA;AAAA,QACF,KAAK,eAAA;AACH,UAAI,IAAA,KAAA,CAAM,SAAS,CAAG,EAAA;AACpB,YAAO,OAAA,KAAA,CAAA;AAAA,WACT;AACA,UAAA,KAAA,GAAQ,SA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Aa,MAAgB,KAAA;AACxD,MAAI,GAAA,CAAA,MAAM,CAAI,GAAA,GAAA,CAAI,MAAO,CAAA,MAAA,EAAQ,GAAG,GAAI,CAAA,MAAM,CAAC,CAAA,CAAE,CAAC,CAAA,CAAA;AAClD,MAAO,OAAA,GAAA,CAAA;AAAA,KACT,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"poster-input.vue2.js","sources":["../../../src/poster-input/src/poster-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterInput',\n});\n</script>\n<template>\n <div class=\"dk-poster-input\">\n <el-button @click=\"showPoster()\">{{ input }}</el-button>\n <dk-dialog v-model=\"show\" width=\"1200px\" append-to-body title=\"自定义海报\" top=\"10vh\">\n <dk-poster ref=\"posterRef\" v-model=\"posterData\" :views=\"props.views\" @submit=\"success\" />\n </dk-dialog>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { posterInputProps } from './props'\nimport DkPoster from './component/poster.vue'\nimport { ref, computed } from 'vue'\n\nconst props = defineProps(posterInputProps)\nconst show = ref(false)\nconst posterData: any = ref({\n background: '',\n width: 320,\n height: 500,\n borderRadius: 0,\n views: [],\n})\n\nconst posterRef = ref()\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\n\nconst showPoster = () => {\n show.value = true\n posterRef.value?.checkParentSize()\n}\n\nconst initPosterData = () => {\n // posterData.value.width = props.modelValue.width || 320\n // posterData.value.height = props.modelValue.height || 500\n // posterData.value.borderRadius = props.modelValue.borderRadius || 0\n // posterData.value.views = props.modelValue.views || []\n // posterData.value.background = props.modelValue.background || ''\n posterData.value = props.modelValue\n emitData()\n}\n\nconst emitData = () => {\n emit('update:modelValue', posterData.value)\n emit('input', posterData.value)\n emit('change', posterData.value)\n}\n\nconst input = computed(() => {\n return (\n '宽高:' +\n posterData.value.width +\n 'X' +\n posterData.value.height +\n ',' +\n posterData.value.views.length +\n '个元素,' +\n (posterData.value.background ? '有' : '无') +\n '背景图'\n )\n})\n\nconst success = () => {\n show.value = false\n emitData()\n}\n\nconst onClick = () => {\n show.value = true\n}\n\ninitPosterData()\n</script>\n"],"names":["__MACROS_defineComponent","ref","computed"],"mappings":";;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,eAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAiBD,IAAM,MAAA,IAAA,GAAOC,QAAI,KAAK,CAAA,CAAA;AACtB,IAAA,MAAM,aAAkBA,OAAI,CAAA;AAAA,MAC1B,UAAY,EAAA,EAAA;AAAA,MACZ,KAAO,EAAA,GAAA;AAAA,MACP,MAAQ,EAAA,GAAA;AAAA,MACR,YAAc,EAAA,CAAA;AAAA,MACd,OAAO,EAAC;AAAA,KACT,CAAA,CAAA;AAED,IAAA,MAAM,YAAYA,OAAI,EAAA,CAAA;AAItB,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,IAAA,CAAK,KAAQ,GAAA,IAAA,CAAA;AACb,MAAA,SAAA,CAAU,OAAO,eAAgB,EAAA,CAAA;AAAA,KACnC,CAAA;AAEA,IAAA,MAAM,iBAAiB,MAAM;AAM3B,MAAA,UAAA,CAAW,QAAQ,KAAM,CAAA,UAAA,CAAA;AACzB,MAAS,QAAA,EAAA,CAAA;AAAA,KACX,CAAA;AAEA,IAAA,MAAM,WAAW,MAAM;AACrB,MAAK,IAAA,CAAA,mBAAA,EAAqB,WAAW,KAAK,CAAA,CAAA;AAC1C,MAAK,IAAA,CAAA,OAAA,EAAS,WAAW,KAAK,CAAA,CAAA;AAC9B,MAAK,IAAA,CAAA,QAAA,EAAU,WAAW,KAAK,CAAA,CAAA;AAAA,KACjC,CAAA;AAEA,IAAM,MAAA,KAAA,GAAQC,aAAS,MAAM;AAC3B,MAAA,OACE,uBACA,UAAW,CAAA,KAAA,CAAM,QACjB,GACA,GAAA,UAAA,CAAW,MAAM,MACjB,GAAA,QAAA,GACA,UAAW,CAAA,KAAA,CAAM,MAAM,MACvB,GAAA,0BAAA,IACC,WAAW,KAAM,CAAA,UAAA,GAAa,WAAM,QACrC,CAAA,GAAA,oBAAA,CAAA;AAAA,KAEH,CAAA,CAAA;AAED,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAA,CAAK,KAAQ,GAAA,KAAA,CAAA;AACb,MAAS,QAAA,EAAA,CAAA;AAAA,KACX,CAAA;AAEA,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAA,CAAK,KAAQ,GAAA,IAAA,CAAA;AAAA,KACf,CAAA;AAEA,IAAe,cAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"poster-input.vue2.js","sources":["../../../src/poster-input/src/poster-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterInput',\n});\n</script>\n<template>\n <div class=\"dk-poster-input\">\n <el-button @click=\"showPoster()\">{{ input }}</el-button>\n <dk-dialog\n v-model=\"show\"\n width=\"1200px\"\n append-to-body\n title=\"自定义海报\"\n top=\"10vh\"\n >\n <dk-poster\n ref=\"posterRef\"\n v-model=\"posterData\"\n :views=\"props.views\"\n @submit=\"success\"\n />\n </dk-dialog>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { posterInputProps } from './props'\nimport DkPoster from './component/poster.vue'\nimport { ref, computed } from 'vue'\n\nconst props = defineProps(posterInputProps)\nconst show = ref(false)\nconst posterData: any = ref({\n background: '',\n width: 320,\n height: 500,\n borderRadius: 0,\n views: [],\n})\n\nconst posterRef = ref()\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\n\nconst showPoster = () => {\n show.value = true\n posterRef.value?.checkParentSize()\n}\n\nconst initPosterData = () => {\n // posterData.value.width = props.modelValue.width || 320\n // posterData.value.height = props.modelValue.height || 500\n // posterData.value.borderRadius = props.modelValue.borderRadius || 0\n // posterData.value.views = props.modelValue.views || []\n // posterData.value.background = props.modelValue.background || ''\n posterData.value = props.modelValue\n emitData()\n}\n\nconst emitData = () => {\n emit('update:modelValue', posterData.value)\n emit('input', posterData.value)\n emit('change', posterData.value)\n}\n\nconst input = computed(() => {\n return (\n '宽高:' +\n posterData.value.width +\n 'X' +\n posterData.value.height +\n ',' +\n posterData.value.views.length +\n '个元素,' +\n (posterData.value.background ? '有' : '无') +\n '背景图'\n )\n})\n\nconst success = () => {\n show.value = false\n emitData()\n}\n\nconst onClick = () => {\n show.value = true\n}\n\ninitPosterData()\n</script>\n"],"names":["__MACROS_defineComponent","ref","computed"],"mappings":";;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,eAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA4BD,IAAM,MAAA,IAAA,GAAOC,QAAI,KAAK,CAAA,CAAA;AACtB,IAAA,MAAM,aAAkBA,OAAI,CAAA;AAAA,MAC1B,UAAY,EAAA,EAAA;AAAA,MACZ,KAAO,EAAA,GAAA;AAAA,MACP,MAAQ,EAAA,GAAA;AAAA,MACR,YAAc,EAAA,CAAA;AAAA,MACd,OAAO,EAAC;AAAA,KACT,CAAA,CAAA;AAED,IAAA,MAAM,YAAYA,OAAI,EAAA,CAAA;AAItB,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,IAAA,CAAK,KAAQ,GAAA,IAAA,CAAA;AACb,MAAA,SAAA,CAAU,OAAO,eAAgB,EAAA,CAAA;AAAA,KACnC,CAAA;AAEA,IAAA,MAAM,iBAAiB,MAAM;AAM3B,MAAA,UAAA,CAAW,QAAQ,KAAM,CAAA,UAAA,CAAA;AACzB,MAAS,QAAA,EAAA,CAAA;AAAA,KACX,CAAA;AAEA,IAAA,MAAM,WAAW,MAAM;AACrB,MAAK,IAAA,CAAA,mBAAA,EAAqB,WAAW,KAAK,CAAA,CAAA;AAC1C,MAAK,IAAA,CAAA,OAAA,EAAS,WAAW,KAAK,CAAA,CAAA;AAC9B,MAAK,IAAA,CAAA,QAAA,EAAU,WAAW,KAAK,CAAA,CAAA;AAAA,KACjC,CAAA;AAEA,IAAM,MAAA,KAAA,GAAQC,aAAS,MAAM;AAC3B,MAAA,OACE,uBACA,UAAW,CAAA,KAAA,CAAM,QACjB,GACA,GAAA,UAAA,CAAW,MAAM,MACjB,GAAA,QAAA,GACA,UAAW,CAAA,KAAA,CAAM,MAAM,MACvB,GAAA,0BAAA,IACC,WAAW,KAAM,CAAA,UAAA,GAAa,WAAM,QACrC,CAAA,GAAA,oBAAA,CAAA;AAAA,KAEH,CAAA,CAAA;AAED,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAA,CAAK,KAAQ,GAAA,KAAA,CAAA;AACb,MAAS,QAAA,EAAA,CAAA;AAAA,KACX,CAAA;AAEA,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAA,CAAK,KAAQ,GAAA,IAAA,CAAA;AAAA,KACf,CAAA;AAEA,IAAe,cAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -32,8 +32,10 @@
32
32
 
33
33
  .poster-body {
34
34
  background:
35
- linear-gradient(-90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px) 0% 0% / 10px 10px,
36
- linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px) 0% 0% / 10px 10px;
35
+ linear-gradient(-90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px) 0% 0% /
36
+ 10px 10px,
37
+ linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px) 0% 0% / 10px
38
+ 10px;
37
39
  padding: 20px;
38
40
  padding-bottom: 50px;
39
41
  width: 600px;
@@ -12,7 +12,15 @@ const __default__ = vue.defineComponent({
12
12
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
13
  ...__default__,
14
14
  props: props.selectProps,
15
- emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "blur", "focus"],
15
+ emits: [
16
+ "update:modelValue",
17
+ "change",
18
+ "visible-change",
19
+ "remove-tag",
20
+ "clear",
21
+ "blur",
22
+ "focus"
23
+ ],
16
24
  setup(__props, { emit }) {
17
25
  const props = __props;
18
26
  const internalValue = vue.ref(props.modelValue);
@@ -1 +1 @@
1
- {"version":3,"file":"select.vue2.js","sources":["../../../src/select/src/select.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkSelect',\n});\n</script>\n<template>\n <el-select-v2\n v-model=\"internalValue\"\n class=\"dk-select\"\n v-bind=\"{ ...props }\"\n :remote-method=\"remoteMethod\"\n remote\n placeholder=\"请选择\"\n :options=\"internalOptions\"\n style=\"width: 100%\"\n @change=\"handleChange\"\n @visible-change=\"handleVisibleChange\"\n @remove-tag=\"handleRemoveTag\"\n @clear=\"handleClear\"\n @blur=\"handleBlur\"\n @focus=\"handleFocus\"\n >\n <template v-for=\"(slot, idx) in $slots\" :key=\"idx\" #[idx]=\"scope\">\n <slot :name=\"idx\" v-bind=\"scope\"></slot>\n </template>\n </el-select-v2>\n</template>\n\n<script lang=\"ts\" setup>\nimport { selectProps } from './props'\nimport { watch, ref } from 'vue'\nimport { request } from '@vipl520/utils'\n\nconst props = defineProps(selectProps)\nconst internalValue = ref(props.modelValue) // 使用 ref 以便响应式更新\nconst internalOptions = ref(props.options || {})\nconst emit = defineEmits(['update:modelValue', 'change', 'visible-change', 'remove-tag', 'clear', 'blur', 'focus'])\n// 监听内部值的变化并向外部发出事件\nwatch(internalValue, (newValue) => {\n console.log('new', newValue)\n emit('update:modelValue', newValue)\n})\nconst remoteMethod = (query?: string) => {\n if (!props.remoteUrl) return\n request(\n {\n url: props.remoteUrl,\n method: 'post',\n data: { query, select: 1 },\n },\n {\n code_success_show: false,\n }\n ).then((res) => {\n internalOptions.value = res.data\n })\n}\n\n// 事件处理函数\nconst handleChange = (value: any) => emit('change', value)\nconst handleVisibleChange = (value: boolean) => emit('visible-change', value)\nconst handleRemoveTag = (value: any) => emit('remove-tag', value)\nconst handleClear = () => emit('clear')\nconst handleBlur = (event: FocusEvent) => emit('blur', event)\nconst handleFocus = (event: FocusEvent) => emit('focus', event)\n\nremoteMethod()\n</script>\n"],"names":["__MACROS_defineComponent","ref","watch","request"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA+BD,IAAM,MAAA,aAAA,GAAgBC,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAC1C,IAAA,MAAM,eAAkB,GAAAA,OAAA,CAAI,KAAM,CAAA,OAAA,IAAW,EAAE,CAAA,CAAA;AAG/C,IAAMC,SAAA,CAAA,aAAA,EAAe,CAAC,QAAa,KAAA;AACjC,MAAQ,OAAA,CAAA,GAAA,CAAI,OAAO,QAAQ,CAAA,CAAA;AAC3B,MAAA,IAAA,CAAK,qBAAqB,QAAQ,CAAA,CAAA;AAAA,KACnC,CAAA,CAAA;AACD,IAAM,MAAA,YAAA,GAAe,CAAC,KAAmB,KAAA;AACvC,MAAA,IAAI,CAAC,KAAM,CAAA,SAAA;AAAW,QAAA,OAAA;AACtB,MAAAC,aAAA;AAAA,QACE;AAAA,UACE,KAAK,KAAM,CAAA,SAAA;AAAA,UACX,MAAQ,EAAA,MAAA;AAAA,UACR,IAAM,EAAA,EAAE,KAAO,EAAA,MAAA,EAAQ,CAAE,EAAA;AAAA,SAC3B;AAAA,QACA;AAAA,UACE,iBAAmB,EAAA,KAAA;AAAA,SACrB;AAAA,OACF,CAAE,IAAK,CAAA,CAAC,GAAQ,KAAA;AACd,QAAA,eAAA,CAAgB,QAAQ,GAAI,CAAA,IAAA,CAAA;AAAA,OAC7B,CAAA,CAAA;AAAA,KACH,CAAA;AAGA,IAAA,MAAM,YAAe,GAAA,CAAC,KAAe,KAAA,IAAA,CAAK,UAAU,KAAK,CAAA,CAAA;AACzD,IAAA,MAAM,mBAAsB,GAAA,CAAC,KAAmB,KAAA,IAAA,CAAK,kBAAkB,KAAK,CAAA,CAAA;AAC5E,IAAA,MAAM,eAAkB,GAAA,CAAC,KAAe,KAAA,IAAA,CAAK,cAAc,KAAK,CAAA,CAAA;AAChE,IAAM,MAAA,WAAA,GAAc,MAAM,IAAA,CAAK,OAAO,CAAA,CAAA;AACtC,IAAA,MAAM,UAAa,GAAA,CAAC,KAAsB,KAAA,IAAA,CAAK,QAAQ,KAAK,CAAA,CAAA;AAC5D,IAAA,MAAM,WAAc,GAAA,CAAC,KAAsB,KAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAE9D,IAAa,YAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"select.vue2.js","sources":["../../../src/select/src/select.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkSelect',\n});\n</script>\n<template>\n <el-select-v2\n v-model=\"internalValue\"\n class=\"dk-select\"\n v-bind=\"{ ...props }\"\n :remote-method=\"remoteMethod\"\n remote\n placeholder=\"请选择\"\n :options=\"internalOptions\"\n style=\"width: 100%\"\n @change=\"handleChange\"\n @visible-change=\"handleVisibleChange\"\n @remove-tag=\"handleRemoveTag\"\n @clear=\"handleClear\"\n @blur=\"handleBlur\"\n @focus=\"handleFocus\"\n >\n <template v-for=\"(slot, idx) in $slots\" :key=\"idx\" #[idx]=\"scope\">\n <slot :name=\"idx\" v-bind=\"scope\"></slot>\n </template>\n </el-select-v2>\n</template>\n\n<script lang=\"ts\" setup>\nimport { selectProps } from './props'\nimport { watch, ref } from 'vue'\nimport { request } from '@vipl520/utils'\n\nconst props = defineProps(selectProps)\nconst internalValue = ref(props.modelValue) // 使用 ref 以便响应式更新\nconst internalOptions = ref(props.options || {})\nconst emit = defineEmits([\n 'update:modelValue',\n 'change',\n 'visible-change',\n 'remove-tag',\n 'clear',\n 'blur',\n 'focus',\n])\n// 监听内部值的变化并向外部发出事件\nwatch(internalValue, (newValue) => {\n console.log('new', newValue)\n emit('update:modelValue', newValue)\n})\nconst remoteMethod = (query?: string) => {\n if (!props.remoteUrl) return\n request(\n {\n url: props.remoteUrl,\n method: 'post',\n data: { query, select: 1 },\n },\n {\n code_success_show: false,\n }\n ).then((res) => {\n internalOptions.value = res.data\n })\n}\n\n// 事件处理函数\nconst handleChange = (value: any) => emit('change', value)\nconst handleVisibleChange = (value: boolean) => emit('visible-change', value)\nconst handleRemoveTag = (value: any) => emit('remove-tag', value)\nconst handleClear = () => emit('clear')\nconst handleBlur = (event: FocusEvent) => emit('blur', event)\nconst handleFocus = (event: FocusEvent) => emit('focus', event)\n\nremoteMethod()\n</script>\n"],"names":["__MACROS_defineComponent","ref","watch","request"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;AA+BD,IAAM,MAAA,aAAA,GAAgBC,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAC1C,IAAA,MAAM,eAAkB,GAAAA,OAAA,CAAI,KAAM,CAAA,OAAA,IAAW,EAAE,CAAA,CAAA;AAW/C,IAAMC,SAAA,CAAA,aAAA,EAAe,CAAC,QAAa,KAAA;AACjC,MAAQ,OAAA,CAAA,GAAA,CAAI,OAAO,QAAQ,CAAA,CAAA;AAC3B,MAAA,IAAA,CAAK,qBAAqB,QAAQ,CAAA,CAAA;AAAA,KACnC,CAAA,CAAA;AACD,IAAM,MAAA,YAAA,GAAe,CAAC,KAAmB,KAAA;AACvC,MAAA,IAAI,CAAC,KAAM,CAAA,SAAA;AAAW,QAAA,OAAA;AACtB,MAAAC,aAAA;AAAA,QACE;AAAA,UACE,KAAK,KAAM,CAAA,SAAA;AAAA,UACX,MAAQ,EAAA,MAAA;AAAA,UACR,IAAM,EAAA,EAAE,KAAO,EAAA,MAAA,EAAQ,CAAE,EAAA;AAAA,SAC3B;AAAA,QACA;AAAA,UACE,iBAAmB,EAAA,KAAA;AAAA,SACrB;AAAA,OACF,CAAE,IAAK,CAAA,CAAC,GAAQ,KAAA;AACd,QAAA,eAAA,CAAgB,QAAQ,GAAI,CAAA,IAAA,CAAA;AAAA,OAC7B,CAAA,CAAA;AAAA,KACH,CAAA;AAGA,IAAA,MAAM,YAAe,GAAA,CAAC,KAAe,KAAA,IAAA,CAAK,UAAU,KAAK,CAAA,CAAA;AACzD,IAAA,MAAM,mBAAsB,GAAA,CAAC,KAAmB,KAAA,IAAA,CAAK,kBAAkB,KAAK,CAAA,CAAA;AAC5E,IAAA,MAAM,eAAkB,GAAA,CAAC,KAAe,KAAA,IAAA,CAAK,cAAc,KAAK,CAAA,CAAA;AAChE,IAAM,MAAA,WAAA,GAAc,MAAM,IAAA,CAAK,OAAO,CAAA,CAAA;AACtC,IAAA,MAAM,UAAa,GAAA,CAAC,KAAsB,KAAA,IAAA,CAAK,QAAQ,KAAK,CAAA,CAAA;AAC5D,IAAA,MAAM,WAAc,GAAA,CAAC,KAAsB,KAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAE9D,IAAa,YAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"props.js","sources":["../../../src/style-animation-input/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const styleAnimationInputProps = {\n /**\n * 类型定义\n */\n modelValue: {\n type: Object,\n default: () => ({\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n }),\n },\n}\n\nexport type StyleAnimationInputProps = ExtractPropTypes<typeof styleAnimationInputProps>\n"],"names":[],"mappings":";;AAEO,MAAM,wBAA2B,GAAA;AAAA;AAAA;AAAA;AAAA,EAItC,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,SAAS,OAAO;AAAA,MACd,cAAgB,EAAA,IAAA;AAAA,MAChB,iBAAmB,EAAA,IAAA;AAAA,MACnB,uBAAyB,EAAA,UAAA;AAAA,KAC3B,CAAA;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"props.js","sources":["../../../src/style-animation-input/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const styleAnimationInputProps = {\n /**\n * 类型定义\n */\n modelValue: {\n type: Object,\n default: () => ({\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n }),\n },\n}\n\nexport type StyleAnimationInputProps = ExtractPropTypes<\n typeof styleAnimationInputProps\n>\n"],"names":[],"mappings":";;AAEO,MAAM,wBAA2B,GAAA;AAAA;AAAA;AAAA;AAAA,EAItC,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,SAAS,OAAO;AAAA,MACd,cAAgB,EAAA,IAAA;AAAA,MAChB,iBAAmB,EAAA,IAAA;AAAA,MACnB,uBAAyB,EAAA,UAAA;AAAA,KAC3B,CAAA;AAAA,GACF;AACF;;;;"}
@@ -23,7 +23,7 @@ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode(
23
23
  const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode(
24
24
  "p",
25
25
  { class: "form-help" },
26
- "\u5F53\u5FAA\u73AF\u6B21\u6570\u8BBE\u7F6E\u4E3A0\u7684\u65F6\u5019\uFF0C\u8868\u793A\u65E0\u9650\u5FAA\u73AF\uFF0C\u5165\u573A\u52A8\u753B\u5EFA\u8BAE\u4E3A1",
26
+ " \u5F53\u5FAA\u73AF\u6B21\u6570\u8BBE\u7F6E\u4E3A0\u7684\u65F6\u5019\uFF0C\u8868\u793A\u65E0\u9650\u5FAA\u73AF\uFF0C\u5165\u573A\u52A8\u753B\u5EFA\u8BAE\u4E3A1 ",
27
27
  -1
28
28
  /* HOISTED */
29
29
  );
@@ -1 +1 @@
1
- {"version":3,"file":"style-animation-input.vue2.js","sources":["../../../src/style-animation-input/src/style-animation-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleAnimationInput',\n});\n</script>\n<template>\n <div class=\"dk-style-animation-input\">\n <el-form-item label=\"延迟执行\">\n <el-input-number v-model=\"form.animationDelay\" :step=\"0.1\" :min=\"0\" />\n <p class=\"form-help\">设置动画页面加载完毕多少秒后执行</p>\n </el-form-item>\n <el-form-item label=\"动画时长\">\n <el-input-number v-model=\"form.animationDuration\" :step=\"0.1\" :min=\"0\" />\n <p class=\"form-help\">设置每次动画加载的动画时长</p>\n </el-form-item>\n <el-form-item label=\"循环次数\">\n <el-input-number v-model=\"form.animationIterationCount\" :min=\"0\" />\n <p class=\"form-help\">当循环次数设置为0的时候,表示无限循环,入场动画建议为1</p>\n </el-form-item>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleAnimationInputProps } from './props'\nimport { onMounted, reactive, watch } from 'vue'\n\n\n\nconst props = defineProps(styleAnimationInputProps)\n\nconst form: any = reactive({\n animationDelay: 0,\n animationDuration: 1,\n animationIterationCount: 0,\n})\nconst emit = defineEmits(['update:modelValue'])\nwatch(\n form,\n () => {\n const value: any = {}\n value.animationDelay = form.animationDelay + 's'\n value.animationDuration = form.animationDuration + 's'\n value.animationIterationCount = form.animationIterationCount == 0 ? 'infinite' : form.animationIterationCount\n emit('update:modelValue', value)\n },\n { deep: true }\n)\nconst init = () => {\n const value = props.modelValue\n form.animationDelay = parseFloat(value.animationDelay || '0s')\n form.animationDuration = parseFloat(value.animationDuration || '1')\n form.animationIterationCount = parseInt(\n (value.animationIterationCount === 'infinite' ? 0 : value.animationIterationCount) || 0\n )\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n // emit('update:modelValue', value)\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","reactive","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,uBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA2BD,IAAA,MAAM,OAAYC,YAAS,CAAA;AAAA,MACzB,cAAgB,EAAA,CAAA;AAAA,MAChB,iBAAmB,EAAA,CAAA;AAAA,MACnB,uBAAyB,EAAA,CAAA;AAAA,KAC1B,CAAA,CAAA;AAED,IAAAC,SAAA;AAAA,MACE,IAAA;AAAA,MACA,MAAM;AACJ,QAAA,MAAM,QAAa,EAAC,CAAA;AACpB,QAAM,KAAA,CAAA,cAAA,GAAiB,KAAK,cAAiB,GAAA,GAAA,CAAA;AAC7C,QAAM,KAAA,CAAA,iBAAA,GAAoB,KAAK,iBAAoB,GAAA,GAAA,CAAA;AACnD,QAAA,KAAA,CAAM,uBAA0B,GAAA,IAAA,CAAK,uBAA2B,IAAA,CAAA,GAAI,aAAa,IAAK,CAAA,uBAAA,CAAA;AACtF,QAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAAA,OACjC;AAAA,MACA,EAAE,MAAM,IAAK,EAAA;AAAA,KACf,CAAA;AACA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAA,MAAM,QAAQ,KAAM,CAAA,UAAA,CAAA;AACpB,MAAA,IAAA,CAAK,cAAiB,GAAA,UAAA,CAAW,KAAM,CAAA,cAAA,IAAkB,IAAI,CAAA,CAAA;AAC7D,MAAA,IAAA,CAAK,iBAAoB,GAAA,UAAA,CAAW,KAAM,CAAA,iBAAA,IAAqB,GAAG,CAAA,CAAA;AAClE,MAAA,IAAA,CAAK,uBAA0B,GAAA,QAAA;AAAA,QAAA,CAC5B,KAAM,CAAA,uBAAA,KAA4B,UAAa,GAAA,CAAA,GAAI,MAAM,uBAA4B,KAAA,CAAA;AAAA,OACxF,CAAA;AAAA,KACF,CAAA;AAEA,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OAEP;AAAA,KACF,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-animation-input.vue2.js","sources":["../../../src/style-animation-input/src/style-animation-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleAnimationInput',\n});\n</script>\n<template>\n <div class=\"dk-style-animation-input\">\n <el-form-item label=\"延迟执行\">\n <el-input-number v-model=\"form.animationDelay\" :step=\"0.1\" :min=\"0\" />\n <p class=\"form-help\">设置动画页面加载完毕多少秒后执行</p>\n </el-form-item>\n <el-form-item label=\"动画时长\">\n <el-input-number v-model=\"form.animationDuration\" :step=\"0.1\" :min=\"0\" />\n <p class=\"form-help\">设置每次动画加载的动画时长</p>\n </el-form-item>\n <el-form-item label=\"循环次数\">\n <el-input-number v-model=\"form.animationIterationCount\" :min=\"0\" />\n <p class=\"form-help\">\n 当循环次数设置为0的时候,表示无限循环,入场动画建议为1\n </p>\n </el-form-item>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleAnimationInputProps } from './props'\nimport { onMounted, reactive, watch } from 'vue'\n\n\n\nconst props = defineProps(styleAnimationInputProps)\n\nconst form: any = reactive({\n animationDelay: 0,\n animationDuration: 1,\n animationIterationCount: 0,\n})\nconst emit = defineEmits(['update:modelValue'])\nwatch(\n form,\n () => {\n const value: any = {}\n value.animationDelay = form.animationDelay + 's'\n value.animationDuration = form.animationDuration + 's'\n value.animationIterationCount =\n form.animationIterationCount == 0\n ? 'infinite'\n : form.animationIterationCount\n emit('update:modelValue', value)\n },\n { deep: true }\n)\nconst init = () => {\n const value = props.modelValue\n form.animationDelay = parseFloat(value.animationDelay || '0s')\n form.animationDuration = parseFloat(value.animationDuration || '1')\n form.animationIterationCount = parseInt(\n (value.animationIterationCount === 'infinite'\n ? 0\n : value.animationIterationCount) || 0\n )\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n // emit('update:modelValue', value)\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","reactive","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,uBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA6BD,IAAA,MAAM,OAAYC,YAAS,CAAA;AAAA,MACzB,cAAgB,EAAA,CAAA;AAAA,MAChB,iBAAmB,EAAA,CAAA;AAAA,MACnB,uBAAyB,EAAA,CAAA;AAAA,KAC1B,CAAA,CAAA;AAED,IAAAC,SAAA;AAAA,MACE,IAAA;AAAA,MACA,MAAM;AACJ,QAAA,MAAM,QAAa,EAAC,CAAA;AACpB,QAAM,KAAA,CAAA,cAAA,GAAiB,KAAK,cAAiB,GAAA,GAAA,CAAA;AAC7C,QAAM,KAAA,CAAA,iBAAA,GAAoB,KAAK,iBAAoB,GAAA,GAAA,CAAA;AACnD,QAAA,KAAA,CAAM,uBACJ,GAAA,IAAA,CAAK,uBAA2B,IAAA,CAAA,GAC5B,aACA,IAAK,CAAA,uBAAA,CAAA;AACX,QAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAAA,OACjC;AAAA,MACA,EAAE,MAAM,IAAK,EAAA;AAAA,KACf,CAAA;AACA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAA,MAAM,QAAQ,KAAM,CAAA,UAAA,CAAA;AACpB,MAAA,IAAA,CAAK,cAAiB,GAAA,UAAA,CAAW,KAAM,CAAA,cAAA,IAAkB,IAAI,CAAA,CAAA;AAC7D,MAAA,IAAA,CAAK,iBAAoB,GAAA,UAAA,CAAW,KAAM,CAAA,iBAAA,IAAqB,GAAG,CAAA,CAAA;AAClE,MAAA,IAAA,CAAK,uBAA0B,GAAA,QAAA;AAAA,QAAA,CAC5B,KAAM,CAAA,uBAAA,KAA4B,UAC/B,GAAA,CAAA,GACA,MAAM,uBAA4B,KAAA,CAAA;AAAA,OACxC,CAAA;AAAA,KACF,CAAA;AAEA,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OAEP;AAAA,KACF,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,7 +6,7 @@ export declare const StyleBackgroundInput: import("@vipl520/utils").WithInstall<
6
6
  backgroundColor: string;
7
7
  };
8
8
  };
9
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ }, {}, 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<{
10
10
  modelValue: {
11
11
  type: ObjectConstructor;
12
12
  default: () => {
@@ -16,6 +16,7 @@ export declare const StyleBackgroundInput: import("@vipl520/utils").WithInstall<
16
16
  };
17
17
  }>> & {
18
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
19
+ onChange?: ((...args: any[]) => any) | undefined;
19
20
  }, {
20
21
  modelValue: Record<string, any>;
21
22
  }, {}>>;
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  backgroundColor: string;
7
7
  };
8
8
  };
9
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ }, {}, 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<{
10
10
  modelValue: {
11
11
  type: ObjectConstructor;
12
12
  default: () => {
@@ -16,6 +16,7 @@ declare const _default: import("vue").DefineComponent<{
16
16
  };
17
17
  }>> & {
18
18
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
19
+ onChange?: ((...args: any[]) => any) | undefined;
19
20
  }, {
20
21
  modelValue: Record<string, any>;
21
22
  }, {}>;
@@ -12,7 +12,7 @@ const __default__ = vue.defineComponent({
12
12
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
13
  ...__default__,
14
14
  props: props.styleBackgroundInputProps,
15
- emits: ["update:modelValue"],
15
+ emits: ["update:modelValue", "change"],
16
16
  setup(__props, { emit }) {
17
17
  const props = __props;
18
18
  const form = vue.reactive({
@@ -30,6 +30,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
30
30
  value.backgroundImage = `url(${form.backgroundImage})`;
31
31
  }
32
32
  emit("update:modelValue", value);
33
+ emit("change", value);
33
34
  },
34
35
  { deep: true }
35
36
  );
@@ -1 +1 @@
1
- {"version":3,"file":"style-background-input.vue2.js","sources":["../../../src/style-background-input/src/style-background-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBackgroundInput',\n});\n</script>\n<template>\n <div class=\"dk-style-background-input\">\n <el-color-picker v-model=\"form.backgroundColor\" show-alpha />\n <dk-image-input v-model=\"form.backgroundImage\"></dk-image-input>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBackgroundInputProps } from './props'\nimport { onMounted, reactive, watch } from 'vue'\n\n\n\nconst props = defineProps(styleBackgroundInputProps)\n\nconst form = reactive({\n backgroundImage: '',\n backgroundColor: '',\n})\nconst emit = defineEmits(['update:modelValue'])\nwatch(\n form,\n () => {\n const value: any = {}\n if (form.backgroundColor) {\n value.backgroundColor = form.backgroundColor\n }\n if (form.backgroundImage) {\n value.backgroundImage = `url(${form.backgroundImage})`\n }\n emit('update:modelValue', value)\n },\n { deep: true }\n)\nconst init = () => {\n form.backgroundColor = props.modelValue.backgroundColor || ''\n const image = props.modelValue.backgroundImage\n if (image) {\n const reg = /url\\((.+)\\)/\n const match = image.match(reg)\n if (match) {\n form.backgroundImage = match[1]\n }\n }\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","reactive","watch","onMounted"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,wBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAiBD,IAAA,MAAM,OAAOC,YAAS,CAAA;AAAA,MACpB,eAAiB,EAAA,EAAA;AAAA,MACjB,eAAiB,EAAA,EAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAAC,SAAA;AAAA,MACE,IAAA;AAAA,MACA,MAAM;AACJ,QAAA,MAAM,QAAa,EAAC,CAAA;AACpB,QAAA,IAAI,KAAK,eAAiB,EAAA;AACxB,UAAA,KAAA,CAAM,kBAAkB,IAAK,CAAA,eAAA,CAAA;AAAA,SAC/B;AACA,QAAA,IAAI,KAAK,eAAiB,EAAA;AACxB,UAAM,KAAA,CAAA,eAAA,GAAkB,CAAO,IAAA,EAAA,IAAA,CAAK,eAAe,CAAA,CAAA,CAAA,CAAA;AAAA,SACrD;AACA,QAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAAA,OACjC;AAAA,MACA,EAAE,MAAM,IAAK,EAAA;AAAA,KACf,CAAA;AACA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAK,IAAA,CAAA,eAAA,GAAkB,KAAM,CAAA,UAAA,CAAW,eAAmB,IAAA,EAAA,CAAA;AAC3D,MAAM,MAAA,KAAA,GAAQ,MAAM,UAAW,CAAA,eAAA,CAAA;AAC/B,MAAA,IAAI,KAAO,EAAA;AACT,QAAA,MAAM,GAAM,GAAA,aAAA,CAAA;AACZ,QAAM,MAAA,KAAA,GAAQ,KAAM,CAAA,KAAA,CAAM,GAAG,CAAA,CAAA;AAC7B,QAAA,IAAI,KAAO,EAAA;AACT,UAAK,IAAA,CAAA,eAAA,GAAkB,MAAM,CAAC,CAAA,CAAA;AAAA,SAChC;AAAA,OACF;AAAA,KACF,CAAA;AAEA,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,KACF,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-background-input.vue2.js","sources":["../../../src/style-background-input/src/style-background-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleBackgroundInput',\n});\n</script>\n<template>\n <div class=\"dk-style-background-input\">\n <el-color-picker v-model=\"form.backgroundColor\" show-alpha />\n <dk-image-input v-model=\"form.backgroundImage\"></dk-image-input>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleBackgroundInputProps } from './props'\nimport { onMounted, reactive, watch } from 'vue'\n\n\n\nconst props = defineProps(styleBackgroundInputProps)\n\nconst form = reactive({\n backgroundImage: '',\n backgroundColor: '',\n})\nconst emit = defineEmits(['update:modelValue', 'change'])\nwatch(\n form,\n () => {\n const value: any = {}\n if (form.backgroundColor) {\n value.backgroundColor = form.backgroundColor\n }\n if (form.backgroundImage) {\n value.backgroundImage = `url(${form.backgroundImage})`\n }\n emit('update:modelValue', value)\n emit('change', value)\n },\n { deep: true }\n)\nconst init = () => {\n form.backgroundColor = props.modelValue.backgroundColor || ''\n const image = props.modelValue.backgroundImage\n if (image) {\n const reg = /url\\((.+)\\)/\n const match = image.match(reg)\n if (match) {\n form.backgroundImage = match[1]\n }\n }\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","reactive","watch","onMounted"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,wBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAiBD,IAAA,MAAM,OAAOC,YAAS,CAAA;AAAA,MACpB,eAAiB,EAAA,EAAA;AAAA,MACjB,eAAiB,EAAA,EAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAAC,SAAA;AAAA,MACE,IAAA;AAAA,MACA,MAAM;AACJ,QAAA,MAAM,QAAa,EAAC,CAAA;AACpB,QAAA,IAAI,KAAK,eAAiB,EAAA;AACxB,UAAA,KAAA,CAAM,kBAAkB,IAAK,CAAA,eAAA,CAAA;AAAA,SAC/B;AACA,QAAA,IAAI,KAAK,eAAiB,EAAA;AACxB,UAAM,KAAA,CAAA,eAAA,GAAkB,CAAO,IAAA,EAAA,IAAA,CAAK,eAAe,CAAA,CAAA,CAAA,CAAA;AAAA,SACrD;AACA,QAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAC/B,QAAA,IAAA,CAAK,UAAU,KAAK,CAAA,CAAA;AAAA,OACtB;AAAA,MACA,EAAE,MAAM,IAAK,EAAA;AAAA,KACf,CAAA;AACA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAK,IAAA,CAAA,eAAA,GAAkB,KAAM,CAAA,UAAA,CAAW,eAAmB,IAAA,EAAA,CAAA;AAC3D,MAAM,MAAA,KAAA,GAAQ,MAAM,UAAW,CAAA,eAAA,CAAA;AAC/B,MAAA,IAAI,KAAO,EAAA;AACT,QAAA,MAAM,GAAM,GAAA,aAAA,CAAA;AACZ,QAAM,MAAA,KAAA,GAAQ,KAAM,CAAA,KAAA,CAAM,GAAG,CAAA,CAAA;AAC7B,QAAA,IAAI,KAAO,EAAA;AACT,UAAK,IAAA,CAAA,eAAA,GAAkB,MAAM,CAAC,CAAA,CAAA;AAAA,SAChC;AAAA,OACF;AAAA,KACF,CAAA;AAEA,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,KACF,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,13 +3,14 @@ export declare const StyleBorderInput: import("@vipl520/utils").WithInstall<impo
3
3
  type: ObjectConstructor;
4
4
  default: () => void;
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: () => void;
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: () => void;
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: () => void;
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
  }, {}>;
@@ -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");
@@ -190,7 +191,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
190
191
  {
191
192
  ref_key: "el",
192
193
  ref: el,
193
- class: vue.normalizeClass(["dk-style-border-input", vue.unref(width).value < 400 ? "mini" : ""])
194
+ class: vue.normalizeClass(["dk-style-border-input", vue.unref(width) < 400 ? "mini" : ""])
194
195
  },
195
196
  [
196
197
  vue.createElementVNode("div", _hoisted_1, [
@@ -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;AAAA,MAClB,KAAK,WAAY,EAAA;AAAA,MACjB,MAAA,EAAQ,KAAM,CAAA,UAAA,CAAW,YAAgB,IAAA,KAAA;AAAA,KAC1C,CAAA,CAAA;AAED,IAAM,MAAA,MAAA,GAASC,aAAS,MAAM;AAC5B,MAAA,MAAM,QAAa,EAAC,CAAA;AACpB,MAAU,SAAA,CAAA,OAAA,CAAQ,CAAC,IAAS,KAAA;AAC1B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AAA;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 < 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;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;AAAA,MAClB,KAAK,WAAY,EAAA;AAAA,MACjB,MAAA,EAAQ,KAAM,CAAA,UAAA,CAAW,YAAgB,IAAA,KAAA;AAAA,KAC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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 +1 @@
1
- .dk-style-border-input{align-items:center;display:flex;justify-content:space-between;width:100%}.dk-style-border-input .border-box{display:grid;grid-template:". border-top ." "border-left border-all border-right" ". border-bottom .";height:-webkit-min-content;height:-moz-min-content;height:min-content;width:-webkit-min-content;width:-moz-min-content;width:min-content}.dk-style-border-input .border-box .border-box-option{cursor:pointer;height:30px;text-align:center;width:30px}.dk-style-border-input .border-box .border-box-option.selected{background:#e8e8e8!important;border-radius:20%}.dk-style-border-input .border-box .border-box-option:hover{background:#f0f0f0;border-radius:20%}.dk-style-border-input .dk-border-slider{width:calc(100% - 140px);margin-right:10px;margin-left:10px}.dk-style-border-input .dk-border-input{width:100px}.dk-style-border-input .dk-border-select{width:40px}.dk-style-border-input.mini{flex-direction:column}.dk-style-border-input.mini .m-l-20px{margin-left:0!important;margin-top:10px}.dk-style-border-input .el-form-item{margin-bottom:18px!important;display:flex!important}
1
+ .dk-style-border-input{align-items:center;display:flex;justify-content:space-between;width:100%}.dk-style-border-input .border-box{display:grid;grid-template:". border-top ." "border-left border-all border-right" ". border-bottom .";height:-moz-min-content;height:min-content;width:-moz-min-content;width:min-content}.dk-style-border-input .border-box .border-box-option{cursor:pointer;height:30px;text-align:center;width:30px}.dk-style-border-input .border-box .border-box-option.selected{background:#e8e8e8!important;border-radius:20%}.dk-style-border-input .border-box .border-box-option:hover{background:#f0f0f0;border-radius:20%}.dk-style-border-input .dk-border-slider{width:calc(100% - 140px);margin-right:10px;margin-left:10px}.dk-style-border-input .dk-border-input{width:100px}.dk-style-border-input .dk-border-select{width:40px}.dk-style-border-input.mini{flex-direction:column}.dk-style-border-input.mini .m-l-20px{margin-left:0!important;margin-top:10px}.dk-style-border-input .el-form-item{margin-bottom:18px!important;display:flex!important}
@@ -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;
@@ -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,
@@ -417,9 +418,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
417
418
  ref_key: "inputField",
418
419
  ref: inputField,
419
420
  "onUpdate:modelValue": ($event) => styles[item.value] = $event,
420
- class: vue.normalizeClass(
421
- "input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")
422
- ),
421
+ class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
423
422
  onBlur: ($event) => onBlur(item.value)
424
423
  }, null, 42, _hoisted_9), [
425
424
  [vue.vModelText, styles[item.value]]
@@ -486,9 +485,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
486
485
  ref_key: "inputField",
487
486
  ref: inputField,
488
487
  "onUpdate:modelValue": ($event) => styles[item.value] = $event,
489
- class: vue.normalizeClass(
490
- "input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")
491
- ),
488
+ class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
492
489
  onBlur: ($event) => onBlur(item.value)
493
490
  }, null, 42, _hoisted_17), [
494
491
  [vue.vModelText, styles[item.value]]