@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
@@ -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"
@@ -92,8 +96,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
92
96
  }
93
97
  };
94
98
  watch(position, () => {
95
- form.x = parseInt(String((position.left - props.boxSize / 2) / props.boxSize * props.max));
96
- form.y = parseInt(String((position.top - props.boxSize / 2) / props.boxSize * props.max));
99
+ form.x = parseInt(
100
+ String((position.left - props.boxSize / 2) / props.boxSize * props.max)
101
+ );
102
+ form.y = parseInt(
103
+ String((position.top - props.boxSize / 2) / props.boxSize * props.max)
104
+ );
97
105
  });
98
106
  watch(form, () => {
99
107
  let value = `${form.x}${form.x_unit} ${form.y}${form.y_unit} ${form.vague}${form.vague_unit} ${form.extend}${form.extend_unit} ${form.color}`;
@@ -151,9 +159,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
151
159
  const _component_el_radio_group = resolveComponent("el-radio-group");
152
160
  const _component_el_form_item = resolveComponent("el-form-item");
153
161
  const _component_dk_color_input = resolveComponent("dk-color-input");
162
+ const _component_el_input = resolveComponent("el-input");
154
163
  const _component_el_option = resolveComponent("el-option");
155
164
  const _component_el_select = resolveComponent("el-select");
156
- const _component_el_input = resolveComponent("el-input");
157
165
  const _component_el_form = resolveComponent("el-form");
158
166
  const _component_el_button = resolveComponent("el-button");
159
167
  return openBlock(), createElementBlock(
@@ -179,14 +187,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
179
187
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.type = $event)
180
188
  }, {
181
189
  default: withCtx(() => [
182
- createVNode(_component_el_radio_button, { label: "external" }, {
190
+ createVNode(_component_el_radio_button, { value: "external" }, {
183
191
  default: withCtx(() => [
184
192
  createTextVNode("\u5916\u90E8")
185
193
  ]),
186
194
  _: 1
187
195
  /* STABLE */
188
196
  }),
189
- createVNode(_component_el_radio_button, { label: "inset" }, {
197
+ createVNode(_component_el_radio_button, { value: "inset" }, {
190
198
  default: withCtx(() => [
191
199
  createTextVNode("\u5185\u90E8")
192
200
  ]),
@@ -214,164 +222,145 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
214
222
  }),
215
223
  createVNode(_component_el_form_item, { label: "x\u8F74" }, {
216
224
  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"])
225
+ createElementVNode("div", _hoisted_1, [
226
+ createVNode(_component_el_input, {
227
+ modelValue: form.x,
228
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.x = $event),
229
+ type: "number"
230
+ }, null, 8, ["modelValue"]),
231
+ createVNode(_component_el_select, {
232
+ modelValue: form.x_unit,
233
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.x_unit = $event),
234
+ placeholder: "\u8BF7\u9009\u62E9"
235
+ }, {
236
+ default: withCtx(() => [
237
+ (openBlock(), createElementBlock(
238
+ Fragment,
239
+ null,
240
+ renderList(units, (item) => {
241
+ return createVNode(_component_el_option, {
242
+ key: item,
243
+ label: item,
244
+ value: item
245
+ }, null, 8, ["label", "value"]);
246
+ }),
247
+ 64
248
+ /* STABLE_FRAGMENT */
249
+ ))
250
+ ]),
251
+ _: 1
252
+ /* STABLE */
253
+ }, 8, ["modelValue"])
254
+ ])
252
255
  ]),
253
256
  _: 1
254
257
  /* STABLE */
255
258
  }),
256
259
  createVNode(_component_el_form_item, { label: "y\u8F74" }, {
257
260
  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"])
261
+ createElementVNode("div", _hoisted_2, [
262
+ createVNode(_component_el_input, {
263
+ modelValue: form.y,
264
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.y = $event),
265
+ type: "number"
266
+ }, null, 8, ["modelValue"]),
267
+ createVNode(_component_el_select, {
268
+ modelValue: form.y_unit,
269
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.y_unit = $event),
270
+ placeholder: "\u8BF7\u9009\u62E9",
271
+ class: "w-40px"
272
+ }, {
273
+ default: withCtx(() => [
274
+ (openBlock(), createElementBlock(
275
+ Fragment,
276
+ null,
277
+ renderList(units, (item) => {
278
+ return createVNode(_component_el_option, {
279
+ key: item,
280
+ label: item,
281
+ value: item
282
+ }, null, 8, ["label", "value"]);
283
+ }),
284
+ 64
285
+ /* STABLE_FRAGMENT */
286
+ ))
287
+ ]),
288
+ _: 1
289
+ /* STABLE */
290
+ }, 8, ["modelValue"])
291
+ ])
293
292
  ]),
294
293
  _: 1
295
294
  /* STABLE */
296
295
  }),
