@vipl520/dk-ui 1.0.18 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. package/dist/attributes.json +16 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +1187 -632
  4. package/dist/index.min.js +7 -7
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +7 -7
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +1177 -626
  9. package/dist/tags.json +14 -0
  10. package/dist/web-types.json +69 -1
  11. package/es/animate-select/index.d.ts +19 -0
  12. package/es/animate-select/index.mjs +8 -0
  13. package/es/animate-select/index.mjs.map +1 -0
  14. package/es/animate-select/src/animate-select.vue.d.ts +18 -0
  15. package/es/animate-select/src/animate-select.vue.mjs +7 -0
  16. package/es/animate-select/src/animate-select.vue.mjs.map +1 -0
  17. package/es/animate-select/src/animate-select.vue2.mjs +168 -0
  18. package/es/animate-select/src/animate-select.vue2.mjs.map +1 -0
  19. package/es/animate-select/src/animates.d.ts +9 -0
  20. package/es/animate-select/src/animates.mjs +98 -0
  21. package/es/animate-select/src/animates.mjs.map +1 -0
  22. package/es/animate-select/src/props.d.ts +11 -0
  23. package/es/animate-select/src/props.mjs +11 -0
  24. package/es/animate-select/src/props.mjs.map +1 -0
  25. package/es/animate-select/style/index.css +1 -0
  26. package/es/animate-select/style/index.scss +41 -0
  27. package/es/audio-input/index.d.ts +4 -4
  28. package/es/audio-input/src/audio-input.vue.d.ts +4 -4
  29. package/es/audio-list-input/index.d.ts +3 -3
  30. package/es/audio-list-input/src/audio-list-input.vue.d.ts +3 -3
  31. package/es/box-size-input/index.d.ts +1 -1
  32. package/es/box-size-input/src/box-size-input.vue.d.ts +1 -1
  33. package/es/color-input/index.d.ts +3 -3
  34. package/es/color-input/src/color-input.vue.d.ts +3 -3
  35. package/es/dialog/index.d.ts +11 -11
  36. package/es/dialog/src/dialog.vue.d.ts +3 -3
  37. package/es/file-input/index.d.ts +4 -4
  38. package/es/file-input/src/file-input.vue.d.ts +4 -4
  39. package/es/file-list-input/index.d.ts +4 -4
  40. package/es/file-list-input/src/file-list-input.vue.d.ts +4 -4
  41. package/es/form/index.d.ts +10 -10
  42. package/es/form/src/form.vue.d.ts +2 -2
  43. package/es/group/index.d.ts +6 -6
  44. package/es/group/src/group.vue.d.ts +6 -6
  45. package/es/icon/index.d.ts +3 -3
  46. package/es/icon-input/index.d.ts +5 -5
  47. package/es/icon-input/src/icon-content.vue.d.ts +1 -1
  48. package/es/icon-input/src/icon-dialog.vue.d.ts +1 -1
  49. package/es/icon-input/src/icon-input.vue.d.ts +3 -3
  50. package/es/image-input/index.d.ts +4 -4
  51. package/es/image-input/src/image-input.vue.d.ts +4 -4
  52. package/es/image-list-input/index.d.ts +3 -3
  53. package/es/image-list-input/src/image-list-input.vue.d.ts +3 -3
  54. package/es/index.d.ts +2 -0
  55. package/es/index.mjs +9 -1
  56. package/es/index.mjs.map +1 -1
  57. package/es/index.scss +14 -0
  58. package/es/page-diy/index.d.ts +70 -4
  59. package/es/page-diy/src/components/DiyCloud.vue.mjs +1 -2
  60. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
  61. package/es/page-diy/src/components/DragTool.vue.d.ts +2 -1
  62. package/es/page-diy/src/components/DragTool.vue.mjs +12 -15
  63. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  64. package/es/page-diy/src/components/PreviewPhone.vue2.mjs +74 -2
  65. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  66. package/es/page-diy/src/config/base/dkSetting.d.ts +68 -2
  67. package/es/page-diy/src/config/base/dkSetting.mjs +83 -0
  68. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  69. package/es/page-diy/src/page-diy.vue.d.ts +70 -4
  70. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +1 -1
  71. package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +1 -1
  72. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.d.ts +2 -2
  73. package/es/page-diy/src/views/web/DkViewDialog.vue.d.ts +2 -2
  74. package/es/page-diy/src/views/web/DkViewGridCellList.vue.d.ts +1 -1
  75. package/es/page-diy/src/views/web/DkViewImage.vue.d.ts +2 -2
  76. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.d.ts +2 -2
  77. package/es/page-diy/src/views/web/DkViewSwipe.vue.d.ts +1 -1
  78. package/es/page-diy/src/views/web/DkViewTitle.vue.d.ts +2 -2
  79. package/es/page-diy/style/cloud.scss +100 -100
  80. package/es/page-diy/style/drag-tool.css +1 -1
  81. package/es/page-diy/style/drag-tool.scss +1 -1
  82. package/es/page-diy/style/index.css +1 -1
  83. package/es/poster-input/index.d.ts +6 -6
  84. package/es/poster-input/src/component/poster.vue.d.ts +3 -3
  85. package/es/poster-input/src/poster-input.vue.d.ts +3 -3
  86. package/es/select/src/select.vue.d.ts +3 -3
  87. package/es/style-animation-input/index.d.ts +25 -0
  88. package/es/style-animation-input/index.mjs +8 -0
  89. package/es/style-animation-input/index.mjs.map +1 -0
  90. package/es/style-animation-input/src/props.d.ts +15 -0
  91. package/es/style-animation-input/src/props.mjs +16 -0
  92. package/es/style-animation-input/src/props.mjs.map +1 -0
  93. package/es/style-animation-input/src/style-animation-input.vue.d.ts +24 -0
  94. package/es/style-animation-input/src/style-animation-input.vue.mjs +7 -0
  95. package/es/style-animation-input/src/style-animation-input.vue.mjs.map +1 -0
  96. package/es/style-animation-input/src/style-animation-input.vue2.mjs +116 -0
  97. package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -0
  98. package/es/style-animation-input/style/index.css +1 -0
  99. package/es/style-animation-input/style/index.scss +14 -0
  100. package/es/style-box-input/index.d.ts +1 -1
  101. package/es/style-box-input/src/style-box-input.vue.d.ts +1 -1
  102. package/es/style-input/index.d.ts +1 -1
  103. package/es/style-input/src/style-input.vue.d.ts +1 -1
  104. package/es/style-number-input/index.d.ts +1 -1
  105. package/es/style-number-input/src/style-number-input.vue.d.ts +1 -1
  106. package/es/style-shadow-input/index.d.ts +2 -2
  107. package/es/style-shadow-input/src/style-shadow-content.vue.d.ts +1 -1
  108. package/es/style-shadow-input/src/style-shadow-input.vue.d.ts +1 -1
  109. package/es/table/index.d.ts +2 -2
  110. package/es/tiny-editor/index.d.ts +4 -4
  111. package/es/tiny-editor/src/tiny-editor.vue.d.ts +4 -4
  112. package/es/video-input/index.d.ts +4 -4
  113. package/es/video-input/src/video-input.vue.d.ts +4 -4
  114. package/es/video-list-input/index.d.ts +3 -3
  115. package/es/video-list-input/src/video-list-input.vue.d.ts +3 -3
  116. package/lib/animate-select/index.d.ts +19 -0
  117. package/lib/animate-select/index.js +14 -0
  118. package/lib/animate-select/index.js.map +1 -0
  119. package/lib/animate-select/src/animate-select.vue.d.ts +18 -0
  120. package/lib/animate-select/src/animate-select.vue.js +11 -0
  121. package/lib/animate-select/src/animate-select.vue.js.map +1 -0
  122. package/lib/animate-select/src/animate-select.vue2.js +172 -0
  123. package/lib/animate-select/src/animate-select.vue2.js.map +1 -0
  124. package/lib/animate-select/src/animates.d.ts +9 -0
  125. package/lib/animate-select/src/animates.js +102 -0
  126. package/lib/animate-select/src/animates.js.map +1 -0
  127. package/lib/animate-select/src/props.d.ts +11 -0
  128. package/lib/animate-select/src/props.js +13 -0
  129. package/lib/animate-select/src/props.js.map +1 -0
  130. package/lib/animate-select/style/index.css +1 -0
  131. package/lib/animate-select/style/index.scss +41 -0
  132. package/lib/audio-input/index.d.ts +4 -4
  133. package/lib/audio-input/src/audio-input.vue.d.ts +4 -4
  134. package/lib/audio-list-input/index.d.ts +3 -3
  135. package/lib/audio-list-input/src/audio-list-input.vue.d.ts +3 -3
  136. package/lib/box-size-input/index.d.ts +1 -1
  137. package/lib/box-size-input/src/box-size-input.vue.d.ts +1 -1
  138. package/lib/color-input/index.d.ts +3 -3
  139. package/lib/color-input/src/color-input.vue.d.ts +3 -3
  140. package/lib/dialog/index.d.ts +11 -11
  141. package/lib/dialog/src/dialog.vue.d.ts +3 -3
  142. package/lib/file-input/index.d.ts +4 -4
  143. package/lib/file-input/src/file-input.vue.d.ts +4 -4
  144. package/lib/file-list-input/index.d.ts +4 -4
  145. package/lib/file-list-input/src/file-list-input.vue.d.ts +4 -4
  146. package/lib/form/index.d.ts +10 -10
  147. package/lib/form/src/form.vue.d.ts +2 -2
  148. package/lib/group/index.d.ts +6 -6
  149. package/lib/group/src/group.vue.d.ts +6 -6
  150. package/lib/icon/index.d.ts +3 -3
  151. package/lib/icon-input/index.d.ts +5 -5
  152. package/lib/icon-input/src/icon-content.vue.d.ts +1 -1
  153. package/lib/icon-input/src/icon-dialog.vue.d.ts +1 -1
  154. package/lib/icon-input/src/icon-input.vue.d.ts +3 -3
  155. package/lib/image-input/index.d.ts +4 -4
  156. package/lib/image-input/src/image-input.vue.d.ts +4 -4
  157. package/lib/image-list-input/index.d.ts +3 -3
  158. package/lib/image-list-input/src/image-list-input.vue.d.ts +3 -3
  159. package/lib/index.d.ts +2 -0
  160. package/lib/index.js +14 -2
  161. package/lib/index.js.map +1 -1
  162. package/lib/index.scss +14 -0
  163. package/lib/page-diy/index.d.ts +70 -4
  164. package/lib/page-diy/src/components/DiyCloud.vue.js +1 -2
  165. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
  166. package/lib/page-diy/src/components/DragTool.vue.d.ts +2 -1
  167. package/lib/page-diy/src/components/DragTool.vue.js +12 -15
  168. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  169. package/lib/page-diy/src/components/PreviewPhone.vue2.js +73 -1
  170. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  171. package/lib/page-diy/src/config/base/dkSetting.d.ts +68 -2
  172. package/lib/page-diy/src/config/base/dkSetting.js +83 -0
  173. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  174. package/lib/page-diy/src/page-diy.vue.d.ts +70 -4
  175. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +1 -1
  176. package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +1 -1
  177. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.d.ts +2 -2
  178. package/lib/page-diy/src/views/web/DkViewDialog.vue.d.ts +2 -2
  179. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.d.ts +1 -1
  180. package/lib/page-diy/src/views/web/DkViewImage.vue.d.ts +2 -2
  181. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.d.ts +2 -2
  182. package/lib/page-diy/src/views/web/DkViewSwipe.vue.d.ts +1 -1
  183. package/lib/page-diy/src/views/web/DkViewTitle.vue.d.ts +2 -2
  184. package/lib/page-diy/style/cloud.scss +100 -100
  185. package/lib/page-diy/style/drag-tool.css +1 -1
  186. package/lib/page-diy/style/drag-tool.scss +1 -1
  187. package/lib/page-diy/style/index.css +1 -1
  188. package/lib/poster-input/index.d.ts +6 -6
  189. package/lib/poster-input/src/component/poster.vue.d.ts +3 -3
  190. package/lib/poster-input/src/poster-input.vue.d.ts +3 -3
  191. package/lib/select/src/select.vue.d.ts +3 -3
  192. package/lib/style-animation-input/index.d.ts +25 -0
  193. package/lib/style-animation-input/index.js +14 -0
  194. package/lib/style-animation-input/index.js.map +1 -0
  195. package/lib/style-animation-input/src/props.d.ts +15 -0
  196. package/lib/style-animation-input/src/props.js +18 -0
  197. package/lib/style-animation-input/src/props.js.map +1 -0
  198. package/lib/style-animation-input/src/style-animation-input.vue.d.ts +24 -0
  199. package/lib/style-animation-input/src/style-animation-input.vue.js +11 -0
  200. package/lib/style-animation-input/src/style-animation-input.vue.js.map +1 -0
  201. package/lib/style-animation-input/src/style-animation-input.vue2.js +120 -0
  202. package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -0
  203. package/lib/style-animation-input/style/index.css +1 -0
  204. package/lib/style-animation-input/style/index.scss +14 -0
  205. package/lib/style-box-input/index.d.ts +1 -1
  206. package/lib/style-box-input/src/style-box-input.vue.d.ts +1 -1
  207. package/lib/style-input/index.d.ts +1 -1
  208. package/lib/style-input/src/style-input.vue.d.ts +1 -1
  209. package/lib/style-number-input/index.d.ts +1 -1
  210. package/lib/style-number-input/src/style-number-input.vue.d.ts +1 -1
  211. package/lib/style-shadow-input/index.d.ts +2 -2
  212. package/lib/style-shadow-input/src/style-shadow-content.vue.d.ts +1 -1
  213. package/lib/style-shadow-input/src/style-shadow-input.vue.d.ts +1 -1
  214. package/lib/table/index.d.ts +2 -2
  215. package/lib/tiny-editor/index.d.ts +4 -4
  216. package/lib/tiny-editor/src/tiny-editor.vue.d.ts +4 -4
  217. package/lib/video-input/index.d.ts +4 -4
  218. package/lib/video-input/src/video-input.vue.d.ts +4 -4
  219. package/lib/video-list-input/index.d.ts +3 -3
  220. package/lib/video-list-input/src/video-list-input.vue.d.ts +3 -3
  221. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewPhone.vue2.mjs","sources":["../../../../src/page-diy/src/components/PreviewPhone.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'PreviewPhone',\n});\n</script>\n<template>\n <div class=\"preview-phone\">\n <div class=\"phone\">\n <div class=\"phone-header\">\n <div class=\"phone-header-top\">\n <div class=\"phone-time\">\n <span>{{ time }}</span>\n <van-icon name=\"wechat\" color=\"#2ddd71\" />\n </div>\n <div />\n <div class=\"phone-battery\">\n <span class=\"m-r-4px\">100%</span>\n <dk-icon icon=\"gg:battery-full\" :size=\"18\" color=\"#555\" hover-color=\"#f00\"></dk-icon>\n </div>\n </div>\n <div class=\"phone-title\">\n <div class=\"phone-title-icon\">\n <el-dropdown trigger=\"click\" placement=\"bottom-start\">\n <dk-icon icon=\"Close\" hover-color=\"var(--el-color-primary)\" :size=\"20\" style=\"cursor: pointer\"></dk-icon>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item @click=\"clear('rule')\">清除组件</el-dropdown-item>\n <el-dropdown-item @click=\"clear('page')\">清除页面</el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n </div>\n <div>页面标题</div>\n <div class=\"phone-title-icon\">\n <el-popover placement=\"bottom\" :width=\"200\" trigger=\"click\">\n <template #reference>\n <dk-icon icon=\"MoreFilled\" :size=\"20\" hover-color=\"var(--el-color-primary)\" style=\"cursor: pointer\" />\n </template>\n <el-form-item label=\"显示网格\">\n <el-switch v-model=\"form.showLine\" @change=\"changeForm()\" />\n </el-form-item>\n <el-form-item label=\"网格间距\">\n <el-slider v-model=\"form.margin\" :min=\"0\" :step=\"1\" show-stops :max=\"20\" @change=\"changeForm()\" />\n </el-form-item>\n <el-form-item label=\"效果预览\">\n <el-switch v-model=\"form.preview\" @change=\"changeForm()\" />\n </el-form-item>\n </el-popover>\n </div>\n </div>\n </div>\n <div class=\"phone-body _fc-m-drag\" :style=\"_style\">\n <slot />\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, inject } from 'vue'\nimport { storage } from '@vipl520/utils'\nimport { ElMessage, ElMessageBox } from 'element-plus'\n\nconst diy: any = inject('diy')\nconst props = defineProps({\n value: {\n default: '',\n type: String,\n },\n pageConfig: {\n default: () => {},\n type: [Object],\n },\n})\n\nconst key = 'preview-phone'\nconst cache: any = JSON.parse(storage.get(key) || '{}')\n\nconst form = ref({\n showLine: cache.showLine || false,\n margin: cache.margin || 0,\n preview: cache.preview || false,\n})\n\nconst changeForm = () => {\n storage.set(key, JSON.stringify(form.value))\n}\nconst clear = (type = '') => {\n const { proxy } = diy\n const typeName: any = {\n rule: '组件',\n config: '配置',\n }\n ElMessageBox.confirm('当前要清除' + typeName[type] + ',是否继续?', '警告', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n proxy.clear(type)\n ElMessage.success('清除成功')\n })\n .catch(() => {})\n}\nconst _style = computed(() => {\n let line: any = {\n '--padding': '0',\n '--overflow': 'initial',\n }\n if (form.value.showLine && !form.value.preview) {\n line = {\n '--margin': form.value.margin + 'px',\n '--showDashed': '1px',\n }\n }\n if (form.value.preview) {\n line['--padding'] = '0'\n line['--overflow'] = 'hidden'\n } else {\n line['--padding'] = '2px 0'\n line['--overflow'] = 'initial'\n }\n return {\n ...props.pageConfig.style,\n ...line,\n }\n})\n\nconst time = computed(() => {\n const d = new Date()\n const hour = d.getHours() // 得到小时数\n const minute = d.getMinutes() // 得到分钟数\n return hour + ':' + minute\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;AA4DD,IAAM,MAAA,GAAA,GAAW,OAAO,KAAK,CAAA,CAAA;AAY7B,IAAA,MAAM,GAAM,GAAA,eAAA,CAAA;AACZ,IAAA,MAAM,QAAa,IAAK,CAAA,KAAA,CAAM,QAAQ,GAAI,CAAA,GAAG,KAAK,IAAI,CAAA,CAAA;AAEtD,IAAA,MAAM,OAAO,GAAI,CAAA;AAAA,MACf,QAAA,EAAU,MAAM,QAAY,IAAA,KAAA;AAAA,MAC5B,MAAA,EAAQ,MAAM,MAAU,IAAA,CAAA;AAAA,MACxB,OAAA,EAAS,MAAM,OAAW,IAAA,KAAA;AAAA,KAC3B,CAAA,CAAA;AAED,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,OAAA,CAAQ,IAAI,GAAK,EAAA,IAAA,CAAK,SAAU,CAAA,IAAA,CAAK,KAAK,CAAC,CAAA,CAAA;AAAA,KAC7C,CAAA;AACA,IAAM,MAAA,KAAA,GAAQ,CAAC,IAAA,GAAO,EAAO,KAAA;AAC3B,MAAM,MAAA,EAAE,OAAU,GAAA,GAAA,CAAA;AAClB,MAAA,MAAM,QAAgB,GAAA;AAAA,QACpB,IAAM,EAAA,cAAA;AAAA,QACN,MAAQ,EAAA,cAAA;AAAA,OACV,CAAA;AACA,MAAA,Y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;AAC1B,MAAM,MAAA,CAAA,uBAAQ,IAAK,EAAA,CAAA;AACnB,MAAM,MAAA,IAAA,GAAO,EAAE,QAAS,EAAA,CAAA;AACxB,MAAM,MAAA,MAAA,GAAS,EAAE,UAAW,EAAA,CAAA;AAC5B,MAAA,OAAO,OAAO,GAAM,GAAA,MAAA,CAAA;AAAA,KACrB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"PreviewPhone.vue2.mjs","sources":["../../../../src/page-diy/src/components/PreviewPhone.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'PreviewPhone',\n});\n</script>\n<template>\n <div class=\"preview-phone\">\n <div class=\"phone\">\n <div class=\"phone-header\">\n <div class=\"phone-header-top\">\n <div class=\"phone-time\">\n <span>{{ time }}</span>\n <van-icon name=\"wechat\" color=\"#2ddd71\" />\n </div>\n <div />\n <div class=\"phone-battery\">\n <span class=\"m-r-4px\">100%</span>\n <dk-icon icon=\"gg:battery-full\" :size=\"18\" color=\"#555\" hover-color=\"#f00\"></dk-icon>\n </div>\n </div>\n <div class=\"phone-title\">\n <div class=\"phone-title-icon\">\n <el-dropdown trigger=\"click\" placement=\"bottom-start\">\n <dk-icon icon=\"Close\" hover-color=\"var(--el-color-primary)\" :size=\"20\" style=\"cursor: pointer\"></dk-icon>\n <template #dropdown>\n <el-dropdown-menu>\n <el-dropdown-item @click=\"clear('rule')\">清除组件</el-dropdown-item>\n <el-dropdown-item @click=\"clear('page')\">清除页面</el-dropdown-item>\n </el-dropdown-menu>\n </template>\n </el-dropdown>\n </div>\n <div>页面标题</div>\n <div class=\"phone-title-icon\">\n <el-popover placement=\"bottom\" :width=\"200\" trigger=\"click\">\n <template #reference>\n <dk-icon icon=\"MoreFilled\" :size=\"20\" hover-color=\"var(--el-color-primary)\" style=\"cursor: pointer\" />\n </template>\n <el-form-item label=\"显示网格\">\n <template #label>\n <el-tooltip class=\"box-item\" effect=\"dark\" content=\"显示组件网格线\" placement=\"right-start\">\n 显示网格\n </el-tooltip>\n </template>\n <el-switch v-model=\"form.showLine\" @change=\"changeForm()\" />\n </el-form-item>\n <el-form-item label=\"网格间距\">\n <template #label>\n <el-tooltip class=\"box-item\" effect=\"dark\" content=\"设置组件之间的网格间距\" placement=\"right-start\">\n 网格间距\n </el-tooltip>\n </template>\n <el-slider v-model=\"form.margin\" :min=\"0\" :step=\"1\" show-stops :max=\"20\" @change=\"changeForm()\" />\n </el-form-item>\n <el-form-item label=\"效果预览\">\n <template #label>\n <el-tooltip\n class=\"box-item\"\n effect=\"dark\"\n content=\"清除所有网格、间距效果,大致和真实差不多\"\n placement=\"right-start\"\n >\n 效果预览\n </el-tooltip>\n </template>\n <el-switch v-model=\"form.preview\" @change=\"changeForm()\" />\n </el-form-item>\n <el-form-item label=\"关闭动画\">\n <template #label>\n <el-tooltip class=\"box-item\" effect=\"dark\" content=\"关闭所有预览的动画效果\" placement=\"right-start\">\n 关闭动画\n </el-tooltip>\n </template>\n <el-switch v-model=\"form.closeAnimate\" @change=\"changeForm()\" />\n </el-form-item>\n </el-popover>\n </div>\n </div>\n </div>\n <div class=\"phone-body _fc-m-drag\" :style=\"_style\">\n <slot />\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, inject, provide } from 'vue'\nimport { storage } from '@vipl520/utils'\nimport { ElMessage, ElMessageBox } from 'element-plus'\n\nconst diy: any = inject('diy')\nconst props = defineProps({\n value: {\n default: '',\n type: String,\n },\n pageConfig: {\n default: () => {},\n type: [Object],\n },\n})\n\nconst key = 'preview-phone'\nconst cache: any = JSON.parse(storage.get(key) || '{}')\n\nconst form = ref({\n showLine: cache.showLine || false,\n margin: cache.margin || 0,\n preview: cache.preview || false,\n closeAnimate: cache.closeAnimate || false,\n})\n\nprovide('previewSetting', form)\n\nconst changeForm = () => {\n storage.set(key, JSON.stringify(form.value))\n}\nconst clear = (type = '') => {\n const { proxy } = diy\n const typeName: any = {\n rule: '组件',\n config: '配置',\n }\n ElMessageBox.confirm('当前要清除' + typeName[type] + ',是否继续?', '警告', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning',\n })\n .then(() => {\n proxy.clear(type)\n ElMessage.success('清除成功')\n })\n .catch(() => {})\n}\nconst _style = computed(() => {\n let line: any = {\n '--padding': '0',\n '--overflow': 'initial',\n }\n if (form.value.showLine && !form.value.preview) {\n line = {\n '--margin': form.value.margin + 'px',\n '--showDashed': '1px',\n }\n }\n if (form.value.preview) {\n line['--padding'] = '0'\n line['--overflow'] = 'hidden'\n line['--minHeight'] = '0px'\n } else {\n line['--padding'] = '2px 0'\n line['--overflow'] = 'initial'\n line['--minHeight'] = '30px'\n }\n return {\n ...props.pageConfig.style,\n ...line,\n }\n})\n\nconst time = computed(() => {\n const d = new Date()\n const hour = d.getHours() // 得到小时数\n const minute = d.getMinutes() // 得到分钟数\n return hour + ':' + minute\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;;;;;AAwFD,IAAM,MAAA,GAAA,GAAW,OAAO,KAAK,CAAA,CAAA;AAY7B,IAAA,MAAM,GAAM,GAAA,eAAA,CAAA;AACZ,IAAA,MAAM,QAAa,IAAK,CAAA,KAAA,CAAM,QAAQ,GAAI,CAAA,GAAG,KAAK,IAAI,CAAA,CAAA;AAEtD,IAAA,MAAM,OAAO,GAAI,CAAA;AAAA,MACf,QAAA,EAAU,M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;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- export default function dkSetting(rule?: null): {
