@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
package/dist/tags.json CHANGED
@@ -251,10 +251,15 @@
251
251
  },
252
252
  "dk-table": {
253
253
  "attributes": [
254
- "type",
254
+ "tableApi",
255
+ "cacheTable",
256
+ "tableBefore",
257
+ "tableAfter",
258
+ "buttons",
259
+ "hideButtons",
255
260
  "click"
256
261
  ],
257
- "description": "组件描述组件描述组件描述组件描述组件描述组件描述。\n\n[Docs](https://github.com/vipl520/dk-starter/components/project/#table)"
262
+ "description": "内置数据表格组件,需要和怪兽框架配合使用。\n\n[Docs](https://github.com/vipl520/dk-starter/components/project/#table)"
258
263
  },
259
264
  "dk-test": {
260
265
  "attributes": [
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "dk",
5
- "version": "1.0.39",
5
+ "version": "1.0.41",
6
6
  "js-types-syntax": "typescript",
7
7
  "description-markup": "markdown",
8
8
  "contributions": {
@@ -1476,23 +1476,82 @@
1476
1476
  "source": {
1477
1477
  "symbol": "DkUITable"
1478
1478
  },
1479
- "description": "组件描述组件描述组件描述组件描述组件描述组件描述。",
1479
+ "description": "内置数据表格组件,需要和怪兽框架配合使用。",
1480
1480
  "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table",
1481
1481
  "props": [
1482
1482
  {
1483
- "name": "type",
1484
- "description": "参数类型",
1483
+ "name": "tableApi",
1484
+ "description": "表格API对象的引用,用于操作表格",
1485
1485
  "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table-props",
1486
1486
  "type": [
1487
- "string"
1488
- ]
1489
- }
1490
- ],
1491
- "slots": [
1487
+ "String"
1488
+ ],
1489
+ "default": "''"
1490
+ },
1492
1491
  {
1493
- "name": "default",
1494
- "description": "自定义默认内容",
1495
- "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table-slots"
1492
+ "name": "cacheTable",
1493
+ "description": "是否启用表格数据缓存功能",
1494
+ "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table-props",
1495
+ "type": [
1496
+ "Boolean"
1497
+ ],
1498
+ "default": "true"
1499
+ },
1500
+ {
1501
+ "name": "tableBefore",
1502
+ "description": "在表格初始化或数据更新前执行的回调函数,返回一个对象供表格组件使用",
1503
+ "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table-props",
1504
+ "type": [
1505
+ {
1506
+ "name": "Function returning Object",
1507
+ "source": {
1508
+ "symbol": "Function returning Object"
1509
+ }
1510
+ }
1511
+ ],
1512
+ "default": "() => { return {} }"
1513
+ },
1514
+ {
1515
+ "name": "tableAfter",
1516
+ "description": "在表格初始化或数据更新后执行的回调函数,返回一个对象供表格组件使用",
1517
+ "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table-props",
1518
+ "type": [
1519
+ {
1520
+ "name": "Function returning Object",
1521
+ "source": {
1522
+ "symbol": "Function returning Object"
1523
+ }
1524
+ }
1525
+ ],
1526
+ "default": "() => { return {} }"
1527
+ },
1528
+ {
1529
+ "name": "buttons",
1530
+ "description": "表格工具栏中显示的按钮列表,包括:刷新、新增、导出CSV、编辑、删除、复杂搜索、快速搜索、列显示控制、回收站",
1531
+ "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table-props",
1532
+ "type": [
1533
+ {
1534
+ "name": "Array of Strings",
1535
+ "source": {
1536
+ "symbol": "Array of Strings"
1537
+ }
1538
+ }
1539
+ ],
1540
+ "default": "['refresh', 'add', 'export_csv', 'edit', 'delete', 'comSearch', 'quickSearch', 'columnDisplay', 'recycle']"
1541
+ },
1542
+ {
1543
+ "name": "hideButtons",
1544
+ "description": "指定隐藏的工具栏按钮列表,这些按钮将不会在表格中显示",
1545
+ "doc-url": "https://github.com/vipl520/dk-starter/components/project/#table-props",
1546
+ "type": [
1547
+ {
1548
+ "name": "Array of Strings",
1549
+ "source": {
1550
+ "symbol": "Array of Strings"
1551
+ }
1552
+ }
1553
+ ],
1554
+ "default": "[]"
1496
1555
  }
1497
1556
  ],
1498
1557
  "js": {
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './animate-select.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _AnimateSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\animate-select\\src\\animate-select.vue"]]);
4
+ var _AnimateSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\animate-select\\src\\animate-select.vue"]]);
5
5
 
6
6
  export { _AnimateSelect as default };
7
7
  //# sourceMappingURL=animate-select.vue.mjs.map
@@ -86,7 +86,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
86
86
  createElementVNode("div", _hoisted_3, [
87
87
  createVNode(_component_el_card, {
88
88
  class: normalizeClass(["animate__" + value.value]),
89
- style: { animationDelay: "0s", animationDuration: "1s", animationIterationCount: "1" }
89
+ style: {
90
+ animationDelay: "0s",
91
+ animationDuration: "1s",
92
+ animationIterationCount: "1"
93
+ }
90
94
  }, {
91
95
  default: withCtx(() => [
92
96
  createTextVNode(" \u9884\u89C8\u533A ")
@@ -1 +1 @@
1
- {"version":3,"file":"animate-select.vue2.mjs","sources":["../../../src/animate-select/src/animate-select.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAnimateSelect',\n});\n</script>\n<template>\n <div class=\"dk-animate-select\">\n <el-button-group>\n <el-button :type=\"!value ? 'primary' : 'danger'\" plain @click=\"show = true\">{{\n !value ? '请选择动画' : '已选择动画'\n }}</el-button>\n <el-button\n icon=\"Delete\"\n :disabled=\"!value\"\n :type=\"!value ? 'primary' : 'danger'\"\n plain\n @click=\"value = ''\"\n ></el-button>\n </el-button-group>\n\n <dk-dialog v-model=\"show\" title=\"选择动画\" width=\"800px\">\n <div class=\"dk-animate-content\">\n <!--预览区-->\n <div class=\"animate-preview\">\n <el-card\n :class=\"['animate__' + value]\"\n :style=\"{ animationDelay: '0s', animationDuration: '1s', animationIterationCount: '1' }\"\n >\n 预览区\n </el-card>\n </div>\n <!--选择区-->\n <div class=\"animate-list\">\n <el-tabs v-model=\"tabType\" class=\"demo-tabs\">\n <el-tab-pane v-for=\"(item, key) in Animates\" :key=\"key\" :label=\"item.label\" :name=\"item.name\">\n <ul class=\"cl\">\n <li\n v-for=\"(a, k) in item.animate\"\n :key=\"k\"\n :class=\"value == a.value ? 'choose' : ''\"\n @click=\"chooseAnimate(a.value)\"\n >\n {{ a.label }}\n </li>\n </ul>\n </el-tab-pane>\n </el-tabs>\n </div>\n </div>\n <div class=\"text-center p10px\">\n <el-button type=\"primary\" style=\"width: 220px\" @click=\"show = false\">确定</el-button>\n </div>\n </dk-dialog>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { animateSelectProps } from './props'\nimport Animates from './animates'\nimport { ref, watch } from 'vue'\n\n\nconst props = defineProps(animateSelectProps)\nconst tabType = ref('loop')\nconst show = ref(false)\nconst value = ref(props.modelValue)\nconst chooseAnimate = (val: any) => {\n value.value = val\n}\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n value.value = val\n }\n)\nwatch(\n () => value.value,\n (val) => {\n emit('change', val)\n emit('update:modelValue', val)\n emit('input', val)\n }\n)\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,iBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA4DD,IAAM,MAAA,OAAA,GAAU,IAAI,MAAM,CAAA,CAAA;AAC1B,IAAM,MAAA,IAAA,GAAO,IAAI,KAAK,CAAA,CAAA;AACtB,IAAM,MAAA,KAAA,GAAQ,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAClC,IAAM,MAAA,aAAA,GAAgB,CAAC,GAAa,KAAA;AAClC,MAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,KAChB,CAAA;AAGA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,OAChB;AAAA,KACF,CAAA;AACA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAClB,QAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,QAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,OACnB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"animate-select.vue2.mjs","sources":["../../../src/animate-select/src/animate-select.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAnimateSelect',\n});\n</script>\n<template>\n <div class=\"dk-animate-select\">\n <el-button-group>\n <el-button\n :type=\"!value ? 'primary' : 'danger'\"\n plain\n @click=\"show = true\"\n >{{ !value ? '请选择动画' : '已选择动画' }}</el-button\n >\n <el-button\n icon=\"Delete\"\n :disabled=\"!value\"\n :type=\"!value ? 'primary' : 'danger'\"\n plain\n @click=\"value = ''\"\n ></el-button>\n </el-button-group>\n\n <dk-dialog v-model=\"show\" title=\"选择动画\" width=\"800px\">\n <div class=\"dk-animate-content\">\n <!--预览区-->\n <div class=\"animate-preview\">\n <el-card\n :class=\"['animate__' + value]\"\n :style=\"{\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: '1',\n }\"\n >\n 预览区\n </el-card>\n </div>\n <!--选择区-->\n <div class=\"animate-list\">\n <el-tabs v-model=\"tabType\" class=\"demo-tabs\">\n <el-tab-pane\n v-for=\"(item, key) in Animates\"\n :key=\"key\"\n :label=\"item.label\"\n :name=\"item.name\"\n >\n <ul class=\"cl\">\n <li\n v-for=\"(a, k) in item.animate\"\n :key=\"k\"\n :class=\"value == a.value ? 'choose' : ''\"\n @click=\"chooseAnimate(a.value)\"\n >\n {{ a.label }}\n </li>\n </ul>\n </el-tab-pane>\n </el-tabs>\n </div>\n </div>\n <div class=\"text-center p10px\">\n <el-button type=\"primary\" style=\"width: 220px\" @click=\"show = false\"\n >确定</el-button\n >\n </div>\n </dk-dialog>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { animateSelectProps } from './props'\nimport Animates from './animates'\nimport { ref, watch } from 'vue'\n\n\nconst props = defineProps(animateSelectProps)\nconst tabType = ref('loop')\nconst show = ref(false)\nconst value = ref(props.modelValue)\nconst chooseAnimate = (val: any) => {\n value.value = val\n}\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n value.value = val\n }\n)\nwatch(\n () => value.value,\n (val) => {\n emit('change', val)\n emit('update:modelValue', val)\n emit('input', val)\n }\n)\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,iBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA0ED,IAAM,MAAA,OAAA,GAAU,IAAI,MAAM,CAAA,CAAA;AAC1B,IAAM,MAAA,IAAA,GAAO,IAAI,KAAK,CAAA,CAAA;AACtB,IAAM,MAAA,KAAA,GAAQ,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAClC,IAAM,MAAA,aAAA,GAAgB,CAAC,GAAa,KAAA;AAClC,MAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,KAChB,CAAA;AAGA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,OAChB;AAAA,KACF,CAAA;AACA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAClB,QAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,QAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,OACnB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.mjs","sources":["../../src/api/attachment.ts"],"sourcesContent":["import { request } from '@vipl520/utils'\n\n/** ************************************************************** 附件 ***************************************************************/\n\n// 获取附件列表\nexport function getAttachmentList(page: number, size: number, type: number = 1, groupId: number, search: any) {\n search.group_id = groupId\n search.type = type\n return request({\n method: 'post',\n url: '/adminapi/attachment/list',\n data: { page, size, search },\n })\n}\n\n// 上传附件\n// export function UploadAttachment(page, size, type = 1, groupId, search) {\n// return request({\n// method: 'post',\n// url: '/adminapi/attachment/upload',\n// data: { page, size, type, groupId, search }\n// })\n// }\n\n// 上传附件\nexport function UploadAttachment(file: any, type = 1, groupId = 0) {\n const formData = new FormData()\n formData.append('file', file)\n formData.append('type', type.toString())\n formData.append('file', 'file')\n formData.append('group_id', groupId.toString())\n return request({\n method: 'post',\n url: '/adminapi/attachment/upload',\n data: formData,\n })\n}\n\n// 获取编辑表单\nexport function getAttachmentEdit(id: number) {\n return request({\n method: 'get',\n url: '/adminapi/attachment/index/' + id + '/edit',\n })\n}\n\nexport function deleteAttachment(ids: number[]) {\n return request(\n {\n method: 'post',\n url: '/adminapi/attachment/delete',\n data: { ids },\n },\n {\n code_success_show: true,\n }\n )\n}\n\nexport function moveAttachment(ids: number[], groupId: number) {\n return request({\n method: 'post',\n url: '/adminapi/attachment/move',\n data: { ids, group_id: groupId },\n })\n}\n\n/** ************************************************************** 附件分组 ***************************************************************/\n\n// 获取附件分组\nexport function getAttachmentGroupList(type: number) {\n return request(\n {\n method: 'get',\n url: '/adminapi/attachment/group',\n params: { type },\n },\n {\n code_error_show: true,\n }\n )\n}\n\n// 获取表单\nexport function getAttachmentGroupForm(id: number) {\n if (id) {\n return request({\n method: 'get',\n url: '/adminapi/attachment/group/' + id + '/edit',\n })\n } else {\n return request({\n method: 'get',\n url: '/adminapi/attachment/group/create',\n })\n }\n}\n\n// 删除分组\nexport function delAttachmentGroup(id: number) {\n return request(\n {\n method: 'delete',\n url: '/adminapi/attachment/group/' + id,\n },\n {\n code_error_show: true,\n }\n )\n}\n"],"names":[],"mappings":";;AAKO,SAAS,kBAAkB,IAAc,EAAA,IAAA,EAAc,IAAe,GAAA,CAAA,EAAG,SAAiB,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Content":["import { request } from '@vipl520/utils'\n\n/** ************************************************************** 附件 ***************************************************************/\n\n// 获取附件列表\nexport function getAttachmentList(\n page: number,\n size: number,\n type: number = 1,\n groupId: number,\n search: any\n) {\n search.group_id = groupId\n search.type = type\n return request({\n method: 'post',\n url: '/adminapi/attachment/list',\n data: { page, size, search },\n })\n}\n\n// 上传附件\n// export function UploadAttachment(page, size, type = 1, groupId, search) {\n// return request({\n// method: 'post',\n// url: '/adminapi/attachment/upload',\n// data: { page, size, type, groupId, search }\n// })\n// }\n\n// 上传附件\nexport function UploadAttachment(file: any, type = 1, groupId = 0) {\n const formData = new FormData()\n formData.append('file', file)\n formData.append('type', type.toString())\n formData.append('file', 'file')\n formData.append('group_id', groupId.toString())\n return request({\n method: 'post',\n url: '/adminapi/attachment/upload',\n data: formData,\n })\n}\n\n// 获取编辑表单\nexport function getAttachmentEdit(id: number) {\n return request({\n method: 'get',\n url: '/adminapi/attachment/index/' + id + '/edit',\n })\n}\n\nexport function deleteAttachment(ids: number[]) {\n return request(\n {\n method: 'post',\n url: '/adminapi/attachment/delete',\n data: { ids },\n },\n {\n code_success_show: true,\n }\n )\n}\n\nexport function moveAttachment(ids: number[], groupId: number) {\n return request({\n method: 'post',\n url: '/adminapi/attachment/move',\n data: { ids, group_id: groupId },\n })\n}\n\n/** ************************************************************** 附件分组 ***************************************************************/\n\n// 获取附件分组\nexport function getAttachmentGroupList(type: number) {\n return request(\n {\n method: 'get',\n url: '/adminapi/attachment/group',\n params: { type },\n },\n {\n code_error_show: true,\n }\n )\n}\n\n// 获取表单\nexport function getAttachmentGroupForm(id: number) {\n if (id) {\n return request({\n method: 'get',\n url: '/adminapi/attachment/group/' + id + '/edit',\n })\n } else {\n return request({\n method: 'get',\n url: '/adminapi/attachment/group/create',\n })\n }\n}\n\n// 删除分组\nexport function delAttachmentGroup(id: number) {\n return request(\n {\n method: 'delete',\n url: '/adminapi/attachment/group/' + id,\n },\n {\n code_error_show: true,\n }\n )\n}\n"],"names":[],"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AAA;AACF;;;;"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './attachment.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _Attachment = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);
4
+ var _Attachment = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\attachment\\src\\attachment.vue"]]);
5
5
 
6
6
  export { _Attachment as default };
7
7
  //# sourceMappingURL=attachment.vue.mjs.map
@@ -210,7 +210,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
210
210
  const onGetAttachmentList = async (search = {}) => {
211
211
  clearChoose();
212
212
  try {
213
- const res = await getAttachmentList(page.value, size.value, _type.value, groupId.value, search);
213
+ const res = await getAttachmentList(
214
+ page.value,
215
+ size.value,
216
+ _type.value,
217
+ groupId.value,
218
+ search
219
+ );
214
220
  list.value = res.data;
215
221
  count.value = res.msg;
216
222
  loading.value = false;
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.vue2.mjs","sources":["../../../src/attachment/src/attachment.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachment',\n});\n</script>\n<template>\n <div class=\"dk-attachment attachment\">\n <!-- 顶部-->\n <div class=\"attachment-header flex justify-between pt-5px pb-5px\">\n <div class=\"header-form z\">\n <el-input v-model=\"searchFileName\" placeholder=\"请输入附件名称\" class=\"input-with-select\">\n <template #append>\n <el-button :icon=\"Search\" />\n </template>\n </el-input>\n </div>\n <div class=\"header-button y\">\n <el-dropdown class=\"mr\" trigger=\"click\" @command=\"handleMoveAttachment\">\n <el-button type=\"info\" :disabled=\"chooseFileKey.length <= 0\"> 移动 </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item v-for=\"(item, key) in groupList\" :key=\"key\" :command=\"item.id\">\n {{ item.name }}\n </el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-button type=\"danger\" :disabled=\"chooseFileKey.length <= 0\" @click=\"onDelete\"\n >删除<i class=\"el-icon-delete el-icon--right\"></i\n ></el-button>\n <el-upload\n ref=\"upload\"\n class=\"dk-upload-button\"\n :action=\"uploadUrl\"\n multiple\n :data=\"data\"\n :show-file-list=\"false\"\n :headers=\"headers\"\n :on-success=\"handleUploadSuccess\"\n :accept=\"_accept\"\n list-type=\"text\"\n >\n <el-button type=\"primary\">上传<i class=\"el-icon-upload el-icon--right\"></i></el-button>\n </el-upload>\n </div>\n </div>\n <!--内部-->\n <div class=\"attachment-content flex\">\n <!-- 分组-->\n <div class=\"attachment-group\">\n <h5 class=\"cursor-pointer flex items-center content-center\" @click=\"addGroup()\">\n 附件分组\n <el-icon class=\"m-l-5px\"><CirclePlusFilled /></el-icon>\n </h5>\n <ul class=\"group_list\">\n <li\n v-for=\"(item, key) in groupList\"\n :key=\"key\"\n :class=\"{ active: groupId === item.id }\"\n @click=\"selectGroup(item.id)\"\n >\n <dk-icon v-if=\"item.id === groupId\" icon=\"flat-color-icons:opened-folder\" />\n <dk-icon v-else icon=\"flat-color-icons:folder\" />\n\n <span class=\"ml-10px\">{{ item.name }}</span>\n\n <el-popover placement=\"right\" trigger=\"click\">\n <template #reference>\n <div class=\"op\">\n <el-icon v-if=\"item.id > 0\">\n <Tools />\n </el-icon>\n </div>\n </template>\n <template #default>\n <el-button size=\"small\" type=\"primary\" @click.stop=\"editGroup()\">编辑 </el-button>\n <el-button size=\"small\" type=\"danger\" @click=\"delGroup(item.id)\">删除</el-button>\n </template>\n </el-popover>\n </li>\n </ul>\n </div>\n <!-- 列表-->\n <div class=\"attachment-container\">\n <div v-if=\"loading || list.length > 0\" v-loading=\"loading\" class=\"p2\">\n <ul class=\"attachment-list cl\" :style=\"{ overflow: list.length > 10 ? 'auto' : '' }\">\n <li\n v-for=\"(item, key) in list\"\n :key=\"key\"\n :class=\"{ choose: chooseFileKey.indexOf(key) > -1 }\"\n @click=\"chooseAttachment(item, key)\"\n @contextmenu.prevent=\"contextMenuId = item.id\"\n >\n <div class=\"file\">\n <el-image v-if=\"item.type === 1\" class=\"file\" :src=\"item.url\" fit=\"contain\">\n <template #placeholder>\n <div class=\"u-m-t-30\">\n <i class=\"el-icon-loading\"></i>\n <span>加载中</span>\n </div>\n </template>\n </el-image>\n <div v-if=\"item.type === 2\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 3\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 0\">\n <dk-file-icon :file-name=\"item.filename\" />\n </div>\n </div>\n <div class=\"file-name over\">{{ item.name }}</div>\n <div class=\"right\">\n <el-icon>\n <Check />\n </el-icon>\n </div>\n </li>\n </ul>\n <div class=\"block p-10px\">\n <el-pagination\n :current-page=\"page\"\n layout=\"total, prev, pager, next, jumper,sizes\"\n :total=\"count\"\n :page-size=\"size\"\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n />\n </div>\n </div>\n <div v-else style=\"display: flex; align-items: center; justify-content: center; height: 340px\">\n <el-empty description=\"暂无数据\" />\n </div>\n <dk-form ref=\"groupForm\" :key=\"groupId\" :form-url=\"groupFormUrl\" :is-dialog=\"true\" @submit=\"onsubmit()\" />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, reactive, onMounted, computed } from 'vue'\nimport {\n deleteAttachment,\n getAttachmentGroupList,\n getAttachmentList,\n moveAttachment,\n delAttachmentGroup,\n} from '../../api'\n\nimport { ElMessage, ElMessageBox } from 'element-plus'\nimport DkFileIcon from './file-icon.vue'\n\nimport { Search } from '@element-plus/icons-vue'\n\nimport { getAttachmentType, getGlobalConfig } from '@vipl520/utils'\nimport { attachmentProps } from './props'\n\n\n\nconst props = defineProps(attachmentProps)\n\nconst _type = computed(() => {\n return getAttachmentType(props.type)\n})\n\n/** ****************顶部data****************/\n// 搜索的文件名\nconst searchFileName = ref('')\n// 选择文件Key\nconst chooseFileKey = ref<number[]>([])\n// 选中文件列表\nconst chooseFileList = ref<any[]>([])\n// 选中文件ID\nconst chooseFileId = ref<number[]>([])\nconst globalConfig = getGlobalConfig()\n// 上传的地址\nconst uploadUrl = globalConfig.ApiUrl + '/adminapi/attachment/upload'\nconst headers = {\n 'Access-Token': globalConfig.AccessToken,\n}\n// 上传的ref\nconst upload = ref()\n// 上传的数据\nconst data = reactive({\n type: _type.value,\n file: 'file',\n group_id: 0,\n})\n\n/** *****顶部的函数****************/\n\nconst handleMoveAttachment = (groupId: number) => {\n moveAttachment(chooseFileId.value, groupId).then((res) => {\n ElMessage.success(res.msg)\n onGetAttachmentList()\n })\n}\n\nconst handleUploadSuccess = (res: any) => {\n console.log('res', res)\n if (res.code === 0) {\n ElMessage.success(res.msg)\n // upload.value.clearFiles()\n onGetAttachmentList()\n } else {\n ElMessage.error(res.msg)\n }\n}\n\nconst _accept = computed(() => {\n let _accept = ''\n if (props.accept) {\n return props.accept\n } else {\n switch (_type.value) {\n case 0:\n break\n case 1:\n _accept = 'image/*'\n break\n case 2:\n _accept = 'audio/*'\n break\n case 3:\n _accept = 'video/*'\n break\n }\n return _accept\n }\n})\n\nconst onDelete = () => {\n // 改成element-plus\n ElMessageBox.confirm('此操作将永久删除文件, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n }).then(() => {\n try {\n deleteAttachment(chooseFileId.value)\n .then((res) => {\n console.log(res)\n onGetAttachmentList()\n })\n .catch((res) => {\n console.log('deleteAttachment error', res)\n })\n } catch (e) {\n console.log(e)\n }\n })\n}\n/** ****************分组data****************/\n// 分组列表\nconst groupList = ref<any>([])\n// 选中分组\n/** **********分组的函数****************/\n\nconst groupFormUrl = computed(() => {\n if (groupId.value === 0) {\n return {\n url: globalConfig.ApiUrl + '/adminapi/attachment/group/create',\n method: 'get',\n }\n } else {\n return {\n url: globalConfig.ApiUrl + '/adminapi/attachment/group/' + groupId.value + '/edit',\n method: 'get',\n }\n }\n})\n\nconst groupForm = ref()\n\nconst addGroup = () => {\n // TODO 添加文件分组\n groupId.value = 0\n groupForm.value.show()\n}\n\nconst delGroup = (id: number) => {\n // 改为Vue3\n ElMessageBox.confirm('此操作将永久删除该分组, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n }).then(() => {\n try {\n delAttachmentGroup(id)\n .then((res) => {\n ElMessage.success(res.msg)\n onsubmit()\n })\n .catch(() => {})\n } catch (e) {\n console.log(e)\n }\n })\n}\n\nconst editGroup = () => {\n groupForm.value.show()\n}\n\nconst onsubmit = () => {\n getGroupList()\n onGetAttachmentList()\n}\n\nconst selectGroup = (id: number) => {\n groupId.value = id\n page.value = 1\n onGetAttachmentList()\n}\n\nconst getGroupList = async () => {\n try {\n const res = await getAttachmentGroupList(_type.value)\n groupList.value = res.data\n } catch (e) {}\n}\n\n/** ****************附件列表*********************/\nconst loading = ref(true)\nconst list = ref<any>([])\nconst page = ref(1)\nconst count = ref(0)\nconst size = ref(10)\nconst contextMenuId = ref(0)\nconst groupId = ref(0)\n\n/** ***************列表函数*******************/\n\n// const editAttachment = () => {\n// // TODO 编辑附件\n// }\n\nconst handleSizeChange = (val: number) => {\n size.value = val\n onGetAttachmentList()\n}\n\n// 改变页码\nconst handleCurrentChange = (val: number) => {\n page.value = val\n onGetAttachmentList()\n}\nconst onGetAttachmentList = async (search = {}) => {\n clearChoose()\n try {\n const res = await getAttachmentList(page.value, size.value, _type.value, groupId.value, search)\n list.value = res.data\n count.value = res.msg\n loading.value = false\n } catch (e) {}\n}\n\nconst clearChoose = () => {\n chooseFileKey.value = []\n chooseFileId.value = []\n chooseFileList.value = []\n}\n\nconst chooseAttachment = (item: any, key: number) => {\n const index = chooseFileKey.value.indexOf(key)\n if (index > -1) {\n chooseFileKey.value.splice(index, 1)\n chooseFileId.value.splice(index, 1)\n chooseFileList.value.splice(index, 1)\n } else {\n chooseFileKey.value.push(key)\n chooseFileId.value.push(item.id)\n chooseFileList.value.push(item)\n }\n}\n\nonMounted(() => {\n getGroupList()\n onGetAttachmentList()\n})\n\ndefineExpose({\n chooseFileId,\n chooseFileKey,\n chooseFileList,\n clearChoose,\n})\n</script>\n"],"names":["__MACROS_defineComponent","groupId","_accept"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;AA+JD,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAO,OAAA,iBAAA,CAAkB,MAAM,IAAI,CAAA,CAAA;AAAA,KACpC,CAAA,CAAA;AAID,IAAM,MAAA,cAAA,GAAiB,IAAI,EAAE,CAAA,CAAA;AAE7B,IAAM,MAAA,aAAA,GAAgB,GAAc,CAAA,EAAE,CAAA,CAAA;AAEtC,IAAM,MAAA,cAAA,GAAiB,GAAW,CAAA,EAAE,CAAA,CAAA;AAEpC,IAAM,MAAA,YAAA,GAAe,GAAc,CAAA,EAAE,CAAA,CAAA;AACrC,IAAA,MAAM,eAAe,eAAgB,EAAA,CAAA;AAErC,IAAM,MAAA,SAAA,GAAY,aAAa,MAAS,GAAA,6BAAA,CAAA;AACxC,IAAA,MAAM,OAAU,GAAA;AAAA,MACd,gBAAgB,YAAa,CAAA,WAAA;AAAA,KAC/B,CAAA;AAEA,IAAA,MAAM,SAAS,GAAI,EAAA,CAAA;AAEnB,IAAA,MAAM,OAAO,QAAS,CAAA;AAAA,MACpB,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,IAAM,EAAA,MAAA;AAAA,MACN,QAAU,EAAA,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"attachment.vue2.mjs","sources":["../../../src/attachment/src/attachment.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachment',\n});\n</script>\n<template>\n <div class=\"dk-attachment attachment\">\n <!-- 顶部-->\n <div class=\"attachment-header flex justify-between pt-5px pb-5px\">\n <div class=\"header-form z\">\n <el-input\n v-model=\"searchFileName\"\n placeholder=\"请输入附件名称\"\n class=\"input-with-select\"\n >\n <template #append>\n <el-button :icon=\"Search\" />\n </template>\n </el-input>\n </div>\n <div class=\"header-button y\">\n <el-dropdown class=\"mr\" trigger=\"click\" @command=\"handleMoveAttachment\">\n <el-button type=\"info\" :disabled=\"chooseFileKey.length <= 0\">\n 移动\n </el-button>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item\n v-for=\"(item, key) in groupList\"\n :key=\"key\"\n :command=\"item.id\"\n >\n {{ item.name }}\n </el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n <el-button\n type=\"danger\"\n :disabled=\"chooseFileKey.length <= 0\"\n @click=\"onDelete\"\n >删除<i class=\"el-icon-delete el-icon--right\"></i\n ></el-button>\n <el-upload\n ref=\"upload\"\n class=\"dk-upload-button\"\n :action=\"uploadUrl\"\n multiple\n :data=\"data\"\n :show-file-list=\"false\"\n :headers=\"headers\"\n :on-success=\"handleUploadSuccess\"\n :accept=\"_accept\"\n list-type=\"text\"\n >\n <el-button type=\"primary\"\n >上传<i class=\"el-icon-upload el-icon--right\"></i\n ></el-button>\n </el-upload>\n </div>\n </div>\n <!--内部-->\n <div class=\"attachment-content flex\">\n <!-- 分组-->\n <div class=\"attachment-group\">\n <h5\n class=\"cursor-pointer flex items-center content-center\"\n @click=\"addGroup()\"\n >\n 附件分组\n <el-icon class=\"m-l-5px\"><CirclePlusFilled /></el-icon>\n </h5>\n <ul class=\"group_list\">\n <li\n v-for=\"(item, key) in groupList\"\n :key=\"key\"\n :class=\"{ active: groupId === item.id }\"\n @click=\"selectGroup(item.id)\"\n >\n <dk-icon\n v-if=\"item.id === groupId\"\n icon=\"flat-color-icons:opened-folder\"\n />\n <dk-icon v-else icon=\"flat-color-icons:folder\" />\n\n <span class=\"ml-10px\">{{ item.name }}</span>\n\n <el-popover placement=\"right\" trigger=\"click\">\n <template #reference>\n <div class=\"op\">\n <el-icon v-if=\"item.id > 0\">\n <Tools />\n </el-icon>\n </div>\n </template>\n <template #default>\n <el-button size=\"small\" type=\"primary\" @click.stop=\"editGroup()\"\n >编辑\n </el-button>\n <el-button size=\"small\" type=\"danger\" @click=\"delGroup(item.id)\"\n >删除</el-button\n >\n </template>\n </el-popover>\n </li>\n </ul>\n </div>\n <!-- 列表-->\n <div class=\"attachment-container\">\n <div v-if=\"loading || list.length > 0\" v-loading=\"loading\" class=\"p2\">\n <ul\n class=\"attachment-list cl\"\n :style=\"{ overflow: list.length > 10 ? 'auto' : '' }\"\n >\n <li\n v-for=\"(item, key) in list\"\n :key=\"key\"\n :class=\"{ choose: chooseFileKey.indexOf(key) > -1 }\"\n @click=\"chooseAttachment(item, key)\"\n @contextmenu.prevent=\"contextMenuId = item.id\"\n >\n <div class=\"file\">\n <el-image\n v-if=\"item.type === 1\"\n class=\"file\"\n :src=\"item.url\"\n fit=\"contain\"\n >\n <template #placeholder>\n <div class=\"u-m-t-30\">\n <i class=\"el-icon-loading\"></i>\n <span>加载中</span>\n </div>\n </template>\n </el-image>\n <div v-if=\"item.type === 2\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 3\">\n <dk-file-icon :file-name=\"item.filename\" :type=\"item.type\" />\n </div>\n <div v-if=\"item.type === 0\">\n <dk-file-icon :file-name=\"item.filename\" />\n </div>\n </div>\n <div class=\"file-name over\">{{ item.name }}</div>\n <div class=\"right\">\n <el-icon>\n <Check />\n </el-icon>\n </div>\n </li>\n </ul>\n <div class=\"block p-10px\">\n <el-pagination\n :current-page=\"page\"\n layout=\"total, prev, pager, next, jumper,sizes\"\n :total=\"count\"\n :page-size=\"size\"\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n />\n </div>\n </div>\n <div\n v-else\n style=\"\n display: flex;\n align-items: center;\n justify-content: center;\n height: 340px;\n \"\n >\n <el-empty description=\"暂无数据\" />\n </div>\n <dk-form\n ref=\"groupForm\"\n :key=\"groupId\"\n :form-url=\"groupFormUrl\"\n :is-dialog=\"true\"\n @submit=\"onsubmit()\"\n />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, reactive, onMounted, computed } from 'vue'\nimport {\n deleteAttachment,\n getAttachmentGroupList,\n getAttachmentList,\n moveAttachment,\n delAttachmentGroup,\n} from '../../api'\n\nimport { ElMessage, ElMessageBox } from 'element-plus'\nimport DkFileIcon from './file-icon.vue'\n\nimport { Search } from '@element-plus/icons-vue'\n\nimport { getAttachmentType, getGlobalConfig } from '@vipl520/utils'\nimport { attachmentProps } from './props'\n\n\n\nconst props = defineProps(attachmentProps)\n\nconst _type = computed(() => {\n return getAttachmentType(props.type)\n})\n\n/** ****************顶部data****************/\n// 搜索的文件名\nconst searchFileName = ref('')\n// 选择文件Key\nconst chooseFileKey = ref<number[]>([])\n// 选中文件列表\nconst chooseFileList = ref<any[]>([])\n// 选中文件ID\nconst chooseFileId = ref<number[]>([])\nconst globalConfig = getGlobalConfig()\n// 上传的地址\nconst uploadUrl = globalConfig.ApiUrl + '/adminapi/attachment/upload'\nconst headers = {\n 'Access-Token': globalConfig.AccessToken,\n}\n// 上传的ref\nconst upload = ref()\n// 上传的数据\nconst data = reactive({\n type: _type.value,\n file: 'file',\n group_id: 0,\n})\n\n/** *****顶部的函数****************/\n\nconst handleMoveAttachment = (groupId: number) => {\n moveAttachment(chooseFileId.value, groupId).then((res) => {\n ElMessage.success(res.msg)\n onGetAttachmentList()\n })\n}\n\nconst handleUploadSuccess = (res: any) => {\n console.log('res', res)\n if (res.code === 0) {\n ElMessage.success(res.msg)\n // upload.value.clearFiles()\n onGetAttachmentList()\n } else {\n ElMessage.error(res.msg)\n }\n}\n\nconst _accept = computed(() => {\n let _accept = ''\n if (props.accept) {\n return props.accept\n } else {\n switch (_type.value) {\n case 0:\n break\n case 1:\n _accept = 'image/*'\n break\n case 2:\n _accept = 'audio/*'\n break\n case 3:\n _accept = 'video/*'\n break\n }\n return _accept\n }\n})\n\nconst onDelete = () => {\n // 改成element-plus\n ElMessageBox.confirm('此操作将永久删除文件, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n }).then(() => {\n try {\n deleteAttachment(chooseFileId.value)\n .then((res) => {\n console.log(res)\n onGetAttachmentList()\n })\n .catch((res) => {\n console.log('deleteAttachment error', res)\n })\n } catch (e) {\n console.log(e)\n }\n })\n}\n/** ****************分组data****************/\n// 分组列表\nconst groupList = ref<any>([])\n// 选中分组\n/** **********分组的函数****************/\n\nconst groupFormUrl = computed(() => {\n if (groupId.value === 0) {\n return {\n url: globalConfig.ApiUrl + '/adminapi/attachment/group/create',\n method: 'get',\n }\n } else {\n return {\n url:\n globalConfig.ApiUrl +\n '/adminapi/attachment/group/' +\n groupId.value +\n '/edit',\n method: 'get',\n }\n }\n})\n\nconst groupForm = ref()\n\nconst addGroup = () => {\n // TODO 添加文件分组\n groupId.value = 0\n groupForm.value.show()\n}\n\nconst delGroup = (id: number) => {\n // 改为Vue3\n ElMessageBox.confirm('此操作将永久删除该分组, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n }).then(() => {\n try {\n delAttachmentGroup(id)\n .then((res) => {\n ElMessage.success(res.msg)\n onsubmit()\n })\n .catch(() => {})\n } catch (e) {\n console.log(e)\n }\n })\n}\n\nconst editGroup = () => {\n groupForm.value.show()\n}\n\nconst onsubmit = () => {\n getGroupList()\n onGetAttachmentList()\n}\n\nconst selectGroup = (id: number) => {\n groupId.value = id\n page.value = 1\n onGetAttachmentList()\n}\n\nconst getGroupList = async () => {\n try {\n const res = await getAttachmentGroupList(_type.value)\n groupList.value = res.data\n } catch (e) {}\n}\n\n/** ****************附件列表*********************/\nconst loading = ref(true)\nconst list = ref<any>([])\nconst page = ref(1)\nconst count = ref(0)\nconst size = ref(10)\nconst contextMenuId = ref(0)\nconst groupId = ref(0)\n\n/** ***************列表函数*******************/\n\n// const editAttachment = () => {\n// // TODO 编辑附件\n// }\n\nconst handleSizeChange = (val: number) => {\n size.value = val\n onGetAttachmentList()\n}\n\n// 改变页码\nconst handleCurrentChange = (val: number) => {\n page.value = val\n onGetAttachmentList()\n}\nconst onGetAttachmentList = async (search = {}) => {\n clearChoose()\n try {\n const res = await getAttachmentList(\n page.value,\n size.value,\n _type.value,\n groupId.value,\n search\n )\n list.value = res.data\n count.value = res.msg\n loading.value = false\n } catch (e) {}\n}\n\nconst clearChoose = () => {\n chooseFileKey.value = []\n chooseFileId.value = []\n chooseFileList.value = []\n}\n\nconst chooseAttachment = (item: any, key: number) => {\n const index = chooseFileKey.value.indexOf(key)\n if (index > -1) {\n chooseFileKey.value.splice(index, 1)\n chooseFileId.value.splice(index, 1)\n chooseFileList.value.splice(index, 1)\n } else {\n chooseFileKey.value.push(key)\n chooseFileId.value.push(item.id)\n chooseFileList.value.push(item)\n }\n}\n\nonMounted(() => {\n getGroupList()\n onGetAttachmentList()\n})\n\ndefineExpose({\n chooseFileId,\n chooseFileKey,\n chooseFileList,\n clearChoose,\n})\n</script>\n"],"names":["__MACROS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@@
1
1
  import _sfc_main from './file-icon.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DkFileIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);
4
+ var DkFileIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\attachment\\src\\file-icon.vue"]]);
5
5
 
6
6
  export { DkFileIcon as default };
7
7
  //# sourceMappingURL=file-icon.vue.mjs.map
@@ -3,6 +3,10 @@ export declare const AttachmentDialog: import("@vipl520/utils").WithInstall<impo
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
+ zIndex: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
6
10
  type: {
7
11
  type: (StringConstructor | NumberConstructor)[];
8
12
  default: number;
@@ -21,6 +25,10 @@ export declare const AttachmentDialog: import("@vipl520/utils").WithInstall<impo
21
25
  type: StringConstructor;
22
26
  default: string;
23
27
  };
28
+ zIndex: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
24
32
  type: {
25
33
  type: (StringConstructor | NumberConstructor)[];
26
34
  default: number;
@@ -34,6 +42,7 @@ export declare const AttachmentDialog: import("@vipl520/utils").WithInstall<impo
34
42
  }, {
35
43
  type: string | number;
36
44
  title: string;
45
+ zIndex: number;
37
46
  accept: string;
38
47
  }, {}>>;
39
48
  export default AttachmentDialog;
@@ -3,6 +3,10 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
+ zIndex: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
6
10
  type: {
7
11
  type: (StringConstructor | NumberConstructor)[];
8
12
  default: number;
@@ -21,6 +25,10 @@ declare const _default: import("vue").DefineComponent<{
21
25
  type: StringConstructor;
22
26
  default: string;
23
27
  };
28
+ zIndex: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
24
32
  type: {
25
33
  type: (StringConstructor | NumberConstructor)[];
26
34
  default: number;
@@ -34,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
34
42
  }, {
35
43
  type: string | number;
36
44
  title: string;
45
+ zIndex: number;
37
46
  accept: string;
38
47
  }, {}>;
39
48
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './attachment-dialog.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _AttachmentDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);
4
+ var _AttachmentDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\attachment-dialog\\src\\attachment-dialog.vue"]]);
5
5
 
6
6
  export { _AttachmentDialog as default };
7
7
  //# sourceMappingURL=attachment-dialog.vue.mjs.map
@@ -48,7 +48,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  class: normalizeClass(unref(bem)()),
49
49
  title: title.value,
50
50
  width: "1040px",
51
- fullscreen: false
51
+ fullscreen: false,
52
+ "z-index": _ctx.zIndex
52
53
  }, {
53
54
  default: withCtx(() => [
54
55
  createVNode(_component_dk_attachment, {
@@ -80,7 +81,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
80
81
  ]),
81
82
  _: 1
82
83
  /* STABLE */
83
- }, 8, ["modelValue", "class", "title"]);
84
+ }, 8, ["modelValue", "class", "title", "z-index"]);
84
85
  };
85
86
  }
86
87
  });
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-dialog.vue2.mjs","sources":["../../../src/attachment-dialog/src/attachment-dialog.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachmentDialog',\n});\n</script>\n<template>\n <DkDialog\n v-model=\"dialogVisible\"\n :class=\"bem()\"\n :title=\"title\"\n width=\"1040px\"\n :fullscreen=\"false\"\n >\n <dk-attachment ref=\"attachment\" :type=\"_type\" />\n <div class=\"text-center m2\">\n <el-button type=\"primary\" @click=\"confirm()\">确定</el-button>\n <el-button @click=\"cancel()\">关闭</el-button>\n </div>\n </DkDialog>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n createNamespace,\n getAttachmentTitle,\n getAttachmentType,\n} from '@vipl520/utils'\nimport { attachmentDialogProps } from './props'\nimport { ref } from 'vue'\nimport { ElMessage } from 'element-plus'\nconst [_, bem] = createNamespace('attachment-dialog')\n\n\n\nconst props = defineProps(attachmentDialogProps)\nconst attachment = ref()\nconst dialogVisible = ref(false)\nconst title = ref(props.title || getAttachmentTitle(props.type))\n\nconst _type = ref(getAttachmentType(props.type))\n\nconst emit = defineEmits(['confirm'])\n\nconst confirm = () => {\n if (attachment.value.chooseFileList.length > 0) {\n emit('confirm', attachment.value.chooseFileList || [])\n dialogVisible.value = false\n } else {\n ElMessage.warning({ message: '请先选择文件' })\n }\n}\n\n// 关闭\nconst cancel = () => {\n dialogVisible.value = false\n}\n\nconst open = () => {\n dialogVisible.value = true\n}\n\ndefineExpose({\n dialogVisible,\n attachment,\n cancel,\n open,\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA2BD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAI,gBAAgB,mBAAmB,CAAA,CAAA;AAKpD,IAAA,MAAM,aAAa,GAAI,EAAA,CAAA;AACvB,IAAM,MAAA,aAAA,GAAgB,IAAI,KAAK,CAAA,CAAA;AAC/B,IAAA,MAAM,QAAQ,GAAI,CAAA,KAAA,CAAM,SAAS,kBAAmB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAE/D,IAAA,MAAM,KAAQ,GAAA,GAAA,CAAI,iBAAkB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAI/C,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAI,UAAW,CAAA,KAAA,CAAM,cAAe,CAAA,MAAA,GAAS,CAAG,EAAA;AAC9C,QAAA,IAAA,CAAK,SAAW,EAAA,UAAA,CAAW,KAAM,CAAA,cAAA,IAAkB,EAAE,CAAA,CAAA;AACrD,QAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,OACjB,MAAA;AACL,QAAA,SAAA,CAAU,OAAQ,CAAA,EAAE,OAAS,EAAA,sCAAA,EAAU,CAAA,CAAA;AAAA,OACzC;AAAA,KACF,CAAA;AAGA,IAAA,MAAM,SAAS,MAAM;AACnB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,aAAA;AAAA,MACA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,IAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"attachment-dialog.vue2.mjs","sources":["../../../src/attachment-dialog/src/attachment-dialog.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAttachmentDialog',\n});\n</script>\n<template>\n <DkDialog\n v-model=\"dialogVisible\"\n :class=\"bem()\"\n :title=\"title\"\n width=\"1040px\"\n :fullscreen=\"false\"\n :z-index=\"zIndex\"\n >\n <dk-attachment ref=\"attachment\" :type=\"_type\" />\n <div class=\"text-center m2\">\n <el-button type=\"primary\" @click=\"confirm()\">确定</el-button>\n <el-button @click=\"cancel()\">关闭</el-button>\n </div>\n </DkDialog>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n createNamespace,\n getAttachmentTitle,\n getAttachmentType,\n} from '@vipl520/utils'\nimport { attachmentDialogProps } from './props'\nimport { ref } from 'vue'\nimport { ElMessage } from 'element-plus'\nconst [_, bem] = createNamespace('attachment-dialog')\n\n\n\nconst props = defineProps(attachmentDialogProps)\nconst attachment = ref()\nconst dialogVisible = ref(false)\nconst title = ref(props.title || getAttachmentTitle(props.type))\n\nconst _type = ref(getAttachmentType(props.type))\n\nconst emit = defineEmits(['confirm'])\n\nconst confirm = () => {\n if (attachment.value.chooseFileList.length > 0) {\n emit('confirm', attachment.value.chooseFileList || [])\n dialogVisible.value = false\n } else {\n ElMessage.warning({ message: '请先选择文件' })\n }\n}\n\n// 关闭\nconst cancel = () => {\n dialogVisible.value = false\n}\n\nconst open = () => {\n dialogVisible.value = true\n}\n\ndefineExpose({\n dialogVisible,\n attachment,\n cancel,\n open,\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA4BD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAI,gBAAgB,mBAAmB,CAAA,CAAA;AAKpD,IAAA,MAAM,aAAa,GAAI,EAAA,CAAA;AACvB,IAAM,MAAA,aAAA,GAAgB,IAAI,KAAK,CAAA,CAAA;AAC/B,IAAA,MAAM,QAAQ,GAAI,CAAA,KAAA,CAAM,SAAS,kBAAmB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAE/D,IAAA,MAAM,KAAQ,GAAA,GAAA,CAAI,iBAAkB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAI/C,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAI,UAAW,CAAA,KAAA,CAAM,cAAe,CAAA,MAAA,GAAS,CAAG,EAAA;AAC9C,QAAA,IAAA,CAAK,SAAW,EAAA,UAAA,CAAW,KAAM,CAAA,cAAA,IAAkB,EAAE,CAAA,CAAA;AACrD,QAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,OACjB,MAAA;AACL,QAAA,SAAA,CAAU,OAAQ,CAAA,EAAE,OAAS,EAAA,sCAAA,EAAU,CAAA,CAAA;AAAA,OACzC;AAAA,KACF,CAAA;AAGA,IAAA,MAAM,SAAS,MAAM;AACnB,MAAA,aAAA,CAAc,KAAQ,GAAA,KAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CAAA;AAAA,KACxB,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,aAAA;AAAA,MACA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,IAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,6 +4,10 @@ export declare const attachmentDialogProps: {
4
4
  type: StringConstructor;
5
5
  default: string;
6
6
  };
7
+ zIndex: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
7
11
  type: {
8
12
  type: (StringConstructor | NumberConstructor)[];
9
13
  default: number;
@@ -6,6 +6,10 @@ const attachmentDialogProps = {
6
6
  title: {
7
7
  type: String,
8
8
  default: ""
9
+ },
10
+ zIndex: {
11
+ type: Number,
12
+ default: 1299
9
13
  }
10
14
  };
11
15
 
@@ -1 +1 @@
1
- {"version":3,"file":"props.mjs","sources":["../../../src/attachment-dialog/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { attachmentProps } from '../../attachment'\n\nexport const attachmentDialogProps = {\n ...attachmentProps,\n title: {\n type: String,\n default: '',\n },\n}\n\nexport type AttachmentDialogProps = ExtractPropTypes<\n typeof attachmentDialogProps\n>\n"],"names":[],"mappings":";;;AAGO,MAAM,qBAAwB,GAAA;AAAA,EACnC,GAAG,eAAA;AAAA,EACH,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF;;;;"}
1
+ {"version":3,"file":"props.mjs","sources":["../../../src/attachment-dialog/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { attachmentProps } from '../../attachment'\n\nexport const attachmentDialogProps = {\n ...attachmentProps,\n title: {\n type: String,\n default: '',\n },\n zIndex: {\n type: Number,\n default: 1299,\n },\n}\n\nexport type AttachmentDialogProps = ExtractPropTypes<\n typeof attachmentDialogProps\n>\n"],"names":[],"mappings":";;;AAGO,MAAM,qBAAwB,GAAA;AAAA,EACnC,GAAG,eAAA;AAAA,EACH,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF;;;;"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './audio-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _AudioInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);
4
+ var _AudioInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\audio-input\\src\\audio-input.vue"]]);
5
5
 
6
6
  export { _AudioInput as default };
7
7
  //# sourceMappingURL=audio-input.vue.mjs.map
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './audio-list-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _AudioListInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);
4
+ var _AudioListInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\audio-list-input\\src\\audio-list-input.vue"]]);
5
5
 
6
6
  export { _AudioListInput as default };
7
7
  //# sourceMappingURL=audio-list-input.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"audio-list-input.vue2.mjs","sources":["../../../src/audio-list-input/src/audio-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAudioListInput',\n});\n</script>\n<template>\n <dk-file-list-input v-bind=\"$props\" v-model=\"input\" :class=\"bem()\" :type=\"2\" @change=\"handleInput(input)\" />\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { audioListInputProps } from './props'\nimport { ref, watch } from 'vue'\nconst [_, bem] = createNamespace('audio-list-input')\n\n\n\nconst props = defineProps(audioListInputProps)\nconst input = ref(props.modelValue)\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n input.value = val\n }\n)\n\nwatch(\n () => input.value,\n (val) => {\n handleInput(val)\n }\n)\n\nconst handleInput = (val: any) => {\n emit('update:modelValue', val)\n emit('input', val)\n emit('change', val)\n}\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAUD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAI,gBAAgB,kBAAkB,CAAA,CAAA;AAKnD,IAAM,MAAA,KAAA,GAAQ,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAGlC,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,OAChB;AAAA,KACF,CAAA;AAEA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAAA,OACjB;AAAA,KACF,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,GAAa,KAAA;AAChC,MAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AACjB,MAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"audio-list-input.vue2.mjs","sources":["../../../src/audio-list-input/src/audio-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkAudioListInput',\n});\n</script>\n<template>\n <dk-file-list-input\n v-bind=\"$props\"\n v-model=\"input\"\n :class=\"bem()\"\n :type=\"2\"\n @change=\"handleInput(input)\"\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { audioListInputProps } from './props'\nimport { ref, watch } from 'vue'\nconst [_, bem] = createNamespace('audio-list-input')\n\n\n\nconst props = defineProps(audioListInputProps)\nconst input = ref(props.modelValue)\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n input.value = val\n }\n)\n\nwatch(\n () => input.value,\n (val) => {\n handleInput(val)\n }\n)\n\nconst handleInput = (val: any) => {\n emit('update:modelValue', val)\n emit('input', val)\n emit('change', val)\n}\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAgBD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAI,gBAAgB,kBAAkB,CAAA,CAAA;AAKnD,IAAM,MAAA,KAAA,GAAQ,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAGlC,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,OAChB;AAAA,KACF,CAAA;AAEA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAAA,OACjB;AAAA,KACF,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,GAAa,KAAA;AAChC,MAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AACjB,MAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from './box-size-input.vue2.mjs';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var _BoxSizeInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);
4
+ var _BoxSizeInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-vlib-starter\\dkgs-ui-doc\\packages\\dk-ui\\src\\box-size-input\\src\\box-size-input.vue"]]);
5
5
 
6
6
  export { _BoxSizeInput as default };
7
7
  //# sourceMappingURL=box-size-input.vue.mjs.map