@vipl520/dk-ui 1.0.40 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (439) hide show
  1. package/dist/attributes.json +23 -3
  2. package/dist/index.css +1 -1
  3. package/dist/index.min.js +4 -13
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +4 -13
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/tags.json +7 -2
  8. package/dist/web-types.json +71 -12
  9. package/es/animate-select/src/animate-select.vue.mjs +1 -1
  10. package/es/animate-select/src/animate-select.vue2.mjs +5 -1
  11. package/es/animate-select/src/animate-select.vue2.mjs.map +1 -1
  12. package/es/api/attachment.mjs.map +1 -1
  13. package/es/attachment/src/attachment.vue.mjs +1 -1
  14. package/es/attachment/src/attachment.vue2.mjs +7 -1
  15. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  16. package/es/attachment/src/file-icon.vue.mjs +1 -1
  17. package/es/attachment-dialog/index.d.ts +9 -0
  18. package/es/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
  19. package/es/attachment-dialog/src/attachment-dialog.vue.mjs +1 -1
  20. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +3 -2
  21. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
  22. package/es/attachment-dialog/src/props.d.ts +4 -0
  23. package/es/attachment-dialog/src/props.mjs +4 -0
  24. package/es/attachment-dialog/src/props.mjs.map +1 -1
  25. package/es/audio-input/src/audio-input.vue.mjs +1 -1
  26. package/es/audio-list-input/src/audio-list-input.vue.mjs +1 -1
  27. package/es/audio-list-input/src/audio-list-input.vue2.mjs.map +1 -1
  28. package/es/box-size-input/src/box-size-input.vue.mjs +1 -1
  29. package/es/box-size-input/src/box-size-input.vue2.mjs +60 -59
  30. package/es/box-size-input/src/box-size-input.vue2.mjs.map +1 -1
  31. package/es/box-size-input/style/index.css +1 -1
  32. package/es/box-size-input/style/index.scss +11 -4
  33. package/es/color-input/src/color-input.vue.mjs +1 -1
  34. package/es/dialog/src/dialog.vue.mjs +1 -1
  35. package/es/dialog/src/dialog.vue2.mjs +3 -1
  36. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  37. package/es/dialog/style/index.scss +1 -0
  38. package/es/file-input/src/file-input.vue.mjs +1 -1
  39. package/es/file-input/src/file-input.vue2.mjs.map +1 -1
  40. package/es/file-list-input/src/file-list-input.vue.mjs +1 -1
  41. package/es/file-list-input/src/file-list-input.vue2.mjs.map +1 -1
  42. package/es/file-list-input/style/index.css +1 -1
  43. package/es/file-list-input/style/index.scss +20 -16
  44. package/es/form/src/form.vue.mjs +1 -1
  45. package/es/form/src/form.vue2.mjs.map +1 -1
  46. package/es/group/src/group.vue.mjs +1 -1
  47. package/es/group/src/group.vue2.mjs +3 -3
  48. package/es/group/src/group.vue2.mjs.map +1 -1
  49. package/es/hot-area-input/src/component/hot-area-content.vue.mjs +1 -1
  50. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  51. package/es/hot-area-input/src/hot-area-input.vue.mjs +1 -1
  52. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -1
  53. package/es/icon/src/icon.vue.mjs +1 -1
  54. package/es/icon/src/icon.vue2.mjs.map +1 -1
  55. package/es/icon-input/src/icon-content.vue.mjs +1 -1
  56. package/es/icon-input/src/icon-content.vue2.mjs +1 -1
  57. package/es/icon-input/src/icon-content.vue2.mjs.map +1 -1
  58. package/es/icon-input/src/icon-dialog.vue.mjs +1 -1
  59. package/es/icon-input/src/icon-input.vue.mjs +1 -1
  60. package/es/icon-input/src/icon-input.vue2.mjs.map +1 -1
  61. package/es/image-input/src/image-input.vue.mjs +1 -1
  62. package/es/image-list-input/src/image-list-input.vue.mjs +1 -1
  63. package/es/image-list-input/src/image-list-input.vue2.mjs.map +1 -1
  64. package/es/index.mjs +0 -10
  65. package/es/index.mjs.map +1 -1
  66. package/es/page-diy/index.mjs +0 -2
  67. package/es/page-diy/index.mjs.map +1 -1
  68. package/es/page-diy/src/components/DiyCloud.vue.mjs +1 -1
  69. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
  70. package/es/page-diy/src/components/DragBox.vue.mjs +7 -3
  71. package/es/page-diy/src/components/DragBox.vue.mjs.map +1 -1
  72. package/es/page-diy/src/components/DragTool.vue.mjs +6 -2
  73. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  74. package/es/page-diy/src/components/PreviewPhone.vue.mjs +1 -1
  75. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  76. package/es/page-diy/src/components/forms/DkEventCreateInput.vue.mjs +1 -1
  77. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +12 -10
  78. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -1
  79. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  80. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs +9 -1
  81. package/es/page-diy/src/config/rule/min/common/DkMinBlank.mjs.map +1 -1
  82. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs +3 -1
  83. package/es/page-diy/src/config/rule/min/common/DkMinHotArea.mjs.map +1 -1
  84. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +36 -6
  85. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  86. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +6 -2
  87. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -1
  88. package/es/page-diy/src/config/rule/min/common/index.mjs +8 -1
  89. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  90. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs +3 -1
  91. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -1
  92. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -1
  93. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs +7 -1
  94. package/es/page-diy/src/config/rule/web/common/DkViewDialog.mjs.map +1 -1
  95. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs +9 -3
  96. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -1
  97. package/es/page-diy/src/page-diy.vue.mjs +102 -34
  98. package/es/page-diy/src/page-diy.vue.mjs.map +1 -1
  99. package/es/page-diy/src/utils/eventData.mjs.map +1 -1
  100. package/es/page-diy/src/views/min/DkMinBlank.vue.mjs +1 -1
  101. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +24 -7
  102. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -1
  103. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +1 -1
  104. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  105. package/es/page-diy/src/views/min/DkMinTextarea.vue.mjs +1 -1
  106. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +1 -1
  107. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  108. package/es/page-diy/src/views/min/DkMinVideo.vue.mjs +1 -1
  109. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs +1 -1
  110. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -1
  111. package/es/page-diy/src/views/web/DkViewCell.vue.mjs +1 -1
  112. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -1
  113. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +4 -2
  114. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -1
  115. package/es/page-diy/src/views/web/DkViewDialog.vue.mjs +1 -1
  116. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs +1 -1
  117. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -1
  118. package/es/page-diy/src/views/web/DkViewImage.vue.mjs +1 -1
  119. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -1
  120. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs +1 -1
  121. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -1
  122. package/es/page-diy/src/views/web/DkViewNavBar.vue.mjs +1 -1
  123. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs +1 -1
  124. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -1
  125. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs +1 -1
  126. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -1
  127. package/es/page-diy/src/views/web/DkViewTabbar.vue.mjs +1 -1
  128. package/es/page-diy/src/views/web/DkViewTextarea.vue.mjs +1 -1
  129. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs +1 -1
  130. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -1
  131. package/es/page-diy/src/views/web/DkViewVideo.vue.mjs +1 -1
  132. package/es/page-diy/style/dk-page-diy.css +1 -1
  133. package/es/page-diy/style/dk-page-diy.scss +3 -3
  134. package/es/page-diy/style/index.css +1 -1
  135. package/es/poster-input/src/component/poster.vue.mjs +1 -1
  136. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  137. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue.mjs +1 -1
  138. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue2.mjs.map +1 -1
  139. package/es/poster-input/src/component/views/DkPosterViewImage.vue.mjs +1 -1
  140. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs +5 -2
  141. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs.map +1 -1
  142. package/es/poster-input/src/component/views/DkPosterViewName.vue.mjs +1 -1
  143. package/es/poster-input/src/component/views/DkPosterViewName.vue2.mjs.map +1 -1
  144. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue.mjs +1 -1
  145. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue2.mjs.map +1 -1
  146. package/es/poster-input/src/component/views/DkPosterViewText.vue.mjs +1 -1
  147. package/es/poster-input/src/component/views/DkPosterViewText.vue2.mjs.map +1 -1
  148. package/es/poster-input/src/component/views/quick-action.vue.mjs +1 -1
  149. package/es/poster-input/src/component/views/quick-action.vue2.mjs.map +1 -1
  150. package/es/poster-input/src/poster-input.vue.mjs +1 -1
  151. package/es/poster-input/src/poster-input.vue2.mjs.map +1 -1
  152. package/es/poster-input/style/index.scss +4 -2
  153. package/es/select/src/select.vue.mjs +1 -1
  154. package/es/select/src/select.vue2.mjs +9 -1
  155. package/es/select/src/select.vue2.mjs.map +1 -1
  156. package/es/style-animation-input/src/props.mjs.map +1 -1
  157. package/es/style-animation-input/src/style-animation-input.vue.mjs +1 -1
  158. package/es/style-animation-input/src/style-animation-input.vue2.mjs +1 -1
  159. package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -1
  160. package/es/style-background-input/index.d.ts +2 -1
  161. package/es/style-background-input/src/style-background-input.vue.d.ts +2 -1
  162. package/es/style-background-input/src/style-background-input.vue.mjs +1 -1
  163. package/es/style-background-input/src/style-background-input.vue2.mjs +2 -1
  164. package/es/style-background-input/src/style-background-input.vue2.mjs.map +1 -1
  165. package/es/style-border-input/index.d.ts +2 -1
  166. package/es/style-border-input/src/style-border-input.vue.d.ts +2 -1
  167. package/es/style-border-input/src/style-border-input.vue.mjs +1 -1
  168. package/es/style-border-input/src/style-border-input.vue2.mjs +55 -38
  169. package/es/style-border-input/src/style-border-input.vue2.mjs.map +1 -1
  170. package/es/style-box-input/index.d.ts +2 -1
  171. package/es/style-box-input/src/style-box-input.vue.d.ts +2 -1
  172. package/es/style-box-input/src/style-box-input.vue.mjs +1 -1
  173. package/es/style-box-input/src/style-box-input.vue2.mjs +2 -1
  174. package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
  175. package/es/style-font-input/index.d.ts +2 -1
  176. package/es/style-font-input/src/style-font-input.vue.d.ts +2 -1
  177. package/es/style-font-input/src/style-font-input.vue.mjs +1 -1
  178. package/es/style-font-input/src/style-font-input.vue2.mjs +8 -7
  179. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  180. package/es/style-input/src/style-input.vue.mjs +1 -1
  181. package/es/style-input/src/style-input.vue2.mjs +15 -22
  182. package/es/style-input/src/style-input.vue2.mjs.map +1 -1
  183. package/es/style-number-input/src/style-number-input.vue.mjs +1 -1
  184. package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
  185. package/es/style-position-input/src/style-position-input.vue.mjs +1 -1
  186. package/es/style-position-input/src/style-position-input.vue2.mjs +4 -1
  187. package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
  188. package/es/style-shadow-input/index.d.ts +2 -1
  189. package/es/style-shadow-input/src/style-shadow-content.vue.mjs +1 -1
  190. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs +144 -155
  191. package/es/style-shadow-input/src/style-shadow-content.vue2.mjs.map +1 -1
  192. package/es/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
  193. package/es/style-shadow-input/src/style-shadow-input.vue.mjs +1 -1
  194. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +2 -1
  195. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
  196. package/es/table/src/components/ComSearch.vue.mjs +1 -1
  197. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  198. package/es/table/src/components/FieldRender.vue.mjs +1 -1
  199. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  200. package/es/table/src/components/RecycleDialog.vue.mjs +1 -1
  201. package/es/table/src/components/RecycleDialog.vue2.mjs +3 -1
  202. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  203. package/es/table/src/components/header.vue.mjs +1 -1
  204. package/es/table/src/components/header.vue2.mjs +17 -3
  205. package/es/table/src/components/header.vue2.mjs.map +1 -1
  206. package/es/table/src/props.mjs +11 -1
  207. package/es/table/src/props.mjs.map +1 -1
  208. package/es/table/src/table.vue.mjs +1 -1
  209. package/es/table/src/table.vue2.mjs +13 -3
  210. package/es/table/src/table.vue2.mjs.map +1 -1
  211. package/es/table/utils/dkTable.mjs +32 -11
  212. package/es/table/utils/dkTable.mjs.map +1 -1
  213. package/es/table/utils/dkTableApi.mjs.map +1 -1
  214. package/es/test/src/test.vue.mjs +1 -1
  215. package/es/tiny-editor/src/tiny-editor.vue.mjs +1 -1
  216. package/es/tiny-editor/src/tiny-editor.vue2.mjs +7 -3
  217. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  218. package/es/tiny-editor/style/index.css +1 -1
  219. package/es/tiny-editor/style/index.scss +5 -0
  220. package/es/video-input/src/video-input.vue.mjs +1 -1
  221. package/es/video-list-input/src/video-list-input.vue.mjs +1 -1
  222. package/es/video-list-input/src/video-list-input.vue2.mjs.map +1 -1
  223. package/lib/animate-select/src/animate-select.vue.js +1 -1
  224. package/lib/animate-select/src/animate-select.vue2.js +5 -1
  225. package/lib/animate-select/src/animate-select.vue2.js.map +1 -1
  226. package/lib/api/attachment.js.map +1 -1
  227. package/lib/attachment/src/attachment.vue.js +1 -1
  228. package/lib/attachment/src/attachment.vue2.js +7 -1
  229. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  230. package/lib/attachment/src/file-icon.vue.js +1 -1
  231. package/lib/attachment-dialog/index.d.ts +9 -0
  232. package/lib/attachment-dialog/src/attachment-dialog.vue.d.ts +9 -0
  233. package/lib/attachment-dialog/src/attachment-dialog.vue.js +1 -1
  234. package/lib/attachment-dialog/src/attachment-dialog.vue2.js +3 -2
  235. package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
  236. package/lib/attachment-dialog/src/props.d.ts +4 -0
  237. package/lib/attachment-dialog/src/props.js +4 -0
  238. package/lib/attachment-dialog/src/props.js.map +1 -1
  239. package/lib/audio-input/src/audio-input.vue.js +1 -1
  240. package/lib/audio-list-input/src/audio-list-input.vue.js +1 -1
  241. package/lib/audio-list-input/src/audio-list-input.vue2.js.map +1 -1
  242. package/lib/box-size-input/src/box-size-input.vue.js +1 -1
  243. package/lib/box-size-input/src/box-size-input.vue2.js +59 -58
  244. package/lib/box-size-input/src/box-size-input.vue2.js.map +1 -1
  245. package/lib/box-size-input/style/index.css +1 -1
  246. package/lib/box-size-input/style/index.scss +11 -4
  247. package/lib/color-input/src/color-input.vue.js +1 -1
  248. package/lib/dialog/src/dialog.vue.js +1 -1
  249. package/lib/dialog/src/dialog.vue2.js +3 -1
  250. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  251. package/lib/dialog/style/index.scss +1 -0
  252. package/lib/file-input/src/file-input.vue.js +1 -1
  253. package/lib/file-input/src/file-input.vue2.js.map +1 -1
  254. package/lib/file-list-input/src/file-list-input.vue.js +1 -1
  255. package/lib/file-list-input/src/file-list-input.vue2.js.map +1 -1
  256. package/lib/file-list-input/style/index.css +1 -1
  257. package/lib/file-list-input/style/index.scss +20 -16
  258. package/lib/form/src/form.vue.js +1 -1
  259. package/lib/form/src/form.vue2.js.map +1 -1
  260. package/lib/group/src/group.vue.js +1 -1
  261. package/lib/group/src/group.vue2.js +2 -2
  262. package/lib/group/src/group.vue2.js.map +1 -1
  263. package/lib/hot-area-input/src/component/hot-area-content.vue.js +1 -1
  264. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  265. package/lib/hot-area-input/src/hot-area-input.vue.js +1 -1
  266. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -1
  267. package/lib/icon/src/icon.vue.js +1 -1
  268. package/lib/icon/src/icon.vue2.js.map +1 -1
  269. package/lib/icon-input/src/icon-content.vue.js +1 -1
  270. package/lib/icon-input/src/icon-content.vue2.js +1 -1
  271. package/lib/icon-input/src/icon-content.vue2.js.map +1 -1
  272. package/lib/icon-input/src/icon-dialog.vue.js +1 -1
  273. package/lib/icon-input/src/icon-input.vue.js +1 -1
  274. package/lib/icon-input/src/icon-input.vue2.js.map +1 -1
  275. package/lib/image-input/src/image-input.vue.js +1 -1
  276. package/lib/image-list-input/src/image-list-input.vue.js +1 -1
  277. package/lib/image-list-input/src/image-list-input.vue2.js.map +1 -1
  278. package/lib/index.js +0 -10
  279. package/lib/index.js.map +1 -1
  280. package/lib/page-diy/index.js +0 -2
  281. package/lib/page-diy/index.js.map +1 -1
  282. package/lib/page-diy/src/components/DiyCloud.vue.js +1 -1
  283. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
  284. package/lib/page-diy/src/components/DragBox.vue.js +7 -3
  285. package/lib/page-diy/src/components/DragBox.vue.js.map +1 -1
  286. package/lib/page-diy/src/components/DragTool.vue.js +6 -2
  287. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  288. package/lib/page-diy/src/components/PreviewPhone.vue.js +1 -1
  289. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  290. package/lib/page-diy/src/components/forms/DkEventCreateInput.vue.js +1 -1
  291. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +12 -10
  292. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -1
  293. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  294. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js +9 -1
  295. package/lib/page-diy/src/config/rule/min/common/DkMinBlank.js.map +1 -1
  296. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js +3 -1
  297. package/lib/page-diy/src/config/rule/min/common/DkMinHotArea.js.map +1 -1
  298. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +36 -6
  299. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  300. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +6 -2
  301. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -1
  302. package/lib/page-diy/src/config/rule/min/common/index.js +8 -1
  303. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  304. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js +3 -1
  305. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -1
  306. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -1
  307. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js +7 -1
  308. package/lib/page-diy/src/config/rule/web/common/DkViewDialog.js.map +1 -1
  309. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js +9 -3
  310. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -1
  311. package/lib/page-diy/src/page-diy.vue.js +102 -34
  312. package/lib/page-diy/src/page-diy.vue.js.map +1 -1
  313. package/lib/page-diy/src/utils/eventData.js.map +1 -1
  314. package/lib/page-diy/src/views/min/DkMinBlank.vue.js +1 -1
  315. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +24 -7
  316. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -1
  317. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +1 -1
  318. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  319. package/lib/page-diy/src/views/min/DkMinTextarea.vue.js +1 -1
  320. package/lib/page-diy/src/views/min/DkMinTitle.vue.js +1 -1
  321. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  322. package/lib/page-diy/src/views/min/DkMinVideo.vue.js +1 -1
  323. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js +1 -1
  324. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -1
  325. package/lib/page-diy/src/views/web/DkViewCell.vue.js +1 -1
  326. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -1
  327. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +4 -2
  328. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -1
  329. package/lib/page-diy/src/views/web/DkViewDialog.vue.js +1 -1
  330. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js +1 -1
  331. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -1
  332. package/lib/page-diy/src/views/web/DkViewImage.vue.js +1 -1
  333. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -1
  334. package/lib/page-diy/src/views/web/DkViewMusic.vue.js +1 -1
  335. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -1
  336. package/lib/page-diy/src/views/web/DkViewNavBar.vue.js +1 -1
  337. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js +1 -1
  338. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -1
  339. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js +1 -1
  340. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -1
  341. package/lib/page-diy/src/views/web/DkViewTabbar.vue.js +1 -1
  342. package/lib/page-diy/src/views/web/DkViewTextarea.vue.js +1 -1
  343. package/lib/page-diy/src/views/web/DkViewTitle.vue.js +1 -1
  344. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -1
  345. package/lib/page-diy/src/views/web/DkViewVideo.vue.js +1 -1
  346. package/lib/page-diy/style/dk-page-diy.css +1 -1
  347. package/lib/page-diy/style/dk-page-diy.scss +3 -3
  348. package/lib/page-diy/style/index.css +1 -1
  349. package/lib/poster-input/src/component/poster.vue.js +1 -1
  350. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  351. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue.js +1 -1
  352. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue2.js.map +1 -1
  353. package/lib/poster-input/src/component/views/DkPosterViewImage.vue.js +1 -1
  354. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js +5 -2
  355. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js.map +1 -1
  356. package/lib/poster-input/src/component/views/DkPosterViewName.vue.js +1 -1
  357. package/lib/poster-input/src/component/views/DkPosterViewName.vue2.js.map +1 -1
  358. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue.js +1 -1
  359. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue2.js.map +1 -1
  360. package/lib/poster-input/src/component/views/DkPosterViewText.vue.js +1 -1
  361. package/lib/poster-input/src/component/views/DkPosterViewText.vue2.js.map +1 -1
  362. package/lib/poster-input/src/component/views/quick-action.vue.js +1 -1
  363. package/lib/poster-input/src/component/views/quick-action.vue2.js.map +1 -1
  364. package/lib/poster-input/src/poster-input.vue.js +1 -1
  365. package/lib/poster-input/src/poster-input.vue2.js.map +1 -1
  366. package/lib/poster-input/style/index.scss +4 -2
  367. package/lib/select/src/select.vue.js +1 -1
  368. package/lib/select/src/select.vue2.js +9 -1
  369. package/lib/select/src/select.vue2.js.map +1 -1
  370. package/lib/style-animation-input/src/props.js.map +1 -1
  371. package/lib/style-animation-input/src/style-animation-input.vue.js +1 -1
  372. package/lib/style-animation-input/src/style-animation-input.vue2.js +1 -1
  373. package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -1
  374. package/lib/style-background-input/index.d.ts +2 -1
  375. package/lib/style-background-input/src/style-background-input.vue.d.ts +2 -1
  376. package/lib/style-background-input/src/style-background-input.vue.js +1 -1
  377. package/lib/style-background-input/src/style-background-input.vue2.js +2 -1
  378. package/lib/style-background-input/src/style-background-input.vue2.js.map +1 -1
  379. package/lib/style-border-input/index.d.ts +2 -1
  380. package/lib/style-border-input/src/style-border-input.vue.d.ts +2 -1
  381. package/lib/style-border-input/src/style-border-input.vue.js +1 -1
  382. package/lib/style-border-input/src/style-border-input.vue2.js +55 -38
  383. package/lib/style-border-input/src/style-border-input.vue2.js.map +1 -1
  384. package/lib/style-box-input/index.d.ts +2 -1
  385. package/lib/style-box-input/src/style-box-input.vue.d.ts +2 -1
  386. package/lib/style-box-input/src/style-box-input.vue.js +1 -1
  387. package/lib/style-box-input/src/style-box-input.vue2.js +2 -1
  388. package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
  389. package/lib/style-font-input/index.d.ts +2 -1
  390. package/lib/style-font-input/src/style-font-input.vue.d.ts +2 -1
  391. package/lib/style-font-input/src/style-font-input.vue.js +1 -1
  392. package/lib/style-font-input/src/style-font-input.vue2.js +8 -7
  393. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  394. package/lib/style-input/src/style-input.vue.js +1 -1
  395. package/lib/style-input/src/style-input.vue2.js +14 -21
  396. package/lib/style-input/src/style-input.vue2.js.map +1 -1
  397. package/lib/style-number-input/src/style-number-input.vue.js +1 -1
  398. package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
  399. package/lib/style-position-input/src/style-position-input.vue.js +1 -1
  400. package/lib/style-position-input/src/style-position-input.vue2.js +4 -1
  401. package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
  402. package/lib/style-shadow-input/index.d.ts +2 -1
  403. package/lib/style-shadow-input/src/style-shadow-content.vue.js +1 -1
  404. package/lib/style-shadow-input/src/style-shadow-content.vue2.js +144 -155
  405. package/lib/style-shadow-input/src/style-shadow-content.vue2.js.map +1 -1
  406. package/lib/style-shadow-input/src/style-shadow-input.vue.d.ts +2 -1
  407. package/lib/style-shadow-input/src/style-shadow-input.vue.js +1 -1
  408. package/lib/style-shadow-input/src/style-shadow-input.vue2.js +2 -1
  409. package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
  410. package/lib/table/src/components/ComSearch.vue.js +1 -1
  411. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  412. package/lib/table/src/components/FieldRender.vue.js +1 -1
  413. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  414. package/lib/table/src/components/RecycleDialog.vue.js +1 -1
  415. package/lib/table/src/components/RecycleDialog.vue2.js +3 -1
  416. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  417. package/lib/table/src/components/header.vue.js +1 -1
  418. package/lib/table/src/components/header.vue2.js +17 -3
  419. package/lib/table/src/components/header.vue2.js.map +1 -1
  420. package/lib/table/src/props.js +11 -1
  421. package/lib/table/src/props.js.map +1 -1
  422. package/lib/table/src/table.vue.js +1 -1
  423. package/lib/table/src/table.vue2.js +13 -3
  424. package/lib/table/src/table.vue2.js.map +1 -1
  425. package/lib/table/utils/dkTable.js +32 -11
  426. package/lib/table/utils/dkTable.js.map +1 -1
  427. package/lib/table/utils/dkTableApi.js.map +1 -1
  428. package/lib/test/src/test.vue.js +1 -1
  429. package/lib/tiny-editor/src/tiny-editor.vue.js +1 -1
  430. package/lib/tiny-editor/src/tiny-editor.vue2.js +7 -3
  431. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  432. package/lib/tiny-editor/style/index.css +1 -1
  433. package/lib/tiny-editor/style/index.scss +5 -0
  434. package/lib/video-input/src/video-input.vue.js +1 -1
  435. package/lib/video-list-input/src/video-list-input.vue.js +1 -1
  436. package/lib/video-list-input/src/video-list-input.vue2.js.map +1 -1
  437. package/package.json +3 -2
  438. package/dist/index.js +0 -34318
  439. package/dist/index.mjs +0 -34228
