@vipl520/dk-ui 1.0.44 → 1.0.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. package/dist/attributes.json +16 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +3041 -1074
  4. package/dist/index.min.js +4 -4
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +4 -4
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +3038 -1075
  9. package/dist/tags.json +14 -0
  10. package/dist/uniicons.ttf +0 -0
  11. package/dist/web-types.json +69 -1
  12. package/es/animate-select/src/animate-select.vue2.mjs.map +1 -1
  13. package/es/api/attachment.mjs.map +1 -1
  14. package/es/attachment/src/attachment.vue2.mjs +1 -7
  15. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  16. package/es/audio-list-input/src/audio-list-input.vue2.mjs.map +1 -1
  17. package/es/dialog/src/dialog.vue2.mjs +2 -4
  18. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  19. package/es/dialog/style/index.css +1 -1
  20. package/es/dialog/style/index.scss +1 -1
  21. package/es/file-input/src/file-input.vue2.mjs.map +1 -1
  22. package/es/file-list-input/src/file-list-input.vue2.mjs.map +1 -1
  23. package/es/form/index.d.ts +3 -15
  24. package/es/form/src/form.vue.d.ts +2 -10
  25. package/es/form/src/form.vue2.mjs +1 -0
  26. package/es/form/src/form.vue2.mjs.map +1 -1
  27. package/es/form/src/props.d.ts +1 -5
  28. package/es/form/src/props.mjs +1 -5
  29. package/es/form/src/props.mjs.map +1 -1
  30. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  31. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -1
  32. package/es/icon/src/icon.vue2.mjs.map +1 -1
  33. package/es/icon-input/src/icon-content.vue2.mjs +1 -1
  34. package/es/icon-input/src/icon-content.vue2.mjs.map +1 -1
  35. package/es/image-list-input/src/image-list-input.vue2.mjs.map +1 -1
  36. package/es/index.d.ts +2 -0
  37. package/es/index.mjs +8 -2
  38. package/es/index.mjs.map +1 -1
  39. package/es/index.scss +2 -0
  40. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
  41. package/es/page-diy/src/components/DragTool.vue.mjs +1 -5
  42. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  43. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  44. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +9 -11
  45. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -1
  46. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  47. package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
  48. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +2 -1
  49. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  50. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +1 -3
  51. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -1
  52. package/es/page-diy/src/config/rule/min/common/index.d.ts +2 -0
  53. package/es/page-diy/src/config/rule/min/common/index.mjs +1 -8
  54. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  55. package/es/page-diy/src/config/rule/min/index.d.ts +2 -0
  56. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs +1 -3
  57. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -1
  58. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -1
  59. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs +3 -9
  60. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -1
  61. package/es/page-diy/src/utils/eventData.mjs.map +1 -1
  62. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +5 -18
  63. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -1
  64. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  65. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  66. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -1
  67. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -1
  68. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +1 -3
  69. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -1
  70. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -1
  71. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -1
  72. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -1
  73. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -1
  74. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -1
  75. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -1
  76. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  77. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue2.mjs.map +1 -1
  78. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs +1 -1
  79. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs.map +1 -1
  80. package/es/poster-input/src/component/views/DkPosterViewName.vue2.mjs.map +1 -1
  81. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue2.mjs.map +1 -1
  82. package/es/poster-input/src/component/views/DkPosterViewText.vue2.mjs.map +1 -1
  83. package/es/poster-input/src/component/views/quick-action.vue2.mjs.map +1 -1
  84. package/es/poster-input/src/poster-input.vue2.mjs.map +1 -1
  85. package/es/poster-input/style/index.scss +2 -4
  86. package/es/select/src/select.vue2.mjs +1 -9
  87. package/es/select/src/select.vue2.mjs.map +1 -1
  88. package/es/style-animation-input/src/props.mjs.map +1 -1
  89. package/es/style-animation-input/src/style-animation-input.vue2.mjs +1 -1
  90. package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -1
  91. package/es/style-font-input/src/style-font-input.vue2.mjs +1 -1
  92. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  93. package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
  94. package/es/style-position-input/src/style-position-input.vue2.mjs +1 -4
  95. package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
  96. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  97. package/es/table/src/components/FieldRender.vue2.mjs +1 -1
  98. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  99. package/es/table/src/components/RecycleDialog.vue2.mjs +1 -3
  100. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  101. package/es/table/src/components/header.vue2.mjs +3 -17
  102. package/es/table/src/components/header.vue2.mjs.map +1 -1
  103. package/es/table/src/props.mjs +1 -11
  104. package/es/table/src/props.mjs.map +1 -1
  105. package/es/table/src/table.vue2.mjs +3 -13
  106. package/es/table/src/table.vue2.mjs.map +1 -1
  107. package/es/table/utils/dkTable.mjs +8 -31
  108. package/es/table/utils/dkTable.mjs.map +1 -1
  109. package/es/table/utils/dkTableApi.mjs.map +1 -1
  110. package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
  111. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  112. package/es/uni-icon/index.d.ts +174 -0
  113. package/es/uni-icon/index.mjs +8 -0
  114. package/es/uni-icon/index.mjs.map +1 -0
  115. package/es/uni-icon/src/props.d.ts +24 -0
  116. package/es/uni-icon/src/props.mjs +25 -0
  117. package/es/uni-icon/src/props.mjs.map +1 -0
  118. package/es/uni-icon/src/uni-icon.vue.d.ts +57 -0
  119. package/es/uni-icon/src/uni-icon.vue.mjs +7 -0
  120. package/es/uni-icon/src/uni-icon.vue.mjs.map +1 -0
  121. package/es/uni-icon/src/uni-icon.vue2.mjs +43 -0
  122. package/es/uni-icon/src/uni-icon.vue2.mjs.map +1 -0
  123. package/es/uni-icon/style/index.css +1 -0
  124. package/es/uni-icon/style/index.scss +17 -0
  125. package/es/uni-icon/style/uniicons.css +1 -0
  126. package/es/uni-icon/style/uniicons.scss +663 -0
  127. package/es/uni-icon/style/uniicons_file_vue.d.ts +4 -0
  128. package/es/uni-icon/style/uniicons_file_vue.mjs +649 -0
  129. package/es/uni-icon/style/uniicons_file_vue.mjs.map +1 -0
  130. package/es/uni-icon-input/index.d.ts +17 -0
  131. package/es/uni-icon-input/index.mjs +8 -0
  132. package/es/uni-icon-input/index.mjs.map +1 -0
  133. package/es/uni-icon-input/src/props.d.ts +11 -0
  134. package/es/uni-icon-input/src/props.mjs +11 -0
  135. package/es/uni-icon-input/src/props.mjs.map +1 -0
  136. package/es/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
  137. package/es/uni-icon-input/src/uni-icon-input.vue.mjs +7 -0
  138. package/es/uni-icon-input/src/uni-icon-input.vue.mjs.map +1 -0
  139. package/es/uni-icon-input/src/uni-icon-input.vue2.mjs +112 -0
  140. package/es/uni-icon-input/src/uni-icon-input.vue2.mjs.map +1 -0
  141. package/es/uni-icon-input/style/index.css +1 -0
  142. package/es/uni-icon-input/style/index.scss +13 -0
  143. package/es/video-list-input/src/video-list-input.vue2.mjs.map +1 -1
  144. package/lib/animate-select/src/animate-select.vue2.js.map +1 -1
  145. package/lib/api/attachment.js.map +1 -1
  146. package/lib/attachment/src/attachment.vue2.js +1 -7
  147. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  148. package/lib/audio-list-input/src/audio-list-input.vue2.js.map +1 -1
  149. package/lib/dialog/src/dialog.vue2.js +2 -4
  150. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  151. package/lib/dialog/style/index.css +1 -1
  152. package/lib/dialog/style/index.scss +1 -1
  153. package/lib/file-input/src/file-input.vue2.js.map +1 -1
  154. package/lib/file-list-input/src/file-list-input.vue2.js.map +1 -1
  155. package/lib/form/index.d.ts +3 -15
  156. package/lib/form/src/form.vue.d.ts +2 -10
  157. package/lib/form/src/form.vue2.js +1 -0
  158. package/lib/form/src/form.vue2.js.map +1 -1
  159. package/lib/form/src/props.d.ts +1 -5
  160. package/lib/form/src/props.js +1 -5
  161. package/lib/form/src/props.js.map +1 -1
  162. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  163. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -1
  164. package/lib/icon/src/icon.vue2.js.map +1 -1
  165. package/lib/icon-input/src/icon-content.vue2.js +1 -1
  166. package/lib/icon-input/src/icon-content.vue2.js.map +1 -1
  167. package/lib/image-list-input/src/image-list-input.vue2.js.map +1 -1
  168. package/lib/index.d.ts +2 -0
  169. package/lib/index.js +13 -3
  170. package/lib/index.js.map +1 -1
  171. package/lib/index.scss +2 -0
  172. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
  173. package/lib/page-diy/src/components/DragTool.vue.js +1 -5
  174. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  175. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  176. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +9 -11
  177. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -1
  178. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  179. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
  180. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +2 -1
  181. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  182. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +1 -3
  183. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -1
  184. package/lib/page-diy/src/config/rule/min/common/index.d.ts +2 -0
  185. package/lib/page-diy/src/config/rule/min/common/index.js +1 -8
  186. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  187. package/lib/page-diy/src/config/rule/min/index.d.ts +2 -0
  188. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js +1 -3
  189. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -1
  190. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -1
  191. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js +3 -9
  192. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -1
  193. package/lib/page-diy/src/utils/eventData.js.map +1 -1
  194. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +5 -18
  195. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -1
  196. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  197. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  198. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -1
  199. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -1
  200. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +1 -3
  201. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -1
  202. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -1
  203. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -1
  204. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -1
  205. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -1
  206. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -1
  207. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -1
  208. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  209. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue2.js.map +1 -1
  210. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js +1 -1
  211. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js.map +1 -1
  212. package/lib/poster-input/src/component/views/DkPosterViewName.vue2.js.map +1 -1
  213. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue2.js.map +1 -1
  214. package/lib/poster-input/src/component/views/DkPosterViewText.vue2.js.map +1 -1
  215. package/lib/poster-input/src/component/views/quick-action.vue2.js.map +1 -1
  216. package/lib/poster-input/src/poster-input.vue2.js.map +1 -1
  217. package/lib/poster-input/style/index.scss +2 -4
  218. package/lib/select/src/select.vue2.js +1 -9
  219. package/lib/select/src/select.vue2.js.map +1 -1
  220. package/lib/style-animation-input/src/props.js.map +1 -1
  221. package/lib/style-animation-input/src/style-animation-input.vue2.js +1 -1
  222. package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -1
  223. package/lib/style-font-input/src/style-font-input.vue2.js +1 -1
  224. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  225. package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
  226. package/lib/style-position-input/src/style-position-input.vue2.js +1 -4
  227. package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
  228. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  229. package/lib/table/src/components/FieldRender.vue2.js +1 -1
  230. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  231. package/lib/table/src/components/RecycleDialog.vue2.js +1 -3
  232. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  233. package/lib/table/src/components/header.vue2.js +3 -17
  234. package/lib/table/src/components/header.vue2.js.map +1 -1
  235. package/lib/table/src/props.js +1 -11
  236. package/lib/table/src/props.js.map +1 -1
  237. package/lib/table/src/table.vue2.js +3 -13
  238. package/lib/table/src/table.vue2.js.map +1 -1
  239. package/lib/table/utils/dkTable.js +8 -31
  240. package/lib/table/utils/dkTable.js.map +1 -1
  241. package/lib/table/utils/dkTableApi.js.map +1 -1
  242. package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
  243. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  244. package/lib/uni-icon/index.d.ts +174 -0
  245. package/lib/uni-icon/index.js +14 -0
  246. package/lib/uni-icon/index.js.map +1 -0
  247. package/lib/uni-icon/src/props.d.ts +24 -0
  248. package/lib/uni-icon/src/props.js +27 -0
  249. package/lib/uni-icon/src/props.js.map +1 -0
  250. package/lib/uni-icon/src/uni-icon.vue.d.ts +57 -0
  251. package/lib/uni-icon/src/uni-icon.vue.js +11 -0
  252. package/lib/uni-icon/src/uni-icon.vue.js.map +1 -0
  253. package/lib/uni-icon/src/uni-icon.vue2.js +47 -0
  254. package/lib/uni-icon/src/uni-icon.vue2.js.map +1 -0
  255. package/lib/uni-icon/style/index.css +1 -0
  256. package/lib/uni-icon/style/index.scss +17 -0
  257. package/lib/uni-icon/style/uniicons.css +1 -0
  258. package/lib/uni-icon/style/uniicons.scss +663 -0
  259. package/lib/uni-icon/style/uniicons_file_vue.d.ts +4 -0
  260. package/lib/uni-icon/style/uniicons_file_vue.js +651 -0
  261. package/lib/uni-icon/style/uniicons_file_vue.js.map +1 -0
  262. package/lib/uni-icon-input/index.d.ts +17 -0
  263. package/lib/uni-icon-input/index.js +14 -0
  264. package/lib/uni-icon-input/index.js.map +1 -0
  265. package/lib/uni-icon-input/src/props.d.ts +11 -0
  266. package/lib/uni-icon-input/src/props.js +13 -0
  267. package/lib/uni-icon-input/src/props.js.map +1 -0
  268. package/lib/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
  269. package/lib/uni-icon-input/src/uni-icon-input.vue.js +11 -0
  270. package/lib/uni-icon-input/src/uni-icon-input.vue.js.map +1 -0
  271. package/lib/uni-icon-input/src/uni-icon-input.vue2.js +116 -0
  272. package/lib/uni-icon-input/src/uni-icon-input.vue2.js.map +1 -0
  273. package/lib/uni-icon-input/style/index.css +1 -0
  274. package/lib/uni-icon-input/style/index.scss +13 -0
  275. package/lib/video-list-input/src/video-list-input.vue2.js.map +1 -1
  276. package/package.json +4 -3