1
+ export default function dkSetting(rule?: null): ({
2
2
  type: string;
3
3
  props: {
4
4
  modelValue: string;
@@ -32,4 +32,70 @@ export default function dkSetting(rule?: null): {
32
32
  };
33
33
  })[];
34
34
  }[];
35
- }[];
35
+ } | {
36
+ type: string;
37
+ props: {
38
+ modelValue: string;
39
+ };
40
+ style: string;
41
+ children: {
42
+ type: string;
43
+ props: {
44
+ name: string;
45
+ };
46
+ children: ({
47
+ type: string;
48
+ slot: string;
49
+ style: string;
50
+ children: ({
51
+ type: string;
52
+ style: string;
53
+ children?: undefined;
54
+ } | {
55
+ type: string;
56
+ children: any[];
57
+ style?: undefined;
58
+ })[];
59
+ } | {
60
+ type: string;
61
+ field: string;
62
+ value: string;
63
+ title: string;
64
+ control: ({
65
+ handle: (val: any) => boolean;
66
+ rule: {
67
+ type: string;
68
+ field: string;
69
+ title: string;
70
+ value: {
71
+ animationDelay: string;
72
+ animationDuration: string;
73
+ animationIterationCount: string;
74
+ };
75
+ }[];
76
+ } | {
77
+ handle: (val: any) => boolean;
78
+ rule: {
79
+ type: string;
80
+ field: string;
81
+ title: string;
82
+ value: {
83
+ animationDelay: string;
84
+ animationDuration: string;
85
+ animationIterationCount: number;
86
+ };
87
+ }[];
88
+ })[];
89
+ effect?: undefined;
90
+ } | {
91
+ type: string;
92
+ field: string;
93
+ title: string;
94
+ value: boolean;
95
+ effect: {
96
+ help: string;
97
+ };
98
+ control?: undefined;
99
+ })[];
100
+ }[];
101
+ })[];
@@ -1,3 +1,5 @@
1
+ import Animates from '../../../../animate-select/src/animates.mjs';
2
+
1
3
  function createTitle(title) {
2
4
  return {
3
5
  type: "h2",
@@ -12,6 +14,15 @@ function createTitle(title) {
12
14
  ]
13
15
  };
14
16
  }