@@ -5,24 +5,28 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var core = require('@vueuse/core');
7
7
 
8
- const _hoisted_1 = { class: "shadow-content-shortcut" };
9
- const _hoisted_2 = { class: "default-css m-b-10px" };
10
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode(
8
+ const _hoisted_1 = { class: "flex" };
9
+ const _hoisted_2 = { class: "flex" };
10
+ const _hoisted_3 = { class: "flex" };
11
+ const _hoisted_4 = { class: "flex" };
12
+ const _hoisted_5 = { class: "shadow-content-shortcut" };
13
+ const _hoisted_6 = { class: "default-css m-b-10px" };
14
+ const _hoisted_7 = /* @__PURE__ */ vue.createElementVNode(
11
15
  "div",
12
16
  { class: "m-b-10px" },
13
17
  "\u5E38\u7528\u6837\u5F0F",
14
18
  -1
15
19
  /* HOISTED */
16
20
  );
17
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode(
21
+ const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode(
18
22
  "i",
19
23
  { id: "center" },
20
24
  null,
21
25
  -1
22
26
  /* HOISTED */
23
27
  );
24
- const _hoisted_5 = [
25
- _hoisted_4
28
+ const _hoisted_9 = [
29
+ _hoisted_8
26
30
  ];
27
31
  const __default__ = vue.defineComponent({
28
32
  name: "DkStyleShadowContent"
@@ -96,8 +100,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
96
100
  }
97
101
  };
98
102
  vue.watch(position, () => {
99
- form.x = parseInt(String((position.left - props.boxSize / 2) / props.boxSize * props.max));
100
- form.y = parseInt(String((position.top - props.boxSize / 2) / props.boxSize * props.max));
103
+ form.x = parseInt(
104
+ String((position.left - props.boxSize / 2) / props.boxSize * props.max)
105
+ );
106
+ form.y = parseInt(
107
+ String((position.top - props.boxSize / 2) / props.boxSize * props.max)
108
+ );
101
109
  });
102
110
  vue.watch(form, () => {
103
111
  let value = `${form.x}${form.x_unit} ${form.y}${form.y_unit} ${form.vague}${form.vague_unit} ${form.extend}${form.extend_unit} ${form.color}`;
@@ -155,9 +163,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
155
163
  const _component_el_radio_group = vue.resolveComponent("el-radio-group");
156
164
  const _component_el_form_item = vue.resolveComponent("el-form-item");
157
165
  const _component_dk_color_input = vue.resolveComponent("dk-color-input");
166
+ const _component_el_input = vue.resolveComponent("el-input");
158
167
  const _component_el_option = vue.resolveComponent("el-option");
159
168
  const _component_el_select = vue.resolveComponent("el-select");
160
- const _component_el_input = vue.resolveComponent("el-input");
161
169
  const _component_el_form = vue.resolveComponent("el-form");
162
170
  const _component_el_button = vue.resolveComponent("el-button");
163
171
  return vue.openBlock(), vue.createElementBlock(
@@ -183,14 +191,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
183
191
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.type = $event)
184
192
  }, {
185
193
  default: vue.withCtx(() => [
186
- vue.createVNode(_component_el_radio_button, { label: "external" }, {
194
+ vue.createVNode(_component_el_radio_button, { value: "external" }, {
187
195
  default: vue.withCtx(() => [
188
196
  vue.createTextVNode("\u5916\u90E8")
189
197
  ]),
190
198
  _: 1
191
199
  /* STABLE */
192
200
  }),
193
- vue.createVNode(_component_el_radio_button, { label: "inset" }, {
201
+ vue.createVNode(_component_el_radio_button, { value: "inset" }, {
194
202
  default: vue.withCtx(() => [
195
203
  vue.createTextVNode("\u5185\u90E8")
196
204
  ]),
@@ -218,164 +226,145 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
218
226
  }),
219
227
  vue.createVNode(_component_el_form_item, { label: "x\u8F74" }, {
220
228
  default: vue.withCtx(() => [
221
- vue.createVNode(_component_el_input, {
222
- modelValue: form.x,
223
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.x = $event),
224
- type: "number"
225
- }, {
226
- append: vue.withCtx(() => [
227
- vue.createVNode(_component_el_select, {
228
- modelValue: form.x_unit,
229
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.x_unit = $event),
230
- placeholder: "\u8BF7\u9009\u62E9",
231
- class: "w-40px",
232
- "suffix-icon": ""
233
- }, {
234
- default: vue.withCtx(() => [
235
- (vue.openBlock(), vue.createElementBlock(
236
- vue.Fragment,
237
- null,
238
- vue.renderList(units, (item) => {
239
- return vue.createVNode(_component_el_option, {
240
- key: item,
241
- label: item,
242
- value: item
243
- }, null, 8, ["label", "value"]);
244
- }),
245
- 64
246
- /* STABLE_FRAGMENT */
247
- ))
248
- ]),
249
- _: 1
250
- /* STABLE */
251
- }, 8, ["modelValue"])
252
- ]),
253
- _: 1
254
- /* STABLE */
255
- }, 8, ["modelValue"])
229
+ vue.createElementVNode("div", _hoisted_1, [
230
+ vue.createVNode(_component_el_input, {
231
+ modelValue: form.x,
232
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.x = $event),
233
+ type: "number"
234
+ }, null, 8, ["modelValue"]),
235
+ vue.createVNode(_component_el_select, {
236
+ modelValue: form.x_unit,
237
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.x_unit = $event),
238
+ placeholder: "\u8BF7\u9009\u62E9"
239
+ }, {
240
+ default: vue.withCtx(() => [
241
+ (vue.openBlock(), vue.createElementBlock(
242
+ vue.Fragment,
243
+ null,
244
+ vue.renderList(units, (item) => {
245
+ return vue.createVNode(_component_el_option, {
246
+ key: item,
247
+ label: item,
248
+ value: item
249
+ }, null, 8, ["label", "value"]);
250
+ }),
251
+ 64
252
+ /* STABLE_FRAGMENT */
253
+ ))
254
+ ]),
255
+ _: 1
256
+ /* STABLE */
257
+ }, 8, ["modelValue"])
258
+ ])
256
259
  ]),
257
260
  _: 1
258
261
  /* STABLE */
259
262
  }),
260
263
  vue.createVNode(_component_el_form_item, { label: "y\u8F74" }, {
261
264
  default: vue.withCtx(() => [
262
- vue.createVNode(_component_el_input, {
263
- modelValue: form.y,
264
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.y = $event),
265
- type: "number"
266
- }, {
267
- append: vue.withCtx(() => [
268
- vue.createVNode(_component_el_select, {
269
- modelValue: form.y_unit,
270
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.y_unit = $event),
271
- placeholder: "\u8BF7\u9009\u62E9",
272
- class: "w-40px",
273
- "suffix-icon": ""
274
- }, {
275
- default: vue.withCtx(() => [
276
- (vue.openBlock(), vue.createElementBlock(
277
- vue.Fragment,
278
- null,
279
- vue.renderList(units, (item) => {
280
- return vue.createVNode(_component_el_option, {
281
- key: item,
282
- label: item,
283
- value: item
284
- }, null, 8, ["label", "value"]);
285
- }),
286
- 64
287
- /* STABLE_FRAGMENT */
288
- ))
289
- ]),
290
- _: 1
291
- /* STABLE */
292
- }, 8, ["modelValue"])
293
- ]),
294
- _: 1
295
- /* STABLE */
296
- }, 8, ["modelValue"])
265
+ vue.createElementVNode("div", _hoisted_2, [
266
+ vue.createVNode(_component_el_input, {
267
+ modelValue: form.y,
268
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.y = $event),
269
+ type: "number"
270
+ }, null, 8, ["modelValue"]),
271
+ vue.createVNode(_component_el_select, {
272
+ modelValue: form.y_unit,
273
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.y_unit = $event),
274
+ placeholder: "\u8BF7\u9009\u62E9",
275
+ class: "w-40px"
276
+ }, {
277
+ default: vue.withCtx(() => [
278
+ (vue.openBlock(), vue.createElementBlock(
279
+ vue.Fragment,
280
+ null,
281
+ vue.renderList(units, (item) => {
282
+ return vue.createVNode(_component_el_option, {
283
+ key: item,
284
+ label: item,
285
+ value: item
286
+ }, null, 8, ["label", "value"]);
287
+ }),
288
+ 64
289
+ /* STABLE_FRAGMENT */
290
+ ))
291
+ ]),
292
+ _: 1
293
+ /* STABLE */
294
+ }, 8, ["modelValue"])
295
+ ])
297
296
  ]),
298
297
  _: 1
299
298
  /* STABLE */
300
299
  }),
301
300
  vue.createVNode(_component_el_form_item, { label: "\u6A21\u7CCA" }, {
302
301
  default: vue.withCtx(() => [
303
- vue.createVNode(_component_el_input, {
304
- modelValue: form.vague,
305
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.vague = $event),
306
- type: "number"
307
- }, {
308
- append: vue.withCtx(() => [
309
- vue.createVNode(_component_el_select, {
310
- modelValue: form.vague_unit,
311
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.vague_unit = $event),
312
- placeholder: "\u8BF7\u9009\u62E9",
313
- class: "w-40px",
314
- "suffix-icon": ""
315
- }, {
316
- default: vue.withCtx(() => [
317
- (vue.openBlock(), vue.createElementBlock(
318
- vue.Fragment,
319
- null,
320
- vue.renderList(units, (item) => {
321
- return vue.createVNode(_component_el_option, {
322
- key: item,
323
- label: item,
324
- value: item
325
- }, null, 8, ["label", "value"]);
326
- }),
327
- 64
328
- /* STABLE_FRAGMENT */
329
- ))
330
- ]),
331
- _: 1
332
- /* STABLE */
333
- }, 8, ["modelValue"])
334
- ]),
335
- _: 1
336
- /* STABLE */
337
- }, 8, ["modelValue"])
302
+ vue.createElementVNode("div", _hoisted_3, [
303
+ vue.createVNode(_component_el_input, {
304
+ modelValue: form.vague,
305
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.vague = $event),
306
+ type: "number"
307
+ }, null, 8, ["modelValue"]),
308
+ vue.createVNode(_component_el_select, {
309
+ modelValue: form.vague_unit,
310
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.vague_unit = $event),
311
+ placeholder: "\u8BF7\u9009\u62E9"
312
+ }, {
313
+ default: vue.withCtx(() => [
314
+ (vue.openBlock(), vue.createElementBlock(
315
+ vue.Fragment,
316
+ null,
317
+ vue.renderList(units, (item) => {
318
+ return vue.createVNode(_component_el_option, {
319
+ key: item,
320
+ label: item,
321
+ value: item
322
+ }, null, 8, ["label", "value"]);
323
+ }),
324
+ 64
325
+ /* STABLE_FRAGMENT */
326
+ ))
327
+ ]),
328
+ _: 1
329
+ /* STABLE */
330
+ }, 8, ["modelValue"])
331
+ ])
338
332
  ]),
339
333
  _: 1
340
334
  /* STABLE */
341
335
  }),