297
296
  createVNode(_component_el_form_item, { label: "\u6A21\u7CCA" }, {
298
297
  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"])
298
+ createElementVNode("div", _hoisted_3, [
299
+ createVNode(_component_el_input, {
300
+ modelValue: form.vague,
301
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.vague = $event),
302
+ type: "number"
303
+ }, null, 8, ["modelValue"]),
304
+ createVNode(_component_el_select, {
305
+ modelValue: form.vague_unit,
306
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.vague_unit = $event),
307
+ placeholder: "\u8BF7\u9009\u62E9"
308
+ }, {
309
+ default: withCtx(() => [
310
+ (openBlock(), createElementBlock(
311
+ Fragment,
312
+ null,
313
+ renderList(units, (item) => {
314
+ return createVNode(_component_el_option, {
315
+ key: item,
316
+ label: item,
317
+ value: item
318
+ }, null, 8, ["label", "value"]);
319
+ }),
320
+ 64
321
+ /* STABLE_FRAGMENT */
322
+ ))
323
+ ]),
324
+ _: 1
325
+ /* STABLE */
326
+ }, 8, ["modelValue"])
327
+ ])
334
328
  ]),
335
329
  _: 1
336
330
  /* STABLE */
337
331
  }),
338
332
  createVNode(_component_el_form_item, { label: "\u6269\u5C55" }, {
339
333
  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"])
334
+ createElementVNode("div", _hoisted_4, [
335
+ createVNode(_component_el_input, {
336
+ modelValue: form.extend,
337
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.extend = $event),
338
+ type: "number"
339
+ }, null, 8, ["modelValue"]),
340
+ createVNode(_component_el_select, {
341
+ modelValue: form.extend_unit,
342
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.extend_unit = $event),
343
+ placeholder: "\u8BF7\u9009\u62E9"
344
+ }, {
345
+ default: withCtx(() => [
346
+ (openBlock(), createElementBlock(
347
+ Fragment,
348
+ null,
349
+ renderList(units, (item) => {
350
+ return createVNode(_component_el_option, {
351
+ key: item,
352
+ label: item,
353
+ value: item
354
+ }, null, 8, ["label", "value"]);
355
+ }),
356
+ 64
357
+ /* STABLE_FRAGMENT */
358
+ ))
359
+ ]),
360
+ _: 1
361
+ /* STABLE */
362
+ }, 8, ["modelValue"])
363
+ ])
375
364
  ]),
376
365
  _: 1
377
366
  /* STABLE */
@@ -380,9 +369,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
380
369
  _: 1
381
370
  /* STABLE */
382
371
  }, 8, ["size"]),
383
- createElementVNode("div", _hoisted_1, [
384
- createElementVNode("div", _hoisted_2, [
385
- _hoisted_3,
372
+ createElementVNode("div", _hoisted_5, [
373
+ createElementVNode("div", _hoisted_6, [
374
+ _hoisted_7,
386
375
  (openBlock(true), createElementBlock(
387
376
  Fragment,
388
377
  null,
@@ -426,7 +415,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
426
415
  id: "spot",
427
416
  style: normalizeStyle(spotStyle.value)
428
417
  },
429
- _hoisted_5,
418
+ _hoisted_9,
430
419
  4
431
420
  /* STYLE */
432
421
  ),
@@ -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":";;;;;;;;;;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AM,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\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA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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";
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './style-shadow-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _StyleShadowInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);
4
+ var _StyleShadowInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\style-shadow-input\\src\\style-shadow-input.vue"]]);
5
5
 
6
6
  export { _StyleShadowInput as default };
7
7
  //# sourceMappingURL=style-shadow-input.vue.mjs.map
@@ -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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AAA,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\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"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAyDD,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;AACxD,MAAA,IAAA,CAAK,QAAU,EAAA,EAAE,SAAW,EAAA,SAAA,CAAU,OAAO,CAAA,CAAA;AAAA,KAC9C,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,7 +1,7 @@
1
1
  import _sfc_main from './ComSearch.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var ComSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\table\\src\\components\\ComSearch.vue"]]);
4
+ var ComSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\table\\src\\components\\ComSearch.vue"]]);
5
5
 
6
6
  export { ComSearch as default };
7
7
  //# sourceMappingURL=ComSearch.vue.mjs.map