17
+ function inLoop(val) {
18
+ const animate = Animates[0].animate;
19
+ for (let i = 0; i < animate.length; i++) {
20
+ if (animate[i].value === val) {
21
+ return true;
22
+ }
23
+ }
24
+ return false;
25
+ }
15
26
  function dkSetting(rule = null) {
16
27
  const form = [
17
28
  {
@@ -37,6 +48,78 @@ function dkSetting(rule = null) {
37
48
  ]
38
49
  }
39
50
  ]
51
+ },
52
+ {
53
+ type: "el-collapse",
54
+ props: {
55
+ modelValue: "base"
56
+ },
57
+ style: "width:100%",
58
+ children: [
59
+ // 基础配置
60
+ {
61
+ type: "el-collapse-item",
62
+ props: { name: "base" },
63
+ children: [
64
+ createTitle("\u52A8\u753B\u914D\u7F6E"),
65
+ {
66
+ type: "DkAnimateSelect",
67
+ field: "animate",
68
+ value: "",
69
+ title: "\u9009\u62E9\u52A8\u753B",
70
+ control: [
71
+ {
72
+ handle: function(val) {
73
+ if (!val)
74
+ return false;
75
+ return inLoop(val);
76
+ },
77
+ rule: [
78
+ {
79
+ type: "dk-style-animation-input",
80
+ field: "animation",
81
+ title: "",
82
+ value: {
83
+ animationDelay: "0s",
84
+ animationDuration: "1s",
85
+ animationIterationCount: "infinite"
86
+ }
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ handle: function(val) {
92
+ if (!val)
93
+ return false;
94
+ return !inLoop(val);
95
+ },
96
+ rule: [
97
+ {
98
+ type: "dk-style-animation-input",
99
+ field: "animation",
100
+ title: "",
101
+ value: {
102
+ animationDelay: "0s",
103
+ animationDuration: "1s",
104
+ animationIterationCount: 1
105
+ }
106
+ }
107
+ ]
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ type: "switch",
113
+ field: "animation_preview",
114
+ title: "\u5B9E\u65F6\u9884\u89C8",
115
+ value: true,
116
+ effect: {
117
+ help: "\u8BBE\u7F6E\u5F53\u524D\u7EC4\u4EF6\u5FAA\u73AF\u52A8\u753B\u5B9E\u65F6\u9884\u89C8\uFF0C\u5F53\u524D\u4EC5\u4E3A\u8C03\u8BD5\u9879"
118
+ }
119
+ }
120
+ ]
121
+ }
122
+ ]
40
123
  }
41
124
  ];
42
125
  if (rule) {
@@ -1 +1 @@
1
- {"version":3,"file":"dkSetting.mjs","sources":["../../../../../src/page-diy/src/config/base/dkSetting.js"],"sourcesContent":["function createTitle(title) {\n return {\n type: 'h2',\n slot: 'title',\n style: 'display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0',\n children: [\n {\n type: 'em',\n style: 'width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;',\n },\n { type: 'span', children: [title] },\n ],\n }\n}\nexport default function dkSetting(rule = null) {\n const form = [\n {\n type: 'el-collapse',\n props: {\n modelValue: 'base',\n },\n style: 'width:100%',\n children: [\n // 基础配置\n {\n type: 'el-collapse-item',\n props: { name: 'base' },\n\n children: [\n createTitle('基础配置'),\n {\n type: 'DkStyleInput',\n field: 'style',\n value: {},\n title: '',\n props: { height: 180 },\n },\n ],\n },\n ],\n },\n ]\n // 判断是否允许开启悬浮\n if (rule) {\n if (rule.config.config.rule().fixed) {\n const fixedChildren = [\n createTitle('悬浮配置'),\n {\n type: 'switch',\n field: 'is_position',\n value: false,\n title: '开启悬浮',\n effect: {\n help: '设置组件是否开启悬浮',\n },\n control: [\n {\n value: true,\n rule: [\n {\n type: 'DkStylePositionInput',\n field: 'position',\n value: {},\n title: '',\n },\n ],\n },\n ],\n },\n ]\n const collapseFixed = {\n type: 'el-collapse-item',\n props: { name: 'fixed' },\n children: fixedChildren,\n }\n form[0].children.push(collapseFixed)\n }\n }\n return form\n}\n"],"names":[],"mappings":"AAAA,SAAS,YAAY,KAAO,EAAA;AAC1B,EAAO,OAAA;AAAA,IACL,IAAM,EAAA,IAAA;AAAA,IACN,IAAM,EAAA,OAAA;AAAA,IACN,KAAO,EAAA,uFAAA;AAAA,IACP,QAAU,EAAA;AAAA,MACR;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,KAAO,EAAA,6FAAA;AAAA,OACT;AAAA,MACA,EAAE,IAAM,EAAA,MAAA,EAAQ,QAAU,EAAA,CAAC,KAAK,CAAE,EAAA;AAAA,KACpC;AAAA,GACF,CAAA;A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AA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF,CAAA;AACA,MAAA,MAAM,aAAgB,GAAA;AAAA,QACpB,IAAM,EAAA,kBAAA;AAAA,QACN,KAAA,EAAO,EAAE,IAAA,EAAM,OAAQ,EAAA;AAAA,QACvB,QAAU,EAAA,aAAA;AAAA,OACZ,CAAA;AACA,MAAA,IAAA,CAAK,CAAC,CAAA,CAAE,QAAS,CAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACrC;AAAA,GACF;AACA,EAAO,OAAA,IAAA,CAAA;AACT;;;;"}
1
+ {"version":3,"file":"dkSetting.mjs","sources":["../../../../../src/page-diy/src/config/base/dkSetting.js"],"sourcesContent":["import Animates from '../../../../animate-select/src/animates'\n\nfunction createTitle(title) {\n return {\n type: 'h2',\n slot: 'title',\n style: 'display: flex;align-items: center;font-size: 14px;font-weight: 600;margin:0;padding:0',\n children: [\n {\n type: 'em',\n style: 'width: 6px; height: 18px; background: rgb(64, 158, 255); display: block; margin-right: 5px;',\n },\n { type: 'span', children: [title] },\n ],\n }\n}\n\nfunction inLoop(val) {\n const animate = Animates[0].animate\n for (let i = 0; i < animate.length; i++) {\n if (animate[i].value === val) {\n return true\n }\n }\n return false\n}\n\nexport default function dkSetting(rule = null) {\n const form = [\n {\n type: 'el-collapse',\n props: {\n modelValue: 'base',\n },\n style: 'width:100%',\n children: [\n // 基础配置\n {\n type: 'el-collapse-item',\n props: { name: 'base' },\n\n children: [\n createTitle('基础配置'),\n {\n type: 'DkStyleInput',\n field: 'style',\n value: {},\n title: '',\n props: { height: 180 },\n },\n ],\n },\n ],\n },\n {\n type: 'el-collapse',\n props: {\n modelValue: 'base',\n },\n style: 'width:100%',\n children: [\n // 基础配置\n {\n type: 'el-collapse-item',\n props: { name: 'base' },\n\n children: [\n createTitle('动画配置'),\n {\n type: 'DkAnimateSelect',\n field: 'animate',\n value: '',\n title: '选择动画',\n control: [\n {\n handle: function (val) {\n if (!val) return false\n return inLoop(val)\n },\n rule: [\n {\n type: 'dk-style-animation-input',\n field: 'animation',\n title: '',\n value: {\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n },\n },\n ],\n },\n {\n handle: function (val) {\n if (!val) return false\n return !inLoop(val)\n },\n rule: [\n {\n type: 'dk-style-animation-input',\n field: 'animation',\n title: '',\n value: {\n animationDelay: '0s',\n animationDuration: '1s',\n animationIterationCount: 1,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'switch',\n field: 'animation_preview',\n title: '实时预览',\n value: true,\n effect: {\n help: '设置当前组件循环动画实时预览,当前仅为调试项',\n },\n },\n ],\n },\n ],\n },\n ]\n // 判断是否允许开启悬浮\n if (rule) {\n if (rule.config.config.rule().fixed) {\n const fixedChildren = [\n createTitle('悬浮配置'),\n {\n type: 'switch',\n field: 'is_position',\n value: false,\n title: '开启悬浮',\n effect: {\n help: '设置组件是否开启悬浮',\n },\n control: [\n {\n value: true,\n rule: [\n {\n type: 'DkStylePositionInput',\n field: 'position',\n value: {},\n title: '',\n },\n ],\n },\n ],\n },\n ]\n const collapseFixed = {\n type: 'el-collapse-item',\n props: { name: 'fixed' },\n children: fixedChildren,\n }\n form[0].children.push(collapseFixed)\n }\n }\n return form\n}\n"],"names":[],"mappings":";;AAEA,SAAS,YAAY,KAAO,EAAA;AAC1B,EAAO,OAAA;AAAA,IACL,IAAM,EAAA,IAAA;AAAA,IACN,IAAM,EAAA,OAAA;AAAA,IACN,KAAO,EAAA,uFAAA;AAAA,IACP,QAAU,EAAA;AAAA,MACR;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,KAAO,EAAA,6FAAA;AAAA,OACT;AAAA,MACA,EAAE,IAAM,EAAA,MAAA,EAAQ,QAAU,EAAA,CAAC,KAAK,CAAE,EAAA;AAAA,KACpC;AAAA,GACF,CAAA;AACF,CAAA;AAEA,SAAS,OAAO,GAAK,EAAA;AACnB,EAAM,MAAA,OAAA,GAAU,QAAS,CAAA,CAAC,CAAE,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IAAA;AAAA,cACP,MAAQ,EAAA;AAAA,gBACN,IAAM,EAAA,sIAAA;AAAA,eACR;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,GACF,CAAA;AAEA,EAAA,IAAI,IAAM,EAAA;AACR,IAAA,IAAI,IAAK,CAAA,MAAA,CAAO,MAAO,CAAA,IAAA,GAAO,KAAO,EAAA;AACnC,MAAA,MAAM,aAAgB,GAAA;AAAA,QACpB,YAAY,0BAAM,CAAA;AAAA,QAClB;AAAA,UACE,IAAM,EAAA,QAAA;AAAA,UACN,KAAO,EAAA,aAAA;AAAA,UACP,KAAO,EAAA,KAAA;AAAA,UACP,KAAO,EAAA,0BAAA;AAAA,UACP,MAAQ,EAAA;AAAA,YACN,IAAM,EAAA,8DAAA;AAAA,WACR;AAAA,UACA,OAAS,EAAA;AAAA,YACP;AAAA,cACE,KAAO,EAAA,IAAA;AAAA,cACP,IAAM,EAAA;AAAA,gBACJ;AAAA,kBACE,IAAM,EAAA,sBAAA;AAAA,kBACN,KAAO,EAAA,UAAA;AAAA,kBACP,OAAO,EAAC;AAAA,kBACR,KAAO,EAAA,EAAA;AAAA,iBACT;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF,CAAA;AACA,MAAA,MAAM,aAAgB,GAAA;AAAA,QACpB,IAAM,EAAA,kBAAA;AAAA,QACN,KAAA,EAAO,EAAE,IAAA,EAAM,OAAQ,EAAA;AAAA,QACvB,QAAU,EAAA,aAAA;AAAA,OACZ,CAAA;AACA,MAAA,IAAA,CAAK,CAAC,CAAA,CAAE,QAAS,CAAA,IAAA,CAAK,aAAa,CAAA,CAAA;AAAA,KACrC;AAAA,GACF;AACA,EAAO,OAAA,IAAA,CAAA;AACT;;;;"}
@@ -148,7 +148,7 @@ declare const _default: import("vue").DefineComponent<{
148
148
  };
149
149
  }>;
150
150
  dkSettingForm: import("vue").Ref<{
151
- rule: {
151
+ rule: ({
152
152
  type: string;
153
153
  props: {
154
154
  modelValue: string;
@@ -182,7 +182,73 @@ declare const _default: import("vue").DefineComponent<{
182
182
  };
183
183
  })[];
184
184
  }[];
185
- }[];
185
+ } | {
186
+ type: string;
187
+ props: {
188
+ modelValue: string;
189
+ };
190
+ style: string;
191
+ children: {
192
+ type: string;
193
+ props: {
194
+ name: string;
195
+ };
196
+ children: ({
197
+ type: string;
198
+ slot: string;
199
+ style: string;
200
+ children: ({
201
+ type: string;
202
+ style: string;
203
+ children?: undefined;
204
+ } | {
205
+ type: string;
206
+ children: any[];
207
+ style?: undefined;
208
+ })[];
209
+ } | {
210
+ type: string;
211
+ field: string;
212
+ value: string;
213
+ title: string;
214
+ control: ({
215
+ handle: (val: any) => boolean;
216
+ rule: {
217
+ type: string;
218
+ field: string;
219
+ title: string;
220
+ value: {
221
+ animationDelay: string;
222
+ animationDuration: string;
223
+ animationIterationCount: string;
224
+ };
225
+ }[];
226
+ } | {
227
+ handle: (val: any) => boolean;
228
+ rule: {
229
+ type: string;
230
+ field: string;
231
+ title: string;
232
+ value: {
233
+ animationDelay: string;
234
+ animationDuration: string;
235
+ animationIterationCount: number;
236
+ };
237
+ }[];
238
+ })[];
239
+ effect?: undefined;
240
+ } | {
241
+ type: string;
242
+ field: string;
243
+ title: string;
244
+ value: boolean;
245
+ effect: {
246
+ help: string;
247
+ };
248
+ control?: undefined;
249
+ })[];
250
+ }[];
251
+ })[];
186
252
  api: {};
187
253
  options: {
188
254
  form: {
@@ -290,10 +356,10 @@ declare const _default: import("vue").DefineComponent<{
290
356
  };
291
357
  }>>, {
292
358
  type: string;
293
- config: Record<string, any>;
294
- loading: boolean;
295
359
  menu: Record<string, any>;
296
360
  mask: string;
361
+ config: Record<string, any>;
362
+ loading: boolean;
297
363
  height: string;
298
364
  rightAsideWidth: string;
299
365
  leftAsideWidth: string;
@@ -57,8 +57,8 @@ declare const _default: import("vue").DefineComponent<{
57
57
  type: BooleanConstructor;
58
58
  };
59
59
  }>>, {
60
- height: string | number;
61
60
  value: string;
61
+ height: string | number;
62
62
  bgColor: string;
63
63
  autoplay: string | number;
64
64
  swipeList: unknown[];
@@ -81,10 +81,10 @@ declare const _default: import("vue").DefineComponent<{
81
81
  type: StringConstructor;
82
82
  };
83
83
  }>>, {
84
- url: string;
85
84
  type: string;
86
85
  title: string;
87
86
  color: string;
87
+ url: string;
88
88
  align: string;
89
89
  subtitle: string;
90
90
  subColor: string;
@@ -194,12 +194,12 @@ declare const _default: import("vue").DefineComponent<{
194
194
  type: StringConstructor;
195
195
  };
196
196
  }>>, {
197
- icon: string;
198
197
  type: string;
199
198
  img: string;
200
199
  color: string;
201
- fontSize: string | number;
200
+ icon: string;
202
201
  size: string;
202
+ fontSize: string | number;
203
203
  imgSize: string | number;
204
204
  round: boolean;
205
205
  posterData: Record<string, any>;
@@ -69,10 +69,10 @@ declare const _default: import("vue").DefineComponent<{
69
69
  type: StringConstructor;
70
70
  };
71
71
  }>>, {
72
- copy: string | number;
73
72
  title: string;
74
- content: string;
75
73
  show: boolean;
74
+ copy: string | number;
75
+ content: string;
76
76
  confirmText: string;
77
77
  copyType: string;
78
78
  copyText: string;
@@ -116,9 +116,9 @@ declare const _default: import("vue").DefineComponent<{
116
116
  };
117
117
  }>>, {
118
118
  type: string;
119
+ value: string;
119
120
  direction: string;
120
121
  fontSize: number;
121
- value: string;
122
122
  border: boolean;
123
123
  cellImgSize: number;
124
124
  imgTextGutter: number;
@@ -105,9 +105,9 @@ declare const _default: import("vue").DefineComponent<{
105
105
  };
106
106
  }>>, {
107
107
  type: string;
108
- height: string | number;
109
- width: string | number;
110
108
  value: string;
109
+ width: string | number;
110
+ height: string | number;
111
111
  fit: string;
112
112
  borderRadius: string | number;
113
113
  marginBottom: string | number;
@@ -49,10 +49,10 @@ declare const _default: import("vue").DefineComponent<{
49
49
  type: NumberConstructor;
50
50
  };
51
51
  }>>, {
52
- url: string;
53
- background: string;
54
52
  text: string;
55
53
  color: string;
54
+ url: string;
55
+ background: string;
56
56
  speed: number;
57
57
  leftIcon: string;
58
58
  }, {}>;
@@ -49,8 +49,8 @@ declare const _default: import("vue").DefineComponent<{
49
49
  type: StringConstructor;
50
50
  };
51
51
  }>>, {
52
- height: string | number;
53
52
  value: string;
53
+ height: string | number;
54
54
  fit: string;
55
55
  bgColor: string;
56
56
  autoplay: string | number;
@@ -145,11 +145,11 @@ declare const _default: import("vue").DefineComponent<{
145
145
  type: BooleanConstructor;
146
146
  };
147
147
  }>>, {
148
- icon: string;
149
148
  title: string;
149
+ prefix: string;
150
150
  color: string;
151
+ icon: string;
151
152
  size: number;
152
- prefix: string;
153
153
  iconSize: number;
154
154
  bold: boolean;
155
155
  prefixColor: string;
@@ -1,100 +1,100 @@
1
- /* stylelint-disable */
2
- .diy-cloud {
3
- .diy-header {
4
- display: flex;
5
- justify-content: space-between;
6
- .diy-search {
7
- width: 500px;
8
- display: flex;
9
- align-items: center;
10
- }
11
- }
12
-
13
- .diy-content {
14
- padding: 20px 0;
15
- ul {
16
- height: 520px;
17
- li {
18
- float: left;
19
- width: calc(16.6% - 10px);
20
- text-align: center;
21
- margin: 5px;
22
- position: relative;
23
- transition: all 0.3s ease 0s;
24
- cursor: pointer;
25
- border-radius: 10px;
26
- overflow: hidden;
27
- border: 1px solid #ccc;
28
- .cover {
29
- width: 180px;
30
- height: 240px;
31
- transition: all 0.3s ease 0s;
32
- }
33
-
34
- .title {
35
- position: absolute;
36
- bottom: 0;
37
- padding: 4px 10px;
38
- background: #fff;
39
- color: #000;
40
- text-align: center;
41
- width: 100%;
42
- }
43
-
44
- .type {
45
- position: absolute;
46
- bottom: 40px;
47
- padding: 4px 10px;
48
- color: #000;
49
- text-align: center;
50
- width: 100%;
51
- }
52
-
53
- .tag-list {
54
- position: absolute;
55
- bottom: 30px;
56
- padding: 4px 10px;
57
- color: #000;
58
- text-align: right;
59
- width: 100%;
60
-
61
- .tag {
62
- font-size: 12px;
63
- margin-top: 17px;
64
- text-align: right;
65
- padding: 2px 6px;
66
- top: 180px;
67
- right: 6px;
68
- background-color: rgba(0, 0, 0, 0.6);
69
- color: #fff;
70
- border-radius: 4px;
71
- margin-left: 5px;
72
- }
73
- }
74
-
75
- .mask {
76
- position: absolute;
77
- height: 240px;
78
- width: 180px;
79
- top: 0;
80
- background: #0000004d;
81
- }
82
- &:hover {
83
- box-shadow: 0 4px 12px 0 rgb(0 13 71 / 20%);
84
- &::before {
85
- }
86
- }
87
- &.choose {
88
- transition: all 0.1s ease 0s;
89
- border: 1px solid #1989fa;
90
- }
91
- }
92
- }
93
- }
94
-
95
- .diy-footer {
96
- text-align: center;
97
- padding: 10px;
98
- }
99
- }
100
- /* stylelint-enable */
1
+ /* stylelint-disable */
2
+ .diy-cloud {
3
+ .diy-header {
4
+ display: flex;
5
+ justify-content: space-between;
6
+ .diy-search {
7
+ width: 500px;
8
+ display: flex;
9
+ align-items: center;
10
+ }
11
+ }
12
+
13
+ .diy-content {
14
+ padding: 20px 0;
15
+ ul {
16
+ height: 520px;
17
+ li {
18
+ float: left;
19
+ width: calc(16.6% - 10px);
20
+ text-align: center;
21
+ margin: 5px;
22
+ position: relative;
23
+ transition: all 0.3s ease 0s;
24
+ cursor: pointer;
25
+ border-radius: 10px;
26
+ overflow: hidden;
27
+ border: 1px solid #ccc;
28
+ .cover {
29
+ width: 180px;
30
+ height: 240px;
31
+ transition: all 0.3s ease 0s;
32
+ }
33
+
34
+ .title {
35
+ position: absolute;
36
+ bottom: 0;
37
+ padding: 4px 10px;
38
+ background: #fff;
39
+ color: #000;
40
+ text-align: center;
41
+ width: 100%;
42
+ }
43
+
44
+ .type {
45
+ position: absolute;
46
+ bottom: 40px;
47
+ padding: 4px 10px;
48
+ color: #000;
49
+ text-align: center;
50
+ width: 100%;
51
+ }
52
+
53
+ .tag-list {
54
+ position: absolute;
55
+ bottom: 30px;
56
+ padding: 4px 10px;
57
+ color: #000;
58
+ text-align: right;
59
+ width: 100%;
60
+
61
+ .tag {
62
+ font-size: 12px;
63
+ margin-top: 17px;
64
+ text-align: right;
65
+ padding: 2px 6px;
66
+ top: 180px;
67
+ right: 6px;
68
+ background-color: rgba(0, 0, 0, 0.6);
69
+ color: #fff;
70
+ border-radius: 4px;
71
+ margin-left: 5px;
72
+ }
73
+ }
74
+
75
+ .mask {
76
+ position: absolute;
77
+ height: 240px;
78
+ width: 180px;
79
+ top: 0;
80
+ background: #0000004d;
81
+ }
82
+ &:hover {
83
+ box-shadow: 0 4px 12px 0 rgb(0 13 71 / 20%);
84
+ &::before {
85
+ }
86
+ }
87
+ &.choose {
88
+ transition: all 0.1s ease 0s;
89
+ border: 1px solid #1989fa;
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ .diy-footer {
96
+ text-align: center;
97
+ padding: 10px;
98
+ }
99
+ }
100
+ /* stylelint-enable */