342
336
  vue.createVNode(_component_el_form_item, { label: "\u6269\u5C55" }, {
343
337
  default: vue.withCtx(() => [
344
- vue.createVNode(_component_el_input, {
345
- modelValue: form.extend,
346
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.extend = $event),
347
- type: "number"
348
- }, {
349
- append: vue.withCtx(() => [
350
- vue.createVNode(_component_el_select, {
351
- modelValue: form.extend_unit,
352
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.extend_unit = $event),
353
- placeholder: "\u8BF7\u9009\u62E9",
354
- class: "w-40px",
355
- "suffix-icon": ""
356
- }, {
357
- default: vue.withCtx(() => [
358
- (vue.openBlock(), vue.createElementBlock(
359
- vue.Fragment,
360
- null,
361
- vue.renderList(units, (item) => {
362
- return vue.createVNode(_component_el_option, {
363
- key: item,
364
- label: item,
365
- value: item
366
- }, null, 8, ["label", "value"]);
367
- }),
368
- 64
369
- /* STABLE_FRAGMENT */
370
- ))
371
- ]),
372
- _: 1
373
- /* STABLE */
374
- }, 8, ["modelValue"])
375
- ]),
376
- _: 1
377
- /* STABLE */
378
- }, 8, ["modelValue"])
338
+ vue.createElementVNode("div", _hoisted_4, [
339
+ vue.createVNode(_component_el_input, {
340
+ modelValue: form.extend,
341
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.extend = $event),
342
+ type: "number"
343
+ }, null, 8, ["modelValue"]),
344
+ vue.createVNode(_component_el_select, {
345
+ modelValue: form.extend_unit,
346
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.extend_unit = $event),
347
+ placeholder: "\u8BF7\u9009\u62E9"
348
+ }, {
349
+ default: vue.withCtx(() => [
350
+ (vue.openBlock(), vue.createElementBlock(
351
+ vue.Fragment,
352
+ null,
353
+ vue.renderList(units, (item) => {
354
+ return vue.createVNode(_component_el_option, {
355
+ key: item,
356
+ label: item,
357
+ value: item
358
+ }, null, 8, ["label", "value"]);
359
+ }),
360
+ 64
361
+ /* STABLE_FRAGMENT */
362
+ ))
363
+ ]),
364
+ _: 1
365
+ /* STABLE */
366
+ }, 8, ["modelValue"])
367
+ ])
379
368
  ]),
