@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,24 +1,28 @@
1
1
  import { createElementVNode, defineComponent, ref, reactive, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, normalizeStyle, createVNode, withCtx, createTextVNode, Fragment, renderList, createBlock, toDisplayString, normalizeClass } from 'vue';
2
2
  import { useElementSize } from '@vueuse/core';
3
3
 
4
- const _hoisted_1 = { class: "shadow-content-shortcut" };
5
- const _hoisted_2 = { class: "default-css m-b-10px" };
6
- const _hoisted_3 = /* @__PURE__ */ createElementVNode(
4
+ const _hoisted_1 = { class: "flex" };
5
+ const _hoisted_2 = { class: "flex" };
6
+ const _hoisted_3 = { class: "flex" };
7
+ const _hoisted_4 = { class: "flex" };
8
+ const _hoisted_5 = { class: "shadow-content-shortcut" };
9
+ const _hoisted_6 = { class: "default-css m-b-10px" };
10
+ const _hoisted_7 = /* @__PURE__ */ createElementVNode(
7
11
  "div",
8
12
  { class: "m-b-10px" },
9
13
  "\u5E38\u7528\u6837\u5F0F",
10
14
  -1
11
15
  /* HOISTED */
12
16
  );
13
- const _hoisted_4 = /* @__PURE__ */ createElementVNode(
17
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode(
14
18
  "i",
15
19
  { id: "center" },
16
20
  null,
17
21
  -1
18
22
  /* HOISTED */
19
23
  );
20
- const _hoisted_5 = [
21
- _hoisted_4
24
+ const _hoisted_9 = [
25
+ _hoisted_8
22
26
  ];
23
27
  const __default__ = defineComponent({
24
28
  name: "DkStyleShadowContent"
@@ -151,9 +155,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
151
155
  const _component_el_radio_group = resolveComponent("el-radio-group");
152
156
  const _component_el_form_item = resolveComponent("el-form-item");
153
157
  const _component_dk_color_input = resolveComponent("dk-color-input");
158
+ const _component_el_input = resolveComponent("el-input");
154
159
  const _component_el_option = resolveComponent("el-option");
155
160
  const _component_el_select = resolveComponent("el-select");
156
- const _component_el_input = resolveComponent("el-input");
157
161
  const _component_el_form = resolveComponent("el-form");
158
162
  const _component_el_button = resolveComponent("el-button");
159
163
  return openBlock(), createElementBlock(
@@ -179,14 +183,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
179
183
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.type = $event)
180
184
  }, {
181
185
  default: withCtx(() => [
182
- createVNode(_component_el_radio_button, { label: "external" }, {
186
+ createVNode(_component_el_radio_button, { value: "external" }, {
183
187
  default: withCtx(() => [
184
188
  createTextVNode("\u5916\u90E8")
185
189
  ]),
186
190
  _: 1
187
191
  /* STABLE */
188
192
  }),
189
- createVNode(_component_el_radio_button, { label: "inset" }, {
193
+ createVNode(_component_el_radio_button, { value: "inset" }, {
190
194
  default: withCtx(() => [
191
195
  createTextVNode("\u5185\u90E8")
192
196
  ]),
@@ -214,164 +218,145 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
214
218
  }),
215
219
  createVNode(_component_el_form_item, { label: "x\u8F74" }, {
216
220
  default: withCtx(() => [
217
- createVNode(_component_el_input, {
218
- modelValue: form.x,
219
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.x = $event),
220
- type: "number"
221
- }, {
222
- append: withCtx(() => [
223
- createVNode(_component_el_select, {
224
- modelValue: form.x_unit,
225
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.x_unit = $event),
226
- placeholder: "\u8BF7\u9009\u62E9",
227
- class: "w-40px",
228
- "suffix-icon": ""
229
- }, {
230
- default: withCtx(() => [
231
- (openBlock(), createElementBlock(
232
- Fragment,
233
- null,
234
- renderList(units, (item) => {
235
- return createVNode(_component_el_option, {
236
- key: item,
237
- label: item,
238
- value: item
239
- }, null, 8, ["label", "value"]);
240
- }),
241
- 64
242
- /* STABLE_FRAGMENT */
243
- ))
244
- ]),
245
- _: 1
246
- /* STABLE */
247
- }, 8, ["modelValue"])
248
- ]),
249
- _: 1
250
- /* STABLE */
251
- }, 8, ["modelValue"])
221
+ createElementVNode("div", _hoisted_1, [
222
+ createVNode(_component_el_input, {
223
+ modelValue: form.x,
224
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.x = $event),
225
+ type: "number"
226
+ }, null, 8, ["modelValue"]),
227
+ createVNode(_component_el_select, {
228
+ modelValue: form.x_unit,
229
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.x_unit = $event),
230
+ placeholder: "\u8BF7\u9009\u62E9"
231
+ }, {
232
+ default: withCtx(() => [
233
+ (openBlock(), createElementBlock(
234
+ Fragment,
235
+ null,
236
+ renderList(units, (item) => {
237
+ return createVNode(_component_el_option, {
238
+ key: item,
239
+ label: item,
240
+ value: item
241
+ }, null, 8, ["label", "value"]);
242
+ }),
243
+ 64
244
+ /* STABLE_FRAGMENT */
245
+ ))
246
+ ]),
247
+ _: 1
248
+ /* STABLE */
249
+ }, 8, ["modelValue"])
250
+ ])
252
251
  ]),
253
252
  _: 1
254
253
  /* STABLE */
255
254
  }),
256
255
  createVNode(_component_el_form_item, { label: "y\u8F74" }, {
257
256
  default: withCtx(() => [
258
- createVNode(_component_el_input, {
259
- modelValue: form.y,
260
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.y = $event),
261
- type: "number"
262
- }, {
263
- append: withCtx(() => [
264
- createVNode(_component_el_select, {
265
- modelValue: form.y_unit,
266
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.y_unit = $event),
267
- placeholder: "\u8BF7\u9009\u62E9",
268
- class: "w-40px",
269
- "suffix-icon": ""
270
- }, {
271
- default: withCtx(() => [
272
- (openBlock(), createElementBlock(
273
- Fragment,
274
- null,
275
- renderList(units, (item) => {
276
- return createVNode(_component_el_option, {
277
- key: item,
278
- label: item,
279
- value: item
280
- }, null, 8, ["label", "value"]);
281
- }),
282
- 64
283
- /* STABLE_FRAGMENT */
284
- ))
285
- ]),
286
- _: 1
287
- /* STABLE */
288
- }, 8, ["modelValue"])
289
- ]),
290
- _: 1
291
- /* STABLE */
292
- }, 8, ["modelValue"])
257
+ createElementVNode("div", _hoisted_2, [
258
+ createVNode(_component_el_input, {
259
+ modelValue: form.y,
260
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.y = $event),
261
+ type: "number"
262
+ }, null, 8, ["modelValue"]),
263
+ createVNode(_component_el_select, {
264
+ modelValue: form.y_unit,
265
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.y_unit = $event),
266
+ placeholder: "\u8BF7\u9009\u62E9",
267
+ class: "w-40px"
268
+ }, {
269
+ default: withCtx(() => [
270
+ (openBlock(), createElementBlock(
271
+ Fragment,
272
+ null,
273
+ renderList(units, (item) => {
274
+ return createVNode(_component_el_option, {
275
+ key: item,
276
+ label: item,
277
+ value: item
278
+ }, null, 8, ["label", "value"]);
279
+ }),
280
+ 64
281
+ /* STABLE_FRAGMENT */
282
+ ))
283
+ ]),
284
+ _: 1
285
+ /* STABLE */
286
+ }, 8, ["modelValue"])
287
+ ])
293
288
  ]),
294
289
  _: 1
295
290
  /* STABLE */
296
291
  }),
297
292
  createVNode(_component_el_form_item, { label: "\u6A21\u7CCA" }, {
298
293
  default: withCtx(() => [
299
- createVNode(_component_el_input, {
300
- modelValue: form.vague,
301
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.vague = $event),
302
- type: "number"
303
- }, {
304
- append: withCtx(() => [
305
- createVNode(_component_el_select, {
306
- modelValue: form.vague_unit,
307
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.vague_unit = $event),
308
- placeholder: "\u8BF7\u9009\u62E9",
309
- class: "w-40px",
310
- "suffix-icon": ""
311
- }, {
312
- default: withCtx(() => [
313
- (openBlock(), createElementBlock(
314
- Fragment,
315
- null,
316
- renderList(units, (item) => {
317
- return createVNode(_component_el_option, {
318
- key: item,
319
- label: item,
320
- value: item
321
- }, null, 8, ["label", "value"]);
322
- }),
323
- 64
324
- /* STABLE_FRAGMENT */
325
- ))
326
- ]),
327
- _: 1
328
- /* STABLE */
329
- }, 8, ["modelValue"])
330
- ]),
331
- _: 1
332
- /* STABLE */
333
- }, 8, ["modelValue"])
294
+ createElementVNode("div", _hoisted_3, [
295
+ createVNode(_component_el_input, {
296
+ modelValue: form.vague,
297
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.vague = $event),
298
+ type: "number"
299
+ }, null, 8, ["modelValue"]),
300
+ createVNode(_component_el_select, {
301
+ modelValue: form.vague_unit,
302
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.vague_unit = $event),
303
+ placeholder: "\u8BF7\u9009\u62E9"
304
+ }, {
305
+ default: withCtx(() => [
306
+ (openBlock(), createElementBlock(
307
+ Fragment,
308
+ null,
309
+ renderList(units, (item) => {
310
+ return createVNode(_component_el_option, {
311
+ key: item,
312
+ label: item,
313
+ value: item
314
+ }, null, 8, ["label", "value"]);
315
+ }),
316
+ 64
317
+ /* STABLE_FRAGMENT */
318
+ ))
319
+ ]),
320
+ _: 1
321
+ /* STABLE */
322
+ }, 8, ["modelValue"])
323
+ ])
334
324
  ]),
335
325
  _: 1
336
326
  /* STABLE */
337
327
  }),
