@vipl520/dk-ui 1.0.44 → 1.0.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +1361 -228
  3. package/dist/index.min.js +4 -4
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +4 -4
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/index.mjs +1361 -228
  8. package/es/animate-select/src/animate-select.vue2.mjs.map +1 -1
  9. package/es/api/attachment.mjs.map +1 -1
  10. package/es/attachment/src/attachment.vue2.mjs +1 -7
  11. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  12. package/es/audio-list-input/src/audio-list-input.vue2.mjs.map +1 -1
  13. package/es/dialog/src/dialog.vue2.mjs +1 -3
  14. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  15. package/es/dialog/style/index.css +1 -1
  16. package/es/dialog/style/index.scss +1 -1
  17. package/es/file-input/src/file-input.vue2.mjs.map +1 -1
  18. package/es/file-list-input/src/file-list-input.vue2.mjs.map +1 -1
  19. package/es/form/src/form.vue2.mjs.map +1 -1
  20. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  21. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -1
  22. package/es/icon/src/icon.vue2.mjs.map +1 -1
  23. package/es/icon-input/src/icon-content.vue2.mjs +1 -1
  24. package/es/icon-input/src/icon-content.vue2.mjs.map +1 -1
  25. package/es/image-list-input/src/image-list-input.vue2.mjs.map +1 -1
  26. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
  27. package/es/page-diy/src/components/DragTool.vue.mjs +1 -5
  28. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  29. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  30. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +9 -11
  31. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -1
  32. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  33. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +1 -3
  34. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -1
  35. package/es/page-diy/src/config/rule/min/common/index.mjs +1 -8
  36. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  37. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs +1 -3
  38. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -1
  39. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -1
  40. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs +3 -9
  41. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -1
  42. package/es/page-diy/src/utils/eventData.mjs.map +1 -1
  43. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +5 -18
  44. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -1
  45. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  46. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  47. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -1
  48. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -1
  49. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +1 -3
  50. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -1
  51. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -1
  52. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -1
  53. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -1
  54. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -1
  55. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -1
  56. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -1
  57. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  58. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue2.mjs.map +1 -1
  59. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs +1 -1
  60. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs.map +1 -1
  61. package/es/poster-input/src/component/views/DkPosterViewName.vue2.mjs.map +1 -1
  62. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue2.mjs.map +1 -1
  63. package/es/poster-input/src/component/views/DkPosterViewText.vue2.mjs.map +1 -1
  64. package/es/poster-input/src/component/views/quick-action.vue2.mjs.map +1 -1
  65. package/es/poster-input/src/poster-input.vue2.mjs.map +1 -1
  66. package/es/poster-input/style/index.scss +2 -4
  67. package/es/select/src/select.vue2.mjs +1 -9
  68. package/es/select/src/select.vue2.mjs.map +1 -1
  69. package/es/style-animation-input/src/props.mjs.map +1 -1
  70. package/es/style-animation-input/src/style-animation-input.vue2.mjs +1 -1
  71. package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -1
  72. package/es/style-font-input/src/style-font-input.vue2.mjs +1 -1
  73. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  74. package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
  75. package/es/style-position-input/src/style-position-input.vue2.mjs +1 -4
  76. package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
  77. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  78. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  79. package/es/table/src/components/RecycleDialog.vue2.mjs +1 -3
  80. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  81. package/es/table/src/components/header.vue2.mjs +3 -17
  82. package/es/table/src/components/header.vue2.mjs.map +1 -1
  83. package/es/table/src/props.mjs +1 -11
  84. package/es/table/src/props.mjs.map +1 -1
  85. package/es/table/src/table.vue2.mjs +3 -13
  86. package/es/table/src/table.vue2.mjs.map +1 -1
  87. package/es/table/utils/dkTable.mjs +8 -31
  88. package/es/table/utils/dkTable.mjs.map +1 -1
  89. package/es/table/utils/dkTableApi.mjs.map +1 -1
  90. package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
  91. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  92. package/es/video-list-input/src/video-list-input.vue2.mjs.map +1 -1
  93. package/lib/animate-select/src/animate-select.vue2.js.map +1 -1
  94. package/lib/api/attachment.js.map +1 -1
  95. package/lib/attachment/src/attachment.vue2.js +1 -7
  96. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  97. package/lib/audio-list-input/src/audio-list-input.vue2.js.map +1 -1
  98. package/lib/dialog/src/dialog.vue2.js +1 -3
  99. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  100. package/lib/dialog/style/index.css +1 -1
  101. package/lib/dialog/style/index.scss +1 -1
  102. package/lib/file-input/src/file-input.vue2.js.map +1 -1
  103. package/lib/file-list-input/src/file-list-input.vue2.js.map +1 -1
  104. package/lib/form/src/form.vue2.js.map +1 -1
  105. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  106. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -1
  107. package/lib/icon/src/icon.vue2.js.map +1 -1
  108. package/lib/icon-input/src/icon-content.vue2.js +1 -1
  109. package/lib/icon-input/src/icon-content.vue2.js.map +1 -1
  110. package/lib/image-list-input/src/image-list-input.vue2.js.map +1 -1
  111. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
  112. package/lib/page-diy/src/components/DragTool.vue.js +1 -5
  113. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  114. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  115. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +9 -11
  116. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -1
  117. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  118. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +1 -3
  119. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -1
  120. package/lib/page-diy/src/config/rule/min/common/index.js +1 -8
  121. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  122. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js +1 -3
  123. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -1
  124. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -1
  125. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js +3 -9
  126. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -1
  127. package/lib/page-diy/src/utils/eventData.js.map +1 -1
  128. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +5 -18
  129. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -1
  130. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  131. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  132. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -1
  133. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -1
  134. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +1 -3
  135. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -1
  136. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -1
  137. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -1
  138. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -1
  139. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -1
  140. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -1
  141. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -1
  142. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  143. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue2.js.map +1 -1
  144. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js +1 -1
  145. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js.map +1 -1
  146. package/lib/poster-input/src/component/views/DkPosterViewName.vue2.js.map +1 -1
  147. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue2.js.map +1 -1
  148. package/lib/poster-input/src/component/views/DkPosterViewText.vue2.js.map +1 -1
  149. package/lib/poster-input/src/component/views/quick-action.vue2.js.map +1 -1
  150. package/lib/poster-input/src/poster-input.vue2.js.map +1 -1
  151. package/lib/poster-input/style/index.scss +2 -4
  152. package/lib/select/src/select.vue2.js +1 -9
  153. package/lib/select/src/select.vue2.js.map +1 -1
  154. package/lib/style-animation-input/src/props.js.map +1 -1
  155. package/lib/style-animation-input/src/style-animation-input.vue2.js +1 -1
  156. package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -1
  157. package/lib/style-font-input/src/style-font-input.vue2.js +1 -1
  158. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  159. package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
  160. package/lib/style-position-input/src/style-position-input.vue2.js +1 -4
  161. package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
  162. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  163. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  164. package/lib/table/src/components/RecycleDialog.vue2.js +1 -3
  165. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  166. package/lib/table/src/components/header.vue2.js +3 -17
  167. package/lib/table/src/components/header.vue2.js.map +1 -1
  168. package/lib/table/src/props.js +1 -11
  169. package/lib/table/src/props.js.map +1 -1
  170. package/lib/table/src/table.vue2.js +3 -13
  171. package/lib/table/src/table.vue2.js.map +1 -1
  172. package/lib/table/utils/dkTable.js +8 -31
  173. package/lib/table/utils/dkTable.js.map +1 -1
  174. package/lib/table/utils/dkTableApi.js.map +1 -1
  175. package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
  176. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  177. package/lib/video-list-input/src/video-list-input.vue2.js.map +1 -1
  178. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinHotArea.vue.mjs","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":["_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,GAAE,GAAG,CAAC,IAAI,EAAA;AACnB,IAAA,IAAI,KAAK,KAAG;IACZ,MAAM,cAAa,GAAI,GAAG,CAAC,CAAC,EAAA;;AAE5B,IAAA,MAAM,KAAI,GAAI,GAAG,CAAC,EAAE,EAAA;;AAEpB;AACA,IAAA,SAAS,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,IAAA,WAAW,CAAC,MAAM;AAChB,MAAA,IAAI,EAAE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,GAAA,OAAA,GAAA,OAAA;;;QAMzFC,kBAAwB,CAAA,mBAAA,CAAA;QACxBC,kBAKM,CAAA,KAAA,EAAA;UAJH,KAAK,EAAAF,cAAA,CAAA,EAAA,KAAA,EAAW,IAAI,CAAC,GAAG,CAAC,KAAK,EAAA,MAAA,EAAU,IAAI,CAAC,GAAG,CAAC,MAAM,EAAA,CAAA;AACxD,UAAA,KAAK,EAAC,UAAU;2BAEb,KAAK,GAAA,CAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
