@vipl520/dk-ui 1.0.53 → 1.0.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/dist/attributes.json +8 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +2036 -1431
  4. package/dist/index.min.js +4 -4
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +4 -4
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +2035 -1432
  9. package/dist/tags.json +7 -0
  10. package/dist/web-types.json +35 -1
  11. package/es/attachment/src/attachment.vue2.mjs +7 -1
  12. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  13. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +2 -0
  14. package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
  15. package/es/form/src/form.vue2.mjs +0 -1
  16. package/es/form/src/form.vue2.mjs.map +1 -1
  17. package/es/group/src/group.vue2.mjs +14 -1
  18. package/es/group/src/group.vue2.mjs.map +1 -1
  19. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs +23 -21
  20. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  21. package/es/icon/style/index.css +0 -1
  22. package/es/icon/style/index.scss +1 -1
  23. package/es/index.d.ts +1 -0
  24. package/es/index.mjs +5 -2
  25. package/es/index.mjs.map +1 -1
  26. package/es/index.scss +1 -0
  27. package/es/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
  28. package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs +114 -0
  29. package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs.map +1 -0
  30. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
  31. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs +7 -1
  32. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs.map +1 -1
  33. package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
  34. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +76 -62
  35. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  36. package/es/page-diy/src/config/rule/min/common/index.d.ts +240 -60
  37. package/es/page-diy/src/config/rule/min/common/index.mjs +4 -2
  38. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  39. package/es/page-diy/src/config/rule/min/index.d.ts +240 -60
  40. package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs +1 -1
  41. package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs.map +1 -1
  42. package/es/page-diy/src/props.mjs +1 -1
  43. package/es/page-diy/src/props.mjs.map +1 -1
  44. package/es/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
  45. package/es/page-diy/src/views/min/DkMinGrid.vue.mjs +66 -0
  46. package/es/page-diy/src/views/min/DkMinGrid.vue.mjs.map +1 -0
  47. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
  48. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +7 -2
  49. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  50. package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
  51. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +59 -30
  52. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  53. package/es/page-diy/src/views/min/index.mjs +3 -1
  54. package/es/page-diy/src/views/min/index.mjs.map +1 -1
  55. package/es/page-diy/style/drag-tool.css +1 -1
  56. package/es/page-diy/style/drag-tool.scss +4 -0
  57. package/es/page-diy/style/index.css +1 -1
  58. package/es/page-diy/style/minViews/index.scss +8 -0
  59. package/es/style-box-input/src/style-box-input.vue2.mjs +200 -130
  60. package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
  61. package/es/style-box-input/style/index.css +1 -1
  62. package/es/style-box-input/style/index.scss +13 -3
  63. package/es/style-font-input/src/style-font-input.vue2.mjs +105 -272
  64. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  65. package/es/style-input/src/style-input.vue2.mjs +1 -0
  66. package/es/style-input/src/style-input.vue2.mjs.map +1 -1
  67. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +1 -1
  68. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
  69. package/es/test/index.d.ts +4 -2
  70. package/es/test/src/test.vue.d.ts +4 -2
  71. package/es/test/src/test.vue2.mjs +14 -3
  72. package/es/test/src/test.vue2.mjs.map +1 -1
  73. package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
  74. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  75. package/es/uni-icon/style/index.css +1 -1
  76. package/es/uni-icon/style/index.scss +1 -1
  77. package/es/url-input/index.d.ts +35 -0
  78. package/es/url-input/index.mjs +8 -0
  79. package/es/url-input/index.mjs.map +1 -0
  80. package/es/url-input/src/props.d.ts +16 -0
  81. package/es/url-input/src/props.mjs +13 -0
  82. package/es/url-input/src/props.mjs.map +1 -0
  83. package/es/url-input/src/url-input-content.vue.d.ts +25 -0
  84. package/es/url-input/src/url-input-content.vue.mjs +7 -0
  85. package/es/url-input/src/url-input-content.vue.mjs.map +1 -0
  86. package/es/url-input/src/url-input-content.vue2.mjs +301 -0
  87. package/es/url-input/src/url-input-content.vue2.mjs.map +1 -0
  88. package/es/url-input/src/url-input-table.vue.d.ts +16 -0
  89. package/es/url-input/src/url-input-table.vue.mjs +7 -0
  90. package/es/url-input/src/url-input-table.vue.mjs.map +1 -0
  91. package/es/url-input/src/url-input-table.vue2.mjs +63 -0
  92. package/es/url-input/src/url-input-table.vue2.mjs.map +1 -0
  93. package/es/url-input/src/url-input.vue.d.ts +34 -0
  94. package/es/url-input/src/url-input.vue.mjs +7 -0
  95. package/es/url-input/src/url-input.vue.mjs.map +1 -0
  96. package/es/url-input/src/url-input.vue2.mjs +69 -0
  97. package/es/url-input/src/url-input.vue2.mjs.map +1 -0
  98. package/es/url-input/style/index.css +1 -0
  99. package/es/url-input/style/index.scss +38 -0
  100. package/lib/attachment/src/attachment.vue2.js +7 -1
  101. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  102. package/lib/attachment-dialog/src/attachment-dialog.vue2.js +2 -0
  103. package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
  104. package/lib/form/src/form.vue2.js +0 -1
  105. package/lib/form/src/form.vue2.js.map +1 -1
  106. package/lib/group/src/group.vue2.js +14 -1
  107. package/lib/group/src/group.vue2.js.map +1 -1
  108. package/lib/hot-area-input/src/component/hot-area-content.vue2.js +23 -21
  109. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  110. package/lib/icon/style/index.css +0 -1
  111. package/lib/icon/style/index.scss +1 -1
  112. package/lib/index.d.ts +1 -0
  113. package/lib/index.js +8 -3
  114. package/lib/index.js.map +1 -1
  115. package/lib/index.scss +1 -0
  116. package/lib/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
  117. package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js +118 -0
  118. package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js.map +1 -0
  119. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
  120. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js +7 -1
  121. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js.map +1 -1
  122. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
  123. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +76 -62
  124. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  125. package/lib/page-diy/src/config/rule/min/common/index.d.ts +240 -60
  126. package/lib/page-diy/src/config/rule/min/common/index.js +4 -2
  127. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  128. package/lib/page-diy/src/config/rule/min/index.d.ts +240 -60
  129. package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js +1 -1
  130. package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js.map +1 -1
  131. package/lib/page-diy/src/props.js +1 -1
  132. package/lib/page-diy/src/props.js.map +1 -1
  133. package/lib/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
  134. package/lib/page-diy/src/views/min/DkMinGrid.vue.js +70 -0
  135. package/lib/page-diy/src/views/min/DkMinGrid.vue.js.map +1 -0
  136. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
  137. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +7 -2
  138. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  139. package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
  140. package/lib/page-diy/src/views/min/DkMinTitle.vue.js +58 -29
  141. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  142. package/lib/page-diy/src/views/min/index.js +3 -1
  143. package/lib/page-diy/src/views/min/index.js.map +1 -1
  144. package/lib/page-diy/style/drag-tool.css +1 -1
  145. package/lib/page-diy/style/drag-tool.scss +4 -0
  146. package/lib/page-diy/style/index.css +1 -1
  147. package/lib/page-diy/style/minViews/index.scss +8 -0
  148. package/lib/style-box-input/src/style-box-input.vue2.js +199 -129
  149. package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
  150. package/lib/style-box-input/style/index.css +1 -1
  151. package/lib/style-box-input/style/index.scss +13 -3
  152. package/lib/style-font-input/src/style-font-input.vue2.js +105 -272
  153. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  154. package/lib/style-input/src/style-input.vue2.js +1 -0
  155. package/lib/style-input/src/style-input.vue2.js.map +1 -1
  156. package/lib/style-shadow-input/src/style-shadow-input.vue2.js +1 -1
  157. package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
  158. package/lib/test/index.d.ts +4 -2
  159. package/lib/test/src/test.vue.d.ts +4 -2
  160. package/lib/test/src/test.vue2.js +14 -3
  161. package/lib/test/src/test.vue2.js.map +1 -1
  162. package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
  163. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  164. package/lib/uni-icon/style/index.css +1 -1
  165. package/lib/uni-icon/style/index.scss +1 -1
  166. package/lib/url-input/index.d.ts +35 -0
  167. package/lib/url-input/index.js +14 -0
  168. package/lib/url-input/index.js.map +1 -0
  169. package/lib/url-input/src/props.d.ts +16 -0
  170. package/lib/url-input/src/props.js +15 -0
  171. package/lib/url-input/src/props.js.map +1 -0
  172. package/lib/url-input/src/url-input-content.vue.d.ts +25 -0
  173. package/lib/url-input/src/url-input-content.vue.js +11 -0
  174. package/lib/url-input/src/url-input-content.vue.js.map +1 -0
  175. package/lib/url-input/src/url-input-content.vue2.js +305 -0
  176. package/lib/url-input/src/url-input-content.vue2.js.map +1 -0
  177. package/lib/url-input/src/url-input-table.vue.d.ts +16 -0
  178. package/lib/url-input/src/url-input-table.vue.js +11 -0
  179. package/lib/url-input/src/url-input-table.vue.js.map +1 -0
  180. package/lib/url-input/src/url-input-table.vue2.js +67 -0
  181. package/lib/url-input/src/url-input-table.vue2.js.map +1 -0
  182. package/lib/url-input/src/url-input.vue.d.ts +34 -0
  183. package/lib/url-input/src/url-input.vue.js +11 -0
  184. package/lib/url-input/src/url-input.vue.js.map +1 -0
  185. package/lib/url-input/src/url-input.vue2.js +73 -0
  186. package/lib/url-input/src/url-input.vue2.js.map +1 -0
  187. package/lib/url-input/style/index.css +1 -0
  188. package/lib/url-input/style/index.scss +38 -0
  189. package/package.json +1 -1