338
328
  createVNode(_component_el_form_item, { label: "\u6269\u5C55" }, {
339
329
  default: withCtx(() => [
340
- createVNode(_component_el_input, {
341
- modelValue: form.extend,
342
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.extend = $event),
343
- type: "number"
344
- }, {
345
- append: withCtx(() => [
346
- createVNode(_component_el_select, {
347
- modelValue: form.extend_unit,
348
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.extend_unit = $event),
349
- placeholder: "\u8BF7\u9009\u62E9",
350
- class: "w-40px",
351
- "suffix-icon": ""
352
- }, {
353
- default: withCtx(() => [
354
- (openBlock(), createElementBlock(
355
- Fragment,
356
- null,
357
- renderList(units, (item) => {
358
- return createVNode(_component_el_option, {
359
- key: item,
360
- label: item,
361
- value: item
362
- }, null, 8, ["label", "value"]);
363
- }),
364
- 64
365
- /* STABLE_FRAGMENT */
366
- ))
367
- ]),
368
- _: 1
369
- /* STABLE */
370
- }, 8, ["modelValue"])
371
- ]),
372
- _: 1
373
- /* STABLE */
374
- }, 8, ["modelValue"])
330
+ createElementVNode("div", _hoisted_4, [
331
+ createVNode(_component_el_input, {
332
+ modelValue: form.extend,
333
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.extend = $event),
334
+ type: "number"
335
+ }, null, 8, ["modelValue"]),
336
+ createVNode(_component_el_select, {
337
+ modelValue: form.extend_unit,
338
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.extend_unit = $event),
339
+ placeholder: "\u8BF7\u9009\u62E9"
340
+ }, {
341
+ default: withCtx(() => [
342
+ (openBlock(), createElementBlock(
343
+ Fragment,
344
+ null,
345
+ renderList(units, (item) => {
346
+ return createVNode(_component_el_option, {
347
+ key: item,
348
+ label: item,
349
+ value: item
350
+ }, null, 8, ["label", "value"]);
351
+ }),
352
+ 64
353
+ /* STABLE_FRAGMENT */
354
+ ))
355
+ ]),
356
+ _: 1
357
+ /* STABLE */
358
+ }, 8, ["modelValue"])
359
+ ])
375
360
  ]),
376
361
  _: 1
377
362
  /* STABLE */
@@ -380,9 +365,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
380
365
  _: 1
381
366
  /* STABLE */
382
367
  }, 8, ["size"]),