@@ -77,18 +77,16 @@ const _sfc_main = {
77
77
  if (isEvent) {
78
78
  // 表单配置数据
79
79
  const eventProps = config.props();
80
- this.findDkEventCreateInput(eventProps, propsData).forEach(
81
- (item) => {
82
- const data = {
83
- id: children._id,
84
- label: item.props?.label || config.label,
85
- value: propsData[item.field],
86
- };
87
- if (data.value && data.id && data.label) {
88
- this.EventData.addEvent(data);
89
- }
80
+ this.findDkEventCreateInput(eventProps, propsData).forEach((item) => {
81
+ const data = {
82
+ id: children._id,
83
+ label: item.props?.label || config.label,
84
+ value: propsData[item.field],
85
+ };
86
+ if (data.value && data.id && data.label) {
87
+ this.EventData.addEvent(data);
90
88
  }
91
- );
89
+ });
92
90
  }
93
91
  }
94
92
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DkEventSelectInput.vue.js","sources":["../../../../../src/page-diy/src/components/forms/DkEventSelectInput.vue"],"sourcesContent":["<template>\n <div style=\"display: flex\">\n <el-select\n v-model=\"data\"\n placeholder=\"请选择要触发事件\"\n style=\"width: 100%\"\n allow-create\n filterable\n >\n <el-option\n v-for=\"item in eventData\"\n :key=\"item.value\"\n :label=\"item.label + '(' + item.value + ')'\"\n :value=\"item.value\"\n >\n <span style=\"float: left\">{{ item.label }}</span>\n <span style=\"float: right; font-size: 13px; color: #8492a6\">{{\n item.value\n }}</span>\n </el-option>\n </el-select>\n <el-button :loading=\"loading\" @click=\"updateEvent\">刷新</el-button>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkEventSelectInput',\n inject: ['diy'],\n props: {\n modelValue: {\n default: '',\n type: String,\n },\n placeholder: {\n default: '',\n type: String,\n },\n },\n emits: ['update:modelValue'],\n data() {\n return {\n data: '',\n loading: false,\n eventData: [],\n }\n },\n computed: {\n EventData() {\n return this.diy.proxy.eventData\n },\n children() {\n return this.diy.proxy.children\n },\n },\n watch: {\n data() {\n this.$emit('update:modelValue', this.data)\n },\n },\n mounted() {\n this.data = this.modelValue || ''\n this.updateEvent()\n },\n methods: {\n updateEvent() {\n this.loading = true\n this.EventData.removeAllEvent()\n this.onUpdateEvent()\n this.loading = false\n },\n onClick() {\n this.data = this.randomString(10)\n },\n randomString(e) {\n e = e || 32\n const t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'\n const a = t.length\n let n = ''\n for (let i = 0; i < e; i++) {\n n += t.charAt(Math.floor(Math.random() * a))\n }\n return n\n },\n // 更新事件\n onUpdateEvent() {\n for (let i = 0; i < this.children.length; i++) {\n if (this.children[i].children.length > 0) {\n // 当前节点\n const children = this.children[i].children[0]\n // 当前节点的props数据\n const propsData = children.props\n // 当前节点的配置数据\n const config = children.config.config\n const isEvent = config.event || false\n if (isEvent) {\n // 表单配置数据\n const eventProps = config.props()\n this.findDkEventCreateInput(eventProps, propsData).forEach(\n (item) => {\n const data = {\n id: children._id,\n label: item.props?.label || config.label,\n value: propsData[item.field],\n }\n if (data.value && data.id && data.label) {\n this.EventData.addEvent(data)\n }\n }\n )\n }\n }\n }\n this.eventData = this.EventData.getAllEvents()\n },\n // 寻找事件\n findDkEventCreateInput(data, propsData) {\n const result = []\n data.forEach((element) => {\n if (element.children) {\n result.push(...this.findDkEventCreateInput(element.children))\n }\n if (element.control && Array.isArray(element.control)) {\n element.control.forEach((control) => {\n if (control.rule.length > 0) {\n result.push(...this.findDkEventCreateInput(control.rule))\n }\n })\n }\n if (element.type === 'DkEventCreateInput') {\n result.push(element)\n }\n })\n return result\n },\n },\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_Fragment","_renderList","_createBlock","_createElementVNode","_toDisplayString"],"mappings":";;;;;;;AA0BA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,oBAAoB;AAC1B,EAAA,MAAM,EAAE,CAAC,KAAK,CAAC;AACf,EAAA,KAAK,EAAE;IACL,UAAU,EAAE;MACV,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;MACX,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;GACF;EACD,KAAK,EAAE,CAAC,mBAAmB,CAAC;AAC5B,EAAA,IAAI,GAAG;AACL,IAAA,OAAO;AACL,MAAA,IAAI,EAAE,EAAE;MACR,OAAO,EAAE,KAAK;MACd,SAAS,EAAE,EAAE;AACf,KAAA;GACD;AACD,EAAA,QAAQ,EAAE;IACR,SAAS,GAAG;MACV,OAAO,IAAI,CA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AZ,EAAY;AACZ,MAAA,UAAU,EAAV,EAAU;;2BAGR,MAAyB;8BAD3BD,sBAUY,CAAAE,YAAA,EAAA,IAAA,EAAAC,cAAA,CATK,KAAS,CAAA,SAAA,EAAA,CAAjB,IAAI,KAAA;mCADbC,eAUY,CAAA,oBAAA,EAAA;YART,GAAG,EAAE,IAAI,CAAC,KAAK;AACf,YAAA,KAAK,EAAE,IAAI,CAAC,KAAK,GAAS,GAAA,GAAA,IAAI,CAAC,KAAK,GAAA,GAAA;YACpC,KAAK,EAAE,IAAI,CAAC,KAAK;;iCAElB,MAAiD;AAAjD,cAAAC,sBAAA,CAAiD,MAAjD,EAAA,UAAiD,EAApBC,mBAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;AACvC,cAAAD,sBAAA,CAES,MAFT,EAAA,UAES,EADPC,mBAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;;;;;;;;IAIhBL,eAAiE,CAAA,oBAAA,EAAA;AAArD,MAAA,OAAO,EAAE,KAAO,CAAA,OAAA;AAAG,MAAA,OAAK,EAAE,QAAW,CAAA,WAAA;;2BAAE,MAAE;4BAAF,IAAE,CAAA;;;;;;;;;;"}
1
+ {"version":3,"file":"DkEventSelectInput.vue.js","sources":["../../../../../src/page-diy/src/components/forms/DkEventSelectInput.vue"],"sourcesContent":["<template>\n <div style=\"display: flex\">\n <el-select v-model=\"data\" placeholder=\"请选择要触发事件\" style=\"width: 100%\" allow-create filterable>\n <el-option\n v-for=\"item in eventData\"\n :key=\"item.value\"\n :label=\"item.label + '(' + item.value + ')'\"\n :value=\"item.value\"\n >\n <span style=\"float: left\">{{ item.label }}</span>\n <span style=\"float: right; font-size: 13px; color: #8492a6\">{{ item.value }}</span>\n </el-option>\n </el-select>\n <el-button :loading=\"loading\" @click=\"updateEvent\">刷新</el-button>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkEventSelectInput',\n inject: ['diy'],\n props: {\n modelValue: {\n default: '',\n type: String,\n },\n placeholder: {\n default: '',\n type: String,\n },\n },\n emits: ['update:modelValue'],\n data() {\n return {\n data: '',\n loading: false,\n eventData: [],\n }\n },\n computed: {\n EventData() {\n return this.diy.proxy.eventData\n },\n children() {\n return this.diy.proxy.children\n },\n },\n watch: {\n data() {\n this.$emit('update:modelValue', this.data)\n },\n },\n mounted() {\n this.data = this.modelValue || ''\n this.updateEvent()\n },\n methods: {\n updateEvent() {\n this.loading = true\n this.EventData.removeAllEvent()\n this.onUpdateEvent()\n this.loading = false\n },\n onClick() {\n this.data = this.randomString(10)\n },\n randomString(e) {\n e = e || 32\n const t = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'\n const a = t.length\n let n = ''\n for (let i = 0; i < e; i++) {\n n += t.charAt(Math.floor(Math.random() * a))\n }\n return n\n },\n // 更新事件\n onUpdateEvent() {\n for (let i = 0; i < this.children.length; i++) {\n if (this.children[i].children.length > 0) {\n // 当前节点\n const children = this.children[i].children[0]\n // 当前节点的props数据\n const propsData = children.props\n // 当前节点的配置数据\n const config = children.config.config\n const isEvent = config.event || false\n if (isEvent) {\n // 表单配置数据\n const eventProps = config.props()\n this.findDkEventCreateInput(eventProps, propsData).forEach((item) => {\n const data = {\n id: children._id,\n label: item.props?.label || config.label,\n value: propsData[item.field],\n }\n if (data.value && data.id && data.label) {\n this.EventData.addEvent(data)\n }\n })\n }\n }\n }\n this.eventData = this.EventData.getAllEvents()\n },\n // 寻找事件\n findDkEventCreateInput(data, propsData) {\n const result = []\n data.forEach((element) => {\n if (element.children) {\n result.push(...this.findDkEventCreateInput(element.children))\n }\n if (element.control && Array.isArray(element.control)) {\n element.control.forEach((control) => {\n if (control.rule.length > 0) {\n result.push(...this.findDkEventCreateInput(control.rule))\n }\n })\n }\n if (element.type === 'DkEventCreateInput') {\n result.push(element)\n }\n })\n return result\n },\n },\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_Fragment","_renderList","_createBlock","_createElementV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4BAAF,IAAE,CAAA;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"dkSetting.js","sources":["../../../../../src/page-diy/src/config/base/dkSetting.js"],"sourcesContent":["import Animates from '../../../../animate-select/src/animates'\n\nfunction createTitle(title) {\n return {\n type: 'h2',\n slot: 'title',\n style:\n 'display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0',\n children: [\n {\n type: 'em',\n style:\n 'width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;',\n },\n { type: 'span', children: [title] },\n ],\n }\n}\n\nfunction inLoop(val) {\n const animate = Animates[0].animate\n for (let i = 0; i < animate.length; i++) {\n if (animate[i].value === val) {\n return true\n }\n }\n return false\n}\n\nexport default function dkSetting(rule = null) {\n const form = [\n {\n type: 'el-collapse',\n props: {\n modelValue: 'base',\n },\n style: 'width:100%',\n children: [\n // 基础配置\n {\n type: 'el-collapse-item',\n props: { name: 'base' },\n\n children: [\n createTitle('基础配置'),\n {\n type: 'DkStyleInput',\n field: 'style',\n value: {},\n title: '',\n props: { height: 180 },\n },\n ],\n },\n ],\n },\n {\n type: 'el-collapse',\n props: {\n modelValue: 'base',\n },\n style: 'width:100%',\n children: [\n // 基础配置\n {\n type: 'el-collapse-item',\n props: { name: 'base' },\n\n children: [\n createTitle('动画配置'),\n {\n type: 'DkAnimateSelect',\n field: 'animate',\n value: '',\n title: '选择动画',\n control: [\n {\n handle: function (val) {\n if (!val) return false\n return inLoop(val)\n },\n rule: [\n {\n type: 'dk-style-animation-input',\n field: 'animation',\n title: '',\n value: {\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n },\n },\n ],\n },\n {\n handle: function (val) {\n if (!val) return false\n return !inLoop(val)\n },\n rule: [\n {\n type: 'dk-style-animation-input',\n field: 'animation',\n title: '',\n value: {\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 1,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'switch',\n field: 'animation_preview',\n title: '实时预览',\n value: true,\n effect: {\n help: '设置当前组件循环动画实时预览,当前仅为调试项',\n },\n },\n ],\n },\n ],\n },\n ]\n // 判断是否允许开启悬浮\n if (rule) {\n if (rule.config.config.rule().fixed) {\n const fixedChildren = [\n createTitle('悬浮配置'),\n {\n type: 'switch',\n field: 'is_position',\n value: false,\n title: '开启悬浮',\n effect: {\n help: '设置组件是否开启悬浮',\n },\n control: [\n {\n value: true,\n rule: [\n {\n type: 'DkStylePositionInput',\n field: 'position',\n value: {},\n title: '',\n },\n ],\n },\n ],\n },\n ]\n const collapseFixed = {\n type: 'el-collapse-item',\n props: { name: 'fixed' },\n children: fixedChildren,\n }\n form[0].children.push(collapseFixed)\n }\n }\n return form\n}\n"],"names":["Animates"],"mappings":";;;;;;AAEA,SAAS,YAAY,KAAO,EAAA;AAC1B,EAAO,OAAA;AAAA,IACL,IAAM,EAAA,IAAA;AAAA,IACN,IAAM,EAAA,OAAA;AAAA,IACN,KACE,EAAA,uFAAA;AAAA,IACF,QAAU,EAAA;AAAA,MACR;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,KACE,EAAA,6FAAA;AAAA,OACJ;AAAA,MACA,EAAE,IAAM,EAAA,MAAA,EAAQ,QAAU,EAAA,CAAC,KAAK,CAAE,EAAA;AAAA,KACpC;AAAA,GACF,CAAA;AACF,CAAA;AAEA,SAAS,OAAO,GAAK,EAAA;AACnB,EAAM,MAAA,OAAA,GAAUA,gBAAS,CAAA,CAAC,CAAE,CAAA,OAAA,CAAA;AAC5B,EAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAI,GAAA,OAAA,CAAQ,QAAQ,CAAK,EAAA,EAAA;AACvC,IAAA,IAAI,OAAQ,CAAA,CAAC,CAAE,CAAA,KAAA,KAAU,GAAK,EAAA;AAC5B,MAAO,OAAA,IAAA,CAAA;AAAA,KACT;AAAA,GACF;AACA,EAAO,OAAA,KAAA,CAAA;AACT,CAAA;AAEwB,SAAA,SAAA,CAAU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AAA;AAAA,QAClB;AAAA,UACE,IAAM,EAAA,QAAA;AAAA,UACN,KAAO,EAAA,aAAA;AAAA,UACP,KAAO,EAAA,KAAA;AAAA,UACP,KAAO,EAAA,0BAAA;AAAA,UACP,MAAQ,EAAA;AAAA,YACN,IAAM,EAAA,8DAAA;AAAA,WACR;AAAA,UACA,OAAS,EAAA;AAAA,YACP;AAAA,cACE,KAAO,EAAA,IAAA;AAAA,cACP,IAAM,EAAA;AAAA,gBACJ;AAAA,kBACE,IAAM,EAAA,sBAAA;AAAA,kBACN,KAAO,EAAA,UAAA;AAAA,kBACP,OAAO,EAAC;AAAA,kBACR,KAAO,EAAA,EAAA;AAAA,iBACT;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF,CAAA;AACA,MAAA,MAAM,aAAgB,GAAA;AAAA,QACpB,IAAM,EAAA,kBAAA;AAAA,QACN,KAAA,EAAO,EAAE,IAAA,EAAM,OAAQ,EAAA;AAAA,QACvB,QAAU,EAAA,aAAA;AAAA,OACZ,CAAA;AACA,MAAA,IAAA,CAAK,CAAC,CAAA,CAAE,QAAS,CAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACrC;AAAA,GACF;AACA,EAAO,OAAA,IAAA,CAAA;AACT;;;;"}
1
+ {"version":3,"file":"dkSetting.js","sources":["../../../../../src/page-diy/src/config/base/dkSetting.js"],"sourcesContent":["import Animates from '../../../../animate-select/src/animates'\n\nfunction createTitle(title) {\n return {\n type: 'h2',\n slot: 'title',\n style: 'display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0',\n children: [\n {\n type: 'em',\n style: 'width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;',\n },\n { type: 'span', children: [title] },\n ],\n }\n}\n\nfunction inLoop(val) {\n const animate = Animates[0].animate\n for (let i = 0; i < animate.length; i++) {\n if (animate[i].value === val) {\n return true\n }\n }\n return false\n}\n\nexport default function dkSetting(rule = null) {\n const form = [\n {\n type: 'el-collapse',\n props: {\n modelValue: 'base',\n },\n style: 'width:100%',\n children: [\n // 基础配置\n {\n type: 'el-collapse-item',\n props: { name: 'base' },\n\n children: [\n createTitle('基础配置'),\n {\n type: 'DkStyleInput',\n field: 'style',\n value: {},\n title: '',\n props: { height: 180 },\n },\n ],\n },\n ],\n },\n {\n type: 'el-collapse',\n props: {\n modelValue: 'base',\n },\n style: 'width:100%',\n children: [\n // 基础配置\n {\n type: 'el-collapse-item',\n props: { name: 'base' },\n\n children: [\n createTitle('动画配置'),\n {\n type: 'DkAnimateSelect',\n field: 'animate',\n value: '',\n title: '选择动画',\n control: [\n {\n handle: function (val) {\n if (!val) return false\n return inLoop(val)\n },\n rule: [\n {\n type: 'dk-style-animation-input',\n field: 'animation',\n title: '',\n value: {\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n },\n },\n ],\n },\n {\n handle: function (val) {\n if (!val) return false\n return !inLoop(val)\n },\n rule: [\n {\n type: 'dk-style-animation-input',\n field: 'animation',\n title: '',\n value: {\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 1,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'switch',\n field: 'animation_preview',\n title: '实时预览',\n value: true,\n effect: {\n help: '设置当前组件循环动画实时预览,当前仅为调试项',\n },\n },\n ],\n },\n ],\n },\n ]\n // 判断是否允许开启悬浮\n if (rule) {\n if (rule.config.config.rule().fixed) {\n const fixedChildren = [\n createTitle('悬浮配置'),\n {\n type: 'switch',\n field: 'is_position',\n value: false,\n title: '开启悬浮',\n effect: {\n help: '设置组件是否开启悬浮',\n },\n control: [\n {\n value: true,\n rule: [\n {\n type: 'DkStylePositionInput',\n field: 'position',\n value: {},\n title: '',\n },\n ],\n },\n ],\n },\n ]\n const collapseFixed = {\n type: 'el-collapse-item',\n props: { name: 'fixed' },\n children: fixedChildren,\n }\n form[0].children.push(collapseFixed)\n }\n }\n return form\n}\n"],"names":["Animates"],"mappings":";;;;;;AAEA,SA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A,MAAA,MAAM,aAAgB,GAAA;AAAA,QACpB,IAAM,EAAA,kBAAA;AAAA,QACN,KAAA,EAAO,EAAE,IAAA,EAAM,OAAQ,EAAA;AAAA,QACvB,QAAU,EAAA,aAAA;AAAA,OACZ,CAAA;AACA,MAAA,IAAA,CAAK,CAAC,CAAA,CAAE,QAAS,CAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACrC;AAAA,GACF;AACA,EAAO,OAAA,IAAA,CAAA;AACT;;;;"}
@@ -10,6 +10,7 @@ declare namespace _default {
10
10
  };
11
11
  showStyle: boolean;
12
12
  fixed: boolean;
13
+ setting: {};
13
14
  };
14
15
  export function props(): {
15
16
  type: string;
@@ -16,7 +16,8 @@ var DkMinTitle = {
16
16
  subtitle: "\u526F\u6807\u9898"
17
17
  },
18
18
  showStyle: true,
19
- fixed: true
19
+ fixed: true,
20
+ setting: {}
20
21
  };
21
22
  },
22
23
  props() {
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinTitle.js","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinTitle.js"],"sourcesContent":["const label = '标题'\nconst name = 'DkMinTitle'\n\nexport default {\n icon: 'material-symbols:title',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n title: '主标题',\n subtitle: '副标题',\n },\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n {\n type: 'radio',\n field: 'type',\n title: '类型',\n value: '0',\n options: [\n { label: '默认', value: '0' },\n { label: '副标题', value: '1' },\n ],\n control: [\n {\n value: '0',\n rule: [\n { type: 'input', field: 'title', title: '标题', value: '主标题' },\n {\n type: 'radio',\n field: 'align',\n title: '位置',\n value: 'left',\n options: [\n { label: '居左', value: 'left' },\n { label: '居中', value: 'center' },\n ],\n },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '标题色',\n value: '#000',\n },\n ],\n },\n {\n value: '1',\n rule: [\n { type: 'input', field: 'title', title: '标题', value: '主标题' },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '标题色',\n value: '#000',\n },\n { type: 'input', field: 'subtitle', title: '副标题', value: '' },\n {\n type: 'DkColorInput',\n field: 'subColor',\n title: '副标题色',\n value: '#999',\n },\n {\n type: 'switch',\n field: 'isMore',\n title: '显示更多',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'input',\n field: 'moreText',\n title: '文本内容',\n value: '查看更多',\n },\n {\n type: 'input',\n field: 'url',\n title: '链接地址',\n value: '',\n },\n {\n type: 'DkColorInput',\n field: 'moreColor',\n title: '颜色',\n value: '#999',\n },\n ],\n },\n ],\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,YAAA,CAAA;AAEb,iBAAe;AAAA,EACb,IAAM,EAAA,wBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,oBAAA;AAAA,QACP,QAAU,EAAA,oBAAA;AAAA,OACZ;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL;AAAA,QACE,IAAM,EAAA,OAAA;AAAA,QACN,KAAO,EAAA,MAAA;AAAA,QACP,KAAO,EAAA,cAAA;AAAA,QACP,KAAO,EAAA,GAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP,EAAE,KAAA,EAAO,cAAM,EAAA,KAAA,EAAO,GAAI,EAAA;AAAA,UAC1B,EAAE,KAAA,EAAO,oBAAO,EAAA,KAAA,EAAO,GAAI,EAAA;AAAA,SAC7B;AAAA,QACA,OAAS,EAAA;AAAA,UACP;AAAA,YACE,KAAO,EAAA,GAAA;AAAA,YACP,IAAM,EAAA;AAAA,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P,KAAO,EAAA,IAAA;AAAA,gBACP,OAAS,EAAA;AAAA,kBACP;AAAA,oBACE,KAAO,EAAA,IAAA;AAAA,oBACP,IAAM,EAAA;AAAA,sBACJ;AAAA,wBACE,IAAM,EAAA,OAAA;AAAA,wBACN,KAAO,EAAA,UAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,uBACT;AAAA,sBACA;AAAA,wBACE,IAAM,EAAA,OAAA;AAAA,wBACN,KAAO,EAAA,KAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,EAAA;AAAA,uBACT;AAAA,sBACA;AAAA,wBACE,IAAM,EAAA,cAAA;AAAA,wBACN,KAAO,EAAA,WAAA;AAAA,wBACP,KAAO,EAAA,cAAA;AAAA,wBACP,KAAO,EAAA,MAAA;AAAA,uBACT;AAAA,qBACF;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkMinTitle.js","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinTitle.js"],"sourcesContent":["const label = '标题'\nconst name = 'DkMinTitle'\n\nexport default {\n icon: 'material-symbols:title',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n title: '主标题',\n subtitle: '副标题',\n },\n showStyle: true,\n fixed: true,\n setting: {},\n }\n },\n props() {\n return [\n {\n type: 'radio',\n field: 'type',\n title: '类型',\n value: '0',\n options: [\n { label: '默认', value: '0' },\n { label: '副标题', value: '1' },\n ],\n control: [\n {\n value: '0',\n rule: [\n { type: 'input', field: 'title', title: '标题', value: '主标题' },\n {\n type: 'radio',\n field: 'align',\n title: '位置',\n value: 'left',\n options: [\n { label: '居左', value: 'left' },\n { label: '居中', value: 'center' },\n ],\n },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '标题色',\n value: '#000',\n },\n ],\n },\n {\n value: '1',\n rule: [\n { type: 'input', field: 'title', title: '标题', value: '主标题' },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '标题色',\n value: '#000',\n },\n { type: 'input', field: 'subtitle', title: '副标题', value: '' },\n {\n type: 'DkColorInput',\n field: 'subColor',\n title: '副标题色',\n value: '#999',\n },\n {\n type: 'switch',\n field: 'isMore',\n title: '显示更多',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'input',\n field: 'moreText',\n title: '文本内容',\n value: '查看更多',\n },\n {\n type: 'input',\n field: 'url',\n title: '链接地址',\n value: '',\n },\n {\n type: 'DkColorInput',\n field: 'moreColor',\n title: '颜色',\n value: '#999',\n },\n ],\n },\n ],\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,YAAA,CAAA;AAEb,iBAAe;AAAA,EACb,IAAM,EAAA,wBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,oBAAA;AAAA,QACP,QAAU,EAAA,oBAAA;AAAA,OACZ;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,MACP,SAAS,EAAC;AAAA,KACZ,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL;AAAA,QACE,IAAM,EAAA,OAAA;AAAA,QACN,KAAO,EAAA,MAAA;AAAA,QACP,KAAO,EAAA,cAAA;AAAA,QACP,KAAO,EAAA,GAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP,EAAE,KAAA,EAAO,cAAM,EAAA,KAAA,EAAO,GAAI,EAAA;AAAA,UAC1B,EAAE,KAAA,EAAO,oBAAO,EAAA,KAA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A;AAAA,eACT;AAAA,cACA;AAAA,gBACE,IAAM,EAAA,QAAA;AAAA,gBACN,KAAO,EAAA,QAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,IAAA;AAAA,gBACP,OAAS,EAAA;AAAA,kBACP;AAAA,oBACE,KAAO,EAAA,IAAA;AAAA,oBACP,IAAM,EAAA;AAAA,sBACJ;AAAA,wBACE,IAAM,EAAA,OAAA;AAAA,wBACN,KAAO,EAAA,UAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,uBACT;AAAA,sBACA;AAAA,wBACE,IAAM,EAAA,OAAA;AAAA,wBACN,KAAO,EAAA,KAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,EAAA;AAAA,uBACT;AAAA,sBACA;AAAA,wBACE,IAAM,EAAA,cAAA;AAAA,wBACN,KAAO,EAAA,WAAA;AAAA,wBACP,KAAO,EAAA,cAAA;AAAA,wBACP,KAAO,EAAA,MAAA;AAAA,uBACT;AAAA,qBACF;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -40,9 +40,7 @@ var DkMinVideo = {
40
40
  suffix: {
41
41
  type: "p",
42
42
  style: { fontSize: "12px", color: "#888" },
43
- children: [
44
- "\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"
45
- ]
43
+ children: ["\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"]
46
44
  }
47
45
  }
48
46
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinVideo.js","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinVideo.js"],"sourcesContent":["const label = '视频'\nconst name = 'DkMinVideo'\n\nexport default {\n icon: 'icon-park-twotone:video-two',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n videoPath: '',\n isHeight: false,\n isOpenClose: false,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n { type: 'dk-video-input', field: 'videoPath', title: '视频', value: '' },\n {\n type: 'switch',\n field: 'isHeight',\n title: '固定高度',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '固定高度',\n value: 240,\n props: { min: 240, height: 1000 },\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: [\n '设置视频的高度固定,高度固定后可能会出现视频畸形,视频本身固定最小高度为240px',\n ],\n },\n },\n ],\n },\n ],\n effect: {\n help: '视频宽度默认为100%,高度为自动匹配视频,勾选后可以使用固定高度',\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,YAAA,CAAA;AAEb,iBAAe;AAAA,EACb,IAAM,EAAA,6BAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA,EAAA;AAAA,QACX,QAAU,EAAA,KAAA;AAAA,QACV,WAAa,EAAA,KAAA;AAAA,OACf;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,KACb,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,aAAa,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MACrE;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,UAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA,IAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP;AAAA,YACE,KAAO,EAAA,IAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,aAAA;AAAA,gBACN,KAAO,EAAA,QAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,GAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,GAAA,EAAK,QAAQ,GAAK,EAAA;AAAA,gBAChC,MAAQ,EAAA;AAAA,kBACN,IAAM,EAAA,GAAA;AAAA,kBACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,kBACzC,QAAU,EAAA;AAAA,oBACR,0NAAA;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,QACA,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,oLAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkMinVideo.js","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinVideo.js"],"sourcesContent":["const label = '视频'\nconst name = 'DkMinVideo'\n\nexport default {\n icon: 'icon-park-twotone:video-two',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n videoPath: '',\n isHeight: false,\n isOpenClose: false,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n { type: 'dk-video-input', field: 'videoPath', title: '视频', value: '' },\n {\n type: 'switch',\n field: 'isHeight',\n title: '固定高度',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '固定高度',\n value: 240,\n props: { min: 240, height: 1000 },\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: ['设置视频的高度固定,高度固定后可能会出现视频畸形,视频本身固定最小高度为240px'],\n },\n },\n ],\n },\n ],\n effect: {\n help: '视频宽度默认为100%,高度为自动匹配视频,勾选后可以使用固定高度',\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,YAAA,CAAA;AAEb,iBAAe;AAAA,EACb,IAAM,EAAA,6BAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA,EAAA;AAAA,QACX,QAAU,EAAA,KAAA;AAAA,QACV,WAAa,EAAA,KAAA;AAAA,OACf;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,KACb,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,aAAa,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MACrE;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,UAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA,IAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP;AAAA,YACE,KAAO,EAAA,IAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,aAAA;AAAA,gBACN,KAAO,EAAA,QAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,GAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,GAAA,EAAK,QAAQ,GAAK,EAAA;AAAA,gBAChC,MAAQ,EAAA;AAAA,kBACN,IAAM,EAAA,GAAA;AAAA,kBACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,kBACzC,QAAA,EAAU,CAAC,0NAA2C,CAAA;AAAA,iBACxD;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,QACA,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,oLAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -172,6 +172,7 @@ export const commonMenu: ({
172
172
  };
173
173
  showStyle: boolean;
174
174
  fixed: boolean;
175
+ setting: {};
175
176
  };
176
177
  props(): {
177
178
  type: string;
@@ -484,6 +485,7 @@ export const commonRuleList: {
484
485
  };
485
486
  showStyle: boolean;
486
487
  fixed: boolean;
488
+ setting: {};
487
489
  };
488
490
  props(): {
489
491
  type: string;
@@ -7,14 +7,7 @@ var DkMinBlank = require('./DkMinBlank.js');
7
7
  var DkMinTextarea = require('./DkMinTextarea.js');
8
8
  var DkMinHotArea = require('./DkMinHotArea.js');
9
9
 
10
- const commonMenu = [
11
- DkMinVideo.default,
12
- DkMinSwiperImage.default,
13
- DkMinTitle.default,
14
- DkMinBlank.default,
15
- DkMinTextarea.default,
16
- DkMinHotArea.default
17
- ];
10
+ const commonMenu = [DkMinVideo.default, DkMinSwiperImage.default, DkMinTitle.default, DkMinBlank.default, DkMinTextarea.default, DkMinHotArea.default];
18
11
  const commonRuleList = {
19
12
  [DkMinVideo.default.name]: DkMinVideo.default,
20
13
  [DkMinSwiperImage.default.name]: DkMinSwiperImage.default,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/index.js"],"sourcesContent":["import DkMinVideo from './DkMinVideo'\nimport DkMinSwiperImage from './DkMinSwiperImage'\nimport DkMinTitle from './DkMinTitle'\nimport DkMinBlank from './DkMinBlank'\nimport DkMinTextarea from './DkMinTextarea'\nimport DkMinHotArea from './DkMinHotArea'\n\nconst commonMenu = [\n DkMinVideo,\n DkMinSwiperImage,\n DkMinTitle,\n DkMinBlank,\n DkMinTextarea,\n DkMinHotArea,\n]\n\nconst commonRuleList = {\n [DkMinVideo.name]: DkMinVideo,\n [DkMinSwiperImage.name]: DkMinSwiperImage,\n [DkMinTitle.name]: DkMinTitle,\n [DkMinBlank.name]: DkMinBlank,\n [DkMinTextarea.name]: DkMinTextarea,\n [DkMinHotArea.name]: DkMinHotArea,\n}\n\nexport { commonMenu, commonRuleList }\n"],"names":["DkMinVideo","DkMinSwiperImage","DkMinTitle","DkMinBlank","DkMinTextarea","DkMinHotArea"],"mappings":";;;;;;;;;AAOA,MAAM,UAAa,GAAA;AAAA,EACjBA,kBAAA;AAAA,EACAC,wBAAA;AAAA,EACAC,kBAAA;AAAA,EACAC,kBAAA;AAAA,EACAC,qBAAA;AAAA,EACAC,oBAAA;AACF,EAAA;AAEA,MAAM,cAAiB,GAAA;AAAA,EACrB,CAACL,kBAAW,CAAA,IAAI,GAAGA,kBAAA;AAAA,EACnB,CAACC,wBAAiB,CAAA,IAAI,GAAGA,wBAAA;AAAA,EACzB,CAACC,kBAAW,CAAA,IAAI,GAAGA,kBAAA;AAAA,EACnB,CAACC,kBAAW,CAAA,IAAI,GAAGA,kBAAA;AAAA,EACnB,CAACC,qBAAc,CAAA,IAAI,GAAGA,qBAAA;AAAA,EACtB,CAACC,oBAAa,CAAA,IAAI,GAAGA,oBAAA;AACvB;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/index.js"],"sourcesContent":["import DkMinVideo from './DkMinVideo'\nimport DkMinSwiperImage from './DkMinSwiperImage'\nimport DkMinTitle from './DkMinTitle'\nimport DkMinBlank from './DkMinBlank'\nimport DkMinTextarea from './DkMinTextarea'\nimport DkMinHotArea from './DkMinHotArea'\n\nconst commonMenu = [DkMinVideo, DkMinSwiperImage, DkMinTitle, DkMinBlank, DkMinTextarea, DkMinHotArea]\n\nconst commonRuleList = {\n [DkMinVideo.name]: DkMinVideo,\n [DkMinSwiperImage.name]: DkMinSwiperImage,\n [DkMinTitle.name]: DkMinTitle,\n [DkMinBlank.name]: DkMinBlank,\n [DkMinTextarea.name]: DkMinTextarea,\n [DkMinHotArea.name]: DkMinHotArea,\n}\n\nexport { commonMenu, commonRuleList }\n"],"names":["DkMinVideo","DkMinSwiperImage","DkMinTitle","DkMinBlank","DkMinTextarea","DkMinHotArea"],"mappings":";;;;;;;;;AAOA,MAAM,aAAa,CAACA,kBAAA,EAAYC,0BAAkBC,kBAAY,EAAAC,kBAAA,EAAYC,uBAAeC,oBAAY,EAAA;AAErG,MAAM,cAAiB,GAAA;AAAA,EACrB,CAACL,kBAAW,CAAA,IAAI,GAAGA,kBAAA;AAAA,EACnB,CAACC,wBAAiB,CAAA,IAAI,GAAGA,wBAAA;AAAA,EACzB,CAACC,kBAAW,CAAA,IAAI,GAAGA,kBAAA;AAAA,EACnB,CAACC,kBAAW,CAAA,IAAI,GAAGA,kBAAA;AAAA,EACnB,CAACC,qBAAc,CAAA,IAAI,GAAGA,qBAAA;AAAA,EACtB,CAACC,oBAAa,CAAA,IAAI,GAAGA,oBAAA;AACvB;;;;;"}
@@ -173,6 +173,7 @@ export const minRuleList: {
173
173
  };
174
174
  showStyle: boolean;
175
175
  fixed: boolean;
176
+ setting: {};
176
177
  };
177
178
  props(): {
178
179
  type: string;
@@ -488,6 +489,7 @@ export function createMinMenu(): {
488
489
  };
489
490
  showStyle: boolean;
490
491
  fixed: boolean;
492
+ setting: {};
491
493
  };
492
494
  props(): {
493
495
  type: string;
@@ -129,9 +129,7 @@ var DkPosterBtn = {
129
129
  },
130
130
  {
131
131
  value: "event",
132
- rule: [
133
- { type: "input", field: "listen", title: "\u76D1\u542C\u4E8B\u4EF6", value: "" }
134
- ]
132
+ rule: [{ type: "input", field: "listen", title: "\u76D1\u542C\u4E8B\u4EF6", value: "" }]
135
133
  }
136
134
  ],
137
135
  effect: {
@@ -1 +1 @@
1
- {"version":3,"file":"DkPosterBtn.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkPosterBtn.js"],"sourcesContent":["const label = '海报'\nconst name = 'dk-poster-btn'\nexport default {\n icon: 'icon-park-outline:mark',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {},\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n {\n type: 'DkPosterInput',\n field: 'posterData',\n title: '海报数据',\n value: {},\n },\n {\n type: 'input',\n field: 'footerText',\n title: '底部',\n value: '长按海报图片分享或保存!',\n },\n {\n type: 'select',\n field: 'type',\n title: '样式',\n value: 'btn',\n options: [\n { label: '普通按钮', value: 'btn' },\n { label: '悬浮按钮', value: 'fixed_btn' },\n { label: '图片按钮', value: 'image' },\n { label: '事件触发', value: 'event' },\n ],\n control: [\n {\n value: 'btn',\n rule: [\n {\n type: 'input',\n field: 'btnText',\n title: '按钮文字',\n value: '获取推广海报',\n },\n {\n type: 'switch',\n field: 'block',\n title: '块状按钮',\n value: true,\n },\n { type: 'switch', field: 'round', title: '圆弧', value: true },\n {\n type: 'select',\n field: 'size',\n title: '尺寸',\n value: 'normal',\n options: [\n { label: '迷你按钮', value: 'mini' },\n { label: '小型按钮', value: 'small' },\n { label: '中型按钮', value: 'normal' },\n { label: '大型按钮', value: 'large' },\n ],\n },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '颜色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'color2',\n title: '渐变色',\n value: '',\n },\n ],\n },\n {\n value: 'fixed_btn',\n rule: [\n {\n type: 'input',\n field: 'fBtnText',\n title: '悬浮文字',\n value: '海报',\n },\n {\n type: 'DkColorInput',\n field: 'fBgColor',\n title: '背景色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'fColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'slider',\n field: 'fSize',\n title: '尺寸',\n value: 30,\n props: { min: 30, max: 100 },\n },\n ],\n },\n {\n value: 'image',\n rule: [\n { type: 'DkImageInput', field: 'img', title: '图片', value: '' },\n {\n type: 'slider',\n field: 'imgSize',\n title: '尺寸',\n value: 20,\n props: { min: 20, max: 100 },\n },\n ],\n },\n {\n value: 'event',\n rule: [\n { type: 'input', field: 'listen', title: '监听事件', value: '' },\n ],\n },\n ],\n effect: {\n help: '配置后可以点击下方【样式设置】->【组件悬浮】对按钮进行悬浮',\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,eAAA,CAAA;AACb,kBAAe;AAAA,EACb,IAAM,EAAA,wBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,OAAO,EAAC;AAAA,MACR,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL;AAAA,QACE,IAAM,EAAA,eAAA;AAAA,QACN,KAAO,EAAA,YAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,OAAO,EAAC;AAAA,OACV;AAAA,MACA;AAAA,QACE,IAAM,EAAA,OAAA;AAAA,QACN,KAAO,EAAA,YAAA;AAAA,QACP,KAAO,EAAA,cAAA;AAAA,QACP,KAAO,EAAA,0EAAA;AAAA,OACT;AAAA,MACA;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,MAAA;AAAA,QACP,KAAO,EAAA,cAAA;AAAA,QACP,KAAO,EAAA,KAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP,EAAE,KAAA,EAAO,0BAAQ,EAAA,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AO,EAAA,cAAA;AAAA,gBACP,KAAO,EAAA,EAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,EAAA,EAAI,KAAK,GAAI,EAAA;AAAA,eAC7B;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ,EAAE,MAAM,OAAS,EAAA,KAAA,EAAO,UAAU,KAAO,EAAA,0BAAA,EAAQ,OAAO,EAAG,EAAA;AAAA,aAC7D;AAAA,WACF;AAAA,SACF;AAAA,QACA,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,4KAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkPosterBtn.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkPosterBtn.js"],"sourcesContent":["const label = '海报'\nconst name = 'dk-poster-btn'\nexport default {\n icon: 'icon-park-outline:mark',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {},\n showStyle: true,\n fixed: true,\n }\n },\n props() {\n return [\n {\n type: 'DkPosterInput',\n field: 'posterData',\n title: '海报数据',\n value: {},\n },\n {\n type: 'input',\n field: 'footerText',\n title: '底部',\n value: '长按海报图片分享或保存!',\n },\n {\n type: 'select',\n field: 'type',\n title: '样式',\n value: 'btn',\n options: [\n { label: '普通按钮', value: 'btn' },\n { label: '悬浮按钮', value: 'fixed_btn' },\n { label: '图片按钮', value: 'image' },\n { label: '事件触发', value: 'event' },\n ],\n control: [\n {\n value: 'btn',\n rule: [\n {\n type: 'input',\n field: 'btnText',\n title: '按钮文字',\n value: '获取推广海报',\n },\n {\n type: 'switch',\n field: 'block',\n title: '块状按钮',\n value: true,\n },\n { type: 'switch', field: 'round', title: '圆弧', value: true },\n {\n type: 'select',\n field: 'size',\n title: '尺寸',\n value: 'normal',\n options: [\n { label: '迷你按钮', value: 'mini' },\n { label: '小型按钮', value: 'small' },\n { label: '中型按钮', value: 'normal' },\n { label: '大型按钮', value: 'large' },\n ],\n },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '颜色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'color2',\n title: '渐变色',\n value: '',\n },\n ],\n },\n {\n value: 'fixed_btn',\n rule: [\n {\n type: 'input',\n field: 'fBtnText',\n title: '悬浮文字',\n value: '海报',\n },\n {\n type: 'DkColorInput',\n field: 'fBgColor',\n title: '背景色',\n value: '#ff3d2c',\n },\n {\n type: 'DkColorInput',\n field: 'fColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'slider',\n field: 'fSize',\n title: '尺寸',\n value: 30,\n props: { min: 30, max: 100 },\n },\n ],\n },\n {\n value: 'image',\n rule: [\n { type: 'DkImageInput', field: 'img', title: '图片', value: '' },\n {\n type: 'slider',\n field: 'imgSize',\n title: '尺寸',\n value: 20,\n props: { min: 20, max: 100 },\n },\n ],\n },\n {\n value: 'event',\n rule: [{ type: 'input', field: 'listen', title: '监听事件', value: '' }],\n },\n ],\n effect: {\n help: '配置后可以点击下方【样式设置】->【组件悬浮】对按钮进行悬浮',\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,eAAA,CAAA;AACb,kBAAe;AAAA,EACb,IAAM,EAAA,wBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,OAAO,EAAC;AAAA,MACR,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,KACT,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL;AAAA,QACE,IAAM,EAAA,eAAA;AAAA,QACN,KAAO,EAAA,YAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,OAAO,E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ACP,KAAO,EAAA,EAAE,GAAK,EAAA,EAAA,EAAI,KAAK,GAAI,EAAA;AAAA,eAC7B;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ,EAAE,MAAM,cAAgB,EAAA,KAAA,EAAO,OAAO,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,cAC7D;AAAA,gBACE,IAAM,EAAA,QAAA;AAAA,gBACN,KAAO,EAAA,SAAA;AAAA,gBACP,KAAO,EAAA,cAAA;AAAA,gBACP,KAAO,EAAA,EAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,EAAA,EAAI,KAAK,GAAI,EAAA;AAAA,eAC7B;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,IAAA,EAAM,CAAC,EAAE,IAAM,EAAA,OAAA,EAAS,KAAO,EAAA,QAAA,EAAU,KAAO,EAAA,0BAAA,EAAQ,KAAO,EAAA,EAAA,EAAI,CAAA;AAAA,WACrE;AAAA,SACF;AAAA,QACA,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,4KAAA;AAAA,SACR;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewBulletChat.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewBulletChat.js"],"sourcesContent":["const label = '弹幕组件'\nconst name = 'DkViewBulletChat'\nexport default {\n icon: 'mingcute:chat-1-line',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n dataType: 'default',\n bulletData: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar: 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',\n },\n ],\n },\n fixed: true,\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'DkColorInput',\n field: 'bgColor',\n title: '背景色',\n props: { showAlpha: true },\n value: 'rgb(0 0 0 / 30%)',\n },\n {\n type: 'DkColorInput',\n field: 'textColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'inputNumber',\n field: 'autoplay',\n title: '滚动频率',\n value: 3000,\n props: { min: 1000, max: 10000, step: 500 },\n },\n {\n type: 'select',\n field: 'dataType',\n title: '内容来源',\n value: 'default',\n options: [\n { label: '手动填写', value: 'default' },\n { label: '事件传参', value: 'event' },\n ],\n control: [\n {\n value: 'default',\n rule: [\n {\n type: 'dk-group',\n field: 'bulletData',\n // title: '弹幕数据',\n value: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar:\n 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',\n },\n ],\n props: {\n titleField: 'text',\n defaultValue: {\n avatar: '',\n text: '',\n },\n rule: [\n { type: 'input', field: 'text', title: '描述' },\n {\n type: 'dkImageInput',\n field: 'avatar',\n title: '头像',\n value: '',\n },\n ],\n },\n },\n ],\n },\n {\n value: 'event',\n rule: [\n {\n type: 'DkEventSelectInput',\n field: 'eventName',\n title: '事件名称',\n value: '',\n props: { label: '弹幕事件' },\n effect: { help: '选择支持弹幕的事件,内容将由该事件传递参数' },\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,0BAAA,CAAA;AACd,MAAM,IAAO,GAAA,kBAAA,CAAA;AACb,uBAAe;AAAA,EACb,IAAM,EAAA,sBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,QAAU,EAAA,SAAA;AAAA,QACV,UAAY,EAAA;AAAA,UACV;AAAA,YACE,IAAM,EAAA,sEAAA;AAAA,YACN,MAAQ,EAAA,uDAAA;AAAA,WACV;AAAA,SACF;AAAA,OACF;AAAA,MACA,KAAO,EAAA,IAAA;AAAA,MACP,S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A,gBACA,KAAO,EAAA;AAAA,kBACL,UAAY,EAAA,MAAA;AAAA,kBACZ,YAAc,EAAA;AAAA,oBACZ,MAAQ,EAAA,EAAA;AAAA,oBACR,IAAM,EAAA,EAAA;AAAA,mBACR;AAAA,kBACA,IAAM,EAAA;AAAA,oBACJ,EAAE,IAAM,EAAA,OAAA,EAAS,KAAO,EAAA,MAAA,EAAQ,OAAO,cAAK,EAAA;AAAA,oBAC5C;AAAA,sBACE,IAAM,EAAA,cAAA;AAAA,sBACN,KAAO,EAAA,QAAA;AAAA,sBACP,KAAO,EAAA,cAAA;AAAA,sBACP,KAAO,EAAA,EAAA;AAAA,qBACT;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,oBAAA;AAAA,gBACN,KAAO,EAAA,WAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,EAAA;AAAA,gBACP,KAAA,EAAO,EAAE,KAAA,EAAO,0BAAO,EAAA;AAAA,gBACvB,MAAA,EAAQ,EAAE,IAAA,EAAM,gIAAwB,EAAA;AAAA,eAC1C;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkViewBulletChat.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewBulletChat.js"],"sourcesContent":["const label = '弹幕组件'\nconst name = 'DkViewBulletChat'\nexport default {\n icon: 'mingcute:chat-1-line',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n dataType: 'default',\n bulletData: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar: 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',\n },\n ],\n },\n fixed: true,\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'DkColorInput',\n field: 'bgColor',\n title: '背景色',\n props: { showAlpha: true },\n value: 'rgb(0 0 0 / 30%)',\n },\n {\n type: 'DkColorInput',\n field: 'textColor',\n title: '文字色',\n value: '#fff',\n },\n {\n type: 'inputNumber',\n field: 'autoplay',\n title: '滚动频率',\n value: 3000,\n props: { min: 1000, max: 10000, step: 500 },\n },\n {\n type: 'select',\n field: 'dataType',\n title: '内容来源',\n value: 'default',\n options: [\n { label: '手动填写', value: 'default' },\n { label: '事件传参', value: 'event' },\n ],\n control: [\n {\n value: 'default',\n rule: [\n {\n type: 'dk-group',\n field: 'bulletData',\n // title: '弹幕数据',\n value: [\n {\n text: '小明在14分钟购买了iPhone手机',\n avatar: 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg',\n },\n ],\n props: {\n titleField: 'text',\n defaultValue: {\n avatar: '',\n text: '',\n },\n rule: [\n { type: 'input', field: 'text', title: '描述' },\n {\n type: 'dkImageInput',\n field: 'avatar',\n title: '头像',\n value: '',\n },\n ],\n },\n },\n ],\n },\n {\n value: 'event',\n rule: [\n {\n type: 'DkEventSelectInput',\n field: 'eventName',\n title: '事件名称',\n value: '',\n props: { label: '弹幕事件' },\n effect: { help: '选择支持弹幕的事件,内容将由该事件传递参数' },\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,0BAAA,CAAA;AACd,MAAM,IAAO,GAAA,kBAAA,CAAA;AACb,uBAAe;AAAA,EACb,IAAM,EAAA,sBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,QAAU,EAAA,SAAA;AAAA,QACV,UAAY,EAAA;AAAA,UACV;AAAA,YACE,IAAM,EAAA,sEAAA;AAAA,YACN,MAAQ,EAAA,uDAAA;AAAA,WACV;AAAA,SACF;AAAA,OACF;A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EAAA,uDAAA;AAAA,mBACV;AAAA,iBACF;AAAA,gBACA,KAAO,EAAA;AAAA,kBACL,UAAY,EAAA,MAAA;AAAA,kBACZ,YAAc,EAAA;AAAA,oBACZ,MAAQ,EAAA,EAAA;AAAA,oBACR,IAAM,EAAA,EAAA;AAAA,mBACR;AAAA,kBACA,IAAM,EAAA;AAAA,oBACJ,EAAE,IAAM,EAAA,OAAA,EAAS,KAAO,EAAA,MAAA,EAAQ,OAAO,cAAK,EAAA;AAAA,oBAC5C;AAAA,sBACE,IAAM,EAAA,cAAA;AAAA,sBACN,KAAO,EAAA,QAAA;AAAA,sBACP,KAAO,EAAA,cAAA;AAAA,sBACP,KAAO,EAAA,EAAA;AAAA,qBACT;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,UACA;AAAA,YACE,KAAO,EAAA,OAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,oBAAA;AAAA,gBACN,KAAO,EAAA,WAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,EAAA;AAAA,gBACP,KAAA,EAAO,EAAE,KAAA,EAAO,0BAAO,EAAA;AAAA,gBACvB,MAAA,EAAQ,EAAE,IAAA,EAAM,gIAAwB,EAAA;AAAA,eAC1C;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -41,9 +41,7 @@ var DkViewVideo = {
41
41
  suffix: {
42
42
  type: "p",
43
43
  style: { fontSize: "12px", color: "#888" },
44
- children: [
45
- "\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"
46
- ]
44
+ children: ["\u8BBE\u7F6E\u89C6\u9891\u7684\u9AD8\u5EA6\u56FA\u5B9A\uFF0C\u9AD8\u5EA6\u56FA\u5B9A\u540E\u53EF\u80FD\u4F1A\u51FA\u73B0\u89C6\u9891\u7578\u5F62,\u89C6\u9891\u672C\u8EAB\u56FA\u5B9A\u6700\u5C0F\u9AD8\u5EA6\u4E3A240px"]
47
45
  }
48
46
  }
49
47
  ]
@@ -52,9 +50,7 @@ var DkViewVideo = {
52
50
  suffix: {
53
51
  type: "p",
54
52
  style: { fontSize: "12px", color: "#888" },
55
- children: [
56
- "\u89C6\u9891\u5BBD\u5EA6\u9ED8\u8BA4\u4E3A100%\uFF0C\u9AD8\u5EA6\u4E3A\u81EA\u52A8\u5339\u914D\u89C6\u9891\uFF0C\u52FE\u9009\u540E\u53EF\u4EE5\u4F7F\u7528\u56FA\u5B9A\u9AD8\u5EA6"
57
- ]
53
+ children: ["\u89C6\u9891\u5BBD\u5EA6\u9ED8\u8BA4\u4E3A100%\uFF0C\u9AD8\u5EA6\u4E3A\u81EA\u52A8\u5339\u914D\u89C6\u9891\uFF0C\u52FE\u9009\u540E\u53EF\u4EE5\u4F7F\u7528\u56FA\u5B9A\u9AD8\u5EA6"]
58
54
  }
59
55
  },
60
56
  {
@@ -64,9 +60,7 @@ var DkViewVideo = {
64
60
  suffix: {
65
61
  type: "p",
66
62
  style: { fontSize: "12px", color: "#888" },
67
- children: [
68
- "\u8BBE\u7F6E\u5F00\u542F\u5F00\u5408\u6A21\u5F0F\u540E\uFF0C\u89C6\u9891\u652F\u6301\u4E0A\u6ED1\u7F29\u653E\u5173\u95ED\u4E0B\u6ED1\u7F29\u653E\u6253\u5F00,\u5C3D\u91CF\u5C06\u89C6\u9891\u6A21\u5757\u653E\u7F6E\u9876\u90E8"
69
- ]
63
+ children: ["\u8BBE\u7F6E\u5F00\u542F\u5F00\u5408\u6A21\u5F0F\u540E\uFF0C\u89C6\u9891\u652F\u6301\u4E0A\u6ED1\u7F29\u653E\u5173\u95ED\u4E0B\u6ED1\u7F29\u653E\u6253\u5F00,\u5C3D\u91CF\u5C06\u89C6\u9891\u6A21\u5757\u653E\u7F6E\u9876\u90E8"]
70
64
  }
71
65
  }
72
66
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewVideo.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewVideo.js"],"sourcesContent":["const label = '视频'\nconst name = 'DkViewVideo'\n\nexport default {\n icon: 'icon-park-twotone:video-two',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n videoPath: '',\n isHeight: false,\n isOpenClose: false,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n { type: 'dk-image-input', field: 'poster', title: '封面', value: '' },\n { type: 'dk-video-input', field: 'videoPath', title: '视频', value: '' },\n {\n type: 'switch',\n field: 'isHeight',\n title: '固定高度',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '固定高度',\n value: 240,\n props: { min: 240, height: 1000 },\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: [\n '设置视频的高度固定,高度固定后可能会出现视频畸形,视频本身固定最小高度为240px',\n ],\n },\n },\n ],\n },\n ],\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: [\n '视频宽度默认为100%,高度为自动匹配视频,勾选后可以使用固定高度',\n ],\n },\n },\n {\n type: 'switch',\n field: 'isOpenClose',\n title: '开合模式',\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: [\n '设置开启开合模式后,视频支持上滑缩放关闭下滑缩放打开,尽量将视频模块放置顶部',\n ],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,aAAA,CAAA;AAEb,kBAAe;AAAA,EACb,IAAM,EAAA,6BAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AA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AAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,UACzC,QAAU,EAAA;AAAA,YACR,oLAAA;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,aAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,GAAA;AAAA,UACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,UACzC,QAAU,EAAA;AAAA,YACR,iOAAA;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkViewVideo.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewVideo.js"],"sourcesContent":["const label = '视频'\nconst name = 'DkViewVideo'\n\nexport default {\n icon: 'icon-park-twotone:video-two',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n videoPath: '',\n isHeight: false,\n isOpenClose: false,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n { type: 'dk-image-input', field: 'poster', title: '封面', value: '' },\n { type: 'dk-video-input', field: 'videoPath', title: '视频', value: '' },\n {\n type: 'switch',\n field: 'isHeight',\n title: '固定高度',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '固定高度',\n value: 240,\n props: { min: 240, height: 1000 },\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: ['设置视频的高度固定,高度固定后可能会出现视频畸形,视频本身固定最小高度为240px'],\n },\n },\n ],\n },\n ],\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: ['视频宽度默认为100%,高度为自动匹配视频,勾选后可以使用固定高度'],\n },\n },\n {\n type: 'switch',\n field: 'isOpenClose',\n title: '开合模式',\n suffix: {\n type: 'p',\n style: { fontSize: '12px', color: '#888' },\n children: ['设置开启开合模式后,视频支持上滑缩放关闭下滑缩放打开,尽量将视频模块放置顶部'],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,aAAA,CAAA;AAEb,kBAAe;AAAA,EACb,IAAM,EAAA,6BAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA,EAAA;AAAA,QACX,QAAU,EAAA,KAAA;AAAA,QACV,WAAa,EAAA,KAAA;AAAA,OACf;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,KACb,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,UAAU,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MAClE,EAAE,MAAM,gBAAkB,EAAA,KAAA,EAAO,aAAa,KAAO,EAAA,cAAA,EAAM,OAAO,EAAG,EAAA;AAAA,MACrE;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,UAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,KAAO,EAAA,IAAA;AAAA,QACP,OAAS,EAAA;AAAA,UACP;AAAA,YACE,KAAO,EAAA,IAAA;AAAA,YACP,IAAM,EAAA;AAAA,cACJ;AAAA,gBACE,IAAM,EAAA,aAAA;AAAA,gBACN,KAAO,EAAA,QAAA;AAAA,gBACP,KAAO,EAAA,0BAAA;AAAA,gBACP,KAAO,EAAA,GAAA;AAAA,gBACP,KAAO,EAAA,EAAE,GAAK,EAAA,GAAA,EAAK,QAAQ,GAAK,EAAA;AAAA,gBAChC,MAAQ,EAAA;AAAA,kBACN,IAAM,EAAA,GAAA;AAAA,kBACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,kBACzC,QAAA,EAAU,CAAC,0NAA2C,CAAA;AAAA,iBACxD;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,QACA,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,GAAA;AAAA,UACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,UACzC,QAAA,EAAU,CAAC,oLAAmC,CAAA;AAAA,SAChD;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,QAAA;AAAA,QACN,KAAO,EAAA,aAAA;AAAA,QACP,KAAO,EAAA,0BAAA;AAAA,QACP,MAAQ,EAAA;AAAA,UACN,IAAM,EAAA,GAAA;AAAA,UACN,KAAO,EAAA,EAAE,QAAU,EAAA,MAAA,EAAQ,OAAO,MAAO,EAAA;AAAA,UACzC,QAAA,EAAU,CAAC,iOAAwC,CAAA;AAAA,SACrD;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"eventData.js","sources":["../../../../src/page-diy/src/utils/eventData.ts"],"sourcesContent":["class EventData {\n events: { id: string | number; label: string; value: any }[] = []\n\n constructor() {}\n\n // 添加单个事件数据\n addEvent(data: { id: string | number; label: string; value: any }) {\n this.events.push({\n id: data.id,\n label: data.label,\n value: data.value,\n })\n }\n\n // 批量添加事件数据\n addEvents(\n dataList: Array<{ id: string | number; label: string; value: any }>\n ) {\n this.events.push(\n ...dataList.map((data) => ({\n id: data.id,\n label: data.label,\n value: data.value,\n }))\n )\n }\n\n // 获取所有事件数据\n getAllEvents() {\n // return [...this.events]\n return this.events\n }\n\n // 根据id获取事件数据\n getEventById(id: string | number) {\n return this.events.find((event) => event.id === id)\n }\n\n // 删除指定id的事件数据\n removeEventById(id: string | number) {\n const index = this.events.findIndex((event) => event.id === id)\n if (index !== -1) {\n this.events.splice(index, 1)\n }\n }\n\n // 删除指定id的事件数据\n removeEventByLabel(label: string | number) {\n const index = this.events.findIndex((event) => event.label === label)\n if (index !== -1) {\n this.events.splice(index, 1)\n }\n }\n\n removeAllEvent() {\n this.events = []\n }\n}\n\nexport default EventData\n"],"names":[],"mappings":";;;;AAAA,MAAM,SAAU,CAAA;AAAA,EACd,SAA+D,EAAC,CAAA;AAAA,EAEhE,WAAc,GAAA;AAAA,GAAC;AAAA;AAAA,EAGf,SAAS,IAA0D,EAAA;AACjE,IAAA,IAAA,CAAK,OAAO,IAAK,CAAA;AAAA,MACf,IAAI,IAAK,CAAA,EAAA;AAAA,MACT,OAAO,IAAK,CAAA,KAAA;AAAA,MACZ,OAAO,IAAK,CAAA,KAAA;AAAA,KACb,CAAA,CAAA;AAAA,GACH;AAAA;AAAA,EAGA,UACE,QACA,EAAA;AACA,IAAA,IAAA,CAAK,MAAO,CAAA,IAAA;AAAA,MACV,GAAG,QAAA,CAAS,GAAI,CAAA,CAAC,IAAU,MAAA;AAAA,QACzB,IAAI,IAAK,CAAA,EAAA;AAAA,QACT,OAAO,IAAK,CAAA,KAAA;AAAA,QACZ,OAAO,IAAK,CAAA,KAAA;AAAA,OACZ,CAAA,CAAA;AAAA,KACJ,CAAA;AAAA,GACF;AAAA;AAAA,EAGA,YAAe,GAAA;AAEb,IAAA,OAAO,IAAK,CAAA,MAAA,CAAA;AAAA,GACd;AAAA;AAAA,EAGA,aAAa,EAAqB,EAAA;AAChC,IAAA,OAAO,KAAK,MAAO,CAAA,IAAA,CAAK,CAAC,KAAU,KAAA,KAAA,CAAM,OAAO,EAAE,CAAA,CAAA;AAAA,GACpD;AAAA;AAAA,EAGA,gBAAgB,EAAqB,EAAA;AACnC,IAAM,MAAA,KAAA,GAAQ,KAAK,MAAO,CAAA,SAAA,CAAU,CAAC,KAAU,KAAA,KAAA,CAAM,OAAO,EAAE,CAAA,CAAA;AAC9D,IAAA,IAAI,UAAU,CAAI,CAAA,EAAA;AAChB,MAAK,IAAA,CAAA,MAAA,CAAO,MAAO,CAAA,KAAA,EAAO,CAAC,CAAA,CAAA;AAAA,KAC7B;AAAA,GACF;AAAA;AAAA,EAGA,mBAAmB,KAAwB,EAAA;AACzC,IAAM,MAAA,KAAA,GAAQ,KAAK,MAAO,CAAA,SAAA,CAAU,CAAC,KAAU,KAAA,KAAA,CAAM,UAAU,KAAK,CAAA,CAAA;AACpE,IAAA,IAAI,UAAU,CAAI,CAAA,EAAA;AAChB,MAAK,IAAA,CAAA,MAAA,CAAO,MAAO,CAAA,KAAA,EAAO,CAAC,CAAA,CAAA;AAAA,KAC7B;AAAA,GACF;AAAA,EAEA,cAAiB,GAAA;AACf,IAAA,IAAA,CAAK,SAAS,EAAC,CAAA;AAAA,GACjB;AACF;;;;"}
1
+ {"version":3,"file":"eventData.js","sources":["../../../../src/page-diy/src/utils/eventData.ts"],"sourcesContent":["class EventData {\n events: { id: string | number; label: string; value: any }[] = []\n\n constructor() {}\n\n // 添加单个事件数据\n addEvent(data: { id: string | number; label: string; value: any }) {\n this.events.push({\n id: data.id,\n label: data.label,\n value: data.value,\n })\n }\n\n // 批量添加事件数据\n addEvents(dataList: Array<{ id: string | number; label: string; value: any }>) {\n this.events.push(\n ...dataList.map((data) => ({\n id: data.id,\n label: data.label,\n value: data.value,\n }))\n )\n }\n\n // 获取所有事件数据\n getAllEvents() {\n // return [...this.events]\n return this.events\n }\n\n // 根据id获取事件数据\n getEventById(id: string | number) {\n return this.events.find((event) => event.id === id)\n }\n\n // 删除指定id的事件数据\n removeEventById(id: string | number) {\n const index = this.events.findIndex((event) => event.id === id)\n if (index !== -1) {\n this.events.splice(index, 1)\n }\n }\n\n // 删除指定id的事件数据\n removeEventByLabel(label: string | number) {\n const index = this.events.findIndex((event) => event.label === label)\n if (index !== -1) {\n this.events.splice(index, 1)\n }\n }\n\n removeAllEvent() {\n this.events = []\n }\n}\n\nexport default EventData\n"],"names":[],"mappings":";;;;AAAA,MAAM,SAAU,CAAA;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U,KAAA,KAAA,CAAM,UAAU,KAAK,CAAA,CAAA;AACpE,IAAA,IAAI,UAAU,CAAI,CAAA,EAAA;AAChB,MAAK,IAAA,CAAA,MAAA,CAAO,MAAO,CAAA,KAAA,EAAO,CAAC,CAAA,CAAA;AAAA,KAC7B;AAAA,GACF;AAAA,EAEA,cAAiB,GAAA;AACf,IAAA,IAAA,CAAK,SAAS,EAAC,CAAA;AAAA,GACjB;AACF;;;;"}
@@ -63,27 +63,14 @@ const _sfc_main = {
63
63
  views.value = JSON.parse(JSON.stringify(props.hotData.views));
64
64
  // 根据容器宽度调整热图区域的位置与尺寸
65
65
  views.value.forEach((view) => {
66
- const {
67
- left,
68
- top,
69
- width: originalWidth,
70
- height: originalHeight,
71
- } = view.css;
66
+ const { left, top, width: originalWidth, height: originalHeight } = view.css;
72
67
  // 计算实际宽度和高度,假设按比例缩放
73
- const actualWidth = Math.round(
74
- originalWidth * (containerWidth.value / props.hotData.width)
75
- );
76
- const actualHeight = Math.round(
77
- originalHeight * (containerWidth.value / props.hotData.width)
78
- );
68
+ const actualWidth = Math.round(originalWidth * (containerWidth.value / props.hotData.width));
69
+ const actualHeight = Math.round(originalHeight * (containerWidth.value / props.hotData.width));
79
70
 
80
71
  // 计算实际left和top
81
- const actualLeft = Math.round(
82
- left * (containerWidth.value / props.hotData.width)
83
- );
84
- const actualTop = Math.round(
85
- top * (containerWidth.value / props.hotData.width)
86
- );
72
+ const actualLeft = Math.round(left * (containerWidth.value / props.hotData.width));
73
+ const actualTop = Math.round(top * (containerWidth.value / props.hotData.width));
87
74
  // 更新视图样式
88
75
  view.css = {
89
76
  ...view.css,
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinHotArea.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinHotArea.vue"],"sourcesContent":["<template>\n <div ref=\"el\" class=\"dk-min-area\">\n <img\n v-if=\"hotData.background\"\n :src=\"hotData.background\"\n alt=\"\"\n style=\"width: 100%\"\n />\n <el-empty v-else description=\"请上传背景图\"></el-empty>\n <div\n v-for=\"(view, index) in views\"\n :key=\"index\"\n :style=\"{\n position: 'absolute',\n ...view.css,\n background: showMask ? '#0008' : '#0004',\n }\"\n >\n <!-- 可以在这里放置热图链接或覆盖层 -->\n <div\n :style=\"{ width: view.css.width, height: view.css.height }\"\n class=\"hot-item\"\n >\n {{ index + 1 }}\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { onMounted, ref, onUnmounted, watch } from 'vue'\n\nexport default {\n name: 'DkMinHotArea',\n props: {\n hotData: {\n default: () => ({}),\n type: Object,\n },\n showMask: {\n default: false,\n type: Boolean,\n },\n },\n setup(props) {\n const el = ref(null)\n let ro = null\n const containerWidth = ref(0)\n\n const views = ref([])\n\n // const\n onMounted(() => {\n ro = new (window.ResizeObserver || ResizeObserver)(handleResize)\n ro.observe(el.value)\n // 初始化容器宽度\n containerWidth.value = el.value.clientWidth\n // 计算并转换热图区域的位置和尺寸\n adjustHotspots()\n })\n\n onUnmounted(() => {\n if (ro) {\n ro.disconnect()\n }\n })\n\n watch(\n () => props.hotData.views,\n () => {\n adjustHotspots()\n },\n {\n deep: true,\n }\n )\n\n function handleResize(entries) {\n entries.forEach((entry) => {\n if (entry.target === el.value) {\n containerWidth.value = entry.contentRect.width\n adjustHotspots()\n }\n })\n }\n\n function adjustHotspots() {\n views.value = JSON.parse(JSON.stringify(props.hotData.views))\n // 根据容器宽度调整热图区域的位置与尺寸\n views.value.forEach((view) => {\n const {\n left,\n top,\n width: originalWidth,\n height: originalHeight,\n } = view.css\n // 计算实际宽度和高度,假设按比例缩放\n const actualWidth = Math.round(\n originalWidth * (containerWidth.value / props.hotData.width)\n )\n const actualHeight = Math.round(\n originalHeight * (containerWidth.value / props.hotData.width)\n )\n\n // 计算实际left和top\n const actualLeft = Math.round(\n left * (containerWidth.value / props.hotData.width)\n )\n const actualTop = Math.round(\n top * (containerWidth.value / props.hotData.width)\n )\n // 更新视图样式\n view.css = {\n ...view.css,\n left: actualLeft + 'px',\n top: actualTop + 'px',\n width: actualWidth + 'px',\n height: actualHeight + 'px',\n }\n })\n }\n\n return {\n el,\n containerWidth,\n views,\n }\n },\n}\n</script>\n"],"names":["ref","onMounted","onUnmounted","watch","_openBlock","_createElementBlock","_createBlock","_Fragment","_renderList","_normalizeStyle","_createCommentVNode","_createElementVNode"],"mappings":";;;;;;;AAgCA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,cAAc;AACpB,EAAA,KAAK,EAAE;AACL,IAAA,OAAO,EAAE;AACP,MAAA,OAAO,EAAE,OAAO,EAAE,CAAC;MACnB,IAAI,EAAE,MAAM;KACb;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,KAAK;MACd,IAAI,EAAE,OAAO;KACd;GACF;EACD,KAAK,CAAC,KAAK,EAAE;AACX,IAAA,MAAM,EAAG,GAAEA,OAAG,CAAC,IAAI,EAAA;AACnB,IAAA,IAAI,KAAK,KAAG;IACZ,MAAM,cAAa,GAAIA,OAAG,CAAC,CAAC,EAAA;;AAE5B,IAAA,MAAM,KAAI,GAAIA,OAAG,CAAC,EAAE,EAAA;;AAEpB;AACA,IAAAC,aAAS,CAAC,MAAM;MACd,EAAC,GAAI,KAAK,MAAM,CAAC,cAAe,IAAG,cAAc,EAAE,YAAY,EAAA;AAC/D,MAAA,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAA;AACnB;AACA,MAAA,cAAc,CAAC,KAAI,GAAI,EAAE,CAAC,KAAK,CAAC,YAAU;AAC1C;AACA,MAAA,cAAc,GAAC;KAChB,EAAA;;AAED,IAAAC,eAAW,CAAC,MAAM;AAChB,MAAA,IAAI,EAAE,EAAE;AACN,QAAA,EAAE,CAAC,UAAU,GAAC;AAChB,OAAA;KACD,EAAA;;IAEDC,SAAK;MACH,MAAM,KAAK,CAAC,OAAO,CAAC,KAAK;MACzB,MAAM;AACJ,QAAA,cAAc,GAAC;OAChB;AACD,MAAA;AACE,QAAA,IAAI,EAAE,IAAI;AACZ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AC,GAAG,CAAC,MAAM,EAAA,CAAA;AACxD,UAAA,KAAK,EAAC,UAAU;+BAEb,KAAK,GAAA,CAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
1
+ {"version":3,"file":"DkMinHotArea.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinHotArea.vue"],"sourcesContent":["<template>\n <div ref=\"el\" class=\"dk-min-area\">\n <img v-if=\"hotData.background\" :src=\"hotData.background\" alt=\"\" style=\"width: 100%\" />\n <el-empty v-else description=\"请上传背景图\"></el-empty>\n <div\n v-for=\"(view, index) in views\"\n :key=\"index\"\n :style=\"{\n position: 'absolute',\n ...view.css,\n background: showMask ? '#0008' : '#0004',\n }\"\n >\n <!-- 可以在这里放置热图链接或覆盖层 -->\n <div :style=\"{ width: view.css.width, height: view.css.height }\" class=\"hot-item\">\n {{ index + 1 }}\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { onMounted, ref, onUnmounted, watch } from 'vue'\n\nexport default {\n name: 'DkMinHotArea',\n props: {\n hotData: {\n default: () => ({}),\n type: Object,\n },\n showMask: {\n default: false,\n type: Boolean,\n },\n },\n setup(props) {\n const el = ref(null)\n let ro = null\n const containerWidth = ref(0)\n\n const views = ref([])\n\n // const\n onMounted(() => {\n ro = new (window.ResizeObserver || ResizeObserver)(handleResize)\n ro.observe(el.value)\n // 初始化容器宽度\n containerWidth.value = el.value.clientWidth\n // 计算并转换热图区域的位置和尺寸\n adjustHotspots()\n })\n\n onUnmounted(() => {\n if (ro) {\n ro.disconnect()\n }\n })\n\n watch(\n () => props.hotData.views,\n () => {\n adjustHotspots()\n },\n {\n deep: true,\n }\n )\n\n function handleResize(entries) {\n entries.forEach((entry) => {\n if (entry.target === el.value) {\n containerWidth.value = entry.contentRect.width\n adjustHotspots()\n }\n })\n }\n\n function adjustHotspots() {\n views.value = JSON.parse(JSON.stringify(props.hotData.views))\n // 根据容器宽度调整热图区域的位置与尺寸\n views.value.forEach((view) => {\n const { left, top, width: originalWidth, height: originalHeight } = view.css\n // 计算实际宽度和高度,假设按比例缩放\n const actualWidth = Math.round(originalWidth * (containerWidth.value / props.hotData.width))\n const actualHeight = Math.round(originalHeight * (containerWidth.value / props.hotData.width))\n\n // 计算实际left和top\n const actualLeft = Math.round(left * (containerWidth.value / props.hotData.width))\n const actualTop = Math.round(top * (containerWidth.value / props.hotData.width))\n // 更新视图样式\n view.css = {\n ...view.css,\n left: actualLeft + 'px',\n top: actualTop + 'px',\n width: actualWidth + 'px',\n height: actualHeight + 'px',\n }\n })\n }\n\n return {\n el,\n containerWidth,\n views,\n }\n },\n}\n</script>\n"],"names":["ref","onMounted","onUnmounted","watch","_openBlock","_createElementBlock","_createBlock","_Fragment","_renderList","_normalizeStyle","_createCommentVNode","_createElementVNode"],"mappings":";;;;;;;AAwBA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,cAAc;AACpB,EAAA,KAAK,EAAE;AACL,IAAA,OAAO,EAAE;AACP,MAAA,OAAO,EAAE,OAAO,EAAE,CAAC;MACnB,IAAI,EAAE,MAAM;KACb;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,KAAK;MACd,IAAI,EAAE,OAAO;KACd;GACF;EACD,KAAK,CAAC,KAAK,EAAE;AACX,IAAA,MAAM,EAAG,GAAEA,OAAG,CAAC,IAAI,EAAA;AACnB,IAAA,IAAI,KAAK,KAAG;IACZ,MAAM,cAAa,GAAIA,OAAG,CAAC,CAAC,EAAA;;AAE5B,IAAA,MAAM,KAAI,GAAIA,OAAG,CAAC,EAAE,EAAA;;AAEpB;AACA,IAAAC,aAAS,CAAC,MAAM;MACd,EAAC,GAAI,KAAK,MAAM,CAAC,cAAe,IAAG,cAAc,EAAE,YAAY,EAAA;AAC/D,MAAA,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAA;AACnB;AACA,MAAA,cAAc,CAAC,KAAI,GAAI,EAAE,CAAC,KAAK,CAAC,YAAU;AAC1C;AACA,MAAA,cAAc,GA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AA6C,QAAA,GAAA,IAAI,CAAC,GAAG;oBAAsB,MAAQ,CAAA,QAAA,GAAA,OAAA,GAAA,OAAA;;;QAMzFC,sBAAwB,CAAA,mBAAA,CAAA;QACxBC,sBAEM,CAAA,KAAA,EAAA;UAFA,KAAK,EAAAF,kBAAA,CAAA,EAAA,KAAA,EAAW,IAAI,CAAC,GAAG,CAAC,KAAK,EAAA,MAAA,EAAU,IAAI,CAAC,GAAG,CAAC,MAAM,EAAA,CAAA;AAAI,UAAA,KAAK,EAAC,UAAU;+BAC5E,KAAK,GAAA,CAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinSwiperImage.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinSwiperImage.vue"],"sourcesContent":["<template>\n <van-swipe\n class=\"dk-min-swipe\"\n :autoplay=\"autoplay\"\n indicator-color=\"white\"\n :style=\"{ background: bgColor || '' }\"\n >\n <van-swipe-item v-for=\"(item, key) in swipeList\" :key=\"key\">\n <van-image :src=\"item.img\" width=\"100%\" :height=\"height\" />\n <div v-if=\"showTitle\" class=\"swipe-title\">\n {{ item.title }}\n </div>\n </van-swipe-item>\n </van-swipe>\n</template>\n\n<script>\nexport default {\n name: 'DkMinSwiperImage',\n props: {\n value: {\n default: '',\n type: String,\n },\n height: {\n default: '',\n type: [Number, String],\n },\n autoplay: {\n default: 3000,\n type: [Number, String],\n },\n swipeList: {\n default: () => [],\n type: [Array],\n },\n imgMode: {\n default: 'aspectFill',\n type: String,\n },\n bgColor: {\n default: '',\n type: String,\n },\n showTitle: {\n default: false,\n type: Boolean,\n },\n },\n data() {\n return {}\n },\n computed: {},\n watch: {\n swipeList(val) {},\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createBlock","_openBlock","_createElementBlock","_Fragment","_renderList","_createVNode","_toDisplayString"],"mappings":";;;;;;;AAiBA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,kBAAkB;AACxB,E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E,GAAG,KAAA;iCAAjCJ,eAKiB,CAAA,yBAAA,EAAA,EALiC,GAAG,EAAE,GAAG,EAAA,EAAA;+BACxD,MAA2D;YAA3DK,eAA2D,CAAA,oBAAA,EAAA;cAA/C,GAAG,EAAE,IAAI,CAAC,GAAG;AAAE,cAAA,KAAK,EAAC,MAAM;AAAE,cAAA,MAAM,EAAE,MAAM,CAAA,MAAA;;aAC5C,MAAS,CAAA,SAAA;AAApB,iBAAAJ,aAAA,EAAA,EAAAC,sBAAA,CAEM,KAFN,EAAA,UAEM,EADDI,mBAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkMinSwiperImage.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinSwiperImage.vue"],"sourcesContent":["<template>\n <van-swipe class=\"dk-min-swipe\" :autoplay=\"autoplay\" indicator-color=\"white\" :style=\"{ background: bgColor || '' }\">\n <van-swipe-item v-for=\"(item, key) in swipeList\" :key=\"key\">\n <van-image :src=\"item.img\" width=\"100%\" :height=\"height\" />\n <div v-if=\"showTitle\" class=\"swipe-title\">\n {{ item.title }}\n </div>\n </van-swipe-item>\n </van-swipe>\n</template>\n\n<script>\nexport default {\n name: 'DkMinSwiperImage',\n props: {\n value: {\n default: '',\n type: String,\n },\n height: {\n default: '',\n type: [Number, String],\n },\n autoplay: {\n default: 3000,\n type: [Number, String],\n },\n swipeList: {\n default: () => [],\n type: [Array],\n },\n imgMode: {\n default: 'aspectFill',\n type: String,\n },\n bgColor: {\n default: '',\n type: String,\n },\n showTitle: {\n default: false,\n type: Boolean,\n },\n },\n data() {\n return {}\n },\n computed: {},\n watch: {\n swipeList(val) {},\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createBlock","_openBlock","_createElementBlock","_Fragment","_renderList","_createVNode","_toDisplayString"],"mappings":";;;;;;;AAYA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,kBAAkB;AACxB,EAA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GAAG,KAAA;iCAAjCJ,eAKiB,CAAA,yBAAA,EAAA,EALiC,GAAG,EAAE,GAAG,EAAA,EAAA;+BACxD,MAA2D;YAA3DK,eAA2D,CAAA,oBAAA,EAAA;cAA/C,GAAG,EAAE,IAAI,CAAC,GAAG;AAAE,cAAA,KAAK,EAAC,MAAM;AAAE,cAAA,MAAM,EAAE,MAAM,CAAA,MAAA;;aAC5C,MAAS,CAAA,SAAA;AAApB,iBAAAJ,aAAA,EAAA,EAAAC,sBAAA,CAEM,KAFN,EAAA,UAEM,EADDI,mBAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinTitle.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinTitle.vue"],"sourcesContent":["<template>\n <div class=\"dk-min-title\">\n <div v-if=\"type === '0'\" :style=\"{ textAlign: align, color: color }\">\n <span>{{ title }}</span>\n </div>\n <div\n v-else\n style=\"\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n \"\n >\n <div>\n <span :style=\"{ color: color }\">{{ title }} </span>\n <span\n style=\"margin-left: 5px; font-size: 12px\"\n :style=\"{ color: subColor }\"\n >{{ subtitle }}\n </span>\n </div>\n <div v-if=\"isMore\" :style=\"{ color: moreColor }\" style=\"font-size: 12px\">\n {{ moreText }}\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkMinTitle',\n props: {\n type: { default: '0', type: String },\n title: { default: '', type: String },\n subtitle: { default: '', type: String },\n align: { default: 'left', type: String },\n color: { default: '#000', type: String },\n subColor: { default: '#999', type: String },\n isMore: { default: true, type: Boolean },\n moreText: { default: '查看更多', type: String },\n url: { default: '链接地址', type: String },\n moreColor: { default: '#999', type: String },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeStyle","_createElementVNode"],"mappings":";;;;;;;AA6BA,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AAA;0BAAfA,sBAEM,CAAA,KAAA,EAAA;;UAFoB,KAAK,EAAAC,kBAAA,CAAA,EAAA,SAAA,EAAe,MAAK,CAAA,KAAA,EAAA,KAAA,EAAS,MAAK,CAAA,KAAA,EAAA,CAAA;;AAC/D,UAAAC,sBAAA,CAAwB,kCAAf,MAAK,CAAA,KAAA,CAAA,EAAA,CAAA,YAAA;;AAEhB,SAAAH,aAAA,EAAA,EAAAC,sBAAA,CAmBM,OAnBN,UAmBM,EAAA;UAXJE,sBAOM,CAAA,KAAA,EAAA,IAAA,EAAA;YANJA,sBAAmD,CAAA,MAAA,EAAA;AAA5C,cAAA,KAAK,8BAAW,MAAK,CAAA,KAAA,EAAA,CAAA;mCAAO,MAAK,CAAA,KAAA,CAAA,EAAA,CAAA,mBAAA;YACxCA,sBAIO,CAAA,MAAA,EAAA;cAHL,KAAyC,EAAAD,kBAAA,CAAA,CAAzC,CAAyC,aAAA,CAAA,KAAA,CAAA,WAAA,CAAA,MAAA,CAAA,EAAA,EAAA,KAAA,EACxB,MAAQ,CAAA,QAAA,EAAA,CAAA,CAAA;mCACrB,MAAQ,CAAA,QAAA,CAAA,EAAA,CAAA,mBAAA;;WAGL,MAAM,CAAA,MAAA;gCAAjBD,sBAEM,CAAA,KAAA,EAAA;;gBAFc,KAAK,EAAAC,kBAAA,CAAA,CAAA,EAAA,KAAA,EAAW,MAAS,CAAA,SAAA,EAAA,EAAI,CAAuB,WAAA,CAAA,MAAA,CAAA,CAAA,CAAA;qCACnE,MAAQ,CAAA,QAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
1
+ {"version":3,"file":"DkMinTitle.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinTitle.vue"],"sourcesContent":["<template>\n <div class=\"dk-min-title\">\n <div v-if=\"type === '0'\" :style=\"{ textAlign: align, color: color }\">\n <span>{{ title }}</span>\n </div>\n <div v-else style=\"display: flex; align-items: flex-end; justify-content: space-between\">\n <div>\n <span :style=\"{ color: color }\">{{ title }} </span>\n <span style=\"margin-left: 5px; font-size: 12px\" :style=\"{ color: subColor }\">{{ subtitle }} </span>\n </div>\n <div v-if=\"isMore\" :style=\"{ color: moreColor }\" style=\"font-size: 12px\">\n {{ moreText }}\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkMinTitle',\n props: {\n type: { default: '0', type: String },\n title: { default: '', type: String },\n subtitle: { default: '', type: String },\n align: { default: 'left', type: String },\n color: { default: '#000', type: String },\n subColor: { default: '#999', type: String },\n isMore: { default: true, type: Boolean },\n moreText: { default: '查看更多', type: String },\n url: { default: '链接地址', type: String },\n moreColor: { default: '#999', type: String },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeStyle","_createElementVNode"],"mappings":";;;;;;;AAkBA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,YAAY;AAClB,EAAA,KAAK,EAAE;AACL,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAK,EAAG;AACpC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AACpC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACvC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AACxC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AACxC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AAC3C,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS;AACxC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AAC3C,IAAA,GAAG,EAAE,EAAE,O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AA,CAAA,EAAA,CAAA,mBAAA;;WAE/E,MAAM,CAAA,MAAA;gCAAjBD,sBAEM,CAAA,KAAA,EAAA;;gBAFc,KAAK,EAAAC,kBAAA,CAAA,CAAA,EAAA,KAAA,EAAW,MAAS,CAAA,SAAA,EAAA,EAAI,CAAuB,WAAA,CAAA,MAAA,CAAA,CAAA,CAAA;qCACnE,MAAQ,CAAA,QAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewBulletChat.vue.js","sources":["../../../../../src/page-diy/src/views/web/DkViewBulletChat.vue"],"sourcesContent":["<template>\n <van-swipe\n v-if=\"dataType === 'default'\"\n vertical\n class=\"dk-view-bullet-chat\"\n :style=\"{ background: bgColor, color: textColor }\"\n :autoplay=\"autoplay\"\n :show-indicators=\"false\"\n >\n <van-swipe-item v-for=\"(item, key) in bulletData\" :key=\"key\">\n <div class=\"bullet-content\">\n <img v-if=\"item.avatar\" :src=\"item.avatar\" alt=\"\" />\n <span class=\"over\">{{ item.text }}</span>\n </div>\n </van-swipe-item>\n </van-swipe>\n <div\n v-else\n class=\"dk-view-bullet-chat\"\n style=\"display: flex\"\n :style=\"{ background: bgColor, color: textColor }\"\n >\n <div class=\"bullet-content\">\n <span class=\"over\">当前数据由事件传入</span>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewBulletChat',\n props: {\n bgColor: { default: '', type: String },\n textColor: { default: '', type: String },\n dataType: { default: '', type: String }, // 内容来源\n eventName: { default: '', type: String }, // 事件名称\n autoplay: { default: 3000, type: Number },\n bulletData: {\n default: () => {\n return []\n },\n type: Array,\n },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createElementVNode","_createBlock","_normalizeStyle","_openBlock","_createElementBlock","_Fragment","_renderList","_toDisplayString"],"mappings":";;;;;;;AA6BA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,kBAAkB;AACxB,EAAA,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EAAE,KAAK;;6BAEP,MAAiC;AAAjD,WAAAC,aAAA,CAAA,IAAA,CAAA,EAAAC,sBAAA,CAKiBC,YALqB,EAAA,IAAA,EAAAC,cAAA,CAAA,MAAA,CAAA,UAAU,EAAxB,CAAA,IAAI,EAAE,GAAG,KAAA;qCAAjCL,eAKiB,CAAA,yBAAA,EAAA,EALkC,GAAG,EAAE,GAAG,EAAA,EAAA;mCACzD,MAGM;AAHN,gBAAAD,sBAAA,CAGM,OAHN,UAGM,EAAA;AAFO,kBAAA,CAAA,IAAI,CAAC,MAAM;wCAAtBI,sBAAoD,CAAA,KAAA,EAAA;;wBAA3B,GAAG,EAAE,IAAI,CAAC,MAAM;AAAE,wBAAA,GAAG,EAAC,EAAE;;;AACjD,kBAAAJ,sBAAA,CAAyC,MAAzC,EAAA,UAAyC,EAAnBO,mBAAA,CAAA,IAAI,CAAC,IAAI,CAAA,EAAA,CAAA,YAAA;;;;;;;;;wBAIrCH,sBASM,CAAA,KAAA,EAAA;;AAPJ,QAAA,KAAK,EAAC,qBAAqB;AAC3B,QAAA,KAAqB,EAArBF,kBAAA,CAAA,CAAA,CAAA,SAAA,CAAA,MAAA,CAAqB,EACC,EAAA,UAAA,EAAA,MAAA,CAAA,OAAO,SAAS,MAAS,CAAA,SAAA,EAAA,CAAA,CAAA;;;;;;;"}
1
+ {"version":3,"file":"DkViewBulletChat.vue.js","sources":["../../../../../src/page-diy/src/views/web/DkViewBulletChat.vue"],"sourcesContent":["<template>\n <van-swipe\n v-if=\"dataType === 'default'\"\n vertical\n class=\"dk-view-bullet-chat\"\n :style=\"{ background: bgColor, color: textColor }\"\n :autoplay=\"autoplay\"\n :show-indicators=\"false\"\n >\n <van-swipe-item v-for=\"(item, key) in bulletData\" :key=\"key\">\n <div class=\"bullet-content\">\n <img v-if=\"item.avatar\" :src=\"item.avatar\" alt=\"\" />\n <span class=\"over\">{{ item.text }}</span>\n </div>\n </van-swipe-item>\n </van-swipe>\n <div v-else class=\"dk-view-bullet-chat\" style=\"display: flex\" :style=\"{ background: bgColor, color: textColor }\">\n <div class=\"bullet-content\">\n <span class=\"over\">当前数据由事件传入</span>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewBulletChat',\n props: {\n bgColor: { default: '', type: String },\n textColor: { default: '', type: String },\n dataType: { default: '', type: String }, // 内容来源\n eventName: { default: '', type: String }, // 事件名称\n autoplay: { default: 3000, type: Number },\n bulletData: {\n default: () => {\n return []\n },\n type: Array,\n },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createElementVNode","_createBlock","_normalizeStyle","_openBlock","_createElementBlock","_Fragment","_renderList","_toDisplayString"],"mappings":";;;;;;;AAwBA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,kBAAkB;AACxB,EAAA,KAAK,EAAE;AACL,IAAA,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACtC,IAAA,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACxC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACvC,IAAA,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACxC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;IACzC,UAAU,EAAE;MACV,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,KAAK;KACZ;GACF;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;EACZ,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;AAnCW,MAAA,UAAA,GAAA,EAAA,KAAK,EAAC,gBAAgB,GAAA;;AAEnB,MAAA,UAAA,GAAA,EAAA,KAAK,EAAC,MA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CAAqB,EAAuB,EAAA,UAAA,EAAA,MAAA,CAAA,OAAO,SAAS,MAAS,CAAA,SAAA,EAAA,CAAA,CAAA;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewCell.vue.js","sources":["../../../../../src/page-diy/src/views/web/DkViewCell.vue"],"sourcesContent":["<template>\n <van-cell-group>\n <van-cell\n v-for=\"(item, key) in groups\"\n :key=\"key\"\n :title=\"item.title\"\n :value=\"item.value\"\n >\n </van-cell>\n </van-cell-group>\n</template>\n\n<script>\nexport default {\n name: 'DkViewCell',\n props: {\n groups: {\n default: () => {\n return []\n },\n type: Array,\n },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createBlock","_openBlock","_createElementBlock","_Fragment","_renderList"],"mappings":";;;;;;;AAaA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,YAAY;AAClB,EAAA,KAAK,EAAE;AACL,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,KAAK;KACZ;GACF;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;EACZ,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;;;;;2BA5BEA,eAQiB,CAAA,yBAAA,EAAA,IAAA,EAAA;yBANb,MAA6B;AAD/B,OAAAC,aAAA,CAAA,IAAA,CAAA,EAAAC,sBAAA,CAMWC,YALa,EAAA,IAAA,EAAAC,cAAA,CAAA,MAAA,CAAA,MAAM,EAApB,CAAA,IAAI,EAAE,GAAG,KAAA;iCADnBJ,eAMW,CAAA,mBAAA,EAAA;AAJR,UAAA,GAAG,EAAE,GAAG;UACR,KAAK,EAAE,IAAI,CAAC,KAAK;UACjB,KAAK,EAAE,IAAI,CAAC,KAAK;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkViewCell.vue.js","sources":["../../../../../src/page-diy/src/views/web/DkViewCell.vue"],"sourcesContent":["<template>\n <van-cell-group>\n <van-cell v-for=\"(item, key) in groups\" :key=\"key\" :title=\"item.title\" :value=\"item.value\"> </van-cell>\n </van-cell-group>\n</template>\n\n<script>\nexport default {\n name: 'DkViewCell',\n props: {\n groups: {\n default: () => {\n return []\n },\n type: Array,\n },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createBlock","_openBlock","_createElementBlock","_Fragment","_renderList"],"mappings":";;;;;;;AAOA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,YAAY;AAClB,EAAA,KAAK,EAAE;AACL,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,KAAK;KACZ;GACF;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;EACZ,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;;;;;2BAtBEA,eAEiB,CAAA,yBAAA,EAAA,IAAA,EAAA;yBADL,MAA6B;AAAvC,OAAAC,aAAA,CAAA,IAAA,CAAA,EAAAC,sBAAA,CAAuGC,YAAvE,EAAA,IAAA,EAAAC,cAAA,CAAA,MAAA,CAAA,MAAM,EAApB,CAAA,IAAI,EAAE,GAAG,KAAA;iCAA3BJ,eAAuG,CAAA,mBAAA,EAAA;AAA9D,UAAA,GAAG,EAAE,GAAG;UAAG,KAAK,EAAE,IAAI,CAAC,KAAK;UAAG,KAAK,EAAE,IAAI,CAAC,KAAK;;;;;;;;;;;"}
@@ -61,9 +61,7 @@ const _sfc_main = {
61
61
  },
62
62
  vanBtnColor() {
63
63
  if (this.color && this.color2) {
64
- return (
65
- 'linear-gradient(to right, ' + this.color + ', ' + this.color2 + ')'
66
- )
64
+ return 'linear-gradient(to right, ' + this.color + ', ' + this.color2 + ')'
67
65
  } else if (this.color) {
68
66
  return this.color
69
67
  } else if (this.color2) {