package/es/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { Test } from './test'\nimport draggable from 'vuedraggable'\nimport Vue3DraggableResizable from 'vue3-draggable-resizable'\n\nimport { Group } from './group'\nimport { TinyEditor } from './tiny-editor'\nimport { Icon } from './icon'\nimport { ColorInput } from './color-input'\nimport { HotAreaInput } from './hot-area-input'\nimport { Dialog } from './dialog'\nimport { Form } from './form'\nimport { Attachment } from './attachment'\nimport { AttachmentDialog } from './attachment-dialog'\nimport { FileInput } from './file-input'\nimport { ImageInput } from './image-input'\nimport { AudioInput } from './audio-input'\nimport { VideoInput } from './video-input'\nimport { FileListInput } from './file-list-input'\nimport { ImageListInput } from './image-list-input'\nimport { AudioListInput } from './audio-list-input'\nimport { VideoListInput } from './video-list-input'\nimport { IconInput, IconContent, IconDialog } from './icon-input'\nimport { StyleInput } from './style-input'\nimport { BoxSizeInput } from './box-size-input'\nimport { StyleBoxInput } from './style-box-input'\nimport { StyleFontInput } from './style-font-input'\nimport { StyleBorderInput } from './style-border-input'\nimport { StyleBackgroundInput } from './style-background-input'\nimport { StyleShadowContent, StyleShadowInput } from './style-shadow-input'\nimport { StylePositionInput } from './style-position-input'\nimport { StyleNumberInput } from './style-number-input'\nimport { PageDiy } from './page-diy'\nimport { Table } from './table'\nimport { Select } from './select'\nimport { Poster, PosterInput } from './poster-input'\nimport { StyleAnimationInput } from './style-animation-input'\nimport { AnimateSelect } from './animate-select'\nimport { UniIconInput } from './uni-icon-input'\nimport { UniIcon } from './uni-icon'\n\nimport { setGlobalConfig, directives } from '@vipl520/utils'\nexport * from './tiny-editor'\nexport * from './icon'\nexport * from './group'\nexport * from './color-input'\nexport * from './hot-area-input'\nexport * from './form'\nexport * from './attachment'\nexport * from './attachment-dialog'\nexport * from './file-input'\nexport * from './image-input'\nexport * from './audio-input'\nexport * from './video-input'\nexport * from './file-list-input'\nexport * from './image-list-input'\nexport * from './audio-list-input'\nexport * from './video-list-input'\nexport * from './icon-input'\nexport * from './page-diy'\nexport * from './box-size-input'\nexport * from './test'\nexport * from './style-input'\nexport * from './style-box-input'\nexport * from './style-font-input'\nexport * from './style-border-input'\nexport * from './style-shadow-input'\nexport * from './style-background-input'\nexport * from './style-position-input'\nexport * from './style-number-input'\nexport * from './table'\nexport * from './select'\nexport * from './poster-input'\nexport * from './style-animation-input'\nexport * from './animate-select'\nexport * from './uni-icon'\nexport * from './uni-icon-input'\n\nconst components = [\n Test,\n Group,\n // 富文本编辑器\n TinyEditor,\n // 图标\n Icon,\n // 颜色选择器\n ColorInput,\n // 热区选择器\n HotAreaInput,\n // 对话框\n Dialog,\n // json表单\n Form,\n // 附件\n Attachment,\n // 附件弹窗\n AttachmentDialog,\n // 文件选择器\n FileInput,\n // 图片选择器\n ImageInput,\n // 音频选择器\n AudioInput,\n // 视频选择器\n VideoInput,\n // 多文件选择器\n FileListInput,\n // 多图片选择器\n ImageListInput,\n // 多音频选择器\n AudioListInput,\n // 多视频选择器\n VideoListInput,\n // 图标选择器\n IconInput,\n // 图标展示框\n IconContent,\n // 图片弹出框\n IconDialog,\n // DIY编辑器\n PageDiy,\n // 尺寸输入框(带px/%/rem/等单位)\n BoxSizeInput,\n // DIV盒子编辑器(padding/margin/width/height)\n StyleBoxInput,\n // 文字样式编辑器\n StyleFontInput,\n // 边框样式编辑器\n StyleBorderInput,\n // 阴影编辑器\n StyleShadowInput,\n // 阴影编辑框\n StyleShadowContent,\n // 背景编辑器\n StyleBackgroundInput,\n // 合并样式编辑\n StyleInput,\n // 定位编辑器\n StylePositionInput,\n // 样式文字\n StyleNumberInput,\n // 动画配置\n StyleAnimationInput,\n // 动画class选择\n AnimateSelect,\n // 数据表格\n Table,\n // 选择\n Select,\n // 表单组/对象表单\n // 海报选择器\n PosterInput,\n // 海报\n Poster,\n Vue3DraggableResizable,\n draggable,\n UniIconInput,\n UniIcon,\n // TODO 普通上传 upload\n // TODO tag选择器 tag-input\n // TODO 链接选择器 link-input\n // TODO 应用框架\n]\n\nexport const install = (app: App, option: any = {}) => {\n components.forEach((item) => {\n if (item.install!) {\n app.use(item)\n } else if (item.name) {\n app.component(item.name, item)\n }\n })\n directives(app)\n setGlobalConfig(option)\n}\n\nexport default {\n install,\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAA,GAAA,CAAI,IAAI,IAAI,CAAA,CAAA;AAAA,KACd,MAAA,IAAW,KAAK,IAAM,EAAA;AACpB,MAAI,GAAA,CAAA,SAAA,CAAU,IAAK,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,KAC/B;AAAA,GACD,CAAA,CAAA;AACD,EAAA,UAAA,CAAW,GAAG,CAAA,CAAA;AACd,EAAA,eAAA,CAAgB,MAAM,CAAA,CAAA;AACxB,EAAA;AAEA,YAAe;AAAA,EACb,OAAA;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import type { App } from 'vue'\nimport { Test } from './test'\nimport draggable from 'vuedraggable'\nimport Vue3DraggableResizable from 'vue3-draggable-resizable'\n\nimport { Group } from './group'\nimport { TinyEditor } from './tiny-editor'\nimport { Icon } from './icon'\nimport { ColorInput } from './color-input'\nimport { HotAreaInput } from './hot-area-input'\nimport { Dialog } from './dialog'\nimport { Form } from './form'\nimport { Attachment } from './attachment'\nimport { AttachmentDialog } from './attachment-dialog'\nimport { FileInput } from './file-input'\nimport { ImageInput } from './image-input'\nimport { AudioInput } from './audio-input'\nimport { VideoInput } from './video-input'\nimport { FileListInput } from './file-list-input'\nimport { ImageListInput } from './image-list-input'\nimport { AudioListInput } from './audio-list-input'\nimport { VideoListInput } from './video-list-input'\nimport { IconInput, IconContent, IconDialog } from './icon-input'\nimport { StyleInput } from './style-input'\nimport { BoxSizeInput } from './box-size-input'\nimport { StyleBoxInput } from './style-box-input'\nimport { StyleFontInput } from './style-font-input'\nimport { StyleBorderInput } from './style-border-input'\nimport { StyleBackgroundInput } from './style-background-input'\nimport { StyleShadowContent, StyleShadowInput } from './style-shadow-input'\nimport { StylePositionInput } from './style-position-input'\nimport { StyleNumberInput } from './style-number-input'\nimport { PageDiy } from './page-diy'\nimport { Table } from './table'\nimport { Select } from './select'\nimport { Poster, PosterInput } from './poster-input'\nimport { StyleAnimationInput } from './style-animation-input'\nimport { AnimateSelect } from './animate-select'\nimport { UniIconInput } from './uni-icon-input'\nimport { UniIcon } from './uni-icon'\nimport { UrlInput } from './url-input'\n\nimport { setGlobalConfig, directives } from '@vipl520/utils'\nexport * from './tiny-editor'\nexport * from './icon'\nexport * from './group'\nexport * from './color-input'\nexport * from './hot-area-input'\nexport * from './form'\nexport * from './attachment'\nexport * from './attachment-dialog'\nexport * from './file-input'\nexport * from './image-input'\nexport * from './audio-input'\nexport * from './video-input'\nexport * from './file-list-input'\nexport * from './image-list-input'\nexport * from './audio-list-input'\nexport * from './video-list-input'\nexport * from './icon-input'\nexport * from './page-diy'\nexport * from './box-size-input'\nexport * from './test'\nexport * from './style-input'\nexport * from './style-box-input'\nexport * from './style-font-input'\nexport * from './style-border-input'\nexport * from './style-shadow-input'\nexport * from './style-background-input'\nexport * from './style-position-input'\nexport * from './style-number-input'\nexport * from './table'\nexport * from './select'\nexport * from './poster-input'\nexport * from './style-animation-input'\nexport * from './animate-select'\nexport * from './uni-icon'\nexport * from './uni-icon-input'\nexport * from './url-input'\n\nconst components = [\n Test,\n Group,\n // 富文本编辑器\n TinyEditor,\n // 图标\n Icon,\n // 颜色选择器\n ColorInput,\n // 热区选择器\n HotAreaInput,\n // 对话框\n Dialog,\n // json表单\n Form,\n // 附件\n Attachment,\n // 附件弹窗\n AttachmentDialog,\n // 文件选择器\n FileInput,\n // 图片选择器\n ImageInput,\n // 音频选择器\n AudioInput,\n // 视频选择器\n VideoInput,\n // 多文件选择器\n FileListInput,\n // 多图片选择器\n ImageListInput,\n // 多音频选择器\n AudioListInput,\n // 多视频选择器\n VideoListInput,\n // 图标选择器\n IconInput,\n // 图标展示框\n IconContent,\n // 图片弹出框\n IconDialog,\n // DIY编辑器\n PageDiy,\n // 尺寸输入框(带px/%/rem/等单位)\n BoxSizeInput,\n // DIV盒子编辑器(padding/margin/width/height)\n StyleBoxInput,\n // 文字样式编辑器\n StyleFontInput,\n // 边框样式编辑器\n StyleBorderInput,\n // 阴影编辑器\n StyleShadowInput,\n // 阴影编辑框\n StyleShadowContent,\n // 背景编辑器\n StyleBackgroundInput,\n // 合并样式编辑\n StyleInput,\n // 定位编辑器\n StylePositionInput,\n // 样式文字\n StyleNumberInput,\n // 动画配置\n StyleAnimationInput,\n // 动画class选择\n AnimateSelect,\n // 数据表格\n Table,\n // 选择\n Select,\n // 表单组/对象表单\n // 海报选择器\n PosterInput,\n // 海报\n Poster,\n Vue3DraggableResizable,\n draggable,\n UniIconInput,\n UniIcon,\n UrlInput,\n // TODO 普通上传 upload\n // TODO tag选择器 tag-input\n // TODO 链接选择器 link-input\n // TODO 应用框架\n]\n\nexport const install = (app: App, option: any = {}) => {\n components.forEach((item) => {\n if (item.install!) {\n app.use(item)\n } else if (item.name) {\n app.component(item.name, item)\n }\n })\n directives(app)\n setGlobalConfig(option)\n}\n\nexport default {\n install,\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,MAAM,UAAa,GAAA;AAAA,EACjB,IAAA;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,IAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,YAAA;AAAA;AAAA,EAEA,MAAA;AAAA;AAAA,EAEA,IAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,gBAAA;AAAA;AAAA,EAEA,SAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,aAAA;AAAA;AAAA,EAEA,cAAA;AAAA;AAAA,EAEA,cAAA;AAAA;AAAA,EAEA,cAAA;AAAA;AAAA,EAEA,SAAA;AAAA;AAAA,EAEA,WAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,OAAA;AAAA;AAAA,EAEA,YAAA;AAAA;AAAA,EAEA,aAAA;AAAA;AAAA,EAEA,cAAA;AAAA;AAAA,EAEA,gBAAA;AAAA;AAAA,EAEA,gBAAA;AAAA;AAAA,EAEA,kBAAA;AAAA;AAAA,EAEA,oBAAA;AAAA;AAAA,EAEA,UAAA;AAAA;AAAA,EAEA,kBAAA;AAAA;AAAA,EAEA,gBAAA;AAAA;AAAA,EAEA,mBAAA;AAAA;AAAA,EAEA,aAAA;AAAA;AAAA,EAEA,KAAA;AAAA;AAAA,EAEA,MAAA;AAAA;AAAA;AAAA,EAGA,WAAA;AAAA;AAAA,EAEA,MAAA;AAAA,EACA,sBAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA;AAAA;AAAA;AAAA;AAKF,CAAA,CAAA;AAEO,MAAM,OAAU,GAAA,CAAC,GAAU,EAAA,MAAA,GAAc,EAAO,KAAA;AACrD,EAAW,UAAA,CAAA,OAAA,CAAQ,CAAC,IAAS,KAAA;AAC3B,IAAA,IAAI,KAAK,OAAU,EAAA;AACjB,MAAA,GAAA,CAAI,IAAI,IAAI,CAAA,CAAA;AAAA,KACd,MAAA,IAAW,KAAK,IAAM,EAAA;AACpB,MAAI,GAAA,CAAA,SAAA,CAAU,IAAK,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,KAC/B;AAAA,GACD,CAAA,CAAA;AACD,EAAA,UAAA,CAAW,GAAG,CAAA,CAAA;AACd,EAAA,eAAA,CAAgB,MAAM,CAAA,CAAA;AACxB,EAAA;AAEA,YAAe;AAAA,EACb,OAAA;AACF,CAAA;;;;"}
package/es/index.scss CHANGED
@@ -26,6 +26,7 @@
26
26
  @import './style-animation-input/style/index.scss';
27
27
  @import './uni-icon/style/index.scss';
28
28
  @import './uni-icon-input/style/index.scss';
29
+ @import './url-input/style/index.scss';
29
30
 
30
31
  //
31
32
  ::-webkit-scrollbar {
@@ -0,0 +1,81 @@
1
+ declare namespace _default {
2
+ export let icon: string;
3
+ export { label };
4
+ export { name };
5
+ export function rule(): {
6
+ type: string;
7
+ props: {
8
+ imageStyle: {
9
+ width: string;
10
+ height: string;
11
+ marginBottom: string;
12
+ borderRadius: string;
13
+ };
14
+ list: {
15
+ title: string;
16
+ image: string;
17
+ }[];
18
+ };
19
+ showStyle: boolean;
20
+ children: never[];
21
+ style: {};
22
+ setting: {
23
+ style: {
24
+ backgroundColor: string;
25
+ };
26
+ };
27
+ };
28
+ export function props(): ({
29
+ type: string;
30
+ field: string;
31
+ title: string;
32
+ value: number;
33
+ props?: undefined;
34
+ } | {
35
+ type: string;
36
+ field: string;
37
+ title: string;
38
+ props: {
39
+ title: string;
40
+ defaultValue: {
41
+ title: string;
42
+ image: string;
43
+ };
44
+ rule: {
45
+ type: string;
46
+ field: string;
47
+ title: string;
48
+ }[];
49
+ isDrawer?: undefined;
50
+ drawerProps?: undefined;
51
+ hideComponents?: undefined;
52
+ };
53
+ value: never[];
54
+ } | {
55
+ type: string;
56
+ field: string;
57
+ title: string;
58
+ value?: undefined;
59
+ props?: undefined;
60
+ } | {
61
+ type: string;
62
+ field: string;
63
+ title: string;
64
+ props: {
65
+ isDrawer: boolean;
66
+ drawerProps: {
67
+ title: string;
68
+ size: string;
69
+ zIndex: number;
70
+ };
71
+ hideComponents: string[];
72
+ title?: undefined;
73
+ defaultValue?: undefined;
74
+ rule?: undefined;
75
+ };
76
+ value?: undefined;
77
+ })[];
78
+ }
79
+ export default _default;
80
+ declare const label: "宫格";
81
+ declare const name: "DkMinGrid";
@@ -0,0 +1,114 @@
1
+ const label = "\u5BAB\u683C";
2
+ const name = "DkMinGrid";
3
+ var DkMinGrid = {
4
+ icon: "mdi:grid",
5
+ label,
6
+ name,
7
+ rule() {
8
+ return {
9
+ type: name,
10
+ props: {
11
+ imageStyle: {
12
+ width: "40px",
13
+ height: "40px",
14
+ marginBottom: "10px",
15
+ borderRadius: "10px"
16
+ },
17
+ list: [
18
+ { title: "\u8FD9\u662F\u6807\u9898", image: "" },
19
+ { title: "\u8FD9\u662F\u6807\u9898", image: "" },
20
+ { title: "\u8FD9\u662F\u6807\u9898", image: "" },
21
+ { title: "\u8FD9\u662F\u6807\u9898", image: "" }
22
+ ]
23
+ },
24
+ showStyle: true,
25
+ children: [],
26
+ style: {},
27
+ setting: {
28
+ style: {
29
+ backgroundColor: "#fff"
30
+ }
31
+ }
32
+ };
33
+ },
34
+ props() {
35
+ return [
36
+ { type: "number", field: "columnNum", title: "\u6BCF\u884C\u4E2A\u6570", value: 4 },
37
+ {
38
+ type: "DkGroup",
39
+ field: "list",
40
+ title: "",
41
+ props: {
42
+ title: "\u5BAB\u683C\u5185\u5BB9",
43
+ defaultValue: {
44
+ title: "\u8FD9\u662F\u6807\u9898",
45
+ image: ""
46
+ },
47
+ rule: [
48
+ { type: "input", field: "title", title: "\u6807\u9898" },
49
+ { type: "DkImageInput", field: "image", title: "\u56FE\u7247" },
50
+ { type: "DkUrlInput", field: "path", title: "\u5730\u5740" }
51
+ ]
52
+ },
53
+ value: []
54
+ },
55
+ {
56
+ type: "DkStyleFontInput",
57
+ field: "fontStyle",
58
+ title: "\u6587\u5B57\u6837\u5F0F"
59
+ // props: {
60
+ // isDrawer: true,
61
+ // drawerProps: {
62
+ // title: '文字样式',
63
+ // size: '400px',
64
+ // zIndex: 100,
65
+ // },
66
+ // // hideComponents: ['DkStyleFontInput', 'DkStyleBackgroundInput'],
67
+ // },
68
+ },
69
+ {
70
+ type: "DkStyleInput",
71
+ field: "imageStyle",
72
+ title: "\u56FE\u7247\u914D\u7F6E",
73
+ props: {
74
+ isDrawer: true,
75
+ drawerProps: {
76
+ title: "\u5361\u7247\u6837\u5F0F",
77
+ size: "400px",
78
+ zIndex: 100
79
+ },
80
+ hideComponents: ["DkStyleFontInput", "DkStyleBackgroundInput"]
81
+ }
82
+ }
83
+ // {
84
+ // type: 'switch',
85
+ // field: 'useImageStyle',
86
+ // title: '图片样式',
87
+ // control: [
88
+ // {
89
+ // value: true,
90
+ // rule: [
91
+ // {
92
+ // type: 'DkStyleInput',
93
+ // field: 'imageStyle',
94
+ // // title: '样式配置',
95
+ // props: {
96
+ // isDrawer: true,
97
+ // drawerProps: {
98
+ // title: '卡片样式',
99
+ // size: '400px',
100
+ // zIndex: 100,
101
+ // },
102
+ // hideComponents: ['DkStyleFontInput', 'DkStyleBackgroundInput'],
103
+ // },
104
+ // },
105
+ // ],
106
+ // },
107
+ // ],
108
+ // },
109
+ ];
110
+ }
111
+ };
112
+
113
+ export { DkMinGrid as default };
114
+ //# sourceMappingURL=DkMinGrid.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DkMinGrid.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinGrid.js"],"sourcesContent":["const label = '宫格'\nconst name = 'DkMinGrid'\n\nexport default {\n icon: 'mdi:grid',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n imageStyle: {\n width: '40px',\n height: '40px',\n marginBottom: '10px',\n borderRadius: '10px',\n },\n list: [\n { title: '这是标题', image: '' },\n { title: '这是标题', image: '' },\n { title: '这是标题', image: '' },\n { title: '这是标题', image: '' },\n ],\n },\n showStyle: true,\n children: [],\n style: {},\n setting: {\n style: {\n backgroundColor: '#fff',\n },\n },\n }\n },\n props() {\n return [\n { type: 'number', field: 'columnNum', title: '每行个数', value: 4 },\n {\n type: 'DkGroup',\n field: 'list',\n title: '',\n props: {\n title: '宫格内容',\n defaultValue: {\n title: '这是标题',\n image: '',\n },\n rule: [\n { type: 'input', field: 'title', title: '标题' },\n { type: 'DkImageInput', field: 'image', title: '图片' },\n { type: 'DkUrlInput', field: 'path', title: '地址' },\n ],\n },\n value: [],\n },\n {\n type: 'DkStyleFontInput',\n field: 'fontStyle',\n title: '文字样式',\n // props: {\n // isDrawer: true,\n // drawerProps: {\n // title: '文字样式',\n // size: '400px',\n // zIndex: 100,\n // },\n // // hideComponents: ['DkStyleFontInput', 'DkStyleBackgroundInput'],\n // },\n },\n {\n type: 'DkStyleInput',\n field: 'imageStyle',\n title: '图片配置',\n props: {\n isDrawer: true,\n drawerProps: {\n title: '卡片样式',\n size: '400px',\n zIndex: 100,\n },\n hideComponents: ['DkStyleFontInput', 'DkStyleBackgroundInput'],\n },\n },\n // {\n // type: 'switch',\n // field: 'useImageStyle',\n // title: '图片样式',\n // control: [\n // {\n // value: true,\n // rule: [\n // {\n // type: 'DkStyleInput',\n // field: 'imageStyle',\n // // title: '样式配置',\n // props: {\n // isDrawer: true,\n // drawerProps: {\n // title: '卡片样式',\n // size: '400px',\n // zIndex: 100,\n // },\n // hideComponents: ['DkStyleFontInput', 'DkStyleBackgroundInput'],\n // },\n // },\n // ],\n // },\n // ],\n // },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,WAAA,CAAA;AAEb,gBAAe;AAAA,EACb,IAAM,EAAA,UAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,UAAY,EAAA;AAAA,UACV,KAAO,EAAA,MAAA;AAAA,UACP,MAAQ,EAAA,MAAA;AAAA,UACR,YAAc,EAAA,MAAA;AAAA,UACd,YAAc,EAAA,MAAA;AAAA,SAChB;AAAA,QACA,IAAM,EAAA;AAAA,UACJ,EAAE,KAAA,EAAO,0BAAQ,EAAA,KAAA,EAAO,EAAG,EAAA;AAAA,UAC3B,EAAE,KAAA,EAAO,0BAAQ,EAAA,KAAA,EAAO,EAAG,EAAA;AAAA,UAC3B,EAAE,KAAA,EAAO,0BAAQ,EAAA,KAAA,EAAO,EAAG,EAAA;AAAA,UAC3B,EAAE,KAAA,EAAO,0BAAQ,EAAA,KAAA,EAAO,EAAG,EAAA;AAAA,SAC7B;AAAA,OACF;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,MACX,UAAU,EAAC;AAAA,MACX,OAAO,EAAC;AAAA,MACR,O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;AAAA,YACN,MAAQ,EAAA,GAAA;AAAA,WACV;AAAA,UACA,cAAA,EAAgB,CAAC,kBAAA,EAAoB,wBAAwB,CAAA;AAAA,SAC/D;AAAA,OACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KA2BF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -69,6 +69,14 @@ declare namespace _default {
69
69
  props?: undefined;
70
70
  options?: undefined;
71
71
  effect?: undefined;
72
+ } | {
73
+ type: string;
74
+ field: string;
75
+ title: string;
76
+ value: number;
77
+ props?: undefined;
78
+ options?: undefined;
79
+ effect?: undefined;
72
80
  } | {
73
81
  type: string;
74
82
  field: string;
@@ -127,6 +127,12 @@ var DkMinSwiperImage = {
127
127
  title: "\u663E\u793A\u6807\u9898",
128
128
  value: false
129
129
  },
130
+ {
131
+ type: "inputNumber",
132
+ field: "radius",
133
+ title: "\u5F27\u5EA6",
134
+ value: 0
135
+ },
130
136
  {
131
137
  type: "DkGroup",
132
138
  field: "swipeList",
@@ -159,7 +165,7 @@ var DkMinSwiperImage = {
159
165
  title: "\u662F\u5426\u663E\u793A"
160
166
  },
161
167
  {
162
- type: "input",
168
+ type: "DkUrlInput",
163
169
  field: "url",
164
170
  props: {
165
171
  showInput: false
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinSwiperImage.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinSwiperImage.js"],"sourcesContent":["const label = '轮播图'\nconst name = 'DkMinSwiperImage'\n\nexport default {\n icon: 'dashicons:images-alt2',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n swipeList: [\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称1',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称2',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称3',\n show: true,\n },\n ],\n height: 160,\n autoplay: 2000,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'inputNumber',\n field: 'height',\n title: '图片高度',\n value: 200,\n props: { min: 0, max: 500 },\n },\n {\n type: 'select',\n field: 'imgMode',\n title: '裁剪缩放模式',\n value: 'aspectFill',\n options: [\n {\n label: 'scaleToFill:宽高完全拉伸至填满',\n value: 'scaleToFill',\n },\n {\n label: 'aspectFit:长边能完全显示出来',\n value: 'aspectFit',\n },\n {\n label: 'aspectFill:短边能完全显示出来',\n value: 'aspectFill',\n },\n { label: 'widthFix:宽度不变,高度自动变化', value: 'widthFix' },\n {\n label: 'heightFix:高度不变,宽度自动变化',\n value: 'heightFix',\n },\n {\n label: 'top:只显示图片的顶部区域',\n value: 'top',\n },\n {\n label: 'bottom:只显示图片的底部区域',\n value: 'bottom',\n },\n {\n label: 'center:只显示图片的中间区域',\n value: 'center',\n },\n {\n label: 'left:只显示图片的左边区域',\n value: 'left',\n },\n {\n label: 'right:只显示图片的右边区域',\n value: 'right',\n },\n {\n label: 'top left:只显示图片的左上边区域',\n value: 'top left',\n },\n {\n label: 'top right:只显示图片的右上边区域',\n value: 'top right',\n },\n {\n label: 'bottom left:只显示图片的左下边区域',\n value: 'bottom left',\n },\n {\n label: 'bottom right:只显示图片的右下边区域',\n value: 'bottom right',\n },\n ],\n effect: {\n help: '小程序图片的缩放剪裁模式,目前无法直接预览,可以参考:https://uniapp.dcloud.net.cn/component/image.html',\n },\n },\n\n {\n type: 'slider',\n field: 'autoplay',\n title: '轮播间隔',\n value: 3000,\n props: {\n min: 500,\n max: 10000,\n step: 100,\n formatTooltip: (val) => {\n return val / 1000 + '秒'\n },\n },\n },\n {\n type: 'switch',\n field: 'showTitle',\n title: '显示标题',\n value: false,\n },\n {\n type: 'DkGroup',\n field: 'swipeList',\n value: [],\n props: {\n title: '图片配置',\n // addTitle:'',\n defaultValue: {\n img: 'https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png',\n url: '',\n title: '新内容',\n },\n rule: [\n {\n type: 'input',\n field: 'title',\n value: '',\n title: '备注名称',\n },\n {\n type: 'DkImageInput',\n field: 'img',\n value: '',\n title: '选择图标',\n },\n {\n type: 'switch',\n field: 'show',\n value: true,\n title: '是否显示',\n },\n {\n type: 'input',\n field: 'url',\n props: {\n showInput: false,\n },\n value: {},\n title: '跳转地址',\n },\n ],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,oBAAA,CAAA;AACd,MAAM,IAAO,GAAA,kBAAA,CAAA;AAEb,uBAAe;AAAA,EACb,IAAM,EAAA,uBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA;AAAA,UACT;AAAA,YACE,GAAK,EAAA,oJAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,uCAAA;AAAA,YACP,IAAM,EAAA,IAAA;AAAA,WACR;AAAA,UACA;AAAA,YACE,GAAK,EAAA,oJAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,uCAAA;AAAA,YACP,IAAM,EAAA,IAAA;AAAA,WACR;AAAA,UACA;AAAA,YAC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ACR,KAAO,EAAA;AAAA,UACL,KAAO,EAAA,0BAAA;AAAA;AAAA,UAEP,YAAc,EAAA;AAAA,YACZ,GAAK,EAAA,kFAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,oBAAA;AAAA,WACT;AAAA,UACA,IAAM,EAAA;AAAA,YACJ;AAAA,cACE,IAAM,EAAA,OAAA;AAAA,cACN,KAAO,EAAA,OAAA;AAAA,cACP,KAAO,EAAA,EAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,cAAA;AAAA,cACN,KAAO,EAAA,KAAA;AAAA,cACP,KAAO,EAAA,EAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,QAAA;AAAA,cACN,KAAO,EAAA,MAAA;AAAA,cACP,KAAO,EAAA,IAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,OAAA;AAAA,cACN,KAAO,EAAA,KAAA;AAAA,cACP,KAAO,EAAA;AAAA,gBACL,SAAW,EAAA,KAAA;AAAA,eACb;AAAA,cACA,OAAO,EAAC;AAAA,cACR,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkMinSwiperImage.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinSwiperImage.js"],"sourcesContent":["const label = '轮播图'\nconst name = 'DkMinSwiperImage'\n\nexport default {\n icon: 'dashicons:images-alt2',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n swipeList: [\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称1',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称2',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称3',\n show: true,\n },\n ],\n height: 160,\n autoplay: 2000,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'inputNumber',\n field: 'height',\n title: '图片高度',\n value: 200,\n props: { min: 0, max: 500 },\n },\n {\n type: 'select',\n field: 'imgMode',\n title: '裁剪缩放模式',\n value: 'aspectFill',\n options: [\n {\n label: 'scaleToFill:宽高完全拉伸至填满',\n value: 'scaleToFill',\n },\n {\n label: 'aspectFit:长边能完全显示出来',\n value: 'aspectFit',\n },\n {\n label: 'aspectFill:短边能完全显示出来',\n value: 'aspectFill',\n },\n { label: 'widthFix:宽度不变,高度自动变化', value: 'widthFix' },\n {\n label: 'heightFix:高度不变,宽度自动变化',\n value: 'heightFix',\n },\n {\n label: 'top:只显示图片的顶部区域',\n value: 'top',\n },\n {\n label: 'bottom:只显示图片的底部区域',\n value: 'bottom',\n },\n {\n label: 'center:只显示图片的中间区域',\n value: 'center',\n },\n {\n label: 'left:只显示图片的左边区域',\n value: 'left',\n },\n {\n label: 'right:只显示图片的右边区域',\n value: 'right',\n },\n {\n label: 'top left:只显示图片的左上边区域',\n value: 'top left',\n },\n {\n label: 'top right:只显示图片的右上边区域',\n value: 'top right',\n },\n {\n label: 'bottom left:只显示图片的左下边区域',\n value: 'bottom left',\n },\n {\n label: 'bottom right:只显示图片的右下边区域',\n value: 'bottom right',\n },\n ],\n effect: {\n help: '小程序图片的缩放剪裁模式,目前无法直接预览,可以参考:https://uniapp.dcloud.net.cn/component/image.html',\n },\n },\n\n {\n type: 'slider',\n field: 'autoplay',\n title: '轮播间隔',\n value: 3000,\n props: {\n min: 500,\n max: 10000,\n step: 100,\n formatTooltip: (val) => {\n return val / 1000 + '秒'\n },\n },\n },\n {\n type: 'switch',\n field: 'showTitle',\n title: '显示标题',\n value: false,\n },\n {\n type: 'inputNumber',\n field: 'radius',\n title: '弧度',\n value: 0,\n },\n {\n type: 'DkGroup',\n field: 'swipeList',\n value: [],\n props: {\n title: '图片配置',\n // addTitle:'',\n defaultValue: {\n img: 'https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png',\n url: '',\n title: '新内容',\n },\n rule: [\n {\n type: 'input',\n field: 'title',\n value: '',\n title: '备注名称',\n },\n {\n type: 'DkImageInput',\n field: 'img',\n value: '',\n title: '选择图标',\n },\n {\n type: 'switch',\n field: 'show',\n value: true,\n title: '是否显示',\n },\n {\n type: 'DkUrlInput',\n field: 'url',\n props: {\n showInput: false,\n },\n value: {},\n title: '跳转地址',\n },\n ],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,oBAAA,CAAA;AACd,MAAM,IAAO,GAAA,kBAAA,CAAA;AAEb,uBAAe;AAAA,EACb,IAAM,EAAA,uBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA;AAAA,UACT;AAAA,YACE,GAAK,EAAA,oJAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,uCAAA;AAAA,YACP,IAAM,EAAA,IAAA;AAAA,WACR;AAAA,UACA;AAAA,YACE,GAAK,EAAA,oJAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,uCAAA;AAAA,YACP,IAAM,EAAA,I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AAA;AAAA,QACP,KAAO,EAAA,cAAA;AAAA,QACP,KAAO,EAAA,CAAA;AAAA,OACT;AAAA,MACA;AAAA,QACE,IAAM,EAAA,SAAA;AAAA,QACN,KAAO,EAAA,WAAA;AAAA,QACP,OAAO,EAAC;AAAA,QACR,KAAO,EAAA;AAAA,UACL,KAAO,EAAA,0BAAA;AAAA;AAAA,UAEP,YAAc,EAAA;AAAA,YACZ,GAAK,EAAA,kFAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,oBAAA;AAAA,WACT;AAAA,UACA,IAAM,EAAA;AAAA,YACJ;AAAA,cACE,IAAM,EAAA,OAAA;AAAA,cACN,KAAO,EAAA,OAAA;AAAA,cACP,KAAO,EAAA,EAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,cAAA;AAAA,cACN,KAAO,EAAA,KAAA;AAAA,cACP,KAAO,EAAA,EAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,QAAA;AAAA,cACN,KAAO,EAAA,MAAA;AAAA,cACP,KAAO,EAAA,IAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,YAAA;AAAA,cACN,KAAO,EAAA,KAAA;AAAA,cACP,KAAO,EAAA;AAAA,gBACL,SAAW,EAAA,KAAA;AAAA,eACb;AAAA,cACA,OAAO,EAAC;AAAA,cACR,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -7,12 +7,30 @@ declare namespace _default {
7
7
  props: {
8
8
  title: string;
9
9
  subtitle: string;
10
+ iconType: string;
11
+ iconSize: number;
12
+ showSubtitle: boolean;
10
13
  };
11
14
  showStyle: boolean;
12
15
  fixed: boolean;
13
- setting: {};
16
+ setting: {
17
+ style: {
18
+ paddingLeft: string;
19
+ paddingRight: string;
20
+ paddingTop: string;
21
+ paddingBottom: string;
22
+ backgroundColor: string;
23
+ };
24
+ };
14
25
  };
15
- export function props(): {
26
+ export function props(): ({
27
+ type: string;
28
+ field: string;
29
+ title: string;
30
+ value?: undefined;
31
+ options?: undefined;
32
+ control?: undefined;
33
+ } | {
16
34
  type: string;
17
35
  field: string;
18
36
  title: string;
@@ -21,49 +39,36 @@ declare namespace _default {
21
39
  label: string;
22
40
  value: string;
23
41
  }[];
24
- control: ({
42
+ control: {
25
43
  value: string;
26
44
  rule: ({
27
45
  type: string;
28
46
  field: string;
29
47
  title: string;
30
48
  value: string;
31
- options?: undefined;
32
49
  } | {
33
50
  type: string;
34
51
  field: string;
35
52
  title: string;
36
- value: string;
37
- options: {
38
- label: string;
39
- value: string;
40
- }[];
53
+ value: number;
41
54
  })[];
42
- } | {
43
- value: string;
44
- rule: ({
55
+ }[];
56
+ } | {
57
+ type: string;
58
+ field: string;
59
+ title: string;
60
+ value: boolean;
61
+ control: {
62
+ value: boolean;
63
+ rule: {
45
64
  type: string;
46
65
  field: string;
47
66
  title: string;
48
67
  value: string;
49
- control?: undefined;
50
- } | {
51
- type: string;
52
- field: string;
53
- title: string;
54
- value: boolean;
55
- control: {
56
- value: boolean;
57
- rule: {
58
- type: string;
59
- field: string;
60
- title: string;
61
- value: string;
62
- }[];
63
- }[];
64
- })[];
65
- })[];
66
- }[];
68
+ }[];
69
+ }[];
70
+ options?: undefined;
71
+ })[];
67
72
  }
68
73
  export default _default;
69
74
  declare const label: "标题";
@@ -8,95 +8,109 @@ var DkMinTitle = {
8
8
  return {
9
9
  type: name,
10
10
  props: {
11
- title: "\u4E3B\u6807\u9898",
12
- subtitle: "\u526F\u6807\u9898"
11
+ title: "\u8FD9\u662F\u6807\u9898",
12
+ subtitle: "\u526F\u6807\u9898",
13
+ iconType: "icon",
14
+ iconSize: 24,
15
+ showSubtitle: true
13
16
  },
14
17
  showStyle: true,
15
18
  fixed: true,
16
- setting: {}
19
+ setting: {
20
+ style: {
21
+ paddingLeft: "5px",
22
+ paddingRight: "5px",
23
+ paddingTop: "5px",
24
+ paddingBottom: "5px",
25
+ backgroundColor: "rgba(255, 255, 255, 1)"
26
+ }
27
+ }
17
28
  };
18
29
  },
19
30
  props() {
20
31
  return [
32
+ { type: "input", field: "title", title: "\u6807\u9898" },
33
+ {
34
+ type: "DkStyleFontInput",
35
+ field: "titleStyle",
36
+ title: "\u6807\u9898\u6837\u5F0F"
37
+ },
21
38
  {
22
39
  type: "radio",
23
- field: "type",
24
- title: "\u7C7B\u578B",
25
- value: "0",
40
+ field: "iconType",
41
+ title: "\u56FE\u6807\u7C7B\u578B",
42
+ value: "none",
26
43
  options: [
27
- { label: "\u9ED8\u8BA4", value: "0" },
28
- { label: "\u526F\u6807\u9898", value: "1" }
44
+ { label: "\u65E0", value: "none" },
45
+ { label: "\u56FE\u6807", value: "icon" },
46
+ { label: "\u56FE\u7247", value: "img" }
29
47
  ],
30
48
  control: [
31
49
  {
32
- value: "0",
50
+ value: "icon",
33
51
  rule: [
34
- { type: "input", field: "title", title: "\u6807\u9898", value: "\u4E3B\u6807\u9898" },
35
- {
36
- type: "radio",
37
- field: "align",
38
- title: "\u4F4D\u7F6E",
39
- value: "left",
40
- options: [
41
- { label: "\u5C45\u5DE6", value: "left" },
42
- { label: "\u5C45\u4E2D", value: "center" }
43
- ]
44
- },
52
+ { type: "DkUniIconInput", field: "icon", title: "\u56FE\u6807", value: "fire-filled" },
53
+ { type: "DkColorInput", field: "iconColor", title: "\u56FE\u6807\u989C\u8272", value: "#F64C2E" },
54
+ { type: "number", field: "iconSize", title: "\u56FE\u6807\u5C3A\u5BF8", value: 24 },
55
+ { type: "number", field: "marginRight", title: "\u95F4\u9694", value: 4 }
56
+ ]
57
+ },
58
+ {
59
+ value: "img",
60
+ rule: [
61
+ { type: "DkImageInput", field: "image", title: "\u56FE\u7247\u56FE\u6807", value: "" },
62
+ { type: "number", field: "iconSize", title: "\u56FE\u6807\u5C3A\u5BF8", value: 24 },
63
+ { type: "number", field: "marginRight", title: "\u95F4\u9694", value: 4 }
64
+ ]
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ type: "switch",
70
+ field: "showSubtitle",
71
+ title: "\u526F\u6807\u9898",
72
+ value: true,
73
+ control: [
74
+ {
75
+ value: true,
76
+ rule: [
77
+ { type: "input", field: "subtitle", title: "\u526F\u6807\u9898", value: "" },
45
78
  {
46
79
  type: "DkColorInput",
47
- field: "color",
48
- title: "\u6807\u9898\u8272",
49
- value: "#000"
80
+ field: "subColor",
81
+ title: "\u526F\u6807\u9898\u8272",
82
+ value: "#999"
50
83
  }
51
84
  ]
52
- },
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ type: "switch",
90
+ field: "isMore",
91
+ title: "\u663E\u793A\u66F4\u591A",
92
+ value: true,
93
+ control: [
53
94
  {
54
- value: "1",
95
+ value: true,
55
96
  rule: [
56
- { type: "input", field: "title", title: "\u6807\u9898", value: "\u4E3B\u6807\u9898" },
57
97
  {
58
- type: "DkColorInput",
59
- field: "color",
60
- title: "\u6807\u9898\u8272",
61
- value: "#000"
98
+ type: "input",
99
+ field: "moreText",
100
+ title: "\u6587\u672C\u5185\u5BB9",
101
+ value: "\u67E5\u770B\u66F4\u591A"
62
102
  },
63
- { type: "input", field: "subtitle", title: "\u526F\u6807\u9898", value: "" },
64
103
  {
65
104
  type: "DkColorInput",
66
- field: "subColor",
67
- title: "\u526F\u6807\u9898\u8272",
105
+ field: "moreColor",
106
+ title: "\u989C\u8272",
68
107
  value: "#999"
69
108
  },
70
109
  {
71
- type: "switch",
72
- field: "isMore",
73
- title: "\u663E\u793A\u66F4\u591A",
74
- value: true,
75
- control: [
76
- {
77
- value: true,
78
- rule: [
79
- {
80
- type: "input",
81
- field: "moreText",
82
- title: "\u6587\u672C\u5185\u5BB9",
83
- value: "\u67E5\u770B\u66F4\u591A"
84
- },
85
- {
86
- type: "input",
87
- field: "url",
88
- title: "\u94FE\u63A5\u5730\u5740",
89
- value: ""
90
- },
91
- {
92
- type: "DkColorInput",
93
- field: "moreColor",
94
- title: "\u989C\u8272",
95
- value: "#999"
96
- }
97
- ]
98
- }
99
- ]
110
+ type: "DkUrlInput",
111
+ field: "url",
112
+ title: "\u94FE\u63A5\u5730\u5740",
113
+ value: ""
100
114
  }
101
115
  ]
102
116
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinTitle.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinTitle.js"],"sourcesContent":["const label = '标题'\nconst name = 'DkMinTitle'\n\nexport default {\n icon: 'material-symbols:title',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n title: '主标题',\n subtitle: '副标题',\n },\n showStyle: true,\n fixed: true,\n setting: {},\n }\n },\n props() {\n return [\n {\n type: 'radio',\n field: 'type',\n title: '类型',\n value: '0',\n options: [\n { label: '默认', value: '0' },\n { label: '副标题', value: '1' },\n ],\n control: [\n {\n value: '0',\n rule: [\n { type: 'input', field: 'title', title: '标题', value: '主标题' },\n {\n type: 'radio',\n field: 'align',\n title: '位置',\n value: 'left',\n options: [\n { label: '居左', value: 'left' },\n { label: '居中', value: 'center' },\n ],\n },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '标题色',\n value: '#000',\n },\n ],\n },\n {\n value: '1',\n rule: [\n { type: 'input', field: 'title', title: '标题', value: '主标题' },\n {\n type: 'DkColorInput',\n field: 'color',\n title: '标题色',\n value: '#000',\n },\n { type: 'input', field: 'subtitle', title: '副标题', value: '' },\n {\n type: 'DkColorInput',\n field: 'subColor',\n title: '副标题色',\n value: '#999',\n },\n {\n type: 'switch',\n field: 'isMore',\n title: '显示更多',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'input',\n field: 'moreText',\n title: '文本内容',\n value: '查看更多',\n },\n {\n type: 'input',\n field: 'url',\n title: '链接地址',\n value: '',\n },\n {\n type: 'DkColorInput',\n field: 'moreColor',\n title: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A;AAAA,wBACN,KAAO,EAAA,KAAA;AAAA,wBACP,KAAO,EAAA,0BAAA;AAAA,wBACP,KAAO,EAAA,EAAA;AAAA,uBACT;AAAA,sBACA;AAAA,wBACE,IAAM,EAAA,cAAA;AAAA,wBACN,KAAO,EAAA,WAAA;AAAA,wBACP,KAAO,EAAA,cAAA;AAAA,wBACP,KAAO,EAAA,MAAA;AAAA,uBACT;AAAA,qBACF;AAAA,mBACF;AAAA,iBACF;AAAA,eACF;AAAA,aACF;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkMinTitle.mjs","sources":["../../../../../../../src/page-diy/src/config/rule/min/common/DkMinTitle.js"],"sourcesContent":["const label = '标题'\nconst name = 'DkMinTitle'\n\nexport default {\n icon: 'material-symbols:title',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n title: '这是标题',\n subtitle: '副标题',\n iconType: 'icon',\n iconSize: 24,\n showSubtitle: true,\n },\n showStyle: true,\n fixed: true,\n setting: {\n style: {\n paddingLeft: '5px',\n paddingRight: '5px',\n paddingTop: '5px',\n paddingBottom: '5px',\n backgroundColor: 'rgba(255, 255, 255, 1)',\n },\n },\n }\n },\n props() {\n return [\n { type: 'input', field: 'title', title: '标题' },\n {\n type: 'DkStyleFontInput',\n field: 'titleStyle',\n title: '标题样式',\n },\n {\n type: 'radio',\n field: 'iconType',\n title: '图标类型',\n value: 'none',\n options: [\n { label: '', value: 'none' },\n { label: '图标', value: 'icon' },\n { label: '图片', value: 'img' },\n ],\n control: [\n {\n value: 'icon',\n rule: [\n { type: 'DkUniIconInput', field: 'icon', title: '图标', value: 'fire-filled' },\n { type: 'DkColorInput', field: 'iconColor', title: '图标颜色', value: '#F64C2E' },\n { type: 'number', field: 'iconSize', title: '图标尺寸', value: 24 },\n { type: 'number', field: 'marginRight', title: '间隔', value: 4 },\n ],\n },\n {\n value: 'img',\n rule: [\n { type: 'DkImageInput', field: 'image', title: '图片图标', value: '' },\n { type: 'number', field: 'iconSize', title: '图标尺寸', value: 24 },\n { type: 'number', field: 'marginRight', title: '间隔', value: 4 },\n ],\n },\n ],\n },\n {\n type: 'switch',\n field: 'showSubtitle',\n title: '副标题',\n value: true,\n control: [\n {\n value: true,\n rule: [\n { type: 'input', field: 'subtitle', title: '副标题', value: '' },\n {\n type: 'DkColorInput',\n field: 'subColor',\n title: '副标题色',\n value: '#999',\n },\n ],\n },\n ],\n },\n {\n type: 'switch',\n field: 'isMore',\n title: '显示更多',\n value: true,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'input',\n field: 'moreText',\n title: '文本内容',\n value: '查看更多',\n },\n {\n type: 'DkColorInput',\n field: 'moreColor',\n title: '颜色',\n value: '#999',\n },\n {\n type: 'DkUrlInput',\n field: 'url',\n title: '链接地址',\n value: '',\n },\n ],\n },\n ],\n },\n ]\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,YAAA,CAAA;AAEb,iBAAe;AAAA,EACb,IAAM,EAAA,wBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,0BAAA;AAAA,QACP,QAAU,EAAA,oBAAA;AAAA,QACV,QAAU,EAAA,MAAA;AAAA,QACV,QAAU,EAAA,EAAA;AAAA,QACV,YAAc,EAAA,IAAA;AAAA,OAChB;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,MACX,KAAO,EAAA,IAAA;AAAA,MACP,OAAS,EAAA;AAAA,QACP,KAAO,EAAA;AAAA,UACL,WAAa,EAAA,KAAA;AAAA,UACb,YAAc,EAAA,KAAA;AAAA,UACd,UAAY,EAAA,KAAA;AAAA,UACZ,aAAe,EAAA,KAAA;AAAA,UACf,eAAiB,EAAA,wBAAA;A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