@vipl520/dk-ui 1.0.44 → 1.0.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +1361 -228
  3. package/dist/index.min.js +4 -4
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +4 -4
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/index.mjs +1361 -228
  8. package/es/animate-select/src/animate-select.vue2.mjs.map +1 -1
  9. package/es/api/attachment.mjs.map +1 -1
  10. package/es/attachment/src/attachment.vue2.mjs +1 -7
  11. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  12. package/es/audio-list-input/src/audio-list-input.vue2.mjs.map +1 -1
  13. package/es/dialog/src/dialog.vue2.mjs +1 -3
  14. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  15. package/es/dialog/style/index.css +1 -1
  16. package/es/dialog/style/index.scss +1 -1
  17. package/es/file-input/src/file-input.vue2.mjs.map +1 -1
  18. package/es/file-list-input/src/file-list-input.vue2.mjs.map +1 -1
  19. package/es/form/src/form.vue2.mjs.map +1 -1
  20. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  21. package/es/hot-area-input/src/hot-area-input.vue2.mjs.map +1 -1
  22. package/es/icon/src/icon.vue2.mjs.map +1 -1
  23. package/es/icon-input/src/icon-content.vue2.mjs +1 -1
  24. package/es/icon-input/src/icon-content.vue2.mjs.map +1 -1
  25. package/es/image-list-input/src/image-list-input.vue2.mjs.map +1 -1
  26. package/es/page-diy/src/components/DiyCloud.vue.mjs.map +1 -1
  27. package/es/page-diy/src/components/DragTool.vue.mjs +1 -5
  28. package/es/page-diy/src/components/DragTool.vue.mjs.map +1 -1
  29. package/es/page-diy/src/components/PreviewPhone.vue2.mjs.map +1 -1
  30. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs +9 -11
  31. package/es/page-diy/src/components/forms/DkEventSelectInput.vue.mjs.map +1 -1
  32. package/es/page-diy/src/config/base/dkSetting.mjs.map +1 -1
  33. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs +1 -3
  34. package/es/page-diy/src/config/rule/min/common/DkMinVideo.mjs.map +1 -1
  35. package/es/page-diy/src/config/rule/min/common/index.mjs +1 -8
  36. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  37. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs +1 -3
  38. package/es/page-diy/src/config/rule/web/common/DkPosterBtn.mjs.map +1 -1
  39. package/es/page-diy/src/config/rule/web/common/DkViewBulletChat.mjs.map +1 -1
  40. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs +3 -9
  41. package/es/page-diy/src/config/rule/web/common/DkViewVideo.mjs.map +1 -1
  42. package/es/page-diy/src/utils/eventData.mjs.map +1 -1
  43. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs +5 -18
  44. package/es/page-diy/src/views/min/DkMinHotArea.vue.mjs.map +1 -1
  45. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  46. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  47. package/es/page-diy/src/views/web/DkViewBulletChat.vue.mjs.map +1 -1
  48. package/es/page-diy/src/views/web/DkViewCell.vue.mjs.map +1 -1
  49. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs +1 -3
  50. package/es/page-diy/src/views/web/DkViewCommonBtn.vue.mjs.map +1 -1
  51. package/es/page-diy/src/views/web/DkViewGridCellList.vue.mjs.map +1 -1
  52. package/es/page-diy/src/views/web/DkViewImage.vue.mjs.map +1 -1
  53. package/es/page-diy/src/views/web/DkViewMusic.vue.mjs.map +1 -1
  54. package/es/page-diy/src/views/web/DkViewNoticeBar.vue.mjs.map +1 -1
  55. package/es/page-diy/src/views/web/DkViewSwipe.vue.mjs.map +1 -1
  56. package/es/page-diy/src/views/web/DkViewTitle.vue.mjs.map +1 -1
  57. package/es/poster-input/src/component/poster.vue2.mjs.map +1 -1
  58. package/es/poster-input/src/component/views/DkPosterViewAvatar.vue2.mjs.map +1 -1
  59. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs +1 -1
  60. package/es/poster-input/src/component/views/DkPosterViewImage.vue2.mjs.map +1 -1
  61. package/es/poster-input/src/component/views/DkPosterViewName.vue2.mjs.map +1 -1
  62. package/es/poster-input/src/component/views/DkPosterViewQrcode.vue2.mjs.map +1 -1
  63. package/es/poster-input/src/component/views/DkPosterViewText.vue2.mjs.map +1 -1
  64. package/es/poster-input/src/component/views/quick-action.vue2.mjs.map +1 -1
  65. package/es/poster-input/src/poster-input.vue2.mjs.map +1 -1
  66. package/es/poster-input/style/index.scss +2 -4
  67. package/es/select/src/select.vue2.mjs +1 -9
  68. package/es/select/src/select.vue2.mjs.map +1 -1
  69. package/es/style-animation-input/src/props.mjs.map +1 -1
  70. package/es/style-animation-input/src/style-animation-input.vue2.mjs +1 -1
  71. package/es/style-animation-input/src/style-animation-input.vue2.mjs.map +1 -1
  72. package/es/style-font-input/src/style-font-input.vue2.mjs +1 -1
  73. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  74. package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
  75. package/es/style-position-input/src/style-position-input.vue2.mjs +1 -4
  76. package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
  77. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  78. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  79. package/es/table/src/components/RecycleDialog.vue2.mjs +1 -3
  80. package/es/table/src/components/RecycleDialog.vue2.mjs.map +1 -1
  81. package/es/table/src/components/header.vue2.mjs +3 -17
  82. package/es/table/src/components/header.vue2.mjs.map +1 -1
  83. package/es/table/src/props.mjs +1 -11
  84. package/es/table/src/props.mjs.map +1 -1
  85. package/es/table/src/table.vue2.mjs +3 -13
  86. package/es/table/src/table.vue2.mjs.map +1 -1
  87. package/es/table/utils/dkTable.mjs +8 -31
  88. package/es/table/utils/dkTable.mjs.map +1 -1
  89. package/es/table/utils/dkTableApi.mjs.map +1 -1
  90. package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
  91. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  92. package/es/video-list-input/src/video-list-input.vue2.mjs.map +1 -1
  93. package/lib/animate-select/src/animate-select.vue2.js.map +1 -1
  94. package/lib/api/attachment.js.map +1 -1
  95. package/lib/attachment/src/attachment.vue2.js +1 -7
  96. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  97. package/lib/audio-list-input/src/audio-list-input.vue2.js.map +1 -1
  98. package/lib/dialog/src/dialog.vue2.js +1 -3
  99. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  100. package/lib/dialog/style/index.css +1 -1
  101. package/lib/dialog/style/index.scss +1 -1
  102. package/lib/file-input/src/file-input.vue2.js.map +1 -1
  103. package/lib/file-list-input/src/file-list-input.vue2.js.map +1 -1
  104. package/lib/form/src/form.vue2.js.map +1 -1
  105. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  106. package/lib/hot-area-input/src/hot-area-input.vue2.js.map +1 -1
  107. package/lib/icon/src/icon.vue2.js.map +1 -1
  108. package/lib/icon-input/src/icon-content.vue2.js +1 -1
  109. package/lib/icon-input/src/icon-content.vue2.js.map +1 -1
  110. package/lib/image-list-input/src/image-list-input.vue2.js.map +1 -1
  111. package/lib/page-diy/src/components/DiyCloud.vue.js.map +1 -1
  112. package/lib/page-diy/src/components/DragTool.vue.js +1 -5
  113. package/lib/page-diy/src/components/DragTool.vue.js.map +1 -1
  114. package/lib/page-diy/src/components/PreviewPhone.vue2.js.map +1 -1
  115. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js +9 -11
  116. package/lib/page-diy/src/components/forms/DkEventSelectInput.vue.js.map +1 -1
  117. package/lib/page-diy/src/config/base/dkSetting.js.map +1 -1
  118. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js +1 -3
  119. package/lib/page-diy/src/config/rule/min/common/DkMinVideo.js.map +1 -1
  120. package/lib/page-diy/src/config/rule/min/common/index.js +1 -8
  121. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  122. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js +1 -3
  123. package/lib/page-diy/src/config/rule/web/common/DkPosterBtn.js.map +1 -1
  124. package/lib/page-diy/src/config/rule/web/common/DkViewBulletChat.js.map +1 -1
  125. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js +3 -9
  126. package/lib/page-diy/src/config/rule/web/common/DkViewVideo.js.map +1 -1
  127. package/lib/page-diy/src/utils/eventData.js.map +1 -1
  128. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js +5 -18
  129. package/lib/page-diy/src/views/min/DkMinHotArea.vue.js.map +1 -1
  130. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  131. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  132. package/lib/page-diy/src/views/web/DkViewBulletChat.vue.js.map +1 -1
  133. package/lib/page-diy/src/views/web/DkViewCell.vue.js.map +1 -1
  134. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js +1 -3
  135. package/lib/page-diy/src/views/web/DkViewCommonBtn.vue.js.map +1 -1
  136. package/lib/page-diy/src/views/web/DkViewGridCellList.vue.js.map +1 -1
  137. package/lib/page-diy/src/views/web/DkViewImage.vue.js.map +1 -1
  138. package/lib/page-diy/src/views/web/DkViewMusic.vue.js.map +1 -1
  139. package/lib/page-diy/src/views/web/DkViewNoticeBar.vue.js.map +1 -1
  140. package/lib/page-diy/src/views/web/DkViewSwipe.vue.js.map +1 -1
  141. package/lib/page-diy/src/views/web/DkViewTitle.vue.js.map +1 -1
  142. package/lib/poster-input/src/component/poster.vue2.js.map +1 -1
  143. package/lib/poster-input/src/component/views/DkPosterViewAvatar.vue2.js.map +1 -1
  144. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js +1 -1
  145. package/lib/poster-input/src/component/views/DkPosterViewImage.vue2.js.map +1 -1
  146. package/lib/poster-input/src/component/views/DkPosterViewName.vue2.js.map +1 -1
  147. package/lib/poster-input/src/component/views/DkPosterViewQrcode.vue2.js.map +1 -1
  148. package/lib/poster-input/src/component/views/DkPosterViewText.vue2.js.map +1 -1
  149. package/lib/poster-input/src/component/views/quick-action.vue2.js.map +1 -1
  150. package/lib/poster-input/src/poster-input.vue2.js.map +1 -1
  151. package/lib/poster-input/style/index.scss +2 -4
  152. package/lib/select/src/select.vue2.js +1 -9
  153. package/lib/select/src/select.vue2.js.map +1 -1
  154. package/lib/style-animation-input/src/props.js.map +1 -1
  155. package/lib/style-animation-input/src/style-animation-input.vue2.js +1 -1
  156. package/lib/style-animation-input/src/style-animation-input.vue2.js.map +1 -1
  157. package/lib/style-font-input/src/style-font-input.vue2.js +1 -1
  158. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  159. package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
  160. package/lib/style-position-input/src/style-position-input.vue2.js +1 -4
  161. package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
  162. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  163. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  164. package/lib/table/src/components/RecycleDialog.vue2.js +1 -3
  165. package/lib/table/src/components/RecycleDialog.vue2.js.map +1 -1
  166. package/lib/table/src/components/header.vue2.js +3 -17
  167. package/lib/table/src/components/header.vue2.js.map +1 -1
  168. package/lib/table/src/props.js +1 -11
  169. package/lib/table/src/props.js.map +1 -1
  170. package/lib/table/src/table.vue2.js +3 -13
  171. package/lib/table/src/table.vue2.js.map +1 -1
  172. package/lib/table/utils/dkTable.js +8 -31
  173. package/lib/table/utils/dkTable.js.map +1 -1
  174. package/lib/table/utils/dkTableApi.js.map +1 -1
  175. package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
  176. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  177. package/lib/video-list-input/src/video-list-input.vue2.js.map +1 -1
  178. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"tiny-editor.vue2.js","sources":["../../../src/tiny-editor/src/tiny-editor.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTinyEditor',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-tiny-editor\">\n <div v-if=\"showDialog\">\n <Editor ref=\"editorRef\" v-model=\"content\" :init=\"init\" :tinymce-script-src=\"tinymceSrc\" @dblclick=\"ondblclick\" />\n </div>\n <div v-else>\n <el-button type=\"primary\" plain style=\"width: 100%\" @click=\"showEditor = true\">{{ props.buttonText }}</el-button>\n <dk-dialog v-model=\"showEditor\" title=\"编辑\" width=\"900px\" z-index=\"1298\">\n <Editor\n ref=\"editorRef\"\n v-model=\"content\"\n :init=\"init\"\n :tinymce-script-src=\"tinymceSrc\"\n @dblclick=\"ondblclick\"\n />\n <template #footer>\n <div class=\"text-center\">\n <el-button type=\"primary\" style=\"width: 200px\" @click=\"showEditor = false\">确定</el-button>\n </div>\n </template>\n </dk-dialog>\n </div>\n <dk-attachment-dialog ref=\"attachmentRef\" :type=\"1\" @confirm=\"onSubmit\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport config from './config'\nimport Editor from '@tinymce/tinymce-vue'\nimport { nextTick, onMounted, ref, watch, computed } from 'vue'\nimport { UploadAttachment } from '../../api'\nimport { tinyEditorProps } from './props'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\nconst props = defineProps(tinyEditorProps)\nconst content = ref(props.modelValue)\nconst showEditor = ref(false)\n// 上传的地址\nconst handleImageUpload = (blobInfo: any, progress: any) =>\n new Promise((resolve, reject) => {\n UploadAttachment(blobInfo.blob())\n .then((res) => {\n progress(100)\n resolve(res.data.url)\n })\n .catch((err) => {\n reject(err)\n })\n })\n\nconst init = ref({\n ...config,\n height: props.height,\n content_css: props.document ? 'document' : '',\n images_upload_handler: handleImageUpload,\n initialContent: 'Loading editor...',\n})\n\nconst tinymceSrc = ref('https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js')\nconst attachmentRef = ref()\nconst editorRef = ref()\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\n\nconst showDialog = computed(() => {\n return width.value >= props.showDialogWidth\n})\n\nwatch(\n () => props.modelValue,\n (newValue) => {\n content.value = newValue\n }\n)\n\nwatch(\n () => content.value,\n (newValue) => {\n emit('update:modelValue', newValue)\n emit('input', newValue)\n emit('change', newValue)\n }\n)\n\nonMounted(() => {\n nextTick(() => {\n initShowImage()\n })\n})\n\nwatch(\n () => editorRef.value,\n () => {\n if (editorRef.value?.getEditor()) {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n }\n)\n\nconst initShowImage = () => {\n if (!editorRef.value?.getEditor()) {\n setTimeout(() => {\n initShowImage()\n }, 1000)\n } else {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n}\n\nconst onSubmit = (chooseFileList: any) => {\n const editor = editorRef.value.getEditor()\n let html = ''\n chooseFileList.forEach((item: any) => {\n html += '<img src=\"' + item.url + '\" alt=\"\" width=\"100%\">'\n })\n editor.insertContent(html)\n}\n\nconst ondblclick = (editor: any) => {\n console.log(editor)\n}\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","UploadAttachment","config","computed","watch","onMounted","nextTick"],"mappings":";;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAmCD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAInC,IAAM,MAAA,OAAA,GAAUD,OAAI,CAAA,KAA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AO,GAAA,EAAA,CAAA;AACX,MAAe,cAAA,CAAA,OAAA,CAAQ,CAAC,IAAc,KAAA;AACpC,QAAQ,IAAA,IAAA,YAAA,GAAe,KAAK,GAAM,GAAA,wBAAA,CAAA;AAAA,OACnC,CAAA,CAAA;AACD,MAAA,MAAA,CAAO,cAAc,IAAI,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAM,MAAA,UAAA,GAAa,CAAC,MAAgB,KAAA;AAClC,MAAA,OAAA,CAAQ,IAAI,MAAM,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tiny-editor.vue2.js","sources":["../../../src/tiny-editor/src/tiny-editor.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkTinyEditor',\n});\n</script>\n<template>\n <div ref=\"el\" class=\"dk-tiny-editor\">\n <div v-if=\"showDialog\">\n <Editor ref=\"editorRef\" v-model=\"content\" :init=\"init\" :tinymce-script-src=\"tinymceSrc\" @dblclick=\"ondblclick\" />\n </div>\n <div v-else>\n <el-button type=\"primary\" plain style=\"width: 100%\" @click=\"showEditor = true\">{{ props.buttonText }}</el-button>\n <dk-dialog v-model=\"showEditor\" title=\"编辑\" width=\"900px\" :z-index=\"1298\">\n <Editor\n ref=\"editorRef\"\n v-model=\"content\"\n :init=\"init\"\n :tinymce-script-src=\"tinymceSrc\"\n @dblclick=\"ondblclick\"\n />\n <template #footer>\n <div class=\"text-center\">\n <el-button type=\"primary\" style=\"width: 200px\" @click=\"showEditor = false\">确定</el-button>\n </div>\n </template>\n </dk-dialog>\n </div>\n <dk-attachment-dialog ref=\"attachmentRef\" :type=\"1\" @confirm=\"onSubmit\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport config from './config'\nimport Editor from '@tinymce/tinymce-vue'\nimport { nextTick, onMounted, ref, watch, computed } from 'vue'\nimport { UploadAttachment } from '../../api'\nimport { tinyEditorProps } from './props'\nimport { useElementSize } from '@vueuse/core'\nconst el: any = ref(null)\nconst { width } = useElementSize(el) // 当前组件宽度\n\n\nconst props = defineProps(tinyEditorProps)\nconst content = ref(props.modelValue)\nconst showEditor = ref(false)\n// 上传的地址\nconst handleImageUpload = (blobInfo: any, progress: any) =>\n new Promise((resolve, reject) => {\n UploadAttachment(blobInfo.blob())\n .then((res) => {\n progress(100)\n resolve(res.data.url)\n })\n .catch((err) => {\n reject(err)\n })\n })\n\nconst init = ref({\n ...config,\n height: props.height,\n content_css: props.document ? 'document' : '',\n images_upload_handler: handleImageUpload,\n initialContent: 'Loading editor...',\n})\n\nconst tinymceSrc = ref('https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js')\nconst attachmentRef = ref()\nconst editorRef = ref()\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\n\nconst showDialog = computed(() => {\n return width.value >= props.showDialogWidth\n})\n\nwatch(\n () => props.modelValue,\n (newValue) => {\n content.value = newValue\n }\n)\n\nwatch(\n () => content.value,\n (newValue) => {\n emit('update:modelValue', newValue)\n emit('input', newValue)\n emit('change', newValue)\n }\n)\n\nonMounted(() => {\n nextTick(() => {\n initShowImage()\n })\n})\n\nwatch(\n () => editorRef.value,\n () => {\n if (editorRef.value?.getEditor()) {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n }\n)\n\nconst initShowImage = () => {\n if (!editorRef.value?.getEditor()) {\n setTimeout(() => {\n initShowImage()\n }, 1000)\n } else {\n editorRef.value.getEditor().on('showImage', () => {\n attachmentRef.value.open()\n })\n }\n}\n\nconst onSubmit = (chooseFileList: any) => {\n const editor = editorRef.value.getEditor()\n let html = ''\n chooseFileList.forEach((item: any) => {\n html += '<img src=\"' + item.url + '\" alt=\"\" width=\"100%\">'\n })\n editor.insertContent(html)\n}\n\nconst ondblclick = (editor: any) => {\n console.log(editor)\n}\n</script>\n"],"names":["__MACROS_defineComponent","ref","useElementSize","UploadAttachment","config","computed","watch","onMounted","nextTick"],"mappings":";;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAmCD,IAAM,MAAA,EAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AACxB,IAAA,MAAM,EAAE,KAAA,EAAU,GAAAC,mBAAA,CAAe,EAAE,CAAA,CAAA;AAInC,IAAM,MAAA,OAAA,GAAUD,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACpC,IAAM,MAAA,UAAA,GAAaA,QAAI,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,iBAAA,GAAoB,CAAC,QAAe,EAAA,QAAA,KACxC,IAAI,OAAQ,CAAA,CAAC,SAAS,MAAW,KAAA;AAC/B,MAAAE,2BAAA,CAAiB,SAAS,IAAK,EAAC,CAC7B,CAAA,IAAA,CAAK,CAAC,GAAQ,KAAA;AACb,QAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AACZ,QAAQ,OAAA,CAAA,GAAA,CAAI,KAAK,GAAG,CAAA,CAAA;AAAA,OACrB,CAAA,CACA,KAAM,CAAA,CAAC,GAAQ,KAAA;AACd,QAAA,MAAA,CAAO,GAAG,CAAA,CAAA;AAAA,OACX,CAAA,CAAA;AAAA,KACJ,CAAA,CAAA;AAEH,IAAA,MAAM,OAAOF,OAAI,CAAA;AAAA,MACf,GAAGG,cAAA;AAAA,MACH,QAAQ,KAAM,CAAA,MAAA;AAAA,MACd,WAAA,EAAa,KAAM,CAAA,QAAA,GAAW,UAAa,GAAA,EAAA;AAAA,MAC3C,qBAAuB,EAAA,iBAAA;AAAA,MACvB,cAAgB,EAAA,mBAAA;AAAA,KACjB,CAAA,CAAA;AAED,IAAM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,SAAA,EAAa,EAAA;AACjC,QAAA,UAAA,CAAW,MAAM;AACf,UAAc,aAAA,EAAA,CAAA;AAAA,WACb,GAAI,CAAA,CAAA;AAAA,OACF,MAAA;AACL,QAAA,SAAA,CAAU,KAAM,CAAA,SAAA,EAAY,CAAA,EAAA,CAAG,aAAa,MAAM;AAChD,UAAA,aAAA,CAAc,MAAM,IAAK,EAAA,CAAA;AAAA,SAC1B,CAAA,CAAA;AAAA,OACH;AAAA,KACF,CAAA;AAEA,IAAM,MAAA,QAAA,GAAW,CAAC,cAAwB,KAAA;AACxC,MAAM,MAAA,MAAA,GAAS,SAAU,CAAA,KAAA,CAAM,SAAU,EAAA,CAAA;AACzC,MAAA,IAAI,IAAO,GAAA,EAAA,CAAA;AACX,MAAe,cAAA,CAAA,OAAA,CAAQ,CAAC,IAAc,KAAA;AACpC,QAAQ,IAAA,IAAA,YAAA,GAAe,KAAK,GAAM,GAAA,wBAAA,CAAA;AAAA,OACnC,CAAA,CAAA;AACD,MAAA,MAAA,CAAO,cAAc,IAAI,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAM,MAAA,UAAA,GAAa,CAAC,MAAgB,KAAA;AAClC,MAAA,OAAA,CAAQ,IAAI,MAAM,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"video-list-input.vue2.js","sources":["../../../src/video-list-input/src/video-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkVideoListInput',\n});\n</script>\n<template>\n <dk-file-list-input\n v-bind=\"$props\"\n v-model=\"input\"\n :class=\"bem()\"\n :type=\"3\"\n @change=\"handleInput(input)\"\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { videoListInputProps } from './props'\nimport { ref, watch } from 'vue'\nconst [_, bem] = createNamespace('video-list-input')\n\n\n\nconst props = defineProps(videoListInputProps)\nconst input = ref(props.modelValue)\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n input.value = val\n }\n)\n\nwatch(\n () => input.value,\n (val) => {\n handleInput(val)\n }\n)\n\nconst handleInput = (val: any) => {\n emit('update:modelValue', val)\n emit('input', val)\n emit('change', val)\n}\n</script>\n"],"names":["__MACROS_defineComponent","createNamespace","ref","watch"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAgBD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAIC,sBAAgB,kBAAkB,CAAA,CAAA;AAKnD,IAAM,MAAA,KAAA,GAAQC,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAGlC,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,OAChB;AAAA,KACF,CAAA;AAEA,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAAA,OACjB;AAAA,KACF,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,GAAa,KAAA;AAChC,MAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AACjB,MAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"video-list-input.vue2.js","sources":["../../../src/video-list-input/src/video-list-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkVideoListInput',\n});\n</script>\n<template>\n <dk-file-list-input v-bind=\"$props\" v-model=\"input\" :class=\"bem()\" :type=\"3\" @change=\"handleInput(input)\" />\n</template>\n\n<script lang=\"ts\" setup>\nimport { createNamespace } from '@vipl520/utils'\nimport { videoListInputProps } from './props'\nimport { ref, watch } from 'vue'\nconst [_, bem] = createNamespace('video-list-input')\n\n\n\nconst props = defineProps(videoListInputProps)\nconst input = ref(props.modelValue)\n\nconst emit = defineEmits(['input', 'update:modelValue', 'change'])\nwatch(\n () => props.modelValue,\n (val) => {\n input.value = val\n }\n)\n\nwatch(\n () => input.value,\n (val) => {\n handleInput(val)\n }\n)\n\nconst handleInput = (val: any) => {\n emit('update:modelValue', val)\n emit('input', val)\n emit('change', val)\n}\n</script>\n"],"names":["__MACROS_defineComponent","createNamespace","ref","watch"],"mappings":";;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAUD,IAAA,MAAM,CAAC,CAAA,EAAG,GAAG,CAAA,GAAIC,sBAAgB,kBAAkB,CAAA,CAAA;AAKnD,IAAM,MAAA,KAAA,GAAQC,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAGlC,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,KAAA,CAAM,KAAQ,GAAA,GAAA,CAAA;AAAA,OAChB;AAAA,KACF,CAAA;AAEA,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAC,GAAQ,KAAA;AACP,QAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAAA,OACjB;AAAA,KACF,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,GAAa,KAAA;AAChC,MAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAC7B,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AACjB,MAAA,IAAA,CAAK,UAAU,GAAG,CAAA,CAAA;AAAA,KACpB,CAAA;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vipl520/dk-ui",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "多客怪兽框架核心组件,支持diy、crud动态表格、上传组件等",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -33,7 +33,7 @@
33
33
  "@vant/icons": "^3.0.2",
34
34
  "@vueuse/core": "^10.0.0",
35
35
  "axios": "^1.4.0",
36
- "element-plus": "^2.3.8",
36
+ "element-plus": "^2.7.2",
37
37
  "unocss": "^0.58.0",
38
38
  "vant": "^4.7.0",
39
39
  "vue": "^3.2.0",
@@ -86,7 +86,7 @@
86
86
  "codemirror": "^6.0.1",
87
87
  "components-helper": "^2.1.5",
88
88
  "default-passive-events": "^2.0.0",
89
- "element-plus": "^2.3.8",
89
+ "element-plus": "^2.7.2",
90
90
  "esbuild": "^0.18.16",
91
91
  "execa": "^7.1.1",
92
92
  "fast-glob": "^3.3.1",