383
- createElementVNode("div", _hoisted_1, [
384
- createElementVNode("div", _hoisted_2, [
385
- _hoisted_3,
368
+ createElementVNode("div", _hoisted_5, [
369
+ createElementVNode("div", _hoisted_6, [
370
+ _hoisted_7,
386
371
  (openBlock(true), createElementBlock(
387
372
  Fragment,
388
373
  null,
@@ -426,7 +411,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
426
411
  id: "spot",
427
412
  style: normalizeStyle(spotStyle.value)
428
413
  },
429
- _hoisted_5,
414
+ _hoisted_9,
430
415
  4
431
416
  /* STYLE */
432
417
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"style-shadow-content.vue2.mjs","sources":["../../../src/style-shadow-input/src/style-shadow-content.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowContent',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-style-shadow-content\" :style=\"{ '--shadow-box-width': boxSize + 'px' }\">\n <el-form label-width=\"60px\" label-position=\"left\" class=\"shadow-form-content\" :size=\"size\">\n <el-form-item label=\"模式\">\n <el-radio-group v-model=\"form.type\">\n <el-radio-button label=\"external\">外部</el-radio-button>\n <el-radio-button label=\"inset\">内部</el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <dk-color-input v-model=\"form.color\" show-alpha></dk-color-input>\n </el-form-item>\n <el-form-item label=\"x轴\">\n <el-input v-model=\"form.x\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.x_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"y轴\">\n <el-input v-model=\"form.y\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.y_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"模糊\">\n <el-input v-model=\"form.vague\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.vague_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n <el-form-item label=\"扩展\">\n <el-input v-model=\"form.extend\" type=\"number\">\n <template #append>\n <el-select v-model=\"form.extend_unit\" placeholder=\"请选择\" class=\"w-40px\" suffix-icon=\"\">\n <el-option v-for=\"item in units\" :key=\"item\" :label=\"item\" :value=\"item\" />\n </el-select>\n </template>\n </el-input>\n </el-form-item>\n </el-form>\n <div class=\"shadow-content-shortcut\">\n <div class=\"default-css m-b-10px\">\n <div class=\"m-b-10px\">常用样式</div>\n <el-button v-for=\"(item, key) in props.defaultStyles\" :key=\"key\" size=\"small\" @click=\"setStyle(item)\">{{\n item.label\n }}</el-button>\n </div>\n <div\n ref=\"box\"\n class=\"shadow-content-box\"\n :class=\"down ? 'down' : ''\"\n :style=\"{ height: boxSize + 'px', width: boxSize + 'px' }\"\n @click=\"getMouseXY($event, 1)\"\n @mousedown=\"onMousedown\"\n @mouseup=\"down = false\"\n @mousemove=\"getMouseXY($event, 0)\"\n >\n <span id=\"spot\" :style=\"spotStyle\">\n <i id=\"center\" />\n </span>\n <span id=\"center-spot\" :style=\"{ top: boxSize / 2 + 'px', left: boxSize / 2 + 'px' }\" />\n <div class=\"x-hr\" :style=\"{ top: boxSize / 2 + 'px' }\" />\n <div class=\"y-hr\" :style=\"{ left: boxSize / 2 + 'px' }\" />\n <div class=\"line\" :style=\"lineStyle\" />\n </div>\n </div>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\n// interface StyleOption {\n// label: string\n// value: string\n// }\nconst props = defineProps({\n boxSize: {\n default: 180,\n type: Number,\n },\n size: {\n default: 'small',\n type: String,\n },\n max: {\n default: 24,\n type: Number,\n },\n modelValue: {\n default: '0px 0px 0px rgba(0, 0, 0, 0)',\n type: String,\n },\n defaultStyles: {\n default: () => {\n return [\n { label: '经典', value: '3px 5px 7px 2px #CBCBCBFF' },\n { label: '扁平', value: '4px 4px 3px -2px #E7E5E5FF' },\n { label: '立体', value: '1px 2px 4px 2px #979797FF' },\n ]\n },\n type: Array as () => any,\n },\n})\nconst form = reactive({\n color: '',\n type: 'external',\n x: 0,\n y: 0,\n vague: 0,\n extend: 0,\n x_unit: 'px',\n y_unit: 'px',\n vague_unit: 'px',\n extend_unit: 'px',\n})\n\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst down = ref(false)\nconst position: any = reactive({\n left: 0,\n top: 0,\n})\n\nconst lineStyle = ref('')\nconst box = ref()\nconst spotStyle = computed(() => {\n return {\n left: position.left + 'px',\n top: position.top + 'px',\n }\n})\n\nconst getMouseXY = (e: any, force: any) => {\n if (down.value || force) {\n const _box = box.value.getBoundingClientRect()\n position.left = parseInt(String(e.clientX - _box.x))\n position.top = parseInt(String(e.clientY - _box.y))\n }\n}\n\nwatch(position, () => {\n form.x = parseInt(String(((position.left - props.boxSize / 2) / props.boxSize) * props.max))\n form.y = parseInt(String(((position.top - props.boxSize / 2) / props.boxSize) * props.max))\n})\nconst emit = defineEmits(['update:modelValue'])\nwatch(form, () => {\n let value = `${form.x}${form.x_unit} ${form.y}${form.y_unit} ${form.vague}${form.vague_unit} ${form.extend}${form.extend_unit} ${form.color}`\n if (form.type === 'inset') {\n value = value + ' inset'\n }\n emit('update:modelValue', value)\n})\nconst onMousedown = (e: any) => {\n getMouseXY(e, 1)\n down.value = true\n}\n\nconst initStyle = (modelValue: any) => {\n if (modelValue?.indexOf(' inset') > -1) {\n form.type = 'inset'\n modelValue = modelValue.replace(' inset', '')\n }\n const shadowData = modelValue.split('rgba')\n let color, shadowValues: any\n\n if (shadowData.length > 1) {\n // 将颜色值和其他阴影值进行分离\n color = 'rgba' + shadowData[1].trim()\n shadowValues = shadowData[0].trim().split(' ')\n } else {\n shadowValues = shadowData[0].trim().split(' ')\n color = shadowValues.pop()\n }\n form.color = color || '#000'\n form.x = parseInt(shadowValues[0]) || 0\n form.y = parseInt(shadowValues[1]) || 0\n form.vague = parseInt(shadowValues[2]) || 0\n form.extend = parseInt(shadowValues[3]) || 0\n\n const getUnit = (value: any) => {\n let unit = value?.replace(/[-\\d.]/g, '') || 'px'\n if (units.indexOf(unit) === -1) {\n unit = 'px'\n }\n return unit\n }\n form.x_unit = getUnit(shadowValues[0])\n form.y_unit = getUnit(shadowValues[1])\n form.vague_unit = getUnit(shadowValues[2])\n form.extend_unit = getUnit(shadowValues[3])\n position.left = props.boxSize / 2 + (form.x / props.max) * props.boxSize || 0\n position.top = props.boxSize / 2 + (form.y / props.max) * props.boxSize || 0\n}\n\nconst setStyle = (item: any) => {\n const style = item.value\n initStyle(style)\n}\n\nonMounted(() => {\n // let modelValue = props.modelValue\n initStyle(props.modelValue)\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,sBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFD,IAAM,MAAA,EAAA,GAAU,IAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAA,cAAA,CAAe,EAAE,CAAA,CAAA;AAmCnC,IAAA,MAAM,OAAO,QAAS,CAAA;AAAA,MACpB,KAAO,EAAA,EAAA;AAAA,MACP,IAAM,EAAA,UAAA;AAAA,MACN,CAAG,EAAA,CAAA;AAAA,MACH,CAAG,EAAA,CAAA;AAAA,MACH,KAAO,EAAA,CAAA;AAAA,MACP,MAAQ,EAAA,CAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,UAAY,EAAA,IAAA;AAAA,MACZ,WAAa,EAAA,IAAA;AAAA,KACd,CAAA,CAAA;AAED,IAAA,MAAM,QAAQ,CAAC,IAAA,EAAM,KAAK,KAAO,EAAA,IAAA,EAAM,MAAM,IAAI,CAAA,CAAA;AACjD,IAAM,MAAA,IAAA,GAAO,IAAI,KAAK,CAAA,CAAA;AACtB,IAAA,MAAM,WAAgB,QAAS,CAAA;AAAA,MAC7B,IAAM,EAAA,CAAA;AAAA,MACN,GAAK,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,IAAI,EAAE,CAAA,CAAA;AACxB,IAAA,MAAM,MAAM,GAAI,EAAA,CAAA;AAChB,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAO,OAAA;AAAA,QACL,IAAA,EAAM,SAAS,IAAO,GAAA,IAAA;AAAA,Q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,CAAA;AAC5E,MAAS,QAAA,CAAA,GAAA,GAAM,MAAM,OAAU,GAAA,CAAA,GAAK,KAAK,CAAI,GAAA,KAAA,CAAM,GAAO,GAAA,KAAA,CAAM,OAAW,IAAA,CAAA,CAAA;AAAA,KAC7E,CAAA;AAEA,IAAM,MAAA,QAAA,GAAW,CAAC,IAAc,KAAA;AAC9B,MAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAA;AACnB,MAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AAAA,KACjB,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AAEd,MAAA,SAAA,CAAU,MAAM,UAAU,CAAA,CAAA;AAAA,KAC3B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-shadow-content.vue2.mjs","sources":["../../../src/style-shadow-input/src/style-shadow-content.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowContent',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-style-shadow-content\" :style=\"{ '--shadow-box-width': boxSize + 'px' }\">\n <el-form label-width=\"60px\" label-position=\"left\" class=\"shadow-form-content\" :size=\"size\">\n <el-form-item label=\"模式\">\n <el-radio-group v-model=\"form.type\">\n <el-radio-button value=\"external\">外部</el-radio-button>\n <el-radio-button value=\"inset\">内部</el-radio-button>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"颜色\">\n <dk-color-input v-model=\"form.color\" show-alpha></dk-color-input>\n </el-form-item>\n <el-form-item label=\"x轴\">\n <div class=\"flex\">\n <el-input v-model=\"form.x\" type=\"number\"> </el-input>\n <el-select v-model=\"form.x_unit\" placeholder=\"请选择\">\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 label=\"y轴\">\n <div class=\"flex\">\n <el-input v-model=\"form.y\" type=\"number\"> </el-input>\n <el-select v-model=\"form.y_unit\" placeholder=\"请选择\" class=\"w-40px\">\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 label=\"模糊\">\n <div class=\"flex\">\n <el-input v-model=\"form.vague\" type=\"number\"> </el-input>\n <el-select v-model=\"form.vague_unit\" placeholder=\"请选择\">\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 label=\"扩展\">\n <div class=\"flex\">\n <el-input v-model=\"form.extend\" type=\"number\"> </el-input>\n <el-select v-model=\"form.extend_unit\" placeholder=\"请选择\">\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>\n <div class=\"shadow-content-shortcut\">\n <div class=\"default-css m-b-10px\">\n <div class=\"m-b-10px\">常用样式</div>\n <el-button v-for=\"(item, key) in props.defaultStyles\" :key=\"key\" size=\"small\" @click=\"setStyle(item)\">{{\n item.label\n }}</el-button>\n </div>\n <div\n ref=\"box\"\n class=\"shadow-content-box\"\n :class=\"down ? 'down' : ''\"\n :style=\"{ height: boxSize + 'px', width: boxSize + 'px' }\"\n @click=\"getMouseXY($event, 1)\"\n @mousedown=\"onMousedown\"\n @mouseup=\"down = false\"\n @mousemove=\"getMouseXY($event, 0)\"\n >\n <span id=\"spot\" :style=\"spotStyle\">\n <i id=\"center\" />\n </span>\n <span id=\"center-spot\" :style=\"{ top: boxSize / 2 + 'px', left: boxSize / 2 + 'px' }\" />\n <div class=\"x-hr\" :style=\"{ top: boxSize / 2 + 'px' }\" />\n <div class=\"y-hr\" :style=\"{ left: boxSize / 2 + 'px' }\" />\n <div class=\"line\" :style=\"lineStyle\" />\n </div>\n </div>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, onMounted, reactive, ref, watch } from 'vue'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\n// interface StyleOption {\n// label: string\n// value: string\n// }\nconst props = defineProps({\n boxSize: {\n default: 180,\n type: Number,\n },\n size: {\n default: 'small',\n type: String,\n },\n max: {\n default: 24,\n type: Number,\n },\n modelValue: {\n default: '0px 0px 0px rgba(0, 0, 0, 0)',\n type: String,\n },\n defaultStyles: {\n default: () => {\n return [\n { label: '经典', value: '3px 5px 7px 2px #CBCBCBFF' },\n { label: '扁平', value: '4px 4px 3px -2px #E7E5E5FF' },\n { label: '立体', value: '1px 2px 4px 2px #979797FF' },\n ]\n },\n type: Array as () => any,\n },\n})\nconst form = reactive({\n color: '',\n type: 'external',\n x: 0,\n y: 0,\n vague: 0,\n extend: 0,\n x_unit: 'px',\n y_unit: 'px',\n vague_unit: 'px',\n extend_unit: 'px',\n})\n\nconst units = ['px', '%', 'rem', 'em', 'vw', 'vh']\nconst down = ref(false)\nconst position: any = reactive({\n left: 0,\n top: 0,\n})\n\nconst lineStyle = ref('')\nconst box = ref()\nconst spotStyle = computed(() => {\n return {\n left: position.left + 'px',\n top: position.top + 'px',\n }\n})\n\nconst getMouseXY = (e: any, force: any) => {\n if (down.value || force) {\n const _box = box.value.getBoundingClientRect()\n position.left = parseInt(String(e.clientX - _box.x))\n position.top = parseInt(String(e.clientY - _box.y))\n }\n}\n\nwatch(position, () => {\n form.x = parseInt(String(((position.left - props.boxSize / 2) / props.boxSize) * props.max))\n form.y = parseInt(String(((position.top - props.boxSize / 2) / props.boxSize) * props.max))\n})\nconst emit = defineEmits(['update:modelValue'])\nwatch(form, () => {\n let value = `${form.x}${form.x_unit} ${form.y}${form.y_unit} ${form.vague}${form.vague_unit} ${form.extend}${form.extend_unit} ${form.color}`\n if (form.type === 'inset') {\n value = value + ' inset'\n }\n emit('update:modelValue', value)\n})\nconst onMousedown = (e: any) => {\n getMouseXY(e, 1)\n down.value = true\n}\n\nconst initStyle = (modelValue: any) => {\n if (modelValue?.indexOf(' inset') > -1) {\n form.type = 'inset'\n modelValue = modelValue.replace(' inset', '')\n }\n const shadowData = modelValue.split('rgba')\n let color, shadowValues: any\n\n if (shadowData.length > 1) {\n // 将颜色值和其他阴影值进行分离\n color = 'rgba' + shadowData[1].trim()\n shadowValues = shadowData[0].trim().split(' ')\n } else {\n shadowValues = shadowData[0].trim().split(' ')\n color = shadowValues.pop()\n }\n form.color = color || '#000'\n form.x = parseInt(shadowValues[0]) || 0\n form.y = parseInt(shadowValues[1]) || 0\n form.vague = parseInt(shadowValues[2]) || 0\n form.extend = parseInt(shadowValues[3]) || 0\n\n const getUnit = (value: any) => {\n let unit = value?.replace(/[-\\d.]/g, '') || 'px'\n if (units.indexOf(unit) === -1) {\n unit = 'px'\n }\n return unit\n }\n form.x_unit = getUnit(shadowValues[0])\n form.y_unit = getUnit(shadowValues[1])\n form.vague_unit = getUnit(shadowValues[2])\n form.extend_unit = getUnit(shadowValues[3])\n position.left = props.boxSize / 2 + (form.x / props.max) * props.boxSize || 0\n position.top = props.boxSize / 2 + (form.y / props.max) * props.boxSize || 0\n}\n\nconst setStyle = (item: any) => {\n const style = item.value\n initStyle(style)\n}\n\nonMounted(() => {\n // let modelValue = props.modelValue\n initStyle(props.modelValue)\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6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A;AAAA,KAC7E,CAAA;AAEA,IAAM,MAAA,QAAA,GAAW,CAAC,IAAc,KAAA;AAC9B,MAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAA;AACnB,MAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AAAA,KACjB,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AAEd,MAAA,SAAA,CAAU,MAAM,UAAU,CAAA,CAAA;AAAA,KAC3B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
7
7
  default: () => void;
8
8
  type: ObjectConstructor;
9
9
  };
10
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ }, {}, 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<{
11
11
  type: {
12
12
  default: string;
13
13
  type: () => "input" | "collapse";
@@ -18,6 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  };
19
19
  }>> & {
20
20
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
21
+ onChange?: ((...args: any[]) => any) | undefined;
21
22
  }, {
22
23
  modelValue: Record<string, any>;
23
24
  type: "input" | "collapse";
@@ -12,7 +12,7 @@ const __default__ = defineComponent({
12
12
  var _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  ...__default__,
14
14
  props: shadowInputProps,
15
- emits: ["update:modelValue"],
15
+ emits: ["update:modelValue", "change"],
16
16
  setup(__props, { emit }) {
17
17
  const props = __props;
18
18
  const shadows = ref([]);
@@ -34,6 +34,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  });
35
35
  watch(boxShadow, (n, o) => {
36
36
  emit("update:modelValue", { boxShadow: boxShadow.value });
37
+ emit("change", { boxShadow: boxShadow.value });
37
38
  });
38
39
  watch(
39
40
  () => props.modelValue,
@@ -1 +1 @@
1
- {"version":3,"file":"style-shadow-input.vue2.mjs","sources":["../../../src/style-shadow-input/src/style-shadow-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowInput',\n});\n</script>\n<template>\n <div class=\"dk-style-shadow-input\">\n <el-collapse v-if=\"type === 'collapse'\" v-model=\"activeName\" accordion>\n <el-collapse-item v-for=\"(item, key) in shadows\" :key=\"key\" :title=\"item\" :name=\"key + ''\">\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-collapse-item>\n </el-collapse>\n <ul v-else class=\"shadow-list\">\n <li v-for=\"(item, key) in shadows\" :key=\"key\">\n <el-input v-model=\"shadows[key]\" disabled>\n <template #append>\n <el-popover placement=\"right-start\" title=\"\" width=\"380\" trigger=\"click\">\n <template #reference>\n <el-button>设置</el-button>\n </template>\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-popover>\n </template>\n </el-input>\n <dk-icon class=\"close-shadow\" icon=\"Close\" hover-color=\"#f00\" @click=\"delShadow(key)\"></dk-icon>\n </li>\n </ul>\n <el-button class=\"m-t-10px w-100%\" @click=\"addShadow\">\n <dk-icon icon=\"Plus\"></dk-icon>\n </el-button>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { shadowInputProps } from './props'\nimport { computed, onMounted, ref, watch } from 'vue'\n\n\n\nconst props = defineProps(shadowInputProps)\n\nconst shadows: any = ref([])\n\nconst activeName = ref('1')\nconst addShadow = () => {\n shadows.value.push('1px 1px 1px 1px #000')\n activeName.value = shadows.value.length - 1 + ''\n}\n\nconst delShadow = (index: number) => {\n shadows.value.splice(index, 1)\n}\n\nconst init = () => {\n if (props.modelValue.boxShadow) {\n shadows.value = props.modelValue.boxShadow.split(',')\n }\n}\n\nconst emit = defineEmits(['update:modelValue'])\n\nconst boxShadow = computed(() => {\n return shadows.value.join(',')\n})\n\nwatch(boxShadow, (n, o) => {\n emit('update:modelValue', { boxShadow: boxShadow.value })\n})\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n { deep: true }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAsCD,IAAM,MAAA,OAAA,GAAe,GAAI,CAAA,EAAE,CAAA,CAAA;AAE3B,IAAM,MAAA,UAAA,GAAa,IAAI,GAAG,CAAA,CAAA;AAC1B,IAAA,MAAM,YAAY,MAAM;AACtB,MAAQ,OAAA,CAAA,KAAA,CAAM,KAAK,sBAAsB,CAAA,CAAA;AACzC,MAAA,UAAA,CAAW,KAAQ,GAAA,OAAA,CAAQ,KAAM,CAAA,MAAA,GAAS,CAAI,GAAA,EAAA,CAAA;AAAA,KAChD,CAAA;AAEA,IAAM,MAAA,SAAA,GAAY,CAAC,KAAkB,KAAA;AACnC,MAAQ,OAAA,CAAA,KAAA,CAAM,MAAO,CAAA,KAAA,EAAO,CAAC,CAAA,CAAA;AAAA,KAC/B,CAAA;AAEA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAI,IAAA,KAAA,CAAM,WAAW,SAAW,EAAA;AAC9B,QAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAM,UAAW,CAAA,SAAA,CAAU,MAAM,GAAG,CAAA,CAAA;AAAA,OACtD;AAAA,KACF,CAAA;AAIA,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAO,OAAA,OAAA,CAAQ,KAAM,CAAA,IAAA,CAAK,GAAG,CAAA,CAAA;AAAA,KAC9B,CAAA,CAAA;AAED,IAAM,KAAA,CAAA,SAAA,EAAW,CAAC,CAAA,EAAG,CAAM,KAAA;AACzB,MAAA,IAAA,CAAK,mBAAqB,EAAA,EAAE,SAAW,EAAA,SAAA,CAAU,OAAO,CAAA,CAAA;AAAA,KACzD,CAAA,CAAA;AAED,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,MACA,EAAE,MAAM,IAAK,EAAA;AAAA,KACf,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-shadow-input.vue2.mjs","sources":["../../../src/style-shadow-input/src/style-shadow-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowInput',\n});\n</script>\n<template>\n <div class=\"dk-style-shadow-input\">\n <el-collapse v-if=\"type === 'collapse'\" v-model=\"activeName\" accordion>\n <el-collapse-item v-for=\"(item, key) in shadows\" :key=\"key\" :title=\"item\" :name=\"key + ''\">\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-collapse-item>\n </el-collapse>\n <ul v-else class=\"shadow-list\">\n <li v-for=\"(item, key) in shadows\" :key=\"key\">\n <el-input v-model=\"shadows[key]\" disabled>\n <template #append>\n <el-popover placement=\"right-start\" title=\"\" width=\"380\" trigger=\"click\">\n <template #reference>\n <el-button>设置</el-button>\n </template>\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-popover>\n </template>\n </el-input>\n <dk-icon class=\"close-shadow\" icon=\"Close\" hover-color=\"#f00\" @click=\"delShadow(key)\"></dk-icon>\n </li>\n </ul>\n <el-button class=\"m-t-10px w-100%\" @click=\"addShadow\">\n <dk-icon icon=\"Plus\"></dk-icon>\n </el-button>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { shadowInputProps } from './props'\nimport { computed, onMounted, ref, watch } from 'vue'\n\n\n\nconst props = defineProps(shadowInputProps)\n\nconst shadows: any = ref([])\n\nconst activeName = ref('1')\nconst addShadow = () => {\n shadows.value.push('1px 1px 1px 1px #000')\n activeName.value = shadows.value.length - 1 + ''\n}\n\nconst delShadow = (index: number) => {\n shadows.value.splice(index, 1)\n}\n\nconst init = () => {\n if (props.modelValue.boxShadow) {\n shadows.value = props.modelValue.boxShadow.split(',')\n }\n}\n\nconst emit = defineEmits(['update:modelValue', 'change'])\n\nconst boxShadow = computed(() => {\n return shadows.value.join(',')\n})\n\nwatch(boxShadow, (n, o) => {\n emit('update:modelValue', { boxShadow: boxShadow.value })\n emit('change', { boxShadow: boxShadow.value })\n})\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n { deep: true }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CA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AAE,MAAM,IAAK,EAAA;AAAA,KACf,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComSearch.vue2.mjs","sources":["../../../../src/table/src/components/ComSearch.vue"],"sourcesContent":["<template>\n <div ref=\"el\" class=\"table-com-search\">\n <el-form label-position=\"top\" :model=\"DkTable.comSearch.form\" @submit.prevent=\"\" @keyup.enter=\"onComSearch\">\n <el-row>\n <template v-for=\"(item, idx) in DkTable.table.column\" :key=\"idx\">\n <template v-if=\"item.operator !== false\">\n <!-- 自定义渲染 component、slot -->\n <el-col\n v-if=\"item.comSearchRender == 'customRender' || item.comSearchRender == 'slot'\"\n :span=\"spans.common\"\n >\n <!-- 外部可以使用 :deep() 选择器修改css样式 -->\n <div class=\"com-search-col\">\n <div v-if=\"item.comSearchShowLabel !== false\" class=\"com-search-col-label\">\n {{ item.label }}\n </div>\n <div class=\"com-search-col-input\">\n <!-- 自定义组件/函数渲染 -->\n <component\n :is=\"item.comSearchComponent\"\n v-if=\"item.comSearchRender == 'customRender'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n v-bind=\"item.comSearchProps\"\n :placeholder=\"item.operatorPlaceholder\"\n ></component>\n\n <!-- 自定义渲染-slot -->\n <slot v-else-if=\"item.comSearchRender == 'slot'\" :name=\"item.comSearchSlotName\"></slot>\n </div>\n </div>\n </el-col>\n\n <!-- 时间范围 -->\n <el-col\n v-else-if=\"item.render == 'datetime' && (item.operator == 'RANGE' || item.operator == 'NOT RANGE')\"\n :span=\"spans.datetime\"\n >\n <div class=\"com-search-col\">\n <div v-if=\"item.comSearchShowLabel !== false\" class=\"com-search-col-label\">\n {{ item.label }}\n </div>\n <div class=\"com-search-col-input-range\">\n <el-date-picker\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n class=\"datetime-picker\"\n :default-value=\"\n DkTable.comSearch.form[item.prop! + '-default']\n ? DkTable.comSearch.form[item.prop! + '-default']\n : [new Date(), new Date()]\n \"\n :type=\"item.comSearchRender == 'date' ? 'daterange' : 'datetimerange'\"\n range-separator=\"到\"\n start-placeholder=\"开始日期\"\n end-placeholder=\"结束日期\"\n :value-format=\"item.comSearchRender == 'date' ? 'YYYY-MM-DD' : 'YYYY-MM-DD HH:mm:ss'\"\n :teleported=\"false\"\n />\n </div>\n </div>\n </el-col>\n <!--时间范围-->\n <el-col\n v-else-if=\"item.render == 'time' && (item.operator == 'RANGE' || item.operator == 'NOT RANGE')\"\n :span=\"spans.datetime\"\n >\n <div class=\"com-search-col\">\n <div v-if=\"item.comSearchShowLabel !== false\" class=\"com-search-col-label\">\n {{ item.label }}\n </div>\n <div class=\"com-search-col-input-range\">\n <el-time-picker\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n is-range\n range-separator=\"到\"\n format=\"HH:mm:ss\"\n value-format=\"HH:mm:ss\"\n start-placeholder=\"开始时间\"\n end-placeholder=\"结束时间\"\n ></el-time-picker>\n </div>\n </div>\n </el-col>\n <el-col v-else :span=\"spans.common\">\n <div class=\"com-search-col\">\n <div v-if=\"item.comSearchShowLabel !== false\" class=\"com-search-col-label\">\n {{ item.label }}\n </div>\n <!-- 数字范围 -->\n <div v-if=\"item.operator == 'RANGE' || item.operator == 'NOT RANGE'\" class=\"com-search-col-input-range\">\n <el-input\n v-model=\"DkTable.comSearch.form[item.prop! + '-start']\"\n :placeholder=\"item.operatorPlaceholder\"\n type=\"string\"\n :clearable=\"true\"\n ></el-input>\n <div class=\"range-separator\">到</div>\n <el-input\n v-model=\"DkTable.comSearch.form[item.prop! + '-end']\"\n :placeholder=\"item.operatorPlaceholder\"\n type=\"string\"\n :clearable=\"true\"\n ></el-input>\n </div>\n <!-- 是否 [NOT] NULL -->\n <div v-else-if=\"item.operator == 'NULL' || item.operator == 'NOT NULL'\" class=\"com-search-col-input\">\n <el-checkbox\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :label=\"item.operator\"\n size=\"large\"\n ></el-checkbox>\n </div>\n <div v-else-if=\"item.operator\" class=\"com-search-col-input\">\n <!-- 时间筛选 -->\n <el-date-picker\n v-if=\"item.render == 'datetime' || item.comSearchRender == 'date'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n class=\"datetime-picker\"\n :type=\"item.comSearchRender == 'date' ? 'date' : 'datetime'\"\n :value-format=\"item.comSearchRender == 'date' ? 'YYYY-MM-DD' : 'YYYY-MM-DD HH:mm:ss'\"\n :placeholder=\"item.operatorPlaceholder\"\n :default-value=\"\n DkTable.comSearch.form[item.prop! + '-default']\n ? DkTable.comSearch.form[item.prop! + '-default']\n : new Date()\n \"\n :teleported=\"false\"\n />\n <!-- 年筛选 -->\n <el-date-picker\n v-if=\"item.render == 'year'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n class=\"datetime-picker\"\n type=\"year\"\n value-format=\"YYYY\"\n style=\"width: 100%\"\n :placeholder=\"item.operatorPlaceholder\"\n />\n <!-- tag、tags、select -->\n <el-select\n v-else-if=\"\n (item.render == 'tag' || item.render == 'tags' || item.comSearchRender == 'select') &&\n item.replaceValue\n \"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :placeholder=\"item.operatorPlaceholder\"\n :clearable=\"true\"\n >\n <el-option\n v-for=\"(opt, okey) in item.replaceValue\"\n :key=\"item.prop! + okey\"\n :label=\"opt\"\n :value=\"okey\"\n />\n </el-select>\n\n <!-- 远程 select -->\n <dk-select\n v-else-if=\"item.comSearchRender == 'remoteSelect'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n filterable\n :placeholder=\"item.operatorPlaceholder\"\n :remote-url=\"item.remoteUrl\"\n ></dk-select>\n\n <!-- 开关 -->\n <el-select\n v-else-if=\"item.render == 'switch'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :placeholder=\"item.operatorPlaceholder\"\n :clearable=\"true\"\n >\n <template v-if=\"!isEmpty(item.replaceValue)\">\n <el-option\n v-for=\"(opt, okey) in item.replaceValue\"\n :key=\"item.prop! + okey\"\n :label=\"opt\"\n :value=\"okey\"\n />\n </template>\n <template v-else>\n <el-option label=\"开\" value=\"1\" />\n <el-option label=\"关\" value=\"0\" />\n </template>\n </el-select>\n\n <!-- 字符串 -->\n <el-input\n v-else\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :placeholder=\"item.operatorPlaceholder\"\n type=\"string\"\n :clearable=\"true\"\n ></el-input>\n </div>\n </div>\n </el-col>\n </template>\n </template>\n <el-col :xs=\"24\" :sm=\"6\">\n <div class=\"com-search-col pl-20\">\n <el-button v-blur type=\"primary\" @click=\"onComSearch\"> 搜索</el-button>\n <el-button @click=\"onResetForm()\">重置</el-button>\n </div>\n </el-col>\n </el-row>\n </el-form>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { inject, ref, computed } from 'vue'\nimport { isEmpty } from 'lodash-es'\nimport { useElementSize } from '@vueuse/core'\nimport DkTableClass from '../../utils/dkTable'\n\nconst DkTable = inject('DkTable') as DkTableClass\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\nconst spans = computed(() => {\n if (width.value < 768) {\n return {\n common: 24,\n datetime: 24,\n }\n }\n if (width.value < 900) {\n return {\n common: 12,\n datetime: 24,\n }\n }\n if (width.value < 1200) {\n return {\n common: 8,\n datetime: 16,\n }\n }\n return {\n common: 6,\n datetime: 12,\n }\n})\nconst onComSearch = () => {\n const comSearchData: comSearchData[] = []\n for (const key in DkTable.comSearch.form) {\n if (!DkTable.comSearch.fieldData.has(key)) {\n continue\n }\n let val = ''\n const fieldDataTemp = DkTable.comSearch.fieldData.get(key)\n if (\n fieldDataTemp.render == 'datetime' &&\n (fieldDataTemp.operator == 'RANGE' || fieldDataTemp.operator == 'NOT RANGE')\n ) {\n // 时间范围组件返回的是时间数组\n if (DkTable.comSearch.form[key] && DkTable.comSearch.form[key].length >= 2) {\n // 数组转字符串,以实现通过url参数传递预设搜索值\n if (fieldDataTemp.comSearchRender == 'date') {\n val = DkTable.comSearch.form[key][0] + ' 00:00:00' + ',' + DkTable.comSearch.form[key][1] + ' 23:59:59'\n } else {\n val = DkTable.comSearch.form[key][0] + ',' + DkTable.comSearch.form[key][1]\n }\n }\n } else if (\n fieldDataTemp.render == 'time' &&\n (fieldDataTemp.operator == 'RANGE' || fieldDataTemp.operator == 'NOT RANGE')\n ) {\n // 时间范围组件返回的是时间数组\n if (DkTable.comSearch.form[key] && DkTable.comSearch.form[key].length >= 2) {\n // 数组转字符串,以实现通过url参数传递预设搜索值\n // if (fieldDataTemp.comSearchRender == 'date') {\n // val = DkTable.comSearch.form[key][0] + ' 00:00:00' + ',' + DkTable.comSearch.form[key][1] + ' 23:59:59'\n // } else {\n val = DkTable.comSearch.form[key][0] + ',' + DkTable.comSearch.form[key][1]\n // console.log('val', val, DkTable.comSearch.form[key])\n // }\n }\n } else if (fieldDataTemp.operator == 'RANGE' || fieldDataTemp.operator == 'NOT RANGE') {\n // 普通的范围筛选,DkTable在初始化时已准备好start和end字段\n if (!DkTable.comSearch.form[key + '-start'] && !DkTable.comSearch.form[key + '-end']) {\n continue\n }\n val = DkTable.comSearch.form[key + '-start'] + ',' + DkTable.comSearch.form[key + '-end']\n } else if (DkTable.comSearch.form[key]) {\n val = DkTable.comSearch.form[key]\n }\n\n if (val) {\n comSearchData.push({\n field: key,\n val,\n operator: fieldDataTemp.operator,\n render: fieldDataTemp.render,\n })\n }\n }\n\n // console.log('comSearchData', comSearchData)\n DkTable.onTableAction('com-search', comSearchData)\n}\n\nconst onResetForm = () => {\n // 封装好的onResetForm在此处不能使用\n for (const key in DkTable.comSearch.form) {\n DkTable.comSearch.form[key] = ''\n }\n onComSearch()\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ComSearch.vue2.mjs","sources":["../../../../src/table/src/components/ComSearch.vue"],"sourcesContent":["<template>\n <div ref=\"el\" class=\"table-com-search\">\n <el-form\n label-position=\"top\"\n :model=\"DkTable.comSearch.form\"\n @submit.prevent=\"\"\n @keyup.enter=\"onComSearch\"\n >\n <el-row>\n <template v-for=\"(item, idx) in DkTable.table.column\" :key=\"idx\">\n <template v-if=\"item.operator !== false\">\n <!-- 自定义渲染 component、slot -->\n <el-col\n v-if=\"\n item.comSearchRender == 'customRender' ||\n item.comSearchRender == 'slot'\n \"\n :span=\"spans.common\"\n >\n <!-- 外部可以使用 :deep() 选择器修改css样式 -->\n <div class=\"com-search-col\">\n <div\n v-if=\"item.comSearchShowLabel !== false\"\n class=\"com-search-col-label\"\n >\n {{ item.label }}\n </div>\n <div class=\"com-search-col-input\">\n <!-- 自定义组件/函数渲染 -->\n <component\n :is=\"item.comSearchComponent\"\n v-if=\"item.comSearchRender == 'customRender'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n v-bind=\"item.comSearchProps\"\n :placeholder=\"item.operatorPlaceholder\"\n ></component>\n\n <!-- 自定义渲染-slot -->\n <slot\n v-else-if=\"item.comSearchRender == 'slot'\"\n :name=\"item.comSearchSlotName\"\n ></slot>\n </div>\n </div>\n </el-col>\n\n <!-- 时间范围 -->\n <el-col\n v-else-if=\"\n item.render == 'datetime' &&\n (item.operator == 'RANGE' || item.operator == 'NOT RANGE')\n \"\n :span=\"spans.datetime\"\n >\n <div class=\"com-search-col\">\n <div\n v-if=\"item.comSearchShowLabel !== false\"\n class=\"com-search-col-label\"\n >\n {{ item.label }}\n </div>\n <div class=\"com-search-col-input-range\">\n <el-date-picker\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n class=\"datetime-picker\"\n :default-value=\"\n DkTable.comSearch.form[item.prop! + '-default']\n ? DkTable.comSearch.form[item.prop! + '-default']\n : [new Date(), new Date()]\n \"\n :type=\"\n item.comSearchRender == 'date'\n ? 'daterange'\n : 'datetimerange'\n \"\n range-separator=\"到\"\n start-placeholder=\"开始日期\"\n end-placeholder=\"结束日期\"\n :value-format=\"\n item.comSearchRender == 'date'\n ? 'YYYY-MM-DD'\n : 'YYYY-MM-DD HH:mm:ss'\n \"\n :teleported=\"false\"\n />\n </div>\n </div>\n </el-col>\n <!--时间范围-->\n <el-col\n v-else-if=\"\n item.render == 'time' &&\n (item.operator == 'RANGE' || item.operator == 'NOT RANGE')\n \"\n :span=\"spans.datetime\"\n >\n <div class=\"com-search-col\">\n <div\n v-if=\"item.comSearchShowLabel !== false\"\n class=\"com-search-col-label\"\n >\n {{ item.label }}\n </div>\n <div class=\"com-search-col-input-range\">\n <el-time-picker\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n is-range\n range-separator=\"到\"\n format=\"HH:mm:ss\"\n value-format=\"HH:mm:ss\"\n start-placeholder=\"开始时间\"\n end-placeholder=\"结束时间\"\n ></el-time-picker>\n </div>\n </div>\n </el-col>\n <el-col v-else :span=\"spans.common\">\n <div class=\"com-search-col\">\n <div\n v-if=\"item.comSearchShowLabel !== false\"\n class=\"com-search-col-label\"\n >\n {{ item.label }}\n </div>\n <!-- 数字范围 -->\n <div\n v-if=\"\n item.operator == 'RANGE' || item.operator == 'NOT RANGE'\n \"\n class=\"com-search-col-input-range\"\n >\n <el-input\n v-model=\"DkTable.comSearch.form[item.prop! + '-start']\"\n :placeholder=\"item.operatorPlaceholder\"\n type=\"string\"\n :clearable=\"true\"\n ></el-input>\n <div class=\"range-separator\">到</div>\n <el-input\n v-model=\"DkTable.comSearch.form[item.prop! + '-end']\"\n :placeholder=\"item.operatorPlaceholder\"\n type=\"string\"\n :clearable=\"true\"\n ></el-input>\n </div>\n <!-- 是否 [NOT] NULL -->\n <div\n v-else-if=\"\n item.operator == 'NULL' || item.operator == 'NOT NULL'\n \"\n class=\"com-search-col-input\"\n >\n <el-checkbox\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :label=\"item.operator\"\n size=\"large\"\n ></el-checkbox>\n </div>\n <div v-else-if=\"item.operator\" class=\"com-search-col-input\">\n <!-- 时间筛选 -->\n <el-date-picker\n v-if=\"\n item.render == 'datetime' ||\n item.comSearchRender == 'date'\n \"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n class=\"datetime-picker\"\n :type=\"item.comSearchRender == 'date' ? 'date' : 'datetime'\"\n :value-format=\"\n item.comSearchRender == 'date'\n ? 'YYYY-MM-DD'\n : 'YYYY-MM-DD HH:mm:ss'\n \"\n :placeholder=\"item.operatorPlaceholder\"\n :default-value=\"\n DkTable.comSearch.form[item.prop! + '-default']\n ? DkTable.comSearch.form[item.prop! + '-default']\n : new Date()\n \"\n :teleported=\"false\"\n />\n <!-- 年筛选 -->\n <el-date-picker\n v-if=\"item.render == 'year'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n class=\"datetime-picker\"\n type=\"year\"\n value-format=\"YYYY\"\n style=\"width: 100%\"\n :placeholder=\"item.operatorPlaceholder\"\n />\n <!-- tag、tags、select -->\n <el-select\n v-else-if=\"\n (item.render == 'tag' ||\n item.render == 'tags' ||\n item.comSearchRender == 'select') &&\n item.replaceValue\n \"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :placeholder=\"item.operatorPlaceholder\"\n :clearable=\"true\"\n >\n <el-option\n v-for=\"(opt, okey) in item.replaceValue\"\n :key=\"item.prop! + okey\"\n :label=\"opt\"\n :value=\"okey\"\n />\n </el-select>\n\n <!-- 远程 select -->\n <dk-select\n v-else-if=\"item.comSearchRender == 'remoteSelect'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n filterable\n :placeholder=\"item.operatorPlaceholder\"\n :remote-url=\"item.remoteUrl\"\n ></dk-select>\n\n <!-- 开关 -->\n <el-select\n v-else-if=\"item.render == 'switch'\"\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :placeholder=\"item.operatorPlaceholder\"\n :clearable=\"true\"\n >\n <template v-if=\"!isEmpty(item.replaceValue)\">\n <el-option\n v-for=\"(opt, okey) in item.replaceValue\"\n :key=\"item.prop! + okey\"\n :label=\"opt\"\n :value=\"okey\"\n />\n </template>\n <template v-else>\n <el-option label=\"开\" value=\"1\" />\n <el-option label=\"关\" value=\"0\" />\n </template>\n </el-select>\n\n <!-- 字符串 -->\n <el-input\n v-else\n v-model=\"DkTable.comSearch.form[item.prop!]\"\n :placeholder=\"item.operatorPlaceholder\"\n type=\"string\"\n :clearable=\"true\"\n ></el-input>\n </div>\n </div>\n </el-col>\n </template>\n </template>\n <el-col :xs=\"24\" :sm=\"6\">\n <div class=\"com-search-col pl-20\">\n <el-button v-blur type=\"primary\" @click=\"onComSearch\">\n 搜索</el-button\n >\n <el-button @click=\"onResetForm()\">重置</el-button>\n </div>\n </el-col>\n </el-row>\n </el-form>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { inject, ref, computed } from 'vue'\nimport { isEmpty } from 'lodash-es'\nimport { useElementSize } from '@vueuse/core'\nimport DkTableClass from '../../utils/dkTable'\n\nconst DkTable = inject('DkTable') as DkTableClass\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\nconst spans = computed(() => {\n if (width.value < 768) {\n return {\n common: 24,\n datetime: 24,\n }\n }\n if (width.value < 900) {\n return {\n common: 12,\n datetime: 24,\n }\n }\n if (width.value < 1200) {\n return {\n common: 8,\n datetime: 16,\n }\n }\n return {\n common: 6,\n datetime: 12,\n }\n})\nconst onComSearch = () => {\n const comSearchData: comSearchData[] = []\n for (const key in DkTable.comSearch.form) {\n if (!DkTable.comSearch.fieldData.has(key)) {\n continue\n }\n let val = ''\n const fieldDataTemp = DkTable.comSearch.fieldData.get(key)\n if (\n fieldDataTemp.render == 'datetime' &&\n (fieldDataTemp.operator == 'RANGE' ||\n fieldDataTemp.operator == 'NOT RANGE')\n ) {\n // 时间范围组件返回的是时间数组\n if (\n DkTable.comSearch.form[key] &&\n DkTable.comSearch.form[key].length >= 2\n ) {\n // 数组转字符串,以实现通过url参数传递预设搜索值\n if (fieldDataTemp.comSearchRender == 'date') {\n val =\n DkTable.comSearch.form[key][0] +\n ' 00:00:00' +\n ',' +\n DkTable.comSearch.form[key][1] +\n ' 23:59:59'\n } else {\n val =\n DkTable.comSearch.form[key][0] +\n ',' +\n DkTable.comSearch.form[key][1]\n }\n }\n } else if (\n fieldDataTemp.render == 'time' &&\n (fieldDataTemp.operator == 'RANGE' ||\n fieldDataTemp.operator == 'NOT RANGE')\n ) {\n // 时间范围组件返回的是时间数组\n if (\n DkTable.comSearch.form[key] &&\n DkTable.comSearch.form[key].length >= 2\n ) {\n // 数组转字符串,以实现通过url参数传递预设搜索值\n // if (fieldDataTemp.comSearchRender == 'date') {\n // val = DkTable.comSearch.form[key][0] + ' 00:00:00' + ',' + DkTable.comSearch.form[key][1] + ' 23:59:59'\n // } else {\n val =\n DkTable.comSearch.form[key][0] + ',' + DkTable.comSearch.form[key][1]\n // console.log('val', val, DkTable.comSearch.form[key])\n // }\n }\n } else if (\n fieldDataTemp.operator == 'RANGE' ||\n fieldDataTemp.operator == 'NOT RANGE'\n ) {\n // 普通的范围筛选,DkTable在初始化时已准备好start和end字段\n if (\n !DkTable.comSearch.form[key + '-start'] &&\n !DkTable.comSearch.form[key + '-end']\n ) {\n continue\n }\n val =\n DkTable.comSearch.form[key + '-start'] +\n ',' +\n DkTable.comSearch.form[key + '-end']\n } else if (DkTable.comSearch.form[key]) {\n val = DkTable.comSearch.form[key]\n }\n\n if (val) {\n comSearchData.push({\n field: key,\n val,\n operator: fieldDataTemp.operator,\n render: fieldDataTemp.render,\n })\n }\n }\n\n // console.log('comSearchData', comSearchData)\n DkTable.onTableAction('com-search', comSearchData)\n}\n\nconst onResetForm = () => {\n // 封装好的onResetForm在此处不能使用\n for (const key in DkTable.comSearch.form) {\n DkTable.comSearch.form[key] = ''\n }\n onComSearch()\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiRA,IAAM,MAAA,OAAA,GAAU,OAAO,SAAS,CAAA,CAAA;AAChC,IAAM,MAAA,EAAA,GAAU,IAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAA,cAAA,CAAe,EAAE,CAAA,CAAA;AACnC,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAI,IAAA,KAAA,CAAM,QAAQ,GAAK,EAAA;AACrB,QAAO,OAAA;AAAA,UACL,MAAQ,EAAA,EAAA;AAAA,UACR,QAAU,EAAA,EAAA;AAAA,SACZ,CAAA;AAAA,OACF;AACA,MAAI,IAAA,KAAA,CAAM,QAAQ,GAAK,EAAA;AACrB,QAAO,OAAA;AAAA,UACL,MAAQ,EAAA,EAAA;AAAA,UACR,QAAU,EAAA,EAAA;AAAA,SACZ,CAAA;AAAA,OACF;AACA,MAAI,IAAA,KAAA,CAAM,QAAQ,IAAM,EAAA;AACtB,QAAO,OAAA;AAAA,UACL,MAAQ,EAAA,CAAA;AAAA,UACR,QAAU,EAAA,EAAA;AAAA,SACZ,CAAA;AAAA,OACF;AACA,MAAO,OAAA;AAAA,QACL,MAAQ,EAAA,CAAA;AAAA,QACR,QAAU,EAAA,EAAA;AAAA,OACZ,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,MAAM,gBAAiC,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