1
+ {"version":3,"file":"DkMinHotArea.vue.mjs","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":["_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,GAAE,GAAG,CAAC,IAAI,EAAA;AACnB,IAAA,IAAI,KAAK,KAAG;IACZ,MAAM,cAAa,GAAI,GAAG,CAAC,CAAC,EAAA;;AAE5B,IAAA,MAAM,KAAI,GAAI,GAAG,CAAC,EAAE,EAAA;;AAEpB;AACA,IAAA,SAAS,CAAC,MAAM;MACd,EAAC,GAAI,KAAK,MAAM,CAAC,cAAe,IAAG,cAAc,EAA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AAAC,UAAA,CAAA,MAAA,CAAA,KAAK,EAArB,CAAA,IAAI,EAAE,KAAK,KAAA;2BADrBH,kBAaM,CAAA,KAAA,EAAA;AAXH,QAAA,GAAG,EAAE,KAAK;QACV,KAAK,EAAAI,cAAA,CAAA;;AAA6C,QAAA,GAAA,IAAI,CAAC,GAAG;oBAAsB,MAAQ,CAAA,QAAA,GAAA,OAAA,GAAA,OAAA;;;QAMzFC,kBAAwB,CAAA,mBAAA,CAAA;QACxBC,kBAEM,CAAA,KAAA,EAAA;UAFA,KAAK,EAAAF,cAAA,CAAA,EAAA,KAAA,EAAW,IAAI,CAAC,GAAG,CAAC,KAAK,EAAA,MAAA,EAAU,IAAI,CAAC,GAAG,CAAC,MAAM,EAAA,CAAA;AAAI,UAAA,KAAK,EAAC,UAAU;2BAC5E,KAAK,GAAA,CAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinSwiperImage.vue.mjs","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,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,EAAE;AACX,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,IAAI;AACb,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;IACD,SAAS,EAAE;AACT,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,KAAK,CAAC;KACd;AACD,IAAA,OAAO,EAAE;AACP,MAAA,OAAO,EAAE,YAAY;MACrB,IAAI,EAAE,MAAM;KACb;AACD,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,SAAS,EAAE;MACT,OAAO,EAAE,KAAK;MACd,IAAI,EAAE,OAAO;KACd;GACF;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;AACZ,EAAA,KAAK,EAAE;AACL,IAAA,SAAS,CAAC,GAAG,EAAE,EAAE;GAClB;EACD,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;;;AAjD4B,EAAA,KAAK,EAAC,aAAa;;;;;;;;uBAR7CA,WAYY,CAAA,oBAAA,EAAA;AAXV,IAAA,KAAK,EAAC,cAAc;AACnB,IAAA,QAAQ,EAAE,MAAQ,CAAA,QAAA;AACnB,IAAA,iBAAe,EAAC,OAAO;AACtB,IAAA,KAAK,+BAAgB,MAAO,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA;;qBAEb,MAAgC;AAAhD,OAAAC,SAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAKiBC,QALqB,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,SAAS,EAAvB,CAAA,IAAI,EAAE,GAAG,KAAA;6BAAjCJ,WAKiB,CAAA,yBAAA,EAAA,EALiC,GAAG,EAAE,GAAG,EAAA,EAAA;2BACxD,MAA2D;YAA3DK,WAA2D,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,SAAA,EAAA,EAAAC,kBAAA,CAEM,KAFN,EAAA,UAEM,EADDI,eAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkMinSwiperImage.vue.mjs","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,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,EAAE;AACX,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,IAAI;AACb,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;IACD,SAAS,EAAE;AACT,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,KAAK,CAAC;KACd;AACD,IAAA,OAAO,EAAE;AACP,MAAA,OAAO,EAAE,YAAY;MACrB,IAAI,EAAE,MAAM;KACb;AACD,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,SAAS,EAAE;MACT,OAAO,EAAE,KAAK;MACd,IAAI,EAAE,OAAO;KACd;GACF;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;AACZ,EAAA,KAAK,EAAE;AACL,IAAA,SAAS,CAAC,GAAG,EAAE,EAAE;GAClB;EACD,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;;;AAjD4B,EAAA,KAAK,EAAC,aAAa;;;;;;;;uBAH7CA,WAOY,CAAA,oBAAA,EAAA;AAPD,IAAA,KAAK,EAAC,cAAc;AAAE,IAAA,QAAQ,EAAE,MAAQ,CAAA,QAAA;AAAE,IAAA,iBAAe,EAAC,OAAO;AAAE,IAAA,KAAK,+BAAgB,MAAO,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA;;qBACxF,MAAgC;AAAhD,OAAAC,SAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAKiBC,QALqB,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,SAAS,EAAvB,CAAA,IAAI,EAAE,GAAG,KAAA;6BAAjCJ,WAKiB,CAAA,yBAAA,EAAA,EALiC,GAAG,EAAE,GAAG,EAAA,EAAA;2BACxD,MAA2D;YAA3DK,WAA2D,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,SAAA,EAAA,EAAAC,kBAAA,CAEM,KAFN,EAAA,UAEM,EADDI,eAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,YAAA;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinTitle.vue.mjs","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,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,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AACtC,IAAA,SAAS,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;GAC7C;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;EACZ,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;AAhDO,MAAA,UAAA,GAAA,EAAA,KAAK,EAAC,cAAc,GAAA;;;AAMrB,EAAA,KAIC,EAJD,CAIC,SAAA,CAAA,MAAA,CAAA,a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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,EAA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,CAAzC,CAAyC,aAAA,CAAA,KAAA,CAAA,WAAA,CAAA,MAAA,CAAA,EAAA,EAAA,KAAA,EAAkB,MAAQ,CAAA,QAAA,EAAA,CAAA,CAAA;+BAAO,MAAQ,CAAA,QAAA,CAAA,EAAA,CAAA,mBAAA;;WAE/E,MAAM,CAAA,MAAA;4BAAjBD,kBAEM,CAAA,KAAA,EAAA;;gBAFc,KAAK,EAAAC,cAAA,CAAA,CAAA,EAAA,KAAA,EAAW,MAAS,CAAA,SAAA,EAAA,EAAI,CAAuB,WAAA,CAAA,MAAA,CAAA,CAAA,CAAA;iCACnE,MAAQ,CAAA,QAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewBulletChat.vue.mjs","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"],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UAAA,EAAgB,MAAO,CAAA,OAAA,EAAA,KAAA,EAAS,MAAS,CAAA,SAAA,EAAA,CAAA;AAC9C,QAAA,QAAQ,EAAE,MAAQ,CAAA,QAAA;AAClB,QAAA,iBAAe,EAAE,KAAK;;yBAEP,MAAiC;AAAjD,WAAAC,SAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAKiBC,QALqB,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,UAAU,EAAxB,CAAA,IAAI,EAAE,GAAG,KAAA;iCAAjCL,WAKiB,CAAA,yBAAA,EAAA,EALkC,GAAG,EAAE,GAAG,EAAA,EAAA;+BACzD,MAGM;AAHN,gBAAAD,kBAAA,CAGM,OAHN,UAGM,EAAA;AAFO,kBAAA,CAAA,IAAI,CAAC,MAAM;oCAAtBI,kBAAoD,CAAA,KAAA,EAAA;;wBAA3B,GAAG,EAAE,IAAI,CAAC,MAAM;AAAE,wBAAA,GAAG,EAAC,EAAE;;;AACjD,kBAAAJ,kBAAA,CAAyC,MAAzC,EAAA,UAAyC,EAAnBO,eAAA,CAAA,IAAI,CAAC,IAAI,CAAA,EAAA,CAAA,YAAA;;;;;;;;;oBAIrCH,kBASM,CAAA,KAAA,EAAA;;AAPJ,QAAA,KAAK,EAAC,qBAAqB;AAC3B,QAAA,KAAqB,EAArBF,cAAA,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.mjs","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;E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BAIrCH,kBAIM,CAAA,KAAA,EAAA;;AAJM,QAAA,KAAK,EAAC,qBAAqB;AAAC,QAAA,KAAqB,EAArBF,cAAA,CAAA,CAAA,CAAA,SAAA,CAAA,MAAA,CAAqB,EAAuB,EAAA,UAAA,EAAA,MAAA,CAAA,OAAO,SAAS,MAAS,CAAA,SAAA,EAAA,CAAA,CAAA;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewCell.vue.mjs","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;;;;;;uBA5BEA,WAQiB,CAAA,yBAAA,EAAA,IAAA,EAAA;qBANb,MAA6B;AAD/B,OAAAC,SAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAMWC,QALa,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,MAAM,EAApB,CAAA,IAAI,EAAE,GAAG,KAAA;6BADnBJ,WAMW,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.mjs","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;;;;;;uBAtBEA,WAEiB,CAAA,yBAAA,EAAA,IAAA,EAAA;qBADL,MAA6B;AAAvC,OAAAC,SAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAAuGC,QAAvE,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,MAAM,EAApB,CAAA,IAAI,EAAE,GAAG,KAAA;6BAA3BJ,WAAuG,CAAA,mBAAA,EAAA;AAA9D,UAAA,GAAG,EAAE,GAAG;UAAG,KAAK,EAAE,IAAI,CAAC,KAAK;UAAG,KAAK,EAAE,IAAI,CAAC,KAAK;;;;;;;;;;;"}
@@ -57,9 +57,7 @@ const _sfc_main = {
57
57
  },
58
58
  vanBtnColor() {
59
59
  if (this.color && this.color2) {
60
- return (
61
- 'linear-gradient(to right, ' + this.color + ', ' + this.color2 + ')'
62
- )
60
+ return 'linear-gradient(to right, ' + this.color + ', ' + this.color2 + ')'
63
61
  } else if (this.color) {
64
62
  return this.color
65
63
  } else if (this.color2) {
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewCommonBtn.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewCommonBtn.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-common-btn\">\n <div v-if=\"type === 'btn'\" class=\"btn\">\n <van-button\n type=\"primary\"\n :block=\"block\"\n :round=\"round\"\n :size=\"size\"\n :color=\"vanBtnColor\"\n :icon=\"icon\"\n >\n {{ btnText }}\n </van-button>\n </div>\n <div v-else class=\"f-btn\">\n <div v-if=\"img\" class=\"image-content\">\n <img :src=\"img\" alt=\"\" :width=\"imgSize\" />\n </div>\n <div :style=\"textStyle\" class=\"f-btn-content\">\n <van-icon :name=\"icon\" :size=\"iconSize\" />\n <span :style=\"{ fontSize: fontSize + 'px' }\"> {{ fBtnText }}</span>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewCommonBtn',\n props: {\n posterData: {\n default: () => {\n return {}\n },\n type: [Object],\n },\n type: { default: 'btn', type: [String] },\n icon: { default: '', type: String },\n // 图片配置\n imgSize: { default: 20, type: [String, Number] },\n img: { default: '', type: String },\n imgText: { default: '', type: String },\n // 悬浮配置\n fBtnText: { default: '自定义文本', type: String },\n fBgColor: { default: '#ff3d2c', type: String },\n isTextBlock: { default: true, type: Boolean },\n fColor: { default: '#fff', type: String },\n fWSize: { default: 20, type: [String, Number] },\n fHSize: { default: 20, type: [String, Number] },\n borderRadius: { default: 20, type: [String, Number] },\n fontSize: { default: 12, type: [String, Number] },\n fontTopSize: { default: 0, type: [String, Number] },\n iconSize: { default: 12, type: [String, Number] },\n // 按钮配置\n btnText: { default: '按钮文字', type: String },\n block: { default: true, type: Boolean },\n round: { default: true, type: Boolean },\n size: { default: 'normal', type: String },\n color: { default: '#ff3d2c', type: String },\n color2: { default: '', type: String },\n },\n data() {\n return {}\n },\n computed: {\n textStyle() {\n if (this.isTextBlock) {\n return {\n backgroundColor: this.fBgColor,\n width: this.fWSize + 'px',\n height: this.fHSize + 'px',\n color: this.fColor,\n borderRadius: this.borderRadius + 'px',\n marginTop: this.fontTopSize + 'px',\n }\n } else {\n return {\n marginTop: this.fontTopSize + 'px',\n }\n }\n },\n vanBtnColor() {\n if (this.color && this.color2) {\n return (\n 'linear-gradient(to right, ' + this.color + ', ' + this.color2 + ')'\n )\n } else if (this.color) {\n return this.color\n } else if (this.color2) {\n return this.color2\n } else {\n return ''\n }\n },\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_createElementVNode"],"mappings":";;;AA2BA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,iBAAiB;AACvB,EAAA,KAAK,EAAE;IACL,UAAU,EAAE;MACV,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,CAAC,MAAM,CAAC;KACf;AACD,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG;IACxC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;;AAEnC,IAAA,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG;IAChD,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AAClC,IAAA,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;;AAEtC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ;AAC5C,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,Q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view-common-btn\">\n <div v-if=\"type === 'btn'\" class=\"btn\">\n <van-button type=\"primary\" :block=\"block\" :round=\"round\" :size=\"size\" :color=\"vanBtnColor\" :icon=\"icon\">\n {{ btnText }}\n </van-button>\n </div>\n <div v-else class=\"f-btn\">\n <div v-if=\"img\" class=\"image-content\">\n <img :src=\"img\" alt=\"\" :width=\"imgSize\" />\n </div>\n <div :style=\"textStyle\" class=\"f-btn-content\">\n <van-icon :name=\"icon\" :size=\"iconSize\" />\n <span :style=\"{ fontSize: fontSize + 'px' }\"> {{ fBtnText }}</span>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewCommonBtn',\n props: {\n posterData: {\n default: () => {\n return {}\n },\n type: [Object],\n },\n type: { default: 'btn', type: [String] },\n icon: { default: '', type: String },\n // 图片配置\n imgSize: { default: 20, type: [String, Number] },\n img: { default: '', type: String },\n imgText: { default: '', type: String },\n // 悬浮配置\n fBtnText: { default: '自定义文本', type: String },\n fBgColor: { default: '#ff3d2c', type: String },\n isTextBlock: { default: true, type: Boolean },\n fColor: { default: '#fff', type: String },\n fWSize: { default: 20, type: [String, Number] },\n fHSize: { default: 20, type: [String, Number] },\n borderRadius: { default: 20, type: [String, Number] },\n fontSize: { default: 12, type: [String, Number] },\n fontTopSize: { default: 0, type: [String, Number] },\n iconSize: { default: 12, type: [String, Number] },\n // 按钮配置\n btnText: { default: '按钮文字', type: String },\n block: { default: true, type: Boolean },\n round: { default: true, type: Boolean },\n size: { default: 'normal', type: String },\n color: { default: '#ff3d2c', type: String },\n color2: { default: '', type: String },\n },\n data() {\n return {}\n },\n computed: {\n textStyle() {\n if (this.isTextBlock) {\n return {\n backgroundColor: this.fBgColor,\n width: this.fWSize + 'px',\n height: this.fHSize + 'px',\n color: this.fColor,\n borderRadius: this.borderRadius + 'px',\n marginTop: this.fontTopSize + 'px',\n }\n } else {\n return {\n marginTop: this.fontTopSize + 'px',\n }\n }\n },\n vanBtnColor() {\n if (this.color && this.color2) {\n return 'linear-gradient(to right, ' + this.color + ', ' + this.color2 + ')'\n } else if (this.color) {\n return this.color\n } else if (this.color2) {\n return this.color2\n } else {\n return ''\n }\n },\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_createElementVNode"],"mappings":";;;AAoBA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,iBAAiB;AACvB,EAAA,KAAK,EAAE;IACL,UAAU,EAAE;MACV,OAAO,EAAE,MAAM;AACb,QAAA,OAAO,EAAC;OACT;MACD,IAAI,EAAE,CAAC,MAAM,CAAC;KACf;AACD,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG;IACxC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;;AAEnC,IAAA,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG;IAChD,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AAClC,IAAA,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;;AAEtC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ;AAC5C,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ;AAC9C,IAAA,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS;AAC7C,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AACzC,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG;AAC/C,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE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,MAAI,CAAA,IAAA;;6BACpG,MAAa;8CAAV,MAAO,CAAA,OAAA,CAAA,EAAA,CAAA,YAAA;;;;;AAGd,SAAAF,SAAA,EAAA,EAAAC,kBAAA,CAQM,OARN,UAQM,EAAA;WAPO,MAAG,CAAA,GAAA;AAAd,eAAAD,SAAA,EAAA,EAAAC,kBAAA,CAEM,OAFN,UAEM,EAAA;gBADJE,kBAA0C,CAAA,KAAA,EAAA;AAApC,kBAAA,GAAG,EAAE,MAAG,CAAA,GAAA;AAAE,kBAAA,GAAG,EAAC,EAAE;AAAE,kBAAA,KAAK,EAAE,MAAO,CAAA,OAAA;;;;UAExCA,kBAGM,CAAA,KAAA,EAAA;AAHA,YAAA,KAAK,iBAAE,QAAS,CAAA,SAAA,CAAA;AAAE,YAAA,KAAK,EAAC,eAAe;;YAC3CD,WAA0C,CAAA,mBAAA,EAAA;AAA/B,cAAA,IAAI,EAAE,MAAI,CAAA,IAAA;AAAG,cAAA,IAAI,EAAE,MAAQ,CAAA,QAAA;;YACtCC,kBAAmE,CAAA,MAAA,EAAA;AAA5D,cAAA,KAAK,6BAAc,MAAQ,CAAA,QAAA,GAAA,IAAA,EAAA,CAAA;+BAAe,MAAQ,CAAA,QAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewGridCellList.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewGridCellList.vue"],"sourcesContent":["<template>\n <div v-if=\"type === 'cell'\" class=\"cell\">\n <van-cell-group>\n <van-cell\n v-for=\"(item, key) in gridCellList\"\n :key=\"key\"\n is-link\n :style=\"{ lineHeight: cellImgSize + 'px!important' }\"\n >\n <template #icon>\n <img\n :src=\"item.img\"\n :alt=\"item.title\"\n :width=\"cellImgSize\"\n :height=\"cellImgSize\"\n :style=\"{\n borderRadius: imgRadius + 'px',\n marginRight: imgTextGutter + 'px',\n }\"\n />\n </template>\n <template #title>\n <span class=\"custom-title\" :style=\"{ fontSize: fontSize + 'px' }\">{{\n item.title\n }}</span>\n </template>\n <template #right-icon>\n <dk-icon icon=\"ArrowRight\"></dk-icon>\n <!-- <div style=\"color: #999; font-size: 16px\">-->\n <!-- <i class=\"el-icon-arrow-right\" />-->\n <!-- </div>-->\n </template>\n </van-cell>\n </van-cell-group>\n </div>\n <div v-else class=\"grid\">\n <van-grid\n :square=\"square\"\n :direction=\"direction\"\n :gutter=\"gutter\"\n :clickable=\"clickable\"\n :border=\"border\"\n :column-num=\"columnNum\"\n >\n <template v-for=\"(item, key) in gridCellList\">\n <van-grid-item v-if=\"item.show\" :key=\"key\" icon=\"photo-o\">\n <template #icon>\n <img\n :src=\"item.img\"\n :width=\"gridImgSize\"\n :height=\"gridImgSize\"\n :alt=\"item.title\"\n :style=\"{ borderRadius: imgRadius + 'px' }\"\n />\n </template>\n <template #text>\n <span :style=\"{ fontSize: fontSize + 'px' }\">\n {{ item.title }}\n </span>\n </template>\n </van-grid-item>\n </template>\n </van-grid>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewGridCellList',\n props: {\n value: {\n default: '',\n type: String,\n },\n imgRadius: {\n default: 0,\n type: Number,\n },\n gridCellList: {\n default: () => {},\n type: [Array],\n },\n fontSize: {\n default: 14,\n type: Number,\n },\n type: {\n default: 'cell',\n type: String,\n },\n cellImgSize: {\n // 列表图片大小\n default: 20,\n type: Number,\n },\n imgTextGutter: {\n // 图文间距\n default: 0,\n type: Number,\n },\n /** ***************************************************** 下面是宫格配置*****************************/\n columnNum: {\n // 宫格列数\n default: 4,\n type: Number,\n },\n square: {\n // 是否为正方形\n default: false,\n type: Boolean,\n },\n gutter: {\n // 间距\n default: 0,\n type: Number,\n },\n direction: {\n // 横向布局\n default: 'vertical',\n type: String,\n },\n clickable: {\n // 点击效果\n default: true,\n type: Boolean,\n },\n border: {\n // 显示边框\n default: true,\n type: Boolean,\n },\n gridImgSize: {\n // 宫格图片大小\n default: 40,\n type: Number,\n },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_Fragment","_renderList","_createBlock","_createElementVNode","_normalizeStyle","_toDisplayString","_createCommentVNode"],"mappings":";;;AAmEA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,oBAAoB;AAC1B,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,SAAS,EAAE;AACT,MAAA,OAAO,EAAE,CAAC;MACV,IAAI,EAAE,MAAM;KACb;IACD,YAAY,EAAE;AACZ,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,KAAK,CAAC;KACd;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,IAAI,EAAE;AACJ,MAAA,OAAO,EAAE,MAAM;MACf,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;AACX;MACA,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,aAAa,EAAE;;AAEb,MAAA,OAAO,EAAE,CAAC;MACV,IAAI,EAAE,MAAM;KACb;AACD;IACA,SAAS,EAAE;;AAET,MAAA,OAAO,EAAE,CAAC;MACV,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;AACN;MACA,OAAO,EAAE,KAAK;MACd,IAAI,EAAE,OAAO;KACd;AACD,IAAA,MAAM,EAAE;AACN;AACA,MAAA,OAAO,EAAE,CAAC;MACV,IAAI,EAAE,MAAM;KACb;IACD,SAAS,EAAE;;AAET,MAAA,OAAO,EAAE,UAAU;MACnB,IAAI,EAAE,MAAM;KACb;IACD,SAAS,EAAE;;MAET,OAAO,EAAE,IAAI;MACb,IAAI,EAAE,OAAO;KACd;AACD,IAAA,MAAM,EAAE;;MAEN,OAAO,EAAE,IAAI;MACb,IAAI,EAAE,OAAO;KACd;IACD,WAAW,EAA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AAA,KAAK,iCAAkB,MAAS,CAAA,SAAA,GAAA,IAAA,EAAA,CAAA;;;AAG1B,sBAAA,IAAI,UACb,MAEO;wBAFPA,kBAEO,CAAA,MAAA,EAAA;AAFA,0BAAA,KAAK,6BAAc,MAAQ,CAAA,QAAA,GAAA,IAAA,EAAA,CAAA;AAC7B,yBAAA,EAAAE,eAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkViewGridCellList.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewGridCellList.vue"],"sourcesContent":["<template>\n <div v-if=\"type === 'cell'\" class=\"cell\">\n <van-cell-group>\n <van-cell\n v-for=\"(item, key) in gridCellList\"\n :key=\"key\"\n is-link\n :style=\"{ lineHeight: cellImgSize + 'px!important' }\"\n >\n <template #icon>\n <img\n :src=\"item.img\"\n :alt=\"item.title\"\n :width=\"cellImgSize\"\n :height=\"cellImgSize\"\n :style=\"{\n borderRadius: imgRadius + 'px',\n marginRight: imgTextGutter + 'px',\n }\"\n />\n </template>\n <template #title>\n <span class=\"custom-title\" :style=\"{ fontSize: fontSize + 'px' }\">{{ item.title }}</span>\n </template>\n <template #right-icon>\n <dk-icon icon=\"ArrowRight\"></dk-icon>\n <!-- <div style=\"color: #999; font-size: 16px\">-->\n <!-- <i class=\"el-icon-arrow-right\" />-->\n <!-- </div>-->\n </template>\n </van-cell>\n </van-cell-group>\n </div>\n <div v-else class=\"grid\">\n <van-grid\n :square=\"square\"\n :direction=\"direction\"\n :gutter=\"gutter\"\n :clickable=\"clickable\"\n :border=\"border\"\n :column-num=\"columnNum\"\n >\n <template v-for=\"(item, key) in gridCellList\">\n <van-grid-item v-if=\"item.show\" :key=\"key\" icon=\"photo-o\">\n <template #icon>\n <img\n :src=\"item.img\"\n :width=\"gridImgSize\"\n :height=\"gridImgSize\"\n :alt=\"item.title\"\n :style=\"{ borderRadius: imgRadius + 'px' }\"\n />\n </template>\n <template #text>\n <span :style=\"{ fontSize: fontSize + 'px' }\">\n {{ item.title }}\n </span>\n </template>\n </van-grid-item>\n </template>\n </van-grid>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewGridCellList',\n props: {\n value: {\n default: '',\n type: String,\n },\n imgRadius: {\n default: 0,\n type: Number,\n },\n gridCellList: {\n default: () => {},\n type: [Array],\n },\n fontSize: {\n default: 14,\n type: Number,\n },\n type: {\n default: 'cell',\n type: String,\n },\n cellImgSize: {\n // 列表图片大小\n default: 20,\n type: Number,\n },\n imgTextGutter: {\n // 图文间距\n default: 0,\n type: Number,\n },\n /** ***************************************************** 下面是宫格配置*****************************/\n columnNum: {\n // 宫格列数\n default: 4,\n type: Number,\n },\n square: {\n // 是否为正方形\n default: false,\n type: Boolean,\n },\n gutter: {\n // 间距\n default: 0,\n type: Number,\n },\n direction: {\n // 横向布局\n default: 'vertical',\n type: String,\n },\n clickable: {\n // 点击效果\n default: true,\n type: Boolean,\n },\n border: {\n // 显示边框\n default: true,\n type: Boolean,\n },\n gridImgSize: {\n // 宫格图片大小\n default: 40,\n type: Number,\n },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createVNode","_Fragment","_renderList","_createBlock","_createElementVNode","_normalizeStyle","_toDisplayString","_createCommentVNode"],"mappings":";;;AAiEA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,oBAAoB;AAC1B,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;IACD,SAAS,EAAE;AACT,MAAA,OAAO,EAAE,CAAC;MACV,IAAI,EAAE,MAAM;KACb;IACD,YAAY,EAAE;AACZ,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,KAAK,CAAC;KACd;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,M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MAAS,CAAA,SAAA;AACpB,UAAA,MAAM,EAAE,MAAM,CAAA,MAAA;AACd,UAAA,SAAS,EAAE,MAAS,CAAA,SAAA;AACpB,UAAA,MAAM,EAAE,MAAM,CAAA,MAAA;AACd,UAAA,YAAU,EAAE,MAAS,CAAA,SAAA;;2BAEZ,MAAmC;AAA7C,aAAAF,SAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAiBWE,QAjBqB,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,YAAY,EAA1B,CAAA,IAAI,EAAE,GAAG,KAAA;;AACJ,gBAAA,CAAA,IAAI,CAAC,IAAI;kCAA9BC,WAegB,CAAA,wBAAA,EAAA;AAfiB,sBAAA,GAAG,EAAE,GAAG;AAAE,sBAAA,IAAI,EAAC,SAAS;;AAC5C,sBAAA,IAAI,UACb,MAME;wBANFC,kBAME,CAAA,KAAA,EAAA;0BALC,GAAG,EAAE,IAAI,CAAC,GAAG;AACb,0BAAA,KAAK,EAAE,MAAW,CAAA,WAAA;AAClB,0BAAA,MAAM,EAAE,MAAW,CAAA,WAAA;0BACnB,GAAG,EAAE,IAAI,CAAC,KAAK;AACf,0BAAA,KAAK,iCAAkB,MAAS,CAAA,SAAA,GAAA,IAAA,EAAA,CAAA;;;AAG1B,sBAAA,IAAI,UACb,MAEO;wBAFPA,kBAEO,CAAA,MAAA,EAAA;AAFA,0BAAA,KAAK,6BAAc,MAAQ,CAAA,QAAA,GAAA,IAAA,EAAA,CAAA;AAC7B,yBAAA,EAAAE,eAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,mBAAA;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewImage.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewImage.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-image\" :class=\"'dk-mobile-image-' + type\">\n <div\n v-for=\"(item, key) in imageList\"\n :key=\"key\"\n class=\"dk-mobile-image-content\"\n :style=\"_style\"\n >\n <van-image\n :src=\"item.img\"\n :fit=\"fit\"\n width=\"100%\"\n :height=\"heightAuto ? height : ''\"\n style=\"overflow: hidden\"\n />\n <div v-if=\"showText && item.title\" :class=\"'text-type-' + textType\">\n {{ item.title }}\n </div>\n </div>\n <div v-if=\"imageList.length <= 0\">\n <el-empty description=\"请添加图片数据\" />\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewImage',\n props: {\n value: { default: '', type: String },\n type: { default: 'default', type: String },\n textType: { default: 'default', type: String },\n heightAuto: { default: false, type: Boolean },\n showText: { default: false, type: Boolean },\n height: { default: '', type: [Number, String] },\n width: { default: '', type: [Number, String] },\n borderRadius: { default: '', type: [Number, String] },\n marginBottom: { default: '', type: [Number, String] },\n marginRight: { default: '', type: [Number, String] },\n imageList: { default: () => [], type: [Array] },\n\n fit: { default: 'cover', type: String },\n },\n data() {\n return {}\n },\n computed: {\n _style() {\n const style = {}\n if (this.type === 'default') {\n style.marginBottom = this.marginBottom + 'px'\n } else {\n style.width = this.width + '%'\n style.marginRight = this.marginRight + 'px'\n }\n style.borderRadius = this.borderRadius + 'px'\n return style\n },\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_openBlock","_Fragment","_renderList","_createVNode","_toDisplayString"],"mappings":";;;AA0BA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AACpC,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ;AAC1C,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ;AAC9C,IAAA,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS;AAC7C,IAAA,QAAQ,EAAE,EAAE,OAA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KAAA,EAAA;IArBD,KAAK,EAAAC,cAAA,CAAA,CAAC,eAAe,EAAA,kBAAA,GAA8B,MAAI,CAAA,IAAA,CAAA,CAAA;;AAC1D,KAAAC,SAAA,CAAA,IAAA,CAAA,EAAAF,kBAAA,CAgBMG,QAfkB,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,SAAS,EAAvB,CAAA,IAAI,EAAE,GAAG,KAAA;2BADnBJ,kBAgBM,CAAA,KAAA,EAAA;AAdH,QAAA,GAAG,EAAE,GAAG;AACT,QAAA,KAAK,EAAC,yBAAyB;AAC9B,QAAA,KAAK,iBAAE,QAAM,CAAA,MAAA,CAAA;;QAEdK,WAME,CAAA,oBAAA,EAAA;UALC,GAAG,EAAE,IAAI,CAAC,GAAG;AACb,UAAA,GAAG,EAAE,MAAG,CAAA,GAAA;AACT,UAAA,KAAK,EAAC,MAAM;UACX,MAAM,EAAE,MAAU,CAAA,UAAA,GAAG,MAAM,CAAA,MAAA,GAAA,EAAA;AAC5B,UAAA,KAAwB,EAAxB,CAAwB,UAAA,CAAA,QAAA,CAAA;;SAEf,MAAQ,CAAA,QAAA,IAAI,IAAI,CAAC,KAAK;0BAAjCL,kBAEM,CAAA,KAAA,EAAA;;AAF8B,cAAA,KAAK,gCAAiB,MAAQ,CAAA,QAAA,CAAA;AAC7D,aAAA,EAAAM,eAAA,CAAA,IAAI,CAAC,KAAK,CAAA,EAAA,CAAA,mBAAA;;;;AAGN,IAAA,CAAA,MAAA,CAAA,SAAS,CAAC,MAAM,IAAA,CAAA;sBAA3BN,kBAEM,CAAA,KAAA,EAAA,UAAA,EAAA;UADJK,WAAkC,CAAA,mBAAA,EAAA,EAAxB,WAAW,EAAC,SAAS,EAAA,CAAA;;;;;;;;;"}
1
+ {"version":3,"file":"DkViewImage.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewImage.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-image\" :class=\"'dk-mobile-image-' + type\">\n <div v-for=\"(item, key) in imageList\" :key=\"key\" class=\"dk-mobile-image-content\" :style=\"_style\">\n <van-image :src=\"item.img\" :fit=\"fit\" width=\"100%\" :height=\"heightAuto ? height : ''\" style=\"overflow: hidden\" />\n <div v-if=\"showText && item.title\" :class=\"'text-type-' + textType\">\n {{ item.title }}\n </div>\n </div>\n <div v-if=\"imageList.length <= 0\">\n <el-empty description=\"请添加图片数据\" />\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewImage',\n props: {\n value: { default: '', type: String },\n type: { default: 'default', type: String },\n textType: { default: 'default', type: String },\n heightAuto: { default: false, type: Boolean },\n showText: { default: false, type: Boolean },\n height: { default: '', type: [Number, String] },\n width: { default: '', type: [Number, String] },\n borderRadius: { default: '', type: [Number, String] },\n marginBottom: { default: '', type: [Number, String] },\n marginRight: { default: '', type: [Number, String] },\n imageList: { default: () => [], type: [Array] },\n\n fit: { default: 'cover', type: String },\n },\n data() {\n return {}\n },\n computed: {\n _style() {\n const style = {}\n if (this.type === 'default') {\n style.marginBottom = this.marginBottom + 'px'\n } else {\n style.width = this.width + '%'\n style.marginRight = this.marginRight + 'px'\n }\n style.borderRadius = this.borderRadius + 'px'\n return style\n },\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_openBlock","_Fragment","_renderList","_createVNode","_toDisplayString"],"mappings":";;;AAeA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AACpC,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ;AAC1C,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ;AAC9C,IAAA,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS;AAC7C,IAAA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-music\">\n <div v-if=\"iconType === 'image'\">\n <img\n :src=\"imgUrl\"\n width=\"100%\"\n :style=\"_style\"\n :class=\"rotation\"\n class=\"dk-music-img\"\n alt=\"\"\n />\n </div>\n <van-icon\n v-else\n name=\"music-o\"\n class=\"dk-music-icon\"\n :class=\"rotation\"\n :style=\"_style\"\n />\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewMusic',\n props: {\n musicPath: { default: '', type: String },\n // common\n iconType: { default: '', type: String }, // 图标样式\n iconSize: { default: 40, type: Number }, // 图标尺寸\n rotation: { default: 'changeRight', type: String }, // 旋转方向\n speed: { default: 5, type: Number }, // 旋转速度\n // image\n imgUrl: { default: '', type: String }, // 图片地址\n },\n data() {\n return {}\n },\n computed: {\n _style() {\n const speed = 11 - this.speed + 's'\n return {\n width: this.iconSize + 'px',\n height: this.iconSize + 'px',\n fontSize: this.iconSize + 'px',\n animationDuration: speed,\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear',\n }\n },\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_createBlock"],"mappings":";;;AAuBA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACxC;AACA,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACvC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;IACvC,QAAQ,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAO,EAAC;AAClD,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAK,EAAG;AACnC;AACA,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE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../../../../../src/page-diy/src/views/web/DkViewMusic.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-music\">\n <div v-if=\"iconType === 'image'\">\n <img :src=\"imgUrl\" width=\"100%\" :style=\"_style\" :class=\"rotation\" class=\"dk-music-img\" alt=\"\" />\n </div>\n <van-icon v-else name=\"music-o\" class=\"dk-music-icon\" :class=\"rotation\" :style=\"_style\" />\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewMusic',\n props: {\n musicPath: { default: '', type: String },\n // common\n iconType: { default: '', type: String }, // 图标样式\n iconSize: { default: 40, type: Number }, // 图标尺寸\n rotation: { default: 'changeRight', type: String }, // 旋转方向\n speed: { default: 5, type: Number }, // 旋转速度\n // image\n imgUrl: { default: '', type: String }, // 图片地址\n },\n data() {\n return {}\n },\n computed: {\n _style() {\n const speed = 11 - this.speed + 's'\n return {\n width: this.iconSize + 'px',\n height: this.iconSize + 'px',\n fontSize: this.iconSize + 'px',\n animationDuration: speed,\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear',\n }\n },\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_normalizeClass","_createBlock"],"mappings":";;;AAUA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACxC;AACA,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACvC,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;IACvC,QAAQ,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAO,EAAC;AAClD,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAK,EAAG;AACnC;AACA,IAAA,MAAM,EAAE,EAAE,OA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;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewNoticeBar.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewNoticeBar.vue"],"sourcesContent":["<template>\n <div>\n <van-notice-bar\n :speed=\"speed\"\n :left-icon=\"leftIcon\"\n :text=\"text\"\n :color=\"color\"\n :background=\"background\"\n />\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewNoticeBar',\n props: {\n leftIcon: { default: '', type: String },\n text: { default: '', type: String },\n url: { default: '', type: String },\n background: { default: '', type: String },\n color: { default: '', type: String },\n speed: { default: 60, type: Number },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createElementBlock","_createVNode"],"mappings":";;;AAaA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,iBAAiB;AACvB,EAAA,KAAK,EAAE;AACL,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;IACvC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;IACnC,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AAClC,IAAA,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACzC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AACpC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;GACrC;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;EACZ,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;;;;uBA5BEA,kBAQM,CAAA,KAAA,EAAA,IAAA,EAAA;IAPJC,WAME,CAAA,yBAAA,EAAA;AALC,MAAA,KAAK,EAAE,MAAK,CAAA,KAAA;AACZ,MAAA,WAAS,EAAE,MAAQ,CAAA,QAAA;AACnB,MAAA,IAAI,EAAE,MAAI,CAAA,IAAA;AACV,MAAA,KAAK,EAAE,MAAK,CAAA,KAAA;AACZ,MAAA,UAAU,EAAE,MAAU,CAAA,UAAA;;;;;;;;"}
1
+ {"version":3,"file":"DkViewNoticeBar.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewNoticeBar.vue"],"sourcesContent":["<template>\n <div>\n <van-notice-bar :speed=\"speed\" :left-icon=\"leftIcon\" :text=\"text\" :color=\"color\" :background=\"background\" />\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewNoticeBar',\n props: {\n leftIcon: { default: '', type: String },\n text: { default: '', type: String },\n url: { default: '', type: String },\n background: { default: '', type: String },\n color: { default: '', type: String },\n speed: { default: 60, type: Number },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createElementBlock","_createVNode"],"mappings":";;;AAOA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,iBAAiB;AACvB,EAAA,KAAK,EAAE;AACL,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;IACvC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;IACnC,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AAClC,IAAA,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACzC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AACpC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;GACrC;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;EACZ,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;;;;uBAtBEA,kBAEM,CAAA,KAAA,EAAA,IAAA,EAAA;IADJC,WAA4G,CAAA,yBAAA,EAAA;AAA3F,MAAA,KAAK,EAAE,MAAK,CAAA,KAAA;AAAG,MAAA,WAAS,EAAE,MAAQ,CAAA,QAAA;AAAG,MAAA,IAAI,EAAE,MAAI,CAAA,IAAA;AAAG,MAAA,KAAK,EAAE,MAAK,CAAA,KAAA;AAAG,MAAA,UAAU,EAAE,MAAU,CAAA,UAAA;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewSwipe.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewSwipe.vue"],"sourcesContent":["<template>\n <van-swipe\n class=\"dk-view-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\" :fit=\"fit\" width=\"100%\" :height=\"height\" />\n </van-swipe-item>\n </van-swipe>\n</template>\n\n<script>\nexport default {\n name: 'DkViewSwipe',\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 fit: {\n default: 'fill',\n type: String,\n },\n bgColor: {\n default: '',\n type: String,\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"],"mappings":";;;AAcA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,EAA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;AAAE,cAAA,MAAM,EAAE,MAAM,CAAA,MAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkViewSwipe.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewSwipe.vue"],"sourcesContent":["<template>\n <van-swipe class=\"dk-view-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\" :fit=\"fit\" width=\"100%\" :height=\"height\" />\n </van-swipe-item>\n </van-swipe>\n</template>\n\n<script>\nexport default {\n name: 'DkViewSwipe',\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 fit: {\n default: 'fill',\n type: String,\n },\n bgColor: {\n default: '',\n type: String,\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"],"mappings":";;;AASA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,EAAE;AACX,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,IAAI;AACb,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;IACD,SAAS,EAAE;AACT,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,KAAK,CAAC;KACd;IACD,GAAG,EAAE;AACH,MAAA,OAAO,EAAE,MAAM;MACf,IAAI,EAAE,MAAM;KACb;AACD,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;GACF;AACD,EAAA,IAAI,GAAG;AACL,IAAA,OAAO,EAAC;GACT;EACD,QAAQ,EAAE,EAAE;AACZ,EAAA,KAAK,EAAE;AACL,IAAA,SAAS,CAAC,GAAG,EAAE,EAAE;GAClB;EACD,OAAO,GAAG,EAAE;EACZ,OAAO,EAAE,EAAE;AACb,EAAA;;;;;;;uBA7CEA,WAIY,CAAA,oBAAA,EAAA;AAJD,IAAA,KAAK,EAAC,eAAe;AAAE,IAAA,QAAQ,EAAE,MAAQ,CAAA,QAAA;AAAE,IAAA,iBAAe,EAAC,OAAO;AAAE,IAAA,KAAK,+BAAgB,MAAO,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA;;qBACzF,MAAgC;AAAhD,OAAAC,SAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,CAEiBC,QAFqB,EAAA,IAAA,EAAAC,UAAA,CAAA,MAAA,CAAA,SAAS,EAAvB,CAAA,IAAI,EAAE,GAAG,KAAA;6BAAjCJ,WAEiB,CAAA,yBAAA,EAAA,EAFiC,GAAG,EAAE,GAAG,EAAA,EAAA;2BACxD,MAAsE;YAAtEK,WAAsE,CAAA,oBAAA,EAAA;cAA1D,GAAG,EAAE,IAAI,CAAC,GAAG;AAAG,cAAA,GAAG,EAAE,MAAG,CAAA,GAAA;AAAE,cAAA,KAAK,EAAC,MAAM;AAAE,cAAA,MAAM,EAAE,MAAM,CAAA,MAAA;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewTitle.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewTitle.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-title\">\n <div class=\"title-left\">\n <van-icon\n v-if=\"prefix === 'icon'\"\n :name=\"icon\"\n :style=\"{ color: prefixColor, fontSize: iconSize + 'px' }\"\n />\n <van-image\n v-if=\"prefix === 'image'\"\n :src=\"prefixImage\"\n alt=\"\"\n class=\"dk-title-img\"\n :width=\"imageWidth\"\n :height=\"imageHeight\"\n />\n <div\n v-if=\"prefix === 'square'\"\n :style=\"{\n width: squareWidth + 'px',\n height: squareHeight + 'px',\n background: prefixColor,\n }\"\n />\n <div\n :style=\"{\n marginLeft: titleMarginLeft + 'px',\n color: color,\n fontWeight: bold ? 800 : 400,\n }\"\n >\n {{ title }}\n </div>\n </div>\n <div\n v-if=\"showRight\"\n class=\"title-right\"\n :style=\"{ color: rColor, fontSize: rSize + 'px' }\"\n >\n {{ rTitle }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewTitle',\n props: {\n title: { default: '标题', type: String },\n size: { default: 14, type: Number },\n color: { default: '#333', type: String },\n bold: { default: false, type: Boolean },\n prefix: { default: '', type: String },\n icon: { default: 'volume', type: String },\n prefixColor: { default: '#409eff', type: String },\n prefixImage: { default: '', type: String },\n squareWidth: { default: 4, type: Number },\n squareHeight: { default: 12, type: Number },\n imageWidth: { default: 24, type: Number },\n imageHeight: { default: 24, type: Number },\n iconSize: { default: 18, type: Number },\n titleMarginLeft: { default: 4, type: Number },\n rTitle: { default: '更多', type: String },\n rColor: { default: '#999', type: String },\n rSize: { default: 12, type: Number },\n showRight: { default: false, type: Boolean },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_createBlock","_normalizeStyle"],"mappings":";;;AA6CA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;IACtC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AACnC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AACxC,IAAA,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AAA,KAAA,EAAA;;AAJJ,UAAA,KAAK,EAAC,aAAa;UAClB,KAAK,EAAAG,cAAA,CAAA,EAAA,KAAA,EAAW,MAAM,CAAA,MAAA,EAAA,QAAA,EAAY,MAAK,CAAA,KAAA,GAAA,IAAA,EAAA,CAAA;2BAErC,MAAM,CAAA,MAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;"}
1
+ {"version":3,"file":"DkViewTitle.vue.mjs","sources":["../../../../../src/page-diy/src/views/web/DkViewTitle.vue"],"sourcesContent":["<template>\n <div class=\"dk-view-title\">\n <div class=\"title-left\">\n <van-icon v-if=\"prefix === 'icon'\" :name=\"icon\" :style=\"{ color: prefixColor, fontSize: iconSize + 'px' }\" />\n <van-image\n v-if=\"prefix === 'image'\"\n :src=\"prefixImage\"\n alt=\"\"\n class=\"dk-title-img\"\n :width=\"imageWidth\"\n :height=\"imageHeight\"\n />\n <div\n v-if=\"prefix === 'square'\"\n :style=\"{\n width: squareWidth + 'px',\n height: squareHeight + 'px',\n background: prefixColor,\n }\"\n />\n <div\n :style=\"{\n marginLeft: titleMarginLeft + 'px',\n color: color,\n fontWeight: bold ? 800 : 400,\n }\"\n >\n {{ title }}\n </div>\n </div>\n <div v-if=\"showRight\" class=\"title-right\" :style=\"{ color: rColor, fontSize: rSize + 'px' }\">\n {{ rTitle }}\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'DkViewTitle',\n props: {\n title: { default: '标题', type: String },\n size: { default: 14, type: Number },\n color: { default: '#333', type: String },\n bold: { default: false, type: Boolean },\n prefix: { default: '', type: String },\n icon: { default: 'volume', type: String },\n prefixColor: { default: '#409eff', type: String },\n prefixImage: { default: '', type: String },\n squareWidth: { default: 4, type: Number },\n squareHeight: { default: 12, type: Number },\n imageWidth: { default: 24, type: Number },\n imageHeight: { default: 24, type: Number },\n iconSize: { default: 18, type: Number },\n titleMarginLeft: { default: 4, type: Number },\n rTitle: { default: '更多', type: String },\n rColor: { default: '#999', type: String },\n rSize: { default: 12, type: Number },\n showRight: { default: false, type: Boolean },\n },\n data() {\n return {}\n },\n computed: {},\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_createBlock","_normalizeStyle"],"mappings":";;;AAqCA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;IACtC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAK,EAAG;AACnC,IAAA,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;AACxC,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS;AACvC,IAAA,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACrC,IAAA,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ;AACzC,IAAA,WAAW,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ;AACjD,IAAA,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AAC1C,IAAA,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ;AACzC,IAAA,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AAC3C,IAAA,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACzC,IAAA,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AAC1C,IAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ;AACvC,IAAA,eAAe,EAAE,EAAE,OAAO,EAAE,CAA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AAA,KAAA,QAAA;wBADdF,kBAOE,CAAA,KAAA,EAAA;;YALC,KAAK,EAAAG,cAAA,CAAA;iBAAqB,MAAW,CAAA,WAAA,GAAA,IAAA;kBAA2B,MAAY,CAAA,YAAA,GAAA,IAAA;sBAA+B,MAAW,CAAA,WAAA;;;;MAMzHF,kBAQM,CAAA,KAAA,EAAA;QAPH,KAAK,EAAAE,cAAA,CAAA;sBAA0B,MAAe,CAAA,eAAA,GAAA,IAAA;iBAA0B,MAAK,CAAA,KAAA;sBAAwB,MAAI,CAAA,IAAA,GAAA,GAAA,GAAA,GAAA;;yBAMvG,MAAK,CAAA,KAAA,CAAA,EAAA,CAAA,mBAAA;;KAGD,MAAS,CAAA,SAAA;sBAApBH,kBAEM,CAAA,KAAA,EAAA;;AAFgB,UAAA,KAAK,EAAC,aAAa;UAAE,KAAK,EAAAG,cAAA,CAAA,EAAA,KAAA,EAAW,MAAM,CAAA,MAAA,EAAA,QAAA,EAAY,MAAK,CAAA,KAAA,GAAA,IAAA,EAAA,CAAA;2BAC7E,MAAM,CAAA,MAAA,CAAA,EAAA,CAAA,mBAAA;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"poster.vue2.mjs","sources":["../../../../src/poster-input/src/component/poster.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPoster',\n components: {\n DkPosterViewName,\n DkPosterViewImage,\n DkPosterViewText,\n DkPosterViewAvatar,\n DkPosterViewQrcode,\n },\n});\n</script>\n<template>\n <div class=\"dk-poster\">\n <div class=\"poster-draw\">\n <div class=\"poster-body\">\n <div\n class=\"poster-content\"\n :style=\"{\n width: posterData.width + 'px',\n height: posterData.height + 'px',\n borderRadius: posterData.borderRadius + 'px',\n backgroundImage: 'url(' + posterData.background + ')',\n }\"\n style=\"background-size: 100% 100%\"\n @contextmenu.prevent\n >\n <el-empty\n v-if=\"!posterData.background\"\n description=\"请上传一张背景图\"\n style=\"\n position: absolute;\n width: 100%;\n height: 80%;\n user-select: none;\n \"\n />\n <DraggableContainer\n ref=\"draggableContainer\"\n :reference-line-visible=\"formTools.refLine\"\n :disabled=\"!formTools.snap\"\n :adsorb-cols=\"adsorb.cols\"\n :adsorb-rows=\"adsorb.rows\"\n >\n <vue3-draggable-resizable\n v-for=\"(item, key) in posterData.views\"\n :key=\"key\"\n ref=\"draggables\"\n v-model:h=\"item.css.height\"\n v-model:x=\"item.css.left\"\n v-model:y=\"item.css.top\"\n v-model:w=\"item.css.width\"\n :init-w=\"item.css.width\"\n :init-h=\"item.css.height\"\n :parent=\"true\"\n style=\"cursor: move\"\n :is-conflict-check=\"formTools.isConflictCheck\"\n :snap=\"formTools.snap\"\n :snap-tolerance=\"formTools.snapTolerance\"\n :min-width=\"20\"\n :min-height=\"20\"\n :lock-aspect-ratio=\"item.lockAspectRatio\"\n @resizing=\"onResize\"\n @mousedown=\"index = key\"\n >\n <div style=\"position: relative\">\n <component\n :is=\"item.component\"\n :key=\"key\"\n :item=\"item\"\n :style=\"getBgStyle(item)\"\n :index=\"index\"\n />\n </div>\n </vue3-draggable-resizable>\n </DraggableContainer>\n </div>\n </div>\n <!--悬浮控件-->\n <div class=\"snap-tolerance\">\n <el-form\n :inline=\"true\"\n :model=\"formTools\"\n class=\"form-inline\"\n size=\"small\"\n >\n <el-form-item label=\"对齐检测\">\n <el-switch v-model=\"formTools.snap\" />\n </el-form-item>\n <el-form-item v-if=\"formTools.snap\" label=\"辅助线\">\n <el-switch v-model=\"formTools.refLine\" />\n </el-form-item>\n </el-form>\n </div>\n <!--悬浮控件-->\n </div>\n <!-- 海报组件-->\n <el-form ref=\"form\" label-width=\"50px\" label-position=\"left\">\n <h2 style=\"padding: 10px; margin: 10px; font-size: 20px\">海报配置</h2>\n <el-row :gutter=\"20\" style=\"width: 100%; height: 600px; padding: 0 20px\">\n <el-col :sm=\"24\">\n <el-form-item label=\"元素\">\n <div class=\"view-buttons\">\n <el-button\n type=\"primary\"\n size=\"small\"\n :disabled=\"viewCount['avatar'] >= 1\"\n @click=\"addView('avatar')\"\n >\n 用户头像\n </el-button>\n <el-button\n type=\"warning\"\n size=\"small\"\n :disabled=\"viewCount['qrcode'] >= 1\"\n @click=\"addView('qrcode')\"\n >\n 二维码\n </el-button>\n <el-button\n type=\"danger\"\n size=\"small\"\n :disabled=\"viewCount['name'] >= 1\"\n @click=\"addView('name')\"\n >\n 用户昵称\n </el-button>\n <el-button\n v-for=\"(item, key) in props.views\"\n :key=\"key\"\n type=\"primary\"\n :disabled=\"viewCount[item.name] >= item.count\"\n size=\"small\"\n @click=\"addView(item.name)\"\n >{{ item.text }}\n </el-button>\n </div>\n <div style=\"font-size: 12px; color: #999\">\n 点击元素添加到左侧拖拽框中,<b style=\"color: #000\">右键</b\n >即可编辑模块\n </div>\n </el-form-item>\n </el-col>\n <el-col :sm=\"24\">\n <el-form-item label=\"背景\">\n <dk-image-input\n v-model=\"posterData.background\"\n @input=\"resetSize()\"\n />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"宽度\">\n <el-slider\n v-model=\"posterData.width\"\n :min=\"100\"\n :max=\"600\"\n show-input\n @change=\"checkParentSize()\"\n >\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"高度\">\n <el-slider\n v-model=\"posterData.height\"\n :min=\"100\"\n :max=\"600\"\n show-input\n @change=\"checkParentSize()\"\n >\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"弧度\">\n <el-slider\n v-model=\"posterData.borderRadius\"\n :min=\"0\"\n :max=\"20\"\n show-input\n />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <div style=\"width: 100%; text-align: center\">\n <el-button style=\"width: 30%\" @click=\"resetSize()\">重置</el-button>\n <el-button type=\"primary\" style=\"width: 50%\" @click=\"submit\"\n >确定</el-button\n >\n </div>\n </el-col>\n </el-row>\n </el-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { reactive, ref, computed, watch, provide, onMounted } from 'vue'\nimport { defaultViews } from './config'\n// import Vue3DraggableResizable, { DraggableContainer } from 'vue3-draggable-resizable'\nimport 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'\nimport DkPosterViewName from './views/DkPosterViewName.vue'\nimport DkPosterViewText from './views/DkPosterViewText.vue'\nimport DkPosterViewImage from './views/DkPosterViewImage.vue'\nimport DkPosterViewAvatar from './views/DkPosterViewAvatar.vue'\nimport DkPosterViewQrcode from './views/DkPosterViewQrcode.vue'\n\n\nconst props = defineProps({\n modelValue: {\n default: () => {\n return {}\n },\n type: Object,\n },\n views: {\n default: () => {\n return []\n },\n type: Array as any,\n },\n})\nconst posterRef = ref()\n// const posterData = ref(props.modelValue)\nconst posterData: any = reactive({\n background: '',\n width: 320,\n height: 500,\n borderRadius: 0,\n views: [],\n})\nconst formTools: any = reactive({\n refLine: true,\n snap: true,\n edit: true,\n border: 10,\n})\n\nconst viewCount = computed(() => {\n const count: any = {}\n const views: any = posterData.views\n if (views) {\n for (let i = 0; i < views.length; i++) {\n if (!count[views[i].name]) {\n count[views[i].name] = 1\n } else {\n count[views[i].name]++\n }\n }\n }\n return count\n})\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change', 'submit'])\n\nconst submit = () => {\n emit('input', posterData)\n emit('update:modelValue', posterData)\n emit('submit', posterData)\n emit('change', posterData)\n}\nconst resetSize = () => {\n if (posterData.background) {\n getImageSize(posterData.background)\n .then((image: any) => {\n let tempWidth\n let tempHeight\n const maxHeight = 600\n const maxWidth = 600\n if (image.width / image.height >= maxWidth / maxHeight) {\n if (image.width > maxWidth) {\n tempWidth = maxWidth\n // 按原图片的比例进行缩放\n tempHeight = (image.height * maxWidth) / image.width\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n } else {\n if (image.height > maxHeight) {\n tempHeight = maxHeight\n // 按原图片的比例进行缩放\n tempWidth = (image.width * maxHeight) / image.height\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n }\n posterData.width = parseInt(tempWidth)\n posterData.height = parseInt(tempHeight)\n setTimeout(() => {\n checkParentSize()\n }, 200)\n })\n .catch(() => {})\n }\n}\n\nconst getImageSize = (url: any) => {\n return new Promise(function (resolve, reject) {\n const image = new Image()\n image.onload = function () {\n resolve({\n width: image.width,\n height: image.height,\n })\n }\n image.onerror = function () {\n reject(new Error('error'))\n }\n image.src = url\n })\n}\n// const checkParentSize = () => {\n// posterRef.value.checkParentSize()\n// }\n\nconst addView = (name: string) => {\n // if (name == 'text' || name == 'image') {\n // posterRef.value.add(name, viewNumber(name))\n // } else {\n // posterData.value.add(name)\n // }\n\n add(name)\n}\n\nconst viewNumber = (name: any) => {\n const views = posterData.views\n let count = 1\n for (let i = 0; i < views.length; i++) {\n if (views[i].name == name) {\n count++\n }\n }\n return count\n}\n\n// watch(\n// () => props.modelValue,\n// (n, o) => {\n// posterData = props.modelValue\n// }\n// )\n\n// content的\n\nconst draggables = ref()\nconst draggableContainer = ref()\n\nconst index = ref(0)\nprovide('posterData', posterData)\nconst test = () => {\n console.log(posterData.views)\n}\n\nconst onDrag = (p: any) => {\n const css = posterData.views[index.value].css\n console.log('onDrag', p)\n css.left = p.x\n css.top = p.y\n}\nconst onResize = (p: any) => {\n const css = posterData.views[index.value].css\n css.left = p.x\n css.top = p.y\n css.width = p.w\n css.height = p.h\n}\nconst getBgStyle = (item: any) => {\n if (item.type == 'image') {\n return {\n width: item.css.width + 'px',\n height: item.css.height + 'px',\n borderColor: item.css.borderColor || '#fff',\n borderStyle: 'solid',\n borderWidth: item.css.borderWidth + 'px',\n borderRadius: item.css.borderRadius + 'px',\n top: -parseInt(item.css.borderWidth) + 'px',\n left: -parseInt(item.css.borderWidth) + 'px',\n }\n } else {\n return {}\n }\n}\n\nconst add = (name = 'avatar') => {\n const allViews = defaultViews.concat(props.views as any)\n for (let i = 0; i < allViews.length; i++) {\n if (allViews[i].name == name) {\n // view\n const view = JSON.parse(JSON.stringify(allViews[i]))\n posterData.views.push(view)\n }\n }\n}\n\nconst checkParentSize = () => {\n // 刷新大小检测\n if (draggables.value) {\n console.log('draggables', draggables)\n for (let i = 0; i < draggables.value.length; i++) {\n const draggable = draggables.value[i]\n draggable.parentHeight = posterData.height\n draggable.parentWidth = posterData.width\n\n if (posterData.width < draggable.left + draggable.initW) {\n draggable.left = posterData.width\n }\n if (posterData.height < draggable.top + draggable.initH) {\n draggable.top = posterData.height\n }\n }\n }\n}\n\nconst adsorb = computed(() => {\n const border = formTools?.border\n const height = posterData.height\n const width = posterData.width\n return {\n cols: [border, width - border],\n rows: [border, height - border],\n }\n})\n\nwatch(\n () => props.modelValue,\n (n, o) => {\n console.log('1111')\n // initPosterDraggable()\n }\n)\n\nconst initPosterDraggable = () => {\n console.log('initPosterDraggable')\n posterData.background = props.modelValue.background\n posterData.width = props.modelValue.width\n posterData.height = props.modelValue.height\n posterData.borderRadius = props.modelValue.borderRadius\n posterData.views = []\n for (let i = 0; i < props.modelValue.views.length; i++) {\n posterData.views.push(props.modelValue.views[i])\n }\n}\n\nonMounted(() => {\n initPosterDraggable()\n})\n\ndefineExpose({\n checkParentSize,\n})\n</script>\n<style scoped></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,gBAAA;AAAA,IACA,iBAAA;AAAA,IACA,gBAAA;AAAA,IACA,kBAAA;AAAA,IACA,kBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAuND,IAAA,MAAM,YAAY,GAAI,EAAA,CAAA;AAEtB,IAAA,MAAM,aAAkB,QAAS,CAAA;AAAA,MAC/B,UAAY,EAAA,EAAA;AAAA,MACZ,KAAO,EAAA,GAAA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A,CAAA,YAAA,GAAe,MAAM,UAAW,CAAA,YAAA,CAAA;AAC3C,MAAA,UAAA,CAAW,QAAQ,EAAC,CAAA;AACpB,MAAA,KAAA,IAAS,IAAI,CAAG,EAAA,CAAA,GAAI,MAAM,UAAW,CAAA,KAAA,CAAM,QAAQ,CAAK,EAAA,EAAA;AACtD,QAAA,UAAA,CAAW,MAAM,IAAK,CAAA,KAAA,CAAM,UAAW,CAAA,KAAA,CAAM,CAAC,CAAC,CAAA,CAAA;AAAA,OACjD;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAoB,mBAAA,EAAA,CAAA;AAAA,KACrB,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,eAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"poster.vue2.mjs","sources":["../../../../src/poster-input/src/component/poster.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPoster',\n components: {\n DkPosterViewName,\n DkPosterViewImage,\n DkPosterViewText,\n DkPosterViewAvatar,\n DkPosterViewQrcode,\n },\n});\n</script>\n<template>\n <div class=\"dk-poster\">\n <div class=\"poster-draw\">\n <div class=\"poster-body\">\n <div\n class=\"poster-content\"\n :style=\"{\n width: posterData.width + 'px',\n height: posterData.height + 'px',\n borderRadius: posterData.borderRadius + 'px',\n backgroundImage: 'url(' + posterData.background + ')',\n }\"\n style=\"background-size: 100% 100%\"\n @contextmenu.prevent\n >\n <el-empty\n v-if=\"!posterData.background\"\n description=\"请上传一张背景图\"\n style=\"position: absolute; width: 100%; height: 80%; user-select: none\"\n />\n <DraggableContainer\n ref=\"draggableContainer\"\n :reference-line-visible=\"formTools.refLine\"\n :disabled=\"!formTools.snap\"\n :adsorb-cols=\"adsorb.cols\"\n :adsorb-rows=\"adsorb.rows\"\n >\n <vue3-draggable-resizable\n v-for=\"(item, key) in posterData.views\"\n :key=\"key\"\n ref=\"draggables\"\n v-model:h=\"item.css.height\"\n v-model:x=\"item.css.left\"\n v-model:y=\"item.css.top\"\n v-model:w=\"item.css.width\"\n :init-w=\"item.css.width\"\n :init-h=\"item.css.height\"\n :parent=\"true\"\n style=\"cursor: move\"\n :is-conflict-check=\"formTools.isConflictCheck\"\n :snap=\"formTools.snap\"\n :snap-tolerance=\"formTools.snapTolerance\"\n :min-width=\"20\"\n :min-height=\"20\"\n :lock-aspect-ratio=\"item.lockAspectRatio\"\n @resizing=\"onResize\"\n @mousedown=\"index = key\"\n >\n <div style=\"position: relative\">\n <component :is=\"item.component\" :key=\"key\" :item=\"item\" :style=\"getBgStyle(item)\" :index=\"index\" />\n </div>\n </vue3-draggable-resizable>\n </DraggableContainer>\n </div>\n </div>\n <!--悬浮控件-->\n <div class=\"snap-tolerance\">\n <el-form :inline=\"true\" :model=\"formTools\" class=\"form-inline\" size=\"small\">\n <el-form-item label=\"对齐检测\">\n <el-switch v-model=\"formTools.snap\" />\n </el-form-item>\n <el-form-item v-if=\"formTools.snap\" label=\"辅助线\">\n <el-switch v-model=\"formTools.refLine\" />\n </el-form-item>\n </el-form>\n </div>\n <!--悬浮控件-->\n </div>\n <!-- 海报组件-->\n <el-form ref=\"form\" label-width=\"50px\" label-position=\"left\">\n <h2 style=\"padding: 10px; margin: 10px; font-size: 20px\">海报配置</h2>\n <el-row :gutter=\"20\" style=\"width: 100%; height: 600px; padding: 0 20px\">\n <el-col :sm=\"24\">\n <el-form-item label=\"元素\">\n <div class=\"view-buttons\">\n <el-button type=\"primary\" size=\"small\" :disabled=\"viewCount['avatar'] >= 1\" @click=\"addView('avatar')\">\n 用户头像\n </el-button>\n <el-button type=\"warning\" size=\"small\" :disabled=\"viewCount['qrcode'] >= 1\" @click=\"addView('qrcode')\">\n 二维码\n </el-button>\n <el-button type=\"danger\" size=\"small\" :disabled=\"viewCount['name'] >= 1\" @click=\"addView('name')\">\n 用户昵称\n </el-button>\n <el-button\n v-for=\"(item, key) in props.views\"\n :key=\"key\"\n type=\"primary\"\n :disabled=\"viewCount[item.name] >= item.count\"\n size=\"small\"\n @click=\"addView(item.name)\"\n >{{ item.text }}\n </el-button>\n </div>\n <div style=\"font-size: 12px; color: #999\">\n 点击元素添加到左侧拖拽框中,<b style=\"color: #000\">右键</b>即可编辑模块\n </div>\n </el-form-item>\n </el-col>\n <el-col :sm=\"24\">\n <el-form-item label=\"背景\">\n <dk-image-input v-model=\"posterData.background\" @input=\"resetSize()\" />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"宽度\">\n <el-slider v-model=\"posterData.width\" :min=\"100\" :max=\"600\" show-input @change=\"checkParentSize()\">\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"高度\">\n <el-slider v-model=\"posterData.height\" :min=\"100\" :max=\"600\" show-input @change=\"checkParentSize()\">\n <template #append>px</template>\n </el-slider>\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <el-form-item label=\"弧度\">\n <el-slider v-model=\"posterData.borderRadius\" :min=\"0\" :max=\"20\" show-input />\n </el-form-item>\n </el-col>\n <el-col :span=\"24\">\n <div style=\"width: 100%; text-align: center\">\n <el-button style=\"width: 30%\" @click=\"resetSize()\">重置</el-button>\n <el-button type=\"primary\" style=\"width: 50%\" @click=\"submit\">确定</el-button>\n </div>\n </el-col>\n </el-row>\n </el-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { reactive, ref, computed, watch, provide, onMounted } from 'vue'\nimport { defaultViews } from './config'\n// import Vue3DraggableResizable, { DraggableContainer } from 'vue3-draggable-resizable'\nimport 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css'\nimport DkPosterViewName from './views/DkPosterViewName.vue'\nimport DkPosterViewText from './views/DkPosterViewText.vue'\nimport DkPosterViewImage from './views/DkPosterViewImage.vue'\nimport DkPosterViewAvatar from './views/DkPosterViewAvatar.vue'\nimport DkPosterViewQrcode from './views/DkPosterViewQrcode.vue'\n\n\nconst props = defineProps({\n modelValue: {\n default: () => {\n return {}\n },\n type: Object,\n },\n views: {\n default: () => {\n return []\n },\n type: Array as any,\n },\n})\nconst posterRef = ref()\n// const posterData = ref(props.modelValue)\nconst posterData: any = reactive({\n background: '',\n width: 320,\n height: 500,\n borderRadius: 0,\n views: [],\n})\nconst formTools: any = reactive({\n refLine: true,\n snap: true,\n edit: true,\n border: 10,\n})\n\nconst viewCount = computed(() => {\n const count: any = {}\n const views: any = posterData.views\n if (views) {\n for (let i = 0; i < views.length; i++) {\n if (!count[views[i].name]) {\n count[views[i].name] = 1\n } else {\n count[views[i].name]++\n }\n }\n }\n return count\n})\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change', 'submit'])\n\nconst submit = () => {\n emit('input', posterData)\n emit('update:modelValue', posterData)\n emit('submit', posterData)\n emit('change', posterData)\n}\nconst resetSize = () => {\n if (posterData.background) {\n getImageSize(posterData.background)\n .then((image: any) => {\n let tempWidth\n let tempHeight\n const maxHeight = 600\n const maxWidth = 600\n if (image.width / image.height >= maxWidth / maxHeight) {\n if (image.width > maxWidth) {\n tempWidth = maxWidth\n // 按原图片的比例进行缩放\n tempHeight = (image.height * maxWidth) / image.width\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n } else {\n if (image.height > maxHeight) {\n tempHeight = maxHeight\n // 按原图片的比例进行缩放\n tempWidth = (image.width * maxHeight) / image.height\n } else {\n tempWidth = image.width\n tempHeight = image.height\n }\n }\n posterData.width = parseInt(tempWidth)\n posterData.height = parseInt(tempHeight)\n setTimeout(() => {\n checkParentSize()\n }, 200)\n })\n .catch(() => {})\n }\n}\n\nconst getImageSize = (url: any) => {\n return new Promise(function (resolve, reject) {\n const image = new Image()\n image.onload = function () {\n resolve({\n width: image.width,\n height: image.height,\n })\n }\n image.onerror = function () {\n reject(new Error('error'))\n }\n image.src = url\n })\n}\n// const checkParentSize = () => {\n// posterRef.value.checkParentSize()\n// }\n\nconst addView = (name: string) => {\n // if (name == 'text' || name == 'image') {\n // posterRef.value.add(name, viewNumber(name))\n // } else {\n // posterData.value.add(name)\n // }\n\n add(name)\n}\n\nconst viewNumber = (name: any) => {\n const views = posterData.views\n let count = 1\n for (let i = 0; i < views.length; i++) {\n if (views[i].name == name) {\n count++\n }\n }\n return count\n}\n\n// watch(\n// () => props.modelValue,\n// (n, o) => {\n// posterData = props.modelValue\n// }\n// )\n\n// content的\n\nconst draggables = ref()\nconst draggableContainer = ref()\n\nconst index = ref(0)\nprovide('posterData', posterData)\nconst test = () => {\n console.log(posterData.views)\n}\n\nconst onDrag = (p: any) => {\n const css = posterData.views[index.value].css\n console.log('onDrag', p)\n css.left = p.x\n css.top = p.y\n}\nconst onResize = (p: any) => {\n const css = posterData.views[index.value].css\n css.left = p.x\n css.top = p.y\n css.width = p.w\n css.height = p.h\n}\nconst getBgStyle = (item: any) => {\n if (item.type == 'image') {\n return {\n width: item.css.width + 'px',\n height: item.css.height + 'px',\n borderColor: item.css.borderColor || '#fff',\n borderStyle: 'solid',\n borderWidth: item.css.borderWidth + 'px',\n borderRadius: item.css.borderRadius + 'px',\n top: -parseInt(item.css.borderWidth) + 'px',\n left: -parseInt(item.css.borderWidth) + 'px',\n }\n } else {\n return {}\n }\n}\n\nconst add = (name = 'avatar') => {\n const allViews = defaultViews.concat(props.views as any)\n for (let i = 0; i < allViews.length; i++) {\n if (allViews[i].name == name) {\n // view\n const view = JSON.parse(JSON.stringify(allViews[i]))\n posterData.views.push(view)\n }\n }\n}\n\nconst checkParentSize = () => {\n // 刷新大小检测\n if (draggables.value) {\n console.log('draggables', draggables)\n for (let i = 0; i < draggables.value.length; i++) {\n const draggable = draggables.value[i]\n draggable.parentHeight = posterData.height\n draggable.parentWidth = posterData.width\n\n if (posterData.width < draggable.left + draggable.initW) {\n draggable.left = posterData.width\n }\n if (posterData.height < draggable.top + draggable.initH) {\n draggable.top = posterData.height\n }\n }\n }\n}\n\nconst adsorb = computed(() => {\n const border = formTools?.border\n const height = posterData.height\n const width = posterData.width\n return {\n cols: [border, width - border],\n rows: [border, height - border],\n }\n})\n\nwatch(\n () => props.modelValue,\n (n, o) => {\n console.log('1111')\n // initPosterDraggable()\n }\n)\n\nconst initPosterDraggable = () => {\n console.log('initPosterDraggable')\n posterData.background = props.modelValue.background\n posterData.width = props.modelValue.width\n posterData.height = props.modelValue.height\n posterData.borderRadius = props.modelValue.borderRadius\n posterData.views = []\n for (let i = 0; i < props.modelValue.views.length; i++) {\n posterData.views.push(props.modelValue.views[i])\n }\n}\n\nonMounted(() => {\n initPosterDraggable()\n})\n\ndefineExpose({\n checkParentSize,\n})\n</script>\n<style scoped></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,UAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,gBAAA;AAAA,IACA,iBAAA;AAAA,IACA,gBAAA;AAAA,IACA,kBAAA;AAAA,IACA,kBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAiKD,IAAA,MAAM,YAAY,GAAI,EAAA,CAAA;AAEtB,IAAA,MAAM,aAAkB,Q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,UAAA,CAAA,MAAA,GAAS,MAAM,UAAW,CAAA,MAAA,CAAA;AACrC,MAAW,UAAA,CAAA,YAAA,GAAe,MAAM,UAAW,CAAA,YAAA,CAAA;AAC3C,MAAA,UAAA,CAAW,QAAQ,EAAC,CAAA;AACpB,MAAA,KAAA,IAAS,IAAI,CAAG,EAAA,CAAA,GAAI,MAAM,UAAW,CAAA,KAAA,CAAM,QAAQ,CAAK,EAAA,EAAA;AACtD,QAAA,UAAA,CAAW,MAAM,IAAK,CAAA,KAAA,CAAM,UAAW,CAAA,KAAA,CAAM,CAAC,CAAC,CAAA,CAAA;AAAA,OACjD;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAoB,mBAAA,EAAA,CAAA;AAAA,KACrB,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,eAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkPosterViewAvatar.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewAvatar.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewAvatar',\n});\n</script>\n<template>\n <div\n style=\"\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #bfffab;\n \"\n >\n <el-popover placement=\"right\" width=\"400\" trigger=\"contextmenu\">\n <el-form\n label-position=\"left\"\n label-width=\"100px\"\n style=\"padding: 20px 10px 0\"\n >\n <el-form-item label=\"圆角\">\n <el-slider\n v-model=\"item.css.borderRadius\"\n show-input\n :min=\"0\"\n :max=\"60\"\n />\n </el-form-item>\n <el-form-item label=\"边框颜色\">\n <el-color-picker v-model=\"item.css.borderColor\" />\n </el-form-item>\n <el-form-item label=\"边框大小\">\n <el-slider\n v-model=\"item.css.borderWidth\"\n show-input\n :min=\"0\"\n :max=\"20\"\n />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div style=\"position: relative\">\n <dk-icon\n icon=\"emojione:cat-face\"\n :size=\"item.css.width / 1.2\"\n ></dk-icon>\n </div>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { reactive } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\nconst item: any = reactive(props.item)\n</script>\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AAoED,IAAM,MAAA,IAAA,GAAY,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkPosterViewAvatar.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewAvatar.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewAvatar',\n});\n</script>\n<template>\n <div style=\"position: relative; display: flex; align-items: center; justify-content: center; background: #bfffab\">\n <el-popover placement=\"right\" width=\"400\" trigger=\"contextmenu\">\n <el-form label-position=\"left\" label-width=\"100px\" style=\"padding: 20px 10px 0\">\n <el-form-item label=\"圆角\">\n <el-slider v-model=\"item.css.borderRadius\" show-input :min=\"0\" :max=\"60\" />\n </el-form-item>\n <el-form-item label=\"边框颜色\">\n <el-color-picker v-model=\"item.css.borderColor\" />\n </el-form-item>\n <el-form-item label=\"边框大小\">\n <el-slider v-model=\"item.css.borderWidth\" show-input :min=\"0\" :max=\"20\" />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div style=\"position: relative\">\n <dk-icon icon=\"emojione:cat-face\" :size=\"item.css.width / 1.2\"></dk-icon>\n </div>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { reactive } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\nconst item: any = reactive(props.item)\n</script>\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AA2CD,IAAM,MAAA,IAAA,GAAY,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -9,7 +9,7 @@ const _hoisted_2 = {
9
9
  const _hoisted_3 = /* @__PURE__ */ createElementVNode(
10
10
  "div",
11
11
  { style: { "position": "absolute", "bottom": "5px", "width": "100%", "text-align": "center" } },
12
- " \u81EA\u5B9A\u4E49\u56FE ",
12
+ "\u81EA\u5B9A\u4E49\u56FE",
13
13
  -1
14
14
  /* HOISTED */
15
15
  );
@@ -1 +1 @@
1
- {"version":3,"file":"DkPosterViewImage.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewImage.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewImage',\n});\n</script>\n<template>\n <div\n style=\"\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #f6f6f6;\n \"\n >\n <el-popover\n trigger=\"contextmenu\"\n placement=\"right\"\n width=\"400\"\n title=\"编辑二维码\"\n >\n <el-form\n label-position=\"left\"\n label-width=\"100px\"\n style=\"padding: 20px 10px 0\"\n >\n <el-form-item label=\"圆角\">\n <el-slider\n v-model=\"item.css.borderRadius\"\n show-input\n :min=\"0\"\n :max=\"100\"\n />\n </el-form-item>\n <el-form-item label=\"边框颜色\">\n <el-color-picker v-model=\"item.css.borderColor\" />\n </el-form-item>\n <el-form-item label=\"边框大小\">\n <el-slider\n v-model=\"item.css.borderWidth\"\n show-input\n :min=\"0\"\n :max=\"20\"\n />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div v-if=\"!item.image\" style=\"position: relative\">\n <dk-icon\n icon=\"Picture\"\n color=\"#ccc\"\n hover-color=\"#ccc\"\n style=\"width: 100%\"\n :style=\"{ fontSize: item.css.height + 'px' }\"\n />\n <div\n style=\"\n position: absolute;\n bottom: 5px;\n width: 100%;\n text-align: center;\n \"\n >\n 自定义图\n </div>\n </div>\n <div style=\"position: relative\">\n <el-image\n :src=\"item.image\"\n :style=\"{\n width: item.css.width + 'px',\n height: item.css.height + 'px',\n }\"\n ></el-image>\n </div>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, reactive, onMounted } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n backgroundColor: css.background,\n height: '100%',\n width: item.css.width + 'px',\n overflow: 'hidden',\n borderRadius: css.borderRadius + 'px',\n }\n})\nconst item: any = reactive(props.item)\n\nif (!item.css.textAlign) {\n item.css.textAlign = 'left'\n}\n\nonMounted(() => {\n const css = item.css\n item.type = 'image'\n if (!css.background) {\n css.background = '#f5f5f5'\n }\n if (!css.borderColor) {\n css.borderColor = '#fff'\n }\n if (!css.color) {\n css.color = '#333'\n }\n if (!css.borderWidth) {\n css.borderWidth = 5\n }\n})\n</script>\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,mBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AAiGD,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACvB,MAAO,OAAA;AAAA,QACL,iBAAiB,GAAI,CAAA,UAAA;AAAA,QACrB,MAAQ,EAAA,MAAA;AAAA,QACR,KAAA,EAAO,IAAK,CAAA,GAAA,CAAI,KAAQ,GAAA,IAAA;AAAA,QACxB,QAAU,EAAA,QAAA;AAAA,QACV,YAAA,EAAc,IAAI,YAAe,GAAA,IAAA;AAAA,OACnC,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,IAAA,GAAY,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;AAErC,IAAI,IAAA,CAAC,IAAK,CAAA,GAAA,CAAI,SAAW,EAAA;AACvB,MAAA,IAAA,CAAK,IAAI,SAAY,GAAA,MAAA,CAAA;AAAA,KACvB;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAA,MAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACjB,MAAA,IAAA,CAAK,IAAO,GAAA,OAAA,CAAA;AACZ,MAAI,IAAA,CAAC,IAAI,UAAY,EAAA;AACnB,QAAA,GAAA,CAAI,UAAa,GAAA,SAAA,CAAA;AAAA,OACnB;AACA,MAAI,IAAA,CAAC,IAAI,WAAa,EAAA;AACpB,QAAA,GAAA,CAAI,WAAc,GAAA,MAAA,CAAA;AAAA,OACpB;AACA,MAAI,IAAA,CAAC,IAAI,KAAO,EAAA;AACd,QAAA,GAAA,CAAI,KAAQ,GAAA,MAAA,CAAA;AAAA,OACd;AACA,MAAI,IAAA,CAAC,IAAI,WAAa,EAAA;AACpB,QAAA,GAAA,CAAI,WAAc,GAAA,CAAA,CAAA;AAAA,OACpB;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkPosterViewImage.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewImage.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewImage',\n});\n</script>\n<template>\n <div style=\"position: relative; display: flex; align-items: center; justify-content: center; background: #f6f6f6\">\n <el-popover trigger=\"contextmenu\" placement=\"right\" width=\"400\" title=\"编辑二维码\">\n <el-form label-position=\"left\" label-width=\"100px\" style=\"padding: 20px 10px 0\">\n <el-form-item label=\"圆角\">\n <el-slider v-model=\"item.css.borderRadius\" show-input :min=\"0\" :max=\"100\" />\n </el-form-item>\n <el-form-item label=\"边框颜色\">\n <el-color-picker v-model=\"item.css.borderColor\" />\n </el-form-item>\n <el-form-item label=\"边框大小\">\n <el-slider v-model=\"item.css.borderWidth\" show-input :min=\"0\" :max=\"20\" />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div v-if=\"!item.image\" style=\"position: relative\">\n <dk-icon\n icon=\"Picture\"\n color=\"#ccc\"\n hover-color=\"#ccc\"\n style=\"width: 100%\"\n :style=\"{ fontSize: item.css.height + 'px' }\"\n />\n <div style=\"position: absolute; bottom: 5px; width: 100%; text-align: center\">自定义图</div>\n </div>\n <div style=\"position: relative\">\n <el-image\n :src=\"item.image\"\n :style=\"{\n width: item.css.width + 'px',\n height: item.css.height + 'px',\n }\"\n ></el-image>\n </div>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, reactive, onMounted } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n backgroundColor: css.background,\n height: '100%',\n width: item.css.width + 'px',\n overflow: 'hidden',\n borderRadius: css.borderRadius + 'px',\n }\n})\nconst item: any = reactive(props.item)\n\nif (!item.css.textAlign) {\n item.css.textAlign = 'left'\n}\n\nonMounted(() => {\n const css = item.css\n item.type = 'image'\n if (!css.background) {\n css.background = '#f5f5f5'\n }\n if (!css.borderColor) {\n css.borderColor = '#fff'\n }\n if (!css.color) {\n css.color = '#333'\n }\n if (!css.borderWidth) {\n css.borderWidth = 5\n }\n})\n</script>\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,mBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AA6DD,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,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ViewName.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewName',\n});\n</script>\n<template>\n <div class=\"text\" :style=\"_style\">\n <el-popover placement=\"right\" width=\"400\" trigger=\"contextmenu\">\n <el-form\n label-position=\"left\"\n label-width=\"100px\"\n style=\"padding: 20px 10px 0\"\n >\n <el-form-item label=\"文字大小\">\n <el-slider\n v-model=\"item.css.fontSize\"\n show-input\n :min=\"12\"\n :max=\"50\"\n />\n </el-form-item>\n <el-form-item label=\"对齐方式\">\n <el-radio-group v-model=\"item.css.textAlign\">\n <el-radio label=\"left\" value=\"left\">左边</el-radio>\n <el-radio label=\"center\" value=\"center\">居中</el-radio>\n <el-radio label=\"right\" value=\"right\">居右</el-radio>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"文字颜色\">\n <el-color-picker v-model=\"item.css.color\" />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div>用户昵称</div>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, reactive } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n fontSize: css.fontSize + 'px',\n color: css.color,\n textAlign: css.textAlign,\n }\n})\nconst item = reactive(props.item)\n</script>\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AAwDD,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACvB,MAAO,OAAA;AAAA,QACL,QAAA,EAAU,IAAI,QAAW,GAAA,IAAA;AAAA,QACzB,OAAO,GAAI,CAAA,KAAA;AAAA,QACX,WAAW,GAAI,CAAA,SAAA;AAAA,OACjB,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,IAAA,GAAO,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkPosterViewName.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewName.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewName',\n});\n</script>\n<template>\n <div class=\"text\" :style=\"_style\">\n <el-popover placement=\"right\" width=\"400\" trigger=\"contextmenu\">\n <el-form label-position=\"left\" label-width=\"100px\" style=\"padding: 20px 10px 0\">\n <el-form-item label=\"文字大小\">\n <el-slider v-model=\"item.css.fontSize\" show-input :min=\"12\" :max=\"50\" />\n </el-form-item>\n <el-form-item label=\"对齐方式\">\n <el-radio-group v-model=\"item.css.textAlign\">\n <el-radio label=\"left\" value=\"left\">左边</el-radio>\n <el-radio label=\"center\" value=\"center\">居中</el-radio>\n <el-radio label=\"right\" value=\"right\">居右</el-radio>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"文字颜色\">\n <el-color-picker v-model=\"item.css.color\" />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div>用户昵称</div>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, reactive } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n fontSize: css.fontSize + 'px',\n color: css.color,\n textAlign: css.textAlign,\n }\n})\nconst item = reactive(props.item)\n</script>\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AA+CD,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACvB,MAAO,OAAA;AAAA,QACL,QAAA,EAAU,IAAI,QAAW,GAAA,IAAA;AAAA,QACzB,OAAO,GAAI,CAAA,KAAA;AAAA,QACX,WAAW,GAAI,CAAA,SAAA;AAAA,OACjB,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,IAAA,GAAO,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkPosterViewQrcode.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewQrcode.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewQrcode',\n});\n</script>\n<template>\n <div\n :style=\"_style\"\n style=\"\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n \"\n >\n <el-popover\n trigger=\"contextmenu\"\n placement=\"right\"\n width=\"400\"\n title=\"编辑二维码\"\n >\n <el-form\n label-position=\"left\"\n label-width=\"100px\"\n style=\"padding: 20px 10px 0\"\n size=\"small\"\n >\n <el-form-item label=\"背景颜色\">\n <el-color-picker v-model=\"item.css.background\" />\n </el-form-item>\n <el-form-item label=\"二维码颜色\">\n <el-color-picker v-model=\"item.css.color\" />\n </el-form-item>\n <el-form-item label=\"边框颜色\">\n <el-color-picker v-model=\"item.css.borderColor\" />\n </el-form-item>\n <el-form-item label=\"边框大小\">\n <el-slider\n v-model=\"item.css.borderWidth\"\n show-input\n :min=\"0\"\n :max=\"20\"\n />\n </el-form-item>\n <el-form-item label=\"圆弧大小\">\n <el-slider\n v-model=\"item.css.borderRadius\"\n show-input\n :min=\"0\"\n :max=\"20\"\n />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <dk-icon icon=\"wpf:qrcode\" :size=\"item.css.width\"></dk-icon>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, reactive, ref } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst visible = ref(false)\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n fontSize: css.fontSize + 'px',\n color: css.color,\n textAlign: css.textAlign,\n backgroundColor: css.background,\n height: '100%',\n overflow: 'hidden',\n borderRadius: css.borderRadius + 'px',\n borderWidth: css.borderWidth + 'px',\n }\n})\nconst item = reactive(props.item)\n</script>\n\n<!--<script>-->\n<!--export default {-->\n<!-- name: 'DkPosterViewQrcode',-->\n<!-- props: {-->\n<!-- item: {-->\n<!-- default: () => {-->\n<!-- return {}-->\n<!-- },-->\n<!-- type: Object,-->\n<!-- },-->\n<!-- edit: {-->\n<!-- default: false,-->\n<!-- type: Boolean,-->\n<!-- },-->\n<!-- },-->\n<!-- data() {-->\n<!-- return {}-->\n<!-- },-->\n<!-- computed: {-->\n<!-- _style() {-->\n<!-- const css = this.item.css-->\n<!-- return {-->\n<!-- backgroundColor: css.background,-->\n<!-- // borderColor: css.borderColor,-->\n<!-- // borderStyle: 'solid'-->\n<!-- height: '100%',-->\n<!-- overflow: 'hidden',-->\n<!-- // borderWidth: css.borderWidth + 'px',-->\n<!-- borderRadius: css.borderRadius + 'px',-->\n<!-- }-->\n<!-- },-->\n<!-- },-->\n<!-- mounted() {-->\n<!-- const css = this.item.css-->\n<!-- this.$set(this.item, 'type', 'qrcode')-->\n<!-- if (!css.background) {-->\n<!-- this.$set(css, 'background', '#f5f5f5')-->\n<!-- }-->\n<!-- if (!css.borderColor) {-->\n<!-- this.$set(css, 'borderColor', '#fff')-->\n<!-- }-->\n<!-- if (!css.color) {-->\n<!-- this.$set(css, 'color', '#333')-->\n<!-- }-->\n<!-- if (!css.borderWidth) {-->\n<!-- this.$set(css, 'borderWidth', 5)-->\n<!-- }-->\n\n<!-- console.log(this.item)-->\n<!-- },-->\n<!-- methods: {},-->\n<!--}-->\n<!--</script>-->\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AA6ED,IAAM,MAAA,OAAA,GAAU,IAAI,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACvB,MAAO,OAAA;AAAA,QACL,QAAA,EAAU,IAAI,QAAW,GAAA,IAAA;AAAA,QACzB,OAAO,GAAI,CAAA,KAAA;AAAA,QACX,WAAW,GAAI,CAAA,SAAA;AAAA,QACf,iBAAiB,GAAI,CAAA,UAAA;AAAA,QACrB,MAAQ,EAAA,MAAA;AAAA,QACR,QAAU,EAAA,QAAA;AAAA,QACV,YAAA,EAAc,IAAI,YAAe,GAAA,IAAA;AAAA,QACjC,WAAA,EAAa,IAAI,WAAc,GAAA,IAAA;AAAA,OACjC,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,IAAA,GAAO,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkPosterViewQrcode.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewQrcode.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewQrcode',\n});\n</script>\n<template>\n <div :style=\"_style\" style=\"position: relative; display: flex; align-items: center; justify-content: center\">\n <el-popover trigger=\"contextmenu\" placement=\"right\" width=\"400\" title=\"编辑二维码\">\n <el-form label-position=\"left\" label-width=\"100px\" style=\"padding: 20px 10px 0\" size=\"small\">\n <el-form-item label=\"背景颜色\">\n <el-color-picker v-model=\"item.css.background\" />\n </el-form-item>\n <el-form-item label=\"二维码颜色\">\n <el-color-picker v-model=\"item.css.color\" />\n </el-form-item>\n <el-form-item label=\"边框颜色\">\n <el-color-picker v-model=\"item.css.borderColor\" />\n </el-form-item>\n <el-form-item label=\"边框大小\">\n <el-slider v-model=\"item.css.borderWidth\" show-input :min=\"0\" :max=\"20\" />\n </el-form-item>\n <el-form-item label=\"圆弧大小\">\n <el-slider v-model=\"item.css.borderRadius\" show-input :min=\"0\" :max=\"20\" />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <dk-icon icon=\"wpf:qrcode\" :size=\"item.css.width\"></dk-icon>\n </template>\n </el-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, reactive, ref } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst visible = ref(false)\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n fontSize: css.fontSize + 'px',\n color: css.color,\n textAlign: css.textAlign,\n backgroundColor: css.background,\n height: '100%',\n overflow: 'hidden',\n borderRadius: css.borderRadius + 'px',\n borderWidth: css.borderWidth + 'px',\n }\n})\nconst item = reactive(props.item)\n</script>\n\n<!--<script>-->\n<!--export default {-->\n<!-- name: 'DkPosterViewQrcode',-->\n<!-- props: {-->\n<!-- item: {-->\n<!-- default: () => {-->\n<!-- return {}-->\n<!-- },-->\n<!-- type: Object,-->\n<!-- },-->\n<!-- edit: {-->\n<!-- default: false,-->\n<!-- type: Boolean,-->\n<!-- },-->\n<!-- },-->\n<!-- data() {-->\n<!-- return {}-->\n<!-- },-->\n<!-- computed: {-->\n<!-- _style() {-->\n<!-- const css = this.item.css-->\n<!-- return {-->\n<!-- backgroundColor: css.background,-->\n<!-- // borderColor: css.borderColor,-->\n<!-- // borderStyle: 'solid'-->\n<!-- height: '100%',-->\n<!-- overflow: 'hidden',-->\n<!-- // borderWidth: css.borderWidth + 'px',-->\n<!-- borderRadius: css.borderRadius + 'px',-->\n<!-- }-->\n<!-- },-->\n<!-- },-->\n<!-- mounted() {-->\n<!-- const css = this.item.css-->\n<!-- this.$set(this.item, 'type', 'qrcode')-->\n<!-- if (!css.background) {-->\n<!-- this.$set(css, 'background', '#f5f5f5')-->\n<!-- }-->\n<!-- if (!css.borderColor) {-->\n<!-- this.$set(css, 'borderColor', '#fff')-->\n<!-- }-->\n<!-- if (!css.color) {-->\n<!-- this.$set(css, 'color', '#333')-->\n<!-- }-->\n<!-- if (!css.borderWidth) {-->\n<!-- this.$set(css, 'borderWidth', 5)-->\n<!-- }-->\n\n<!-- console.log(this.item)-->\n<!-- },-->\n<!-- methods: {},-->\n<!--}-->\n<!--</script>-->\n\n<style scoped lang=\"scss\"></style>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AAiDD,IAAM,MAAA,OAAA,GAAU,IAAI,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACvB,MAAO,OAAA;AAAA,QACL,QAAA,EAAU,IAAI,QAAW,GAAA,IAAA;AAAA,QACzB,OAAO,GAAI,CAAA,KAAA;AAAA,QACX,WAAW,GAAI,CAAA,SAAA;AAAA,QACf,iBAAiB,GAAI,CAAA,UAAA;AAAA,QACrB,MAAQ,EAAA,MAAA;AAAA,QACR,QAAU,EAAA,QAAA;AAAA,QACV,YAAA,EAAc,IAAI,YAAe,GAAA,IAAA;AAAA,QACjC,WAAA,EAAa,IAAI,WAAc,GAAA,IAAA;AAAA,OACjC,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,IAAA,GAAO,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"DkPosterViewText.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewText.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewText',\n});\n</script>\n<template>\n <div class=\"text\">\n <el-popover placement=\"right\" width=\"400\" trigger=\"contextmenu\">\n <el-form\n label-position=\"left\"\n label-width=\"100px\"\n style=\"padding: 20px 10px 0\"\n >\n <el-form-item label=\"文字大小\">\n <el-slider\n v-model=\"item.css.fontSize\"\n show-input\n :min=\"12\"\n :max=\"50\"\n />\n </el-form-item>\n <el-form-item label=\"对齐方式\">\n <el-radio-group v-model=\"item.css.textAlign\">\n <el-radio label=\"left\" value=\"left\">左边</el-radio>\n <el-radio label=\"center\" value=\"center\">居中</el-radio>\n <el-radio label=\"right\" value=\"right\">居右</el-radio>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"文字颜色\">\n <el-color-picker v-model=\"item.css.color\" />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div :style=\"_style\">\n {{ item.content ? item.content : '自定义文本' }}\n </div>\n </template>\n </el-popover>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, reactive } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n fontSize: css.fontSize + 'px',\n color: css.color,\n textAlign: css.textAlign,\n }\n})\nconst item: any = reactive(props.item)\n\nif (!item.css.textAlign) {\n item.css.textAlign = 'left'\n}\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AAyDD,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACvB,MAAO,OAAA;AAAA,QACL,QAAA,EAAU,IAAI,QAAW,GAAA,IAAA;AAAA,QACzB,OAAO,GAAI,CAAA,KAAA;AAAA,QACX,WAAW,GAAI,CAAA,SAAA;AAAA,OACjB,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,IAAA,GAAY,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;AAErC,IAAI,IAAA,CAAC,IAAK,CAAA,GAAA,CAAI,SAAW,EAAA;AACvB,MAAA,IAAA,CAAK,IAAI,SAAY,GAAA,MAAA,CAAA;AAAA,KACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DkPosterViewText.vue2.mjs","sources":["../../../../../src/poster-input/src/component/views/DkPosterViewText.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkPosterViewText',\n});\n</script>\n<template>\n <div class=\"text\">\n <el-popover placement=\"right\" width=\"400\" trigger=\"contextmenu\">\n <el-form label-position=\"left\" label-width=\"100px\" style=\"padding: 20px 10px 0\">\n <el-form-item label=\"文字大小\">\n <el-slider v-model=\"item.css.fontSize\" show-input :min=\"12\" :max=\"50\" />\n </el-form-item>\n <el-form-item label=\"对齐方式\">\n <el-radio-group v-model=\"item.css.textAlign\">\n <el-radio label=\"left\" value=\"left\">左边</el-radio>\n <el-radio label=\"center\" value=\"center\">居中</el-radio>\n <el-radio label=\"right\" value=\"right\">居右</el-radio>\n </el-radio-group>\n </el-form-item>\n <el-form-item label=\"文字颜色\">\n <el-color-picker v-model=\"item.css.color\" />\n </el-form-item>\n <quick-action :index=\"index\"></quick-action>\n </el-form>\n <template #reference>\n <div :style=\"_style\">\n {{ item.content ? item.content : '自定义文本' }}\n </div>\n </template>\n </el-popover>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, reactive } from 'vue'\nimport QuickAction from './quick-action.vue'\n\n\n\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n index: {\n default: 0,\n type: Number,\n },\n})\n\nconst _style = computed(() => {\n const css = props.item.css\n return {\n fontSize: css.fontSize + 'px',\n color: css.color,\n textAlign: css.textAlign,\n }\n})\nconst item: any = reactive(props.item)\n\nif (!item.css.textAlign) {\n item.css.textAlign = 'left'\n}\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;;AAgDD,IAAM,MAAA,MAAA,GAAS,SAAS,MAAM;AAC5B,MAAM,MAAA,GAAA,GAAM,MAAM,IAAK,CAAA,GAAA,CAAA;AACvB,MAAO,OAAA;AAAA,QACL,QAAA,EAAU,IAAI,QAAW,GAAA,IAAA;AAAA,QACzB,OAAO,GAAI,CAAA,KAAA;AAAA,QACX,WAAW,GAAI,CAAA,SAAA;AAAA,OACjB,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,IAAA,GAAY,QAAS,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;AAErC,IAAI,IAAA,CAAC,IAAK,CAAA,GAAA,CAAI,SAAW,EAAA;AACvB,MAAA,IAAA,CAAK,IAAI,SAAY,GAAA,MAAA,CAAA;AAAA,KACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}