380
369
  _: 1
381
370
  /* STABLE */
@@ -384,9 +373,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
384
373
  _: 1
385
374
  /* STABLE */
386
375
  }, 8, ["size"]),
387
- vue.createElementVNode("div", _hoisted_1, [
388
- vue.createElementVNode("div", _hoisted_2, [
389
- _hoisted_3,
376
+ vue.createElementVNode("div", _hoisted_5, [
377
+ vue.createElementVNode("div", _hoisted_6, [
378
+ _hoisted_7,
390
379
  (vue.openBlock(true), vue.createElementBlock(
391
380
  vue.Fragment,
392
381
  null,
@@ -430,7 +419,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
430
419
  id: "spot",
431
420
  style: vue.normalizeStyle(spotStyle.value)
432
421
  },
433
- _hoisted_5,
422
+ _hoisted_9,
434
423
  4
435
424
  /* STYLE */
436
425
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"style-shadow-content.vue2.js","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","ref","useElementSize","reactive","computed","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,sBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAmCnC,IAAA,MAAM,OAAOC,YAAS,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,GAAOF,QAAI,KAAK,CAAA,CAAA;AACtB,IAAA,MAAM,WAAgBE,YAAS,CAAA;AAAA,MAC7B,IAAM,EAAA,CAAA;AAAA,MACN,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Aa,CAAA,CAAC,CAAC,CAAA,CAAA;AACzC,MAAA,IAAA,CAAK,WAAc,GAAA,OAAA,CAAQ,YAAa,CAAA,CAAC,CAAC,CAAA,CAAA;AAC1C,MAAS,QAAA,CAAA,IAAA,GAAO,MAAM,OAAU,GAAA,CAAA,GAAK,KAAK,CAAI,GAAA,KAAA,CAAM,GAAO,GAAA,KAAA,CAAM,OAAW,IAAA,CAAA,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,IAAAC,aAAA,CAAU,MAAM;AAEd,MAAA,SAAA,CAAU,MAAM,UAAU,CAAA,CAAA;AAAA,KAC3B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-shadow-content.vue2.js","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\n ref=\"el\"\n class=\"dk-style-shadow-content\"\n :style=\"{ '--shadow-box-width': boxSize + 'px' }\"\n >\n <el-form\n label-width=\"60px\"\n label-position=\"left\"\n class=\"shadow-form-content\"\n :size=\"size\"\n >\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\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\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\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\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\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\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\n v-for=\"item in units\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\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\n v-for=\"(item, key) in props.defaultStyles\"\n :key=\"key\"\n size=\"small\"\n @click=\"setStyle(item)\"\n >{{ item.label }}</el-button\n >\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\n id=\"center-spot\"\n :style=\"{ top: boxSize / 2 + 'px', left: boxSize / 2 + 'px' }\"\n />\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(\n String(((position.left - props.boxSize / 2) / props.boxSize) * props.max)\n )\n form.y = parseInt(\n String(((position.top - props.boxSize / 2) / props.boxSize) * props.max)\n )\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","ref","useElementSize","reactive","computed","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,sBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkHD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAmCnC,IAAA,MAAM,OAAOC,YAAS,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,GAAOF,QAAI,KAAK,CAAA,CAAA;AACtB,IAAA,MAAM,WAAgBE,YAAS,CAAA;AAAA,MAC7B,IAAM,EAAA,CAAA;AAAA,MACN,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AA,CAAC,CAAC,CAAA,CAAA;AACzC,MAAA,IAAA,CAAK,WAAc,GAAA,OAAA,CAAQ,YAAa,CAAA,CAAC,CAAC,CAAA,CAAA;AAC1C,MAAS,QAAA,CAAA,IAAA,GAAO,MAAM,OAAU,GAAA,CAAA,GAAK,KAAK,CAAI,GAAA,KAAA,CAAM,GAAO,GAAA,KAAA,CAAM,OAAW,IAAA,CAAA,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,IAAAC,aAAA,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";
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var styleShadowInput_vue_vue_type_script_setup_true_lang = require('./style-shadow-input.vue2.js');
6
6
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
7
7
 
8
- var _StyleShadowInput = /* @__PURE__ */ _pluginVue_exportHelper.default(styleShadowInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);
8
+ var _StyleShadowInput = /* @__PURE__ */ _pluginVue_exportHelper.default(styleShadowInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);
9
9
 
10
10
  exports.default = _StyleShadowInput;
11
11
  //# sourceMappingURL=style-shadow-input.vue.js.map
@@ -16,7 +16,7 @@ const __default__ = vue.defineComponent({
16
16
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  ...__default__,
18
18
  props: props.shadowInputProps,
19
- emits: ["update:modelValue"],
19
+ emits: ["update:modelValue", "change"],
20
20
  setup(__props, { emit }) {
21
21
  const props = __props;
22
22
  const shadows = vue.ref([]);
@@ -38,6 +38,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
38
38
  });
39
39
  vue.watch(boxShadow, (n, o) => {
40
40
  emit("update:modelValue", { boxShadow: boxShadow.value });
41
+ emit("change", { boxShadow: boxShadow.value });
41
42
  });
42
43
  vue.watch(
43
44
  () => props.modelValue,
@@ -1 +1 @@
1
- {"version":3,"file":"style-shadow-input.vue2.js","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","ref","computed","watch","onMounted"],"mappings":";;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAsCD,IAAM,MAAA,OAAA,GAAeC,OAAI,CAAA,EAAE,CAAA,CAAA;AAE3B,IAAM,MAAA,UAAA,GAAaA,QAAI,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,GAAYC,aAAS,MAAM;AAC/B,MAAO,OAAA,OAAA,CAAQ,KAAM,CAAA,IAAA,CAAK,GAAG,CAAA,CAAA;AAAA,KAC9B,CAAA,CAAA;AAED,IAAMC,SAAA,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,IAAAA,SAAA;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,IAAAC,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style-shadow-input.vue2.js","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\n v-for=\"(item, key) in shadows\"\n :key=\"key\"\n :title=\"item\"\n :name=\"key + ''\"\n >\n <dk-style-shadow-content\n v-model=\"shadows[key]\"\n ></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\n placement=\"right-start\"\n title=\"\"\n width=\"380\"\n trigger=\"click\"\n >\n <template #reference>\n <el-button>设置</el-button>\n </template>\n <dk-style-shadow-content\n v-model=\"shadows[key]\"\n ></dk-style-shadow-content>\n </el-popover>\n </template>\n </el-input>\n <dk-icon\n class=\"close-shadow\"\n icon=\"Close\"\n hover-color=\"#f00\"\n @click=\"delShadow(key)\"\n ></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","ref","computed","watch","onMounted"],"mappings":";;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAyDD,IAAM,MAAA,OAAA,GAAeC,OAAI,CAAA,EAAE,CAAA,CAAA;AAE3B,IAAM,MA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AAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var ComSearch_vue_vue_type_script_setup_true_lang = require('./ComSearch.vue2.js');
6
6
  var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
7
7
 
8
- var ComSearch = /* @__PURE__ */ _pluginVue_exportHelper.default(ComSearch_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\table\\src\\components\\ComSearch.vue"]]);
8
+ var ComSearch = /* @__PURE__ */ _pluginVue_exportHelper.default(ComSearch_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\table\\src\\components\\ComSearch.vue"]]);
9
9
 
10
10
  exports.default = ComSearch;
11
11
  //# sourceMappingURL=ComSearch.vue.js.map